]> git.saurik.com Git - wxWidgets.git/blame - configure
Committing in .
[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.
f1e3914f 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.7.1.
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'
f1e3914f
RR
273PACKAGE_VERSION='2.7.1'
274PACKAGE_STRING='wxWidgets 2.7.1'
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"
64b75e64 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 ac_pt_PKG_CONFIG DIRECTFB_CFLAGS DIRECTFB_LIBS 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 GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS CAIRO_CFLAGS CAIRO_LIBS GST_CFLAGS GST_LIBS 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_GNOMEVFS 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 ICC_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_ICC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1 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_MEDIA_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_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_AUI_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_MEDIA_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_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_MEDIA_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_0 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_DFB COND_TOOLKIT_DFB_USE_GUI_1 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_PCH_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
3ecd9f92
MW
789ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
790ac_env_PKG_CONFIG_value=$PKG_CONFIG
791ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
792ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
b3c86150
VS
793ac_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
794ac_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
795ac_cv_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
796ac_cv_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
797ac_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
798ac_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
799ac_cv_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
800ac_cv_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
3ecd9f92
MW
801ac_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
802ac_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
803ac_cv_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
804ac_cv_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
805ac_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
806ac_env_PANGOX_LIBS_value=$PANGOX_LIBS
807ac_cv_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
808ac_cv_env_PANGOX_LIBS_value=$PANGOX_LIBS
809ac_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
810ac_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
811ac_cv_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
812ac_cv_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
813ac_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
814ac_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
815ac_cv_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
816ac_cv_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
817ac_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
818ac_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
819ac_cv_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
820ac_cv_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
821ac_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
822ac_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
823ac_cv_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
824ac_cv_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
825ac_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
826ac_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
827ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
828ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
829ac_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
830ac_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
831ac_cv_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
832ac_cv_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
833ac_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
834ac_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
835ac_cv_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
836ac_cv_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
837ac_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
838ac_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
839ac_cv_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
840ac_cv_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
841ac_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
842ac_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
843ac_cv_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
844ac_cv_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
845ac_env_HILDON_LIBS_set=${HILDON_LIBS+set}
846ac_env_HILDON_LIBS_value=$HILDON_LIBS
847ac_cv_env_HILDON_LIBS_set=${HILDON_LIBS+set}
848ac_cv_env_HILDON_LIBS_value=$HILDON_LIBS
64b75e64
RD
849ac_env_CAIRO_CFLAGS_set=${CAIRO_CFLAGS+set}
850ac_env_CAIRO_CFLAGS_value=$CAIRO_CFLAGS
851ac_cv_env_CAIRO_CFLAGS_set=${CAIRO_CFLAGS+set}
852ac_cv_env_CAIRO_CFLAGS_value=$CAIRO_CFLAGS
853ac_env_CAIRO_LIBS_set=${CAIRO_LIBS+set}
854ac_env_CAIRO_LIBS_value=$CAIRO_LIBS
855ac_cv_env_CAIRO_LIBS_set=${CAIRO_LIBS+set}
856ac_cv_env_CAIRO_LIBS_value=$CAIRO_LIBS
3ecd9f92
MW
857ac_env_GST_CFLAGS_set=${GST_CFLAGS+set}
858ac_env_GST_CFLAGS_value=$GST_CFLAGS
859ac_cv_env_GST_CFLAGS_set=${GST_CFLAGS+set}
860ac_cv_env_GST_CFLAGS_value=$GST_CFLAGS
861ac_env_GST_LIBS_set=${GST_LIBS+set}
862ac_env_GST_LIBS_value=$GST_LIBS
863ac_cv_env_GST_LIBS_set=${GST_LIBS+set}
864ac_cv_env_GST_LIBS_value=$GST_LIBS
a848cd7e
SC
865
866#
867# Report the --help message.
868#
869if test "$ac_init_help" = "long"; then
870 # Omit some internal or obsolete options to make the list less imposing.
871 # This message is too long to be a string in the A/UX 3.1 sh.
872 cat <<_ACEOF
f1e3914f 873\`configure' configures wxWidgets 2.7.1 to adapt to many kinds of systems.
a848cd7e
SC
874
875Usage: $0 [OPTION]... [VAR=VALUE]...
876
877To assign environment variables (e.g., CC, CFLAGS...), specify them as
878VAR=VALUE. See below for descriptions of some of the useful variables.
879
880Defaults for the options are specified in brackets.
881
882Configuration:
883 -h, --help display this help and exit
884 --help=short display options specific to this package
885 --help=recursive display the short help of all the included packages
886 -V, --version display version information and exit
887 -q, --quiet, --silent do not print \`checking...' messages
888 --cache-file=FILE cache test results in FILE [disabled]
889 -C, --config-cache alias for \`--cache-file=config.cache'
890 -n, --no-create do not create output files
891 --srcdir=DIR find the sources in DIR [configure dir or \`..']
892
893_ACEOF
894
895 cat <<_ACEOF
896Installation directories:
897 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 898 [$ac_default_prefix]
a848cd7e 899 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 900 [PREFIX]
a848cd7e
SC
901
902By default, \`make install' will install all the files in
903\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
904an installation prefix other than \`$ac_default_prefix' using \`--prefix',
905for instance \`--prefix=\$HOME'.
906
907For better control, use the options below.
908
909Fine tuning of the installation directories:
910 --bindir=DIR user executables [EPREFIX/bin]
911 --sbindir=DIR system admin executables [EPREFIX/sbin]
912 --libexecdir=DIR program executables [EPREFIX/libexec]
913 --datadir=DIR read-only architecture-independent data [PREFIX/share]
914 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
915 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
916 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
917 --libdir=DIR object code libraries [EPREFIX/lib]
918 --includedir=DIR C header files [PREFIX/include]
919 --oldincludedir=DIR C header files for non-gcc [/usr/include]
920 --infodir=DIR info documentation [PREFIX/info]
921 --mandir=DIR man documentation [PREFIX/man]
922_ACEOF
923
924 cat <<\_ACEOF
925
926X features:
927 --x-includes=DIR X include files are in DIR
928 --x-libraries=DIR X library files are in DIR
929
930System types:
931 --build=BUILD configure for building on BUILD [guessed]
932 --host=HOST cross-compile to build programs to run on HOST [BUILD]
933 --target=TARGET configure for building compilers for TARGET [HOST]
934_ACEOF
935fi
936
937if test -n "$ac_init_help"; then
938 case $ac_init_help in
f1e3914f 939 short | recursive ) echo "Configuration of wxWidgets 2.7.1:";;
a848cd7e
SC
940 esac
941 cat <<\_ACEOF
942
943Optional Features:
944 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
945 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
946 --enable-gui use GUI classes
77ffb593
JS
947 --enable-monolithic build wxWidgets as single library
948 --enable-plugins build parts of wxWidgets as loadable components
949 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 950 --enable-nanox use NanoX
f34ca037 951 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
952 --enable-gpe use GNOME PDA Environment features if possible
953 --enable-shared create shared library code
954 --enable-optimise create optimised code
955 --enable-debug same as debug_flag and debug_info
956 --enable-stl use STL for containers
957 --enable-omf use OMF object format
958 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
959 --enable-debug_info create code with debugging information
960 --enable-debug_gdb create code with extra GDB debugging information
961 --enable-debug_cntxt use wxDebugContext
962 --enable-mem_tracing create code with memory tracing
963 --enable-profile create code with profiling information
964 --enable-no_rtti create code without RTTI information
965 --enable-no_exceptions create code without C++ exceptions handling
966 --enable-permissive compile code disregarding strict ANSI
967 --enable-no_deps create code without dependency information
95768535 968 --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working)
dee1a63f
MB
969 --enable-compat24 enable wxWidgets 2.4 compatibility
970 --disable-compat26 disable wxWidgets 2.6 compatibility
ffa0583f 971 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
972 --enable-intl use internationalization system
973 --enable-config use wxConfig (and derived) classes
974 --enable-protocols use wxProtocol and derived classes
975 --enable-ftp use wxFTP (requires wxProtocol
976 --enable-http use wxHTTP (requires wxProtocol
977 --enable-fileproto use wxFileProto class (requires wxProtocol
978 --enable-sockets use socket/network classes
979 --enable-ole use OLE classes (Win32 only)
980 --enable-dataobj use data object classes
981 --enable-ipc use interprocess communication (wxSocket etc.)
982 --enable-apple_ieee use the Apple IEEE codec
81f90336 983 --enable-arcstream use wxArchive streams
eaff0f0d 984 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 985 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
986 --enable-cmdline use wxCmdLineParser class
987 --enable-datetime use wxDateTime class
36b6448c 988 --enable-debugreport use wxDebugReport class
a848cd7e
SC
989 --enable-dialupman use dialup network classes
990 --enable-dynlib use wxLibrary class for DLL loading
991 --enable-dynamicloader use (new) wxDynamicLibrary class
992 --enable-exceptions build exception-safe library
993 --enable-ffile use wxFFile class
994 --enable-file use wxFile class
995 --enable-filesystem use virtual file systems classes
996 --enable-fontmap use font encodings conversion classes
26e422a9 997 --enable-fs_archive use virtual archive filesystems
a848cd7e 998 --enable-fs_inet use virtual HTTP/FTP filesystems
916af76f 999 --enable-fs_zip now replaced by fs_archive
a848cd7e
SC
1000 --enable-geometry use geometry class
1001 --enable-log use logging system
1002 --enable-longlong use wxLongLong class
1003 --enable-mimetype use wxMimeTypesManager
1004 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
1005 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 1006 --enable-std_iostreams use standard C++ stream classes
59746b65 1007 --enable-std_string use standard C++ string classes
07158944 1008 --enable-stdpaths use wxStandardPaths class
a848cd7e 1009 --enable-stopwatch use wxStopWatch class
07158944 1010 --enable-streams use wxStream etc classes
a848cd7e 1011 --enable-sysoptions use wxSystemOptions
26e422a9 1012 --enable-tarstream use wxTar streams
a848cd7e
SC
1013 --enable-textbuf use wxTextBuffer class
1014 --enable-textfile use wxTextFile class
1015 --enable-timer use wxTimer class
1016 --enable-unicode compile wxString with Unicode support
1017 --enable-sound use wxSound class
3b57de8b 1018 --enable-mediactrl use wxMediaCtrl class
15291213 1019 --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
8b6682b9 1020 --enable-printfposparam use wxVsnprintf() which supports positional parameters
81f90336 1021 --enable-zipstream use wxZip streams
a848cd7e 1022 --enable-url use wxURL class
ca5c6ac3 1023 --enable-variant use wxVariant class
a848cd7e
SC
1024 --enable-protocol use wxProtocol class
1025 --enable-protocol-http HTTP support in wxProtocol
1026 --enable-protocol-ftp FTP support in wxProtocol
1027 --enable-protocol-file FILE support in wxProtocol
1028 --enable-threads use threads
1029 --enable-docview use document view architecture
1030 --enable-help use help subsystem
1031 --enable-mshtmlhelp use MS HTML Help (win32)
1032 --enable-html use wxHTML sub-library
1033 --enable-htmlhelp use wxHTML-based help
9a8f0513 1034 --enable-xrc use XRC resources sub-library
3f60522a 1035 --enable-aui use AUI docking library
a848cd7e
SC
1036 --enable-constraints use layout-constraints system
1037 --enable-printarch use printing architecture
1038 --enable-mdi use multiple document interface architecture
8a7b1113 1039 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
1040 --enable-loggui use standard GUI logger
1041 --enable-logwin use wxLogWindow
1042 --enable-logdialog use wxLogDialog
646b6ec1 1043 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 1044 --enable-richtext use wxRichTextCtrl
f43426c1 1045 --enable-graphics_ctx use graphics context 2D drawing API
a848cd7e
SC
1046 --enable-postscript use wxPostscriptDC device context (default for gtk+)
1047 --enable-prologio not available; see contrib
1048 --enable-resources not available; see contrib
1049 --enable-clipboard use wxClipboard class
1050 --enable-dnd use Drag'n'Drop classes
1051 --enable-metafile use win32 metafiles
1052 --enable-controls use all usual controls
1053 --enable-accel use accelerators
3ea50042 1054 --enable-animatectrl use wxAnimationCtrl class
a848cd7e
SC
1055 --enable-button use wxButton class
1056 --enable-bmpbutton use wxBitmapButton class
95a46303 1057 --enable-bmpcombobox use wxBitmapComboBox class
a848cd7e
SC
1058 --enable-calendar use wxCalendarCtrl class
1059 --enable-caret use wxCaret class
1060 --enable-checkbox use wxCheckBox class
1061 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
1062 --enable-choice use wxChoice class
92bbdbcd 1063 --enable-choicebook use wxChoicebook class
bd915ace 1064 --enable-collpane use wxCollapsiblePane class
e9263684 1065 --enable-colourpicker use wxColourPickerCtrl class
a848cd7e 1066 --enable-combobox use wxComboBox class
a57d600f 1067 --enable-comboctrl use wxComboCtrl class
da98e9be 1068 --enable-datepick use wxDatePickerCtrl class
e9263684 1069 --enable-dirpicker use wxDirPickerCtrl class
a848cd7e 1070 --enable-display use wxDisplay class
88bbc332 1071 --enable-detect_sm use code to detect X11 session manager
e9263684
VZ
1072 --enable-filepicker use wxFilePickerCtrl class
1073 --enable-fontpicker use wxFontPickerCtrl class
a848cd7e
SC
1074 --enable-gauge use wxGauge class
1075 --enable-grid use wxGrid class
20e34ecc 1076 --enable-dataviewctrl, use wxDataViewCtrl class
6954625c 1077 --enable-hyperlink use wxHyperlinkCtrl class
a848cd7e
SC
1078 --enable-imaglist use wxImageList class
1079 --enable-listbook use wxListbook class
1080 --enable-listbox use wxListBox class
1081 --enable-listctrl use wxListCtrl class
1082 --enable-notebook use wxNotebook class
a57d600f 1083 --enable-odcombobox use wxOwnerDrawnComboBox class
a848cd7e
SC
1084 --enable-radiobox use wxRadioBox class
1085 --enable-radiobtn use wxRadioButton class
1086 --enable-sash use wxSashWindow class
1087 --enable-scrollbar use wxScrollBar class and scrollable windows
1088 --enable-slider use wxSlider class
1089 --enable-spinbtn use wxSpinButton class
1090 --enable-spinctrl use wxSpinCtrl class
1091 --enable-splitter use wxSplitterWindow class
1092 --enable-statbmp use wxStaticBitmap class
1093 --enable-statbox use wxStaticBox class
1094 --enable-statline use wxStaticLine class
1095 --enable-stattext use wxStaticText class
1096 --enable-statusbar use wxStatusBar class
1097 --enable-tabdialog use wxTabControl class
1098 --enable-textctrl use wxTextCtrl class
1099 --enable-togglebtn use wxToggleButton class
1100 --enable-toolbar use wxToolBar class
1101 --enable-tbarnative use native wxToolBar class
0093c2fc 1102 --enable-treebook use wxTreebook class
5ec3bc43 1103 --enable-toolbook use wxToolbook class
a848cd7e
SC
1104 --enable-treectrl use wxTreeCtrl class
1105 --enable-tipwindow use wxTipWindow class
1106 --enable-popupwin use wxPopUpWindow class
1107 --enable-commondlg use all common dialogs
319c5ed4 1108 --enable-aboutdlg use wxAboutBox
a848cd7e
SC
1109 --enable-choicedlg use wxChoiceDialog
1110 --enable-coldlg use wxColourDialog
1111 --enable-filedlg use wxFileDialog
1112 --enable-finddlg use wxFindReplaceDialog
1113 --enable-fontdlg use wxFontDialog
1114 --enable-dirdlg use wxDirDialog
1115 --enable-msgdlg use wxMessageDialog
1116 --enable-numberdlg use wxNumberEntryDialog
1117 --enable-splash use wxSplashScreen
1118 --enable-textdlg use wxTextDialog
1119 --enable-tipdlg use startup tips
1120 --enable-progressdlg use wxProgressDialog
1121 --enable-wizarddlg use wxWizard
1122 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1123 --enable-miniframe use wxMiniFrame class
1124 --enable-tooltips use wxToolTip class
1125 --enable-splines use spline drawing code
fbe2ca43 1126 --enable-mousewheel use mousewheel
a848cd7e
SC
1127 --enable-validators use wxValidator and derived classes
1128 --enable-busyinfo use wxBusyInfo
4cb1d3da 1129 --enable-joystick use wxJoystick
38b4a946 1130 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1131 --enable-dragimage use wxDragImage
1132 --enable-accessibility enable accessibility support
38b4a946 1133 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1134 --enable-palette use wxPalette class
1135 --enable-image use wxImage class
1136 --enable-gif use gif images (GIF file format)
1137 --enable-pcx use pcx images (PCX file format)
bb9e79c0 1138 --enable-tga use tga images (TGA file format)
a848cd7e
SC
1139 --enable-iff use iff images (IFF file format)
1140 --enable-pnm use pnm images (PNM file format)
1141 --enable-xpm use xpm images (XPM file format)
1142 --enable-icocur use Windows ICO and CUR formats
77ffb593 1143 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1144 --enable-vendor=VENDOR vendor name (win32 DLL only)
1145 --disable-largefile omit support for large files
1146 --disable-gtktest do not try to compile and run a test GTK+ program
1147 --disable-gtktest Do not try to compile and run a test GTK program
1148 --disable-sdltest Do not try to compile and run a test SDL program
1149 --enable-omf use OMF object format (OS/2)
f10e38c4
VZ
1150 --disable-dependency-tracking
1151 don't use dependency tracking even if the compiler
1152 can
ebee3cd0
VS
1153 --disable-precomp-headers
1154 don't use precompiled headers even if compiler can
a848cd7e
SC
1155
1156Optional Packages:
1157 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1158 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1159 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1160 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1161 --with-motif use Motif/Lesstif
1162 --with-mac use Mac OS X
1163 --with-cocoa use Cocoa
1164 --with-wine use Wine
1165 --with-msw use MS-Windows
1166 --with-pm use OS/2 Presentation Manager
1167 --with-mgl use SciTech MGL
b3c86150 1168 --with-directfb use DirectFB
a848cd7e
SC
1169 --with-microwin use MicroWindows
1170 --with-x11 use X11
1171 --with-libpng use libpng (PNG image format)
1172 --with-libjpeg use libjpeg (JPEG file format)
1173 --with-libtiff use libtiff (TIFF file format)
1174 --with-libxpm use libxpm (XPM file format)
1175 --with-libmspack use libmspack (CHM help files loading)
1176 --with-sdl use SDL for audio on Unix
2b850ae1
RR
1177 --with-gnomeprint use GNOME print for printing under GNOME
1178 --with-gnomevfs use GNOME VFS for associating MIME types
3565d135 1179 --with-hildon use Hildon framework for Nokia 770
a848cd7e 1180 --with-opengl use OpenGL (or Mesa)
4353a8df 1181 --with-themes=all|list use only the specified comma-separated list of wxUniversal themes
a848cd7e
SC
1182 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1183 --with-regex enable support for wxRegEx class
1184 --with-zlib use zlib for LZW compression
1185 --with-odbc use the IODBC and wxODBC classes
1186 --with-expat enable XML support using expat parser
ceec2216 1187 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1188 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1189 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1190 --with-x use the X Window System
1191 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1192 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1193 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1194 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1195 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1196
1197Some influential environment variables:
dcc1b6ad
VS
1198 CC C compiler command
1199 CFLAGS C compiler flags
1200 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1201 nonstandard directory <lib dir>
1202 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1203 headers in a nonstandard directory <include dir>
1204 CPP C preprocessor
1205 CXX C++ compiler command
1206 CXXFLAGS C++ compiler flags
1207 CXXCPP C++ preprocessor
3ecd9f92 1208 PKG_CONFIG path to pkg-config utility
b3c86150
VS
1209 DIRECTFB_CFLAGS
1210 C compiler flags for DIRECTFB, overriding pkg-config
1211 DIRECTFB_LIBS
1212 linker flags for DIRECTFB, overriding pkg-config
3ecd9f92
MW
1213 PANGOX_CFLAGS
1214 C compiler flags for PANGOX, overriding pkg-config
1215 PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1216 PANGOFT2_CFLAGS
1217 C compiler flags for PANGOFT2, overriding pkg-config
1218 PANGOFT2_LIBS
1219 linker flags for PANGOFT2, overriding pkg-config
1220 PANGOXFT_CFLAGS
1221 C compiler flags for PANGOXFT, overriding pkg-config
1222 PANGOXFT_LIBS
1223 linker flags for PANGOXFT, overriding pkg-config
1224 LIBGNOMEPRINTUI_CFLAGS
1225 C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1226 LIBGNOMEPRINTUI_LIBS
1227 linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1228 GNOMEVFS_CFLAGS
1229 C compiler flags for GNOMEVFS, overriding pkg-config
1230 GNOMEVFS_LIBS
1231 linker flags for GNOMEVFS, overriding pkg-config
1232 HILDON_CFLAGS
1233 C compiler flags for HILDON, overriding pkg-config
1234 HILDON_LIBS linker flags for HILDON, overriding pkg-config
64b75e64
RD
1235 CAIRO_CFLAGS
1236 C compiler flags for CAIRO, overriding pkg-config
1237 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
3ecd9f92
MW
1238 GST_CFLAGS C compiler flags for GST, overriding pkg-config
1239 GST_LIBS linker flags for GST, overriding pkg-config
a848cd7e
SC
1240
1241Use these variables to override the choices made by `configure' or to help
1242it to find libraries and programs with nonstandard names/locations.
1243
77ffb593 1244Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1245_ACEOF
1246fi
1247
1248if test "$ac_init_help" = "recursive"; then
1249 # If there are subdirs, report their specific --help.
1250 ac_popdir=`pwd`
1251 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1252 test -d $ac_dir || continue
1253 ac_builddir=.
1254
1255if test "$ac_dir" != .; then
1256 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1257 # A "../" for each directory in $ac_dir_suffix.
1258 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1259else
1260 ac_dir_suffix= ac_top_builddir=
1261fi
1262
1263case $srcdir in
1264 .) # No --srcdir option. We are building in place.
1265 ac_srcdir=.
1266 if test -z "$ac_top_builddir"; then
1267 ac_top_srcdir=.
1268 else
1269 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1270 fi ;;
1271 [\\/]* | ?:[\\/]* ) # Absolute path.
1272 ac_srcdir=$srcdir$ac_dir_suffix;
1273 ac_top_srcdir=$srcdir ;;
1274 *) # Relative path.
1275 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1276 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1277esac
ac1cb8d3
VS
1278
1279# Do not use `cd foo && pwd` to compute absolute paths, because
1280# the directories may not exist.
1281case `pwd` in
1282.) ac_abs_builddir="$ac_dir";;
1283*)
1284 case "$ac_dir" in
1285 .) ac_abs_builddir=`pwd`;;
1286 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1287 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1288 esac;;
1289esac
1290case $ac_abs_builddir in
1291.) ac_abs_top_builddir=${ac_top_builddir}.;;
1292*)
1293 case ${ac_top_builddir}. in
1294 .) ac_abs_top_builddir=$ac_abs_builddir;;
1295 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1296 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1297 esac;;
1298esac
1299case $ac_abs_builddir in
1300.) ac_abs_srcdir=$ac_srcdir;;
1301*)
1302 case $ac_srcdir in
1303 .) ac_abs_srcdir=$ac_abs_builddir;;
1304 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1305 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1306 esac;;
1307esac
1308case $ac_abs_builddir in
1309.) ac_abs_top_srcdir=$ac_top_srcdir;;
1310*)
1311 case $ac_top_srcdir in
1312 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1313 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1314 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1315 esac;;
1316esac
a848cd7e
SC
1317
1318 cd $ac_dir
1319 # Check for guested configure; otherwise get Cygnus style configure.
1320 if test -f $ac_srcdir/configure.gnu; then
1321 echo
1322 $SHELL $ac_srcdir/configure.gnu --help=recursive
1323 elif test -f $ac_srcdir/configure; then
1324 echo
1325 $SHELL $ac_srcdir/configure --help=recursive
1326 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1327 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1328 echo
1329 $ac_configure --help
1330 else
1331 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1332 fi
bb9e79c0 1333 cd "$ac_popdir"
a848cd7e
SC
1334 done
1335fi
1336
1337test -n "$ac_init_help" && exit 0
1338if $ac_init_version; then
1339 cat <<\_ACEOF
f1e3914f 1340wxWidgets configure 2.7.1
ac1cb8d3 1341generated by GNU Autoconf 2.59
a848cd7e 1342
ac1cb8d3 1343Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1344This configure script is free software; the Free Software Foundation
1345gives unlimited permission to copy, distribute and modify it.
1346_ACEOF
1347 exit 0
1348fi
1349exec 5>config.log
1350cat >&5 <<_ACEOF
1351This file contains any messages produced by compilers while
1352running configure, to aid debugging if configure makes a mistake.
1353
f1e3914f 1354It was created by wxWidgets $as_me 2.7.1, which was
ac1cb8d3 1355generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1356
1357 $ $0 $@
1358
1359_ACEOF
1360{
1361cat <<_ASUNAME
1362## --------- ##
1363## Platform. ##
1364## --------- ##
1365
1366hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1367uname -m = `(uname -m) 2>/dev/null || echo unknown`
1368uname -r = `(uname -r) 2>/dev/null || echo unknown`
1369uname -s = `(uname -s) 2>/dev/null || echo unknown`
1370uname -v = `(uname -v) 2>/dev/null || echo unknown`
1371
1372/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1373/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1374
1375/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1376/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1377/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1378hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1379/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1380/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1381/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1382
1383_ASUNAME
1384
1385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1386for as_dir in $PATH
1387do
1388 IFS=$as_save_IFS
1389 test -z "$as_dir" && as_dir=.
1390 echo "PATH: $as_dir"
1391done
1392
1393} >&5
1394
1395cat >&5 <<_ACEOF
1396
1397
1398## ----------- ##
1399## Core tests. ##
1400## ----------- ##
1401
1402_ACEOF
1403
1404
1405# Keep a trace of the command line.
1406# Strip out --no-create and --no-recursion so they do not pile up.
1407# Strip out --silent because we don't want to record it for future runs.
1408# Also quote any args containing shell meta-characters.
1409# Make two passes to allow for proper duplicate-argument suppression.
1410ac_configure_args=
1411ac_configure_args0=
1412ac_configure_args1=
1413ac_sep=
1414ac_must_keep_next=false
1415for ac_pass in 1 2
1416do
1417 for ac_arg
1418 do
1419 case $ac_arg in
1420 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1421 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1422 | -silent | --silent | --silen | --sile | --sil)
1423 continue ;;
1424 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1425 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1426 esac
1427 case $ac_pass in
1428 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1429 2)
1430 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1431 if test $ac_must_keep_next = true; then
ac1cb8d3 1432 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1433 else
ac1cb8d3
VS
1434 case $ac_arg in
1435 *=* | --config-cache | -C | -disable-* | --disable-* \
1436 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1437 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1438 | -with-* | --with-* | -without-* | --without-* | --x)
1439 case "$ac_configure_args0 " in
1440 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1441 esac
1442 ;;
1443 -* ) ac_must_keep_next=true ;;
1444 esac
a848cd7e
SC
1445 fi
1446 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1447 # Get rid of the leading space.
1448 ac_sep=" "
1449 ;;
1450 esac
1451 done
1452done
1453$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1454$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1455
1456# When interrupted or exit'd, cleanup temporary files, and complete
1457# config.log. We remove comments because anyway the quotes in there
1458# would cause problems or look ugly.
1459# WARNING: Be sure not to use single quotes in there, as some shells,
1460# such as our DU 5.0 friend, will then `close' the trap.
1461trap 'exit_status=$?
1462 # Save into config.log some information that might help in debugging.
1463 {
1464 echo
1465
1466 cat <<\_ASBOX
1467## ---------------- ##
1468## Cache variables. ##
1469## ---------------- ##
1470_ASBOX
1471 echo
1472 # The following way of writing the cache mishandles newlines in values,
1473{
1474 (set) 2>&1 |
1475 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1476 *ac_space=\ *)
1477 sed -n \
ac1cb8d3
VS
1478 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1479 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1480 ;;
1481 *)
1482 sed -n \
ac1cb8d3 1483 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1484 ;;
1485 esac;
1486}
1487 echo
1488
1489 cat <<\_ASBOX
1490## ----------------- ##
1491## Output variables. ##
1492## ----------------- ##
1493_ASBOX
1494 echo
1495 for ac_var in $ac_subst_vars
1496 do
1497 eval ac_val=$`echo $ac_var`
1498 echo "$ac_var='"'"'$ac_val'"'"'"
1499 done | sort
1500 echo
1501
1502 if test -n "$ac_subst_files"; then
1503 cat <<\_ASBOX
1504## ------------- ##
1505## Output files. ##
1506## ------------- ##
1507_ASBOX
1508 echo
1509 for ac_var in $ac_subst_files
1510 do
1511 eval ac_val=$`echo $ac_var`
ac1cb8d3 1512 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1513 done | sort
1514 echo
1515 fi
1516
1517 if test -s confdefs.h; then
1518 cat <<\_ASBOX
1519## ----------- ##
1520## confdefs.h. ##
1521## ----------- ##
1522_ASBOX
1523 echo
1524 sed "/^$/d" confdefs.h | sort
1525 echo
1526 fi
1527 test "$ac_signal" != 0 &&
1528 echo "$as_me: caught signal $ac_signal"
1529 echo "$as_me: exit $exit_status"
1530 } >&5
ac1cb8d3 1531 rm -f core *.core &&
a848cd7e
SC
1532 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1533 exit $exit_status
1534 ' 0
1535for ac_signal in 1 2 13 15; do
1536 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1537done
1538ac_signal=0
1539
1540# confdefs.h avoids OS command line length limits that DEFS can exceed.
1541rm -rf conftest* confdefs.h
1542# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1543echo >confdefs.h
1544
1545# Predefined preprocessor variables.
1546
1547cat >>confdefs.h <<_ACEOF
1548#define PACKAGE_NAME "$PACKAGE_NAME"
1549_ACEOF
1550
1551
1552cat >>confdefs.h <<_ACEOF
1553#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1554_ACEOF
1555
1556
1557cat >>confdefs.h <<_ACEOF
1558#define PACKAGE_VERSION "$PACKAGE_VERSION"
1559_ACEOF
1560
1561
1562cat >>confdefs.h <<_ACEOF
1563#define PACKAGE_STRING "$PACKAGE_STRING"
1564_ACEOF
1565
1566
1567cat >>confdefs.h <<_ACEOF
1568#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1569_ACEOF
1570
1571
1572# Let the site file select an alternate cache file if it wants to.
1573# Prefer explicitly selected file to automatically selected ones.
1574if test -z "$CONFIG_SITE"; then
1575 if test "x$prefix" != xNONE; then
1576 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1577 else
1578 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1579 fi
1580fi
1581for ac_site_file in $CONFIG_SITE; do
1582 if test -r "$ac_site_file"; then
1583 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1584echo "$as_me: loading site script $ac_site_file" >&6;}
1585 sed 's/^/| /' "$ac_site_file" >&5
1586 . "$ac_site_file"
1587 fi
1588done
1589
1590if test -r "$cache_file"; then
1591 # Some versions of bash will fail to source /dev/null (special
1592 # files actually), so we avoid doing that.
1593 if test -f "$cache_file"; then
1594 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1595echo "$as_me: loading cache $cache_file" >&6;}
1596 case $cache_file in
1597 [\\/]* | ?:[\\/]* ) . $cache_file;;
1598 *) . ./$cache_file;;
1599 esac
1600 fi
1601else
1602 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1603echo "$as_me: creating cache $cache_file" >&6;}
1604 >$cache_file
1605fi
1606
1607# Check that the precious variables saved in the cache have kept the same
1608# value.
1609ac_cache_corrupted=false
1610for ac_var in `(set) 2>&1 |
ac1cb8d3 1611 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1612 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1613 eval ac_new_set=\$ac_env_${ac_var}_set
1614 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1615 eval ac_new_val="\$ac_env_${ac_var}_value"
1616 case $ac_old_set,$ac_new_set in
1617 set,)
1618 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1619echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1620 ac_cache_corrupted=: ;;
1621 ,set)
1622 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1623echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1624 ac_cache_corrupted=: ;;
1625 ,);;
1626 *)
1627 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1628 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1629echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1630 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1631echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1632 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1633echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1634 ac_cache_corrupted=:
a848cd7e
SC
1635 fi;;
1636 esac
1637 # Pass precious variables to config.status.
1638 if test "$ac_new_set" = set; then
1639 case $ac_new_val in
1640 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1641 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1642 *) ac_arg=$ac_var=$ac_new_val ;;
1643 esac
1644 case " $ac_configure_args " in
1645 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1646 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1647 esac
1648 fi
1649done
1650if $ac_cache_corrupted; then
1651 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1652echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1653 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1654echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1655 { (exit 1); exit 1; }; }
1656fi
1657
1658ac_ext=c
1659ac_cpp='$CPP $CPPFLAGS'
1660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1662ac_compiler_gnu=$ac_cv_c_compiler_gnu
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693ac_aux_dir=
1694for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1695 if test -f $ac_dir/install-sh; then
1696 ac_aux_dir=$ac_dir
1697 ac_install_sh="$ac_aux_dir/install-sh -c"
1698 break
1699 elif test -f $ac_dir/install.sh; then
1700 ac_aux_dir=$ac_dir
1701 ac_install_sh="$ac_aux_dir/install.sh -c"
1702 break
1703 elif test -f $ac_dir/shtool; then
1704 ac_aux_dir=$ac_dir
1705 ac_install_sh="$ac_aux_dir/shtool install -c"
1706 break
1707 fi
1708done
1709if test -z "$ac_aux_dir"; then
1710 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1711echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1712 { (exit 1); exit 1; }; }
1713fi
1714ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1715ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1716ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1717
1718# Make sure we can run config.sub.
1719$ac_config_sub sun4 >/dev/null 2>&1 ||
1720 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1721echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1722 { (exit 1); exit 1; }; }
1723
1724echo "$as_me:$LINENO: checking build system type" >&5
1725echo $ECHO_N "checking build system type... $ECHO_C" >&6
1726if test "${ac_cv_build+set}" = set; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1728else
1729 ac_cv_build_alias=$build_alias
1730test -z "$ac_cv_build_alias" &&
1731 ac_cv_build_alias=`$ac_config_guess`
1732test -z "$ac_cv_build_alias" &&
1733 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1734echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1735 { (exit 1); exit 1; }; }
1736ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1737 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1738echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1739 { (exit 1); exit 1; }; }
1740
1741fi
1742echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1743echo "${ECHO_T}$ac_cv_build" >&6
1744build=$ac_cv_build
1745build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1746build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1747build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1748
1749
1750echo "$as_me:$LINENO: checking host system type" >&5
1751echo $ECHO_N "checking host system type... $ECHO_C" >&6
1752if test "${ac_cv_host+set}" = set; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1754else
1755 ac_cv_host_alias=$host_alias
1756test -z "$ac_cv_host_alias" &&
1757 ac_cv_host_alias=$ac_cv_build_alias
1758ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1759 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1760echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1761 { (exit 1); exit 1; }; }
1762
1763fi
1764echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1765echo "${ECHO_T}$ac_cv_host" >&6
1766host=$ac_cv_host
1767host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1768host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1769host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1770
1771
1772echo "$as_me:$LINENO: checking target system type" >&5
1773echo $ECHO_N "checking target system type... $ECHO_C" >&6
1774if test "${ac_cv_target+set}" = set; then
1775 echo $ECHO_N "(cached) $ECHO_C" >&6
1776else
1777 ac_cv_target_alias=$target_alias
1778test "x$ac_cv_target_alias" = "x" &&
1779 ac_cv_target_alias=$ac_cv_host_alias
1780ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1781 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1782echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1783 { (exit 1); exit 1; }; }
1784
1785fi
1786echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1787echo "${ECHO_T}$ac_cv_target" >&6
1788target=$ac_cv_target
1789target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1790target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1791target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1792
1793
1794# The aliases save the names the user supplied, while $host etc.
1795# will get canonicalized.
1796test -n "$target_alias" &&
1797 test "$program_prefix$program_suffix$program_transform_name" = \
1798 NONENONEs,x,x, &&
1799 program_prefix=${target_alias}-
1800
1801
1802
ceec2216 1803wx_major_version_number=2
dd8df4fc 1804wx_minor_version_number=7
2add9e3c
RD
1805wx_release_number=2
1806wx_subrelease_number=0
a848cd7e 1807
ceec2216
RL
1808WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1809WX_VERSION=$WX_RELEASE.$wx_release_number
1810WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1811
ceec2216 1812WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1813
a848cd7e
SC
1814
1815
1816
1817USE_UNIX=1
1818USE_OS2=0
1819USE_WIN32=0
1820USE_DOS=0
1821USE_BEOS=0
1822USE_MAC=0
1823
1824USE_AIX=
1825USE_BSD= USE_DARWIN= USE_FREEBSD=
1826USE_GNU= USE_HPUX=
1827USE_LINUX=
1828USE_NETBSD=
1829USE_OPENBSD=
1830USE_OSF= USE_SGI=
1831USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1832USE_ULTRIX=
1833USE_UNIXWARE=
1834
1835USE_ALPHA=
1836
1837NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1838
b3c86150 1839ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
a848cd7e
SC
1840
1841DEFAULT_wxUSE_COCOA=0
1842DEFAULT_wxUSE_GTK=0
1843DEFAULT_wxUSE_MAC=0
1844DEFAULT_wxUSE_MGL=0
1845DEFAULT_wxUSE_MICROWIN=0
1846DEFAULT_wxUSE_MOTIF=0
1847DEFAULT_wxUSE_MSW=0
1848DEFAULT_wxUSE_PM=0
1849DEFAULT_wxUSE_X11=0
b3c86150 1850DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1851
1852DEFAULT_DEFAULT_wxUSE_COCOA=0
1853DEFAULT_DEFAULT_wxUSE_GTK=0
1854DEFAULT_DEFAULT_wxUSE_MAC=0
1855DEFAULT_DEFAULT_wxUSE_MGL=0
1856DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1857DEFAULT_DEFAULT_wxUSE_MOTIF=0
1858DEFAULT_DEFAULT_wxUSE_MSW=0
1859DEFAULT_DEFAULT_wxUSE_PM=0
1860DEFAULT_DEFAULT_wxUSE_X11=0
b3c86150 1861DEFAULT_DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1862
1863PROGRAM_EXT=
1864SO_SUFFIX=so
1865SAMPLES_RPATH_FLAG=
1866SAMPLES_RPATH_POSTLINK=
1867
a03b8b04
RD
1868DEFAULT_STD_FLAG=yes
1869
a848cd7e
SC
1870case "${host}" in
1871 *-hp-hpux* )
1872 USE_HPUX=1
1873 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1874 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1875 SO_SUFFIX=sl
1876 cat >>confdefs.h <<\_ACEOF
1877#define __HPUX__ 1
1878_ACEOF
1879
2eef8513 1880
c92ad099 1881 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1882 ;;
1883 *-*-linux* )
1884 USE_LINUX=1
1885 cat >>confdefs.h <<\_ACEOF
1886#define __LINUX__ 1
1887_ACEOF
1888
1889 TMP=`uname -m`
1890 if test "x$TMP" = "xalpha"; then
1891 USE_ALPHA=1
1892 cat >>confdefs.h <<\_ACEOF
1893#define __ALPHA__ 1
1894_ACEOF
1895
1896 fi
1897 DEFAULT_DEFAULT_wxUSE_GTK=1
1898 ;;
1899 *-*-gnu* | *-*-k*bsd*-gnu )
1900 USE_GNU=1
1901 TMP=`uname -m`
1902 if test "x$TMP" = "xalpha"; then
1903 USE_ALPHA=1
1904 cat >>confdefs.h <<\_ACEOF
1905#define __ALPHA__ 1
1906_ACEOF
1907
1908 fi
1909 DEFAULT_DEFAULT_wxUSE_GTK=1
1910 ;;
1911 *-*-irix5* | *-*-irix6* )
1912 USE_SGI=1
1913 USE_SVR4=1
1914 cat >>confdefs.h <<\_ACEOF
1915#define __SGI__ 1
1916_ACEOF
1917
1918 cat >>confdefs.h <<\_ACEOF
1919#define __SVR4__ 1
1920_ACEOF
1921
1922 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1923 ;;
1924 *-*-solaris2* )
1925 USE_SUN=1
1926 USE_SOLARIS=1
1927 USE_SVR4=1
1928 cat >>confdefs.h <<\_ACEOF
1929#define __SUN__ 1
1930_ACEOF
1931
1932 cat >>confdefs.h <<\_ACEOF
1933#define __SOLARIS__ 1
1934_ACEOF
1935
1936 cat >>confdefs.h <<\_ACEOF
1937#define __SVR4__ 1
1938_ACEOF
1939
1940 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1941 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1942 ;;
1943 *-*-sunos4* )
1944 USE_SUN=1
1945 USE_SUNOS=1
1946 USE_BSD=1
1947 cat >>confdefs.h <<\_ACEOF
1948#define __SUN__ 1
1949_ACEOF
1950
1951 cat >>confdefs.h <<\_ACEOF
1952#define __SUNOS__ 1
1953_ACEOF
1954
1955 cat >>confdefs.h <<\_ACEOF
1956#define __BSD__ 1
1957_ACEOF
1958
1959 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1960 ;;
1961 *-*-freebsd*)
1962 USE_BSD=1
1963 USE_FREEBSD=1
1964 cat >>confdefs.h <<\_ACEOF
1965#define __FREEBSD__ 1
1966_ACEOF
1967
1968 cat >>confdefs.h <<\_ACEOF
1969#define __BSD__ 1
1970_ACEOF
1971
1972 DEFAULT_DEFAULT_wxUSE_GTK=1
1973 ;;
c9a66001 1974 *-*-openbsd*|*-*-mirbsd*)
a848cd7e
SC
1975 USE_BSD=1
1976 USE_OPENBSD=1
1977 cat >>confdefs.h <<\_ACEOF
1978#define __OPENBSD__ 1
1979_ACEOF
1980
1981 cat >>confdefs.h <<\_ACEOF
1982#define __BSD__ 1
1983_ACEOF
1984
1985 DEFAULT_DEFAULT_wxUSE_GTK=1
1986 ;;
1987 *-*-netbsd*)
1988 USE_BSD=1
1989 USE_NETBSD=1
1990 cat >>confdefs.h <<\_ACEOF
1991#define __NETBSD__ 1
1992_ACEOF
1993
1994 cat >>confdefs.h <<\_ACEOF
1995#define __BSD__ 1
1996_ACEOF
1997
1998 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 1999 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 2000
def7c04a 2001 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
2002 ;;
2003 *-*-osf* )
2004 USE_ALPHA=1
2005 USE_OSF=1
2006 cat >>confdefs.h <<\_ACEOF
2007#define __ALPHA__ 1
2008_ACEOF
2009
2010 cat >>confdefs.h <<\_ACEOF
2011#define __OSF__ 1
2012_ACEOF
2013
2014 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2015 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2016 ;;
2017 *-*-dgux5* )
2018 USE_ALPHA=1
2019 USE_SVR4=1
2020 cat >>confdefs.h <<\_ACEOF
2021#define __ALPHA__ 1
2022_ACEOF
2023
2024 cat >>confdefs.h <<\_ACEOF
2025#define __SVR4__ 1
2026_ACEOF
2027
2028 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2029 ;;
2030 *-*-sysv5* )
2031 USE_SYSV=1
2032 USE_SVR4=1
2033 cat >>confdefs.h <<\_ACEOF
2034#define __SYSV__ 1
2035_ACEOF
2036
2037 cat >>confdefs.h <<\_ACEOF
2038#define __SVR4__ 1
2039_ACEOF
2040
2041 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2042 ;;
2043 *-*-aix* )
2044 USE_AIX=1
2045 USE_SYSV=1
2046 USE_SVR4=1
2047 SO_SUFFIX=a
2048 cat >>confdefs.h <<\_ACEOF
2049#define __AIX__ 1
2050_ACEOF
2051
2052 cat >>confdefs.h <<\_ACEOF
2053#define __SYSV__ 1
2054_ACEOF
2055
2056 cat >>confdefs.h <<\_ACEOF
2057#define __SVR4__ 1
2058_ACEOF
2059
2060 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2061 ;;
2062
2063 *-*-*UnixWare*)
2064 USE_SYSV=1
2065 USE_SVR4=1
2066 USE_UNIXWARE=1
2067 cat >>confdefs.h <<\_ACEOF
2068#define __UNIXWARE__ 1
2069_ACEOF
2070
2071 ;;
2072
2073 *-*-cygwin* | *-*-mingw32* )
2074 SO_SUFFIX=dll
2075 PROGRAM_EXT=".exe"
a848cd7e
SC
2076 DEFAULT_DEFAULT_wxUSE_MSW=1
2077 ;;
2078
2079 *-pc-msdosdjgpp )
2080 USE_UNIX=0
2081 USE_DOS=1
2082 cat >>confdefs.h <<\_ACEOF
2083#define __DOS__ 1
2084_ACEOF
2085
2086 PROGRAM_EXT=".exe"
2087 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
2088 ;;
2089
2090 *-pc-os2_emx | *-pc-os2-emx )
2091 cat >>confdefs.h <<\_ACEOF
2092#define __EMX__ 1
2093_ACEOF
2094
2095 USE_OS2=1
2096 cat >>confdefs.h <<\_ACEOF
2097#define __OS2__ 1
2098_ACEOF
2099
2100 PROGRAM_EXT=".exe"
2101 DEFAULT_DEFAULT_wxUSE_PM=1
2102 CXX=gcc
2103 LDFLAGS="$LDFLAGS -Zcrtdll"
2104 ac_executable_extensions=".exe"
2105 export ac_executable_extensions
2106 ac_save_IFS="$IFS"
2107 IFS='\\'
2108 ac_TEMP_PATH=
2109 for ac_dir in $PATH; do
2110 IFS=$ac_save_IFS
2111 if test -z "$ac_TEMP_PATH"; then
2112 ac_TEMP_PATH="$ac_dir"
2113 else
2114 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2115 fi
2116 done
2117 export PATH="$ac_TEMP_PATH"
2118 unset ac_TEMP_PATH
a03b8b04 2119 DEFAULT_STD_FLAG=no
a848cd7e
SC
2120 ;;
2121
cfda0ea8 2122 *-*-darwin* )
a848cd7e
SC
2123 USE_BSD=1
2124 USE_DARWIN=1
2125 SO_SUFFIX=dylib
2126 cat >>confdefs.h <<\_ACEOF
2127#define __BSD__ 1
2128_ACEOF
2129
2130 cat >>confdefs.h <<\_ACEOF
2131#define __DARWIN__ 1
a848cd7e
SC
2132_ACEOF
2133
2134 cat >>confdefs.h <<\_ACEOF
2135#define TARGET_CARBON 1
2136_ACEOF
2137
2138 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2139 DEFAULT_STD_FLAG=no
a848cd7e 2140 ;;
1e9e8aba
DE
2141 powerpc-apple-macos* )
2142 USE_UNIX=0
2143 ac_cv_c_bigendian=yes
2144 SO_SUFFIX=shlib
2145 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2146 DEFAULT_STD_FLAG=no
1e9e8aba 2147 ;;
a848cd7e
SC
2148
2149 *-*-beos* )
2150 USE_BEOS=1
2151 cat >>confdefs.h <<\_ACEOF
2152#define __BEOS__ 1
2153_ACEOF
2154
2155 ;;
2156
2157 *)
c9a66001
VZ
2158 { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2159echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2160 { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2161echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
5acfd58d
MW
2162
2163 DEFAULT_DEFAULT_wxUSE_X11=1
2164 DEFAULT_wxUSE_SHARED=no
a848cd7e
SC
2165esac
2166
2167
2168
2169
2170 wx_arg_cache_file="configarg.cache"
2171 echo "loading argument cache $wx_arg_cache_file"
2172 rm -f ${wx_arg_cache_file}.tmp
2173 touch ${wx_arg_cache_file}.tmp
2174 touch ${wx_arg_cache_file}
2175
2176
2177DEBUG_CONFIGURE=0
2178if test $DEBUG_CONFIGURE = 1; then
2179 DEFAULT_wxUSE_UNIVERSAL=no
2180 DEFAULT_wxUSE_STL=no
2181
2182 DEFAULT_wxUSE_NANOX=no
2183
2184 DEFAULT_wxUSE_THREADS=yes
2185
5acfd58d 2186 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2187 DEFAULT_wxUSE_OPTIMISE=no
2188 DEFAULT_wxUSE_PROFILE=no
2189 DEFAULT_wxUSE_NO_DEPS=no
2190 DEFAULT_wxUSE_NO_RTTI=no
2191 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2192 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2193 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2194 DEFAULT_wxUSE_PERMISSIVE=no
2195 DEFAULT_wxUSE_DEBUG_FLAG=yes
2196 DEFAULT_wxUSE_DEBUG_INFO=yes
2197 DEFAULT_wxUSE_DEBUG_GDB=yes
2198 DEFAULT_wxUSE_MEM_TRACING=no
2199 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2200 DEFAULT_wxUSE_DMALLOC=no
2201 DEFAULT_wxUSE_APPLE_IEEE=no
2202
2203 DEFAULT_wxUSE_EXCEPTIONS=no
2204 DEFAULT_wxUSE_LOG=yes
2205 DEFAULT_wxUSE_LOGWINDOW=no
2206 DEFAULT_wxUSE_LOGGUI=no
2207 DEFAULT_wxUSE_LOGDIALOG=no
2208
2209 DEFAULT_wxUSE_GUI=yes
2210 DEFAULT_wxUSE_CONTROLS=no
2211
2212 DEFAULT_wxUSE_REGEX=no
2213 DEFAULT_wxUSE_XML=no
2214 DEFAULT_wxUSE_EXPAT=no
2215 DEFAULT_wxUSE_ZLIB=no
2216 DEFAULT_wxUSE_LIBPNG=no
2217 DEFAULT_wxUSE_LIBJPEG=no
2218 DEFAULT_wxUSE_LIBTIFF=no
2219 DEFAULT_wxUSE_LIBXPM=no
2220 DEFAULT_wxUSE_LIBMSPACK=no
2221 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2222 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2223 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2224 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2225 DEFAULT_wxUSE_ODBC=no
2226 DEFAULT_wxUSE_OPENGL=no
2227
2228 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2229 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2230 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2231 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2232 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2233 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2234 DEFAULT_wxUSE_CMDLINE_PARSER=no
2235 DEFAULT_wxUSE_DATETIME=no
2236 DEFAULT_wxUSE_TIMER=no
2237 DEFAULT_wxUSE_STOPWATCH=no
2238 DEFAULT_wxUSE_FILE=no
2239 DEFAULT_wxUSE_FFILE=no
07158944 2240 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2241 DEFAULT_wxUSE_TEXTBUFFER=no
2242 DEFAULT_wxUSE_TEXTFILE=no
2243 DEFAULT_wxUSE_SOUND=no
3b57de8b 2244 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2245 DEFAULT_wxUSE_GSTREAMER8=no
8f3773fd 2246 DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
a848cd7e
SC
2247 DEFAULT_wxUSE_INTL=no
2248 DEFAULT_wxUSE_CONFIG=no
2249 DEFAULT_wxUSE_FONTMAP=no
2250 DEFAULT_wxUSE_STREAMS=no
2251 DEFAULT_wxUSE_SOCKETS=no
2252 DEFAULT_wxUSE_OLE=no
2253 DEFAULT_wxUSE_DATAOBJ=no
2254 DEFAULT_wxUSE_DIALUP_MANAGER=no
2255 DEFAULT_wxUSE_JOYSTICK=no
2256 DEFAULT_wxUSE_DYNLIB_CLASS=no
2257 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2258 DEFAULT_wxUSE_LONGLONG=no
2259 DEFAULT_wxUSE_GEOMETRY=no
2260
2261 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2262 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2263 DEFAULT_wxUSE_POSTSCRIPT=no
2264
2265 DEFAULT_wxUSE_CLIPBOARD=no
2266 DEFAULT_wxUSE_TOOLTIPS=no
2267 DEFAULT_wxUSE_DRAG_AND_DROP=no
2268 DEFAULT_wxUSE_DRAGIMAGE=no
2269 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2270 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2271
8a7b1113 2272 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2273 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2274 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2275 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2276
2277 DEFAULT_wxUSE_RESOURCES=no
2278 DEFAULT_wxUSE_CONSTRAINTS=no
2279 DEFAULT_wxUSE_IPC=no
2280 DEFAULT_wxUSE_HELP=no
2281 DEFAULT_wxUSE_MS_HTML_HELP=no
2282 DEFAULT_wxUSE_WXHTML_HELP=no
2283 DEFAULT_wxUSE_TREELAYOUT=no
2284 DEFAULT_wxUSE_METAFILE=no
2285 DEFAULT_wxUSE_MIMETYPE=no
2286 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2287 DEFAULT_wxUSE_PROTOCOL=no
2288 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2289 DEFAULT_wxUSE_PROTOCOL_FTP=no
2290 DEFAULT_wxUSE_PROTOCOL_FILE=no
2291 DEFAULT_wxUSE_URL=no
ca5c6ac3 2292 DEFAULT_wxUSE_VARIANT=no
a848cd7e 2293
319c5ed4 2294 DEFAULT_wxUSE_ABOUTDLG=no
a848cd7e
SC
2295 DEFAULT_wxUSE_COMMONDLGS=no
2296 DEFAULT_wxUSE_CHOICEDLG=no
2297 DEFAULT_wxUSE_COLOURDLG=no
2298 DEFAULT_wxUSE_DIRDLG=no
2299 DEFAULT_wxUSE_FILEDLG=no
2300 DEFAULT_wxUSE_FINDREPLDLG=no
2301 DEFAULT_wxUSE_FONTDLG=no
2302 DEFAULT_wxUSE_MSGDLG=no
2303 DEFAULT_wxUSE_NUMBERDLG=no
2304 DEFAULT_wxUSE_TEXTDLG=no
2305 DEFAULT_wxUSE_SPLASH=no
2306 DEFAULT_wxUSE_STARTUP_TIPS=no
2307 DEFAULT_wxUSE_PROGRESSDLG=no
2308 DEFAULT_wxUSE_WIZARDDLG=no
2309
2310 DEFAULT_wxUSE_MENUS=no
2311 DEFAULT_wxUSE_MINIFRAME=no
2312 DEFAULT_wxUSE_HTML=no
91dea314 2313 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2314 DEFAULT_wxUSE_XRC=no
3f60522a 2315 DEFAULT_wxUSE_AUI=no
646b6ec1 2316 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2317 DEFAULT_wxUSE_FILESYSTEM=no
2318 DEFAULT_wxUSE_FS_INET=no
2319 DEFAULT_wxUSE_FS_ZIP=no
26e422a9 2320 DEFAULT_wxUSE_FS_ARCHIVE=no
a848cd7e 2321 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2322 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2323 DEFAULT_wxUSE_ZIPSTREAM=no
26e422a9 2324 DEFAULT_wxUSE_TARSTREAM=no
a848cd7e
SC
2325 DEFAULT_wxUSE_VALIDATORS=no
2326
2327 DEFAULT_wxUSE_ACCEL=no
3ea50042 2328 DEFAULT_wxUSE_ANIMATIONCTRL=no
a848cd7e
SC
2329 DEFAULT_wxUSE_BUTTON=no
2330 DEFAULT_wxUSE_BMPBUTTON=no
95a46303 2331 DEFAULT_wxUSE_BITMAPCOMBOBOX=no
a848cd7e
SC
2332 DEFAULT_wxUSE_CALCTRL=no
2333 DEFAULT_wxUSE_CARET=no
2334 DEFAULT_wxUSE_CHECKBOX=no
2335 DEFAULT_wxUSE_CHECKLST=no
2336 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2337 DEFAULT_wxUSE_CHOICEBOOK=no
bd915ace 2338 DEFAULT_wxUSE_COLLPANE=no
e9263684 2339 DEFAULT_wxUSE_COLOURPICKERCTRL=no
a848cd7e 2340 DEFAULT_wxUSE_COMBOBOX=no
a57d600f 2341 DEFAULT_wxUSE_COMBOCTRL=no
da98e9be 2342 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e 2343 DEFAULT_wxUSE_DISPLAY=no
88bbc332 2344 DEFAULT_wxUSE_DETECT_SM=no
e9263684
VZ
2345 DEFAULT_wxUSE_DIRPICKERCTRL=no
2346 DEFAULT_wxUSE_FILEPICKERCTRL=no
2347 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e 2348 DEFAULT_wxUSE_GAUGE=no
f43426c1 2349 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
a848cd7e 2350 DEFAULT_wxUSE_GRID=no
6954625c 2351 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 2352 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2353 DEFAULT_wxUSE_IMAGLIST=no
2354 DEFAULT_wxUSE_LISTBOOK=no
2355 DEFAULT_wxUSE_LISTBOX=no
2356 DEFAULT_wxUSE_LISTCTRL=no
2357 DEFAULT_wxUSE_NOTEBOOK=no
a57d600f 2358 DEFAULT_wxUSE_ODCOMBOBOX=no
a848cd7e
SC
2359 DEFAULT_wxUSE_RADIOBOX=no
2360 DEFAULT_wxUSE_RADIOBTN=no
2361 DEFAULT_wxUSE_SASH=no
2362 DEFAULT_wxUSE_SCROLLBAR=no
2363 DEFAULT_wxUSE_SLIDER=no
2364 DEFAULT_wxUSE_SPINBTN=no
2365 DEFAULT_wxUSE_SPINCTRL=no
2366 DEFAULT_wxUSE_SPLITTER=no
2367 DEFAULT_wxUSE_STATBMP=no
2368 DEFAULT_wxUSE_STATBOX=no
2369 DEFAULT_wxUSE_STATLINE=no
2370 DEFAULT_wxUSE_STATTEXT=no
2371 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2372 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2373 DEFAULT_wxUSE_TEXTCTRL=no
2374 DEFAULT_wxUSE_TOGGLEBTN=no
2375 DEFAULT_wxUSE_TOOLBAR=no
2376 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
0093c2fc 2377 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 2378 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
2379 DEFAULT_wxUSE_TREECTRL=no
2380 DEFAULT_wxUSE_POPUPWIN=no
2381 DEFAULT_wxUSE_TIPWINDOW=no
2382
2383 DEFAULT_wxUSE_UNICODE=no
2384 DEFAULT_wxUSE_UNICODE_MSLU=no
2385 DEFAULT_wxUSE_WCSRTOMBS=no
2386
2387 DEFAULT_wxUSE_PALETTE=no
2388 DEFAULT_wxUSE_IMAGE=no
2389 DEFAULT_wxUSE_GIF=no
2390 DEFAULT_wxUSE_PCX=no
bb9e79c0 2391 DEFAULT_wxUSE_TGA=no
a848cd7e
SC
2392 DEFAULT_wxUSE_PNM=no
2393 DEFAULT_wxUSE_IFF=no
2394 DEFAULT_wxUSE_XPM=no
2395 DEFAULT_wxUSE_ICO_CUR=no
2396 DEFAULT_wxUSE_ACCESSIBILITY=no
2397
2398 DEFAULT_wxUSE_MONOLITHIC=no
2399 DEFAULT_wxUSE_PLUGINS=no
2400 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2401else
2402 DEFAULT_wxUSE_UNIVERSAL=no
2403 DEFAULT_wxUSE_STL=no
2404
2405 DEFAULT_wxUSE_NANOX=no
2406
2407 DEFAULT_wxUSE_THREADS=yes
2408
5acfd58d 2409 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2410 DEFAULT_wxUSE_OPTIMISE=yes
2411 DEFAULT_wxUSE_PROFILE=no
2412 DEFAULT_wxUSE_NO_DEPS=no
2413 DEFAULT_wxUSE_NO_RTTI=no
2414 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2415 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2416 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2417 DEFAULT_wxUSE_PERMISSIVE=no
2418 DEFAULT_wxUSE_DEBUG_FLAG=no
2419 DEFAULT_wxUSE_DEBUG_INFO=no
2420 DEFAULT_wxUSE_DEBUG_GDB=no
2421 DEFAULT_wxUSE_MEM_TRACING=no
2422 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2423 DEFAULT_wxUSE_DMALLOC=no
2424 DEFAULT_wxUSE_APPLE_IEEE=yes
2425
2426 DEFAULT_wxUSE_EXCEPTIONS=yes
2427 DEFAULT_wxUSE_LOG=yes
2428 DEFAULT_wxUSE_LOGWINDOW=yes
2429 DEFAULT_wxUSE_LOGGUI=yes
2430 DEFAULT_wxUSE_LOGDIALOG=yes
2431
2432 DEFAULT_wxUSE_GUI=yes
2433
2434 DEFAULT_wxUSE_REGEX=yes
2435 DEFAULT_wxUSE_XML=yes
2436 DEFAULT_wxUSE_EXPAT=yes
2437 DEFAULT_wxUSE_ZLIB=yes
2438 DEFAULT_wxUSE_LIBPNG=yes
2439 DEFAULT_wxUSE_LIBJPEG=yes
2440 DEFAULT_wxUSE_LIBTIFF=yes
2441 DEFAULT_wxUSE_LIBXPM=yes
2442 DEFAULT_wxUSE_LIBMSPACK=yes
2443 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2444 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2445 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2446 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2447 DEFAULT_wxUSE_ODBC=no
52cb607e 2448 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2449
2450 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2451 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2452 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2453 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2454 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2455 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2456 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2457 DEFAULT_wxUSE_DATETIME=yes
2458 DEFAULT_wxUSE_TIMER=yes
2459 DEFAULT_wxUSE_STOPWATCH=yes
2460 DEFAULT_wxUSE_FILE=yes
2461 DEFAULT_wxUSE_FFILE=yes
07158944 2462 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2463 DEFAULT_wxUSE_TEXTBUFFER=yes
2464 DEFAULT_wxUSE_TEXTFILE=yes
2465 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2466 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2467 DEFAULT_wxUSE_GSTREAMER8=no
15291213 2468 DEFAULT_wxUSE_PRINTF_POS_PARAMS=yes
a848cd7e
SC
2469 DEFAULT_wxUSE_INTL=yes
2470 DEFAULT_wxUSE_CONFIG=yes
2471 DEFAULT_wxUSE_FONTMAP=yes
2472 DEFAULT_wxUSE_STREAMS=yes
2473 DEFAULT_wxUSE_SOCKETS=yes
2474 DEFAULT_wxUSE_OLE=yes
2475 DEFAULT_wxUSE_DATAOBJ=yes
2476 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2477 DEFAULT_wxUSE_JOYSTICK=yes
2478 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2479 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2480 DEFAULT_wxUSE_LONGLONG=yes
2481 DEFAULT_wxUSE_GEOMETRY=yes
2482
2483 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2484 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2485 DEFAULT_wxUSE_POSTSCRIPT=yes
2486
2487 DEFAULT_wxUSE_CLIPBOARD=yes
2488 DEFAULT_wxUSE_TOOLTIPS=yes
2489 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2490 DEFAULT_wxUSE_DRAGIMAGE=yes
2491 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2492 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2493
8a7b1113 2494 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2495 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2496 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2497 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2498
2499 DEFAULT_wxUSE_RESOURCES=no
2500 DEFAULT_wxUSE_CONSTRAINTS=yes
2501 DEFAULT_wxUSE_IPC=yes
2502 DEFAULT_wxUSE_HELP=yes
2503 DEFAULT_wxUSE_MS_HTML_HELP=yes
2504 DEFAULT_wxUSE_WXHTML_HELP=yes
2505 DEFAULT_wxUSE_TREELAYOUT=yes
2506 DEFAULT_wxUSE_METAFILE=yes
2507 DEFAULT_wxUSE_MIMETYPE=yes
2508 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2509 DEFAULT_wxUSE_PROTOCOL=yes
2510 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2511 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2512 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2513 DEFAULT_wxUSE_URL=yes
ca5c6ac3 2514 DEFAULT_wxUSE_VARIANT=yes
a848cd7e 2515
319c5ed4 2516 DEFAULT_wxUSE_ABOUTDLG=yes
a848cd7e
SC
2517 DEFAULT_wxUSE_COMMONDLGS=yes
2518 DEFAULT_wxUSE_CHOICEDLG=yes
2519 DEFAULT_wxUSE_COLOURDLG=yes
2520 DEFAULT_wxUSE_DIRDLG=yes
2521 DEFAULT_wxUSE_FILEDLG=yes
2522 DEFAULT_wxUSE_FINDREPLDLG=yes
2523 DEFAULT_wxUSE_FONTDLG=yes
2524 DEFAULT_wxUSE_MSGDLG=yes
2525 DEFAULT_wxUSE_NUMBERDLG=yes
2526 DEFAULT_wxUSE_TEXTDLG=yes
2527 DEFAULT_wxUSE_SPLASH=yes
2528 DEFAULT_wxUSE_STARTUP_TIPS=yes
2529 DEFAULT_wxUSE_PROGRESSDLG=yes
2530 DEFAULT_wxUSE_WIZARDDLG=yes
2531
2532 DEFAULT_wxUSE_MENUS=yes
2533 DEFAULT_wxUSE_MINIFRAME=yes
2534 DEFAULT_wxUSE_HTML=yes
91dea314 2535 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2536 DEFAULT_wxUSE_XRC=yes
3f60522a 2537 DEFAULT_wxUSE_AUI=yes
646b6ec1 2538 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2539 DEFAULT_wxUSE_FILESYSTEM=yes
2540 DEFAULT_wxUSE_FS_INET=yes
2541 DEFAULT_wxUSE_FS_ZIP=yes
26e422a9 2542 DEFAULT_wxUSE_FS_ARCHIVE=yes
a848cd7e 2543 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2544 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2545 DEFAULT_wxUSE_ZIPSTREAM=yes
26e422a9 2546 DEFAULT_wxUSE_TARSTREAM=yes
a848cd7e
SC
2547 DEFAULT_wxUSE_VALIDATORS=yes
2548
2549 DEFAULT_wxUSE_ACCEL=yes
3ea50042 2550 DEFAULT_wxUSE_ANIMATIONCTRL=yes
a848cd7e
SC
2551 DEFAULT_wxUSE_BUTTON=yes
2552 DEFAULT_wxUSE_BMPBUTTON=yes
95a46303 2553 DEFAULT_wxUSE_BITMAPCOMBOBOX=yes
a848cd7e
SC
2554 DEFAULT_wxUSE_CALCTRL=yes
2555 DEFAULT_wxUSE_CARET=yes
2556 DEFAULT_wxUSE_CHECKBOX=yes
2557 DEFAULT_wxUSE_CHECKLST=yes
2558 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2559 DEFAULT_wxUSE_CHOICEBOOK=yes
bd915ace 2560 DEFAULT_wxUSE_COLLPANE=yes
e9263684 2561 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
a848cd7e 2562 DEFAULT_wxUSE_COMBOBOX=yes
a57d600f 2563 DEFAULT_wxUSE_COMBOCTRL=yes
da98e9be 2564 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e 2565 DEFAULT_wxUSE_DISPLAY=yes
88bbc332 2566 DEFAULT_wxUSE_DETECT_SM=yes
e9263684
VZ
2567 DEFAULT_wxUSE_DIRPICKERCTRL=yes
2568 DEFAULT_wxUSE_FILEPICKERCTRL=yes
2569 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
2570 DEFAULT_wxUSE_GAUGE=yes
2571 DEFAULT_wxUSE_GRID=yes
f43426c1 2572 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
6954625c 2573 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 2574 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2575 DEFAULT_wxUSE_IMAGLIST=yes
2576 DEFAULT_wxUSE_LISTBOOK=yes
2577 DEFAULT_wxUSE_LISTBOX=yes
2578 DEFAULT_wxUSE_LISTCTRL=yes
2579 DEFAULT_wxUSE_NOTEBOOK=yes
a57d600f 2580 DEFAULT_wxUSE_ODCOMBOBOX=yes
a848cd7e
SC
2581 DEFAULT_wxUSE_RADIOBOX=yes
2582 DEFAULT_wxUSE_RADIOBTN=yes
2583 DEFAULT_wxUSE_SASH=yes
2584 DEFAULT_wxUSE_SCROLLBAR=yes
2585 DEFAULT_wxUSE_SLIDER=yes
2586 DEFAULT_wxUSE_SPINBTN=yes
2587 DEFAULT_wxUSE_SPINCTRL=yes
2588 DEFAULT_wxUSE_SPLITTER=yes
2589 DEFAULT_wxUSE_STATBMP=yes
2590 DEFAULT_wxUSE_STATBOX=yes
2591 DEFAULT_wxUSE_STATLINE=yes
2592 DEFAULT_wxUSE_STATTEXT=yes
2593 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2594 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2595 DEFAULT_wxUSE_TEXTCTRL=yes
2596 DEFAULT_wxUSE_TOGGLEBTN=yes
2597 DEFAULT_wxUSE_TOOLBAR=yes
2598 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
0093c2fc 2599 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 2600 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
2601 DEFAULT_wxUSE_TREECTRL=yes
2602 DEFAULT_wxUSE_POPUPWIN=yes
2603 DEFAULT_wxUSE_TIPWINDOW=yes
2604
78de529b 2605 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2606 DEFAULT_wxUSE_UNICODE_MSLU=yes
2607 DEFAULT_wxUSE_WCSRTOMBS=no
2608
2609 DEFAULT_wxUSE_PALETTE=yes
2610 DEFAULT_wxUSE_IMAGE=yes
2611 DEFAULT_wxUSE_GIF=yes
2612 DEFAULT_wxUSE_PCX=yes
bb9e79c0
VZ
2613 DEFAULT_wxUSE_TGA=yes
2614 DEFAULT_wxUSE_IFF=no DEFAULT_wxUSE_PNM=yes
a848cd7e
SC
2615 DEFAULT_wxUSE_XPM=yes
2616 DEFAULT_wxUSE_ICO_CUR=yes
2617 DEFAULT_wxUSE_ACCESSIBILITY=no
2618
2619 DEFAULT_wxUSE_MONOLITHIC=no
2620 DEFAULT_wxUSE_PLUGINS=no
2621 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2622
f34ca037 2623 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2624fi
2625
2626
2627
f34ca037 2628
a848cd7e
SC
2629for toolkit in `echo $ALL_TOOLKITS`; do
2630 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2631 if test "x$LINE" != "x" ; then
2632 has_toolkit_in_cache=1
2633 eval "DEFAULT_$LINE"
2634 eval "CACHE_$toolkit=1"
f34ca037
MW
2635
2636 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2637 if test "x$LINE" != "x" ; then
2638 eval "DEFAULT_$LINE"
2639 fi
a848cd7e
SC
2640 fi
2641done
2642
2643
2644
2645 enablestring=
2646 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2647echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2648 no_cache=0
2649 # Check whether --enable-gui or --disable-gui was given.
2650if test "${enable_gui+set}" = set; then
2651 enableval="$enable_gui"
2652
2653 if test "$enableval" = yes; then
2654 ac_cv_use_gui='wxUSE_GUI=yes'
2655 else
2656 ac_cv_use_gui='wxUSE_GUI=no'
2657 fi
2658
2659else
2660
2661 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2662 if test "x$LINE" != x ; then
2663 eval "DEFAULT_$LINE"
2664 else
2665 no_cache=1
2666 fi
2667
2668 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2669
2670fi;
2671
2672 eval "$ac_cv_use_gui"
2673 if test "$no_cache" != 1; then
2674 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2675 fi
2676
2677 if test "$wxUSE_GUI" = yes; then
2678 echo "$as_me:$LINENO: result: yes" >&5
2679echo "${ECHO_T}yes" >&6
2680 else
2681 echo "$as_me:$LINENO: result: no" >&5
2682echo "${ECHO_T}no" >&6
2683 fi
2684
2685
2686 enablestring=
2687 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2688echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2689 no_cache=0
2690 # Check whether --enable-monolithic or --disable-monolithic was given.
2691if test "${enable_monolithic+set}" = set; then
2692 enableval="$enable_monolithic"
2693
2694 if test "$enableval" = yes; then
2695 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2696 else
2697 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2698 fi
2699
2700else
2701
2702 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2703 if test "x$LINE" != x ; then
2704 eval "DEFAULT_$LINE"
2705 else
2706 no_cache=1
2707 fi
2708
2709 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2710
2711fi;
2712
2713 eval "$ac_cv_use_monolithic"
2714 if test "$no_cache" != 1; then
2715 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2716 fi
2717
2718 if test "$wxUSE_MONOLITHIC" = yes; then
2719 echo "$as_me:$LINENO: result: yes" >&5
2720echo "${ECHO_T}yes" >&6
2721 else
2722 echo "$as_me:$LINENO: result: no" >&5
2723echo "${ECHO_T}no" >&6
2724 fi
2725
2726
2727 enablestring=
2728 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2729echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2730 no_cache=0
2731 # Check whether --enable-plugins or --disable-plugins was given.
2732if test "${enable_plugins+set}" = set; then
2733 enableval="$enable_plugins"
2734
2735 if test "$enableval" = yes; then
2736 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2737 else
2738 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2739 fi
2740
2741else
2742
2743 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2744 if test "x$LINE" != x ; then
2745 eval "DEFAULT_$LINE"
2746 else
2747 no_cache=1
2748 fi
2749
2750 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2751
2752fi;
2753
2754 eval "$ac_cv_use_plugins"
2755 if test "$no_cache" != 1; then
2756 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2757 fi
2758
2759 if test "$wxUSE_PLUGINS" = yes; then
2760 echo "$as_me:$LINENO: result: yes" >&5
2761echo "${ECHO_T}yes" >&6
2762 else
2763 echo "$as_me:$LINENO: result: no" >&5
2764echo "${ECHO_T}no" >&6
2765 fi
2766
2767
1c14217d
VZ
2768 withstring=without
2769 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2770echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2771 no_cache=0
2772
2773# Check whether --with-subdirs or --without-subdirs was given.
2774if test "${with_subdirs+set}" = set; then
2775 withval="$with_subdirs"
2776
2777 if test "$withval" = yes; then
2778 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2779 else
2780 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2781 fi
2782
2783else
2784
2785 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2786 if test "x$LINE" != x ; then
2787 eval "DEFAULT_$LINE"
2788 else
2789 no_cache=1
2790 fi
2791
2792 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2793
2794fi;
2795
2796 eval "$ac_cv_use_subdirs"
2797 if test "$no_cache" != 1; then
2798 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2799 fi
2800
2801 if test "$wxWITH_SUBDIRS" = yes; then
2802 echo "$as_me:$LINENO: result: yes" >&5
2803echo "${ECHO_T}yes" >&6
2804 else
2805 echo "$as_me:$LINENO: result: no" >&5
2806echo "${ECHO_T}no" >&6
2807 fi
2808
2809
a848cd7e
SC
2810if test "$wxUSE_GUI" = "yes"; then
2811
2812
2813 enablestring=
2814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2815echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2816 no_cache=0
2817 # Check whether --enable-universal or --disable-universal was given.
2818if test "${enable_universal+set}" = set; then
2819 enableval="$enable_universal"
2820
2821 if test "$enableval" = yes; then
2822 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2823 else
2824 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2825 fi
2826
2827else
2828
2829 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2830 if test "x$LINE" != x ; then
2831 eval "DEFAULT_$LINE"
2832 else
2833 no_cache=1
2834 fi
2835
2836 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2837
2838fi;
2839
2840 eval "$ac_cv_use_universal"
2841 if test "$no_cache" != 1; then
2842 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2843 fi
2844
2845 if test "$wxUSE_UNIVERSAL" = yes; then
2846 echo "$as_me:$LINENO: result: yes" >&5
2847echo "${ECHO_T}yes" >&6
2848 else
2849 echo "$as_me:$LINENO: result: no" >&5
2850echo "${ECHO_T}no" >&6
2851 fi
2852
2853
2854# Check whether --with-gtk or --without-gtk was given.
2855if test "${with_gtk+set}" = set; then
2856 withval="$with_gtk"
2857 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2858fi;
2859
2860# Check whether --with-motif or --without-motif was given.
2861if test "${with_motif+set}" = set; then
2862 withval="$with_motif"
2863 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2864fi;
2865
2866# Check whether --with-mac or --without-mac was given.
2867if test "${with_mac+set}" = set; then
2868 withval="$with_mac"
c228d3a4 2869 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2870fi;
2871
2872# Check whether --with-cocoa or --without-cocoa was given.
2873if test "${with_cocoa+set}" = set; then
2874 withval="$with_cocoa"
c228d3a4 2875 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2876fi;
2877
2878# Check whether --with-wine or --without-wine was given.
2879if test "${with_wine+set}" = set; then
2880 withval="$with_wine"
2881 wxUSE_WINE="$withval" CACHE_WINE=1
2882fi;
2883
2884# Check whether --with-msw or --without-msw was given.
2885if test "${with_msw+set}" = set; then
2886 withval="$with_msw"
2887 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2888fi;
2889
2890# Check whether --with-pm or --without-pm was given.
2891if test "${with_pm+set}" = set; then
2892 withval="$with_pm"
2893 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2894fi;
2895
2896# Check whether --with-mgl or --without-mgl was given.
2897if test "${with_mgl+set}" = set; then
2898 withval="$with_mgl"
2899 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2900fi;
2901
b3c86150
VS
2902# Check whether --with-directfb or --without-directfb was given.
2903if test "${with_directfb+set}" = set; then
2904 withval="$with_directfb"
2905 wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
2906fi;
2907
a848cd7e
SC
2908# Check whether --with-microwin or --without-microwin was given.
2909if test "${with_microwin+set}" = set; then
2910 withval="$with_microwin"
2911 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2912fi;
2913
2914# Check whether --with-x11 or --without-x11 was given.
2915if test "${with_x11+set}" = set; then
2916 withval="$with_x11"
2917 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2918fi;
2919
2920 enablestring=
2921 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2922echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2923 no_cache=0
2924 # Check whether --enable-nanox or --disable-nanox was given.
2925if test "${enable_nanox+set}" = set; then
2926 enableval="$enable_nanox"
2927
2928 if test "$enableval" = yes; then
2929 ac_cv_use_nanox='wxUSE_NANOX=yes'
2930 else
2931 ac_cv_use_nanox='wxUSE_NANOX=no'
2932 fi
2933
2934else
2935
2936 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2937 if test "x$LINE" != x ; then
2938 eval "DEFAULT_$LINE"
2939 else
2940 no_cache=1
2941 fi
2942
2943 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2944
2945fi;
2946
2947 eval "$ac_cv_use_nanox"
2948 if test "$no_cache" != 1; then
2949 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2950 fi
2951
2952 if test "$wxUSE_NANOX" = yes; then
2953 echo "$as_me:$LINENO: result: yes" >&5
2954echo "${ECHO_T}yes" >&6
2955 else
2956 echo "$as_me:$LINENO: result: no" >&5
2957echo "${ECHO_T}no" >&6
2958 fi
2959
2960
f34ca037
MW
2961# Check whether --enable-gtk2 or --disable-gtk2 was given.
2962if test "${enable_gtk2+set}" = set; then
2963 enableval="$enable_gtk2"
2964 wxUSE_GTK2="$enableval"
2965fi;
a848cd7e 2966
a848cd7e
SC
2967 enablestring=
2968 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2969echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2970 no_cache=0
2971 # Check whether --enable-gpe or --disable-gpe was given.
2972if test "${enable_gpe+set}" = set; then
2973 enableval="$enable_gpe"
2974
2975 if test "$enableval" = yes; then
2976 ac_cv_use_gpe='wxUSE_GPE=yes'
2977 else
2978 ac_cv_use_gpe='wxUSE_GPE=no'
2979 fi
2980
2981else
2982
2983 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2984 if test "x$LINE" != x ; then
2985 eval "DEFAULT_$LINE"
2986 else
2987 no_cache=1
2988 fi
2989
2990 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2991
2992fi;
2993
2994 eval "$ac_cv_use_gpe"
2995 if test "$no_cache" != 1; then
2996 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2997 fi
2998
2999 if test "$wxUSE_GPE" = yes; then
3000 echo "$as_me:$LINENO: result: yes" >&5
3001echo "${ECHO_T}yes" >&6
3002 else
3003 echo "$as_me:$LINENO: result: no" >&5
3004echo "${ECHO_T}no" >&6
3005 fi
3006
3007
3008
3009 echo "$as_me:$LINENO: checking for --with-libpng" >&5
3010echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
3011 no_cache=0
3012
3013# Check whether --with-libpng or --without-libpng was given.
3014if test "${with_libpng+set}" = set; then
3015 withval="$with_libpng"
3016
3017 if test "$withval" = yes; then
3018 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
3019 elif test "$withval" = no; then
3020 ac_cv_use_libpng='wxUSE_LIBPNG=no'
3021 elif test "$withval" = sys; then
3022 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
3023 elif test "$withval" = builtin; then
3024 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
3025 else
3026 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3027echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3028 { (exit 1); exit 1; }; }
3029 fi
3030
3031else
3032
3033 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
3034 if test "x$LINE" != x ; then
3035 eval "DEFAULT_$LINE"
3036 else
3037 no_cache=1
3038 fi
3039
3040 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
3041
3042fi;
3043
3044 eval "$ac_cv_use_libpng"
3045 if test "$no_cache" != 1; then
3046 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
3047 fi
3048
3049 if test "$wxUSE_LIBPNG" = yes; then
3050 echo "$as_me:$LINENO: result: yes" >&5
3051echo "${ECHO_T}yes" >&6
3052 elif test "$wxUSE_LIBPNG" = no; then
3053 echo "$as_me:$LINENO: result: no" >&5
3054echo "${ECHO_T}no" >&6
3055 elif test "$wxUSE_LIBPNG" = sys; then
3056 echo "$as_me:$LINENO: result: system version" >&5
3057echo "${ECHO_T}system version" >&6
3058 elif test "$wxUSE_LIBPNG" = builtin; then
3059 echo "$as_me:$LINENO: result: builtin version" >&5
3060echo "${ECHO_T}builtin version" >&6
3061 else
3062 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3063echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3064 { (exit 1); exit 1; }; }
3065 fi
3066
3067
3068 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3069echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
3070 no_cache=0
3071
3072# Check whether --with-libjpeg or --without-libjpeg was given.
3073if test "${with_libjpeg+set}" = set; then
3074 withval="$with_libjpeg"
3075
3076 if test "$withval" = yes; then
3077 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3078 elif test "$withval" = no; then
3079 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3080 elif test "$withval" = sys; then
3081 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3082 elif test "$withval" = builtin; then
3083 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3084 else
3085 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3086echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3087 { (exit 1); exit 1; }; }
3088 fi
3089
3090else
3091
3092 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
3093 if test "x$LINE" != x ; then
3094 eval "DEFAULT_$LINE"
3095 else
3096 no_cache=1
3097 fi
3098
3099 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
3100
3101fi;
3102
3103 eval "$ac_cv_use_libjpeg"
3104 if test "$no_cache" != 1; then
3105 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3106 fi
3107
3108 if test "$wxUSE_LIBJPEG" = yes; then
3109 echo "$as_me:$LINENO: result: yes" >&5
3110echo "${ECHO_T}yes" >&6
3111 elif test "$wxUSE_LIBJPEG" = no; then
3112 echo "$as_me:$LINENO: result: no" >&5
3113echo "${ECHO_T}no" >&6
3114 elif test "$wxUSE_LIBJPEG" = sys; then
3115 echo "$as_me:$LINENO: result: system version" >&5
3116echo "${ECHO_T}system version" >&6
3117 elif test "$wxUSE_LIBJPEG" = builtin; then
3118 echo "$as_me:$LINENO: result: builtin version" >&5
3119echo "${ECHO_T}builtin version" >&6
3120 else
3121 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3122echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3123 { (exit 1); exit 1; }; }
3124 fi
3125
3126
3127 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3128echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
3129 no_cache=0
3130
3131# Check whether --with-libtiff or --without-libtiff was given.
3132if test "${with_libtiff+set}" = set; then
3133 withval="$with_libtiff"
3134
3135 if test "$withval" = yes; then
3136 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3137 elif test "$withval" = no; then
3138 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
3139 elif test "$withval" = sys; then
3140 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3141 elif test "$withval" = builtin; then
3142 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3143 else
3144 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3145echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3146 { (exit 1); exit 1; }; }
3147 fi
3148
3149else
3150
3151 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3152 if test "x$LINE" != x ; then
3153 eval "DEFAULT_$LINE"
3154 else
3155 no_cache=1
3156 fi
3157
3158 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3159
3160fi;
3161
3162 eval "$ac_cv_use_libtiff"
3163 if test "$no_cache" != 1; then
3164 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3165 fi
3166
3167 if test "$wxUSE_LIBTIFF" = yes; then
3168 echo "$as_me:$LINENO: result: yes" >&5
3169echo "${ECHO_T}yes" >&6
3170 elif test "$wxUSE_LIBTIFF" = no; then
3171 echo "$as_me:$LINENO: result: no" >&5
3172echo "${ECHO_T}no" >&6
3173 elif test "$wxUSE_LIBTIFF" = sys; then
3174 echo "$as_me:$LINENO: result: system version" >&5
3175echo "${ECHO_T}system version" >&6
3176 elif test "$wxUSE_LIBTIFF" = builtin; then
3177 echo "$as_me:$LINENO: result: builtin version" >&5
3178echo "${ECHO_T}builtin version" >&6
3179 else
3180 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3181echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3182 { (exit 1); exit 1; }; }
3183 fi
3184
3185
3186 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3187echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3188 no_cache=0
3189
3190# Check whether --with-libxpm or --without-libxpm was given.
3191if test "${with_libxpm+set}" = set; then
3192 withval="$with_libxpm"
3193
3194 if test "$withval" = yes; then
3195 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3196 elif test "$withval" = no; then
3197 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3198 elif test "$withval" = sys; then
3199 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3200 elif test "$withval" = builtin; then
3201 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3202 else
3203 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3204echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3205 { (exit 1); exit 1; }; }
3206 fi
3207
3208else
3209
3210 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3211 if test "x$LINE" != x ; then
3212 eval "DEFAULT_$LINE"
3213 else
3214 no_cache=1
3215 fi
3216
3217 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3218
3219fi;
3220
3221 eval "$ac_cv_use_libxpm"
3222 if test "$no_cache" != 1; then
3223 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3224 fi
3225
3226 if test "$wxUSE_LIBXPM" = yes; then
3227 echo "$as_me:$LINENO: result: yes" >&5
3228echo "${ECHO_T}yes" >&6
3229 elif test "$wxUSE_LIBXPM" = no; then
3230 echo "$as_me:$LINENO: result: no" >&5
3231echo "${ECHO_T}no" >&6
3232 elif test "$wxUSE_LIBXPM" = sys; then
3233 echo "$as_me:$LINENO: result: system version" >&5
3234echo "${ECHO_T}system version" >&6
3235 elif test "$wxUSE_LIBXPM" = builtin; then
3236 echo "$as_me:$LINENO: result: builtin version" >&5
3237echo "${ECHO_T}builtin version" >&6
3238 else
3239 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3240echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3241 { (exit 1); exit 1; }; }
3242 fi
3243
3244
1c14217d
VZ
3245 withstring=
3246 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3247echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3248 no_cache=0
3249
3250# Check whether --with-libmspack or --without-libmspack was given.
3251if test "${with_libmspack+set}" = set; then
3252 withval="$with_libmspack"
3253
3254 if test "$withval" = yes; then
3255 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3256 else
3257 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3258 fi
3259
3260else
3261
3262 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3263 if test "x$LINE" != x ; then
3264 eval "DEFAULT_$LINE"
3265 else
3266 no_cache=1
3267 fi
3268
3269 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3270
3271fi;
3272
3273 eval "$ac_cv_use_libmspack"
3274 if test "$no_cache" != 1; then
3275 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3276 fi
3277
3278 if test "$wxUSE_LIBMSPACK" = yes; then
3279 echo "$as_me:$LINENO: result: yes" >&5
3280echo "${ECHO_T}yes" >&6
3281 else
3282 echo "$as_me:$LINENO: result: no" >&5
3283echo "${ECHO_T}no" >&6
3284 fi
3285
3286
1c14217d
VZ
3287 withstring=
3288 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3289echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3290 no_cache=0
3291
3292# Check whether --with-sdl or --without-sdl was given.
3293if test "${with_sdl+set}" = set; then
3294 withval="$with_sdl"
3295
3296 if test "$withval" = yes; then
3297 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3298 else
3299 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3300 fi
3301
3302else
3303
3304 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3305 if test "x$LINE" != x ; then
3306 eval "DEFAULT_$LINE"
3307 else
3308 no_cache=1
3309 fi
3310
3311 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3312
3313fi;
3314
3315 eval "$ac_cv_use_sdl"
3316 if test "$no_cache" != 1; then
3317 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3318 fi
3319
3320 if test "$wxUSE_LIBSDL" = yes; then
3321 echo "$as_me:$LINENO: result: yes" >&5
3322echo "${ECHO_T}yes" >&6
3323 else
3324 echo "$as_me:$LINENO: result: no" >&5
3325echo "${ECHO_T}no" >&6
3326 fi
3327
3328
1c14217d
VZ
3329 withstring=
3330 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3331echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3332 no_cache=0
3333
3334# Check whether --with-gnomeprint or --without-gnomeprint was given.
3335if test "${with_gnomeprint+set}" = set; then
3336 withval="$with_gnomeprint"
3337
3338 if test "$withval" = yes; then
3339 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3340 else
3341 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3342 fi
3343
3344else
3345
3346 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3347 if test "x$LINE" != x ; then
3348 eval "DEFAULT_$LINE"
3349 else
3350 no_cache=1
3351 fi
3352
3353 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3354
3355fi;
3356
3357 eval "$ac_cv_use_gnomeprint"
3358 if test "$no_cache" != 1; then
3359 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3360 fi
3361
3362 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3363 echo "$as_me:$LINENO: result: yes" >&5
3364echo "${ECHO_T}yes" >&6
3365 else
3366 echo "$as_me:$LINENO: result: no" >&5
3367echo "${ECHO_T}no" >&6
3368 fi
3369
3370
2b850ae1
RR
3371 withstring=
3372 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3373echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3374 no_cache=0
3375
3376# Check whether --with-gnomevfs or --without-gnomevfs was given.
3377if test "${with_gnomevfs+set}" = set; then
3378 withval="$with_gnomevfs"
3379
3380 if test "$withval" = yes; then
3381 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3382 else
3383 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3384 fi
3385
3386else
3387
3388 LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3389 if test "x$LINE" != x ; then
3390 eval "DEFAULT_$LINE"
3391 else
3392 no_cache=1
3393 fi
3394
3395 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3396
3397fi;
3398
3399 eval "$ac_cv_use_gnomevfs"
3400 if test "$no_cache" != 1; then
3401 echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3402 fi
3403
3404 if test "$wxUSE_LIBGNOMEVFS" = yes; then
3405 echo "$as_me:$LINENO: result: yes" >&5
3406echo "${ECHO_T}yes" >&6
3407 else
3408 echo "$as_me:$LINENO: result: no" >&5
3409echo "${ECHO_T}no" >&6
3410 fi
3411
3412
3565d135
RR
3413 withstring=
3414 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3415echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3416 no_cache=0
3417
3418# Check whether --with-hildon or --without-hildon was given.
3419if test "${with_hildon+set}" = set; then
3420 withval="$with_hildon"
3421
3422 if test "$withval" = yes; then
3423 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3424 else
3425 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3426 fi
3427
3428else
3429
3430 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3431 if test "x$LINE" != x ; then
3432 eval "DEFAULT_$LINE"
3433 else
3434 no_cache=1
3435 fi
3436
3437 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3438
3439fi;
3440
3441 eval "$ac_cv_use_hildon"
3442 if test "$no_cache" != 1; then
3443 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3444 fi
3445
3446 if test "$wxUSE_LIBHILDON" = yes; then
3447 echo "$as_me:$LINENO: result: yes" >&5
3448echo "${ECHO_T}yes" >&6
3449 else
3450 echo "$as_me:$LINENO: result: no" >&5
3451echo "${ECHO_T}no" >&6
3452 fi
3453
3454
1c14217d
VZ
3455 withstring=
3456 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3457echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3458 no_cache=0
3459
3460# Check whether --with-opengl or --without-opengl was given.
3461if test "${with_opengl+set}" = set; then
3462 withval="$with_opengl"
3463
3464 if test "$withval" = yes; then
3465 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3466 else
3467 ac_cv_use_opengl='wxUSE_OPENGL=no'
3468 fi
3469
3470else
3471
3472 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3473 if test "x$LINE" != x ; then
3474 eval "DEFAULT_$LINE"
3475 else
3476 no_cache=1
3477 fi
3478
3479 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3480
3481fi;
3482
3483 eval "$ac_cv_use_opengl"
3484 if test "$no_cache" != 1; then
3485 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3486 fi
3487
3488 if test "$wxUSE_OPENGL" = yes; then
3489 echo "$as_me:$LINENO: result: yes" >&5
3490echo "${ECHO_T}yes" >&6
3491 else
3492 echo "$as_me:$LINENO: result: no" >&5
3493echo "${ECHO_T}no" >&6
3494 fi
3495
3496
4353a8df
VZ
3497if test "$wxUSE_UNIVERSAL" = "yes"; then
3498
3499# Check whether --with-themes or --without-themes was given.
3500if test "${with_themes+set}" = set; then
3501 withval="$with_themes"
3502 wxUNIV_THEMES="$withval"
3503fi;
3504fi
3505
a848cd7e
SC
3506fi
3507
3508
1c14217d
VZ
3509 withstring=
3510 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3511echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3512 no_cache=0
3513
3514# Check whether --with-dmalloc or --without-dmalloc was given.
3515if test "${with_dmalloc+set}" = set; then
3516 withval="$with_dmalloc"
3517
3518 if test "$withval" = yes; then
3519 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3520 else
3521 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3522 fi
3523
3524else
3525
3526 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3527 if test "x$LINE" != x ; then
3528 eval "DEFAULT_$LINE"
3529 else
3530 no_cache=1
3531 fi
3532
3533 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3534
3535fi;
3536
3537 eval "$ac_cv_use_dmalloc"
3538 if test "$no_cache" != 1; then
3539 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3540 fi
3541
3542 if test "$wxUSE_DMALLOC" = yes; then
3543 echo "$as_me:$LINENO: result: yes" >&5
3544echo "${ECHO_T}yes" >&6
3545 else
3546 echo "$as_me:$LINENO: result: no" >&5
3547echo "${ECHO_T}no" >&6
3548 fi
3549
3550
3551 echo "$as_me:$LINENO: checking for --with-regex" >&5
3552echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3553 no_cache=0
3554
3555# Check whether --with-regex or --without-regex was given.
3556if test "${with_regex+set}" = set; then
3557 withval="$with_regex"
3558
3559 if test "$withval" = yes; then
3560 ac_cv_use_regex='wxUSE_REGEX=yes'
3561 elif test "$withval" = no; then
3562 ac_cv_use_regex='wxUSE_REGEX=no'
3563 elif test "$withval" = sys; then
3564 ac_cv_use_regex='wxUSE_REGEX=sys'
3565 elif test "$withval" = builtin; then
3566 ac_cv_use_regex='wxUSE_REGEX=builtin'
3567 else
3568 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3569echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3570 { (exit 1); exit 1; }; }
3571 fi
3572
3573else
3574
3575 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3576 if test "x$LINE" != x ; then
3577 eval "DEFAULT_$LINE"
3578 else
3579 no_cache=1
3580 fi
3581
3582 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3583
3584fi;
3585
3586 eval "$ac_cv_use_regex"
3587 if test "$no_cache" != 1; then
3588 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3589 fi
3590
3591 if test "$wxUSE_REGEX" = yes; then
3592 echo "$as_me:$LINENO: result: yes" >&5
3593echo "${ECHO_T}yes" >&6
3594 elif test "$wxUSE_REGEX" = no; then
3595 echo "$as_me:$LINENO: result: no" >&5
3596echo "${ECHO_T}no" >&6
3597 elif test "$wxUSE_REGEX" = sys; then
3598 echo "$as_me:$LINENO: result: system version" >&5
3599echo "${ECHO_T}system version" >&6
3600 elif test "$wxUSE_REGEX" = builtin; then
3601 echo "$as_me:$LINENO: result: builtin version" >&5
3602echo "${ECHO_T}builtin version" >&6
3603 else
3604 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3605echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3606 { (exit 1); exit 1; }; }
3607 fi
3608
3609
3610 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3611echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3612 no_cache=0
3613
3614# Check whether --with-zlib or --without-zlib was given.
3615if test "${with_zlib+set}" = set; then
3616 withval="$with_zlib"
3617
3618 if test "$withval" = yes; then
3619 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3620 elif test "$withval" = no; then
3621 ac_cv_use_zlib='wxUSE_ZLIB=no'
3622 elif test "$withval" = sys; then
3623 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3624 elif test "$withval" = builtin; then
3625 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3626 else
3627 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3628echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3629 { (exit 1); exit 1; }; }
3630 fi
3631
3632else
3633
3634 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3635 if test "x$LINE" != x ; then
3636 eval "DEFAULT_$LINE"
3637 else
3638 no_cache=1
3639 fi
3640
3641 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3642
3643fi;
3644
3645 eval "$ac_cv_use_zlib"
3646 if test "$no_cache" != 1; then
3647 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3648 fi
3649
3650 if test "$wxUSE_ZLIB" = yes; then
3651 echo "$as_me:$LINENO: result: yes" >&5
3652echo "${ECHO_T}yes" >&6
3653 elif test "$wxUSE_ZLIB" = no; then
3654 echo "$as_me:$LINENO: result: no" >&5
3655echo "${ECHO_T}no" >&6
3656 elif test "$wxUSE_ZLIB" = sys; then
3657 echo "$as_me:$LINENO: result: system version" >&5
3658echo "${ECHO_T}system version" >&6
3659 elif test "$wxUSE_ZLIB" = builtin; then
3660 echo "$as_me:$LINENO: result: builtin version" >&5
3661echo "${ECHO_T}builtin version" >&6
3662 else
3663 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3664echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3665 { (exit 1); exit 1; }; }
3666 fi
3667
3668
3669 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3670echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3671 no_cache=0
3672
3673# Check whether --with-odbc or --without-odbc was given.
3674if test "${with_odbc+set}" = set; then
3675 withval="$with_odbc"
3676
3677 if test "$withval" = yes; then
3678 ac_cv_use_odbc='wxUSE_ODBC=yes'
3679 elif test "$withval" = no; then
3680 ac_cv_use_odbc='wxUSE_ODBC=no'
3681 elif test "$withval" = sys; then
3682 ac_cv_use_odbc='wxUSE_ODBC=sys'
3683 elif test "$withval" = builtin; then
3684 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3685 else
3686 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3687echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3688 { (exit 1); exit 1; }; }
3689 fi
3690
3691else
3692
3693 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3694 if test "x$LINE" != x ; then
3695 eval "DEFAULT_$LINE"
3696 else
3697 no_cache=1
3698 fi
3699
3700 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3701
3702fi;
3703
3704 eval "$ac_cv_use_odbc"
3705 if test "$no_cache" != 1; then
3706 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3707 fi
3708
3709 if test "$wxUSE_ODBC" = yes; then
3710 echo "$as_me:$LINENO: result: yes" >&5
3711echo "${ECHO_T}yes" >&6
3712 elif test "$wxUSE_ODBC" = no; then
3713 echo "$as_me:$LINENO: result: no" >&5
3714echo "${ECHO_T}no" >&6
3715 elif test "$wxUSE_ODBC" = sys; then
3716 echo "$as_me:$LINENO: result: system version" >&5
3717echo "${ECHO_T}system version" >&6
3718 elif test "$wxUSE_ODBC" = builtin; then
3719 echo "$as_me:$LINENO: result: builtin version" >&5
3720echo "${ECHO_T}builtin version" >&6
3721 else
3722 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3723echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3724 { (exit 1); exit 1; }; }
3725 fi
3726
3727
3728 echo "$as_me:$LINENO: checking for --with-expat" >&5
3729echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3730 no_cache=0
3731
3732# Check whether --with-expat or --without-expat was given.
3733if test "${with_expat+set}" = set; then
3734 withval="$with_expat"
3735
3736 if test "$withval" = yes; then
3737 ac_cv_use_expat='wxUSE_EXPAT=yes'
3738 elif test "$withval" = no; then
3739 ac_cv_use_expat='wxUSE_EXPAT=no'
3740 elif test "$withval" = sys; then
3741 ac_cv_use_expat='wxUSE_EXPAT=sys'
3742 elif test "$withval" = builtin; then
3743 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3744 else
3745 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3746echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3747 { (exit 1); exit 1; }; }
3748 fi
3749
3750else
3751
3752 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3753 if test "x$LINE" != x ; then
3754 eval "DEFAULT_$LINE"
3755 else
3756 no_cache=1
3757 fi
3758
3759 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3760
3761fi;
3762
3763 eval "$ac_cv_use_expat"
3764 if test "$no_cache" != 1; then
3765 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3766 fi
3767
3768 if test "$wxUSE_EXPAT" = yes; then
3769 echo "$as_me:$LINENO: result: yes" >&5
3770echo "${ECHO_T}yes" >&6
3771 elif test "$wxUSE_EXPAT" = no; then
3772 echo "$as_me:$LINENO: result: no" >&5
3773echo "${ECHO_T}no" >&6
3774 elif test "$wxUSE_EXPAT" = sys; then
3775 echo "$as_me:$LINENO: result: system version" >&5
3776echo "${ECHO_T}system version" >&6
3777 elif test "$wxUSE_EXPAT" = builtin; then
3778 echo "$as_me:$LINENO: result: builtin version" >&5
3779echo "${ECHO_T}builtin version" >&6
3780 else
3781 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3782echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3783 { (exit 1); exit 1; }; }
3784 fi
3785
3786
3787
3788
3789 enablestring=
3790 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3791echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3792 no_cache=0
3793 # Check whether --enable-shared or --disable-shared was given.
3794if test "${enable_shared+set}" = set; then
3795 enableval="$enable_shared"
3796
3797 if test "$enableval" = yes; then
3798 ac_cv_use_shared='wxUSE_SHARED=yes'
3799 else
3800 ac_cv_use_shared='wxUSE_SHARED=no'
3801 fi
3802
3803else
3804
3805 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3806 if test "x$LINE" != x ; then
3807 eval "DEFAULT_$LINE"
3808 else
3809 no_cache=1
3810 fi
3811
3812 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3813
3814fi;
3815
3816 eval "$ac_cv_use_shared"
3817 if test "$no_cache" != 1; then
3818 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3819 fi
3820
3821 if test "$wxUSE_SHARED" = yes; then
3822 echo "$as_me:$LINENO: result: yes" >&5
3823echo "${ECHO_T}yes" >&6
3824 else
3825 echo "$as_me:$LINENO: result: no" >&5
3826echo "${ECHO_T}no" >&6
3827 fi
3828
3829
3830 enablestring=
3831 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3832echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3833 no_cache=0
3834 # Check whether --enable-optimise or --disable-optimise was given.
3835if test "${enable_optimise+set}" = set; then
3836 enableval="$enable_optimise"
3837
3838 if test "$enableval" = yes; then
3839 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3840 else
3841 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3842 fi
3843
3844else
3845
3846 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3847 if test "x$LINE" != x ; then
3848 eval "DEFAULT_$LINE"
3849 else
3850 no_cache=1
3851 fi
3852
3853 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3854
3855fi;
3856
3857 eval "$ac_cv_use_optimise"
3858 if test "$no_cache" != 1; then
3859 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3860 fi
3861
3862 if test "$wxUSE_OPTIMISE" = yes; then
3863 echo "$as_me:$LINENO: result: yes" >&5
3864echo "${ECHO_T}yes" >&6
3865 else
3866 echo "$as_me:$LINENO: result: no" >&5
3867echo "${ECHO_T}no" >&6
3868 fi
3869
3870
3871 enablestring=
3872 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3873echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3874 no_cache=0
3875 # Check whether --enable-debug or --disable-debug was given.
3876if test "${enable_debug+set}" = set; then
3877 enableval="$enable_debug"
3878
3879 if test "$enableval" = yes; then
3880 ac_cv_use_debug='wxUSE_DEBUG=yes'
3881 else
3882 ac_cv_use_debug='wxUSE_DEBUG=no'
3883 fi
3884
3885else
3886
3887 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3888 if test "x$LINE" != x ; then
3889 eval "DEFAULT_$LINE"
3890 else
3891 no_cache=1
3892 fi
3893
3894 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3895
3896fi;
3897
3898 eval "$ac_cv_use_debug"
3899 if test "$no_cache" != 1; then
3900 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3901 fi
3902
3903 if test "$wxUSE_DEBUG" = yes; then
3904 echo "$as_me:$LINENO: result: yes" >&5
3905echo "${ECHO_T}yes" >&6
3906 else
3907 echo "$as_me:$LINENO: result: no" >&5
3908echo "${ECHO_T}no" >&6
3909 fi
3910
3911
3912 enablestring=
3913 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3914echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3915 no_cache=0
3916 # Check whether --enable-stl or --disable-stl was given.
3917if test "${enable_stl+set}" = set; then
3918 enableval="$enable_stl"
3919
3920 if test "$enableval" = yes; then
3921 ac_cv_use_stl='wxUSE_STL=yes'
3922 else
3923 ac_cv_use_stl='wxUSE_STL=no'
3924 fi
3925
3926else
3927
3928 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3929 if test "x$LINE" != x ; then
3930 eval "DEFAULT_$LINE"
3931 else
3932 no_cache=1
3933 fi
3934
3935 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3936
3937fi;
3938
3939 eval "$ac_cv_use_stl"
3940 if test "$no_cache" != 1; then
3941 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3942 fi
3943
3944 if test "$wxUSE_STL" = yes; then
3945 echo "$as_me:$LINENO: result: yes" >&5
3946echo "${ECHO_T}yes" >&6
3947 else
3948 echo "$as_me:$LINENO: result: no" >&5
3949echo "${ECHO_T}no" >&6
3950 fi
3951
3952if test "$USE_OS2" = "1"; then
69120ee4 3953 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3954
3955 enablestring=
3956 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3957echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3958 no_cache=0
3959 # Check whether --enable-omf or --disable-omf was given.
3960if test "${enable_omf+set}" = set; then
3961 enableval="$enable_omf"
3962
3963 if test "$enableval" = yes; then
3964 ac_cv_use_omf='wxUSE_OMF=yes'
3965 else
3966 ac_cv_use_omf='wxUSE_OMF=no'
3967 fi
3968
3969else
3970
3971 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3972 if test "x$LINE" != x ; then
3973 eval "DEFAULT_$LINE"
3974 else
3975 no_cache=1
3976 fi
3977
3978 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3979
3980fi;
3981
3982 eval "$ac_cv_use_omf"
3983 if test "$no_cache" != 1; then
3984 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3985 fi
3986
3987 if test "$wxUSE_OMF" = yes; then
3988 echo "$as_me:$LINENO: result: yes" >&5
3989echo "${ECHO_T}yes" >&6
3990 else
3991 echo "$as_me:$LINENO: result: no" >&5
3992echo "${ECHO_T}no" >&6
3993 fi
3994
3995fi
3996
3997if test "$wxUSE_DEBUG" = "yes"; then
3998 DEFAULT_wxUSE_DEBUG_FLAG=yes
3999 DEFAULT_wxUSE_DEBUG_INFO=yes
4000 BUILD=debug
4001elif test "$wxUSE_DEBUG" = "no"; then
4002 DEFAULT_wxUSE_DEBUG_FLAG=no
4003 DEFAULT_wxUSE_DEBUG_INFO=no
4004 BUILD=release
4005fi
4006
4007
4008 enablestring=
4009 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4010echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
4011 no_cache=0
4012 # Check whether --enable-debug_flag or --disable-debug_flag was given.
4013if test "${enable_debug_flag+set}" = set; then
4014 enableval="$enable_debug_flag"
4015
4016 if test "$enableval" = yes; then
4017 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4018 else
4019 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4020 fi
4021
4022else
4023
4024 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
4025 if test "x$LINE" != x ; then
4026 eval "DEFAULT_$LINE"
4027 else
4028 no_cache=1
4029 fi
4030
4031 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
4032
4033fi;
4034
4035 eval "$ac_cv_use_debug_flag"
4036 if test "$no_cache" != 1; then
4037 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
4038 fi
4039
4040 if test "$wxUSE_DEBUG_FLAG" = yes; then
4041 echo "$as_me:$LINENO: result: yes" >&5
4042echo "${ECHO_T}yes" >&6
4043 else
4044 echo "$as_me:$LINENO: result: no" >&5
4045echo "${ECHO_T}no" >&6
4046 fi
4047
4048
4049 enablestring=
4050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4051echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
4052 no_cache=0
4053 # Check whether --enable-debug_info or --disable-debug_info was given.
4054if test "${enable_debug_info+set}" = set; then
4055 enableval="$enable_debug_info"
4056
4057 if test "$enableval" = yes; then
4058 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4059 else
4060 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4061 fi
4062
4063else
4064
4065 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
4066 if test "x$LINE" != x ; then
4067 eval "DEFAULT_$LINE"
4068 else
4069 no_cache=1
4070 fi
4071
4072 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4073
4074fi;
4075
4076 eval "$ac_cv_use_debug_info"
4077 if test "$no_cache" != 1; then
4078 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4079 fi
4080
4081 if test "$wxUSE_DEBUG_INFO" = yes; then
4082 echo "$as_me:$LINENO: result: yes" >&5
4083echo "${ECHO_T}yes" >&6
4084 else
4085 echo "$as_me:$LINENO: result: no" >&5
4086echo "${ECHO_T}no" >&6
4087 fi
4088
4089
4090 enablestring=
4091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4092echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
4093 no_cache=0
4094 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
4095if test "${enable_debug_gdb+set}" = set; then
4096 enableval="$enable_debug_gdb"
4097
4098 if test "$enableval" = yes; then
4099 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4100 else
4101 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4102 fi
4103
4104else
4105
4106 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
4107 if test "x$LINE" != x ; then
4108 eval "DEFAULT_$LINE"
4109 else
4110 no_cache=1
4111 fi
4112
4113 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4114
4115fi;
4116
4117 eval "$ac_cv_use_debug_gdb"
4118 if test "$no_cache" != 1; then
4119 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4120 fi
4121
4122 if test "$wxUSE_DEBUG_GDB" = yes; then
4123 echo "$as_me:$LINENO: result: yes" >&5
4124echo "${ECHO_T}yes" >&6
4125 else
4126 echo "$as_me:$LINENO: result: no" >&5
4127echo "${ECHO_T}no" >&6
4128 fi
4129
4130
4131 enablestring=
4132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4133echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
4134 no_cache=0
4135 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
4136if test "${enable_debug_cntxt+set}" = set; then
4137 enableval="$enable_debug_cntxt"
4138
4139 if test "$enableval" = yes; then
4140 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4141 else
4142 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4143 fi
4144
4145else
4146
4147 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
4148 if test "x$LINE" != x ; then
4149 eval "DEFAULT_$LINE"
4150 else
4151 no_cache=1
4152 fi
4153
4154 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4155
4156fi;
4157
4158 eval "$ac_cv_use_debug_cntxt"
4159 if test "$no_cache" != 1; then
4160 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4161 fi
4162
4163 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4164 echo "$as_me:$LINENO: result: yes" >&5
4165echo "${ECHO_T}yes" >&6
4166 else
4167 echo "$as_me:$LINENO: result: no" >&5
4168echo "${ECHO_T}no" >&6
4169 fi
4170
4171
4172 enablestring=
4173 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4174echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4175 no_cache=0
4176 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4177if test "${enable_mem_tracing+set}" = set; then
4178 enableval="$enable_mem_tracing"
4179
4180 if test "$enableval" = yes; then
4181 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4182 else
4183 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4184 fi
4185
4186else
4187
4188 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4189 if test "x$LINE" != x ; then
4190 eval "DEFAULT_$LINE"
4191 else
4192 no_cache=1
4193 fi
4194
4195 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4196
4197fi;
4198
4199 eval "$ac_cv_use_mem_tracing"
4200 if test "$no_cache" != 1; then
4201 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4202 fi
4203
4204 if test "$wxUSE_MEM_TRACING" = yes; then
4205 echo "$as_me:$LINENO: result: yes" >&5
4206echo "${ECHO_T}yes" >&6
4207 else
4208 echo "$as_me:$LINENO: result: no" >&5
4209echo "${ECHO_T}no" >&6
4210 fi
4211
4212
4213 enablestring=
4214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4215echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4216 no_cache=0
4217 # Check whether --enable-profile or --disable-profile was given.
4218if test "${enable_profile+set}" = set; then
4219 enableval="$enable_profile"
4220
4221 if test "$enableval" = yes; then
4222 ac_cv_use_profile='wxUSE_PROFILE=yes'
4223 else
4224 ac_cv_use_profile='wxUSE_PROFILE=no'
4225 fi
4226
4227else
4228
4229 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4230 if test "x$LINE" != x ; then
4231 eval "DEFAULT_$LINE"
4232 else
4233 no_cache=1
4234 fi
4235
4236 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4237
4238fi;
4239
4240 eval "$ac_cv_use_profile"
4241 if test "$no_cache" != 1; then
4242 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4243 fi
4244
4245 if test "$wxUSE_PROFILE" = yes; then
4246 echo "$as_me:$LINENO: result: yes" >&5
4247echo "${ECHO_T}yes" >&6
4248 else
4249 echo "$as_me:$LINENO: result: no" >&5
4250echo "${ECHO_T}no" >&6
4251 fi
4252
4253
4254 enablestring=
4255 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4256echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4257 no_cache=0
4258 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4259if test "${enable_no_rtti+set}" = set; then
4260 enableval="$enable_no_rtti"
4261
4262 if test "$enableval" = yes; then
4263 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4264 else
4265 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4266 fi
4267
4268else
4269
4270 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4271 if test "x$LINE" != x ; then
4272 eval "DEFAULT_$LINE"
4273 else
4274 no_cache=1
4275 fi
4276
4277 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4278
4279fi;
4280
4281 eval "$ac_cv_use_no_rtti"
4282 if test "$no_cache" != 1; then
4283 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4284 fi
4285
4286 if test "$wxUSE_NO_RTTI" = yes; then
4287 echo "$as_me:$LINENO: result: yes" >&5
4288echo "${ECHO_T}yes" >&6
4289 else
4290 echo "$as_me:$LINENO: result: no" >&5
4291echo "${ECHO_T}no" >&6
4292 fi
4293
4294
4295 enablestring=
4296 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4297echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4298 no_cache=0
4299 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4300if test "${enable_no_exceptions+set}" = set; then
4301 enableval="$enable_no_exceptions"
4302
4303 if test "$enableval" = yes; then
4304 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4305 else
4306 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4307 fi
4308
4309else
4310
4311 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4312 if test "x$LINE" != x ; then
4313 eval "DEFAULT_$LINE"
4314 else
4315 no_cache=1
4316 fi
4317
4318 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4319
4320fi;
4321
4322 eval "$ac_cv_use_no_exceptions"
4323 if test "$no_cache" != 1; then
4324 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4325 fi
4326
4327 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4328 echo "$as_me:$LINENO: result: yes" >&5
4329echo "${ECHO_T}yes" >&6
4330 else
4331 echo "$as_me:$LINENO: result: no" >&5
4332echo "${ECHO_T}no" >&6
4333 fi
4334
4335
4336 enablestring=
4337 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4338echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4339 no_cache=0
4340 # Check whether --enable-permissive or --disable-permissive was given.
4341if test "${enable_permissive+set}" = set; then
4342 enableval="$enable_permissive"
4343
4344 if test "$enableval" = yes; then
4345 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4346 else
4347 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4348 fi
4349
4350else
4351
4352 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4353 if test "x$LINE" != x ; then
4354 eval "DEFAULT_$LINE"
4355 else
4356 no_cache=1
4357 fi
4358
4359 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4360
4361fi;
4362
4363 eval "$ac_cv_use_permissive"
4364 if test "$no_cache" != 1; then
4365 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4366 fi
4367
4368 if test "$wxUSE_PERMISSIVE" = yes; then
4369 echo "$as_me:$LINENO: result: yes" >&5
4370echo "${ECHO_T}yes" >&6
4371 else
4372 echo "$as_me:$LINENO: result: no" >&5
4373echo "${ECHO_T}no" >&6
4374 fi
4375
4376
4377 enablestring=
4378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4379echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4380 no_cache=0
4381 # Check whether --enable-no_deps or --disable-no_deps was given.
4382if test "${enable_no_deps+set}" = set; then
4383 enableval="$enable_no_deps"
4384
4385 if test "$enableval" = yes; then
4386 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4387 else
4388 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4389 fi
4390
4391else
4392
4393 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4394 if test "x$LINE" != x ; then
4395 eval "DEFAULT_$LINE"
4396 else
4397 no_cache=1
4398 fi
4399
4400 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4401
4402fi;
4403
4404 eval "$ac_cv_use_no_deps"
4405 if test "$no_cache" != 1; then
4406 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4407 fi
4408
4409 if test "$wxUSE_NO_DEPS" = yes; then
4410 echo "$as_me:$LINENO: result: yes" >&5
4411echo "${ECHO_T}yes" >&6
4412 else
4413 echo "$as_me:$LINENO: result: no" >&5
4414echo "${ECHO_T}no" >&6
4415 fi
4416
4417
95768535 4418 enablestring=
7afc46ab
KO
4419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4420echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4421 no_cache=0
4422 # Check whether --enable-universal_binary or --disable-universal_binary was given.
4423if test "${enable_universal_binary+set}" = set; then
4424 enableval="$enable_universal_binary"
4425
95768535 4426 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
7afc46ab
KO
4427
4428else
4429
4430 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4431 if test "x$LINE" != x ; then
4432 eval "DEFAULT_$LINE"
95768535 4433 wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
7afc46ab
KO
4434 else
4435 no_cache=1
95768535 4436 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
7afc46ab
KO
4437 fi
4438
7afc46ab
KO
4439fi;
4440
95768535 4441 eval "$wx_cv_use_universal_binary"
7afc46ab 4442 if test "$no_cache" != 1; then
95768535 4443 echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
7afc46ab
KO
4444 fi
4445
95768535
MW
4446 echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
4447echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6
7afc46ab
KO
4448
4449
a848cd7e 4450
dee1a63f
MB
4451 enablestring=enable
4452 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4453echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4454 no_cache=0
dee1a63f
MB
4455 # Check whether --enable-compat24 or --disable-compat24 was given.
4456if test "${enable_compat24+set}" = set; then
4457 enableval="$enable_compat24"
a848cd7e
SC
4458
4459 if test "$enableval" = yes; then
dee1a63f 4460 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4461 else
dee1a63f 4462 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4463 fi
4464
4465else
4466
dee1a63f 4467 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4468 if test "x$LINE" != x ; then
4469 eval "DEFAULT_$LINE"
4470 else
4471 no_cache=1
4472 fi
4473
dee1a63f 4474 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4475
4476fi;
4477
dee1a63f 4478 eval "$ac_cv_use_compat24"
a848cd7e 4479 if test "$no_cache" != 1; then
dee1a63f 4480 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4481 fi
4482
dee1a63f 4483 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4484 echo "$as_me:$LINENO: result: yes" >&5
4485echo "${ECHO_T}yes" >&6
4486 else
4487 echo "$as_me:$LINENO: result: no" >&5
4488echo "${ECHO_T}no" >&6
4489 fi
4490
4491
4492 enablestring=disable
dee1a63f
MB
4493 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4494echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4495 no_cache=0
dee1a63f
MB
4496 # Check whether --enable-compat26 or --disable-compat26 was given.
4497if test "${enable_compat26+set}" = set; then
4498 enableval="$enable_compat26"
a848cd7e
SC
4499
4500 if test "$enableval" = yes; then
dee1a63f 4501 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4502 else
dee1a63f 4503 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4504 fi
4505
4506else
4507
dee1a63f 4508 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4509 if test "x$LINE" != x ; then
4510 eval "DEFAULT_$LINE"
4511 else
4512 no_cache=1
4513 fi
4514
dee1a63f 4515 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4516
4517fi;
4518
dee1a63f 4519 eval "$ac_cv_use_compat26"
a848cd7e 4520 if test "$no_cache" != 1; then
dee1a63f 4521 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4522 fi
4523
dee1a63f 4524 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4525 echo "$as_me:$LINENO: result: yes" >&5
4526echo "${ECHO_T}yes" >&6
4527 else
4528 echo "$as_me:$LINENO: result: no" >&5
4529echo "${ECHO_T}no" >&6
4530 fi
4531
4532
ffa0583f
RL
4533
4534 enablestring=
4535 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4536echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4537 no_cache=0
4538 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4539if test "${enable_rpath+set}" = set; then
4540 enableval="$enable_rpath"
ffa0583f
RL
4541
4542 if test "$enableval" = yes; then
4543 ac_cv_use_rpath='wxUSE_RPATH=yes'
4544 else
4545 ac_cv_use_rpath='wxUSE_RPATH=no'
4546 fi
4547
4548else
4549
4550 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4551 if test "x$LINE" != x ; then
4552 eval "DEFAULT_$LINE"
4553 else
4554 no_cache=1
4555 fi
4556
4557 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4558
a848cd7e
SC
4559fi;
4560
ffa0583f
RL
4561 eval "$ac_cv_use_rpath"
4562 if test "$no_cache" != 1; then
4563 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4564 fi
4565
4566 if test "$wxUSE_RPATH" = yes; then
4567 echo "$as_me:$LINENO: result: yes" >&5
4568echo "${ECHO_T}yes" >&6
4569 else
4570 echo "$as_me:$LINENO: result: no" >&5
4571echo "${ECHO_T}no" >&6
4572 fi
4573
a848cd7e
SC
4574
4575
4576
4577
4578 enablestring=
4579 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4580echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4581 no_cache=0
4582 # Check whether --enable-intl or --disable-intl was given.
4583if test "${enable_intl+set}" = set; then
4584 enableval="$enable_intl"
4585
4586 if test "$enableval" = yes; then
4587 ac_cv_use_intl='wxUSE_INTL=yes'
4588 else
4589 ac_cv_use_intl='wxUSE_INTL=no'
4590 fi
4591
4592else
4593
4594 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4595 if test "x$LINE" != x ; then
4596 eval "DEFAULT_$LINE"
4597 else
4598 no_cache=1
4599 fi
4600
4601 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4602
4603fi;
4604
4605 eval "$ac_cv_use_intl"
4606 if test "$no_cache" != 1; then
4607 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4608 fi
4609
4610 if test "$wxUSE_INTL" = yes; then
4611 echo "$as_me:$LINENO: result: yes" >&5
4612echo "${ECHO_T}yes" >&6
4613 else
4614 echo "$as_me:$LINENO: result: no" >&5
4615echo "${ECHO_T}no" >&6
4616 fi
4617
4618
4619 enablestring=
4620 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4621echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4622 no_cache=0
4623 # Check whether --enable-config or --disable-config was given.
4624if test "${enable_config+set}" = set; then
4625 enableval="$enable_config"
4626
4627 if test "$enableval" = yes; then
4628 ac_cv_use_config='wxUSE_CONFIG=yes'
4629 else
4630 ac_cv_use_config='wxUSE_CONFIG=no'
4631 fi
4632
4633else
4634
4635 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4636 if test "x$LINE" != x ; then
4637 eval "DEFAULT_$LINE"
4638 else
4639 no_cache=1
4640 fi
4641
4642 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4643
4644fi;
4645
4646 eval "$ac_cv_use_config"
4647 if test "$no_cache" != 1; then
4648 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4649 fi
4650
4651 if test "$wxUSE_CONFIG" = yes; then
4652 echo "$as_me:$LINENO: result: yes" >&5
4653echo "${ECHO_T}yes" >&6
4654 else
4655 echo "$as_me:$LINENO: result: no" >&5
4656echo "${ECHO_T}no" >&6
4657 fi
4658
4659
4660
4661 enablestring=
4662 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4663echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4664 no_cache=0
4665 # Check whether --enable-protocols or --disable-protocols was given.
4666if test "${enable_protocols+set}" = set; then
4667 enableval="$enable_protocols"
4668
4669 if test "$enableval" = yes; then
4670 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4671 else
4672 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4673 fi
4674
4675else
4676
4677 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4678 if test "x$LINE" != x ; then
4679 eval "DEFAULT_$LINE"
4680 else
4681 no_cache=1
4682 fi
4683
4684 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4685
4686fi;
4687
4688 eval "$ac_cv_use_protocols"
4689 if test "$no_cache" != 1; then
4690 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4691 fi
4692
4693 if test "$wxUSE_PROTOCOL" = yes; then
4694 echo "$as_me:$LINENO: result: yes" >&5
4695echo "${ECHO_T}yes" >&6
4696 else
4697 echo "$as_me:$LINENO: result: no" >&5
4698echo "${ECHO_T}no" >&6
4699 fi
4700
4701
4702 enablestring=
4703 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4704echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4705 no_cache=0
4706 # Check whether --enable-ftp or --disable-ftp was given.
4707if test "${enable_ftp+set}" = set; then
4708 enableval="$enable_ftp"
4709
4710 if test "$enableval" = yes; then
4711 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4712 else
4713 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4714 fi
4715
4716else
4717
4718 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4719 if test "x$LINE" != x ; then
4720 eval "DEFAULT_$LINE"
4721 else
4722 no_cache=1
4723 fi
4724
4725 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4726
4727fi;
4728
4729 eval "$ac_cv_use_ftp"
4730 if test "$no_cache" != 1; then
4731 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4732 fi
4733
4734 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4735 echo "$as_me:$LINENO: result: yes" >&5
4736echo "${ECHO_T}yes" >&6
4737 else
4738 echo "$as_me:$LINENO: result: no" >&5
4739echo "${ECHO_T}no" >&6
4740 fi
4741
4742
4743 enablestring=
4744 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4745echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4746 no_cache=0
4747 # Check whether --enable-http or --disable-http was given.
4748if test "${enable_http+set}" = set; then
4749 enableval="$enable_http"
4750
4751 if test "$enableval" = yes; then
4752 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4753 else
4754 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4755 fi
4756
4757else
4758
4759 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4760 if test "x$LINE" != x ; then
4761 eval "DEFAULT_$LINE"
4762 else
4763 no_cache=1
4764 fi
4765
4766 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4767
4768fi;
4769
4770 eval "$ac_cv_use_http"
4771 if test "$no_cache" != 1; then
4772 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4773 fi
4774
4775 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4776 echo "$as_me:$LINENO: result: yes" >&5
4777echo "${ECHO_T}yes" >&6
4778 else
4779 echo "$as_me:$LINENO: result: no" >&5
4780echo "${ECHO_T}no" >&6
4781 fi
4782
4783
4784 enablestring=
4785 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4786echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4787 no_cache=0
4788 # Check whether --enable-fileproto or --disable-fileproto was given.
4789if test "${enable_fileproto+set}" = set; then
4790 enableval="$enable_fileproto"
4791
4792 if test "$enableval" = yes; then
4793 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4794 else
4795 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4796 fi
4797
4798else
4799
4800 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4801 if test "x$LINE" != x ; then
4802 eval "DEFAULT_$LINE"
4803 else
4804 no_cache=1
4805 fi
4806
4807 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4808
4809fi;
4810
4811 eval "$ac_cv_use_fileproto"
4812 if test "$no_cache" != 1; then
4813 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4814 fi
4815
4816 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4817 echo "$as_me:$LINENO: result: yes" >&5
4818echo "${ECHO_T}yes" >&6
4819 else
4820 echo "$as_me:$LINENO: result: no" >&5
4821echo "${ECHO_T}no" >&6
4822 fi
4823
4824
4825 enablestring=
4826 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4827echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4828 no_cache=0
4829 # Check whether --enable-sockets or --disable-sockets was given.
4830if test "${enable_sockets+set}" = set; then
4831 enableval="$enable_sockets"
4832
4833 if test "$enableval" = yes; then
4834 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4835 else
4836 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4837 fi
4838
4839else
4840
4841 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4842 if test "x$LINE" != x ; then
4843 eval "DEFAULT_$LINE"
4844 else
4845 no_cache=1
4846 fi
4847
4848 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4849
4850fi;
4851
4852 eval "$ac_cv_use_sockets"
4853 if test "$no_cache" != 1; then
4854 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4855 fi
4856
4857 if test "$wxUSE_SOCKETS" = yes; then
4858 echo "$as_me:$LINENO: result: yes" >&5
4859echo "${ECHO_T}yes" >&6
4860 else
4861 echo "$as_me:$LINENO: result: no" >&5
4862echo "${ECHO_T}no" >&6
4863 fi
4864
4865
4866 enablestring=
4867 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4868echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4869 no_cache=0
4870 # Check whether --enable-ole or --disable-ole was given.
4871if test "${enable_ole+set}" = set; then
4872 enableval="$enable_ole"
4873
4874 if test "$enableval" = yes; then
4875 ac_cv_use_ole='wxUSE_OLE=yes'
4876 else
4877 ac_cv_use_ole='wxUSE_OLE=no'
4878 fi
4879
4880else
4881
4882 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4883 if test "x$LINE" != x ; then
4884 eval "DEFAULT_$LINE"
4885 else
4886 no_cache=1
4887 fi
4888
4889 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4890
4891fi;
4892
4893 eval "$ac_cv_use_ole"
4894 if test "$no_cache" != 1; then
4895 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4896 fi
4897
4898 if test "$wxUSE_OLE" = yes; then
4899 echo "$as_me:$LINENO: result: yes" >&5
4900echo "${ECHO_T}yes" >&6
4901 else
4902 echo "$as_me:$LINENO: result: no" >&5
4903echo "${ECHO_T}no" >&6
4904 fi
4905
4906
4907 enablestring=
4908 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4909echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4910 no_cache=0
4911 # Check whether --enable-dataobj or --disable-dataobj was given.
4912if test "${enable_dataobj+set}" = set; then
4913 enableval="$enable_dataobj"
4914
4915 if test "$enableval" = yes; then
4916 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4917 else
4918 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4919 fi
4920
4921else
4922
4923 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4924 if test "x$LINE" != x ; then
4925 eval "DEFAULT_$LINE"
4926 else
4927 no_cache=1
4928 fi
4929
4930 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4931
4932fi;
4933
4934 eval "$ac_cv_use_dataobj"
4935 if test "$no_cache" != 1; then
4936 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4937 fi
4938
4939 if test "$wxUSE_DATAOBJ" = yes; then
4940 echo "$as_me:$LINENO: result: yes" >&5
4941echo "${ECHO_T}yes" >&6
4942 else
4943 echo "$as_me:$LINENO: result: no" >&5
4944echo "${ECHO_T}no" >&6
4945 fi
4946
4947
4948
4949 enablestring=
4950 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4951echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4952 no_cache=0
4953 # Check whether --enable-ipc or --disable-ipc was given.
4954if test "${enable_ipc+set}" = set; then
4955 enableval="$enable_ipc"
4956
4957 if test "$enableval" = yes; then
4958 ac_cv_use_ipc='wxUSE_IPC=yes'
4959 else
4960 ac_cv_use_ipc='wxUSE_IPC=no'
4961 fi
4962
4963else
4964
4965 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4966 if test "x$LINE" != x ; then
4967 eval "DEFAULT_$LINE"
4968 else
4969 no_cache=1
4970 fi
4971
4972 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4973
4974fi;
4975
4976 eval "$ac_cv_use_ipc"
4977 if test "$no_cache" != 1; then
4978 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4979 fi
4980
4981 if test "$wxUSE_IPC" = yes; then
4982 echo "$as_me:$LINENO: result: yes" >&5
4983echo "${ECHO_T}yes" >&6
4984 else
4985 echo "$as_me:$LINENO: result: no" >&5
4986echo "${ECHO_T}no" >&6
4987 fi
4988
4989
4990
4991 enablestring=
4992 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4993echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4994 no_cache=0
4995 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4996if test "${enable_apple_ieee+set}" = set; then
4997 enableval="$enable_apple_ieee"
4998
4999 if test "$enableval" = yes; then
5000 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
5001 else
5002 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
5003 fi
5004
5005else
5006
5007 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
5008 if test "x$LINE" != x ; then
5009 eval "DEFAULT_$LINE"
5010 else
5011 no_cache=1
5012 fi
5013
5014 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
5015
5016fi;
5017
5018 eval "$ac_cv_use_apple_ieee"
5019 if test "$no_cache" != 1; then
5020 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
5021 fi
5022
5023 if test "$wxUSE_APPLE_IEEE" = yes; then
5024 echo "$as_me:$LINENO: result: yes" >&5
5025echo "${ECHO_T}yes" >&6
5026 else
5027 echo "$as_me:$LINENO: result: no" >&5
5028echo "${ECHO_T}no" >&6
5029 fi
5030
5031
81f90336
MW
5032 enablestring=
5033 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
5034echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
5035 no_cache=0
5036 # Check whether --enable-arcstream or --disable-arcstream was given.
5037if test "${enable_arcstream+set}" = set; then
5038 enableval="$enable_arcstream"
5039
5040 if test "$enableval" = yes; then
9e8e867f 5041 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 5042 else
9e8e867f 5043 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
5044 fi
5045
5046else
5047
9e8e867f 5048 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
5049 if test "x$LINE" != x ; then
5050 eval "DEFAULT_$LINE"
5051 else
5052 no_cache=1
5053 fi
5054
9e8e867f 5055 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
5056
5057fi;
5058
5059 eval "$ac_cv_use_arcstream"
5060 if test "$no_cache" != 1; then
5061 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
5062 fi
5063
9e8e867f 5064 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
5065 echo "$as_me:$LINENO: result: yes" >&5
5066echo "${ECHO_T}yes" >&6
5067 else
5068 echo "$as_me:$LINENO: result: no" >&5
5069echo "${ECHO_T}no" >&6
5070 fi
5071
5072
a848cd7e 5073 enablestring=
36b6448c
VZ
5074 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5075echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 5076 no_cache=0
36b6448c
VZ
5077 # Check whether --enable-backtrace or --disable-backtrace was given.
5078if test "${enable_backtrace+set}" = set; then
5079 enableval="$enable_backtrace"
a848cd7e
SC
5080
5081 if test "$enableval" = yes; then
36b6448c 5082 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 5083 else
36b6448c 5084 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
5085 fi
5086
5087else
5088
36b6448c 5089 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
5090 if test "x$LINE" != x ; then
5091 eval "DEFAULT_$LINE"
5092 else
5093 no_cache=1
5094 fi
5095
36b6448c 5096 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
5097
5098fi;
5099
36b6448c 5100 eval "$ac_cv_use_backtrace"
a848cd7e 5101 if test "$no_cache" != 1; then
36b6448c 5102 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5103 fi
5104
36b6448c 5105 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
5106 echo "$as_me:$LINENO: result: yes" >&5
5107echo "${ECHO_T}yes" >&6
5108 else
5109 echo "$as_me:$LINENO: result: no" >&5
5110echo "${ECHO_T}no" >&6
5111 fi
5112
5113
eaff0f0d 5114 enablestring=
36b6448c
VZ
5115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5116echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 5117 no_cache=0
36b6448c
VZ
5118 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5119if test "${enable_catch_segvs+set}" = set; then
5120 enableval="$enable_catch_segvs"
eaff0f0d
VZ
5121
5122 if test "$enableval" = yes; then
36b6448c 5123 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 5124 else
36b6448c 5125 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
5126 fi
5127
5128else
5129
36b6448c 5130 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
5131 if test "x$LINE" != x ; then
5132 eval "DEFAULT_$LINE"
5133 else
5134 no_cache=1
5135 fi
5136
36b6448c 5137 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
5138
5139fi;
5140
36b6448c 5141 eval "$ac_cv_use_catch_segvs"
eaff0f0d 5142 if test "$no_cache" != 1; then
36b6448c 5143 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
5144 fi
5145
36b6448c 5146 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
5147 echo "$as_me:$LINENO: result: yes" >&5
5148echo "${ECHO_T}yes" >&6
5149 else
5150 echo "$as_me:$LINENO: result: no" >&5
5151echo "${ECHO_T}no" >&6
5152 fi
5153
5154
a848cd7e
SC
5155 enablestring=
5156 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5157echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5158 no_cache=0
5159 # Check whether --enable-cmdline or --disable-cmdline was given.
5160if test "${enable_cmdline+set}" = set; then
5161 enableval="$enable_cmdline"
5162
5163 if test "$enableval" = yes; then
5164 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5165 else
5166 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5167 fi
5168
5169else
5170
5171 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5172 if test "x$LINE" != x ; then
5173 eval "DEFAULT_$LINE"
5174 else
5175 no_cache=1
5176 fi
5177
5178 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5179
5180fi;
5181
5182 eval "$ac_cv_use_cmdline"
5183 if test "$no_cache" != 1; then
5184 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5185 fi
5186
5187 if test "$wxUSE_CMDLINE_PARSER" = yes; then
5188 echo "$as_me:$LINENO: result: yes" >&5
5189echo "${ECHO_T}yes" >&6
5190 else
5191 echo "$as_me:$LINENO: result: no" >&5
5192echo "${ECHO_T}no" >&6
5193 fi
5194
5195
5196 enablestring=
5197 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5198echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5199 no_cache=0
5200 # Check whether --enable-datetime or --disable-datetime was given.
5201if test "${enable_datetime+set}" = set; then
5202 enableval="$enable_datetime"
5203
5204 if test "$enableval" = yes; then
5205 ac_cv_use_datetime='wxUSE_DATETIME=yes'
5206 else
5207 ac_cv_use_datetime='wxUSE_DATETIME=no'
5208 fi
5209
5210else
5211
5212 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5213 if test "x$LINE" != x ; then
5214 eval "DEFAULT_$LINE"
5215 else
5216 no_cache=1
5217 fi
5218
5219 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5220
5221fi;
5222
5223 eval "$ac_cv_use_datetime"
5224 if test "$no_cache" != 1; then
5225 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5226 fi
5227
5228 if test "$wxUSE_DATETIME" = yes; then
5229 echo "$as_me:$LINENO: result: yes" >&5
5230echo "${ECHO_T}yes" >&6
5231 else
5232 echo "$as_me:$LINENO: result: no" >&5
5233echo "${ECHO_T}no" >&6
5234 fi
5235
5236
36b6448c
VZ
5237 enablestring=
5238 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5239echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5240 no_cache=0
5241 # Check whether --enable-debugreport or --disable-debugreport was given.
5242if test "${enable_debugreport+set}" = set; then
5243 enableval="$enable_debugreport"
5244
5245 if test "$enableval" = yes; then
5246 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5247 else
5248 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5249 fi
5250
5251else
5252
5253 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5254 if test "x$LINE" != x ; then
5255 eval "DEFAULT_$LINE"
5256 else
5257 no_cache=1
5258 fi
5259
5260 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5261
5262fi;
5263
5264 eval "$ac_cv_use_debugreport"
5265 if test "$no_cache" != 1; then
5266 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5267 fi
5268
5269 if test "$wxUSE_DEBUGREPORT" = yes; then
5270 echo "$as_me:$LINENO: result: yes" >&5
5271echo "${ECHO_T}yes" >&6
5272 else
5273 echo "$as_me:$LINENO: result: no" >&5
5274echo "${ECHO_T}no" >&6
5275 fi
5276
5277
a848cd7e
SC
5278 enablestring=
5279 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5280echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5281 no_cache=0
5282 # Check whether --enable-dialupman or --disable-dialupman was given.
5283if test "${enable_dialupman+set}" = set; then
5284 enableval="$enable_dialupman"
5285
5286 if test "$enableval" = yes; then
5287 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5288 else
5289 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5290 fi
5291
5292else
5293
5294 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5295 if test "x$LINE" != x ; then
5296 eval "DEFAULT_$LINE"
5297 else
5298 no_cache=1
5299 fi
5300
5301 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5302
5303fi;
5304
5305 eval "$ac_cv_use_dialupman"
5306 if test "$no_cache" != 1; then
5307 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5308 fi
5309
5310 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5311 echo "$as_me:$LINENO: result: yes" >&5
5312echo "${ECHO_T}yes" >&6
5313 else
5314 echo "$as_me:$LINENO: result: no" >&5
5315echo "${ECHO_T}no" >&6
5316 fi
5317
5318
5319 enablestring=
5320 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5321echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5322 no_cache=0
5323 # Check whether --enable-dynlib or --disable-dynlib was given.
5324if test "${enable_dynlib+set}" = set; then
5325 enableval="$enable_dynlib"
5326
5327 if test "$enableval" = yes; then
5328 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5329 else
5330 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5331 fi
5332
5333else
5334
5335 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5336 if test "x$LINE" != x ; then
5337 eval "DEFAULT_$LINE"
5338 else
5339 no_cache=1
5340 fi
5341
5342 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5343
5344fi;
5345
5346 eval "$ac_cv_use_dynlib"
5347 if test "$no_cache" != 1; then
5348 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5349 fi
5350
5351 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5352 echo "$as_me:$LINENO: result: yes" >&5
5353echo "${ECHO_T}yes" >&6
5354 else
5355 echo "$as_me:$LINENO: result: no" >&5
5356echo "${ECHO_T}no" >&6
5357 fi
5358
5359
5360 enablestring=
5361 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5362echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5363 no_cache=0
5364 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5365if test "${enable_dynamicloader+set}" = set; then
5366 enableval="$enable_dynamicloader"
5367
5368 if test "$enableval" = yes; then
5369 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5370 else
5371 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5372 fi
5373
5374else
5375
5376 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5377 if test "x$LINE" != x ; then
5378 eval "DEFAULT_$LINE"
5379 else
5380 no_cache=1
5381 fi
5382
5383 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5384
5385fi;
5386
5387 eval "$ac_cv_use_dynamicloader"
5388 if test "$no_cache" != 1; then
5389 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5390 fi
5391
5392 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5393 echo "$as_me:$LINENO: result: yes" >&5
5394echo "${ECHO_T}yes" >&6
5395 else
5396 echo "$as_me:$LINENO: result: no" >&5
5397echo "${ECHO_T}no" >&6
5398 fi
5399
5400
5401 enablestring=
5402 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5403echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5404 no_cache=0
5405 # Check whether --enable-exceptions or --disable-exceptions was given.
5406if test "${enable_exceptions+set}" = set; then
5407 enableval="$enable_exceptions"
5408
5409 if test "$enableval" = yes; then
5410 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5411 else
5412 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5413 fi
5414
5415else
5416
5417 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5418 if test "x$LINE" != x ; then
5419 eval "DEFAULT_$LINE"
5420 else
5421 no_cache=1
5422 fi
5423
5424 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5425
5426fi;
5427
5428 eval "$ac_cv_use_exceptions"
5429 if test "$no_cache" != 1; then
5430 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5431 fi
5432
5433 if test "$wxUSE_EXCEPTIONS" = yes; then
5434 echo "$as_me:$LINENO: result: yes" >&5
5435echo "${ECHO_T}yes" >&6
5436 else
5437 echo "$as_me:$LINENO: result: no" >&5
5438echo "${ECHO_T}no" >&6
5439 fi
5440
5441
5442 enablestring=
5443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5444echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5445 no_cache=0
5446 # Check whether --enable-ffile or --disable-ffile was given.
5447if test "${enable_ffile+set}" = set; then
5448 enableval="$enable_ffile"
5449
5450 if test "$enableval" = yes; then
5451 ac_cv_use_ffile='wxUSE_FFILE=yes'
5452 else
5453 ac_cv_use_ffile='wxUSE_FFILE=no'
5454 fi
5455
5456else
5457
5458 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5459 if test "x$LINE" != x ; then
5460 eval "DEFAULT_$LINE"
5461 else
5462 no_cache=1
5463 fi
5464
5465 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5466
5467fi;
5468
5469 eval "$ac_cv_use_ffile"
5470 if test "$no_cache" != 1; then
5471 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5472 fi
5473
5474 if test "$wxUSE_FFILE" = yes; then
5475 echo "$as_me:$LINENO: result: yes" >&5
5476echo "${ECHO_T}yes" >&6
5477 else
5478 echo "$as_me:$LINENO: result: no" >&5
5479echo "${ECHO_T}no" >&6
5480 fi
5481
5482
5483 enablestring=
5484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5485echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5486 no_cache=0
5487 # Check whether --enable-file or --disable-file was given.
5488if test "${enable_file+set}" = set; then
5489 enableval="$enable_file"
5490
5491 if test "$enableval" = yes; then
5492 ac_cv_use_file='wxUSE_FILE=yes'
5493 else
5494 ac_cv_use_file='wxUSE_FILE=no'
5495 fi
5496
5497else
5498
5499 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5500 if test "x$LINE" != x ; then
5501 eval "DEFAULT_$LINE"
5502 else
5503 no_cache=1
5504 fi
5505
5506 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5507
5508fi;
5509
5510 eval "$ac_cv_use_file"
5511 if test "$no_cache" != 1; then
5512 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5513 fi
5514
5515 if test "$wxUSE_FILE" = yes; then
5516 echo "$as_me:$LINENO: result: yes" >&5
5517echo "${ECHO_T}yes" >&6
5518 else
5519 echo "$as_me:$LINENO: result: no" >&5
5520echo "${ECHO_T}no" >&6
5521 fi
5522
5523
5524 enablestring=
5525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5526echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5527 no_cache=0
5528 # Check whether --enable-filesystem or --disable-filesystem was given.
5529if test "${enable_filesystem+set}" = set; then
5530 enableval="$enable_filesystem"
5531
5532 if test "$enableval" = yes; then
5533 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5534 else
5535 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5536 fi
5537
5538else
5539
5540 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5541 if test "x$LINE" != x ; then
5542 eval "DEFAULT_$LINE"
5543 else
5544 no_cache=1
5545 fi
5546
5547 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5548
5549fi;
5550
5551 eval "$ac_cv_use_filesystem"
5552 if test "$no_cache" != 1; then
5553 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5554 fi
5555
5556 if test "$wxUSE_FILESYSTEM" = yes; then
5557 echo "$as_me:$LINENO: result: yes" >&5
5558echo "${ECHO_T}yes" >&6
5559 else
5560 echo "$as_me:$LINENO: result: no" >&5
5561echo "${ECHO_T}no" >&6
5562 fi
5563
5564
5565 enablestring=
5566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5567echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5568 no_cache=0
5569 # Check whether --enable-fontmap or --disable-fontmap was given.
5570if test "${enable_fontmap+set}" = set; then
5571 enableval="$enable_fontmap"
5572
5573 if test "$enableval" = yes; then
5574 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5575 else
5576 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5577 fi
5578
5579else
5580
5581 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5582 if test "x$LINE" != x ; then
5583 eval "DEFAULT_$LINE"
5584 else
5585 no_cache=1
5586 fi
5587
5588 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5589
5590fi;
5591
5592 eval "$ac_cv_use_fontmap"
5593 if test "$no_cache" != 1; then
5594 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5595 fi
5596
5597 if test "$wxUSE_FONTMAP" = yes; then
5598 echo "$as_me:$LINENO: result: yes" >&5
5599echo "${ECHO_T}yes" >&6
5600 else
5601 echo "$as_me:$LINENO: result: no" >&5
5602echo "${ECHO_T}no" >&6
5603 fi
5604
5605
26e422a9
MW
5606 enablestring=
5607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
5608echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6
5609 no_cache=0
5610 # Check whether --enable-fs_archive or --disable-fs_archive was given.
5611if test "${enable_fs_archive+set}" = set; then
5612 enableval="$enable_fs_archive"
5613
5614 if test "$enableval" = yes; then
5615 ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
5616 else
5617 ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
5618 fi
5619
5620else
5621
5622 LINE=`grep "wxUSE_FS_ARCHIVE" ${wx_arg_cache_file}`
5623 if test "x$LINE" != x ; then
5624 eval "DEFAULT_$LINE"
5625 else
5626 no_cache=1
5627 fi
5628
5629 ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE='$DEFAULT_wxUSE_FS_ARCHIVE
5630
5631fi;
5632
5633 eval "$ac_cv_use_fs_archive"
5634 if test "$no_cache" != 1; then
5635 echo $ac_cv_use_fs_archive >> ${wx_arg_cache_file}.tmp
5636 fi
5637
5638 if test "$wxUSE_FS_ARCHIVE" = yes; then
5639 echo "$as_me:$LINENO: result: yes" >&5
5640echo "${ECHO_T}yes" >&6
5641 else
5642 echo "$as_me:$LINENO: result: no" >&5
5643echo "${ECHO_T}no" >&6
5644 fi
5645
5646
a848cd7e
SC
5647 enablestring=
5648 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5649echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5650 no_cache=0
5651 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5652if test "${enable_fs_inet+set}" = set; then
5653 enableval="$enable_fs_inet"
5654
5655 if test "$enableval" = yes; then
5656 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5657 else
5658 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5659 fi
5660
5661else
5662
5663 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5664 if test "x$LINE" != x ; then
5665 eval "DEFAULT_$LINE"
5666 else
5667 no_cache=1
5668 fi
5669
5670 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5671
5672fi;
5673
5674 eval "$ac_cv_use_fs_inet"
5675 if test "$no_cache" != 1; then
5676 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5677 fi
5678
5679 if test "$wxUSE_FS_INET" = yes; then
5680 echo "$as_me:$LINENO: result: yes" >&5
5681echo "${ECHO_T}yes" >&6
5682 else
5683 echo "$as_me:$LINENO: result: no" >&5
5684echo "${ECHO_T}no" >&6
5685 fi
5686
5687
5688 enablestring=
5689 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5690echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5691 no_cache=0
5692 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5693if test "${enable_fs_zip+set}" = set; then
5694 enableval="$enable_fs_zip"
5695
5696 if test "$enableval" = yes; then
5697 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5698 else
5699 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5700 fi
5701
5702else
5703
5704 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5705 if test "x$LINE" != x ; then
5706 eval "DEFAULT_$LINE"
5707 else
5708 no_cache=1
5709 fi
5710
5711 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5712
5713fi;
5714
5715 eval "$ac_cv_use_fs_zip"
5716 if test "$no_cache" != 1; then
5717 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5718 fi
5719
5720 if test "$wxUSE_FS_ZIP" = yes; then
5721 echo "$as_me:$LINENO: result: yes" >&5
5722echo "${ECHO_T}yes" >&6
5723 else
5724 echo "$as_me:$LINENO: result: no" >&5
5725echo "${ECHO_T}no" >&6
5726 fi
5727
5728
5729 enablestring=
5730 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5731echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5732 no_cache=0
5733 # Check whether --enable-geometry or --disable-geometry was given.
5734if test "${enable_geometry+set}" = set; then
5735 enableval="$enable_geometry"
5736
5737 if test "$enableval" = yes; then
5738 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5739 else
5740 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5741 fi
5742
5743else
5744
5745 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5746 if test "x$LINE" != x ; then
5747 eval "DEFAULT_$LINE"
5748 else
5749 no_cache=1
5750 fi
5751
5752 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5753
5754fi;
5755
5756 eval "$ac_cv_use_geometry"
5757 if test "$no_cache" != 1; then
5758 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5759 fi
5760
5761 if test "$wxUSE_GEOMETRY" = yes; then
5762 echo "$as_me:$LINENO: result: yes" >&5
5763echo "${ECHO_T}yes" >&6
5764 else
5765 echo "$as_me:$LINENO: result: no" >&5
5766echo "${ECHO_T}no" >&6
5767 fi
5768
5769
5770 enablestring=
5771 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5772echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5773 no_cache=0
5774 # Check whether --enable-log or --disable-log was given.
5775if test "${enable_log+set}" = set; then
5776 enableval="$enable_log"
5777
5778 if test "$enableval" = yes; then
5779 ac_cv_use_log='wxUSE_LOG=yes'
5780 else
5781 ac_cv_use_log='wxUSE_LOG=no'
5782 fi
5783
5784else
5785
5786 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5787 if test "x$LINE" != x ; then
5788 eval "DEFAULT_$LINE"
5789 else
5790 no_cache=1
5791 fi
5792
5793 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5794
5795fi;
5796
5797 eval "$ac_cv_use_log"
5798 if test "$no_cache" != 1; then
5799 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5800 fi
5801
5802 if test "$wxUSE_LOG" = yes; then
5803 echo "$as_me:$LINENO: result: yes" >&5
5804echo "${ECHO_T}yes" >&6
5805 else
5806 echo "$as_me:$LINENO: result: no" >&5
5807echo "${ECHO_T}no" >&6
5808 fi
5809
5810
5811 enablestring=
5812 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5813echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5814 no_cache=0
5815 # Check whether --enable-longlong or --disable-longlong was given.
5816if test "${enable_longlong+set}" = set; then
5817 enableval="$enable_longlong"
5818
5819 if test "$enableval" = yes; then
5820 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5821 else
5822 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5823 fi
5824
5825else
5826
5827 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5828 if test "x$LINE" != x ; then
5829 eval "DEFAULT_$LINE"
5830 else
5831 no_cache=1
5832 fi
5833
5834 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5835
5836fi;
5837
5838 eval "$ac_cv_use_longlong"
5839 if test "$no_cache" != 1; then
5840 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5841 fi
5842
5843 if test "$wxUSE_LONGLONG" = yes; then
5844 echo "$as_me:$LINENO: result: yes" >&5
5845echo "${ECHO_T}yes" >&6
5846 else
5847 echo "$as_me:$LINENO: result: no" >&5
5848echo "${ECHO_T}no" >&6
5849 fi
5850
5851
5852 enablestring=
5853 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5854echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5855 no_cache=0
5856 # Check whether --enable-mimetype or --disable-mimetype was given.
5857if test "${enable_mimetype+set}" = set; then
5858 enableval="$enable_mimetype"
5859
5860 if test "$enableval" = yes; then
5861 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5862 else
5863 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5864 fi
5865
5866else
5867
5868 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5869 if test "x$LINE" != x ; then
5870 eval "DEFAULT_$LINE"
5871 else
5872 no_cache=1
5873 fi
5874
5875 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5876
5877fi;
5878
5879 eval "$ac_cv_use_mimetype"
5880 if test "$no_cache" != 1; then
5881 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5882 fi
5883
5884 if test "$wxUSE_MIMETYPE" = yes; then
5885 echo "$as_me:$LINENO: result: yes" >&5
5886echo "${ECHO_T}yes" >&6
5887 else
5888 echo "$as_me:$LINENO: result: no" >&5
5889echo "${ECHO_T}no" >&6
5890 fi
5891
5892
5893 enablestring=
5894 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5895echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5896 no_cache=0
5897 # Check whether --enable-mslu or --disable-mslu was given.
5898if test "${enable_mslu+set}" = set; then
5899 enableval="$enable_mslu"
5900
5901 if test "$enableval" = yes; then
5902 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5903 else
5904 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5905 fi
5906
5907else
5908
5909 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5910 if test "x$LINE" != x ; then
5911 eval "DEFAULT_$LINE"
5912 else
5913 no_cache=1
5914 fi
5915
5916 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5917
5918fi;
5919
5920 eval "$ac_cv_use_mslu"
5921 if test "$no_cache" != 1; then
5922 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5923 fi
5924
5925 if test "$wxUSE_UNICODE_MSLU" = yes; then
5926 echo "$as_me:$LINENO: result: yes" >&5
5927echo "${ECHO_T}yes" >&6
5928 else
5929 echo "$as_me:$LINENO: result: no" >&5
5930echo "${ECHO_T}no" >&6
5931 fi
5932
5933
5934 enablestring=
5935 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5936echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5937 no_cache=0
5938 # Check whether --enable-snglinst or --disable-snglinst was given.
5939if test "${enable_snglinst+set}" = set; then
5940 enableval="$enable_snglinst"
5941
5942 if test "$enableval" = yes; then
5943 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5944 else
5945 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5946 fi
5947
5948else
5949
5950 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5951 if test "x$LINE" != x ; then
5952 eval "DEFAULT_$LINE"
5953 else
5954 no_cache=1
5955 fi
5956
5957 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5958
5959fi;
5960
5961 eval "$ac_cv_use_snglinst"
5962 if test "$no_cache" != 1; then
5963 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5964 fi
5965
5966 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5967 echo "$as_me:$LINENO: result: yes" >&5
5968echo "${ECHO_T}yes" >&6
5969 else
5970 echo "$as_me:$LINENO: result: no" >&5
5971echo "${ECHO_T}no" >&6
5972 fi
5973
5974
5975 enablestring=
07158944
VZ
5976 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5977echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5978 no_cache=0
07158944
VZ
5979 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5980if test "${enable_std_iostreams+set}" = set; then
5981 enableval="$enable_std_iostreams"
a848cd7e
SC
5982
5983 if test "$enableval" = yes; then
07158944 5984 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5985 else
07158944 5986 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5987 fi
5988
5989else
5990
07158944 5991 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5992 if test "x$LINE" != x ; then
5993 eval "DEFAULT_$LINE"
5994 else
5995 no_cache=1
5996 fi
5997
07158944 5998 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5999
6000fi;
6001
07158944 6002 eval "$ac_cv_use_std_iostreams"
a848cd7e 6003 if test "$no_cache" != 1; then
07158944 6004 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6005 fi
6006
07158944 6007 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
6008 echo "$as_me:$LINENO: result: yes" >&5
6009echo "${ECHO_T}yes" >&6
6010 else
6011 echo "$as_me:$LINENO: result: no" >&5
6012echo "${ECHO_T}no" >&6
6013 fi
6014
6015
59746b65
MW
6016 enablestring=
6017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
6018echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
6019 no_cache=0
6020 # Check whether --enable-std_string or --disable-std_string was given.
6021if test "${enable_std_string+set}" = set; then
6022 enableval="$enable_std_string"
6023
6024 if test "$enableval" = yes; then
6025 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
6026 else
6027 ac_cv_use_std_string='wxUSE_STD_STRING=no'
6028 fi
6029
6030else
6031
6032 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
6033 if test "x$LINE" != x ; then
6034 eval "DEFAULT_$LINE"
6035 else
6036 no_cache=1
6037 fi
6038
6039 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
6040
6041fi;
6042
6043 eval "$ac_cv_use_std_string"
6044 if test "$no_cache" != 1; then
6045 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
6046 fi
6047
6048 if test "$wxUSE_STD_STRING" = yes; then
6049 echo "$as_me:$LINENO: result: yes" >&5
6050echo "${ECHO_T}yes" >&6
6051 else
6052 echo "$as_me:$LINENO: result: no" >&5
6053echo "${ECHO_T}no" >&6
6054 fi
6055
6056
a848cd7e 6057 enablestring=
07158944
VZ
6058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
6059echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 6060 no_cache=0
07158944
VZ
6061 # Check whether --enable-stdpaths or --disable-stdpaths was given.
6062if test "${enable_stdpaths+set}" = set; then
6063 enableval="$enable_stdpaths"
a848cd7e
SC
6064
6065 if test "$enableval" = yes; then
07158944 6066 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 6067 else
07158944 6068 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
6069 fi
6070
6071else
6072
07158944 6073 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
6074 if test "x$LINE" != x ; then
6075 eval "DEFAULT_$LINE"
6076 else
6077 no_cache=1
6078 fi
6079
07158944 6080 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
6081
6082fi;
6083
07158944 6084 eval "$ac_cv_use_stdpaths"
a848cd7e 6085 if test "$no_cache" != 1; then
07158944 6086 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6087 fi
6088
07158944 6089 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
6090 echo "$as_me:$LINENO: result: yes" >&5
6091echo "${ECHO_T}yes" >&6
6092 else
6093 echo "$as_me:$LINENO: result: no" >&5
6094echo "${ECHO_T}no" >&6
6095 fi
6096
6097
6098 enablestring=
6099 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
6100echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
6101 no_cache=0
6102 # Check whether --enable-stopwatch or --disable-stopwatch was given.
6103if test "${enable_stopwatch+set}" = set; then
6104 enableval="$enable_stopwatch"
6105
6106 if test "$enableval" = yes; then
6107 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
6108 else
6109 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
6110 fi
6111
6112else
6113
6114 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
6115 if test "x$LINE" != x ; then
6116 eval "DEFAULT_$LINE"
6117 else
6118 no_cache=1
6119 fi
6120
6121 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
6122
6123fi;
6124
6125 eval "$ac_cv_use_stopwatch"
6126 if test "$no_cache" != 1; then
6127 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
6128 fi
6129
6130 if test "$wxUSE_STOPWATCH" = yes; then
6131 echo "$as_me:$LINENO: result: yes" >&5
6132echo "${ECHO_T}yes" >&6
6133 else
6134 echo "$as_me:$LINENO: result: no" >&5
6135echo "${ECHO_T}no" >&6
6136 fi
6137
6138
07158944
VZ
6139 enablestring=
6140 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
6141echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
6142 no_cache=0
6143 # Check whether --enable-streams or --disable-streams was given.
6144if test "${enable_streams+set}" = set; then
6145 enableval="$enable_streams"
6146
6147 if test "$enableval" = yes; then
6148 ac_cv_use_streams='wxUSE_STREAMS=yes'
6149 else
6150 ac_cv_use_streams='wxUSE_STREAMS=no'
6151 fi
6152
6153else
6154
6155 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
6156 if test "x$LINE" != x ; then
6157 eval "DEFAULT_$LINE"
6158 else
6159 no_cache=1
6160 fi
6161
6162 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6163
6164fi;
6165
6166 eval "$ac_cv_use_streams"
6167 if test "$no_cache" != 1; then
6168 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
6169 fi
6170
6171 if test "$wxUSE_STREAMS" = yes; then
6172 echo "$as_me:$LINENO: result: yes" >&5
6173echo "${ECHO_T}yes" >&6
6174 else
6175 echo "$as_me:$LINENO: result: no" >&5
6176echo "${ECHO_T}no" >&6
6177 fi
6178
6179
a848cd7e
SC
6180 enablestring=
6181 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
6182echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
6183 no_cache=0
6184 # Check whether --enable-system_options or --disable-system_options was given.
6185if test "${enable_system_options+set}" = set; then
6186 enableval="$enable_system_options"
6187
6188 if test "$enableval" = yes; then
6189 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6190 else
6191 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6192 fi
6193
6194else
6195
6196 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6197 if test "x$LINE" != x ; then
6198 eval "DEFAULT_$LINE"
6199 else
6200 no_cache=1
6201 fi
6202
6203 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6204
6205fi;
6206
6207 eval "$ac_cv_use_system_options"
6208 if test "$no_cache" != 1; then
6209 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6210 fi
6211
6212 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6213 echo "$as_me:$LINENO: result: yes" >&5
6214echo "${ECHO_T}yes" >&6
6215 else
6216 echo "$as_me:$LINENO: result: no" >&5
6217echo "${ECHO_T}no" >&6
6218 fi
6219
6220
26e422a9
MW
6221 enablestring=
6222 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
6223echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6
6224 no_cache=0
6225 # Check whether --enable-tarstream or --disable-tarstream was given.
6226if test "${enable_tarstream+set}" = set; then
6227 enableval="$enable_tarstream"
6228
6229 if test "$enableval" = yes; then
6230 ac_cv_use_tarstream='wxUSE_TARSTREAM=yes'
6231 else
6232 ac_cv_use_tarstream='wxUSE_TARSTREAM=no'
6233 fi
6234
6235else
6236
6237 LINE=`grep "wxUSE_TARSTREAM" ${wx_arg_cache_file}`
6238 if test "x$LINE" != x ; then
6239 eval "DEFAULT_$LINE"
6240 else
6241 no_cache=1
6242 fi
6243
6244 ac_cv_use_tarstream='wxUSE_TARSTREAM='$DEFAULT_wxUSE_TARSTREAM
6245
6246fi;
6247
6248 eval "$ac_cv_use_tarstream"
6249 if test "$no_cache" != 1; then
6250 echo $ac_cv_use_tarstream >> ${wx_arg_cache_file}.tmp
6251 fi
6252
6253 if test "$wxUSE_TARSTREAM" = yes; then
6254 echo "$as_me:$LINENO: result: yes" >&5
6255echo "${ECHO_T}yes" >&6
6256 else
6257 echo "$as_me:$LINENO: result: no" >&5
6258echo "${ECHO_T}no" >&6
6259 fi
6260
6261
a848cd7e
SC
6262 enablestring=
6263 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6264echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6265 no_cache=0
6266 # Check whether --enable-textbuf or --disable-textbuf was given.
6267if test "${enable_textbuf+set}" = set; then
6268 enableval="$enable_textbuf"
6269
6270 if test "$enableval" = yes; then
6271 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6272 else
6273 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6274 fi
6275
6276else
6277
6278 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6279 if test "x$LINE" != x ; then
6280 eval "DEFAULT_$LINE"
6281 else
6282 no_cache=1
6283 fi
6284
6285 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6286
6287fi;
6288
6289 eval "$ac_cv_use_textbuf"
6290 if test "$no_cache" != 1; then
6291 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6292 fi
6293
6294 if test "$wxUSE_TEXTBUFFER" = yes; then
6295 echo "$as_me:$LINENO: result: yes" >&5
6296echo "${ECHO_T}yes" >&6
6297 else
6298 echo "$as_me:$LINENO: result: no" >&5
6299echo "${ECHO_T}no" >&6
6300 fi
6301
6302
6303 enablestring=
6304 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6305echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6306 no_cache=0
6307 # Check whether --enable-textfile or --disable-textfile was given.
6308if test "${enable_textfile+set}" = set; then
6309 enableval="$enable_textfile"
6310
6311 if test "$enableval" = yes; then
6312 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6313 else
6314 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6315 fi
6316
6317else
6318
6319 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6320 if test "x$LINE" != x ; then
6321 eval "DEFAULT_$LINE"
6322 else
6323 no_cache=1
6324 fi
6325
6326 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6327
6328fi;
6329
6330 eval "$ac_cv_use_textfile"
6331 if test "$no_cache" != 1; then
6332 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6333 fi
6334
6335 if test "$wxUSE_TEXTFILE" = yes; then
6336 echo "$as_me:$LINENO: result: yes" >&5
6337echo "${ECHO_T}yes" >&6
6338 else
6339 echo "$as_me:$LINENO: result: no" >&5
6340echo "${ECHO_T}no" >&6
6341 fi
6342
6343
6344 enablestring=
6345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6346echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6347 no_cache=0
6348 # Check whether --enable-timer or --disable-timer was given.
6349if test "${enable_timer+set}" = set; then
6350 enableval="$enable_timer"
6351
6352 if test "$enableval" = yes; then
6353 ac_cv_use_timer='wxUSE_TIMER=yes'
6354 else
6355 ac_cv_use_timer='wxUSE_TIMER=no'
6356 fi
6357
6358else
6359
6360 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6361 if test "x$LINE" != x ; then
6362 eval "DEFAULT_$LINE"
6363 else
6364 no_cache=1
6365 fi
6366
6367 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6368
6369fi;
6370
6371 eval "$ac_cv_use_timer"
6372 if test "$no_cache" != 1; then
6373 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6374 fi
6375
6376 if test "$wxUSE_TIMER" = yes; then
6377 echo "$as_me:$LINENO: result: yes" >&5
6378echo "${ECHO_T}yes" >&6
6379 else
6380 echo "$as_me:$LINENO: result: no" >&5
6381echo "${ECHO_T}no" >&6
6382 fi
6383
6384
6385 enablestring=
6386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6387echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6388 no_cache=0
6389 # Check whether --enable-unicode or --disable-unicode was given.
6390if test "${enable_unicode+set}" = set; then
6391 enableval="$enable_unicode"
6392
6393 if test "$enableval" = yes; then
6394 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6395 else
6396 ac_cv_use_unicode='wxUSE_UNICODE=no'
6397 fi
6398
6399else
6400
6401 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6402 if test "x$LINE" != x ; then
6403 eval "DEFAULT_$LINE"
6404 else
6405 no_cache=1
6406 fi
6407
6408 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6409
6410fi;
6411
6412 eval "$ac_cv_use_unicode"
6413 if test "$no_cache" != 1; then
6414 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6415 fi
6416
6417 if test "$wxUSE_UNICODE" = yes; then
6418 echo "$as_me:$LINENO: result: yes" >&5
6419echo "${ECHO_T}yes" >&6
6420 else
6421 echo "$as_me:$LINENO: result: no" >&5
6422echo "${ECHO_T}no" >&6
6423 fi
6424
6425
6426 enablestring=
6427 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6428echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6429 no_cache=0
6430 # Check whether --enable-sound or --disable-sound was given.
6431if test "${enable_sound+set}" = set; then
6432 enableval="$enable_sound"
6433
6434 if test "$enableval" = yes; then
6435 ac_cv_use_sound='wxUSE_SOUND=yes'
6436 else
6437 ac_cv_use_sound='wxUSE_SOUND=no'
6438 fi
6439
6440else
6441
6442 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6443 if test "x$LINE" != x ; then
6444 eval "DEFAULT_$LINE"
6445 else
6446 no_cache=1
6447 fi
6448
6449 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6450
6451fi;
6452
6453 eval "$ac_cv_use_sound"
6454 if test "$no_cache" != 1; then
6455 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6456 fi
6457
6458 if test "$wxUSE_SOUND" = yes; then
6459 echo "$as_me:$LINENO: result: yes" >&5
6460echo "${ECHO_T}yes" >&6
6461 else
6462 echo "$as_me:$LINENO: result: no" >&5
6463echo "${ECHO_T}no" >&6
6464 fi
6465
6466
3b57de8b
RL
6467 enablestring=
6468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6469echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6470 no_cache=0
6471 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6472if test "${enable_mediactrl+set}" = set; then
6473 enableval="$enable_mediactrl"
6474
6475 if test "$enableval" = yes; then
6476 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6477 else
6478 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6479 fi
6480
6481else
6482
6483 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6484 if test "x$LINE" != x ; then
6485 eval "DEFAULT_$LINE"
6486 else
6487 no_cache=1
6488 fi
6489
6490 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6491
6492fi;
6493
6494 eval "$ac_cv_use_mediactrl"
6495 if test "$no_cache" != 1; then
6496 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6497 fi
6498
6499 if test "$wxUSE_MEDIACTRL" = yes; then
6500 echo "$as_me:$LINENO: result: yes" >&5
6501echo "${ECHO_T}yes" >&6
6502 else
6503 echo "$as_me:$LINENO: result: no" >&5
6504echo "${ECHO_T}no" >&6
6505 fi
6506
6507
f10e38c4
VZ
6508 enablestring=
6509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6510echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6511 no_cache=0
6512 # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6513if test "${enable_gstreamer8+set}" = set; then
6514 enableval="$enable_gstreamer8"
6515
6516 if test "$enableval" = yes; then
6517 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6518 else
6519 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6520 fi
6521
6522else
6523
6524 LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6525 if test "x$LINE" != x ; then
6526 eval "DEFAULT_$LINE"
6527 else
6528 no_cache=1
6529 fi
6530
6531 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6532
6533fi;
6534
6535 eval "$ac_cv_use_gstreamer8"
6536 if test "$no_cache" != 1; then
6537 echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6538 fi
6539
6540 if test "$wxUSE_GSTREAMER8" = yes; then
6541 echo "$as_me:$LINENO: result: yes" >&5
6542echo "${ECHO_T}yes" >&6
6543 else
6544 echo "$as_me:$LINENO: result: no" >&5
6545echo "${ECHO_T}no" >&6
6546 fi
6547
6548
a848cd7e 6549 enablestring=
8b6682b9
JS
6550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6551echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
a848cd7e 6552 no_cache=0
8b6682b9
JS
6553 # Check whether --enable-printfposparam or --disable-printfposparam was given.
6554if test "${enable_printfposparam+set}" = set; then
6555 enableval="$enable_printfposparam"
a848cd7e
SC
6556
6557 if test "$enableval" = yes; then
8b6682b9 6558 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
a848cd7e 6559 else
8b6682b9 6560 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
a848cd7e
SC
6561 fi
6562
6563else
6564
8b6682b9 6565 LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
a848cd7e
SC
6566 if test "x$LINE" != x ; then
6567 eval "DEFAULT_$LINE"
6568 else
6569 no_cache=1
6570 fi
6571
8b6682b9 6572 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
a848cd7e
SC
6573
6574fi;
6575
8b6682b9 6576 eval "$ac_cv_use_printfposparam"
a848cd7e 6577 if test "$no_cache" != 1; then
8b6682b9 6578 echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6579 fi
6580
8b6682b9 6581 if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
a848cd7e
SC
6582 echo "$as_me:$LINENO: result: yes" >&5
6583echo "${ECHO_T}yes" >&6
6584 else
6585 echo "$as_me:$LINENO: result: no" >&5
6586echo "${ECHO_T}no" >&6
6587 fi
6588
6589
6590 enablestring=
6591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6592echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6593 no_cache=0
6594 # Check whether --enable-zipstream or --disable-zipstream was given.
6595if test "${enable_zipstream+set}" = set; then
6596 enableval="$enable_zipstream"
6597
6598 if test "$enableval" = yes; then
6599 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6600 else
6601 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6602 fi
6603
6604else
6605
6606 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6607 if test "x$LINE" != x ; then
6608 eval "DEFAULT_$LINE"
6609 else
6610 no_cache=1
6611 fi
6612
6613 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6614
6615fi;
6616
6617 eval "$ac_cv_use_zipstream"
6618 if test "$no_cache" != 1; then
6619 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6620 fi
6621
6622 if test "$wxUSE_ZIPSTREAM" = yes; then
6623 echo "$as_me:$LINENO: result: yes" >&5
6624echo "${ECHO_T}yes" >&6
6625 else
6626 echo "$as_me:$LINENO: result: no" >&5
6627echo "${ECHO_T}no" >&6
6628 fi
6629
6630
a848cd7e
SC
6631
6632 enablestring=
6633 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6634echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6635 no_cache=0
6636 # Check whether --enable-url or --disable-url was given.
6637if test "${enable_url+set}" = set; then
6638 enableval="$enable_url"
6639
6640 if test "$enableval" = yes; then
6641 ac_cv_use_url='wxUSE_URL=yes'
6642 else
6643 ac_cv_use_url='wxUSE_URL=no'
6644 fi
6645
6646else
6647
6648 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6649 if test "x$LINE" != x ; then
6650 eval "DEFAULT_$LINE"
6651 else
6652 no_cache=1
6653 fi
6654
6655 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6656
6657fi;
6658
6659 eval "$ac_cv_use_url"
6660 if test "$no_cache" != 1; then
6661 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6662 fi
6663
6664 if test "$wxUSE_URL" = yes; then
6665 echo "$as_me:$LINENO: result: yes" >&5
6666echo "${ECHO_T}yes" >&6
6667 else
6668 echo "$as_me:$LINENO: result: no" >&5
6669echo "${ECHO_T}no" >&6
6670 fi
6671
6672
ca5c6ac3
VZ
6673 enablestring=
6674 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
6675echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6
6676 no_cache=0
6677 # Check whether --enable-variant or --disable-variant was given.
6678if test "${enable_variant+set}" = set; then
6679 enableval="$enable_variant"
6680
6681 if test "$enableval" = yes; then
6682 ac_cv_use_variant='wxUSE_VARIANT=yes'
6683 else
6684 ac_cv_use_variant='wxUSE_VARIANT=no'
6685 fi
6686
6687else
6688
6689 LINE=`grep "wxUSE_VARIANT" ${wx_arg_cache_file}`
6690 if test "x$LINE" != x ; then
6691 eval "DEFAULT_$LINE"
6692 else
6693 no_cache=1
6694 fi
6695
6696 ac_cv_use_variant='wxUSE_VARIANT='$DEFAULT_wxUSE_VARIANT
6697
6698fi;
6699
6700 eval "$ac_cv_use_variant"
6701 if test "$no_cache" != 1; then
6702 echo $ac_cv_use_variant >> ${wx_arg_cache_file}.tmp
6703 fi
6704
6705 if test "$wxUSE_VARIANT" = yes; then
6706 echo "$as_me:$LINENO: result: yes" >&5
6707echo "${ECHO_T}yes" >&6
6708 else
6709 echo "$as_me:$LINENO: result: no" >&5
6710echo "${ECHO_T}no" >&6
6711 fi
6712
6713
a848cd7e
SC
6714 enablestring=
6715 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6716echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6717 no_cache=0
6718 # Check whether --enable-protocol or --disable-protocol was given.
6719if test "${enable_protocol+set}" = set; then
6720 enableval="$enable_protocol"
6721
6722 if test "$enableval" = yes; then
6723 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6724 else
6725 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6726 fi
6727
6728else
6729
6730 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6731 if test "x$LINE" != x ; then
6732 eval "DEFAULT_$LINE"
6733 else
6734 no_cache=1
6735 fi
6736
6737 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6738
6739fi;
6740
6741 eval "$ac_cv_use_protocol"
6742 if test "$no_cache" != 1; then
6743 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6744 fi
6745
6746 if test "$wxUSE_PROTOCOL" = yes; then
6747 echo "$as_me:$LINENO: result: yes" >&5
6748echo "${ECHO_T}yes" >&6
6749 else
6750 echo "$as_me:$LINENO: result: no" >&5
6751echo "${ECHO_T}no" >&6
6752 fi
6753
6754
6755 enablestring=
6756 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6757echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6758 no_cache=0
6759 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6760if test "${enable_protocol_http+set}" = set; then
6761 enableval="$enable_protocol_http"
6762
6763 if test "$enableval" = yes; then
6764 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6765 else
6766 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6767 fi
6768
6769else
6770
6771 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6772 if test "x$LINE" != x ; then
6773 eval "DEFAULT_$LINE"
6774 else
6775 no_cache=1
6776 fi
6777
6778 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6779
6780fi;
6781
6782 eval "$ac_cv_use_protocol_http"
6783 if test "$no_cache" != 1; then
6784 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6785 fi
6786
6787 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6788 echo "$as_me:$LINENO: result: yes" >&5
6789echo "${ECHO_T}yes" >&6
6790 else
6791 echo "$as_me:$LINENO: result: no" >&5
6792echo "${ECHO_T}no" >&6
6793 fi
6794
6795
6796 enablestring=
6797 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6798echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6799 no_cache=0
6800 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6801if test "${enable_protocol_ftp+set}" = set; then
6802 enableval="$enable_protocol_ftp"
6803
6804 if test "$enableval" = yes; then
6805 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6806 else
6807 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6808 fi
6809
6810else
6811
6812 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6813 if test "x$LINE" != x ; then
6814 eval "DEFAULT_$LINE"
6815 else
6816 no_cache=1
6817 fi
6818
6819 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6820
6821fi;
6822
6823 eval "$ac_cv_use_protocol_ftp"
6824 if test "$no_cache" != 1; then
6825 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6826 fi
6827
6828 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6829 echo "$as_me:$LINENO: result: yes" >&5
6830echo "${ECHO_T}yes" >&6
6831 else
6832 echo "$as_me:$LINENO: result: no" >&5
6833echo "${ECHO_T}no" >&6
6834 fi
6835
6836
6837 enablestring=
6838 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6839echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6840 no_cache=0
6841 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6842if test "${enable_protocol_file+set}" = set; then
6843 enableval="$enable_protocol_file"
6844
6845 if test "$enableval" = yes; then
6846 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6847 else
6848 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6849 fi
6850
6851else
6852
6853 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6854 if test "x$LINE" != x ; then
6855 eval "DEFAULT_$LINE"
6856 else
6857 no_cache=1
6858 fi
6859
6860 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6861
6862fi;
6863
6864 eval "$ac_cv_use_protocol_file"
6865 if test "$no_cache" != 1; then
6866 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6867 fi
6868
6869 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6870 echo "$as_me:$LINENO: result: yes" >&5
6871echo "${ECHO_T}yes" >&6
6872 else
6873 echo "$as_me:$LINENO: result: no" >&5
6874echo "${ECHO_T}no" >&6
6875 fi
6876
6877
6878
6879
6880
6881 enablestring=
6882 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6883echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6884 no_cache=0
6885 # Check whether --enable-threads or --disable-threads was given.
6886if test "${enable_threads+set}" = set; then
6887 enableval="$enable_threads"
6888
6889 if test "$enableval" = yes; then
6890 ac_cv_use_threads='wxUSE_THREADS=yes'
6891 else
6892 ac_cv_use_threads='wxUSE_THREADS=no'
6893 fi
6894
6895else
6896
6897 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6898 if test "x$LINE" != x ; then
6899 eval "DEFAULT_$LINE"
6900 else
6901 no_cache=1
6902 fi
6903
6904 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6905
6906fi;
6907
6908 eval "$ac_cv_use_threads"
6909 if test "$no_cache" != 1; then
6910 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6911 fi
6912
6913 if test "$wxUSE_THREADS" = yes; then
6914 echo "$as_me:$LINENO: result: yes" >&5
6915echo "${ECHO_T}yes" >&6
6916 else
6917 echo "$as_me:$LINENO: result: no" >&5
6918echo "${ECHO_T}no" >&6
6919 fi
6920
6921
6922if test "$wxUSE_GUI" = "yes"; then
6923
6924
6925
6926 enablestring=
6927 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6928echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6929 no_cache=0
6930 # Check whether --enable-docview or --disable-docview was given.
6931if test "${enable_docview+set}" = set; then
6932 enableval="$enable_docview"
6933
6934 if test "$enableval" = yes; then
6935 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6936 else
6937 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6938 fi
6939
6940else
6941
6942 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6943 if test "x$LINE" != x ; then
6944 eval "DEFAULT_$LINE"
6945 else
6946 no_cache=1
6947 fi
6948
6949 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6950
6951fi;
6952
6953 eval "$ac_cv_use_docview"
6954 if test "$no_cache" != 1; then
6955 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6956 fi
6957
6958 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6959 echo "$as_me:$LINENO: result: yes" >&5
6960echo "${ECHO_T}yes" >&6
6961 else
6962 echo "$as_me:$LINENO: result: no" >&5
6963echo "${ECHO_T}no" >&6
6964 fi
6965
6966
6967 enablestring=
6968 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6969echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6970 no_cache=0
6971 # Check whether --enable-help or --disable-help was given.
6972if test "${enable_help+set}" = set; then
6973 enableval="$enable_help"
6974
6975 if test "$enableval" = yes; then
6976 ac_cv_use_help='wxUSE_HELP=yes'
6977 else
6978 ac_cv_use_help='wxUSE_HELP=no'
6979 fi
6980
6981else
6982
6983 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6984 if test "x$LINE" != x ; then
6985 eval "DEFAULT_$LINE"
6986 else
6987 no_cache=1
6988 fi
6989
6990 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6991
6992fi;
6993
6994 eval "$ac_cv_use_help"
6995 if test "$no_cache" != 1; then
6996 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6997 fi
6998
6999 if test "$wxUSE_HELP" = yes; then
7000 echo "$as_me:$LINENO: result: yes" >&5
7001echo "${ECHO_T}yes" >&6
7002 else
7003 echo "$as_me:$LINENO: result: no" >&5
7004echo "${ECHO_T}no" >&6
7005 fi
7006
7007
7008 enablestring=
7009 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
7010echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
7011 no_cache=0
7012 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
7013if test "${enable_mshtmlhelp+set}" = set; then
7014 enableval="$enable_mshtmlhelp"
7015
7016 if test "$enableval" = yes; then
7017 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
7018 else
7019 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
7020 fi
7021
7022else
7023
7024 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
7025 if test "x$LINE" != x ; then
7026 eval "DEFAULT_$LINE"
7027 else
7028 no_cache=1
7029 fi
7030
7031 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
7032
7033fi;
7034
7035 eval "$ac_cv_use_mshtmlhelp"
7036 if test "$no_cache" != 1; then
7037 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
7038 fi
7039
7040 if test "$wxUSE_MS_HTML_HELP" = yes; then
7041 echo "$as_me:$LINENO: result: yes" >&5
7042echo "${ECHO_T}yes" >&6
7043 else
7044 echo "$as_me:$LINENO: result: no" >&5
7045echo "${ECHO_T}no" >&6
7046 fi
7047
7048
7049 enablestring=
7050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7051echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7052 no_cache=0
7053 # Check whether --enable-html or --disable-html was given.
7054if test "${enable_html+set}" = set; then
7055 enableval="$enable_html"
7056
7057 if test "$enableval" = yes; then
7058 ac_cv_use_html='wxUSE_HTML=yes'
7059 else
7060 ac_cv_use_html='wxUSE_HTML=no'
7061 fi
7062
7063else
7064
7065 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
7066 if test "x$LINE" != x ; then
7067 eval "DEFAULT_$LINE"
7068 else
7069 no_cache=1
7070 fi
7071
7072 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
7073
7074fi;
7075
7076 eval "$ac_cv_use_html"
7077 if test "$no_cache" != 1; then
7078 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7079 fi
7080
7081 if test "$wxUSE_HTML" = yes; then
7082 echo "$as_me:$LINENO: result: yes" >&5
7083echo "${ECHO_T}yes" >&6
7084 else
7085 echo "$as_me:$LINENO: result: no" >&5
7086echo "${ECHO_T}no" >&6
7087 fi
7088
7089
7090 enablestring=
7091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
7092echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
7093 no_cache=0
7094 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
7095if test "${enable_htmlhelp+set}" = set; then
7096 enableval="$enable_htmlhelp"
7097
7098 if test "$enableval" = yes; then
7099 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
7100 else
7101 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
7102 fi
7103
7104else
7105
7106 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
7107 if test "x$LINE" != x ; then
7108 eval "DEFAULT_$LINE"
7109 else
7110 no_cache=1
7111 fi
7112
7113 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
7114
7115fi;
7116
7117 eval "$ac_cv_use_htmlhelp"
7118 if test "$no_cache" != 1; then
7119 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
7120 fi
7121
7122 if test "$wxUSE_WXHTML_HELP" = yes; then
7123 echo "$as_me:$LINENO: result: yes" >&5
7124echo "${ECHO_T}yes" >&6
7125 else
7126 echo "$as_me:$LINENO: result: no" >&5
7127echo "${ECHO_T}no" >&6
7128 fi
7129
7130
9a8f0513
VS
7131 enablestring=
7132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
7133echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
7134 no_cache=0
7135 # Check whether --enable-xrc or --disable-xrc was given.
7136if test "${enable_xrc+set}" = set; then
7137 enableval="$enable_xrc"
7138
7139 if test "$enableval" = yes; then
7140 ac_cv_use_xrc='wxUSE_XRC=yes'
7141 else
7142 ac_cv_use_xrc='wxUSE_XRC=no'
7143 fi
7144
7145else
7146
7147 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
7148 if test "x$LINE" != x ; then
7149 eval "DEFAULT_$LINE"
7150 else
7151 no_cache=1
7152 fi
7153
7154 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
7155
7156fi;
7157
7158 eval "$ac_cv_use_xrc"
7159 if test "$no_cache" != 1; then
7160 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
7161 fi
7162
7163 if test "$wxUSE_XRC" = yes; then
7164 echo "$as_me:$LINENO: result: yes" >&5
7165echo "${ECHO_T}yes" >&6
7166 else
7167 echo "$as_me:$LINENO: result: no" >&5
7168echo "${ECHO_T}no" >&6
7169 fi
7170
7171
3f60522a
JS
7172 enablestring=
7173 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
7174echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
7175 no_cache=0
7176 # Check whether --enable-aui or --disable-aui was given.
7177if test "${enable_aui+set}" = set; then
7178 enableval="$enable_aui"
7179
7180 if test "$enableval" = yes; then
7181 ac_cv_use_aui='wxUSE_AUI=yes'
7182 else
7183 ac_cv_use_aui='wxUSE_AUI=no'
7184 fi
7185
7186else
7187
7188 LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
7189 if test "x$LINE" != x ; then
7190 eval "DEFAULT_$LINE"
7191 else
7192 no_cache=1
7193 fi
7194
7195 ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
7196
7197fi;
7198
7199 eval "$ac_cv_use_aui"
7200 if test "$no_cache" != 1; then
7201 echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
7202 fi
7203
7204 if test "$wxUSE_AUI" = yes; then
7205 echo "$as_me:$LINENO: result: yes" >&5
7206echo "${ECHO_T}yes" >&6
7207 else
7208 echo "$as_me:$LINENO: result: no" >&5
7209echo "${ECHO_T}no" >&6
7210 fi
7211
7212
a848cd7e
SC
7213 enablestring=
7214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
7215echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
7216 no_cache=0
7217 # Check whether --enable-constraints or --disable-constraints was given.
7218if test "${enable_constraints+set}" = set; then
7219 enableval="$enable_constraints"
7220
7221 if test "$enableval" = yes; then
7222 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
7223 else
7224 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
7225 fi
7226
7227else
7228
7229 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
7230 if test "x$LINE" != x ; then
7231 eval "DEFAULT_$LINE"
7232 else
7233 no_cache=1
7234 fi
7235
7236 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
7237
7238fi;
7239
7240 eval "$ac_cv_use_constraints"
7241 if test "$no_cache" != 1; then
7242 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
7243 fi
7244
7245 if test "$wxUSE_CONSTRAINTS" = yes; then
7246 echo "$as_me:$LINENO: result: yes" >&5
7247echo "${ECHO_T}yes" >&6
7248 else
7249 echo "$as_me:$LINENO: result: no" >&5
7250echo "${ECHO_T}no" >&6
7251 fi
7252
7253
7254 enablestring=
7255 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
7256echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
7257 no_cache=0
7258 # Check whether --enable-printarch or --disable-printarch was given.
7259if test "${enable_printarch+set}" = set; then
7260 enableval="$enable_printarch"
7261
7262 if test "$enableval" = yes; then
7263 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
7264 else
7265 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
7266 fi
7267
7268else
7269
7270 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
7271 if test "x$LINE" != x ; then
7272 eval "DEFAULT_$LINE"
7273 else
7274 no_cache=1
7275 fi
7276
7277 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7278
7279fi;
7280
7281 eval "$ac_cv_use_printarch"
7282 if test "$no_cache" != 1; then
7283 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7284 fi
7285
7286 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7287 echo "$as_me:$LINENO: result: yes" >&5
7288echo "${ECHO_T}yes" >&6
7289 else
7290 echo "$as_me:$LINENO: result: no" >&5
7291echo "${ECHO_T}no" >&6
7292 fi
7293
7294
7295 enablestring=
7296 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7297echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7298 no_cache=0
7299 # Check whether --enable-mdi or --disable-mdi was given.
7300if test "${enable_mdi+set}" = set; then
7301 enableval="$enable_mdi"
7302
7303 if test "$enableval" = yes; then
8a7b1113 7304 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 7305 else
8a7b1113 7306 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
7307 fi
7308
7309else
7310
8a7b1113 7311 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
7312 if test "x$LINE" != x ; then
7313 eval "DEFAULT_$LINE"
7314 else
7315 no_cache=1
7316 fi
7317
8a7b1113 7318 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
7319
7320fi;
7321
7322 eval "$ac_cv_use_mdi"
7323 if test "$no_cache" != 1; then
7324 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7325 fi
7326
8a7b1113
VZ
7327 if test "$wxUSE_MDI" = yes; then
7328 echo "$as_me:$LINENO: result: yes" >&5
7329echo "${ECHO_T}yes" >&6
7330 else
7331 echo "$as_me:$LINENO: result: no" >&5
7332echo "${ECHO_T}no" >&6
7333 fi
7334
7335
7336 enablestring=
7337 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7338echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7339 no_cache=0
7340 # Check whether --enable-mdidoc or --disable-mdidoc was given.
7341if test "${enable_mdidoc+set}" = set; then
7342 enableval="$enable_mdidoc"
7343
7344 if test "$enableval" = yes; then
7345 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7346 else
7347 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7348 fi
7349
7350else
7351
7352 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7353 if test "x$LINE" != x ; then
7354 eval "DEFAULT_$LINE"
7355 else
7356 no_cache=1
7357 fi
7358
7359 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7360
7361fi;
7362
7363 eval "$ac_cv_use_mdidoc"
7364 if test "$no_cache" != 1; then
7365 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7366 fi
7367
a848cd7e
SC
7368 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7369 echo "$as_me:$LINENO: result: yes" >&5
7370echo "${ECHO_T}yes" >&6
7371 else
7372 echo "$as_me:$LINENO: result: no" >&5
7373echo "${ECHO_T}no" >&6
7374 fi
7375
7376
7377 enablestring=
7378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7379echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7380 no_cache=0
7381 # Check whether --enable-loggui or --disable-loggui was given.
7382if test "${enable_loggui+set}" = set; then
7383 enableval="$enable_loggui"
7384
7385 if test "$enableval" = yes; then
7386 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7387 else
7388 ac_cv_use_loggui='wxUSE_LOGGUI=no'
7389 fi
7390
7391else
7392
7393 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7394 if test "x$LINE" != x ; then
7395 eval "DEFAULT_$LINE"
7396 else
7397 no_cache=1
7398 fi
7399
7400 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7401
7402fi;
7403
7404 eval "$ac_cv_use_loggui"
7405 if test "$no_cache" != 1; then
7406 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7407 fi
7408
7409 if test "$wxUSE_LOGGUI" = yes; then
7410 echo "$as_me:$LINENO: result: yes" >&5
7411echo "${ECHO_T}yes" >&6
7412 else
7413 echo "$as_me:$LINENO: result: no" >&5
7414echo "${ECHO_T}no" >&6
7415 fi
7416
7417
7418 enablestring=
7419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7420echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7421 no_cache=0
7422 # Check whether --enable-logwin or --disable-logwin was given.
7423if test "${enable_logwin+set}" = set; then
7424 enableval="$enable_logwin"
7425
7426 if test "$enableval" = yes; then
7427 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7428 else
7429 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7430 fi
7431
7432else
7433
7434 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7435 if test "x$LINE" != x ; then
7436 eval "DEFAULT_$LINE"
7437 else
7438 no_cache=1
7439 fi
7440
7441 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7442
7443fi;
7444
7445 eval "$ac_cv_use_logwin"
7446 if test "$no_cache" != 1; then
7447 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7448 fi
7449
7450 if test "$wxUSE_LOGWINDOW" = yes; then
7451 echo "$as_me:$LINENO: result: yes" >&5
7452echo "${ECHO_T}yes" >&6
7453 else
7454 echo "$as_me:$LINENO: result: no" >&5
7455echo "${ECHO_T}no" >&6
7456 fi
7457
7458
7459 enablestring=
7460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7461echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7462 no_cache=0
7463 # Check whether --enable-logdialog or --disable-logdialog was given.
7464if test "${enable_logdialog+set}" = set; then
7465 enableval="$enable_logdialog"
7466
7467 if test "$enableval" = yes; then
7468 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7469 else
7470 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7471 fi
7472
7473else
7474
7475 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7476 if test "x$LINE" != x ; then
7477 eval "DEFAULT_$LINE"
7478 else
7479 no_cache=1
7480 fi
7481
7482 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7483
7484fi;
7485
7486 eval "$ac_cv_use_logdialog"
7487 if test "$no_cache" != 1; then
7488 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7489 fi
7490
7491 if test "$wxUSE_LOGDIALOG" = yes; then
7492 echo "$as_me:$LINENO: result: yes" >&5
7493echo "${ECHO_T}yes" >&6
7494 else
7495 echo "$as_me:$LINENO: result: no" >&5
7496echo "${ECHO_T}no" >&6
7497 fi
7498
7499
646b6ec1
VS
7500 enablestring=
7501 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7502echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7503 no_cache=0
7504 # Check whether --enable-webkit or --disable-webkit was given.
7505if test "${enable_webkit+set}" = set; then
7506 enableval="$enable_webkit"
7507
7508 if test "$enableval" = yes; then
7509 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7510 else
7511 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7512 fi
7513
7514else
7515
7516 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7517 if test "x$LINE" != x ; then
7518 eval "DEFAULT_$LINE"
7519 else
7520 no_cache=1
7521 fi
7522
7523 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7524
7525fi;
7526
7527 eval "$ac_cv_use_webkit"
7528 if test "$no_cache" != 1; then
7529 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7530 fi
7531
7532 if test "$wxUSE_WEBKIT" = yes; then
7533 echo "$as_me:$LINENO: result: yes" >&5
7534echo "${ECHO_T}yes" >&6
7535 else
7536 echo "$as_me:$LINENO: result: no" >&5
7537echo "${ECHO_T}no" >&6
7538 fi
7539
7540
91dea314
MW
7541 enablestring=
7542 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7543echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7544 no_cache=0
7545 # Check whether --enable-html or --disable-html was given.
7546if test "${enable_html+set}" = set; then
7547 enableval="$enable_html"
7548
7549 if test "$enableval" = yes; then
7550 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7551 else
7552 ac_cv_use_html='wxUSE_RICHTEXT=no'
7553 fi
7554
7555else
7556
7557 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7558 if test "x$LINE" != x ; then
7559 eval "DEFAULT_$LINE"
7560 else
7561 no_cache=1
7562 fi
7563
7564 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7565
7566fi;
7567
7568 eval "$ac_cv_use_html"
7569 if test "$no_cache" != 1; then
7570 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7571 fi
7572
7573 if test "$wxUSE_RICHTEXT" = yes; then
7574 echo "$as_me:$LINENO: result: yes" >&5
7575echo "${ECHO_T}yes" >&6
7576 else
7577 echo "$as_me:$LINENO: result: no" >&5
7578echo "${ECHO_T}no" >&6
7579 fi
7580
7581
f43426c1
RD
7582 enablestring=
7583 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
7584echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6
7585 no_cache=0
7586 # Check whether --enable-graphics_ctx or --disable-graphics_ctx was given.
7587if test "${enable_graphics_ctx+set}" = set; then
7588 enableval="$enable_graphics_ctx"
7589
7590 if test "$enableval" = yes; then
7591 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
7592 else
7593 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
7594 fi
7595
7596else
7597
7598 LINE=`grep "wxUSE_GRAPHICS_CONTEXT" ${wx_arg_cache_file}`
7599 if test "x$LINE" != x ; then
7600 eval "DEFAULT_$LINE"
7601 else
7602 no_cache=1
7603 fi
7604
7605 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT='$DEFAULT_wxUSE_GRAPHICS_CONTEXT
7606
7607fi;
7608
7609 eval "$ac_cv_use_graphics_ctx"
7610 if test "$no_cache" != 1; then
7611 echo $ac_cv_use_graphics_ctx >> ${wx_arg_cache_file}.tmp
7612 fi
7613
7614 if test "$wxUSE_GRAPHICS_CONTEXT" = yes; then
7615 echo "$as_me:$LINENO: result: yes" >&5
7616echo "${ECHO_T}yes" >&6
7617 else
7618 echo "$as_me:$LINENO: result: no" >&5
7619echo "${ECHO_T}no" >&6
7620 fi
7621
7622
a848cd7e
SC
7623
7624 enablestring=
7625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7626echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7627 no_cache=0
7628 # Check whether --enable-postscript or --disable-postscript was given.
7629if test "${enable_postscript+set}" = set; then
7630 enableval="$enable_postscript"
7631
7632 if test "$enableval" = yes; then
7633 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7634 else
7635 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7636 fi
7637
7638else
7639
7640 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7641 if test "x$LINE" != x ; then
7642 eval "DEFAULT_$LINE"
7643 else
7644 no_cache=1
7645 fi
7646
7647 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7648
7649fi;
7650
7651 eval "$ac_cv_use_postscript"
7652 if test "$no_cache" != 1; then
7653 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7654 fi
7655
7656 if test "$wxUSE_POSTSCRIPT" = yes; then
7657 echo "$as_me:$LINENO: result: yes" >&5
7658echo "${ECHO_T}yes" >&6
7659 else
7660 echo "$as_me:$LINENO: result: no" >&5
7661echo "${ECHO_T}no" >&6
7662 fi
7663
7664
7665
7666
7667
7668 enablestring=
7669 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7670echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7671 no_cache=0
7672 # Check whether --enable-prologio or --disable-prologio was given.
7673if test "${enable_prologio+set}" = set; then
7674 enableval="$enable_prologio"
7675
7676 if test "$enableval" = yes; then
7677 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7678 else
7679 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7680 fi
7681
7682else
7683
7684 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7685 if test "x$LINE" != x ; then
7686 eval "DEFAULT_$LINE"
7687 else
7688 no_cache=1
7689 fi
7690
7691 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7692
7693fi;
7694
7695 eval "$ac_cv_use_prologio"
7696 if test "$no_cache" != 1; then
7697 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7698 fi
7699
7700 if test "$wxUSE_PROLOGIO" = yes; then
7701 echo "$as_me:$LINENO: result: yes" >&5
7702echo "${ECHO_T}yes" >&6
7703 else
7704 echo "$as_me:$LINENO: result: no" >&5
7705echo "${ECHO_T}no" >&6
7706 fi
7707
7708
7709 enablestring=
7710 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7711echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7712 no_cache=0
7713 # Check whether --enable-resources or --disable-resources was given.
7714if test "${enable_resources+set}" = set; then
7715 enableval="$enable_resources"
7716
7717 if test "$enableval" = yes; then
7718 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7719 else
7720 ac_cv_use_resources='wxUSE_RESOURCES=no'
7721 fi
7722
7723else
7724
7725 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7726 if test "x$LINE" != x ; then
7727 eval "DEFAULT_$LINE"
7728 else
7729 no_cache=1
7730 fi
7731
7732 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7733
7734fi;
7735
7736 eval "$ac_cv_use_resources"
7737 if test "$no_cache" != 1; then
7738 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7739 fi
7740
7741 if test "$wxUSE_RESOURCES" = yes; then
7742 echo "$as_me:$LINENO: result: yes" >&5
7743echo "${ECHO_T}yes" >&6
7744 else
7745 echo "$as_me:$LINENO: result: no" >&5
7746echo "${ECHO_T}no" >&6
7747 fi
7748
7749
7750
7751
7752 enablestring=
7753 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7754echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7755 no_cache=0
7756 # Check whether --enable-clipboard or --disable-clipboard was given.
7757if test "${enable_clipboard+set}" = set; then
7758 enableval="$enable_clipboard"
7759
7760 if test "$enableval" = yes; then
7761 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7762 else
7763 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7764 fi
7765
7766else
7767
7768 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7769 if test "x$LINE" != x ; then
7770 eval "DEFAULT_$LINE"
7771 else
7772 no_cache=1
7773 fi
7774
7775 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7776
7777fi;
7778
7779 eval "$ac_cv_use_clipboard"
7780 if test "$no_cache" != 1; then
7781 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7782 fi
7783
7784 if test "$wxUSE_CLIPBOARD" = yes; then
7785 echo "$as_me:$LINENO: result: yes" >&5
7786echo "${ECHO_T}yes" >&6
7787 else
7788 echo "$as_me:$LINENO: result: no" >&5
7789echo "${ECHO_T}no" >&6
7790 fi
7791
7792
7793 enablestring=
7794 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7795echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7796 no_cache=0
7797 # Check whether --enable-dnd or --disable-dnd was given.
7798if test "${enable_dnd+set}" = set; then
7799 enableval="$enable_dnd"
7800
7801 if test "$enableval" = yes; then
7802 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7803 else
7804 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7805 fi
7806
7807else
7808
7809 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7810 if test "x$LINE" != x ; then
7811 eval "DEFAULT_$LINE"
7812 else
7813 no_cache=1
7814 fi
7815
7816 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7817
7818fi;
7819
7820 eval "$ac_cv_use_dnd"
7821 if test "$no_cache" != 1; then
7822 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7823 fi
7824
7825 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7826 echo "$as_me:$LINENO: result: yes" >&5
7827echo "${ECHO_T}yes" >&6
7828 else
7829 echo "$as_me:$LINENO: result: no" >&5
7830echo "${ECHO_T}no" >&6
7831 fi
7832
7833
7834 enablestring=
7835 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7836echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7837 no_cache=0
7838 # Check whether --enable-metafile or --disable-metafile was given.
7839if test "${enable_metafile+set}" = set; then
7840 enableval="$enable_metafile"
7841
7842 if test "$enableval" = yes; then
7843 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7844 else
7845 ac_cv_use_metafile='wxUSE_METAFILE=no'
7846 fi
7847
7848else
7849
7850 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7851 if test "x$LINE" != x ; then
7852 eval "DEFAULT_$LINE"
7853 else
7854 no_cache=1
7855 fi
7856
7857 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7858
7859fi;
7860
7861 eval "$ac_cv_use_metafile"
7862 if test "$no_cache" != 1; then
7863 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7864 fi
7865
7866 if test "$wxUSE_METAFILE" = yes; then
7867 echo "$as_me:$LINENO: result: yes" >&5
7868echo "${ECHO_T}yes" >&6
7869 else
7870 echo "$as_me:$LINENO: result: no" >&5
7871echo "${ECHO_T}no" >&6
7872 fi
7873
7874
7875
7876
7877
7878 enablestring=
7879 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7880echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7881 no_cache=0
7882 # Check whether --enable-controls or --disable-controls was given.
7883if test "${enable_controls+set}" = set; then
7884 enableval="$enable_controls"
7885
7886 if test "$enableval" = yes; then
7887 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7888 else
7889 ac_cv_use_controls='wxUSE_CONTROLS=no'
7890 fi
7891
7892else
7893
7894 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7895 if test "x$LINE" != x ; then
7896 eval "DEFAULT_$LINE"
7897 else
7898 no_cache=1
7899 fi
7900
7901 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7902
7903fi;
7904
7905 eval "$ac_cv_use_controls"
7906 if test "$no_cache" != 1; then
7907 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7908 fi
7909
7910 if test "$wxUSE_CONTROLS" = yes; then
7911 echo "$as_me:$LINENO: result: yes" >&5
7912echo "${ECHO_T}yes" >&6
7913 else
7914 echo "$as_me:$LINENO: result: no" >&5
7915echo "${ECHO_T}no" >&6
7916 fi
7917
7918
7919if test "$wxUSE_CONTROLS" = "yes"; then
7920 DEFAULT_wxUSE_ACCEL=yes
3ea50042 7921 DEFAULT_wxUSE_ANIMATIONCTRL=yes
a848cd7e
SC
7922 DEFAULT_wxUSE_BMPBUTTON=yes
7923 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7924 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7925 DEFAULT_wxUSE_CARET=yes
7926 DEFAULT_wxUSE_COMBOBOX=yes
7927 DEFAULT_wxUSE_CHECKBOX=yes
7928 DEFAULT_wxUSE_CHECKLISTBOX=yes
7929 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7930 DEFAULT_wxUSE_CHOICEBOOK=yes
bd915ace 7931 DEFAULT_wxUSE_COLLPANE=yes
e9263684
VZ
7932 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7933 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 7934 DEFAULT_wxUSE_DATEPICKCTRL=yes
e9263684 7935 DEFAULT_wxUSE_DISPLAY=yes
88bbc332 7936 DEFAULT_wxUSE_DETECT_SM=yes
e9263684
VZ
7937 DEFAULT_wxUSE_DIRPICKERCTRL=yes
7938 DEFAULT_wxUSE_FILEPICKERCTRL=yes
7939 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
7940 DEFAULT_wxUSE_GAUGE=yes
7941 DEFAULT_wxUSE_GRID=yes
6954625c 7942 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 7943 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7944 DEFAULT_wxUSE_IMAGLIST=yes
7945 DEFAULT_wxUSE_LISTBOOK=yes
7946 DEFAULT_wxUSE_LISTBOX=yes
7947 DEFAULT_wxUSE_LISTCTRL=yes
7948 DEFAULT_wxUSE_NOTEBOOK=yes
7949 DEFAULT_wxUSE_RADIOBOX=yes
7950 DEFAULT_wxUSE_RADIOBTN=yes
7951 DEFAULT_wxUSE_SASH=yes
7952 DEFAULT_wxUSE_SCROLLBAR=yes
7953 DEFAULT_wxUSE_SLIDER=yes
7954 DEFAULT_wxUSE_SPINBTN=yes
7955 DEFAULT_wxUSE_SPINCTRL=yes
7956 DEFAULT_wxUSE_SPLITTER=yes
7957 DEFAULT_wxUSE_STATBMP=yes
7958 DEFAULT_wxUSE_STATBOX=yes
7959 DEFAULT_wxUSE_STATLINE=yes
7960 DEFAULT_wxUSE_STATUSBAR=yes
7961 DEFAULT_wxUSE_TAB_DIALOG=yes
7962 DEFAULT_wxUSE_TOGGLEBTN=yes
7963 DEFAULT_wxUSE_TOOLBAR=yes
7964 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
a848cd7e 7965 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7966 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 7967 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
7968 DEFAULT_wxUSE_TREECTRL=yes
7969 DEFAULT_wxUSE_POPUPWIN=yes
7970 DEFAULT_wxUSE_TIPWINDOW=yes
7971elif test "$wxUSE_CONTROLS" = "no"; then
7972 DEFAULT_wxUSE_ACCEL=no
3ea50042 7973 DEFAULT_wxUSE_ANIMATIONCTRL=no
a848cd7e
SC
7974 DEFAULT_wxUSE_BMPBUTTON=no
7975 DEFAULT_wxUSE_BUTTON=no
7976 DEFAULT_wxUSE_CALCTRL=no
7977 DEFAULT_wxUSE_CARET=no
bd915ace 7978 DEFAULT_wxUSE_COLLPANE=no
a848cd7e
SC
7979 DEFAULT_wxUSE_COMBOBOX=no
7980 DEFAULT_wxUSE_CHECKBOX=no
7981 DEFAULT_wxUSE_CHECKLISTBOX=no
7982 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7983 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684
VZ
7984 DEFAULT_wxUSE_COLOURPICKERCTRL=no
7985 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 7986 DEFAULT_wxUSE_DATEPICKCTRL=no
e9263684 7987 DEFAULT_wxUSE_DISPLAY=no
88bbc332 7988 DEFAULT_wxUSE_DETECT_SM=no
e9263684
VZ
7989 DEFAULT_wxUSE_DIRPICKERCTRL=no
7990 DEFAULT_wxUSE_FILEPICKERCTRL=no
7991 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
7992 DEFAULT_wxUSE_GAUGE=no
7993 DEFAULT_wxUSE_GRID=no
6954625c 7994 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 7995 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7996 DEFAULT_wxUSE_IMAGLIST=no
7997 DEFAULT_wxUSE_LISTBOOK=no
7998 DEFAULT_wxUSE_LISTBOX=no
7999 DEFAULT_wxUSE_LISTCTRL=no
8000 DEFAULT_wxUSE_NOTEBOOK=no
8001 DEFAULT_wxUSE_RADIOBOX=no
8002 DEFAULT_wxUSE_RADIOBTN=no
8003 DEFAULT_wxUSE_SASH=no
8004 DEFAULT_wxUSE_SCROLLBAR=no
8005 DEFAULT_wxUSE_SLIDER=no
8006 DEFAULT_wxUSE_SPINBTN=no
8007 DEFAULT_wxUSE_SPINCTRL=no
8008 DEFAULT_wxUSE_SPLITTER=no
8009 DEFAULT_wxUSE_STATBMP=no
8010 DEFAULT_wxUSE_STATBOX=no
8011 DEFAULT_wxUSE_STATLINE=no
8012 DEFAULT_wxUSE_STATUSBAR=no
8013 DEFAULT_wxUSE_TAB_DIALOG=no
8014 DEFAULT_wxUSE_TOGGLEBTN=no
8015 DEFAULT_wxUSE_TOOLBAR=no
8016 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
a848cd7e 8017 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 8018 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 8019 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
8020 DEFAULT_wxUSE_TREECTRL=no
8021 DEFAULT_wxUSE_POPUPWIN=no
8022 DEFAULT_wxUSE_TIPWINDOW=no
8023fi
8024
a848cd7e
SC
8025
8026 enablestring=
8027 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
8028echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
8029 no_cache=0
8030 # Check whether --enable-accel or --disable-accel was given.
8031if test "${enable_accel+set}" = set; then
8032 enableval="$enable_accel"
8033
8034 if test "$enableval" = yes; then
8035 ac_cv_use_accel='wxUSE_ACCEL=yes'
8036 else
8037 ac_cv_use_accel='wxUSE_ACCEL=no'
8038 fi
8039
8040else
8041
8042 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
8043 if test "x$LINE" != x ; then
8044 eval "DEFAULT_$LINE"
8045 else
8046 no_cache=1
8047 fi
8048
8049 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
8050
8051fi;
8052
8053 eval "$ac_cv_use_accel"
8054 if test "$no_cache" != 1; then
8055 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
8056 fi
8057
8058 if test "$wxUSE_ACCEL" = yes; then
8059 echo "$as_me:$LINENO: result: yes" >&5
8060echo "${ECHO_T}yes" >&6
8061 else
8062 echo "$as_me:$LINENO: result: no" >&5
8063echo "${ECHO_T}no" >&6
8064 fi
8065
8066
3ea50042
VZ
8067 enablestring=
8068 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
8069echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6
8070 no_cache=0
8071 # Check whether --enable-animatectrl or --disable-animatectrl was given.
8072if test "${enable_animatectrl+set}" = set; then
8073 enableval="$enable_animatectrl"
8074
8075 if test "$enableval" = yes; then
8076 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
8077 else
8078 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
8079 fi
8080
8081else
8082
8083 LINE=`grep "wxUSE_ANIMATIONCTRL" ${wx_arg_cache_file}`
8084 if test "x$LINE" != x ; then
8085 eval "DEFAULT_$LINE"
8086 else
8087 no_cache=1
8088 fi
8089
8090 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL='$DEFAULT_wxUSE_ANIMATIONCTRL
8091
8092fi;
8093
8094 eval "$ac_cv_use_animatectrl"
8095 if test "$no_cache" != 1; then
8096 echo $ac_cv_use_animatectrl >> ${wx_arg_cache_file}.tmp
8097 fi
8098
8099 if test "$wxUSE_ANIMATIONCTRL" = yes; then
8100 echo "$as_me:$LINENO: result: yes" >&5
8101echo "${ECHO_T}yes" >&6
8102 else
8103 echo "$as_me:$LINENO: result: no" >&5
8104echo "${ECHO_T}no" >&6
8105 fi
8106
8107
a848cd7e
SC
8108 enablestring=
8109 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
8110echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
8111 no_cache=0
8112 # Check whether --enable-button or --disable-button was given.
8113if test "${enable_button+set}" = set; then
8114 enableval="$enable_button"
8115
8116 if test "$enableval" = yes; then
8117 ac_cv_use_button='wxUSE_BUTTON=yes'
8118 else
8119 ac_cv_use_button='wxUSE_BUTTON=no'
8120 fi
8121
8122else
8123
8124 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
8125 if test "x$LINE" != x ; then
8126 eval "DEFAULT_$LINE"
8127 else
8128 no_cache=1
8129 fi
8130
8131 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
8132
8133fi;
8134
8135 eval "$ac_cv_use_button"
8136 if test "$no_cache" != 1; then
8137 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
8138 fi
8139
8140 if test "$wxUSE_BUTTON" = yes; then
8141 echo "$as_me:$LINENO: result: yes" >&5
8142echo "${ECHO_T}yes" >&6
8143 else
8144 echo "$as_me:$LINENO: result: no" >&5
8145echo "${ECHO_T}no" >&6
8146 fi
8147
8148
8149 enablestring=
8150 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
8151echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
8152 no_cache=0
8153 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
8154if test "${enable_bmpbutton+set}" = set; then
8155 enableval="$enable_bmpbutton"
8156
8157 if test "$enableval" = yes; then
8158 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
8159 else
8160 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
8161 fi
8162
8163else
8164
8165 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
8166 if test "x$LINE" != x ; then
8167 eval "DEFAULT_$LINE"
8168 else
8169 no_cache=1
8170 fi
8171
8172 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
8173
8174fi;
8175
8176 eval "$ac_cv_use_bmpbutton"
8177 if test "$no_cache" != 1; then
8178 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
8179 fi
8180
8181 if test "$wxUSE_BMPBUTTON" = yes; then
8182 echo "$as_me:$LINENO: result: yes" >&5
8183echo "${ECHO_T}yes" >&6
8184 else
8185 echo "$as_me:$LINENO: result: no" >&5
8186echo "${ECHO_T}no" >&6
8187 fi
8188
8189
95a46303
RR
8190 enablestring=
8191 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
8192echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6
8193 no_cache=0
8194 # Check whether --enable-bmpcombobox or --disable-bmpcombobox was given.
8195if test "${enable_bmpcombobox+set}" = set; then
8196 enableval="$enable_bmpcombobox"
8197
8198 if test "$enableval" = yes; then
8199 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
8200 else
8201 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
8202 fi
8203
8204else
8205
8206 LINE=`grep "wxUSE_BITMAPCOMBOBOX" ${wx_arg_cache_file}`
8207 if test "x$LINE" != x ; then
8208 eval "DEFAULT_$LINE"
8209 else
8210 no_cache=1
8211 fi
8212
8213 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX='$DEFAULT_wxUSE_BITMAPCOMBOBOX
8214
8215fi;
8216
8217 eval "$ac_cv_use_bmpcombobox"
8218 if test "$no_cache" != 1; then
8219 echo $ac_cv_use_bmpcombobox >> ${wx_arg_cache_file}.tmp
8220 fi
8221
8222 if test "$wxUSE_BITMAPCOMBOBOX" = yes; then
8223 echo "$as_me:$LINENO: result: yes" >&5
8224echo "${ECHO_T}yes" >&6
8225 else
8226 echo "$as_me:$LINENO: result: no" >&5
8227echo "${ECHO_T}no" >&6
8228 fi
8229
8230
a848cd7e
SC
8231 enablestring=
8232 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
8233echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
8234 no_cache=0
8235 # Check whether --enable-calendar or --disable-calendar was given.
8236if test "${enable_calendar+set}" = set; then
8237 enableval="$enable_calendar"
8238
8239 if test "$enableval" = yes; then
8240 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
8241 else
8242 ac_cv_use_calendar='wxUSE_CALCTRL=no'
8243 fi
8244
8245else
8246
8247 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
8248 if test "x$LINE" != x ; then
8249 eval "DEFAULT_$LINE"
8250 else
8251 no_cache=1
8252 fi
8253
8254 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
8255
8256fi;
8257
8258 eval "$ac_cv_use_calendar"
8259 if test "$no_cache" != 1; then
8260 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
8261 fi
8262
8263 if test "$wxUSE_CALCTRL" = yes; then
8264 echo "$as_me:$LINENO: result: yes" >&5
8265echo "${ECHO_T}yes" >&6
8266 else
8267 echo "$as_me:$LINENO: result: no" >&5
8268echo "${ECHO_T}no" >&6
8269 fi
8270
8271
8272 enablestring=
8273 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
8274echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
8275 no_cache=0
8276 # Check whether --enable-caret or --disable-caret was given.
8277if test "${enable_caret+set}" = set; then
8278 enableval="$enable_caret"
8279
8280 if test "$enableval" = yes; then
8281 ac_cv_use_caret='wxUSE_CARET=yes'
8282 else
8283 ac_cv_use_caret='wxUSE_CARET=no'
8284 fi
8285
8286else
8287
8288 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
8289 if test "x$LINE" != x ; then
8290 eval "DEFAULT_$LINE"
8291 else
8292 no_cache=1
8293 fi
8294
8295 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
8296
8297fi;
8298
8299 eval "$ac_cv_use_caret"
8300 if test "$no_cache" != 1; then
8301 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
8302 fi
8303
8304 if test "$wxUSE_CARET" = yes; then
8305 echo "$as_me:$LINENO: result: yes" >&5
8306echo "${ECHO_T}yes" >&6
8307 else
8308 echo "$as_me:$LINENO: result: no" >&5
8309echo "${ECHO_T}no" >&6
8310 fi
8311
8312
8313 enablestring=
8314 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
8315echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
8316 no_cache=0
8317 # Check whether --enable-checkbox or --disable-checkbox was given.
8318if test "${enable_checkbox+set}" = set; then
8319 enableval="$enable_checkbox"
8320
8321 if test "$enableval" = yes; then
8322 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
8323 else
8324 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
8325 fi
8326
8327else
8328
8329 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
8330 if test "x$LINE" != x ; then
8331 eval "DEFAULT_$LINE"
8332 else
8333 no_cache=1
8334 fi
8335
8336 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
8337
8338fi;
8339
8340 eval "$ac_cv_use_checkbox"
8341 if test "$no_cache" != 1; then
8342 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
8343 fi
8344
8345 if test "$wxUSE_CHECKBOX" = yes; then
8346 echo "$as_me:$LINENO: result: yes" >&5
8347echo "${ECHO_T}yes" >&6
8348 else
8349 echo "$as_me:$LINENO: result: no" >&5
8350echo "${ECHO_T}no" >&6
8351 fi
8352
8353
8354 enablestring=
8355 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
8356echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
8357 no_cache=0
8358 # Check whether --enable-checklst or --disable-checklst was given.
8359if test "${enable_checklst+set}" = set; then
8360 enableval="$enable_checklst"
8361
8362 if test "$enableval" = yes; then
8363 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
8364 else
8365 ac_cv_use_checklst='wxUSE_CHECKLST=no'
8366 fi
8367
8368else
8369
8370 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
8371 if test "x$LINE" != x ; then
8372 eval "DEFAULT_$LINE"
8373 else
8374 no_cache=1
8375 fi
8376
8377 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
8378
8379fi;
8380
8381 eval "$ac_cv_use_checklst"
8382 if test "$no_cache" != 1; then
8383 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
8384 fi
8385
8386 if test "$wxUSE_CHECKLST" = yes; then
8387 echo "$as_me:$LINENO: result: yes" >&5
8388echo "${ECHO_T}yes" >&6
8389 else
8390 echo "$as_me:$LINENO: result: no" >&5
8391echo "${ECHO_T}no" >&6
8392 fi
8393
8394
8395 enablestring=
8396 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8397echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
8398 no_cache=0
8399 # Check whether --enable-choice or --disable-choice was given.
8400if test "${enable_choice+set}" = set; then
8401 enableval="$enable_choice"
8402
8403 if test "$enableval" = yes; then
8404 ac_cv_use_choice='wxUSE_CHOICE=yes'
8405 else
8406 ac_cv_use_choice='wxUSE_CHOICE=no'
8407 fi
8408
8409else
8410
8411 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8412 if test "x$LINE" != x ; then
8413 eval "DEFAULT_$LINE"
8414 else
8415 no_cache=1
8416 fi
8417
8418 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8419
8420fi;
8421
8422 eval "$ac_cv_use_choice"
8423 if test "$no_cache" != 1; then
8424 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8425 fi
8426
8427 if test "$wxUSE_CHOICE" = yes; then
8428 echo "$as_me:$LINENO: result: yes" >&5
8429echo "${ECHO_T}yes" >&6
8430 else
8431 echo "$as_me:$LINENO: result: no" >&5
8432echo "${ECHO_T}no" >&6
8433 fi
8434
8435
92bbdbcd
WS
8436 enablestring=
8437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8438echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8439 no_cache=0
8440 # Check whether --enable-choicebook or --disable-choicebook was given.
8441if test "${enable_choicebook+set}" = set; then
8442 enableval="$enable_choicebook"
8443
8444 if test "$enableval" = yes; then
8445 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8446 else
8447 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8448 fi
8449
8450else
8451
8452 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8453 if test "x$LINE" != x ; then
8454 eval "DEFAULT_$LINE"
8455 else
8456 no_cache=1
8457 fi
8458
8459 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8460
8461fi;
8462
8463 eval "$ac_cv_use_choicebook"
8464 if test "$no_cache" != 1; then
8465 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8466 fi
8467
8468 if test "$wxUSE_CHOICEBOOK" = yes; then
8469 echo "$as_me:$LINENO: result: yes" >&5
8470echo "${ECHO_T}yes" >&6
8471 else
8472 echo "$as_me:$LINENO: result: no" >&5
8473echo "${ECHO_T}no" >&6
8474 fi
8475
8476
bd915ace
RR
8477 enablestring=
8478 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
8479echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6
8480 no_cache=0
8481 # Check whether --enable-collpane or --disable-collpane was given.
8482if test "${enable_collpane+set}" = set; then
8483 enableval="$enable_collpane"
8484
8485 if test "$enableval" = yes; then
8486 ac_cv_use_collpane='wxUSE_COLLPANE=yes'
8487 else
8488 ac_cv_use_collpane='wxUSE_COLLPANE=no'
8489 fi
8490
8491else
8492
8493 LINE=`grep "wxUSE_COLLPANE" ${wx_arg_cache_file}`
8494 if test "x$LINE" != x ; then
8495 eval "DEFAULT_$LINE"
8496 else
8497 no_cache=1
8498 fi
8499
8500 ac_cv_use_collpane='wxUSE_COLLPANE='$DEFAULT_wxUSE_COLLPANE
8501
8502fi;
8503
8504 eval "$ac_cv_use_collpane"
8505 if test "$no_cache" != 1; then
8506 echo $ac_cv_use_collpane >> ${wx_arg_cache_file}.tmp
8507 fi
8508
8509 if test "$wxUSE_COLLPANE" = yes; then
8510 echo "$as_me:$LINENO: result: yes" >&5
8511echo "${ECHO_T}yes" >&6
8512 else
8513 echo "$as_me:$LINENO: result: no" >&5
8514echo "${ECHO_T}no" >&6
8515 fi
8516
8517
e9263684
VZ
8518 enablestring=
8519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8520echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8521 no_cache=0
8522 # Check whether --enable-colourpicker or --disable-colourpicker was given.
8523if test "${enable_colourpicker+set}" = set; then
8524 enableval="$enable_colourpicker"
8525
8526 if test "$enableval" = yes; then
8527 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8528 else
8529 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8530 fi
8531
8532else
8533
8534 LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8535 if test "x$LINE" != x ; then
8536 eval "DEFAULT_$LINE"
8537 else
8538 no_cache=1
8539 fi
8540
8541 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8542
8543fi;
8544
8545 eval "$ac_cv_use_colourpicker"
8546 if test "$no_cache" != 1; then
8547 echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8548 fi
8549
8550 if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8551 echo "$as_me:$LINENO: result: yes" >&5
8552echo "${ECHO_T}yes" >&6
8553 else
8554 echo "$as_me:$LINENO: result: no" >&5
8555echo "${ECHO_T}no" >&6
8556 fi
8557
8558
a848cd7e
SC
8559 enablestring=
8560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8561echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8562 no_cache=0
8563 # Check whether --enable-combobox or --disable-combobox was given.
8564if test "${enable_combobox+set}" = set; then
8565 enableval="$enable_combobox"
8566
8567 if test "$enableval" = yes; then
8568 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8569 else
8570 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8571 fi
8572
8573else
8574
8575 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8576 if test "x$LINE" != x ; then
8577 eval "DEFAULT_$LINE"
8578 else
8579 no_cache=1
8580 fi
8581
8582 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8583
8584fi;
8585
8586 eval "$ac_cv_use_combobox"
8587 if test "$no_cache" != 1; then
8588 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8589 fi
8590
8591 if test "$wxUSE_COMBOBOX" = yes; then
8592 echo "$as_me:$LINENO: result: yes" >&5
8593echo "${ECHO_T}yes" >&6
8594 else
8595 echo "$as_me:$LINENO: result: no" >&5
8596echo "${ECHO_T}no" >&6
8597 fi
8598
8599
642bcba9 8600 enablestring=
a57d600f
VZ
8601 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8602echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
642bcba9 8603 no_cache=0
a57d600f
VZ
8604 # Check whether --enable-comboctrl or --disable-comboctrl was given.
8605if test "${enable_comboctrl+set}" = set; then
8606 enableval="$enable_comboctrl"
642bcba9
VZ
8607
8608 if test "$enableval" = yes; then
a57d600f 8609 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
642bcba9 8610 else
a57d600f 8611 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
642bcba9
VZ
8612 fi
8613
8614else
8615
a57d600f 8616 LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
642bcba9
VZ
8617 if test "x$LINE" != x ; then
8618 eval "DEFAULT_$LINE"
8619 else
8620 no_cache=1
8621 fi
8622
a57d600f 8623 ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
642bcba9
VZ
8624
8625fi;
8626
a57d600f 8627 eval "$ac_cv_use_comboctrl"
642bcba9 8628 if test "$no_cache" != 1; then
a57d600f 8629 echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8630 fi
8631
a57d600f 8632 if test "$wxUSE_COMBOCTRL" = yes; then
642bcba9
VZ
8633 echo "$as_me:$LINENO: result: yes" >&5
8634echo "${ECHO_T}yes" >&6
8635 else
8636 echo "$as_me:$LINENO: result: no" >&5
8637echo "${ECHO_T}no" >&6
8638 fi
8639
8640
da98e9be
VZ
8641 enablestring=
8642 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8643echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8644 no_cache=0
8645 # Check whether --enable-datepick or --disable-datepick was given.
8646if test "${enable_datepick+set}" = set; then
8647 enableval="$enable_datepick"
8648
8649 if test "$enableval" = yes; then
8650 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8651 else
8652 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8653 fi
8654
8655else
8656
8657 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8658 if test "x$LINE" != x ; then
8659 eval "DEFAULT_$LINE"
8660 else
8661 no_cache=1
8662 fi
8663
8664 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8665
8666fi;
8667
8668 eval "$ac_cv_use_datepick"
8669 if test "$no_cache" != 1; then
8670 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8671 fi
8672
8673 if test "$wxUSE_DATEPICKCTRL" = yes; then
8674 echo "$as_me:$LINENO: result: yes" >&5
8675echo "${ECHO_T}yes" >&6
8676 else
8677 echo "$as_me:$LINENO: result: no" >&5
8678echo "${ECHO_T}no" >&6
8679 fi
8680
8681
e9263684
VZ
8682 enablestring=
8683 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8684echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8685 no_cache=0
8686 # Check whether --enable-dirpicker or --disable-dirpicker was given.
8687if test "${enable_dirpicker+set}" = set; then
8688 enableval="$enable_dirpicker"
8689
8690 if test "$enableval" = yes; then
8691 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8692 else
8693 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8694 fi
8695
8696else
8697
8698 LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8699 if test "x$LINE" != x ; then
8700 eval "DEFAULT_$LINE"
8701 else
8702 no_cache=1
8703 fi
8704
8705 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8706
8707fi;
8708
8709 eval "$ac_cv_use_dirpicker"
8710 if test "$no_cache" != 1; then
8711 echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8712 fi
8713
8714 if test "$wxUSE_DIRPICKERCTRL" = yes; then
8715 echo "$as_me:$LINENO: result: yes" >&5
8716echo "${ECHO_T}yes" >&6
8717 else
8718 echo "$as_me:$LINENO: result: no" >&5
8719echo "${ECHO_T}no" >&6
8720 fi
8721
8722
a848cd7e
SC
8723 enablestring=
8724 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8725echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8726 no_cache=0
8727 # Check whether --enable-display or --disable-display was given.
8728if test "${enable_display+set}" = set; then
8729 enableval="$enable_display"
8730
8731 if test "$enableval" = yes; then
8732 ac_cv_use_display='wxUSE_DISPLAY=yes'
8733 else
8734 ac_cv_use_display='wxUSE_DISPLAY=no'
8735 fi
8736
8737else
8738
8739 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8740 if test "x$LINE" != x ; then
8741 eval "DEFAULT_$LINE"
8742 else
8743 no_cache=1
8744 fi
8745
8746 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8747
8748fi;
8749
8750 eval "$ac_cv_use_display"
8751 if test "$no_cache" != 1; then
8752 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8753 fi
8754
8755 if test "$wxUSE_DISPLAY" = yes; then
8756 echo "$as_me:$LINENO: result: yes" >&5
8757echo "${ECHO_T}yes" >&6
8758 else
8759 echo "$as_me:$LINENO: result: no" >&5
8760echo "${ECHO_T}no" >&6
8761 fi
8762
8763
88bbc332
RR
8764 enablestring=
8765 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
8766echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6
8767 no_cache=0
8768 # Check whether --enable-detect_sm or --disable-detect_sm was given.
8769if test "${enable_detect_sm+set}" = set; then
8770 enableval="$enable_detect_sm"
8771
8772 if test "$enableval" = yes; then
8773 ac_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
8774 else
8775 ac_cv_use_detect_sm='wxUSE_DETECT_SM=no'
8776 fi
8777
8778else
8779
8780 LINE=`grep "wxUSE_DETECT_SM" ${wx_arg_cache_file}`
8781 if test "x$LINE" != x ; then
8782 eval "DEFAULT_$LINE"
8783 else
8784 no_cache=1
8785 fi
8786
8787 ac_cv_use_detect_sm='wxUSE_DETECT_SM='$DEFAULT_wxUSE_DETECT_SM
8788
8789fi;
8790
8791 eval "$ac_cv_use_detect_sm"
8792 if test "$no_cache" != 1; then
8793 echo $ac_cv_use_detect_sm >> ${wx_arg_cache_file}.tmp
8794 fi
8795
8796 if test "$wxUSE_DETECT_SM" = yes; then
8797 echo "$as_me:$LINENO: result: yes" >&5
8798echo "${ECHO_T}yes" >&6
8799 else
8800 echo "$as_me:$LINENO: result: no" >&5
8801echo "${ECHO_T}no" >&6
8802 fi
8803
8804
e9263684
VZ
8805 enablestring=
8806 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8807echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8808 no_cache=0
8809 # Check whether --enable-filepicker or --disable-filepicker was given.
8810if test "${enable_filepicker+set}" = set; then
8811 enableval="$enable_filepicker"
8812
8813 if test "$enableval" = yes; then
8814 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8815 else
8816 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8817 fi
8818
8819else
8820
8821 LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8822 if test "x$LINE" != x ; then
8823 eval "DEFAULT_$LINE"
8824 else
8825 no_cache=1
8826 fi
8827
8828 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8829
8830fi;
8831
8832 eval "$ac_cv_use_filepicker"
8833 if test "$no_cache" != 1; then
8834 echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8835 fi
8836
8837 if test "$wxUSE_FILEPICKERCTRL" = yes; then
8838 echo "$as_me:$LINENO: result: yes" >&5
8839echo "${ECHO_T}yes" >&6
8840 else
8841 echo "$as_me:$LINENO: result: no" >&5
8842echo "${ECHO_T}no" >&6
8843 fi
8844
8845
8846 enablestring=
8847 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8848echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8849 no_cache=0
8850 # Check whether --enable-fontpicker or --disable-fontpicker was given.
8851if test "${enable_fontpicker+set}" = set; then
8852 enableval="$enable_fontpicker"
8853
8854 if test "$enableval" = yes; then
8855 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8856 else
8857 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8858 fi
8859
8860else
8861
8862 LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8863 if test "x$LINE" != x ; then
8864 eval "DEFAULT_$LINE"
8865 else
8866 no_cache=1
8867 fi
8868
8869 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8870
8871fi;
8872
8873 eval "$ac_cv_use_fontpicker"
8874 if test "$no_cache" != 1; then
8875 echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8876 fi
8877
8878 if test "$wxUSE_FONTPICKERCTRL" = yes; then
8879 echo "$as_me:$LINENO: result: yes" >&5
8880echo "${ECHO_T}yes" >&6
8881 else
8882 echo "$as_me:$LINENO: result: no" >&5
8883echo "${ECHO_T}no" >&6
8884 fi
8885
8886
a848cd7e
SC
8887 enablestring=
8888 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8889echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8890 no_cache=0
8891 # Check whether --enable-gauge or --disable-gauge was given.
8892if test "${enable_gauge+set}" = set; then
8893 enableval="$enable_gauge"
8894
8895 if test "$enableval" = yes; then
8896 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8897 else
8898 ac_cv_use_gauge='wxUSE_GAUGE=no'
8899 fi
8900
8901else
8902
8903 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8904 if test "x$LINE" != x ; then
8905 eval "DEFAULT_$LINE"
8906 else
8907 no_cache=1
8908 fi
8909
8910 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8911
8912fi;
8913
8914 eval "$ac_cv_use_gauge"
8915 if test "$no_cache" != 1; then
8916 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8917 fi
8918
8919 if test "$wxUSE_GAUGE" = yes; then
8920 echo "$as_me:$LINENO: result: yes" >&5
8921echo "${ECHO_T}yes" >&6
8922 else
8923 echo "$as_me:$LINENO: result: no" >&5
8924echo "${ECHO_T}no" >&6
8925 fi
8926
8927
8928 enablestring=
8929 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8930echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8931 no_cache=0
8932 # Check whether --enable-grid or --disable-grid was given.
8933if test "${enable_grid+set}" = set; then
8934 enableval="$enable_grid"
8935
8936 if test "$enableval" = yes; then
8937 ac_cv_use_grid='wxUSE_GRID=yes'
8938 else
8939 ac_cv_use_grid='wxUSE_GRID=no'
8940 fi
8941
8942else
8943
8944 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8945 if test "x$LINE" != x ; then
8946 eval "DEFAULT_$LINE"
8947 else
8948 no_cache=1
8949 fi
8950
8951 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8952
8953fi;
8954
8955 eval "$ac_cv_use_grid"
8956 if test "$no_cache" != 1; then
8957 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8958 fi
8959
8960 if test "$wxUSE_GRID" = yes; then
8961 echo "$as_me:$LINENO: result: yes" >&5
8962echo "${ECHO_T}yes" >&6
8963 else
8964 echo "$as_me:$LINENO: result: no" >&5
8965echo "${ECHO_T}no" >&6
8966 fi
8967
8968
20e34ecc
RR
8969 enablestring=
8970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8971echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8972 no_cache=0
8973 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8974if test "${enable_dataviewctrl+set}" = set; then
8975 enableval="$enable_dataviewctrl"
8976
8977 if test "$enableval" = yes; then
8978 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8979 else
8980 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8981 fi
8982
8983else
8984
8985 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8986 if test "x$LINE" != x ; then
8987 eval "DEFAULT_$LINE"
8988 else
8989 no_cache=1
8990 fi
8991
8992 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8993
8994fi;
8995
8996 eval "$ac_cv_use_dataviewctrl"
8997 if test "$no_cache" != 1; then
8998 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8999 fi
9000
9001 if test "$wxUSE_DATAVIEWCTRL" = yes; then
9002 echo "$as_me:$LINENO: result: yes" >&5
9003echo "${ECHO_T}yes" >&6
9004 else
9005 echo "$as_me:$LINENO: result: no" >&5
9006echo "${ECHO_T}no" >&6
9007 fi
9008
9009
6954625c
VZ
9010 enablestring=
9011 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
9012echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
9013 no_cache=0
9014 # Check whether --enable-hyperlink or --disable-hyperlink was given.
9015if test "${enable_hyperlink+set}" = set; then
9016 enableval="$enable_hyperlink"
9017
9018 if test "$enableval" = yes; then
9019 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
9020 else
9021 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
9022 fi
9023
9024else
9025
9026 LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
9027 if test "x$LINE" != x ; then
9028 eval "DEFAULT_$LINE"
9029 else
9030 no_cache=1
9031 fi
9032
9033 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
9034
9035fi;
9036
9037 eval "$ac_cv_use_hyperlink"
9038 if test "$no_cache" != 1; then
9039 echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
9040 fi
9041
9042 if test "$wxUSE_HYPERLINKCTRL" = yes; then
9043 echo "$as_me:$LINENO: result: yes" >&5
9044echo "${ECHO_T}yes" >&6
9045 else
9046 echo "$as_me:$LINENO: result: no" >&5
9047echo "${ECHO_T}no" >&6
9048 fi
9049
9050
a848cd7e
SC
9051 enablestring=
9052 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
9053echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
9054 no_cache=0
9055 # Check whether --enable-imaglist or --disable-imaglist was given.
9056if test "${enable_imaglist+set}" = set; then
9057 enableval="$enable_imaglist"
9058
9059 if test "$enableval" = yes; then
9060 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
9061 else
9062 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
9063 fi
9064
9065else
9066
9067 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
9068 if test "x$LINE" != x ; then
9069 eval "DEFAULT_$LINE"
9070 else
9071 no_cache=1
9072 fi
9073
9074 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
9075
9076fi;
9077
9078 eval "$ac_cv_use_imaglist"
9079 if test "$no_cache" != 1; then
9080 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
9081 fi
9082
9083 if test "$wxUSE_IMAGLIST" = yes; then
9084 echo "$as_me:$LINENO: result: yes" >&5
9085echo "${ECHO_T}yes" >&6
9086 else
9087 echo "$as_me:$LINENO: result: no" >&5
9088echo "${ECHO_T}no" >&6
9089 fi
9090
9091
9092 enablestring=
9093 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
9094echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
9095 no_cache=0
9096 # Check whether --enable-listbook or --disable-listbook was given.
9097if test "${enable_listbook+set}" = set; then
9098 enableval="$enable_listbook"
9099
9100 if test "$enableval" = yes; then
9101 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
9102 else
9103 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
9104 fi
9105
9106else
9107
9108 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
9109 if test "x$LINE" != x ; then
9110 eval "DEFAULT_$LINE"
9111 else
9112 no_cache=1
9113 fi
9114
9115 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
9116
9117fi;
9118
9119 eval "$ac_cv_use_listbook"
9120 if test "$no_cache" != 1; then
9121 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
9122 fi
9123
9124 if test "$wxUSE_LISTBOOK" = yes; then
9125 echo "$as_me:$LINENO: result: yes" >&5
9126echo "${ECHO_T}yes" >&6
9127 else
9128 echo "$as_me:$LINENO: result: no" >&5
9129echo "${ECHO_T}no" >&6
9130 fi
9131
9132
9133 enablestring=
9134 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
9135echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
9136 no_cache=0
9137 # Check whether --enable-listbox or --disable-listbox was given.
9138if test "${enable_listbox+set}" = set; then
9139 enableval="$enable_listbox"
9140
9141 if test "$enableval" = yes; then
9142 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
9143 else
9144 ac_cv_use_listbox='wxUSE_LISTBOX=no'
9145 fi
9146
9147else
9148
9149 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
9150 if test "x$LINE" != x ; then
9151 eval "DEFAULT_$LINE"
9152 else
9153 no_cache=1
9154 fi
9155
9156 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
9157
9158fi;
9159
9160 eval "$ac_cv_use_listbox"
9161 if test "$no_cache" != 1; then
9162 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
9163 fi
9164
9165 if test "$wxUSE_LISTBOX" = yes; then
9166 echo "$as_me:$LINENO: result: yes" >&5
9167echo "${ECHO_T}yes" >&6
9168 else
9169 echo "$as_me:$LINENO: result: no" >&5
9170echo "${ECHO_T}no" >&6
9171 fi
9172
9173
9174 enablestring=
9175 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
9176echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
9177 no_cache=0
9178 # Check whether --enable-listctrl or --disable-listctrl was given.
9179if test "${enable_listctrl+set}" = set; then
9180 enableval="$enable_listctrl"
9181
9182 if test "$enableval" = yes; then
9183 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
9184 else
9185 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
9186 fi
9187
9188else
9189
9190 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
9191 if test "x$LINE" != x ; then
9192 eval "DEFAULT_$LINE"
9193 else
9194 no_cache=1
9195 fi
9196
9197 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
9198
9199fi;
9200
9201 eval "$ac_cv_use_listctrl"
9202 if test "$no_cache" != 1; then
9203 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
9204 fi
9205
9206 if test "$wxUSE_LISTCTRL" = yes; then
9207 echo "$as_me:$LINENO: result: yes" >&5
9208echo "${ECHO_T}yes" >&6
9209 else
9210 echo "$as_me:$LINENO: result: no" >&5
9211echo "${ECHO_T}no" >&6
9212 fi
9213
9214
9215 enablestring=
9216 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
9217echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
9218 no_cache=0
9219 # Check whether --enable-notebook or --disable-notebook was given.
9220if test "${enable_notebook+set}" = set; then
9221 enableval="$enable_notebook"
9222
9223 if test "$enableval" = yes; then
9224 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
9225 else
9226 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
9227 fi
9228
9229else
9230
9231 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
9232 if test "x$LINE" != x ; then
9233 eval "DEFAULT_$LINE"
9234 else
9235 no_cache=1
9236 fi
9237
9238 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
9239
9240fi;
9241
9242 eval "$ac_cv_use_notebook"
9243 if test "$no_cache" != 1; then
9244 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
9245 fi
9246
9247 if test "$wxUSE_NOTEBOOK" = yes; then
9248 echo "$as_me:$LINENO: result: yes" >&5
9249echo "${ECHO_T}yes" >&6
9250 else
9251 echo "$as_me:$LINENO: result: no" >&5
9252echo "${ECHO_T}no" >&6
9253 fi
9254
9255
642bcba9 9256 enablestring=
a57d600f
VZ
9257 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
9258echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
642bcba9 9259 no_cache=0
a57d600f
VZ
9260 # Check whether --enable-odcombobox or --disable-odcombobox was given.
9261if test "${enable_odcombobox+set}" = set; then
9262 enableval="$enable_odcombobox"
642bcba9
VZ
9263
9264 if test "$enableval" = yes; then
a57d600f 9265 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
642bcba9 9266 else
a57d600f 9267 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
642bcba9
VZ
9268 fi
9269
9270else
9271
a57d600f 9272 LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
642bcba9
VZ
9273 if test "x$LINE" != x ; then
9274 eval "DEFAULT_$LINE"
9275 else
9276 no_cache=1
9277 fi
9278
a57d600f 9279 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
642bcba9
VZ
9280
9281fi;
9282
a57d600f 9283 eval "$ac_cv_use_odcombobox"
642bcba9 9284 if test "$no_cache" != 1; then
a57d600f 9285 echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
9286 fi
9287
a57d600f 9288 if test "$wxUSE_ODCOMBOBOX" = yes; then
642bcba9
VZ
9289 echo "$as_me:$LINENO: result: yes" >&5
9290echo "${ECHO_T}yes" >&6
9291 else
9292 echo "$as_me:$LINENO: result: no" >&5
9293echo "${ECHO_T}no" >&6
9294 fi
9295
9296
a848cd7e
SC
9297 enablestring=
9298 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
9299echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
9300 no_cache=0
9301 # Check whether --enable-radiobox or --disable-radiobox was given.
9302if test "${enable_radiobox+set}" = set; then
9303 enableval="$enable_radiobox"
9304
9305 if test "$enableval" = yes; then
9306 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
9307 else
9308 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
9309 fi
9310
9311else
9312
9313 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
9314 if test "x$LINE" != x ; then
9315 eval "DEFAULT_$LINE"
9316 else
9317 no_cache=1
9318 fi
9319
9320 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
9321
9322fi;
9323
9324 eval "$ac_cv_use_radiobox"
9325 if test "$no_cache" != 1; then
9326 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
9327 fi
9328
9329 if test "$wxUSE_RADIOBOX" = yes; then
9330 echo "$as_me:$LINENO: result: yes" >&5
9331echo "${ECHO_T}yes" >&6
9332 else
9333 echo "$as_me:$LINENO: result: no" >&5
9334echo "${ECHO_T}no" >&6
9335 fi
9336
9337
9338 enablestring=
9339 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
9340echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
9341 no_cache=0
9342 # Check whether --enable-radiobtn or --disable-radiobtn was given.
9343if test "${enable_radiobtn+set}" = set; then
9344 enableval="$enable_radiobtn"
9345
9346 if test "$enableval" = yes; then
9347 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
9348 else
9349 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
9350 fi
9351
9352else
9353
9354 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
9355 if test "x$LINE" != x ; then
9356 eval "DEFAULT_$LINE"
9357 else
9358 no_cache=1
9359 fi
9360
9361 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
9362
9363fi;
9364
9365 eval "$ac_cv_use_radiobtn"
9366 if test "$no_cache" != 1; then
9367 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
9368 fi
9369
9370 if test "$wxUSE_RADIOBTN" = yes; then
9371 echo "$as_me:$LINENO: result: yes" >&5
9372echo "${ECHO_T}yes" >&6
9373 else
9374 echo "$as_me:$LINENO: result: no" >&5
9375echo "${ECHO_T}no" >&6
9376 fi
9377
9378
9379 enablestring=
9380 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
9381echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
9382 no_cache=0
9383 # Check whether --enable-sash or --disable-sash was given.
9384if test "${enable_sash+set}" = set; then
9385 enableval="$enable_sash"
9386
9387 if test "$enableval" = yes; then
9388 ac_cv_use_sash='wxUSE_SASH=yes'
9389 else
9390 ac_cv_use_sash='wxUSE_SASH=no'
9391 fi
9392
9393else
9394
9395 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
9396 if test "x$LINE" != x ; then
9397 eval "DEFAULT_$LINE"
9398 else
9399 no_cache=1
9400 fi
9401
9402 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
9403
9404fi;
9405
9406 eval "$ac_cv_use_sash"
9407 if test "$no_cache" != 1; then
9408 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
9409 fi
9410
9411 if test "$wxUSE_SASH" = yes; then
9412 echo "$as_me:$LINENO: result: yes" >&5
9413echo "${ECHO_T}yes" >&6
9414 else
9415 echo "$as_me:$LINENO: result: no" >&5
9416echo "${ECHO_T}no" >&6
9417 fi
9418
9419
9420 enablestring=
9421 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
9422echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
9423 no_cache=0
9424 # Check whether --enable-scrollbar or --disable-scrollbar was given.
9425if test "${enable_scrollbar+set}" = set; then
9426 enableval="$enable_scrollbar"
9427
9428 if test "$enableval" = yes; then
9429 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
9430 else
9431 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
9432 fi
9433
9434else
9435
9436 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
9437 if test "x$LINE" != x ; then
9438 eval "DEFAULT_$LINE"
9439 else
9440 no_cache=1
9441 fi
9442
9443 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
9444
9445fi;
9446
9447 eval "$ac_cv_use_scrollbar"
9448 if test "$no_cache" != 1; then
9449 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
9450 fi
9451
9452 if test "$wxUSE_SCROLLBAR" = yes; then
9453 echo "$as_me:$LINENO: result: yes" >&5
9454echo "${ECHO_T}yes" >&6
9455 else
9456 echo "$as_me:$LINENO: result: no" >&5
9457echo "${ECHO_T}no" >&6
9458 fi
9459
9460
9461 enablestring=
9462 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
9463echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
9464 no_cache=0
9465 # Check whether --enable-slider or --disable-slider was given.
9466if test "${enable_slider+set}" = set; then
9467 enableval="$enable_slider"
9468
9469 if test "$enableval" = yes; then
9470 ac_cv_use_slider='wxUSE_SLIDER=yes'
9471 else
9472 ac_cv_use_slider='wxUSE_SLIDER=no'
9473 fi
9474
9475else
9476
9477 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
9478 if test "x$LINE" != x ; then
9479 eval "DEFAULT_$LINE"
9480 else
9481 no_cache=1
9482 fi
9483
9484 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9485
9486fi;
9487
9488 eval "$ac_cv_use_slider"
9489 if test "$no_cache" != 1; then
9490 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9491 fi
9492
9493 if test "$wxUSE_SLIDER" = yes; then
9494 echo "$as_me:$LINENO: result: yes" >&5
9495echo "${ECHO_T}yes" >&6
9496 else
9497 echo "$as_me:$LINENO: result: no" >&5
9498echo "${ECHO_T}no" >&6
9499 fi
9500
9501
9502 enablestring=
9503 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9504echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9505 no_cache=0
9506 # Check whether --enable-spinbtn or --disable-spinbtn was given.
9507if test "${enable_spinbtn+set}" = set; then
9508 enableval="$enable_spinbtn"
9509
9510 if test "$enableval" = yes; then
9511 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9512 else
9513 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9514 fi
9515
9516else
9517
9518 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9519 if test "x$LINE" != x ; then
9520 eval "DEFAULT_$LINE"
9521 else
9522 no_cache=1
9523 fi
9524
9525 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9526
9527fi;
9528
9529 eval "$ac_cv_use_spinbtn"
9530 if test "$no_cache" != 1; then
9531 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9532 fi
9533
9534 if test "$wxUSE_SPINBTN" = yes; then
9535 echo "$as_me:$LINENO: result: yes" >&5
9536echo "${ECHO_T}yes" >&6
9537 else
9538 echo "$as_me:$LINENO: result: no" >&5
9539echo "${ECHO_T}no" >&6
9540 fi
9541
9542
9543 enablestring=
9544 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9545echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9546 no_cache=0
9547 # Check whether --enable-spinctrl or --disable-spinctrl was given.
9548if test "${enable_spinctrl+set}" = set; then
9549 enableval="$enable_spinctrl"
9550
9551 if test "$enableval" = yes; then
9552 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9553 else
9554 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9555 fi
9556
9557else
9558
9559 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9560 if test "x$LINE" != x ; then
9561 eval "DEFAULT_$LINE"
9562 else
9563 no_cache=1
9564 fi
9565
9566 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9567
9568fi;
9569
9570 eval "$ac_cv_use_spinctrl"
9571 if test "$no_cache" != 1; then
9572 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9573 fi
9574
9575 if test "$wxUSE_SPINCTRL" = yes; then
9576 echo "$as_me:$LINENO: result: yes" >&5
9577echo "${ECHO_T}yes" >&6
9578 else
9579 echo "$as_me:$LINENO: result: no" >&5
9580echo "${ECHO_T}no" >&6
9581 fi
9582
9583
9584 enablestring=
9585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9586echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9587 no_cache=0
9588 # Check whether --enable-splitter or --disable-splitter was given.
9589if test "${enable_splitter+set}" = set; then
9590 enableval="$enable_splitter"
9591
9592 if test "$enableval" = yes; then
9593 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9594 else
9595 ac_cv_use_splitter='wxUSE_SPLITTER=no'
9596 fi
9597
9598else
9599
9600 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9601 if test "x$LINE" != x ; then
9602 eval "DEFAULT_$LINE"
9603 else
9604 no_cache=1
9605 fi
9606
9607 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9608
9609fi;
9610
9611 eval "$ac_cv_use_splitter"
9612 if test "$no_cache" != 1; then
9613 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9614 fi
9615
9616 if test "$wxUSE_SPLITTER" = yes; then
9617 echo "$as_me:$LINENO: result: yes" >&5
9618echo "${ECHO_T}yes" >&6
9619 else
9620 echo "$as_me:$LINENO: result: no" >&5
9621echo "${ECHO_T}no" >&6
9622 fi
9623
9624
9625 enablestring=
9626 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9627echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9628 no_cache=0
9629 # Check whether --enable-statbmp or --disable-statbmp was given.
9630if test "${enable_statbmp+set}" = set; then
9631 enableval="$enable_statbmp"
9632
9633 if test "$enableval" = yes; then
9634 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9635 else
9636 ac_cv_use_statbmp='wxUSE_STATBMP=no'
9637 fi
9638
9639else
9640
9641 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9642 if test "x$LINE" != x ; then
9643 eval "DEFAULT_$LINE"
9644 else
9645 no_cache=1
9646 fi
9647
9648 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9649
9650fi;
9651
9652 eval "$ac_cv_use_statbmp"
9653 if test "$no_cache" != 1; then
9654 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9655 fi
9656
9657 if test "$wxUSE_STATBMP" = yes; then
9658 echo "$as_me:$LINENO: result: yes" >&5
9659echo "${ECHO_T}yes" >&6
9660 else
9661 echo "$as_me:$LINENO: result: no" >&5
9662echo "${ECHO_T}no" >&6
9663 fi
9664
9665
9666 enablestring=
9667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9668echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9669 no_cache=0
9670 # Check whether --enable-statbox or --disable-statbox was given.
9671if test "${enable_statbox+set}" = set; then
9672 enableval="$enable_statbox"
9673
9674 if test "$enableval" = yes; then
9675 ac_cv_use_statbox='wxUSE_STATBOX=yes'
9676 else
9677 ac_cv_use_statbox='wxUSE_STATBOX=no'
9678 fi
9679
9680else
9681
9682 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9683 if test "x$LINE" != x ; then
9684 eval "DEFAULT_$LINE"
9685 else
9686 no_cache=1
9687 fi
9688
9689 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9690
9691fi;
9692
9693 eval "$ac_cv_use_statbox"
9694 if test "$no_cache" != 1; then
9695 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9696 fi
9697
9698 if test "$wxUSE_STATBOX" = yes; then
9699 echo "$as_me:$LINENO: result: yes" >&5
9700echo "${ECHO_T}yes" >&6
9701 else
9702 echo "$as_me:$LINENO: result: no" >&5
9703echo "${ECHO_T}no" >&6
9704 fi
9705
9706
9707 enablestring=
9708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9709echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9710 no_cache=0
9711 # Check whether --enable-statline or --disable-statline was given.
9712if test "${enable_statline+set}" = set; then
9713 enableval="$enable_statline"
9714
9715 if test "$enableval" = yes; then
9716 ac_cv_use_statline='wxUSE_STATLINE=yes'
9717 else
9718 ac_cv_use_statline='wxUSE_STATLINE=no'
9719 fi
9720
9721else
9722
9723 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9724 if test "x$LINE" != x ; then
9725 eval "DEFAULT_$LINE"
9726 else
9727 no_cache=1
9728 fi
9729
9730 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9731
9732fi;
9733
9734 eval "$ac_cv_use_statline"
9735 if test "$no_cache" != 1; then
9736 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9737 fi
9738
9739 if test "$wxUSE_STATLINE" = yes; then
9740 echo "$as_me:$LINENO: result: yes" >&5
9741echo "${ECHO_T}yes" >&6
9742 else
9743 echo "$as_me:$LINENO: result: no" >&5
9744echo "${ECHO_T}no" >&6
9745 fi
9746
9747
9748 enablestring=
9749 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9750echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9751 no_cache=0
9752 # Check whether --enable-stattext or --disable-stattext was given.
9753if test "${enable_stattext+set}" = set; then
9754 enableval="$enable_stattext"
9755
9756 if test "$enableval" = yes; then
9757 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9758 else
9759 ac_cv_use_stattext='wxUSE_STATTEXT=no'
9760 fi
9761
9762else
9763
9764 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9765 if test "x$LINE" != x ; then
9766 eval "DEFAULT_$LINE"
9767 else
9768 no_cache=1
9769 fi
9770
9771 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9772
9773fi;
9774
9775 eval "$ac_cv_use_stattext"
9776 if test "$no_cache" != 1; then
9777 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9778 fi
9779
9780 if test "$wxUSE_STATTEXT" = yes; then
9781 echo "$as_me:$LINENO: result: yes" >&5
9782echo "${ECHO_T}yes" >&6
9783 else
9784 echo "$as_me:$LINENO: result: no" >&5
9785echo "${ECHO_T}no" >&6
9786 fi
9787
9788
9789 enablestring=
9790 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9791echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9792 no_cache=0
9793 # Check whether --enable-statusbar or --disable-statusbar was given.
9794if test "${enable_statusbar+set}" = set; then
9795 enableval="$enable_statusbar"
9796
9797 if test "$enableval" = yes; then
9798 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9799 else
9800 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9801 fi
9802
9803else
9804
9805 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9806 if test "x$LINE" != x ; then
9807 eval "DEFAULT_$LINE"
9808 else
9809 no_cache=1
9810 fi
9811
9812 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9813
9814fi;
9815
9816 eval "$ac_cv_use_statusbar"
9817 if test "$no_cache" != 1; then
9818 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9819 fi
9820
9821 if test "$wxUSE_STATUSBAR" = yes; then
9822 echo "$as_me:$LINENO: result: yes" >&5
9823echo "${ECHO_T}yes" >&6
9824 else
9825 echo "$as_me:$LINENO: result: no" >&5
9826echo "${ECHO_T}no" >&6
9827 fi
9828
9829
9830 enablestring=
9831 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9832echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9833 no_cache=0
9834 # Check whether --enable-tabdialog or --disable-tabdialog was given.
9835if test "${enable_tabdialog+set}" = set; then
9836 enableval="$enable_tabdialog"
9837
9838 if test "$enableval" = yes; then
f10e38c4 9839 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 9840 else
f10e38c4 9841 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e
SC
9842 fi
9843
9844else
9845
f10e38c4 9846 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
a848cd7e
SC
9847 if test "x$LINE" != x ; then
9848 eval "DEFAULT_$LINE"
9849 else
9850 no_cache=1
9851 fi
9852
f10e38c4 9853 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
a848cd7e
SC
9854
9855fi;
9856
9857 eval "$ac_cv_use_tabdialog"
9858 if test "$no_cache" != 1; then
9859 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9860 fi
9861
f10e38c4 9862 if test "$wxUSE_TAB_DIALOG" = yes; then
a848cd7e
SC
9863 echo "$as_me:$LINENO: result: yes" >&5
9864echo "${ECHO_T}yes" >&6
9865 else
9866 echo "$as_me:$LINENO: result: no" >&5
9867echo "${ECHO_T}no" >&6
9868 fi
9869
9870
9871 enablestring=
9872 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9873echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9874 no_cache=0
9875 # Check whether --enable-textctrl or --disable-textctrl was given.
9876if test "${enable_textctrl+set}" = set; then
9877 enableval="$enable_textctrl"
9878
9879 if test "$enableval" = yes; then
9880 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9881 else
9882 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9883 fi
9884
9885else
9886
9887 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9888 if test "x$LINE" != x ; then
9889 eval "DEFAULT_$LINE"
9890 else
9891 no_cache=1
9892 fi
9893
9894 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9895
9896fi;
9897
9898 eval "$ac_cv_use_textctrl"
9899 if test "$no_cache" != 1; then
9900 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9901 fi
9902
9903 if test "$wxUSE_TEXTCTRL" = yes; then
9904 echo "$as_me:$LINENO: result: yes" >&5
9905echo "${ECHO_T}yes" >&6
9906 else
9907 echo "$as_me:$LINENO: result: no" >&5
9908echo "${ECHO_T}no" >&6
9909 fi
9910
9911
9912 enablestring=
9913 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9914echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9915 no_cache=0
9916 # Check whether --enable-togglebtn or --disable-togglebtn was given.
9917if test "${enable_togglebtn+set}" = set; then
9918 enableval="$enable_togglebtn"
9919
9920 if test "$enableval" = yes; then
9921 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9922 else
9923 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9924 fi
9925
9926else
9927
9928 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9929 if test "x$LINE" != x ; then
9930 eval "DEFAULT_$LINE"
9931 else
9932 no_cache=1
9933 fi
9934
9935 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9936
9937fi;
9938
9939 eval "$ac_cv_use_togglebtn"
9940 if test "$no_cache" != 1; then
9941 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9942 fi
9943
9944 if test "$wxUSE_TOGGLEBTN" = yes; then
9945 echo "$as_me:$LINENO: result: yes" >&5
9946echo "${ECHO_T}yes" >&6
9947 else
9948 echo "$as_me:$LINENO: result: no" >&5
9949echo "${ECHO_T}no" >&6
9950 fi
9951
9952
9953 enablestring=
9954 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9955echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9956 no_cache=0
9957 # Check whether --enable-toolbar or --disable-toolbar was given.
9958if test "${enable_toolbar+set}" = set; then
9959 enableval="$enable_toolbar"
9960
9961 if test "$enableval" = yes; then
9962 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9963 else
9964 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9965 fi
9966
9967else
9968
9969 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9970 if test "x$LINE" != x ; then
9971 eval "DEFAULT_$LINE"
9972 else
9973 no_cache=1
9974 fi
9975
9976 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9977
9978fi;
9979
9980 eval "$ac_cv_use_toolbar"
9981 if test "$no_cache" != 1; then
9982 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9983 fi
9984
9985 if test "$wxUSE_TOOLBAR" = yes; then
9986 echo "$as_me:$LINENO: result: yes" >&5
9987echo "${ECHO_T}yes" >&6
9988 else
9989 echo "$as_me:$LINENO: result: no" >&5
9990echo "${ECHO_T}no" >&6
9991 fi
9992
9993
9994 enablestring=
9995 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9996echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9997 no_cache=0
9998 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9999if test "${enable_tbarnative+set}" = set; then
10000 enableval="$enable_tbarnative"
10001
10002 if test "$enableval" = yes; then
10003 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
10004 else
10005 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
10006 fi
10007
10008else
10009
10010 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
10011 if test "x$LINE" != x ; then
10012 eval "DEFAULT_$LINE"
10013 else
10014 no_cache=1
10015 fi
10016
10017 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
10018
10019fi;
10020
10021 eval "$ac_cv_use_tbarnative"
10022 if test "$no_cache" != 1; then
10023 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
10024 fi
10025
10026 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
10027 echo "$as_me:$LINENO: result: yes" >&5
10028echo "${ECHO_T}yes" >&6
10029 else
10030 echo "$as_me:$LINENO: result: no" >&5
10031echo "${ECHO_T}no" >&6
10032 fi
10033
10034
0093c2fc
VZ
10035 enablestring=
10036 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
10037echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
10038 no_cache=0
10039 # Check whether --enable-treebook or --disable-treebook was given.
10040if test "${enable_treebook+set}" = set; then
10041 enableval="$enable_treebook"
10042
10043 if test "$enableval" = yes; then
10044 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
10045 else
10046 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
10047 fi
10048
10049else
10050
10051 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
10052 if test "x$LINE" != x ; then
10053 eval "DEFAULT_$LINE"
10054 else
10055 no_cache=1
10056 fi
10057
10058 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
10059
10060fi;
10061
10062 eval "$ac_cv_use_treebook"
10063 if test "$no_cache" != 1; then
10064 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
10065 fi
10066
10067 if test "$wxUSE_TREEBOOK" = yes; then
10068 echo "$as_me:$LINENO: result: yes" >&5
10069echo "${ECHO_T}yes" >&6
10070 else
10071 echo "$as_me:$LINENO: result: no" >&5
10072echo "${ECHO_T}no" >&6
10073 fi
10074
10075
5ec3bc43
JS
10076 enablestring=
10077 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
10078echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
10079 no_cache=0
10080 # Check whether --enable-toolbook or --disable-toolbook was given.
10081if test "${enable_toolbook+set}" = set; then
10082 enableval="$enable_toolbook"
10083
10084 if test "$enableval" = yes; then
10085 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
10086 else
10087 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
10088 fi
10089
10090else
10091
10092 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
10093 if test "x$LINE" != x ; then
10094 eval "DEFAULT_$LINE"
10095 else
10096 no_cache=1
10097 fi
10098
10099 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
10100
10101fi;
10102
10103 eval "$ac_cv_use_toolbook"
10104 if test "$no_cache" != 1; then
10105 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
10106 fi
10107
10108 if test "$wxUSE_TOOLBOOK" = yes; then
10109 echo "$as_me:$LINENO: result: yes" >&5
10110echo "${ECHO_T}yes" >&6
10111 else
10112 echo "$as_me:$LINENO: result: no" >&5
10113echo "${ECHO_T}no" >&6
10114 fi
10115
10116
a848cd7e
SC
10117 enablestring=
10118 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
10119echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10120 no_cache=0
10121 # Check whether --enable-treectrl or --disable-treectrl was given.
10122if test "${enable_treectrl+set}" = set; then
10123 enableval="$enable_treectrl"
10124
10125 if test "$enableval" = yes; then
10126 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
10127 else
10128 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
10129 fi
10130
10131else
10132
10133 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
10134 if test "x$LINE" != x ; then
10135 eval "DEFAULT_$LINE"
10136 else
10137 no_cache=1
10138 fi
10139
10140 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10141
10142fi;
10143
10144 eval "$ac_cv_use_treectrl"
10145 if test "$no_cache" != 1; then
10146 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
10147 fi
10148
10149 if test "$wxUSE_TREECTRL" = yes; then
10150 echo "$as_me:$LINENO: result: yes" >&5
10151echo "${ECHO_T}yes" >&6
10152 else
10153 echo "$as_me:$LINENO: result: no" >&5
10154echo "${ECHO_T}no" >&6
10155 fi
10156
10157
10158 enablestring=
10159 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
10160echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
10161 no_cache=0
10162 # Check whether --enable-tipwindow or --disable-tipwindow was given.
10163if test "${enable_tipwindow+set}" = set; then
10164 enableval="$enable_tipwindow"
10165
10166 if test "$enableval" = yes; then
10167 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
10168 else
10169 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
10170 fi
10171
10172else
10173
10174 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
10175 if test "x$LINE" != x ; then
10176 eval "DEFAULT_$LINE"
10177 else
10178 no_cache=1
10179 fi
10180
10181 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
10182
10183fi;
10184
10185 eval "$ac_cv_use_tipwindow"
10186 if test "$no_cache" != 1; then
10187 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
10188 fi
10189
10190 if test "$wxUSE_TIPWINDOW" = yes; then
10191 echo "$as_me:$LINENO: result: yes" >&5
10192echo "${ECHO_T}yes" >&6
10193 else
10194 echo "$as_me:$LINENO: result: no" >&5
10195echo "${ECHO_T}no" >&6
10196 fi
10197
10198
10199 enablestring=
10200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
10201echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
10202 no_cache=0
10203 # Check whether --enable-popupwin or --disable-popupwin was given.
10204if test "${enable_popupwin+set}" = set; then
10205 enableval="$enable_popupwin"
10206
10207 if test "$enableval" = yes; then
10208 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
10209 else
10210 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
10211 fi
10212
10213else
10214
10215 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
10216 if test "x$LINE" != x ; then
10217 eval "DEFAULT_$LINE"
10218 else
10219 no_cache=1
10220 fi
10221
10222 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
10223
10224fi;
10225
10226 eval "$ac_cv_use_popupwin"
10227 if test "$no_cache" != 1; then
10228 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
10229 fi
10230
10231 if test "$wxUSE_POPUPWIN" = yes; then
10232 echo "$as_me:$LINENO: result: yes" >&5
10233echo "${ECHO_T}yes" >&6
10234 else
10235 echo "$as_me:$LINENO: result: no" >&5
10236echo "${ECHO_T}no" >&6
10237 fi
10238
10239
10240
10241
10242 enablestring=
10243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
10244echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
10245 no_cache=0
10246 # Check whether --enable-commondlg or --disable-commondlg was given.
10247if test "${enable_commondlg+set}" = set; then
10248 enableval="$enable_commondlg"
10249
10250 if test "$enableval" = yes; then
10251 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
10252 else
10253 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
10254 fi
10255
10256else
10257
10258 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
10259 if test "x$LINE" != x ; then
10260 eval "DEFAULT_$LINE"
10261 else
10262 no_cache=1
10263 fi
10264
10265 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
10266
10267fi;
10268
10269 eval "$ac_cv_use_commondlg"
10270 if test "$no_cache" != 1; then
10271 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
10272 fi
10273
10274 if test "$wxUSE_COMMONDLGS" = yes; then
10275 echo "$as_me:$LINENO: result: yes" >&5
10276echo "${ECHO_T}yes" >&6
10277 else
10278 echo "$as_me:$LINENO: result: no" >&5
10279echo "${ECHO_T}no" >&6
10280 fi
10281
10282
319c5ed4
VZ
10283 enablestring=
10284 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
10285echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6
10286 no_cache=0
10287 # Check whether --enable-aboutdlg or --disable-aboutdlg was given.
10288if test "${enable_aboutdlg+set}" = set; then
10289 enableval="$enable_aboutdlg"
10290
10291 if test "$enableval" = yes; then
10292 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
10293 else
10294 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
10295 fi
10296
10297else
10298
10299 LINE=`grep "wxUSE_ABOUTDLG" ${wx_arg_cache_file}`
10300 if test "x$LINE" != x ; then
10301 eval "DEFAULT_$LINE"
10302 else
10303 no_cache=1
10304 fi
10305
10306 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG='$DEFAULT_wxUSE_ABOUTDLG
10307
10308fi;
10309
10310 eval "$ac_cv_use_aboutdlg"
10311 if test "$no_cache" != 1; then
10312 echo $ac_cv_use_aboutdlg >> ${wx_arg_cache_file}.tmp
10313 fi
10314
10315 if test "$wxUSE_ABOUTDLG" = yes; then
10316 echo "$as_me:$LINENO: result: yes" >&5
10317echo "${ECHO_T}yes" >&6
10318 else
10319 echo "$as_me:$LINENO: result: no" >&5
10320echo "${ECHO_T}no" >&6
10321 fi
10322
10323
a848cd7e
SC
10324 enablestring=
10325 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
10326echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
10327 no_cache=0
10328 # Check whether --enable-choicedlg or --disable-choicedlg was given.
10329if test "${enable_choicedlg+set}" = set; then
10330 enableval="$enable_choicedlg"
10331
10332 if test "$enableval" = yes; then
10333 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
10334 else
10335 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
10336 fi
10337
10338else
10339
10340 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
10341 if test "x$LINE" != x ; then
10342 eval "DEFAULT_$LINE"
10343 else
10344 no_cache=1
10345 fi
10346
10347 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
10348
10349fi;
10350
10351 eval "$ac_cv_use_choicedlg"
10352 if test "$no_cache" != 1; then
10353 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
10354 fi
10355
10356 if test "$wxUSE_CHOICEDLG" = yes; then
10357 echo "$as_me:$LINENO: result: yes" >&5
10358echo "${ECHO_T}yes" >&6
10359 else
10360 echo "$as_me:$LINENO: result: no" >&5
10361echo "${ECHO_T}no" >&6
10362 fi
10363
10364
10365 enablestring=
10366 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
10367echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
10368 no_cache=0
10369 # Check whether --enable-coldlg or --disable-coldlg was given.
10370if test "${enable_coldlg+set}" = set; then
10371 enableval="$enable_coldlg"
10372
10373 if test "$enableval" = yes; then
10374 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
10375 else
10376 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
10377 fi
10378
10379else
10380
10381 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
10382 if test "x$LINE" != x ; then
10383 eval "DEFAULT_$LINE"
10384 else
10385 no_cache=1
10386 fi
10387
10388 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
10389
10390fi;
10391
10392 eval "$ac_cv_use_coldlg"
10393 if test "$no_cache" != 1; then
10394 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
10395 fi
10396
10397 if test "$wxUSE_COLOURDLG" = yes; then
10398 echo "$as_me:$LINENO: result: yes" >&5
10399echo "${ECHO_T}yes" >&6
10400 else
10401 echo "$as_me:$LINENO: result: no" >&5
10402echo "${ECHO_T}no" >&6
10403 fi
10404
10405
10406 enablestring=
10407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
10408echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
10409 no_cache=0
10410 # Check whether --enable-filedlg or --disable-filedlg was given.
10411if test "${enable_filedlg+set}" = set; then
10412 enableval="$enable_filedlg"
10413
10414 if test "$enableval" = yes; then
10415 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
10416 else
10417 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
10418 fi
10419
10420else
10421
10422 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
10423 if test "x$LINE" != x ; then
10424 eval "DEFAULT_$LINE"
10425 else
10426 no_cache=1
10427 fi
10428
10429 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
10430
10431fi;
10432
10433 eval "$ac_cv_use_filedlg"
10434 if test "$no_cache" != 1; then
10435 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
10436 fi
10437
10438 if test "$wxUSE_FILEDLG" = yes; then
10439 echo "$as_me:$LINENO: result: yes" >&5
10440echo "${ECHO_T}yes" >&6
10441 else
10442 echo "$as_me:$LINENO: result: no" >&5
10443echo "${ECHO_T}no" >&6
10444 fi
10445
10446
10447 enablestring=
10448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
10449echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
10450 no_cache=0
10451 # Check whether --enable-finddlg or --disable-finddlg was given.
10452if test "${enable_finddlg+set}" = set; then
10453 enableval="$enable_finddlg"
10454
10455 if test "$enableval" = yes; then
10456 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
10457 else
10458 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
10459 fi
10460
10461else
10462
10463 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
10464 if test "x$LINE" != x ; then
10465 eval "DEFAULT_$LINE"
10466 else
10467 no_cache=1
10468 fi
10469
10470 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
10471
10472fi;
10473
10474 eval "$ac_cv_use_finddlg"
10475 if test "$no_cache" != 1; then
10476 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
10477 fi
10478
10479 if test "$wxUSE_FINDREPLDLG" = yes; then
10480 echo "$as_me:$LINENO: result: yes" >&5
10481echo "${ECHO_T}yes" >&6
10482 else
10483 echo "$as_me:$LINENO: result: no" >&5
10484echo "${ECHO_T}no" >&6
10485 fi
10486
10487
10488 enablestring=
10489 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10490echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10491 no_cache=0
10492 # Check whether --enable-fontdlg or --disable-fontdlg was given.
10493if test "${enable_fontdlg+set}" = set; then
10494 enableval="$enable_fontdlg"
10495
10496 if test "$enableval" = yes; then
10497 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10498 else
10499 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10500 fi
10501
10502else
10503
10504 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10505 if test "x$LINE" != x ; then
10506 eval "DEFAULT_$LINE"
10507 else
10508 no_cache=1
10509 fi
10510
10511 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10512
10513fi;
10514
10515 eval "$ac_cv_use_fontdlg"
10516 if test "$no_cache" != 1; then
10517 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10518 fi
10519
10520 if test "$wxUSE_FONTDLG" = yes; then
10521 echo "$as_me:$LINENO: result: yes" >&5
10522echo "${ECHO_T}yes" >&6
10523 else
10524 echo "$as_me:$LINENO: result: no" >&5
10525echo "${ECHO_T}no" >&6
10526 fi
10527
10528
10529 enablestring=
10530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10531echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10532 no_cache=0
10533 # Check whether --enable-dirdlg or --disable-dirdlg was given.
10534if test "${enable_dirdlg+set}" = set; then
10535 enableval="$enable_dirdlg"
10536
10537 if test "$enableval" = yes; then
10538 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10539 else
10540 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10541 fi
10542
10543else
10544
10545 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10546 if test "x$LINE" != x ; then
10547 eval "DEFAULT_$LINE"
10548 else
10549 no_cache=1
10550 fi
10551
10552 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10553
10554fi;
10555
10556 eval "$ac_cv_use_dirdlg"
10557 if test "$no_cache" != 1; then
10558 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10559 fi
10560
10561 if test "$wxUSE_DIRDLG" = yes; then
10562 echo "$as_me:$LINENO: result: yes" >&5
10563echo "${ECHO_T}yes" >&6
10564 else
10565 echo "$as_me:$LINENO: result: no" >&5
10566echo "${ECHO_T}no" >&6
10567 fi
10568
10569
10570 enablestring=
10571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10572echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10573 no_cache=0
10574 # Check whether --enable-msgdlg or --disable-msgdlg was given.
10575if test "${enable_msgdlg+set}" = set; then
10576 enableval="$enable_msgdlg"
10577
10578 if test "$enableval" = yes; then
10579 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10580 else
10581 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10582 fi
10583
10584else
10585
10586 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10587 if test "x$LINE" != x ; then
10588 eval "DEFAULT_$LINE"
10589 else
10590 no_cache=1
10591 fi
10592
10593 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10594
10595fi;
10596
10597 eval "$ac_cv_use_msgdlg"
10598 if test "$no_cache" != 1; then
10599 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10600 fi
10601
10602 if test "$wxUSE_MSGDLG" = yes; then
10603 echo "$as_me:$LINENO: result: yes" >&5
10604echo "${ECHO_T}yes" >&6
10605 else
10606 echo "$as_me:$LINENO: result: no" >&5
10607echo "${ECHO_T}no" >&6
10608 fi
10609
10610
10611 enablestring=
10612 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10613echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10614 no_cache=0
10615 # Check whether --enable-numberdlg or --disable-numberdlg was given.
10616if test "${enable_numberdlg+set}" = set; then
10617 enableval="$enable_numberdlg"
10618
10619 if test "$enableval" = yes; then
10620 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10621 else
10622 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10623 fi
10624
10625else
10626
10627 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10628 if test "x$LINE" != x ; then
10629 eval "DEFAULT_$LINE"
10630 else
10631 no_cache=1
10632 fi
10633
10634 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10635
10636fi;
10637
10638 eval "$ac_cv_use_numberdlg"
10639 if test "$no_cache" != 1; then
10640 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10641 fi
10642
10643 if test "$wxUSE_NUMBERDLG" = yes; then
10644 echo "$as_me:$LINENO: result: yes" >&5
10645echo "${ECHO_T}yes" >&6
10646 else
10647 echo "$as_me:$LINENO: result: no" >&5
10648echo "${ECHO_T}no" >&6
10649 fi
10650
10651
10652 enablestring=
10653 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10654echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10655 no_cache=0
10656 # Check whether --enable-splash or --disable-splash was given.
10657if test "${enable_splash+set}" = set; then
10658 enableval="$enable_splash"
10659
10660 if test "$enableval" = yes; then
10661 ac_cv_use_splash='wxUSE_SPLASH=yes'
10662 else
10663 ac_cv_use_splash='wxUSE_SPLASH=no'
10664 fi
10665
10666else
10667
10668 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10669 if test "x$LINE" != x ; then
10670 eval "DEFAULT_$LINE"
10671 else
10672 no_cache=1
10673 fi
10674
10675 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10676
10677fi;
10678
10679 eval "$ac_cv_use_splash"
10680 if test "$no_cache" != 1; then
10681 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10682 fi
10683
10684 if test "$wxUSE_SPLASH" = yes; then
10685 echo "$as_me:$LINENO: result: yes" >&5
10686echo "${ECHO_T}yes" >&6
10687 else
10688 echo "$as_me:$LINENO: result: no" >&5
10689echo "${ECHO_T}no" >&6
10690 fi
10691
10692
10693 enablestring=
10694 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10695echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10696 no_cache=0
10697 # Check whether --enable-textdlg or --disable-textdlg was given.
10698if test "${enable_textdlg+set}" = set; then
10699 enableval="$enable_textdlg"
10700
10701 if test "$enableval" = yes; then
10702 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10703 else
10704 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10705 fi
10706
10707else
10708
10709 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10710 if test "x$LINE" != x ; then
10711 eval "DEFAULT_$LINE"
10712 else
10713 no_cache=1
10714 fi
10715
10716 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10717
10718fi;
10719
10720 eval "$ac_cv_use_textdlg"
10721 if test "$no_cache" != 1; then
10722 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10723 fi
10724
10725 if test "$wxUSE_TEXTDLG" = yes; then
10726 echo "$as_me:$LINENO: result: yes" >&5
10727echo "${ECHO_T}yes" >&6
10728 else
10729 echo "$as_me:$LINENO: result: no" >&5
10730echo "${ECHO_T}no" >&6
10731 fi
10732
10733
10734 enablestring=
10735 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10736echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10737 no_cache=0
10738 # Check whether --enable-tipdlg or --disable-tipdlg was given.
10739if test "${enable_tipdlg+set}" = set; then
10740 enableval="$enable_tipdlg"
10741
10742 if test "$enableval" = yes; then
10743 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10744 else
10745 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10746 fi
10747
10748else
10749
10750 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10751 if test "x$LINE" != x ; then
10752 eval "DEFAULT_$LINE"
10753 else
10754 no_cache=1
10755 fi
10756
10757 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10758
10759fi;
10760
10761 eval "$ac_cv_use_tipdlg"
10762 if test "$no_cache" != 1; then
10763 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10764 fi
10765
10766 if test "$wxUSE_STARTUP_TIPS" = yes; then
10767 echo "$as_me:$LINENO: result: yes" >&5
10768echo "${ECHO_T}yes" >&6
10769 else
10770 echo "$as_me:$LINENO: result: no" >&5
10771echo "${ECHO_T}no" >&6
10772 fi
10773
10774
10775 enablestring=
10776 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10777echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10778 no_cache=0
10779 # Check whether --enable-progressdlg or --disable-progressdlg was given.
10780if test "${enable_progressdlg+set}" = set; then
10781 enableval="$enable_progressdlg"
10782
10783 if test "$enableval" = yes; then
10784 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10785 else
10786 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10787 fi
10788
10789else
10790
10791 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10792 if test "x$LINE" != x ; then
10793 eval "DEFAULT_$LINE"
10794 else
10795 no_cache=1
10796 fi
10797
10798 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10799
10800fi;
10801
10802 eval "$ac_cv_use_progressdlg"
10803 if test "$no_cache" != 1; then
10804 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10805 fi
10806
10807 if test "$wxUSE_PROGRESSDLG" = yes; then
10808 echo "$as_me:$LINENO: result: yes" >&5
10809echo "${ECHO_T}yes" >&6
10810 else
10811 echo "$as_me:$LINENO: result: no" >&5
10812echo "${ECHO_T}no" >&6
10813 fi
10814
10815
10816 enablestring=
10817 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10818echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10819 no_cache=0
10820 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10821if test "${enable_wizarddlg+set}" = set; then
10822 enableval="$enable_wizarddlg"
10823
10824 if test "$enableval" = yes; then
10825 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10826 else
10827 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10828 fi
10829
10830else
10831
10832 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10833 if test "x$LINE" != x ; then
10834 eval "DEFAULT_$LINE"
10835 else
10836 no_cache=1
10837 fi
10838
10839 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10840
10841fi;
10842
10843 eval "$ac_cv_use_wizarddlg"
10844 if test "$no_cache" != 1; then
10845 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10846 fi
10847
10848 if test "$wxUSE_WIZARDDLG" = yes; then
10849 echo "$as_me:$LINENO: result: yes" >&5
10850echo "${ECHO_T}yes" >&6
10851 else
10852 echo "$as_me:$LINENO: result: no" >&5
10853echo "${ECHO_T}no" >&6
10854 fi
10855
10856
10857
10858
10859 enablestring=
10860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10861echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10862 no_cache=0
10863 # Check whether --enable-menus or --disable-menus was given.
10864if test "${enable_menus+set}" = set; then
10865 enableval="$enable_menus"
10866
10867 if test "$enableval" = yes; then
10868 ac_cv_use_menus='wxUSE_MENUS=yes'
10869 else
10870 ac_cv_use_menus='wxUSE_MENUS=no'
10871 fi
10872
10873else
10874
10875 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10876 if test "x$LINE" != x ; then
10877 eval "DEFAULT_$LINE"
10878 else
10879 no_cache=1
10880 fi
10881
10882 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10883
10884fi;
10885
10886 eval "$ac_cv_use_menus"
10887 if test "$no_cache" != 1; then
10888 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10889 fi
10890
10891 if test "$wxUSE_MENUS" = yes; then
10892 echo "$as_me:$LINENO: result: yes" >&5
10893echo "${ECHO_T}yes" >&6
10894 else
10895 echo "$as_me:$LINENO: result: no" >&5
10896echo "${ECHO_T}no" >&6
10897 fi
10898
10899
10900 enablestring=
10901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10902echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10903 no_cache=0
10904 # Check whether --enable-miniframe or --disable-miniframe was given.
10905if test "${enable_miniframe+set}" = set; then
10906 enableval="$enable_miniframe"
10907
10908 if test "$enableval" = yes; then
10909 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10910 else
10911 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10912 fi
10913
10914else
10915
10916 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10917 if test "x$LINE" != x ; then
10918 eval "DEFAULT_$LINE"
10919 else
10920 no_cache=1
10921 fi
10922
10923 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10924
10925fi;
10926
10927 eval "$ac_cv_use_miniframe"
10928 if test "$no_cache" != 1; then
10929 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10930 fi
10931
10932 if test "$wxUSE_MINIFRAME" = yes; then
10933 echo "$as_me:$LINENO: result: yes" >&5
10934echo "${ECHO_T}yes" >&6
10935 else
10936 echo "$as_me:$LINENO: result: no" >&5
10937echo "${ECHO_T}no" >&6
10938 fi
10939
10940
10941 enablestring=
10942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10943echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10944 no_cache=0
10945 # Check whether --enable-tooltips or --disable-tooltips was given.
10946if test "${enable_tooltips+set}" = set; then
10947 enableval="$enable_tooltips"
10948
10949 if test "$enableval" = yes; then
10950 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10951 else
10952 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10953 fi
10954
10955else
10956
10957 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10958 if test "x$LINE" != x ; then
10959 eval "DEFAULT_$LINE"
10960 else
10961 no_cache=1
10962 fi
10963
10964 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10965
10966fi;
10967
10968 eval "$ac_cv_use_tooltips"
10969 if test "$no_cache" != 1; then
10970 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10971 fi
10972
10973 if test "$wxUSE_TOOLTIPS" = yes; then
10974 echo "$as_me:$LINENO: result: yes" >&5
10975echo "${ECHO_T}yes" >&6
10976 else
10977 echo "$as_me:$LINENO: result: no" >&5
10978echo "${ECHO_T}no" >&6
10979 fi
10980
10981
10982 enablestring=
10983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10984echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10985 no_cache=0
10986 # Check whether --enable-splines or --disable-splines was given.
10987if test "${enable_splines+set}" = set; then
10988 enableval="$enable_splines"
10989
10990 if test "$enableval" = yes; then
10991 ac_cv_use_splines='wxUSE_SPLINES=yes'
10992 else
10993 ac_cv_use_splines='wxUSE_SPLINES=no'
10994 fi
10995
10996else
10997
10998 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10999 if test "x$LINE" != x ; then
11000 eval "DEFAULT_$LINE"
11001 else
11002 no_cache=1
11003 fi
11004
11005 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
11006
11007fi;
11008
11009 eval "$ac_cv_use_splines"
11010 if test "$no_cache" != 1; then
11011 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
11012 fi
11013
11014 if test "$wxUSE_SPLINES" = yes; then
11015 echo "$as_me:$LINENO: result: yes" >&5
11016echo "${ECHO_T}yes" >&6
11017 else
11018 echo "$as_me:$LINENO: result: no" >&5
11019echo "${ECHO_T}no" >&6
11020 fi
11021
11022
fbe2ca43
SN
11023 enablestring=
11024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
11025echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
11026 no_cache=0
11027 # Check whether --enable-mousewheel or --disable-mousewheel was given.
11028if test "${enable_mousewheel+set}" = set; then
11029 enableval="$enable_mousewheel"
11030
11031 if test "$enableval" = yes; then
11032 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
11033 else
11034 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
11035 fi
11036
11037else
11038
11039 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
11040 if test "x$LINE" != x ; then
11041 eval "DEFAULT_$LINE"
11042 else
11043 no_cache=1
11044 fi
11045
11046 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
11047
11048fi;
11049
11050 eval "$ac_cv_use_mousewheel"
11051 if test "$no_cache" != 1; then
11052 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
11053 fi
11054
11055 if test "$wxUSE_MOUSEWHEEL" = yes; then
11056 echo "$as_me:$LINENO: result: yes" >&5
11057echo "${ECHO_T}yes" >&6
11058 else
11059 echo "$as_me:$LINENO: result: no" >&5
11060echo "${ECHO_T}no" >&6
11061 fi
11062
11063
a848cd7e
SC
11064 enablestring=
11065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
11066echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
11067 no_cache=0
11068 # Check whether --enable-validators or --disable-validators was given.
11069if test "${enable_validators+set}" = set; then
11070 enableval="$enable_validators"
11071
11072 if test "$enableval" = yes; then
11073 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
11074 else
11075 ac_cv_use_validators='wxUSE_VALIDATORS=no'
11076 fi
11077
11078else
11079
11080 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
11081 if test "x$LINE" != x ; then
11082 eval "DEFAULT_$LINE"
11083 else
11084 no_cache=1
11085 fi
11086
11087 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
11088
11089fi;
11090
11091 eval "$ac_cv_use_validators"
11092 if test "$no_cache" != 1; then
11093 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
11094 fi
11095
11096 if test "$wxUSE_VALIDATORS" = yes; then
11097 echo "$as_me:$LINENO: result: yes" >&5
11098echo "${ECHO_T}yes" >&6
11099 else
11100 echo "$as_me:$LINENO: result: no" >&5
11101echo "${ECHO_T}no" >&6
11102 fi
11103
11104
11105 enablestring=
11106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
11107echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
11108 no_cache=0
11109 # Check whether --enable-busyinfo or --disable-busyinfo was given.
11110if test "${enable_busyinfo+set}" = set; then
11111 enableval="$enable_busyinfo"
11112
11113 if test "$enableval" = yes; then
11114 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
11115 else
11116 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
11117 fi
11118
11119else
11120
11121 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
11122 if test "x$LINE" != x ; then
11123 eval "DEFAULT_$LINE"
11124 else
11125 no_cache=1
11126 fi
11127
11128 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
11129
11130fi;
11131
11132 eval "$ac_cv_use_busyinfo"
11133 if test "$no_cache" != 1; then
11134 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
11135 fi
11136
11137 if test "$wxUSE_BUSYINFO" = yes; then
11138 echo "$as_me:$LINENO: result: yes" >&5
11139echo "${ECHO_T}yes" >&6
11140 else
11141 echo "$as_me:$LINENO: result: no" >&5
11142echo "${ECHO_T}no" >&6
11143 fi
11144
11145
11146 enablestring=
11147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
11148echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
11149 no_cache=0
11150 # Check whether --enable-joystick or --disable-joystick was given.
11151if test "${enable_joystick+set}" = set; then
11152 enableval="$enable_joystick"
11153
11154 if test "$enableval" = yes; then
11155 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
11156 else
11157 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
11158 fi
11159
11160else
11161
11162 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
11163 if test "x$LINE" != x ; then
11164 eval "DEFAULT_$LINE"
11165 else
11166 no_cache=1
11167 fi
11168
11169 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
11170
11171fi;
11172
11173 eval "$ac_cv_use_joystick"
11174 if test "$no_cache" != 1; then
11175 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
11176 fi
11177
11178 if test "$wxUSE_JOYSTICK" = yes; then
11179 echo "$as_me:$LINENO: result: yes" >&5
11180echo "${ECHO_T}yes" >&6
11181 else
11182 echo "$as_me:$LINENO: result: no" >&5
11183echo "${ECHO_T}no" >&6
11184 fi
11185
11186
11187 enablestring=
11188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
11189echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
11190 no_cache=0
11191 # Check whether --enable-metafile or --disable-metafile was given.
11192if test "${enable_metafile+set}" = set; then
11193 enableval="$enable_metafile"
11194
11195 if test "$enableval" = yes; then
11196 ac_cv_use_metafile='wxUSE_METAFILE=yes'
11197 else
11198 ac_cv_use_metafile='wxUSE_METAFILE=no'
11199 fi
11200
11201else
11202
11203 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
11204 if test "x$LINE" != x ; then
11205 eval "DEFAULT_$LINE"
11206 else
11207 no_cache=1
11208 fi
11209
11210 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
11211
11212fi;
11213
11214 eval "$ac_cv_use_metafile"
11215 if test "$no_cache" != 1; then
11216 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
11217 fi
11218
11219 if test "$wxUSE_METAFILE" = yes; then
11220 echo "$as_me:$LINENO: result: yes" >&5
11221echo "${ECHO_T}yes" >&6
11222 else
11223 echo "$as_me:$LINENO: result: no" >&5
11224echo "${ECHO_T}no" >&6
11225 fi
11226
11227
11228 enablestring=
11229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
11230echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
11231 no_cache=0
11232 # Check whether --enable-dragimage or --disable-dragimage was given.
11233if test "${enable_dragimage+set}" = set; then
11234 enableval="$enable_dragimage"
11235
11236 if test "$enableval" = yes; then
11237 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
11238 else
11239 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
11240 fi
11241
11242else
11243
11244 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
11245 if test "x$LINE" != x ; then
11246 eval "DEFAULT_$LINE"
11247 else
11248 no_cache=1
11249 fi
11250
11251 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
11252
11253fi;
11254
11255 eval "$ac_cv_use_dragimage"
11256 if test "$no_cache" != 1; then
11257 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
11258 fi
11259
11260 if test "$wxUSE_DRAGIMAGE" = yes; then
11261 echo "$as_me:$LINENO: result: yes" >&5
11262echo "${ECHO_T}yes" >&6
11263 else
11264 echo "$as_me:$LINENO: result: no" >&5
11265echo "${ECHO_T}no" >&6
11266 fi
11267
11268
11269 enablestring=
11270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
11271echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
11272 no_cache=0
11273 # Check whether --enable-accessibility or --disable-accessibility was given.
11274if test "${enable_accessibility+set}" = set; then
11275 enableval="$enable_accessibility"
11276
11277 if test "$enableval" = yes; then
11278 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
11279 else
11280 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
11281 fi
11282
11283else
11284
11285 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
11286 if test "x$LINE" != x ; then
11287 eval "DEFAULT_$LINE"
11288 else
11289 no_cache=1
11290 fi
11291
11292 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
11293
11294fi;
11295
11296 eval "$ac_cv_use_accessibility"
11297 if test "$no_cache" != 1; then
11298 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
11299 fi
11300
11301 if test "$wxUSE_ACCESSIBILITY" = yes; then
11302 echo "$as_me:$LINENO: result: yes" >&5
11303echo "${ECHO_T}yes" >&6
11304 else
11305 echo "$as_me:$LINENO: result: no" >&5
11306echo "${ECHO_T}no" >&6
11307 fi
11308
11309
38b4a946
VZ
11310if test "$wxUSE_MSW" = "1"; then
11311
11312 enablestring=
11313 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
11314echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
11315 no_cache=0
11316 # Check whether --enable-dccache or --disable-dccache was given.
11317if test "${enable_dccache+set}" = set; then
11318 enableval="$enable_dccache"
11319
11320 if test "$enableval" = yes; then
11321 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
11322 else
11323 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
11324 fi
11325
11326else
11327
11328 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
11329 if test "x$LINE" != x ; then
11330 eval "DEFAULT_$LINE"
11331 else
11332 no_cache=1
11333 fi
11334
11335 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
11336
11337fi;
11338
11339 eval "$ac_cv_use_dccache"
11340 if test "$no_cache" != 1; then
11341 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
11342 fi
11343
11344 if test "$wxUSE_DC_CACHEING" = yes; then
11345 echo "$as_me:$LINENO: result: yes" >&5
11346echo "${ECHO_T}yes" >&6
11347 else
11348 echo "$as_me:$LINENO: result: no" >&5
11349echo "${ECHO_T}no" >&6
11350 fi
11351
11352fi
11353
a848cd7e
SC
11354
11355
11356 enablestring=
11357 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
11358echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
11359 no_cache=0
11360 # Check whether --enable-palette or --disable-palette was given.
11361if test "${enable_palette+set}" = set; then
11362 enableval="$enable_palette"
11363
11364 if test "$enableval" = yes; then
11365 ac_cv_use_palette='wxUSE_PALETTE=yes'
11366 else
11367 ac_cv_use_palette='wxUSE_PALETTE=no'
11368 fi
11369
11370else
11371
11372 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
11373 if test "x$LINE" != x ; then
11374 eval "DEFAULT_$LINE"
11375 else
11376 no_cache=1
11377 fi
11378
11379 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
11380
11381fi;
11382
11383 eval "$ac_cv_use_palette"
11384 if test "$no_cache" != 1; then
11385 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
11386 fi
11387
11388 if test "$wxUSE_PALETTE" = yes; then
11389 echo "$as_me:$LINENO: result: yes" >&5
11390echo "${ECHO_T}yes" >&6
11391 else
11392 echo "$as_me:$LINENO: result: no" >&5
11393echo "${ECHO_T}no" >&6
11394 fi
11395
11396
11397 enablestring=
11398 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
11399echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
11400 no_cache=0
11401 # Check whether --enable-image or --disable-image was given.
11402if test "${enable_image+set}" = set; then
11403 enableval="$enable_image"
11404
11405 if test "$enableval" = yes; then
11406 ac_cv_use_image='wxUSE_IMAGE=yes'
11407 else
11408 ac_cv_use_image='wxUSE_IMAGE=no'
11409 fi
11410
11411else
11412
11413 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
11414 if test "x$LINE" != x ; then
11415 eval "DEFAULT_$LINE"
11416 else
11417 no_cache=1
11418 fi
11419
11420 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
11421
11422fi;
11423
11424 eval "$ac_cv_use_image"
11425 if test "$no_cache" != 1; then
11426 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
11427 fi
11428
11429 if test "$wxUSE_IMAGE" = yes; then
11430 echo "$as_me:$LINENO: result: yes" >&5
11431echo "${ECHO_T}yes" >&6
11432 else
11433 echo "$as_me:$LINENO: result: no" >&5
11434echo "${ECHO_T}no" >&6
11435 fi
11436
11437
11438 enablestring=
11439 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
11440echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
11441 no_cache=0
11442 # Check whether --enable-gif or --disable-gif was given.
11443if test "${enable_gif+set}" = set; then
11444 enableval="$enable_gif"
11445
11446 if test "$enableval" = yes; then
11447 ac_cv_use_gif='wxUSE_GIF=yes'
11448 else
11449 ac_cv_use_gif='wxUSE_GIF=no'
11450 fi
11451
11452else
11453
11454 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
11455 if test "x$LINE" != x ; then
11456 eval "DEFAULT_$LINE"
11457 else
11458 no_cache=1
11459 fi
11460
11461 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
11462
11463fi;
11464
11465 eval "$ac_cv_use_gif"
11466 if test "$no_cache" != 1; then
11467 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
11468 fi
11469
11470 if test "$wxUSE_GIF" = yes; then
11471 echo "$as_me:$LINENO: result: yes" >&5
11472echo "${ECHO_T}yes" >&6
11473 else
11474 echo "$as_me:$LINENO: result: no" >&5
11475echo "${ECHO_T}no" >&6
11476 fi
11477
11478
11479 enablestring=
11480 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11481echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11482 no_cache=0
11483 # Check whether --enable-pcx or --disable-pcx was given.
11484if test "${enable_pcx+set}" = set; then
11485 enableval="$enable_pcx"
11486
11487 if test "$enableval" = yes; then
11488 ac_cv_use_pcx='wxUSE_PCX=yes'
11489 else
11490 ac_cv_use_pcx='wxUSE_PCX=no'
11491 fi
11492
11493else
11494
11495 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11496 if test "x$LINE" != x ; then
11497 eval "DEFAULT_$LINE"
11498 else
11499 no_cache=1
11500 fi
11501
11502 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11503
11504fi;
11505
11506 eval "$ac_cv_use_pcx"
11507 if test "$no_cache" != 1; then
11508 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11509 fi
11510
11511 if test "$wxUSE_PCX" = yes; then
11512 echo "$as_me:$LINENO: result: yes" >&5
11513echo "${ECHO_T}yes" >&6
11514 else
11515 echo "$as_me:$LINENO: result: no" >&5
11516echo "${ECHO_T}no" >&6
11517 fi
11518
11519
bb9e79c0
VZ
11520 enablestring=
11521 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
11522echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6
11523 no_cache=0
11524 # Check whether --enable-tga or --disable-tga was given.
11525if test "${enable_tga+set}" = set; then
11526 enableval="$enable_tga"
11527
11528 if test "$enableval" = yes; then
11529 ac_cv_use_tga='wxUSE_TGA=yes'
11530 else
11531 ac_cv_use_tga='wxUSE_TGA=no'
11532 fi
11533
11534else
11535
11536 LINE=`grep "wxUSE_TGA" ${wx_arg_cache_file}`
11537 if test "x$LINE" != x ; then
11538 eval "DEFAULT_$LINE"
11539 else
11540 no_cache=1
11541 fi
11542
11543 ac_cv_use_tga='wxUSE_TGA='$DEFAULT_wxUSE_TGA
11544
11545fi;
11546
11547 eval "$ac_cv_use_tga"
11548 if test "$no_cache" != 1; then
11549 echo $ac_cv_use_tga >> ${wx_arg_cache_file}.tmp
11550 fi
11551
11552 if test "$wxUSE_TGA" = yes; then
11553 echo "$as_me:$LINENO: result: yes" >&5
11554echo "${ECHO_T}yes" >&6
11555 else
11556 echo "$as_me:$LINENO: result: no" >&5
11557echo "${ECHO_T}no" >&6
11558 fi
11559
11560
a848cd7e
SC
11561 enablestring=
11562 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11563echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11564 no_cache=0
11565 # Check whether --enable-iff or --disable-iff was given.
11566if test "${enable_iff+set}" = set; then
11567 enableval="$enable_iff"
11568
11569 if test "$enableval" = yes; then
11570 ac_cv_use_iff='wxUSE_IFF=yes'
11571 else
11572 ac_cv_use_iff='wxUSE_IFF=no'
11573 fi
11574
11575else
11576
11577 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11578 if test "x$LINE" != x ; then
11579 eval "DEFAULT_$LINE"
11580 else
11581 no_cache=1
11582 fi
11583
11584 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11585
11586fi;
11587
11588 eval "$ac_cv_use_iff"
11589 if test "$no_cache" != 1; then
11590 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11591 fi
11592
11593 if test "$wxUSE_IFF" = yes; then
11594 echo "$as_me:$LINENO: result: yes" >&5
11595echo "${ECHO_T}yes" >&6
11596 else
11597 echo "$as_me:$LINENO: result: no" >&5
11598echo "${ECHO_T}no" >&6
11599 fi
11600
11601
11602 enablestring=
11603 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11604echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11605 no_cache=0
11606 # Check whether --enable-pnm or --disable-pnm was given.
11607if test "${enable_pnm+set}" = set; then
11608 enableval="$enable_pnm"
11609
11610 if test "$enableval" = yes; then
11611 ac_cv_use_pnm='wxUSE_PNM=yes'
11612 else
11613 ac_cv_use_pnm='wxUSE_PNM=no'
11614 fi
11615
11616else
11617
11618 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11619 if test "x$LINE" != x ; then
11620 eval "DEFAULT_$LINE"
11621 else
11622 no_cache=1
11623 fi
11624
11625 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11626
11627fi;
11628
11629 eval "$ac_cv_use_pnm"
11630 if test "$no_cache" != 1; then
11631 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11632 fi
11633
11634 if test "$wxUSE_PNM" = yes; then
11635 echo "$as_me:$LINENO: result: yes" >&5
11636echo "${ECHO_T}yes" >&6
11637 else
11638 echo "$as_me:$LINENO: result: no" >&5
11639echo "${ECHO_T}no" >&6
11640 fi
11641
11642
11643 enablestring=
11644 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11645echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11646 no_cache=0
11647 # Check whether --enable-xpm or --disable-xpm was given.
11648if test "${enable_xpm+set}" = set; then
11649 enableval="$enable_xpm"
11650
11651 if test "$enableval" = yes; then
11652 ac_cv_use_xpm='wxUSE_XPM=yes'
11653 else
11654 ac_cv_use_xpm='wxUSE_XPM=no'
11655 fi
11656
11657else
11658
11659 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11660 if test "x$LINE" != x ; then
11661 eval "DEFAULT_$LINE"
11662 else
11663 no_cache=1
11664 fi
11665
11666 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11667
11668fi;
11669
11670 eval "$ac_cv_use_xpm"
11671 if test "$no_cache" != 1; then
11672 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11673 fi
11674
11675 if test "$wxUSE_XPM" = yes; then
11676 echo "$as_me:$LINENO: result: yes" >&5
11677echo "${ECHO_T}yes" >&6
11678 else
11679 echo "$as_me:$LINENO: result: no" >&5
11680echo "${ECHO_T}no" >&6
11681 fi
11682
11683
11684 enablestring=
11685 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11686echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11687 no_cache=0
11688 # Check whether --enable-ico_cur or --disable-ico_cur was given.
11689if test "${enable_ico_cur+set}" = set; then
11690 enableval="$enable_ico_cur"
11691
11692 if test "$enableval" = yes; then
11693 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11694 else
11695 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11696 fi
11697
11698else
11699
11700 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11701 if test "x$LINE" != x ; then
11702 eval "DEFAULT_$LINE"
11703 else
11704 no_cache=1
11705 fi
11706
11707 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11708
11709fi;
11710
11711 eval "$ac_cv_use_ico_cur"
11712 if test "$no_cache" != 1; then
11713 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11714 fi
11715
11716 if test "$wxUSE_ICO_CUR" = yes; then
11717 echo "$as_me:$LINENO: result: yes" >&5
11718echo "${ECHO_T}yes" >&6
11719 else
11720 echo "$as_me:$LINENO: result: no" >&5
11721echo "${ECHO_T}no" >&6
11722 fi
11723
11724
11725fi
11726
11727
11728
ceec2216
RL
11729# Check whether --with-flavour or --without-flavour was given.
11730if test "${with_flavour+set}" = set; then
11731 withval="$with_flavour"
11732 WX_FLAVOUR="$withval"
11733fi;
11734
11735
11736
a848cd7e
SC
11737 enablestring=
11738 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11739echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11740 no_cache=0
11741 # Check whether --enable-official_build or --disable-official_build was given.
11742if test "${enable_official_build+set}" = set; then
11743 enableval="$enable_official_build"
11744
11745 if test "$enableval" = yes; then
11746 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11747 else
11748 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11749 fi
11750
11751else
11752
11753 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11754 if test "x$LINE" != x ; then
11755 eval "DEFAULT_$LINE"
11756 else
11757 no_cache=1
11758 fi
11759
11760 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11761
11762fi;
11763
11764 eval "$ac_cv_use_official_build"
11765 if test "$no_cache" != 1; then
11766 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11767 fi
11768
11769 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11770 echo "$as_me:$LINENO: result: yes" >&5
11771echo "${ECHO_T}yes" >&6
11772 else
11773 echo "$as_me:$LINENO: result: no" >&5
11774echo "${ECHO_T}no" >&6
11775 fi
11776
11777# Check whether --enable-vendor or --disable-vendor was given.
11778if test "${enable_vendor+set}" = set; then
11779 enableval="$enable_vendor"
11780 VENDOR="$enableval"
11781fi;
11782if test "x$VENDOR" = "x"; then
11783 VENDOR="custom"
11784fi
11785
a848cd7e
SC
11786
11787
11788
11789 echo "saving argument cache $wx_arg_cache_file"
11790 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11791
11792
11793
11794echo "$as_me:$LINENO: checking for toolkit" >&5
11795echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11796
11797# In Wine, we need to default to MSW, not GTK or MOTIF
11798if test "$wxUSE_WINE" = "yes"; then
11799 DEFAULT_DEFAULT_wxUSE_GTK=0
11800 DEFAULT_DEFAULT_wxUSE_MOTIF=0
11801 DEFAULT_DEFAULT_wxUSE_MSW=1
11802 wxUSE_SHARED=no
11803fi
11804
f597b41c 11805
a848cd7e
SC
11806if test "$wxUSE_GUI" = "yes"; then
11807
11808 if test "$USE_BEOS" = 1; then
11809 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11810echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11811 { (exit 1); exit 1; }; }
11812 fi
11813
11814 if test "$TOOLKIT_GIVEN" = 1; then
11815 for toolkit in `echo $ALL_TOOLKITS`; do
11816 var=wxUSE_$toolkit
11817 eval "value=\$${var}"
f34ca037
MW
11818 if test "x$value" = "xno"; then
11819 eval "$var=0"
11820 elif test "x$value" != "x"; then
11821 eval "$var=1"
11822 fi
11823
11824 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11825 eval "wx${toolkit}_VERSION=$value"
11826 fi
a848cd7e
SC
11827 done
11828 else
11829 for toolkit in `echo $ALL_TOOLKITS`; do
11830 if test "$has_toolkit_in_cache" != 1; then
11831 var=DEFAULT_DEFAULT_wxUSE_$toolkit
11832 else
11833 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
11834
11835 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11836 if test "x$version" != "x"; then
11837 eval "wx${toolkit}_VERSION=$version"
11838 fi
a848cd7e
SC
11839 fi
11840 eval "wxUSE_$toolkit=\$${var}"
11841 done
11842 fi
11843
11844 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
b3c86150 11845 + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
a848cd7e
SC
11846 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11847
11848 case "${host}" in
11849 *-pc-os2_emx | *-pc-os2-emx )
11850 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11851 esac
11852
11853 case "$NUM_TOOLKITS" in
11854 1)
11855 ;;
11856 0)
11857 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11858echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11859 { (exit 1); exit 1; }; }
11860 ;;
11861 *)
11862 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11863echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11864 { (exit 1); exit 1; }; }
11865 esac
11866
f34ca037
MW
11867 # to be removed when --disable-gtk2 isn't needed
11868 if test "x$wxUSE_GTK2" = "xyes"; then
11869 wxGTK_VERSION=2
11870 elif test "x$wxUSE_GTK2" = "xno"; then
11871 wxGTK_VERSION=1
11872 fi
11873
a848cd7e
SC
11874 for toolkit in `echo $ALL_TOOLKITS`; do
11875 var=wxUSE_$toolkit
11876 eval "value=\$${var}"
11877 if test "x$value" != x; then
11878 cache_var=CACHE_$toolkit
11879 eval "cache=\$${cache_var}"
11880 if test "$cache" = 1; then
11881 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
11882 eval "version=\$wx${toolkit}_VERSION"
11883 if test "x$version" != "x"; then
11884 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11885 fi
a848cd7e
SC
11886 fi
11887 if test "$value" = 1; then
11888 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11889 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11890echo "${ECHO_T}$toolkit_echo" >&6
11891 fi
11892 fi
11893 done
11894else
11895 if test "x$host_alias" != "x"; then
11896 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11897echo "${ECHO_T}base ($host_alias hosted) only" >&6
11898 else
11899 echo "$as_me:$LINENO: result: base only" >&5
11900echo "${ECHO_T}base only" >&6
11901 fi
11902fi
11903
11904wants_win32=0
11905doesnt_want_win32=0
11906case "${host}" in
11907 *-*-cygwin*)
11908 if test "$wxUSE_MSW" = 1 ; then
11909 wants_win32=1
7275146d 11910 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
11911 else
11912 doesnt_want_win32=1
11913 fi
11914 ;;
11915 *-*-mingw*)
11916 wants_win32=1
11917 ;;
11918esac
11919
11920if test "$wxUSE_WINE" = "yes"; then
11921 wants_win32=1
11922 CC=winegcc
11923 CXX=wineg++
a848cd7e
SC
11924 LDFLAGS_GUI="-mwindows"
11925fi
11926
11927if test "$wants_win32" = 1 ; then
11928 USE_UNIX=0
11929 USE_WIN32=1
11930 cat >>confdefs.h <<\_ACEOF
11931#define __WIN32__ 1
11932_ACEOF
11933
11934 cat >>confdefs.h <<\_ACEOF
11935#define __WIN95__ 1
11936_ACEOF
11937
11938 cat >>confdefs.h <<\_ACEOF
11939#define __WINDOWS__ 1
11940_ACEOF
11941
11942 cat >>confdefs.h <<\_ACEOF
11943#define __GNUWIN32__ 1
11944_ACEOF
11945
11946 cat >>confdefs.h <<\_ACEOF
11947#define STRICT 1
a848cd7e
SC
11948_ACEOF
11949
11950fi
11951if test "$doesnt_want_win32" = 1 ; then
11952 USE_UNIX=1
11953 USE_WIN32=0
11954fi
11955
11956if test "$USE_UNIX" = 1 ; then
11957 wxUSE_UNIX=yes
11958 cat >>confdefs.h <<\_ACEOF
11959#define __UNIX__ 1
11960_ACEOF
11961
11962fi
11963
11964
11965cat >confcache <<\_ACEOF
11966# This file is a shell script that caches the results of configure
11967# tests run on this system so they can be shared between configure
11968# scripts and configure runs, see configure's option --config-cache.
11969# It is not useful on other systems. If it contains results you don't
11970# want to keep, you may remove or edit it.
11971#
11972# config.status only pays attention to the cache file if you give it
11973# the --recheck option to rerun configure.
11974#
11975# `ac_cv_env_foo' variables (set or unset) will be overridden when
11976# loading this file, other *unset* `ac_cv_foo' will be assigned the
11977# following values.
11978
11979_ACEOF
11980
11981# The following way of writing the cache mishandles newlines in values,
11982# but we know of no workaround that is simple, portable, and efficient.
11983# So, don't put newlines in cache variables' values.
11984# Ultrix sh set writes to stderr and can't be redirected directly,
11985# and sets the high bit in the cache file unless we assign to the vars.
11986{
11987 (set) 2>&1 |
11988 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11989 *ac_space=\ *)
11990 # `set' does not quote correctly, so add quotes (double-quote
11991 # substitution turns \\\\ into \\, and sed turns \\ into \).
11992 sed -n \
ac1cb8d3
VS
11993 "s/'/'\\\\''/g;
11994 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
11995 ;;
11996 *)
11997 # `set' quotes correctly as required by POSIX, so do not add quotes.
11998 sed -n \
ac1cb8d3 11999 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
12000 ;;
12001 esac;
12002} |
12003 sed '
12004 t clear
12005 : clear
12006 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12007 t end
12008 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12009 : end' >>confcache
12010if diff $cache_file confcache >/dev/null 2>&1; then :; else
12011 if test -w $cache_file; then
12012 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12013 cat confcache >$cache_file
12014 else
12015 echo "not updating unwritable cache $cache_file"
12016 fi
12017fi
12018rm -f confcache
12019
a848cd7e 12020CFLAGS=${CFLAGS:=}
6dcfc289
DE
12021
12022
3006edc0 12023
6dcfc289 12024 ac_ext=c
a848cd7e
SC
12025ac_cpp='$CPP $CPPFLAGS'
12026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12028ac_compiler_gnu=$ac_cv_c_compiler_gnu
12029if test -n "$ac_tool_prefix"; then
12030 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12031set dummy ${ac_tool_prefix}gcc; ac_word=$2
12032echo "$as_me:$LINENO: checking for $ac_word" >&5
12033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12034if test "${ac_cv_prog_CC+set}" = set; then
12035 echo $ECHO_N "(cached) $ECHO_C" >&6
12036else
12037 if test -n "$CC"; then
12038 ac_cv_prog_CC="$CC" # Let the user override the test.
12039else
12040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12041for as_dir in $PATH
12042do
12043 IFS=$as_save_IFS
12044 test -z "$as_dir" && as_dir=.
12045 for ac_exec_ext in '' $ac_executable_extensions; do
12046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12047 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12049 break 2
12050 fi
12051done
12052done
12053
12054fi
12055fi
12056CC=$ac_cv_prog_CC
12057if test -n "$CC"; then
12058 echo "$as_me:$LINENO: result: $CC" >&5
12059echo "${ECHO_T}$CC" >&6
12060else
12061 echo "$as_me:$LINENO: result: no" >&5
12062echo "${ECHO_T}no" >&6
12063fi
12064
12065fi
12066if test -z "$ac_cv_prog_CC"; then
12067 ac_ct_CC=$CC
12068 # Extract the first word of "gcc", so it can be a program name with args.
12069set dummy gcc; ac_word=$2
12070echo "$as_me:$LINENO: checking for $ac_word" >&5
12071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12072if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12073 echo $ECHO_N "(cached) $ECHO_C" >&6
12074else
12075 if test -n "$ac_ct_CC"; then
12076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12077else
12078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12079for as_dir in $PATH
12080do
12081 IFS=$as_save_IFS
12082 test -z "$as_dir" && as_dir=.
12083 for ac_exec_ext in '' $ac_executable_extensions; do
12084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12085 ac_cv_prog_ac_ct_CC="gcc"
12086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12087 break 2
12088 fi
12089done
12090done
12091
12092fi
12093fi
12094ac_ct_CC=$ac_cv_prog_ac_ct_CC
12095if test -n "$ac_ct_CC"; then
12096 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12097echo "${ECHO_T}$ac_ct_CC" >&6
12098else
12099 echo "$as_me:$LINENO: result: no" >&5
12100echo "${ECHO_T}no" >&6
12101fi
12102
12103 CC=$ac_ct_CC
12104else
12105 CC="$ac_cv_prog_CC"
12106fi
12107
12108if test -z "$CC"; then
12109 if test -n "$ac_tool_prefix"; then
12110 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12111set dummy ${ac_tool_prefix}cc; ac_word=$2
12112echo "$as_me:$LINENO: checking for $ac_word" >&5
12113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12114if test "${ac_cv_prog_CC+set}" = set; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12116else
12117 if test -n "$CC"; then
12118 ac_cv_prog_CC="$CC" # Let the user override the test.
12119else
12120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12121for as_dir in $PATH
12122do
12123 IFS=$as_save_IFS
12124 test -z "$as_dir" && as_dir=.
12125 for ac_exec_ext in '' $ac_executable_extensions; do
12126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12127 ac_cv_prog_CC="${ac_tool_prefix}cc"
12128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12129 break 2
12130 fi
12131done
12132done
12133
12134fi
12135fi
12136CC=$ac_cv_prog_CC
12137if test -n "$CC"; then
12138 echo "$as_me:$LINENO: result: $CC" >&5
12139echo "${ECHO_T}$CC" >&6
12140else
12141 echo "$as_me:$LINENO: result: no" >&5
12142echo "${ECHO_T}no" >&6
12143fi
12144
12145fi
12146if test -z "$ac_cv_prog_CC"; then
12147 ac_ct_CC=$CC
12148 # Extract the first word of "cc", so it can be a program name with args.
12149set dummy cc; ac_word=$2
12150echo "$as_me:$LINENO: checking for $ac_word" >&5
12151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12152if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12154else
12155 if test -n "$ac_ct_CC"; then
12156 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12157else
12158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12159for as_dir in $PATH
12160do
12161 IFS=$as_save_IFS
12162 test -z "$as_dir" && as_dir=.
12163 for ac_exec_ext in '' $ac_executable_extensions; do
12164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12165 ac_cv_prog_ac_ct_CC="cc"
12166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12167 break 2
12168 fi
12169done
12170done
12171
12172fi
12173fi
12174ac_ct_CC=$ac_cv_prog_ac_ct_CC
12175if test -n "$ac_ct_CC"; then
12176 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12177echo "${ECHO_T}$ac_ct_CC" >&6
12178else
12179 echo "$as_me:$LINENO: result: no" >&5
12180echo "${ECHO_T}no" >&6
12181fi
12182
12183 CC=$ac_ct_CC
12184else
12185 CC="$ac_cv_prog_CC"
12186fi
12187
12188fi
12189if test -z "$CC"; then
12190 # Extract the first word of "cc", so it can be a program name with args.
12191set dummy cc; ac_word=$2
12192echo "$as_me:$LINENO: checking for $ac_word" >&5
12193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12194if test "${ac_cv_prog_CC+set}" = set; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12196else
12197 if test -n "$CC"; then
12198 ac_cv_prog_CC="$CC" # Let the user override the test.
12199else
12200 ac_prog_rejected=no
12201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12202for as_dir in $PATH
12203do
12204 IFS=$as_save_IFS
12205 test -z "$as_dir" && as_dir=.
12206 for ac_exec_ext in '' $ac_executable_extensions; do
12207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12208 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12209 ac_prog_rejected=yes
12210 continue
12211 fi
12212 ac_cv_prog_CC="cc"
12213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12214 break 2
12215 fi
12216done
12217done
12218
12219if test $ac_prog_rejected = yes; then
12220 # We found a bogon in the path, so make sure we never use it.
12221 set dummy $ac_cv_prog_CC
12222 shift
12223 if test $# != 0; then
12224 # We chose a different compiler from the bogus one.
12225 # However, it has the same basename, so the bogon will be chosen
12226 # first if we set CC to just the basename; use the full file name.
12227 shift
12228 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12229 fi
12230fi
12231fi
12232fi
12233CC=$ac_cv_prog_CC
12234if test -n "$CC"; then
12235 echo "$as_me:$LINENO: result: $CC" >&5
12236echo "${ECHO_T}$CC" >&6
12237else
12238 echo "$as_me:$LINENO: result: no" >&5
12239echo "${ECHO_T}no" >&6
12240fi
12241
12242fi
12243if test -z "$CC"; then
12244 if test -n "$ac_tool_prefix"; then
12245 for ac_prog in cl
12246 do
12247 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12248set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12249echo "$as_me:$LINENO: checking for $ac_word" >&5
12250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12251if test "${ac_cv_prog_CC+set}" = set; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12253else
12254 if test -n "$CC"; then
12255 ac_cv_prog_CC="$CC" # Let the user override the test.
12256else
12257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12258for as_dir in $PATH
12259do
12260 IFS=$as_save_IFS
12261 test -z "$as_dir" && as_dir=.
12262 for ac_exec_ext in '' $ac_executable_extensions; do
12263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12264 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12266 break 2
12267 fi
12268done
12269done
12270
12271fi
12272fi
12273CC=$ac_cv_prog_CC
12274if test -n "$CC"; then
12275 echo "$as_me:$LINENO: result: $CC" >&5
12276echo "${ECHO_T}$CC" >&6
12277else
12278 echo "$as_me:$LINENO: result: no" >&5
12279echo "${ECHO_T}no" >&6
12280fi
12281
12282 test -n "$CC" && break
12283 done
12284fi
12285if test -z "$CC"; then
12286 ac_ct_CC=$CC
12287 for ac_prog in cl
12288do
12289 # Extract the first word of "$ac_prog", so it can be a program name with args.
12290set dummy $ac_prog; ac_word=$2
12291echo "$as_me:$LINENO: checking for $ac_word" >&5
12292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12293if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12294 echo $ECHO_N "(cached) $ECHO_C" >&6
12295else
12296 if test -n "$ac_ct_CC"; then
12297 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12298else
12299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12300for as_dir in $PATH
12301do
12302 IFS=$as_save_IFS
12303 test -z "$as_dir" && as_dir=.
12304 for ac_exec_ext in '' $ac_executable_extensions; do
12305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12306 ac_cv_prog_ac_ct_CC="$ac_prog"
12307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12308 break 2
12309 fi
12310done
12311done
12312
12313fi
12314fi
12315ac_ct_CC=$ac_cv_prog_ac_ct_CC
12316if test -n "$ac_ct_CC"; then
12317 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12318echo "${ECHO_T}$ac_ct_CC" >&6
12319else
12320 echo "$as_me:$LINENO: result: no" >&5
12321echo "${ECHO_T}no" >&6
12322fi
12323
12324 test -n "$ac_ct_CC" && break
12325done
12326
12327 CC=$ac_ct_CC
12328fi
12329
12330fi
12331
12332
12333test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12334See \`config.log' for more details." >&5
12335echo "$as_me: error: no acceptable C compiler found in \$PATH
12336See \`config.log' for more details." >&2;}
12337 { (exit 1); exit 1; }; }
12338
12339# Provide some information about the compiler.
12340echo "$as_me:$LINENO:" \
12341 "checking for C compiler version" >&5
12342ac_compiler=`set X $ac_compile; echo $2`
12343{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12344 (eval $ac_compiler --version </dev/null >&5) 2>&5
12345 ac_status=$?
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); }
12348{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12349 (eval $ac_compiler -v </dev/null >&5) 2>&5
12350 ac_status=$?
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); }
12353{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12354 (eval $ac_compiler -V </dev/null >&5) 2>&5
12355 ac_status=$?
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }
12358
12359cat >conftest.$ac_ext <<_ACEOF
12360/* confdefs.h. */
12361_ACEOF
12362cat confdefs.h >>conftest.$ac_ext
12363cat >>conftest.$ac_ext <<_ACEOF
12364/* end confdefs.h. */
12365
12366int
12367main ()
12368{
12369
12370 ;
12371 return 0;
12372}
12373_ACEOF
12374ac_clean_files_save=$ac_clean_files
12375ac_clean_files="$ac_clean_files a.out a.exe b.out"
12376# Try to create an executable without -o first, disregard a.out.
12377# It will help us diagnose broken compilers, and finding out an intuition
12378# of exeext.
ac1cb8d3
VS
12379echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
12380echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
12381ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
12382if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
12383 (eval $ac_link_default) 2>&5
12384 ac_status=$?
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; then
12387 # Find the output, starting from the most likely. This scheme is
12388# not robust to junk in `.', hence go to wildcards (a.*) only as a last
12389# resort.
12390
12391# Be careful to initialize this variable, since it used to be cached.
12392# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
12393ac_cv_exeext=
12394# b.out is created by i960 compilers.
12395for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
12396do
12397 test -f "$ac_file" || continue
12398 case $ac_file in
12399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 12400 ;;
a848cd7e 12401 conftest.$ac_ext )
ac1cb8d3
VS
12402 # This is the source file.
12403 ;;
a848cd7e 12404 [ab].out )
ac1cb8d3
VS
12405 # We found the default executable, but exeext='' is most
12406 # certainly right.
12407 break;;
a848cd7e 12408 *.* )
ac1cb8d3
VS
12409 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12410 # FIXME: I believe we export ac_cv_exeext for Libtool,
12411 # but it would be cool to find out if it's true. Does anybody
12412 # maintain Libtool? --akim.
12413 export ac_cv_exeext
12414 break;;
a848cd7e 12415 * )
ac1cb8d3 12416 break;;
a848cd7e
SC
12417 esac
12418done
12419else
12420 echo "$as_me: failed program was:" >&5
12421sed 's/^/| /' conftest.$ac_ext >&5
12422
12423{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
12424See \`config.log' for more details." >&5
12425echo "$as_me: error: C compiler cannot create executables
12426See \`config.log' for more details." >&2;}
12427 { (exit 77); exit 77; }; }
12428fi
12429
12430ac_exeext=$ac_cv_exeext
12431echo "$as_me:$LINENO: result: $ac_file" >&5
12432echo "${ECHO_T}$ac_file" >&6
12433
12434# Check the compiler produces executables we can run. If not, either
12435# the compiler is broken, or we cross compile.
12436echo "$as_me:$LINENO: checking whether the C compiler works" >&5
12437echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
12438# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
12439# If not cross compiling, check that we can run a simple program.
12440if test "$cross_compiling" != yes; then
12441 if { ac_try='./$ac_file'
12442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12443 (eval $ac_try) 2>&5
12444 ac_status=$?
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); }; }; then
12447 cross_compiling=no
12448 else
12449 if test "$cross_compiling" = maybe; then
12450 cross_compiling=yes
12451 else
12452 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
12453If you meant to cross compile, use \`--host'.
12454See \`config.log' for more details." >&5
12455echo "$as_me: error: cannot run C compiled programs.
12456If you meant to cross compile, use \`--host'.
12457See \`config.log' for more details." >&2;}
12458 { (exit 1); exit 1; }; }
12459 fi
12460 fi
12461fi
12462echo "$as_me:$LINENO: result: yes" >&5
12463echo "${ECHO_T}yes" >&6
12464
12465rm -f a.out a.exe conftest$ac_cv_exeext b.out
12466ac_clean_files=$ac_clean_files_save
12467# Check the compiler produces executables we can run. If not, either
12468# the compiler is broken, or we cross compile.
12469echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12470echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12471echo "$as_me:$LINENO: result: $cross_compiling" >&5
12472echo "${ECHO_T}$cross_compiling" >&6
12473
12474echo "$as_me:$LINENO: checking for suffix of executables" >&5
12475echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12477 (eval $ac_link) 2>&5
12478 ac_status=$?
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); }; then
12481 # If both `conftest.exe' and `conftest' are `present' (well, observable)
12482# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
12483# work properly (i.e., refer to `conftest.exe'), while it won't with
12484# `rm'.
12485for ac_file in conftest.exe conftest conftest.*; do
12486 test -f "$ac_file" || continue
12487 case $ac_file in
12488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12489 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
12490 export ac_cv_exeext
12491 break;;
a848cd7e
SC
12492 * ) break;;
12493 esac
12494done
12495else
12496 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12497See \`config.log' for more details." >&5
12498echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12499See \`config.log' for more details." >&2;}
12500 { (exit 1); exit 1; }; }
12501fi
12502
12503rm -f conftest$ac_cv_exeext
12504echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12505echo "${ECHO_T}$ac_cv_exeext" >&6
12506
12507rm -f conftest.$ac_ext
12508EXEEXT=$ac_cv_exeext
12509ac_exeext=$EXEEXT
12510echo "$as_me:$LINENO: checking for suffix of object files" >&5
12511echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12512if test "${ac_cv_objext+set}" = set; then
12513 echo $ECHO_N "(cached) $ECHO_C" >&6
12514else
12515 cat >conftest.$ac_ext <<_ACEOF
12516/* confdefs.h. */
12517_ACEOF
12518cat confdefs.h >>conftest.$ac_ext
12519cat >>conftest.$ac_ext <<_ACEOF
12520/* end confdefs.h. */
12521
12522int
12523main ()
12524{
12525
12526 ;
12527 return 0;
12528}
12529_ACEOF
12530rm -f conftest.o conftest.obj
12531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12532 (eval $ac_compile) 2>&5
12533 ac_status=$?
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; then
12536 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12537 case $ac_file in
12538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12539 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12540 break;;
12541 esac
12542done
12543else
12544 echo "$as_me: failed program was:" >&5
12545sed 's/^/| /' conftest.$ac_ext >&5
12546
12547{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12548See \`config.log' for more details." >&5
12549echo "$as_me: error: cannot compute suffix of object files: cannot compile
12550See \`config.log' for more details." >&2;}
12551 { (exit 1); exit 1; }; }
12552fi
12553
12554rm -f conftest.$ac_cv_objext conftest.$ac_ext
12555fi
12556echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12557echo "${ECHO_T}$ac_cv_objext" >&6
12558OBJEXT=$ac_cv_objext
12559ac_objext=$OBJEXT
12560echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12561echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12562if test "${ac_cv_c_compiler_gnu+set}" = set; then
12563 echo $ECHO_N "(cached) $ECHO_C" >&6
12564else
12565 cat >conftest.$ac_ext <<_ACEOF
12566/* confdefs.h. */
12567_ACEOF
12568cat confdefs.h >>conftest.$ac_ext
12569cat >>conftest.$ac_ext <<_ACEOF
12570/* end confdefs.h. */
12571
12572int
12573main ()
12574{
12575#ifndef __GNUC__
12576 choke me
12577#endif
12578
12579 ;
12580 return 0;
12581}
12582_ACEOF
12583rm -f conftest.$ac_objext
12584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12585 (eval $ac_compile) 2>conftest.er1
a848cd7e 12586 ac_status=$?
ac1cb8d3
VS
12587 grep -v '^ *+' conftest.er1 >conftest.err
12588 rm -f conftest.er1
12589 cat conftest.err >&5
a848cd7e
SC
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); } &&
bb9e79c0 12592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12594 (eval $ac_try) 2>&5
12595 ac_status=$?
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); }; } &&
12598 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12600 (eval $ac_try) 2>&5
12601 ac_status=$?
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); }; }; then
12604 ac_compiler_gnu=yes
12605else
12606 echo "$as_me: failed program was:" >&5
12607sed 's/^/| /' conftest.$ac_ext >&5
12608
12609ac_compiler_gnu=no
12610fi
ac1cb8d3 12611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12612ac_cv_c_compiler_gnu=$ac_compiler_gnu
12613
12614fi
12615echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12616echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12617GCC=`test $ac_compiler_gnu = yes && echo yes`
12618ac_test_CFLAGS=${CFLAGS+set}
12619ac_save_CFLAGS=$CFLAGS
15291213 12620CFLAGS="-g"
a848cd7e
SC
12621echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12622echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12623if test "${ac_cv_prog_cc_g+set}" = set; then
12624 echo $ECHO_N "(cached) $ECHO_C" >&6
12625else
12626 cat >conftest.$ac_ext <<_ACEOF
12627/* confdefs.h. */
12628_ACEOF
12629cat confdefs.h >>conftest.$ac_ext
12630cat >>conftest.$ac_ext <<_ACEOF
12631/* end confdefs.h. */
12632
12633int
12634main ()
12635{
12636
12637 ;
12638 return 0;
12639}
12640_ACEOF
12641rm -f conftest.$ac_objext
12642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12643 (eval $ac_compile) 2>conftest.er1
a848cd7e 12644 ac_status=$?
ac1cb8d3
VS
12645 grep -v '^ *+' conftest.er1 >conftest.err
12646 rm -f conftest.er1
12647 cat conftest.err >&5
a848cd7e
SC
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); } &&
bb9e79c0 12650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12652 (eval $ac_try) 2>&5
12653 ac_status=$?
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; } &&
12656 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658 (eval $ac_try) 2>&5
12659 ac_status=$?
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; }; then
12662 ac_cv_prog_cc_g=yes
12663else
12664 echo "$as_me: failed program was:" >&5
12665sed 's/^/| /' conftest.$ac_ext >&5
12666
12667ac_cv_prog_cc_g=no
12668fi
ac1cb8d3 12669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12670fi
12671echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12672echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12673if test "$ac_test_CFLAGS" = set; then
12674 CFLAGS=$ac_save_CFLAGS
12675elif test $ac_cv_prog_cc_g = yes; then
12676 if test "$GCC" = yes; then
12677 CFLAGS="-g -O2"
12678 else
12679 CFLAGS="-g"
12680 fi
12681else
12682 if test "$GCC" = yes; then
12683 CFLAGS="-O2"
12684 else
12685 CFLAGS=
12686 fi
12687fi
12688echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12689echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12690if test "${ac_cv_prog_cc_stdc+set}" = set; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
12692else
12693 ac_cv_prog_cc_stdc=no
12694ac_save_CC=$CC
12695cat >conftest.$ac_ext <<_ACEOF
12696/* confdefs.h. */
12697_ACEOF
12698cat confdefs.h >>conftest.$ac_ext
12699cat >>conftest.$ac_ext <<_ACEOF
12700/* end confdefs.h. */
12701#include <stdarg.h>
12702#include <stdio.h>
12703#include <sys/types.h>
12704#include <sys/stat.h>
12705/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12706struct buf { int x; };
12707FILE * (*rcsopen) (struct buf *, struct stat *, int);
12708static char *e (p, i)
12709 char **p;
12710 int i;
12711{
12712 return p[i];
12713}
12714static char *f (char * (*g) (char **, int), char **p, ...)
12715{
12716 char *s;
12717 va_list v;
12718 va_start (v,p);
12719 s = g (p, va_arg (v,int));
12720 va_end (v);
12721 return s;
12722}
ac1cb8d3
VS
12723
12724/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12725 function prototypes and stuff, but not '\xHH' hex character constants.
12726 These don't provoke an error unfortunately, instead are silently treated
12727 as 'x'. The following induces an error, until -std1 is added to get
12728 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12729 array size at least. It's necessary to write '\x00'==0 to get something
12730 that's true only with -std1. */
12731int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12732
a848cd7e
SC
12733int test (int i, double x);
12734struct s1 {int (*f) (int a);};
12735struct s2 {int (*f) (double a);};
12736int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12737int argc;
12738char **argv;
12739int
12740main ()
12741{
12742return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12743 ;
12744 return 0;
12745}
12746_ACEOF
12747# Don't try gcc -ansi; that turns off useful extensions and
12748# breaks some systems' header files.
12749# AIX -qlanglvl=ansi
12750# Ultrix and OSF/1 -std1
12751# HP-UX 10.20 and later -Ae
12752# HP-UX older versions -Aa -D_HPUX_SOURCE
12753# SVR4 -Xc -D__EXTENSIONS__
12754for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12755do
12756 CC="$ac_save_CC $ac_arg"
12757 rm -f conftest.$ac_objext
12758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12759 (eval $ac_compile) 2>conftest.er1
a848cd7e 12760 ac_status=$?
ac1cb8d3
VS
12761 grep -v '^ *+' conftest.er1 >conftest.err
12762 rm -f conftest.er1
12763 cat conftest.err >&5
a848cd7e
SC
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); } &&
bb9e79c0 12766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12768 (eval $ac_try) 2>&5
12769 ac_status=$?
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); }; } &&
12772 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774 (eval $ac_try) 2>&5
12775 ac_status=$?
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; }; then
12778 ac_cv_prog_cc_stdc=$ac_arg
12779break
12780else
12781 echo "$as_me: failed program was:" >&5
12782sed 's/^/| /' conftest.$ac_ext >&5
12783
12784fi
ac1cb8d3 12785rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
12786done
12787rm -f conftest.$ac_ext conftest.$ac_objext
12788CC=$ac_save_CC
12789
12790fi
12791
12792case "x$ac_cv_prog_cc_stdc" in
12793 x|xno)
12794 echo "$as_me:$LINENO: result: none needed" >&5
12795echo "${ECHO_T}none needed" >&6 ;;
12796 *)
12797 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12798echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12799 CC="$CC $ac_cv_prog_cc_stdc" ;;
12800esac
12801
12802# Some people use a C++ compiler to compile C. Since we use `exit',
12803# in C++ we need to declare it. In case someone uses the same compiler
12804# for both compiling C and C++ we need to have the C++ compiler decide
12805# the declaration of exit, since it's the most demanding environment.
12806cat >conftest.$ac_ext <<_ACEOF
12807#ifndef __cplusplus
12808 choke me
12809#endif
12810_ACEOF
12811rm -f conftest.$ac_objext
12812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12813 (eval $ac_compile) 2>conftest.er1
a848cd7e 12814 ac_status=$?
ac1cb8d3
VS
12815 grep -v '^ *+' conftest.er1 >conftest.err
12816 rm -f conftest.er1
12817 cat conftest.err >&5
a848cd7e
SC
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); } &&
bb9e79c0 12820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12822 (eval $ac_try) 2>&5
12823 ac_status=$?
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); }; } &&
12826 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12828 (eval $ac_try) 2>&5
12829 ac_status=$?
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); }; }; then
12832 for ac_declaration in \
ac1cb8d3 12833 '' \
a848cd7e
SC
12834 'extern "C" void std::exit (int) throw (); using std::exit;' \
12835 'extern "C" void std::exit (int); using std::exit;' \
12836 'extern "C" void exit (int) throw ();' \
12837 'extern "C" void exit (int);' \
12838 'void exit (int);'
12839do
12840 cat >conftest.$ac_ext <<_ACEOF
12841/* confdefs.h. */
12842_ACEOF
12843cat confdefs.h >>conftest.$ac_ext
12844cat >>conftest.$ac_ext <<_ACEOF
12845/* end confdefs.h. */
de59c161 12846$ac_declaration
ac1cb8d3 12847#include <stdlib.h>
a848cd7e
SC
12848int
12849main ()
12850{
12851exit (42);
12852 ;
12853 return 0;
12854}
12855_ACEOF
12856rm -f conftest.$ac_objext
12857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12858 (eval $ac_compile) 2>conftest.er1
a848cd7e 12859 ac_status=$?
ac1cb8d3
VS
12860 grep -v '^ *+' conftest.er1 >conftest.err
12861 rm -f conftest.er1
12862 cat conftest.err >&5
a848cd7e
SC
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } &&
bb9e79c0 12865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867 (eval $ac_try) 2>&5
12868 ac_status=$?
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); }; } &&
12871 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12873 (eval $ac_try) 2>&5
12874 ac_status=$?
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); }; }; then
12877 :
12878else
12879 echo "$as_me: failed program was:" >&5
12880sed 's/^/| /' conftest.$ac_ext >&5
12881
12882continue
12883fi
ac1cb8d3 12884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12885 cat >conftest.$ac_ext <<_ACEOF
12886/* confdefs.h. */
12887_ACEOF
12888cat confdefs.h >>conftest.$ac_ext
12889cat >>conftest.$ac_ext <<_ACEOF
12890/* end confdefs.h. */
12891$ac_declaration
12892int
12893main ()
12894{
12895exit (42);
12896 ;
12897 return 0;
12898}
12899_ACEOF
12900rm -f conftest.$ac_objext
12901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12902 (eval $ac_compile) 2>conftest.er1
a848cd7e 12903 ac_status=$?
ac1cb8d3
VS
12904 grep -v '^ *+' conftest.er1 >conftest.err
12905 rm -f conftest.er1
12906 cat conftest.err >&5
a848cd7e
SC
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } &&
bb9e79c0 12909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12912 ac_status=$?
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; } &&
12915 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917 (eval $ac_try) 2>&5
12918 ac_status=$?
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; }; then
12921 break
12922else
12923 echo "$as_me: failed program was:" >&5
12924sed 's/^/| /' conftest.$ac_ext >&5
12925
12926fi
ac1cb8d3 12927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12928done
12929rm -f conftest*
12930if test -n "$ac_declaration"; then
12931 echo '#ifdef __cplusplus' >>confdefs.h
12932 echo $ac_declaration >>confdefs.h
12933 echo '#endif' >>confdefs.h
12934fi
12935
12936else
12937 echo "$as_me: failed program was:" >&5
12938sed 's/^/| /' conftest.$ac_ext >&5
12939
12940fi
ac1cb8d3 12941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12942ac_ext=c
12943ac_cpp='$CPP $CPPFLAGS'
12944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12946ac_compiler_gnu=$ac_cv_c_compiler_gnu
12947
ab0ad5f1
VZ
12948
12949
12950 ac_ext=c
12951ac_cpp='$CPP $CPPFLAGS'
12952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12954ac_compiler_gnu=$ac_cv_c_compiler_gnu
12955
12956 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12957echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12958if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12960else
12961 cat >conftest.$ac_ext <<_ACEOF
12962/* confdefs.h. */
12963_ACEOF
12964cat confdefs.h >>conftest.$ac_ext
12965cat >>conftest.$ac_ext <<_ACEOF
12966/* end confdefs.h. */
12967
12968int
12969main ()
12970{
12971
12972 #ifndef __INTEL_COMPILER
12973 choke me
12974 #endif
12975
12976 ;
12977 return 0;
12978}
12979_ACEOF
12980rm -f conftest.$ac_objext
12981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12982 (eval $ac_compile) 2>conftest.er1
12983 ac_status=$?
12984 grep -v '^ *+' conftest.er1 >conftest.err
12985 rm -f conftest.er1
12986 cat conftest.err >&5
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); } &&
bb9e79c0 12989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
12990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12991 (eval $ac_try) 2>&5
12992 ac_status=$?
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; } &&
12995 { ac_try='test -s conftest.$ac_objext'
12996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12998 ac_status=$?
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; }; then
13001 bakefile_cv_c_compiler___INTEL_COMPILER=yes
13002else
13003 echo "$as_me: failed program was:" >&5
13004sed 's/^/| /' conftest.$ac_ext >&5
13005
13006bakefile_cv_c_compiler___INTEL_COMPILER=no
13007
13008fi
13009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13010
13011
13012fi
13013echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
13014echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
13015 ac_ext=c
13016ac_cpp='$CPP $CPPFLAGS'
13017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13019ac_compiler_gnu=$ac_cv_c_compiler_gnu
13020
13021 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
13022 :; INTELCC=yes
13023 else
13024 :;
13025 fi
13026
13027
13028 if test "x$GCC" != "xyes"; then
3006edc0
VZ
13029 if test "xCC" = "xC"; then
13030 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 13031echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 13032if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13034else
13035 cat >conftest.$ac_ext <<_ACEOF
13036/* confdefs.h. */
13037_ACEOF
13038cat confdefs.h >>conftest.$ac_ext
13039cat >>conftest.$ac_ext <<_ACEOF
13040/* end confdefs.h. */
13041
13042int
13043main ()
13044{
13045
13046 ;
13047 return 0;
13048}
13049_ACEOF
13050rm -f conftest.$ac_objext conftest.$ac_ext.o
13051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13052 (eval $ac_compile) 2>&5
13053 ac_status=$?
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; then
13056 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13057 case $ac_file in
13058 conftest.$ac_ext.o)
0093c2fc 13059 bakefile_cv_c_exto="-ext o"
480ccd21
DE
13060 ;;
13061 *)
13062 ;;
13063 esac
13064done
13065else
13066 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13067See \`config.log' for more details." >&5
13068echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13069See \`config.log' for more details." >&2;}
13070 { (exit 1); exit 1; }; }
13071
13072fi
13073
13074rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13075
13076fi
0093c2fc
VZ
13077echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
13078echo "${ECHO_T}$bakefile_cv_c_exto" >&6
13079if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 13080 if test "c" = "c"; then
0093c2fc 13081 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
13082 fi
13083 if test "c" = "cxx"; then
0093c2fc 13084 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
13085 fi
13086fi
13087
0093c2fc 13088 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
13089 unset ac_cv_prog_cc_g
13090 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 13091ac_save_CFLAGS=$CFLAGS
15291213 13092CFLAGS="-g"
480ccd21
DE
13093echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13094echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13095if test "${ac_cv_prog_cc_g+set}" = set; then
13096 echo $ECHO_N "(cached) $ECHO_C" >&6
13097else
13098 cat >conftest.$ac_ext <<_ACEOF
13099/* confdefs.h. */
13100_ACEOF
13101cat confdefs.h >>conftest.$ac_ext
13102cat >>conftest.$ac_ext <<_ACEOF
13103/* end confdefs.h. */
13104
13105int
13106main ()
13107{
13108
13109 ;
13110 return 0;
13111}
13112_ACEOF
13113rm -f conftest.$ac_objext
13114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13115 (eval $ac_compile) 2>conftest.er1
13116 ac_status=$?
13117 grep -v '^ *+' conftest.er1 >conftest.err
13118 rm -f conftest.er1
13119 cat conftest.err >&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); } &&
bb9e79c0 13122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
13123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13124 (eval $ac_try) 2>&5
13125 ac_status=$?
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; } &&
13128 { ac_try='test -s conftest.$ac_objext'
13129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13130 (eval $ac_try) 2>&5
13131 ac_status=$?
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); }; }; then
13134 ac_cv_prog_cc_g=yes
13135else
13136 echo "$as_me: failed program was:" >&5
13137sed 's/^/| /' conftest.$ac_ext >&5
13138
13139ac_cv_prog_cc_g=no
13140fi
13141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13142fi
13143echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13144echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13145if test "$ac_test_CFLAGS" = set; then
13146 CFLAGS=$ac_save_CFLAGS
13147elif test $ac_cv_prog_cc_g = yes; then
13148 if test "$GCC" = yes; then
13149 CFLAGS="-g -O2"
13150 else
13151 CFLAGS="-g"
13152 fi
13153else
13154 if test "$GCC" = yes; then
13155 CFLAGS="-O2"
13156 else
13157 CFLAGS=
13158 fi
13159fi
3006edc0 13160 fi
ab0ad5f1 13161 fi
3006edc0
VZ
13162
13163 case `uname -s` in
13164 AIX*)
13165 ac_ext=c
13166ac_cpp='$CPP $CPPFLAGS'
13167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13169ac_compiler_gnu=$ac_cv_c_compiler_gnu
13170
13171echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
13172echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 13173if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
13174 echo $ECHO_N "(cached) $ECHO_C" >&6
13175else
13176 cat >conftest.$ac_ext <<_ACEOF
13177/* confdefs.h. */
13178_ACEOF
13179cat confdefs.h >>conftest.$ac_ext
13180cat >>conftest.$ac_ext <<_ACEOF
13181/* end confdefs.h. */
13182
13183int
13184main ()
13185{
13186#ifndef __xlC__
13187 choke me
13188#endif
13189
13190 ;
13191 return 0;
13192}
13193_ACEOF
13194rm -f conftest.$ac_objext
13195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13196 (eval $ac_compile) 2>conftest.er1
13197 ac_status=$?
13198 grep -v '^ *+' conftest.er1 >conftest.err
13199 rm -f conftest.er1
13200 cat conftest.err >&5
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); } &&
bb9e79c0 13203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13205 (eval $ac_try) 2>&5
13206 ac_status=$?
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); }; } &&
13209 { ac_try='test -s conftest.$ac_objext'
13210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13211 (eval $ac_try) 2>&5
13212 ac_status=$?
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); }; }; then
0093c2fc 13215 bakefile_compiler_xlc=yes
3006edc0
VZ
13216else
13217 echo "$as_me: failed program was:" >&5
13218sed 's/^/| /' conftest.$ac_ext >&5
13219
0093c2fc 13220bakefile_compiler_xlc=no
3006edc0
VZ
13221fi
13222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13223 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
13224
13225fi
0093c2fc
VZ
13226echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13227echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 13228
0093c2fc 13229XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
13230ac_ext=c
13231ac_cpp='$CPP $CPPFLAGS'
13232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13234ac_compiler_gnu=$ac_cv_c_compiler_gnu
13235
13236
13237 ;;
13238
13239 Darwin)
13240 ac_ext=c
95986553
DE
13241ac_cpp='$CPP $CPPFLAGS'
13242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13244ac_compiler_gnu=$ac_cv_c_compiler_gnu
13245
13246echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
13247echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
13248if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
13249 echo $ECHO_N "(cached) $ECHO_C" >&6
13250else
13251 cat >conftest.$ac_ext <<_ACEOF
13252/* confdefs.h. */
13253_ACEOF
13254cat confdefs.h >>conftest.$ac_ext
13255cat >>conftest.$ac_ext <<_ACEOF
13256/* end confdefs.h. */
13257
13258int
13259main ()
13260{
13261#ifndef __MWERKS__
13262 choke me
13263#endif
13264
13265 ;
13266 return 0;
13267}
13268_ACEOF
13269rm -f conftest.$ac_objext
13270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13271 (eval $ac_compile) 2>conftest.er1
13272 ac_status=$?
13273 grep -v '^ *+' conftest.er1 >conftest.err
13274 rm -f conftest.er1
13275 cat conftest.err >&5
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); } &&
bb9e79c0 13278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
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'
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 bakefile_compiler_mwerks=yes
13291else
13292 echo "$as_me: failed program was:" >&5
13293sed 's/^/| /' conftest.$ac_ext >&5
13294
13295bakefile_compiler_mwerks=no
13296fi
13297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13298 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
13299
13300fi
13301echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
13302echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
13303
0e6fa1d9 13304MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
13305ac_ext=c
13306ac_cpp='$CPP $CPPFLAGS'
13307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13309ac_compiler_gnu=$ac_cv_c_compiler_gnu
13310
13311
3006edc0 13312 ac_ext=c
9273ffba
DE
13313ac_cpp='$CPP $CPPFLAGS'
13314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13316ac_compiler_gnu=$ac_cv_c_compiler_gnu
13317
13318echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
13319echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 13320if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
13321 echo $ECHO_N "(cached) $ECHO_C" >&6
13322else
13323 cat >conftest.$ac_ext <<_ACEOF
13324/* confdefs.h. */
13325_ACEOF
13326cat confdefs.h >>conftest.$ac_ext
13327cat >>conftest.$ac_ext <<_ACEOF
13328/* end confdefs.h. */
13329
13330int
13331main ()
13332{
13333#ifndef __xlC__
13334 choke me
13335#endif
13336
13337 ;
13338 return 0;
13339}
13340_ACEOF
13341rm -f conftest.$ac_objext
13342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13343 (eval $ac_compile) 2>conftest.er1
13344 ac_status=$?
13345 grep -v '^ *+' conftest.er1 >conftest.err
13346 rm -f conftest.er1
13347 cat conftest.err >&5
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); } &&
bb9e79c0 13350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
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'
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
0093c2fc 13362 bakefile_compiler_xlc=yes
9273ffba
DE
13363else
13364 echo "$as_me: failed program was:" >&5
13365sed 's/^/| /' conftest.$ac_ext >&5
13366
0093c2fc 13367bakefile_compiler_xlc=no
9273ffba
DE
13368fi
13369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13370 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
13371
13372fi
0093c2fc
VZ
13373echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13374echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 13375
0093c2fc 13376XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
13377ac_ext=c
13378ac_cpp='$CPP $CPPFLAGS'
13379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13381ac_compiler_gnu=$ac_cv_c_compiler_gnu
13382
13383
3006edc0
VZ
13384 ;;
13385
13386 IRIX*)
a848cd7e 13387
6dcfc289 13388
0ad5d837
VZ
13389 ac_ext=c
13390ac_cpp='$CPP $CPPFLAGS'
13391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13393ac_compiler_gnu=$ac_cv_c_compiler_gnu
13394
13395 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
13396echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
13397if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
13398 echo $ECHO_N "(cached) $ECHO_C" >&6
13399else
13400 cat >conftest.$ac_ext <<_ACEOF
13401/* confdefs.h. */
13402_ACEOF
13403cat confdefs.h >>conftest.$ac_ext
13404cat >>conftest.$ac_ext <<_ACEOF
13405/* end confdefs.h. */
13406
13407int
13408main ()
13409{
13410
13411 #ifndef _SGI_COMPILER_VERSION
13412 choke me
13413 #endif
13414
13415 ;
13416 return 0;
13417}
13418_ACEOF
13419rm -f conftest.$ac_objext
13420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13421 (eval $ac_compile) 2>conftest.er1
13422 ac_status=$?
13423 grep -v '^ *+' conftest.er1 >conftest.err
13424 rm -f conftest.er1
13425 cat conftest.err >&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); } &&
bb9e79c0 13428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
13429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430 (eval $ac_try) 2>&5
13431 ac_status=$?
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; } &&
13434 { ac_try='test -s conftest.$ac_objext'
13435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13436 (eval $ac_try) 2>&5
13437 ac_status=$?
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); }; }; then
13440 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
13441else
13442 echo "$as_me: failed program was:" >&5
13443sed 's/^/| /' conftest.$ac_ext >&5
13444
13445bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
13446
13447fi
13448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13449
13450
13451fi
13452echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
13453echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
13454 ac_ext=c
13455ac_cpp='$CPP $CPPFLAGS'
13456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13458ac_compiler_gnu=$ac_cv_c_compiler_gnu
13459
13460 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13461 :; SGICC=yes
13462 else
13463 :;
13464 fi
13465
13466
3006edc0
VZ
13467 ;;
13468
0093c2fc 13469 HP-UX*)
3006edc0
VZ
13470
13471
13472 ac_ext=c
13473ac_cpp='$CPP $CPPFLAGS'
13474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13476ac_compiler_gnu=$ac_cv_c_compiler_gnu
13477
0093c2fc
VZ
13478 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
13479echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
13480if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
13482else
13483 cat >conftest.$ac_ext <<_ACEOF
13484/* confdefs.h. */
13485_ACEOF
13486cat confdefs.h >>conftest.$ac_ext
13487cat >>conftest.$ac_ext <<_ACEOF
13488/* end confdefs.h. */
13489
13490int
13491main ()
13492{
13493
0093c2fc 13494 #ifndef __HP_cc
3006edc0
VZ
13495 choke me
13496 #endif
13497
13498 ;
13499 return 0;
13500}
13501_ACEOF
13502rm -f conftest.$ac_objext
13503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13504 (eval $ac_compile) 2>conftest.er1
13505 ac_status=$?
13506 grep -v '^ *+' conftest.er1 >conftest.err
13507 rm -f conftest.er1
13508 cat conftest.err >&5
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); } &&
bb9e79c0 13511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13514 ac_status=$?
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; } &&
13517 { ac_try='test -s conftest.$ac_objext'
13518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519 (eval $ac_try) 2>&5
13520 ac_status=$?
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; }; then
0093c2fc 13523 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
13524else
13525 echo "$as_me: failed program was:" >&5
13526sed 's/^/| /' conftest.$ac_ext >&5
13527
0093c2fc 13528bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
13529
13530fi
13531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13532
13533
13534fi
0093c2fc
VZ
13535echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13536echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
13537 ac_ext=c
13538ac_cpp='$CPP $CPPFLAGS'
13539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13541ac_compiler_gnu=$ac_cv_c_compiler_gnu
13542
0093c2fc
VZ
13543 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13544 :; HPCC=yes
a1aa0349
VZ
13545 else
13546 :;
13547 fi
13548
13549
13550 ;;
13551
0093c2fc 13552 OSF1)
a1aa0349
VZ
13553
13554
13555 ac_ext=c
13556ac_cpp='$CPP $CPPFLAGS'
13557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13559ac_compiler_gnu=$ac_cv_c_compiler_gnu
13560
0093c2fc
VZ
13561 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13562echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13563if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13565else
13566 cat >conftest.$ac_ext <<_ACEOF
13567/* confdefs.h. */
13568_ACEOF
13569cat confdefs.h >>conftest.$ac_ext
13570cat >>conftest.$ac_ext <<_ACEOF
13571/* end confdefs.h. */
13572
13573int
13574main ()
13575{
13576
0093c2fc 13577 #ifndef __DECC
a1aa0349
VZ
13578 choke me
13579 #endif
13580
13581 ;
13582 return 0;
13583}
13584_ACEOF
13585rm -f conftest.$ac_objext
13586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13587 (eval $ac_compile) 2>conftest.er1
13588 ac_status=$?
13589 grep -v '^ *+' conftest.er1 >conftest.err
13590 rm -f conftest.er1
13591 cat conftest.err >&5
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); } &&
bb9e79c0 13594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
13595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13596 (eval $ac_try) 2>&5
13597 ac_status=$?
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); }; } &&
13600 { ac_try='test -s conftest.$ac_objext'
13601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13602 (eval $ac_try) 2>&5
13603 ac_status=$?
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); }; }; then
0093c2fc 13606 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
13607else
13608 echo "$as_me: failed program was:" >&5
13609sed 's/^/| /' conftest.$ac_ext >&5
13610
0093c2fc 13611bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
13612
13613fi
13614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13615
13616
13617fi
0093c2fc
VZ
13618echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13619echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
13620 ac_ext=c
13621ac_cpp='$CPP $CPPFLAGS'
13622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13624ac_compiler_gnu=$ac_cv_c_compiler_gnu
13625
0093c2fc
VZ
13626 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13627 :; COMPAQCC=yes
13628 else
13629 :;
13630 fi
13631
13632
13633 ;;
13634
13635 SunOS)
13636
13637
13638 ac_ext=c
13639ac_cpp='$CPP $CPPFLAGS'
13640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13642ac_compiler_gnu=$ac_cv_c_compiler_gnu
13643
13644 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13645echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13646if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13647 echo $ECHO_N "(cached) $ECHO_C" >&6
13648else
13649 cat >conftest.$ac_ext <<_ACEOF
13650/* confdefs.h. */
13651_ACEOF
13652cat confdefs.h >>conftest.$ac_ext
13653cat >>conftest.$ac_ext <<_ACEOF
13654/* end confdefs.h. */
13655
13656int
13657main ()
13658{
13659
13660 #ifndef __SUNPRO_C
13661 choke me
13662 #endif
13663
13664 ;
13665 return 0;
13666}
13667_ACEOF
13668rm -f conftest.$ac_objext
13669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13670 (eval $ac_compile) 2>conftest.er1
13671 ac_status=$?
13672 grep -v '^ *+' conftest.er1 >conftest.err
13673 rm -f conftest.er1
13674 cat conftest.err >&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); } &&
bb9e79c0 13677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
13678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679 (eval $ac_try) 2>&5
13680 ac_status=$?
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; } &&
13683 { ac_try='test -s conftest.$ac_objext'
13684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685 (eval $ac_try) 2>&5
13686 ac_status=$?
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; }; then
13689 bakefile_cv_c_compiler___SUNPRO_C=yes
13690else
13691 echo "$as_me: failed program was:" >&5
13692sed 's/^/| /' conftest.$ac_ext >&5
13693
13694bakefile_cv_c_compiler___SUNPRO_C=no
13695
13696fi
13697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13698
13699
13700fi
13701echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13702echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13703 ac_ext=c
13704ac_cpp='$CPP $CPPFLAGS'
13705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13707ac_compiler_gnu=$ac_cv_c_compiler_gnu
13708
13709 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13710 :; SUNCC=yes
3006edc0
VZ
13711 else
13712 :;
13713 fi
13714
13715
13716 ;;
13717 esac
ab0ad5f1 13718 fi
a9e5b1f0
MW
13719
13720
3006edc0 13721
a848cd7e
SC
13722ac_ext=c
13723ac_cpp='$CPP $CPPFLAGS'
13724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13726ac_compiler_gnu=$ac_cv_c_compiler_gnu
13727echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13728echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13729# On Suns, sometimes $CPP names a directory.
13730if test -n "$CPP" && test -d "$CPP"; then
13731 CPP=
13732fi
13733if test -z "$CPP"; then
13734 if test "${ac_cv_prog_CPP+set}" = set; then
13735 echo $ECHO_N "(cached) $ECHO_C" >&6
13736else
13737 # Double quotes because CPP needs to be expanded
13738 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13739 do
13740 ac_preproc_ok=false
13741for ac_c_preproc_warn_flag in '' yes
13742do
13743 # Use a header file that comes with gcc, so configuring glibc
13744 # with a fresh cross-compiler works.
13745 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13746 # <limits.h> exists even on freestanding compilers.
13747 # On the NeXT, cc -E runs the code through the compiler's parser,
13748 # not just through cpp. "Syntax error" is here to catch this case.
13749 cat >conftest.$ac_ext <<_ACEOF
13750/* confdefs.h. */
13751_ACEOF
13752cat confdefs.h >>conftest.$ac_ext
13753cat >>conftest.$ac_ext <<_ACEOF
13754/* end confdefs.h. */
13755#ifdef __STDC__
13756# include <limits.h>
13757#else
13758# include <assert.h>
13759#endif
ac1cb8d3 13760 Syntax error
a848cd7e
SC
13761_ACEOF
13762if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13764 ac_status=$?
13765 grep -v '^ *+' conftest.er1 >conftest.err
13766 rm -f conftest.er1
13767 cat conftest.err >&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); } >/dev/null; then
13770 if test -s conftest.err; then
13771 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13773 else
13774 ac_cpp_err=
13775 fi
13776else
13777 ac_cpp_err=yes
13778fi
13779if test -z "$ac_cpp_err"; then
13780 :
13781else
13782 echo "$as_me: failed program was:" >&5
13783sed 's/^/| /' conftest.$ac_ext >&5
13784
13785 # Broken: fails on valid input.
13786continue
13787fi
13788rm -f conftest.err conftest.$ac_ext
13789
13790 # OK, works on sane cases. Now check whether non-existent headers
13791 # can be detected and how.
13792 cat >conftest.$ac_ext <<_ACEOF
13793/* confdefs.h. */
13794_ACEOF
13795cat confdefs.h >>conftest.$ac_ext
13796cat >>conftest.$ac_ext <<_ACEOF
13797/* end confdefs.h. */
13798#include <ac_nonexistent.h>
13799_ACEOF
13800if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13802 ac_status=$?
13803 grep -v '^ *+' conftest.er1 >conftest.err
13804 rm -f conftest.er1
13805 cat conftest.err >&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); } >/dev/null; then
13808 if test -s conftest.err; then
13809 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13811 else
13812 ac_cpp_err=
13813 fi
13814else
13815 ac_cpp_err=yes
13816fi
13817if test -z "$ac_cpp_err"; then
13818 # Broken: success on invalid input.
13819continue
13820else
13821 echo "$as_me: failed program was:" >&5
13822sed 's/^/| /' conftest.$ac_ext >&5
13823
13824 # Passes both tests.
13825ac_preproc_ok=:
13826break
13827fi
13828rm -f conftest.err conftest.$ac_ext
13829
13830done
13831# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13832rm -f conftest.err conftest.$ac_ext
13833if $ac_preproc_ok; then
13834 break
13835fi
13836
13837 done
13838 ac_cv_prog_CPP=$CPP
13839
13840fi
13841 CPP=$ac_cv_prog_CPP
13842else
13843 ac_cv_prog_CPP=$CPP
13844fi
13845echo "$as_me:$LINENO: result: $CPP" >&5
13846echo "${ECHO_T}$CPP" >&6
13847ac_preproc_ok=false
13848for ac_c_preproc_warn_flag in '' yes
13849do
13850 # Use a header file that comes with gcc, so configuring glibc
13851 # with a fresh cross-compiler works.
13852 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13853 # <limits.h> exists even on freestanding compilers.
13854 # On the NeXT, cc -E runs the code through the compiler's parser,
13855 # not just through cpp. "Syntax error" is here to catch this case.
13856 cat >conftest.$ac_ext <<_ACEOF
13857/* confdefs.h. */
13858_ACEOF
13859cat confdefs.h >>conftest.$ac_ext
13860cat >>conftest.$ac_ext <<_ACEOF
13861/* end confdefs.h. */
13862#ifdef __STDC__
13863# include <limits.h>
13864#else
13865# include <assert.h>
13866#endif
ac1cb8d3 13867 Syntax error
a848cd7e
SC
13868_ACEOF
13869if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13871 ac_status=$?
13872 grep -v '^ *+' conftest.er1 >conftest.err
13873 rm -f conftest.er1
13874 cat conftest.err >&5
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); } >/dev/null; then
13877 if test -s conftest.err; then
13878 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13880 else
13881 ac_cpp_err=
13882 fi
13883else
13884 ac_cpp_err=yes
13885fi
13886if test -z "$ac_cpp_err"; then
13887 :
13888else
13889 echo "$as_me: failed program was:" >&5
13890sed 's/^/| /' conftest.$ac_ext >&5
13891
13892 # Broken: fails on valid input.
13893continue
13894fi
13895rm -f conftest.err conftest.$ac_ext
13896
13897 # OK, works on sane cases. Now check whether non-existent headers
13898 # can be detected and how.
13899 cat >conftest.$ac_ext <<_ACEOF
13900/* confdefs.h. */
13901_ACEOF
13902cat confdefs.h >>conftest.$ac_ext
13903cat >>conftest.$ac_ext <<_ACEOF
13904/* end confdefs.h. */
13905#include <ac_nonexistent.h>
13906_ACEOF
13907if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13909 ac_status=$?
13910 grep -v '^ *+' conftest.er1 >conftest.err
13911 rm -f conftest.er1
13912 cat conftest.err >&5
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); } >/dev/null; then
13915 if test -s conftest.err; then
13916 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13917 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13918 else
13919 ac_cpp_err=
13920 fi
13921else
13922 ac_cpp_err=yes
13923fi
13924if test -z "$ac_cpp_err"; then
13925 # Broken: success on invalid input.
13926continue
13927else
13928 echo "$as_me: failed program was:" >&5
13929sed 's/^/| /' conftest.$ac_ext >&5
13930
13931 # Passes both tests.
13932ac_preproc_ok=:
13933break
13934fi
13935rm -f conftest.err conftest.$ac_ext
13936
13937done
13938# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13939rm -f conftest.err conftest.$ac_ext
13940if $ac_preproc_ok; then
13941 :
13942else
13943 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13944See \`config.log' for more details." >&5
13945echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13946See \`config.log' for more details." >&2;}
13947 { (exit 1); exit 1; }; }
13948fi
13949
13950ac_ext=c
13951ac_cpp='$CPP $CPPFLAGS'
13952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13954ac_compiler_gnu=$ac_cv_c_compiler_gnu
13955
13956
13957echo "$as_me:$LINENO: checking for egrep" >&5
13958echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13959if test "${ac_cv_prog_egrep+set}" = set; then
13960 echo $ECHO_N "(cached) $ECHO_C" >&6
13961else
13962 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13963 then ac_cv_prog_egrep='grep -E'
13964 else ac_cv_prog_egrep='egrep'
13965 fi
13966fi
13967echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13968echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13969 EGREP=$ac_cv_prog_egrep
13970
13971
13972if test $ac_cv_c_compiler_gnu = yes; then
13973 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13974echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13975if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13976 echo $ECHO_N "(cached) $ECHO_C" >&6
13977else
13978 ac_pattern="Autoconf.*'x'"
13979 cat >conftest.$ac_ext <<_ACEOF
13980/* confdefs.h. */
13981_ACEOF
13982cat confdefs.h >>conftest.$ac_ext
13983cat >>conftest.$ac_ext <<_ACEOF
13984/* end confdefs.h. */
13985#include <sgtty.h>
13986Autoconf TIOCGETP
13987_ACEOF
13988if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13989 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13990 ac_cv_prog_gcc_traditional=yes
13991else
13992 ac_cv_prog_gcc_traditional=no
13993fi
13994rm -f conftest*
13995
13996
13997 if test $ac_cv_prog_gcc_traditional = no; then
13998 cat >conftest.$ac_ext <<_ACEOF
13999/* confdefs.h. */
14000_ACEOF
14001cat confdefs.h >>conftest.$ac_ext
14002cat >>conftest.$ac_ext <<_ACEOF
14003/* end confdefs.h. */
14004#include <termio.h>
14005Autoconf TCGETA
14006_ACEOF
14007if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14008 $EGREP "$ac_pattern" >/dev/null 2>&1; then
14009 ac_cv_prog_gcc_traditional=yes
14010fi
14011rm -f conftest*
14012
14013 fi
14014fi
14015echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
14016echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
14017 if test $ac_cv_prog_gcc_traditional = yes; then
14018 CC="$CC -traditional"
14019 fi
14020fi
14021
14022
a848cd7e
SC
14023ac_ext=cc
14024ac_cpp='$CXXCPP $CPPFLAGS'
14025ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14026ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14027ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14028
14029
14030CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
14031
14032
3006edc0 14033
6dcfc289 14034 ac_ext=cc
a848cd7e
SC
14035ac_cpp='$CXXCPP $CPPFLAGS'
14036ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14037ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14038ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14039if test -n "$ac_tool_prefix"; then
14040 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
14041 do
14042 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14043set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14044echo "$as_me:$LINENO: checking for $ac_word" >&5
14045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14046if test "${ac_cv_prog_CXX+set}" = set; then
14047 echo $ECHO_N "(cached) $ECHO_C" >&6
14048else
14049 if test -n "$CXX"; then
14050 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14051else
14052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14053for as_dir in $PATH
14054do
14055 IFS=$as_save_IFS
14056 test -z "$as_dir" && as_dir=.
14057 for ac_exec_ext in '' $ac_executable_extensions; do
14058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14059 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14061 break 2
14062 fi
14063done
14064done
14065
14066fi
14067fi
14068CXX=$ac_cv_prog_CXX
14069if test -n "$CXX"; then
14070 echo "$as_me:$LINENO: result: $CXX" >&5
14071echo "${ECHO_T}$CXX" >&6
14072else
14073 echo "$as_me:$LINENO: result: no" >&5
14074echo "${ECHO_T}no" >&6
14075fi
14076
14077 test -n "$CXX" && break
14078 done
14079fi
14080if test -z "$CXX"; then
14081 ac_ct_CXX=$CXX
14082 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
14083do
14084 # Extract the first word of "$ac_prog", so it can be a program name with args.
14085set dummy $ac_prog; ac_word=$2
14086echo "$as_me:$LINENO: checking for $ac_word" >&5
14087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14088if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
14089 echo $ECHO_N "(cached) $ECHO_C" >&6
14090else
14091 if test -n "$ac_ct_CXX"; then
14092 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14093else
14094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14095for as_dir in $PATH
14096do
14097 IFS=$as_save_IFS
14098 test -z "$as_dir" && as_dir=.
14099 for ac_exec_ext in '' $ac_executable_extensions; do
14100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14101 ac_cv_prog_ac_ct_CXX="$ac_prog"
14102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14103 break 2
14104 fi
14105done
14106done
14107
14108fi
14109fi
14110ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14111if test -n "$ac_ct_CXX"; then
14112 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
14113echo "${ECHO_T}$ac_ct_CXX" >&6
14114else
14115 echo "$as_me:$LINENO: result: no" >&5
14116echo "${ECHO_T}no" >&6
14117fi
14118
14119 test -n "$ac_ct_CXX" && break
14120done
14121test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
14122
14123 CXX=$ac_ct_CXX
14124fi
14125
14126
14127# Provide some information about the compiler.
14128echo "$as_me:$LINENO:" \
14129 "checking for C++ compiler version" >&5
14130ac_compiler=`set X $ac_compile; echo $2`
14131{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
14132 (eval $ac_compiler --version </dev/null >&5) 2>&5
14133 ac_status=$?
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); }
14136{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
14137 (eval $ac_compiler -v </dev/null >&5) 2>&5
14138 ac_status=$?
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }
14141{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
14142 (eval $ac_compiler -V </dev/null >&5) 2>&5
14143 ac_status=$?
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); }
14146
14147echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
14148echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
14149if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
14150 echo $ECHO_N "(cached) $ECHO_C" >&6
14151else
14152 cat >conftest.$ac_ext <<_ACEOF
14153/* confdefs.h. */
14154_ACEOF
14155cat confdefs.h >>conftest.$ac_ext
14156cat >>conftest.$ac_ext <<_ACEOF
14157/* end confdefs.h. */
14158
14159int
14160main ()
14161{
14162#ifndef __GNUC__
14163 choke me
14164#endif
14165
14166 ;
14167 return 0;
14168}
14169_ACEOF
14170rm -f conftest.$ac_objext
14171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14172 (eval $ac_compile) 2>conftest.er1
a848cd7e 14173 ac_status=$?
ac1cb8d3
VS
14174 grep -v '^ *+' conftest.er1 >conftest.err
14175 rm -f conftest.er1
14176 cat conftest.err >&5
a848cd7e
SC
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); } &&
bb9e79c0 14179 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14182 ac_status=$?
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; } &&
14185 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187 (eval $ac_try) 2>&5
14188 ac_status=$?
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); }; }; then
14191 ac_compiler_gnu=yes
14192else
14193 echo "$as_me: failed program was:" >&5
14194sed 's/^/| /' conftest.$ac_ext >&5
14195
14196ac_compiler_gnu=no
14197fi
ac1cb8d3 14198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14199ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14200
14201fi
14202echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
14203echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
14204GXX=`test $ac_compiler_gnu = yes && echo yes`
14205ac_test_CXXFLAGS=${CXXFLAGS+set}
14206ac_save_CXXFLAGS=$CXXFLAGS
14207CXXFLAGS="-g"
14208echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
14209echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
14210if test "${ac_cv_prog_cxx_g+set}" = set; then
14211 echo $ECHO_N "(cached) $ECHO_C" >&6
14212else
14213 cat >conftest.$ac_ext <<_ACEOF
14214/* confdefs.h. */
14215_ACEOF
14216cat confdefs.h >>conftest.$ac_ext
14217cat >>conftest.$ac_ext <<_ACEOF
14218/* end confdefs.h. */
14219
14220int
14221main ()
14222{
14223
14224 ;
14225 return 0;
14226}
14227_ACEOF
14228rm -f conftest.$ac_objext
14229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14230 (eval $ac_compile) 2>conftest.er1
a848cd7e 14231 ac_status=$?
ac1cb8d3
VS
14232 grep -v '^ *+' conftest.er1 >conftest.err
14233 rm -f conftest.er1
14234 cat conftest.err >&5
a848cd7e
SC
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); } &&
bb9e79c0 14237 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239 (eval $ac_try) 2>&5
14240 ac_status=$?
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; } &&
14243 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245 (eval $ac_try) 2>&5
14246 ac_status=$?
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }; }; then
14249 ac_cv_prog_cxx_g=yes
14250else
14251 echo "$as_me: failed program was:" >&5
14252sed 's/^/| /' conftest.$ac_ext >&5
14253
14254ac_cv_prog_cxx_g=no
14255fi
ac1cb8d3 14256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14257fi
14258echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
14259echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
14260if test "$ac_test_CXXFLAGS" = set; then
14261 CXXFLAGS=$ac_save_CXXFLAGS
14262elif test $ac_cv_prog_cxx_g = yes; then
14263 if test "$GXX" = yes; then
15291213 14264 CXXFLAGS="-g -O2"
a848cd7e 14265 else
15291213 14266 CXXFLAGS="-g"
a848cd7e
SC
14267 fi
14268else
14269 if test "$GXX" = yes; then
14270 CXXFLAGS="-O2"
14271 else
14272 CXXFLAGS=
14273 fi
14274fi
14275for ac_declaration in \
ac1cb8d3 14276 '' \
a848cd7e
SC
14277 'extern "C" void std::exit (int) throw (); using std::exit;' \
14278 'extern "C" void std::exit (int); using std::exit;' \
14279 'extern "C" void exit (int) throw ();' \
14280 'extern "C" void exit (int);' \
14281 'void exit (int);'
14282do
14283 cat >conftest.$ac_ext <<_ACEOF
14284/* confdefs.h. */
14285_ACEOF
14286cat confdefs.h >>conftest.$ac_ext
14287cat >>conftest.$ac_ext <<_ACEOF
14288/* end confdefs.h. */
de59c161 14289$ac_declaration
ac1cb8d3 14290#include <stdlib.h>
a848cd7e
SC
14291int
14292main ()
14293{
14294exit (42);
14295 ;
14296 return 0;
14297}
14298_ACEOF
14299rm -f conftest.$ac_objext
14300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14301 (eval $ac_compile) 2>conftest.er1
a848cd7e 14302 ac_status=$?
ac1cb8d3
VS
14303 grep -v '^ *+' conftest.er1 >conftest.err
14304 rm -f conftest.er1
14305 cat conftest.err >&5
a848cd7e
SC
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); } &&
bb9e79c0 14308 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14310 (eval $ac_try) 2>&5
14311 ac_status=$?
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); }; } &&
14314 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316 (eval $ac_try) 2>&5
14317 ac_status=$?
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; }; then
14320 :
14321else
14322 echo "$as_me: failed program was:" >&5
14323sed 's/^/| /' conftest.$ac_ext >&5
14324
14325continue
14326fi
ac1cb8d3 14327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14328 cat >conftest.$ac_ext <<_ACEOF
14329/* confdefs.h. */
14330_ACEOF
14331cat confdefs.h >>conftest.$ac_ext
14332cat >>conftest.$ac_ext <<_ACEOF
14333/* end confdefs.h. */
14334$ac_declaration
14335int
14336main ()
14337{
14338exit (42);
14339 ;
14340 return 0;
14341}
14342_ACEOF
14343rm -f conftest.$ac_objext
14344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14345 (eval $ac_compile) 2>conftest.er1
a848cd7e 14346 ac_status=$?
ac1cb8d3
VS
14347 grep -v '^ *+' conftest.er1 >conftest.err
14348 rm -f conftest.er1
14349 cat conftest.err >&5
a848cd7e
SC
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); } &&
bb9e79c0 14352 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14354 (eval $ac_try) 2>&5
14355 ac_status=$?
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); }; } &&
14358 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14360 (eval $ac_try) 2>&5
14361 ac_status=$?
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); }; }; then
14364 break
14365else
14366 echo "$as_me: failed program was:" >&5
14367sed 's/^/| /' conftest.$ac_ext >&5
14368
14369fi
ac1cb8d3 14370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14371done
14372rm -f conftest*
14373if test -n "$ac_declaration"; then
14374 echo '#ifdef __cplusplus' >>confdefs.h
14375 echo $ac_declaration >>confdefs.h
14376 echo '#endif' >>confdefs.h
14377fi
14378
14379ac_ext=cc
14380ac_cpp='$CXXCPP $CPPFLAGS'
14381ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14382ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14383ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14384
ab0ad5f1
VZ
14385
14386
14387 ac_ext=cc
14388ac_cpp='$CXXCPP $CPPFLAGS'
14389ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14390ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14391ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14392
14393 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
14394echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
14395if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
14396 echo $ECHO_N "(cached) $ECHO_C" >&6
14397else
14398 cat >conftest.$ac_ext <<_ACEOF
14399/* confdefs.h. */
14400_ACEOF
14401cat confdefs.h >>conftest.$ac_ext
14402cat >>conftest.$ac_ext <<_ACEOF
14403/* end confdefs.h. */
14404
14405int
14406main ()
14407{
14408
14409 #ifndef __INTEL_COMPILER
14410 choke me
14411 #endif
14412
14413 ;
14414 return 0;
14415}
14416_ACEOF
14417rm -f conftest.$ac_objext
14418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14419 (eval $ac_compile) 2>conftest.er1
14420 ac_status=$?
14421 grep -v '^ *+' conftest.er1 >conftest.err
14422 rm -f conftest.er1
14423 cat conftest.err >&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); } &&
bb9e79c0 14426 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
14427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428 (eval $ac_try) 2>&5
14429 ac_status=$?
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; } &&
14432 { ac_try='test -s conftest.$ac_objext'
14433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14434 (eval $ac_try) 2>&5
14435 ac_status=$?
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); }; }; then
14438 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
14439else
14440 echo "$as_me: failed program was:" >&5
14441sed 's/^/| /' conftest.$ac_ext >&5
14442
14443bakefile_cv_cxx_compiler___INTEL_COMPILER=no
14444
14445fi
14446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14447
14448
14449fi
14450echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
14451echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
14452 ac_ext=cc
14453ac_cpp='$CXXCPP $CPPFLAGS'
14454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14457
14458 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
14459 :; INTELCXX=yes
14460 else
14461 :;
14462 fi
14463
14464
3006edc0
VZ
14465 if test "x$GCXX" != "xyes"; then
14466 if test "xCXX" = "xC"; then
14467 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 14468echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 14469if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
14470 echo $ECHO_N "(cached) $ECHO_C" >&6
14471else
14472 cat >conftest.$ac_ext <<_ACEOF
14473/* confdefs.h. */
14474_ACEOF
14475cat confdefs.h >>conftest.$ac_ext
14476cat >>conftest.$ac_ext <<_ACEOF
14477/* end confdefs.h. */
14478
14479int
14480main ()
14481{
14482
14483 ;
14484 return 0;
14485}
14486_ACEOF
14487rm -f conftest.$ac_objext conftest.$ac_ext.o
14488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14489 (eval $ac_compile) 2>&5
14490 ac_status=$?
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); }; then
14493 for ac_file in `(ls conftest.* 2>/dev/null)`; do
14494 case $ac_file in
14495 conftest.$ac_ext.o)
0093c2fc 14496 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
14497 ;;
14498 *)
14499 ;;
14500 esac
14501done
14502else
14503 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14504See \`config.log' for more details." >&5
14505echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14506See \`config.log' for more details." >&2;}
14507 { (exit 1); exit 1; }; }
14508
14509fi
14510
14511rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14512
14513fi
0093c2fc
VZ
14514echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
14515echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
14516if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 14517 if test "cxx" = "c"; then
0093c2fc 14518 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
14519 fi
14520 if test "cxx" = "cxx"; then
0093c2fc 14521 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
14522 fi
14523fi
14524
0093c2fc 14525 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
14526 unset ac_cv_prog_cc_g
14527 ac_test_CFLAGS=${CFLAGS+set}
14528ac_save_CFLAGS=$CFLAGS
15291213 14529CFLAGS="-g"
3006edc0
VZ
14530echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14531echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14532if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
14533 echo $ECHO_N "(cached) $ECHO_C" >&6
14534else
14535 cat >conftest.$ac_ext <<_ACEOF
14536/* confdefs.h. */
14537_ACEOF
14538cat confdefs.h >>conftest.$ac_ext
14539cat >>conftest.$ac_ext <<_ACEOF
14540/* end confdefs.h. */
14541
14542int
14543main ()
14544{
14545
14546 ;
14547 return 0;
14548}
14549_ACEOF
14550rm -f conftest.$ac_objext
14551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14552 (eval $ac_compile) 2>conftest.er1
14553 ac_status=$?
14554 grep -v '^ *+' conftest.er1 >conftest.err
14555 rm -f conftest.er1
14556 cat conftest.err >&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); } &&
bb9e79c0 14559 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
14560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14561 (eval $ac_try) 2>&5
14562 ac_status=$?
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); }; } &&
14565 { ac_try='test -s conftest.$ac_objext'
14566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14567 (eval $ac_try) 2>&5
14568 ac_status=$?
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); }; }; then
3006edc0 14571 ac_cv_prog_cc_g=yes
480ccd21
DE
14572else
14573 echo "$as_me: failed program was:" >&5
14574sed 's/^/| /' conftest.$ac_ext >&5
14575
3006edc0 14576ac_cv_prog_cc_g=no
480ccd21
DE
14577fi
14578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14579fi
3006edc0
VZ
14580echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14581echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14582if test "$ac_test_CFLAGS" = set; then
14583 CFLAGS=$ac_save_CFLAGS
14584elif test $ac_cv_prog_cc_g = yes; then
14585 if test "$GCC" = yes; then
14586 CFLAGS="-g -O2"
480ccd21 14587 else
3006edc0 14588 CFLAGS="-g"
480ccd21
DE
14589 fi
14590else
3006edc0
VZ
14591 if test "$GCC" = yes; then
14592 CFLAGS="-O2"
480ccd21 14593 else
3006edc0 14594 CFLAGS=
480ccd21
DE
14595 fi
14596fi
3006edc0 14597 fi
ab0ad5f1 14598 fi
3006edc0
VZ
14599
14600 case `uname -s` in
14601 AIX*)
14602 ac_ext=cc
14603ac_cpp='$CXXCPP $CPPFLAGS'
14604ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14605ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14606ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14607
14608echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14609echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14610if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
14611 echo $ECHO_N "(cached) $ECHO_C" >&6
14612else
14613 cat >conftest.$ac_ext <<_ACEOF
14614/* confdefs.h. */
14615_ACEOF
14616cat confdefs.h >>conftest.$ac_ext
14617cat >>conftest.$ac_ext <<_ACEOF
14618/* end confdefs.h. */
14619
14620int
14621main ()
14622{
14623#ifndef __xlC__
14624 choke me
14625#endif
14626
14627 ;
14628 return 0;
14629}
14630_ACEOF
14631rm -f conftest.$ac_objext
14632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14633 (eval $ac_compile) 2>conftest.er1
14634 ac_status=$?
14635 grep -v '^ *+' conftest.er1 >conftest.err
14636 rm -f conftest.er1
14637 cat conftest.err >&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } &&
bb9e79c0 14640 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14642 (eval $ac_try) 2>&5
14643 ac_status=$?
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); }; } &&
14646 { ac_try='test -s conftest.$ac_objext'
14647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648 (eval $ac_try) 2>&5
14649 ac_status=$?
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; }; then
0093c2fc 14652 bakefile_compiler_xlc=yes
3006edc0
VZ
14653else
14654 echo "$as_me: failed program was:" >&5
14655sed 's/^/| /' conftest.$ac_ext >&5
14656
0093c2fc 14657bakefile_compiler_xlc=no
3006edc0
VZ
14658fi
14659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14660 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
14661
14662fi
0093c2fc
VZ
14663echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14664echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 14665
0093c2fc 14666XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
14667ac_ext=cc
14668ac_cpp='$CXXCPP $CPPFLAGS'
14669ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14670ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14671ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14672
14673
14674 ;;
14675
14676 Darwin)
14677 ac_ext=cc
95986553
DE
14678ac_cpp='$CXXCPP $CPPFLAGS'
14679ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14680ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14681ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14682
14683echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14684echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14685if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14686 echo $ECHO_N "(cached) $ECHO_C" >&6
14687else
14688 cat >conftest.$ac_ext <<_ACEOF
14689/* confdefs.h. */
14690_ACEOF
14691cat confdefs.h >>conftest.$ac_ext
14692cat >>conftest.$ac_ext <<_ACEOF
14693/* end confdefs.h. */
14694
14695int
14696main ()
14697{
14698#ifndef __MWERKS__
14699 choke me
14700#endif
14701
14702 ;
14703 return 0;
14704}
14705_ACEOF
14706rm -f conftest.$ac_objext
14707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14708 (eval $ac_compile) 2>conftest.er1
14709 ac_status=$?
14710 grep -v '^ *+' conftest.er1 >conftest.err
14711 rm -f conftest.er1
14712 cat conftest.err >&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); } &&
bb9e79c0 14715 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
14716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14717 (eval $ac_try) 2>&5
14718 ac_status=$?
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); }; } &&
14721 { ac_try='test -s conftest.$ac_objext'
14722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723 (eval $ac_try) 2>&5
14724 ac_status=$?
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); }; }; then
14727 bakefile_compiler_mwerks=yes
14728else
14729 echo "$as_me: failed program was:" >&5
14730sed 's/^/| /' conftest.$ac_ext >&5
14731
14732bakefile_compiler_mwerks=no
14733fi
14734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14735 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14736
14737fi
14738echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14739echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14740
0e6fa1d9 14741MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
14742ac_ext=cc
14743ac_cpp='$CXXCPP $CPPFLAGS'
14744ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14745ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14746ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14747
14748
3006edc0 14749 ac_ext=cc
9273ffba
DE
14750ac_cpp='$CXXCPP $CPPFLAGS'
14751ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14752ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14753ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14754
14755echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14756echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14757if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
14758 echo $ECHO_N "(cached) $ECHO_C" >&6
14759else
14760 cat >conftest.$ac_ext <<_ACEOF
14761/* confdefs.h. */
14762_ACEOF
14763cat confdefs.h >>conftest.$ac_ext
14764cat >>conftest.$ac_ext <<_ACEOF
14765/* end confdefs.h. */
14766
14767int
14768main ()
14769{
14770#ifndef __xlC__
14771 choke me
14772#endif
14773
14774 ;
14775 return 0;
14776}
14777_ACEOF
14778rm -f conftest.$ac_objext
14779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14780 (eval $ac_compile) 2>conftest.er1
14781 ac_status=$?
14782 grep -v '^ *+' conftest.er1 >conftest.err
14783 rm -f conftest.er1
14784 cat conftest.err >&5
14785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); } &&
bb9e79c0 14787 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
14788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14789 (eval $ac_try) 2>&5
14790 ac_status=$?
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); }; } &&
14793 { ac_try='test -s conftest.$ac_objext'
14794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14795 (eval $ac_try) 2>&5
14796 ac_status=$?
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); }; }; then
0093c2fc 14799 bakefile_compiler_xlc=yes
9273ffba
DE
14800else
14801 echo "$as_me: failed program was:" >&5
14802sed 's/^/| /' conftest.$ac_ext >&5
14803
0093c2fc 14804bakefile_compiler_xlc=no
9273ffba
DE
14805fi
14806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14807 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
14808
14809fi
0093c2fc
VZ
14810echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14811echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 14812
0093c2fc 14813XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
14814ac_ext=cc
14815ac_cpp='$CXXCPP $CPPFLAGS'
14816ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14817ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14818ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14819
14820
3006edc0
VZ
14821 ;;
14822
14823 IRIX*)
95986553 14824
6dcfc289 14825
0ad5d837
VZ
14826 ac_ext=cc
14827ac_cpp='$CXXCPP $CPPFLAGS'
14828ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14829ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14830ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14831
14832 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14833echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14834if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14835 echo $ECHO_N "(cached) $ECHO_C" >&6
14836else
14837 cat >conftest.$ac_ext <<_ACEOF
14838/* confdefs.h. */
14839_ACEOF
14840cat confdefs.h >>conftest.$ac_ext
14841cat >>conftest.$ac_ext <<_ACEOF
14842/* end confdefs.h. */
14843
14844int
14845main ()
14846{
14847
14848 #ifndef _SGI_COMPILER_VERSION
14849 choke me
14850 #endif
14851
14852 ;
14853 return 0;
14854}
14855_ACEOF
14856rm -f conftest.$ac_objext
14857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14858 (eval $ac_compile) 2>conftest.er1
14859 ac_status=$?
14860 grep -v '^ *+' conftest.er1 >conftest.err
14861 rm -f conftest.er1
14862 cat conftest.err >&5
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); } &&
bb9e79c0 14865 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
14866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14867 (eval $ac_try) 2>&5
14868 ac_status=$?
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); }; } &&
14871 { ac_try='test -s conftest.$ac_objext'
14872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14873 (eval $ac_try) 2>&5
14874 ac_status=$?
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); }; }; then
14877 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14878else
14879 echo "$as_me: failed program was:" >&5
14880sed 's/^/| /' conftest.$ac_ext >&5
14881
14882bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14883
14884fi
14885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14886
14887
14888fi
14889echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14890echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14891 ac_ext=cc
14892ac_cpp='$CXXCPP $CPPFLAGS'
14893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14896
14897 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14898 :; SGICXX=yes
14899 else
14900 :;
14901 fi
14902
14903
3006edc0
VZ
14904 ;;
14905
0093c2fc 14906 HP-UX*)
3006edc0
VZ
14907
14908
14909 ac_ext=cc
14910ac_cpp='$CXXCPP $CPPFLAGS'
14911ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14912ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14913ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14914
0093c2fc
VZ
14915 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14916echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14917if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14918 echo $ECHO_N "(cached) $ECHO_C" >&6
14919else
14920 cat >conftest.$ac_ext <<_ACEOF
14921/* confdefs.h. */
14922_ACEOF
14923cat confdefs.h >>conftest.$ac_ext
14924cat >>conftest.$ac_ext <<_ACEOF
14925/* end confdefs.h. */
14926
14927int
14928main ()
14929{
14930
0093c2fc 14931 #ifndef __HP_aCC
3006edc0
VZ
14932 choke me
14933 #endif
14934
14935 ;
14936 return 0;
14937}
14938_ACEOF
14939rm -f conftest.$ac_objext
14940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14941 (eval $ac_compile) 2>conftest.er1
14942 ac_status=$?
14943 grep -v '^ *+' conftest.er1 >conftest.err
14944 rm -f conftest.er1
14945 cat conftest.err >&5
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); } &&
bb9e79c0 14948 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14950 (eval $ac_try) 2>&5
14951 ac_status=$?
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }; } &&
14954 { ac_try='test -s conftest.$ac_objext'
14955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956 (eval $ac_try) 2>&5
14957 ac_status=$?
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); }; }; then
0093c2fc 14960 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14961else
14962 echo "$as_me: failed program was:" >&5
14963sed 's/^/| /' conftest.$ac_ext >&5
14964
0093c2fc 14965bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14966
14967fi
14968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14969
14970
14971fi
0093c2fc
VZ
14972echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14973echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
14974 ac_ext=cc
14975ac_cpp='$CXXCPP $CPPFLAGS'
14976ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14977ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14978ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14979
0093c2fc
VZ
14980 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14981 :; HPCXX=yes
a1aa0349
VZ
14982 else
14983 :;
14984 fi
14985
14986
14987 ;;
14988
0093c2fc 14989 OSF1)
a1aa0349
VZ
14990
14991
14992 ac_ext=cc
14993ac_cpp='$CXXCPP $CPPFLAGS'
14994ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14995ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14996ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14997
0093c2fc
VZ
14998 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14999echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
15000if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
15001 echo $ECHO_N "(cached) $ECHO_C" >&6
15002else
15003 cat >conftest.$ac_ext <<_ACEOF
15004/* confdefs.h. */
15005_ACEOF
15006cat confdefs.h >>conftest.$ac_ext
15007cat >>conftest.$ac_ext <<_ACEOF
15008/* end confdefs.h. */
15009
15010int
15011main ()
15012{
15013
0093c2fc 15014 #ifndef __DECCXX
a1aa0349
VZ
15015 choke me
15016 #endif
15017
15018 ;
15019 return 0;
15020}
15021_ACEOF
15022rm -f conftest.$ac_objext
15023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15024 (eval $ac_compile) 2>conftest.er1
15025 ac_status=$?
15026 grep -v '^ *+' conftest.er1 >conftest.err
15027 rm -f conftest.er1
15028 cat conftest.err >&5
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); } &&
bb9e79c0 15031 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
15032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15033 (eval $ac_try) 2>&5
15034 ac_status=$?
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; } &&
15037 { ac_try='test -s conftest.$ac_objext'
15038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15039 (eval $ac_try) 2>&5
15040 ac_status=$?
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); }; }; then
0093c2fc 15043 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
15044else
15045 echo "$as_me: failed program was:" >&5
15046sed 's/^/| /' conftest.$ac_ext >&5
15047
0093c2fc 15048bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
15049
15050fi
15051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15052
15053
15054fi
0093c2fc
VZ
15055echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
15056echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
15057 ac_ext=cc
15058ac_cpp='$CXXCPP $CPPFLAGS'
15059ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15060ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15061ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15062
0093c2fc
VZ
15063 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
15064 :; COMPAQCXX=yes
15065 else
15066 :;
15067 fi
15068
15069
15070 ;;
15071
15072 SunOS)
15073
15074
15075 ac_ext=cc
15076ac_cpp='$CXXCPP $CPPFLAGS'
15077ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15078ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15079ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15080
15081 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
15082echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
15083if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
15084 echo $ECHO_N "(cached) $ECHO_C" >&6
15085else
15086 cat >conftest.$ac_ext <<_ACEOF
15087/* confdefs.h. */
15088_ACEOF
15089cat confdefs.h >>conftest.$ac_ext
15090cat >>conftest.$ac_ext <<_ACEOF
15091/* end confdefs.h. */
15092
15093int
15094main ()
15095{
15096
15097 #ifndef __SUNPRO_CC
15098 choke me
15099 #endif
15100
15101 ;
15102 return 0;
15103}
15104_ACEOF
15105rm -f conftest.$ac_objext
15106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15107 (eval $ac_compile) 2>conftest.er1
15108 ac_status=$?
15109 grep -v '^ *+' conftest.er1 >conftest.err
15110 rm -f conftest.er1
15111 cat conftest.err >&5
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); } &&
bb9e79c0 15114 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
15115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15116 (eval $ac_try) 2>&5
15117 ac_status=$?
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); }; } &&
15120 { ac_try='test -s conftest.$ac_objext'
15121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15122 (eval $ac_try) 2>&5
15123 ac_status=$?
15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); }; }; then
15126 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
15127else
15128 echo "$as_me: failed program was:" >&5
15129sed 's/^/| /' conftest.$ac_ext >&5
15130
15131bakefile_cv_cxx_compiler___SUNPRO_CC=no
15132
15133fi
15134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15135
15136
15137fi
15138echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
15139echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
15140 ac_ext=cc
15141ac_cpp='$CXXCPP $CPPFLAGS'
15142ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15143ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15144ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15145
15146 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
15147 :; SUNCXX=yes
3006edc0
VZ
15148 else
15149 :;
ab0ad5f1 15150 fi
a9e5b1f0
MW
15151
15152
3006edc0
VZ
15153 ;;
15154 esac
15155 fi
15156
15157
15158
a848cd7e
SC
15159if test -n "$ac_tool_prefix"; then
15160 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15161set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15162echo "$as_me:$LINENO: checking for $ac_word" >&5
15163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15164if test "${ac_cv_prog_RANLIB+set}" = set; then
15165 echo $ECHO_N "(cached) $ECHO_C" >&6
15166else
15167 if test -n "$RANLIB"; then
15168 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15169else
15170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15171for as_dir in $PATH
15172do
15173 IFS=$as_save_IFS
15174 test -z "$as_dir" && as_dir=.
15175 for ac_exec_ext in '' $ac_executable_extensions; do
15176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15177 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15179 break 2
15180 fi
15181done
15182done
15183
15184fi
15185fi
15186RANLIB=$ac_cv_prog_RANLIB
15187if test -n "$RANLIB"; then
15188 echo "$as_me:$LINENO: result: $RANLIB" >&5
15189echo "${ECHO_T}$RANLIB" >&6
15190else
15191 echo "$as_me:$LINENO: result: no" >&5
15192echo "${ECHO_T}no" >&6
15193fi
15194
15195fi
15196if test -z "$ac_cv_prog_RANLIB"; then
15197 ac_ct_RANLIB=$RANLIB
15198 # Extract the first word of "ranlib", so it can be a program name with args.
15199set dummy ranlib; ac_word=$2
15200echo "$as_me:$LINENO: checking for $ac_word" >&5
15201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15202if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15203 echo $ECHO_N "(cached) $ECHO_C" >&6
15204else
15205 if test -n "$ac_ct_RANLIB"; then
15206 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15207else
15208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15209for as_dir in $PATH
15210do
15211 IFS=$as_save_IFS
15212 test -z "$as_dir" && as_dir=.
15213 for ac_exec_ext in '' $ac_executable_extensions; do
15214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15215 ac_cv_prog_ac_ct_RANLIB="ranlib"
15216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15217 break 2
15218 fi
15219done
15220done
15221
15222 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15223fi
15224fi
15225ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15226if test -n "$ac_ct_RANLIB"; then
15227 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15228echo "${ECHO_T}$ac_ct_RANLIB" >&6
15229else
15230 echo "$as_me:$LINENO: result: no" >&5
15231echo "${ECHO_T}no" >&6
15232fi
15233
15234 RANLIB=$ac_ct_RANLIB
15235else
15236 RANLIB="$ac_cv_prog_RANLIB"
15237fi
15238
15239
8c80d384
DE
15240if test -n "$ac_tool_prefix"; then
15241 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15242set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
15243echo "$as_me:$LINENO: checking for $ac_word" >&5
15244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15245if test "${ac_cv_prog_AR+set}" = set; then
15246 echo $ECHO_N "(cached) $ECHO_C" >&6
15247else
15248 if test -n "$AR"; then
15249 ac_cv_prog_AR="$AR" # Let the user override the test.
15250else
15251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15252for as_dir in $PATH
15253do
15254 IFS=$as_save_IFS
15255 test -z "$as_dir" && as_dir=.
15256 for ac_exec_ext in '' $ac_executable_extensions; do
15257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 15258 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
15259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15260 break 2
15261 fi
15262done
15263done
15264
15265fi
15266fi
15267AR=$ac_cv_prog_AR
15268if test -n "$AR"; then
15269 echo "$as_me:$LINENO: result: $AR" >&5
15270echo "${ECHO_T}$AR" >&6
15271else
15272 echo "$as_me:$LINENO: result: no" >&5
15273echo "${ECHO_T}no" >&6
15274fi
15275
8c80d384
DE
15276fi
15277if test -z "$ac_cv_prog_AR"; then
15278 ac_ct_AR=$AR
15279 # Extract the first word of "ar", so it can be a program name with args.
15280set dummy ar; ac_word=$2
15281echo "$as_me:$LINENO: checking for $ac_word" >&5
15282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15283if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15284 echo $ECHO_N "(cached) $ECHO_C" >&6
15285else
15286 if test -n "$ac_ct_AR"; then
15287 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15288else
15289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15290for as_dir in $PATH
15291do
15292 IFS=$as_save_IFS
15293 test -z "$as_dir" && as_dir=.
15294 for ac_exec_ext in '' $ac_executable_extensions; do
15295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15296 ac_cv_prog_ac_ct_AR="ar"
15297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15298 break 2
15299 fi
15300done
15301done
15302
15303fi
15304fi
15305ac_ct_AR=$ac_cv_prog_ac_ct_AR
15306if test -n "$ac_ct_AR"; then
15307 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15308echo "${ECHO_T}$ac_ct_AR" >&6
15309else
15310 echo "$as_me:$LINENO: result: no" >&5
15311echo "${ECHO_T}no" >&6
15312fi
15313
15314 AR=$ac_ct_AR
15315else
15316 AR="$ac_cv_prog_AR"
15317fi
15318
a848cd7e 15319if test "x$AR" = "x" ; then
77ffb593
JS
15320 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
15321echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
15322 { (exit 1); exit 1; }; }
15323fi
15324
15325# Find a good install program. We prefer a C program (faster),
15326# so one script is as good as another. But avoid the broken or
15327# incompatible versions:
15328# SysV /etc/install, /usr/sbin/install
15329# SunOS /usr/etc/install
15330# IRIX /sbin/install
15331# AIX /bin/install
15332# AmigaOS /C/install, which installs bootblocks on floppy discs
15333# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15334# AFS /usr/afsws/bin/install, which mishandles nonexistent args
15335# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 15336# OS/2's system install, which has a completely different semantic
a848cd7e
SC
15337# ./install, which can be erroneously created by make from ./install.sh.
15338echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
15339echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
15340if test -z "$INSTALL"; then
15341if test "${ac_cv_path_install+set}" = set; then
15342 echo $ECHO_N "(cached) $ECHO_C" >&6
15343else
15344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15345for as_dir in $PATH
15346do
15347 IFS=$as_save_IFS
15348 test -z "$as_dir" && as_dir=.
15349 # Account for people who put trailing slashes in PATH elements.
15350case $as_dir/ in
15351 ./ | .// | /cC/* | \
15352 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 15353 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
15354 /usr/ucb/* ) ;;
15355 *)
15356 # OSF1 and SCO ODT 3.0 have their own names for install.
15357 # Don't use installbsd from OSF since it installs stuff as root
15358 # by default.
15359 for ac_prog in ginstall scoinst install; do
15360 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
15361 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15362 if test $ac_prog = install &&
15363 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15364 # AIX install. It has an incompatible calling convention.
15365 :
15366 elif test $ac_prog = install &&
15367 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15368 # program-specific install script used by HP pwplus--don't use.
15369 :
15370 else
15371 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15372 break 3
15373 fi
15374 fi
a848cd7e
SC
15375 done
15376 done
15377 ;;
15378esac
15379done
15380
15381
15382fi
15383 if test "${ac_cv_path_install+set}" = set; then
15384 INSTALL=$ac_cv_path_install
15385 else
15386 # As a last resort, use the slow shell script. We don't cache a
15387 # path for INSTALL within a source directory, because that will
15388 # break other packages using the cache if that directory is
15389 # removed, or if the path is relative.
15390 INSTALL=$ac_install_sh
15391 fi
15392fi
15393echo "$as_me:$LINENO: result: $INSTALL" >&5
15394echo "${ECHO_T}$INSTALL" >&6
15395
15396# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15397# It thinks the first close brace ends the variable substitution.
15398test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15399
15400test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15401
15402test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15403
15404
15405case ${INSTALL} in
15406 /* ) # Absolute
15407 ;;
15408 ?:* ) # Drive letter, considered as absolute.
15409 ;;
15410 *)
15411 INSTALL=`pwd`/${INSTALL} ;;
15412esac
15413
a848cd7e
SC
15414
15415case "${host}" in
15416
cfda0ea8 15417 *-*-darwin* )
a848cd7e
SC
15418 INSTALL_PROGRAM="cp -fp"
15419 INSTALL_DATA="cp -fp"
15420 ;;
15421 *)
15422 ;;
15423esac
15424
8c80d384
DE
15425if test -n "$ac_tool_prefix"; then
15426 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15427set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
15428echo "$as_me:$LINENO: checking for $ac_word" >&5
15429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15430if test "${ac_cv_prog_STRIP+set}" = set; then
15431 echo $ECHO_N "(cached) $ECHO_C" >&6
15432else
15433 if test -n "$STRIP"; then
15434 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15435else
15436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15437for as_dir in $PATH
15438do
15439 IFS=$as_save_IFS
15440 test -z "$as_dir" && as_dir=.
15441 for ac_exec_ext in '' $ac_executable_extensions; do
15442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 15443 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
15444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15445 break 2
15446 fi
15447done
15448done
15449
a848cd7e
SC
15450fi
15451fi
15452STRIP=$ac_cv_prog_STRIP
15453if test -n "$STRIP"; then
15454 echo "$as_me:$LINENO: result: $STRIP" >&5
15455echo "${ECHO_T}$STRIP" >&6
15456else
15457 echo "$as_me:$LINENO: result: no" >&5
15458echo "${ECHO_T}no" >&6
15459fi
15460
8c80d384
DE
15461fi
15462if test -z "$ac_cv_prog_STRIP"; then
15463 ac_ct_STRIP=$STRIP
15464 # Extract the first word of "strip", so it can be a program name with args.
15465set dummy strip; ac_word=$2
15466echo "$as_me:$LINENO: checking for $ac_word" >&5
15467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15468if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15469 echo $ECHO_N "(cached) $ECHO_C" >&6
15470else
15471 if test -n "$ac_ct_STRIP"; then
15472 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15473else
15474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15475for as_dir in $PATH
15476do
15477 IFS=$as_save_IFS
15478 test -z "$as_dir" && as_dir=.
15479 for ac_exec_ext in '' $ac_executable_extensions; do
15480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15481 ac_cv_prog_ac_ct_STRIP="strip"
15482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15483 break 2
15484 fi
15485done
15486done
15487
15488 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
15489fi
15490fi
15491ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15492if test -n "$ac_ct_STRIP"; then
15493 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15494echo "${ECHO_T}$ac_ct_STRIP" >&6
15495else
15496 echo "$as_me:$LINENO: result: no" >&5
15497echo "${ECHO_T}no" >&6
15498fi
15499
15500 STRIP=$ac_ct_STRIP
15501else
15502 STRIP="$ac_cv_prog_STRIP"
15503fi
15504
15505
15506if test "$wxUSE_WINE" = "yes"; then
15507 if test -n "$ac_tool_prefix"; then
15508 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
15509set dummy ${ac_tool_prefix}wrc; ac_word=$2
15510echo "$as_me:$LINENO: checking for $ac_word" >&5
15511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15512if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
15513 echo $ECHO_N "(cached) $ECHO_C" >&6
15514else
8ced02f6
DE
15515 if test -n "$WINDRES"; then
15516 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
15517else
15518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15519for as_dir in $PATH
15520do
15521 IFS=$as_save_IFS
15522 test -z "$as_dir" && as_dir=.
15523 for ac_exec_ext in '' $ac_executable_extensions; do
15524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15525 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
15526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15527 break 2
15528 fi
15529done
15530done
15531
15532fi
15533fi
8ced02f6
DE
15534WINDRES=$ac_cv_prog_WINDRES
15535if test -n "$WINDRES"; then
15536 echo "$as_me:$LINENO: result: $WINDRES" >&5
15537echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
15538else
15539 echo "$as_me:$LINENO: result: no" >&5
15540echo "${ECHO_T}no" >&6
15541fi
15542
15543fi
8ced02f6
DE
15544if test -z "$ac_cv_prog_WINDRES"; then
15545 ac_ct_WINDRES=$WINDRES
8c80d384
DE
15546 # Extract the first word of "wrc", so it can be a program name with args.
15547set dummy wrc; ac_word=$2
15548echo "$as_me:$LINENO: checking for $ac_word" >&5
15549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15550if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
15551 echo $ECHO_N "(cached) $ECHO_C" >&6
15552else
8ced02f6
DE
15553 if test -n "$ac_ct_WINDRES"; then
15554 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
15555else
15556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15557for as_dir in $PATH
15558do
15559 IFS=$as_save_IFS
15560 test -z "$as_dir" && as_dir=.
15561 for ac_exec_ext in '' $ac_executable_extensions; do
15562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15563 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
15564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15565 break 2
15566 fi
15567done
15568done
15569
15570fi
15571fi
8ced02f6
DE
15572ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15573if test -n "$ac_ct_WINDRES"; then
15574 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15575echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
15576else
15577 echo "$as_me:$LINENO: result: no" >&5
15578echo "${ECHO_T}no" >&6
15579fi
15580
8ced02f6 15581 WINDRES=$ac_ct_WINDRES
8c80d384 15582else
8ced02f6 15583 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
15584fi
15585
004ee6da 15586 RESCOMP="$WINDRES"
8c80d384
DE
15587else
15588 case "${host}" in
15589 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
15590 if test -n "$ac_tool_prefix"; then
15591 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15592set dummy ${ac_tool_prefix}windres; ac_word=$2
15593echo "$as_me:$LINENO: checking for $ac_word" >&5
15594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15595if test "${ac_cv_prog_WINDRES+set}" = set; then
15596 echo $ECHO_N "(cached) $ECHO_C" >&6
15597else
15598 if test -n "$WINDRES"; then
15599 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15600else
15601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15602for as_dir in $PATH
15603do
15604 IFS=$as_save_IFS
15605 test -z "$as_dir" && as_dir=.
15606 for ac_exec_ext in '' $ac_executable_extensions; do
15607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15608 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15610 break 2
15611 fi
15612done
15613done
15614
15615fi
15616fi
15617WINDRES=$ac_cv_prog_WINDRES
15618if test -n "$WINDRES"; then
15619 echo "$as_me:$LINENO: result: $WINDRES" >&5
15620echo "${ECHO_T}$WINDRES" >&6
15621else
15622 echo "$as_me:$LINENO: result: no" >&5
15623echo "${ECHO_T}no" >&6
15624fi
15625
15626fi
15627if test -z "$ac_cv_prog_WINDRES"; then
15628 ac_ct_WINDRES=$WINDRES
15629 # Extract the first word of "windres", so it can be a program name with args.
15630set dummy windres; ac_word=$2
15631echo "$as_me:$LINENO: checking for $ac_word" >&5
15632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15633if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15634 echo $ECHO_N "(cached) $ECHO_C" >&6
15635else
15636 if test -n "$ac_ct_WINDRES"; then
15637 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15638else
15639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15640for as_dir in $PATH
15641do
15642 IFS=$as_save_IFS
15643 test -z "$as_dir" && as_dir=.
15644 for ac_exec_ext in '' $ac_executable_extensions; do
15645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15646 ac_cv_prog_ac_ct_WINDRES="windres"
15647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15648 break 2
15649 fi
15650done
15651done
15652
15653fi
15654fi
15655ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15656if test -n "$ac_ct_WINDRES"; then
15657 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15658echo "${ECHO_T}$ac_ct_WINDRES" >&6
15659else
15660 echo "$as_me:$LINENO: result: no" >&5
15661echo "${ECHO_T}no" >&6
15662fi
15663
15664 WINDRES=$ac_ct_WINDRES
15665else
15666 WINDRES="$ac_cv_prog_WINDRES"
15667fi
15668
15669 RESCOMP="$WINDRES"
15670 if test -n "$ac_tool_prefix"; then
8c80d384
DE
15671 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15672set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15673echo "$as_me:$LINENO: checking for $ac_word" >&5
15674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15675if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15676 echo $ECHO_N "(cached) $ECHO_C" >&6
15677else
15678 if test -n "$DLLTOOL"; then
15679 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15680else
15681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15682for as_dir in $PATH
15683do
15684 IFS=$as_save_IFS
15685 test -z "$as_dir" && as_dir=.
15686 for ac_exec_ext in '' $ac_executable_extensions; do
15687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15688 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15690 break 2
15691 fi
15692done
15693done
15694
15695fi
15696fi
15697DLLTOOL=$ac_cv_prog_DLLTOOL
15698if test -n "$DLLTOOL"; then
15699 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15700echo "${ECHO_T}$DLLTOOL" >&6
15701else
15702 echo "$as_me:$LINENO: result: no" >&5
15703echo "${ECHO_T}no" >&6
15704fi
15705
15706fi
15707if test -z "$ac_cv_prog_DLLTOOL"; then
15708 ac_ct_DLLTOOL=$DLLTOOL
15709 # Extract the first word of "dlltool", so it can be a program name with args.
15710set dummy dlltool; ac_word=$2
15711echo "$as_me:$LINENO: checking for $ac_word" >&5
15712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15713if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15714 echo $ECHO_N "(cached) $ECHO_C" >&6
15715else
15716 if test -n "$ac_ct_DLLTOOL"; then
15717 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15718else
15719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15720for as_dir in $PATH
15721do
15722 IFS=$as_save_IFS
15723 test -z "$as_dir" && as_dir=.
15724 for ac_exec_ext in '' $ac_executable_extensions; do
15725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15726 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15728 break 2
15729 fi
15730done
15731done
15732
15733fi
15734fi
15735ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15736if test -n "$ac_ct_DLLTOOL"; then
15737 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15738echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15739else
15740 echo "$as_me:$LINENO: result: no" >&5
15741echo "${ECHO_T}no" >&6
15742fi
15743
15744 DLLTOOL=$ac_ct_DLLTOOL
15745else
15746 DLLTOOL="$ac_cv_prog_DLLTOOL"
15747fi
15748
15749 ;;
15750 esac
15751fi
a848cd7e
SC
15752
15753echo "$as_me:$LINENO: checking if make is GNU make" >&5
15754echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15755if test "${wx_cv_prog_makeisgnu+set}" = set; then
15756 echo $ECHO_N "(cached) $ECHO_C" >&6
15757else
15758
15759 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15760 egrep -s GNU > /dev/null); then
15761 wx_cv_prog_makeisgnu="yes"
15762 else
15763 wx_cv_prog_makeisgnu="no"
15764 fi
15765
15766fi
15767echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15768echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15769
15770if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15771 IF_GNU_MAKE=""
15772else
15773 IF_GNU_MAKE="#"
15774fi
15775
15776
15777
15778if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15779echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15780echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15781if test "${wx_cv_prog_makevpath+set}" = set; then
15782 echo $ECHO_N "(cached) $ECHO_C" >&6
15783else
15784
15785cat - << EOF > confMake
15786check : file
15787 cp \$? \$@
15788 cp \$? final_file
15789EOF
15790
15791if test ! -d sub ; then
15792 mkdir sub
15793fi
15794echo dummy > sub/file
15795${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15796RESULT=$?
15797rm -f sub/file check final_file confMake
15798rmdir sub
15799if test "$RESULT" = 0; then
15800 wx_cv_prog_makevpath="yes"
15801else
15802 wx_cv_prog_makevpath="no"
15803fi
15804
15805fi
15806echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15807echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15808
15809if test "x$wx_cv_prog_makevpath" != "xyes"; then
15810{ { echo "$as_me:$LINENO: error:
15811You need a make-utility that is able to use the variable
15812VPATH correctly.
15813If your version of make does not support VPATH correctly,
15814please install GNU-make (possibly as gmake), and start
15815configure with the following command:
15816export MAKE=gmake; ./configure for sh-type shells
15817setenv MAKE gmake; ./configure for csh-type shells
15818Also please do remember to use gmake in this case every time
15819you are trying to compile.
15820" >&5
15821echo "$as_me: error:
15822You need a make-utility that is able to use the variable
15823VPATH correctly.
15824If your version of make does not support VPATH correctly,
15825please install GNU-make (possibly as gmake), and start
15826configure with the following command:
15827export MAKE=gmake; ./configure for sh-type shells
15828setenv MAKE gmake; ./configure for csh-type shells
15829Also please do remember to use gmake in this case every time
15830you are trying to compile.
15831" >&2;}
15832 { (exit 1); exit 1; }; }
15833fi fi
15834echo "$as_me:$LINENO: checking whether ln -s works" >&5
15835echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15836LN_S=$as_ln_s
15837if test "$LN_S" = "ln -s"; then
15838 echo "$as_me:$LINENO: result: yes" >&5
15839echo "${ECHO_T}yes" >&6
15840else
15841 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15842echo "${ECHO_T}no, using $LN_S" >&6
15843fi
15844
15845
bcaab0f9 15846
a848cd7e 15847
2113bc77 15848if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 15849 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
15850fi
15851
4d7ec9f1
DE
15852case "${host}" in
15853 powerpc-*-darwin* )
15854 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15855echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15856 cat >conftest.$ac_ext <<_ACEOF
15857/* confdefs.h. */
15858_ACEOF
15859cat confdefs.h >>conftest.$ac_ext
15860cat >>conftest.$ac_ext <<_ACEOF
15861/* end confdefs.h. */
15862
15863int
15864main ()
15865{
15866#ifndef __POWERPC__
15867 choke me for lack of PowerPC
15868#endif
15869
15870 ;
15871 return 0;
15872}
15873_ACEOF
15874rm -f conftest.$ac_objext
15875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15876 (eval $ac_compile) 2>conftest.er1
15877 ac_status=$?
15878 grep -v '^ *+' conftest.er1 >conftest.err
15879 rm -f conftest.er1
15880 cat conftest.err >&5
15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 (exit $ac_status); } &&
bb9e79c0 15883 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15885 (eval $ac_try) 2>&5
15886 ac_status=$?
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); }; } &&
15889 { ac_try='test -s conftest.$ac_objext'
15890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891 (eval $ac_try) 2>&5
15892 ac_status=$?
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); }; }; then
15895 echo "$as_me:$LINENO: result: yes" >&5
15896echo "${ECHO_T}yes" >&6
15897else
15898 echo "$as_me: failed program was:" >&5
15899sed 's/^/| /' conftest.$ac_ext >&5
15900
15901echo "$as_me:$LINENO: result: no" >&5
15902echo "${ECHO_T}no" >&6
15903 cat >>confdefs.h <<\_ACEOF
15904#define __POWERPC__ 1
15905_ACEOF
15906
15907
15908fi
15909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15910 ;;
15911esac
15912
15913case "${host}" in
15914 *-*-darwin* )
4d7ec9f1
DE
15915 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15916echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15917 cat >conftest.$ac_ext <<_ACEOF
15918/* confdefs.h. */
15919_ACEOF
15920cat confdefs.h >>conftest.$ac_ext
15921cat >>conftest.$ac_ext <<_ACEOF
15922/* end confdefs.h. */
15923#include <CoreFoundation/CFBase.h>
15924
15925int
15926main ()
15927{
15928
15929 ;
15930 return 0;
15931}
15932_ACEOF
15933rm -f conftest.$ac_objext
15934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15935 (eval $ac_compile) 2>conftest.er1
15936 ac_status=$?
15937 grep -v '^ *+' conftest.er1 >conftest.err
15938 rm -f conftest.er1
15939 cat conftest.err >&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } &&
bb9e79c0 15942 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15945 ac_status=$?
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; } &&
15948 { ac_try='test -s conftest.$ac_objext'
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15951 ac_status=$?
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; }; then
15954 echo "$as_me:$LINENO: result: yes" >&5
15955echo "${ECHO_T}yes" >&6
15956else
15957 echo "$as_me: failed program was:" >&5
15958sed 's/^/| /' conftest.$ac_ext >&5
15959
15960echo "$as_me:$LINENO: result: no" >&5
15961echo "${ECHO_T}no" >&6
15962 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15963echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15964 cat >conftest.$ac_ext <<_ACEOF
15965/* confdefs.h. */
15966_ACEOF
15967cat confdefs.h >>conftest.$ac_ext
15968cat >>conftest.$ac_ext <<_ACEOF
15969/* end confdefs.h. */
15970#define __CF_USE_FRAMEWORK_INCLUDES__
15971#include <CoreFoundation/CFBase.h>
15972
15973int
15974main ()
15975{
15976
15977 ;
15978 return 0;
15979}
15980_ACEOF
15981rm -f conftest.$ac_objext
15982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15983 (eval $ac_compile) 2>conftest.er1
15984 ac_status=$?
15985 grep -v '^ *+' conftest.er1 >conftest.err
15986 rm -f conftest.er1
15987 cat conftest.err >&5
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); } &&
bb9e79c0 15990 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15992 (eval $ac_try) 2>&5
15993 ac_status=$?
15994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); }; } &&
15996 { ac_try='test -s conftest.$ac_objext'
15997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15998 (eval $ac_try) 2>&5
15999 ac_status=$?
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); }; }; then
16002 echo "$as_me:$LINENO: result: yes" >&5
16003echo "${ECHO_T}yes" >&6
c92ad099 16004 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
16005else
16006 echo "$as_me: failed program was:" >&5
16007sed 's/^/| /' conftest.$ac_ext >&5
16008
16009{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
16010See \`config.log' for more details." >&5
16011echo "$as_me: error: no. CoreFoundation not available.
16012See \`config.log' for more details." >&2;}
16013 { (exit 1); exit 1; }; }
16014
16015fi
16016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16017
16018
16019fi
16020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16021 ;;
16022esac
16023
a848cd7e
SC
16024case "${host}" in
16025 *-pc-os2_emx | *-pc-os2-emx )
6ba87b06
SN
16026 ac_ext=c
16027ac_cpp='$CPP $CPPFLAGS'
16028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16030ac_compiler_gnu=$ac_cv_c_compiler_gnu
16031
16032 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
a848cd7e
SC
16033 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
16034echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
16035if test "${ac_cv_lib_cExt_drand48+set}" = set; then
16036 echo $ECHO_N "(cached) $ECHO_C" >&6
16037else
16038 ac_check_lib_save_LIBS=$LIBS
16039LIBS="-lcExt $LIBS"
16040cat >conftest.$ac_ext <<_ACEOF
16041/* confdefs.h. */
16042_ACEOF
16043cat confdefs.h >>conftest.$ac_ext
16044cat >>conftest.$ac_ext <<_ACEOF
16045/* end confdefs.h. */
16046
16047/* Override any gcc2 internal prototype to avoid an error. */
16048#ifdef __cplusplus
16049extern "C"
16050#endif
16051/* We use char because int might match the return type of a gcc2
16052 builtin and then its argument prototype would still apply. */
16053char drand48 ();
16054int
16055main ()
16056{
16057drand48 ();
16058 ;
16059 return 0;
16060}
16061_ACEOF
16062rm -f conftest.$ac_objext conftest$ac_exeext
16063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 16064 (eval $ac_link) 2>conftest.er1
a848cd7e 16065 ac_status=$?
ac1cb8d3
VS
16066 grep -v '^ *+' conftest.er1 >conftest.err
16067 rm -f conftest.er1
16068 cat conftest.err >&5
a848cd7e
SC
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } &&
bb9e79c0 16071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16073 (eval $ac_try) 2>&5
16074 ac_status=$?
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); }; } &&
16077 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
16078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16079 (eval $ac_try) 2>&5
16080 ac_status=$?
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); }; }; then
16083 ac_cv_lib_cExt_drand48=yes
16084else
16085 echo "$as_me: failed program was:" >&5
16086sed 's/^/| /' conftest.$ac_ext >&5
16087
16088ac_cv_lib_cExt_drand48=no
16089fi
ac1cb8d3
VS
16090rm -f conftest.err conftest.$ac_objext \
16091 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
16092LIBS=$ac_check_lib_save_LIBS
16093fi
16094echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
16095echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
16096if test $ac_cv_lib_cExt_drand48 = yes; then
16097 LIBS="$LIBS -lcExt"
16098fi
16099
16100 else
16101 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
16102 fi
69120ee4
VZ
16103 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
16104echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
16105if test "${wx_cv_gccversion+set}" = set; then
16106 echo $ECHO_N "(cached) $ECHO_C" >&6
16107else
16108
391a765e
VS
16109 if test "$cross_compiling" = yes; then
16110 wx_cv_gccversion="EMX2"
16111
16112else
16113 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
16114/* confdefs.h. */
16115_ACEOF
16116cat confdefs.h >>conftest.$ac_ext
16117cat >>conftest.$ac_ext <<_ACEOF
16118/* end confdefs.h. */
16119
391a765e 16120 #include <stdio.h>
a848cd7e 16121
391a765e
VS
16122 int main()
16123 {
16124 FILE *f=fopen("conftestval", "w");
16125 if (!f) exit(1);
16126 fprintf(f,
a848cd7e 16127 #if (__GNUC__ < 3)
391a765e
VS
16128 "EMX2"
16129 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
16130 "EMX3"
16131 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
16132 "Innotek5"
16133 #else
16134 "Innotek6"
a848cd7e 16135 #endif
5039a2df 16136 );
391a765e
VS
16137 exit(0);
16138 }
a848cd7e 16139
a848cd7e 16140_ACEOF
391a765e
VS
16141rm -f conftest$ac_exeext
16142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16143 (eval $ac_link) 2>&5
ac1cb8d3
VS
16144 ac_status=$?
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 16146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
16147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16148 (eval $ac_try) 2>&5
16149 ac_status=$?
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; }; then
391a765e 16152 wx_cv_gccversion=`cat conftestval`
a848cd7e 16153else
391a765e
VS
16154 echo "$as_me: program exited with status $ac_status" >&5
16155echo "$as_me: failed program was:" >&5
a848cd7e
SC
16156sed 's/^/| /' conftest.$ac_ext >&5
16157
391a765e
VS
16158( exit $ac_status )
16159wx_cv_gccversion="EMX2"
a848cd7e 16160fi
391a765e 16161rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 16162fi
a848cd7e
SC
16163
16164fi
16165echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
16166echo "${ECHO_T}$wx_cv_gccversion" >&6
6ba87b06
SN
16167 ac_ext=cc
16168ac_cpp='$CXXCPP $CPPFLAGS'
16169ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16170ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16171ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16172
391a765e 16173 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
16174 LIBS="$LIBS -lstdcpp"
16175 LDFLAGS="$LDFLAGS -Zsysv-signals"
16176 else
391a765e 16177 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 16178 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
16179 LDFLAGS="$LDFLAGS -Zsysv-signals"
16180 else
16181 LIBS="$LIBS -lstdc++"
16182 fi
16183 fi
94acd38e
DE
16184 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
16185 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
16186echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
16187 wxUSE_OMF=yes
ec3edcc9 16188 enable_omf=yes
a848cd7e
SC
16189 fi
16190 ;;
16191 *)
16192
95986553 16193 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
16194echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
16195if test "${ac_cv_string_strcasecmp+set}" = set; then
16196 echo $ECHO_N "(cached) $ECHO_C" >&6
16197else
16198
16199 cat >conftest.$ac_ext <<_ACEOF
16200/* confdefs.h. */
16201_ACEOF
16202cat confdefs.h >>conftest.$ac_ext
16203cat >>conftest.$ac_ext <<_ACEOF
16204/* end confdefs.h. */
16205
16206 #include <string.h>
16207
16208int
16209main ()
16210{
16211
16212 strcasecmp("foo", "bar");
16213
16214 ;
16215 return 0;
16216}
16217_ACEOF
16218rm -f conftest.$ac_objext conftest$ac_exeext
16219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 16220 (eval $ac_link) 2>conftest.er1
a848cd7e 16221 ac_status=$?
ac1cb8d3
VS
16222 grep -v '^ *+' conftest.er1 >conftest.err
16223 rm -f conftest.er1
16224 cat conftest.err >&5
a848cd7e
SC
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); } &&
bb9e79c0 16227 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16229 (eval $ac_try) 2>&5
16230 ac_status=$?
16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); }; } &&
16233 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
16234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16235 (eval $ac_try) 2>&5
16236 ac_status=$?
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; }; then
16239 ac_cv_string_strcasecmp=yes
16240else
16241 echo "$as_me: failed program was:" >&5
16242sed 's/^/| /' conftest.$ac_ext >&5
16243
16244ac_cv_string_strcasecmp=no
16245
16246fi
ac1cb8d3
VS
16247rm -f conftest.err conftest.$ac_objext \
16248 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
16249
16250fi
16251echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
16252echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
16253
16254 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
16255 cat >>confdefs.h <<\_ACEOF
16256#define HAVE_STRCASECMP_IN_STRING_H 1
16257_ACEOF
16258
16259 else
16260 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
16261echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
16262if test "${ac_cv_strings_strcasecmp+set}" = set; then
16263 echo $ECHO_N "(cached) $ECHO_C" >&6
16264else
16265
16266 cat >conftest.$ac_ext <<_ACEOF
16267/* confdefs.h. */
16268_ACEOF
16269cat confdefs.h >>conftest.$ac_ext
16270cat >>conftest.$ac_ext <<_ACEOF
16271/* end confdefs.h. */
16272
16273 #include <strings.h>
16274
16275int
16276main ()
16277{
16278
16279 strcasecmp("foo", "bar");
16280
16281 ;
16282 return 0;
16283}
16284_ACEOF
16285rm -f conftest.$ac_objext conftest$ac_exeext
16286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 16287 (eval $ac_link) 2>conftest.er1
a848cd7e 16288 ac_status=$?
ac1cb8d3
VS
16289 grep -v '^ *+' conftest.er1 >conftest.err
16290 rm -f conftest.er1
16291 cat conftest.err >&5
a848cd7e
SC
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } &&
bb9e79c0 16294 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16296 (eval $ac_try) 2>&5
16297 ac_status=$?
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); }; } &&
16300 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
16301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16302 (eval $ac_try) 2>&5
16303 ac_status=$?
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); }; }; then
16306 ac_cv_strings_strcasecmp=yes
16307else
16308 echo "$as_me: failed program was:" >&5
16309sed 's/^/| /' conftest.$ac_ext >&5
16310
16311ac_cv_strings_strcasecmp=no
16312
16313fi
ac1cb8d3
VS
16314rm -f conftest.err conftest.$ac_objext \
16315 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
16316
16317fi
16318echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
16319echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
16320
0c3c69fc 16321 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
16322 cat >>confdefs.h <<\_ACEOF
16323#define HAVE_STRCASECMP_IN_STRINGS_H 1
16324_ACEOF
16325
16326 else
16327 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
16328echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
16329 { (exit 1); exit 1; }; }
16330 fi
16331 fi
16332
a848cd7e
SC
16333 ;;
16334esac
16335
16336
5d7b7554
VZ
16337ac_ext=cc
16338ac_cpp='$CXXCPP $CPPFLAGS'
16339ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16340ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16341ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16342echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16343echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
16344if test -z "$CXXCPP"; then
16345 if test "${ac_cv_prog_CXXCPP+set}" = set; then
16346 echo $ECHO_N "(cached) $ECHO_C" >&6
16347else
16348 # Double quotes because CXXCPP needs to be expanded
16349 for CXXCPP in "$CXX -E" "/lib/cpp"
16350 do
16351 ac_preproc_ok=false
16352for ac_cxx_preproc_warn_flag in '' yes
16353do
16354 # Use a header file that comes with gcc, so configuring glibc
16355 # with a fresh cross-compiler works.
16356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16357 # <limits.h> exists even on freestanding compilers.
16358 # On the NeXT, cc -E runs the code through the compiler's parser,
16359 # not just through cpp. "Syntax error" is here to catch this case.
16360 cat >conftest.$ac_ext <<_ACEOF
16361/* confdefs.h. */
16362_ACEOF
16363cat confdefs.h >>conftest.$ac_ext
16364cat >>conftest.$ac_ext <<_ACEOF
16365/* end confdefs.h. */
16366#ifdef __STDC__
16367# include <limits.h>
16368#else
16369# include <assert.h>
16370#endif
16371 Syntax error
16372_ACEOF
16373if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16375 ac_status=$?
16376 grep -v '^ *+' conftest.er1 >conftest.err
16377 rm -f conftest.er1
16378 cat conftest.err >&5
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); } >/dev/null; then
16381 if test -s conftest.err; then
16382 ac_cpp_err=$ac_cxx_preproc_warn_flag
16383 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16384 else
16385 ac_cpp_err=
16386 fi
16387else
16388 ac_cpp_err=yes
16389fi
16390if test -z "$ac_cpp_err"; then
16391 :
16392else
16393 echo "$as_me: failed program was:" >&5
16394sed 's/^/| /' conftest.$ac_ext >&5
16395
16396 # Broken: fails on valid input.
16397continue
16398fi
16399rm -f conftest.err conftest.$ac_ext
16400
16401 # OK, works on sane cases. Now check whether non-existent headers
16402 # can be detected and how.
16403 cat >conftest.$ac_ext <<_ACEOF
16404/* confdefs.h. */
16405_ACEOF
16406cat confdefs.h >>conftest.$ac_ext
16407cat >>conftest.$ac_ext <<_ACEOF
16408/* end confdefs.h. */
16409#include <ac_nonexistent.h>
16410_ACEOF
16411if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16413 ac_status=$?
16414 grep -v '^ *+' conftest.er1 >conftest.err
16415 rm -f conftest.er1
16416 cat conftest.err >&5
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); } >/dev/null; then
16419 if test -s conftest.err; then
16420 ac_cpp_err=$ac_cxx_preproc_warn_flag
16421 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16422 else
16423 ac_cpp_err=
16424 fi
16425else
16426 ac_cpp_err=yes
16427fi
16428if test -z "$ac_cpp_err"; then
16429 # Broken: success on invalid input.
16430continue
16431else
16432 echo "$as_me: failed program was:" >&5
16433sed 's/^/| /' conftest.$ac_ext >&5
16434
16435 # Passes both tests.
16436ac_preproc_ok=:
16437break
16438fi
16439rm -f conftest.err conftest.$ac_ext
16440
16441done
16442# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16443rm -f conftest.err conftest.$ac_ext
16444if $ac_preproc_ok; then
16445 break
16446fi
16447
16448 done
16449 ac_cv_prog_CXXCPP=$CXXCPP
16450
16451fi
16452 CXXCPP=$ac_cv_prog_CXXCPP
16453else
16454 ac_cv_prog_CXXCPP=$CXXCPP
16455fi
16456echo "$as_me:$LINENO: result: $CXXCPP" >&5
16457echo "${ECHO_T}$CXXCPP" >&6
16458ac_preproc_ok=false
16459for ac_cxx_preproc_warn_flag in '' yes
16460do
16461 # Use a header file that comes with gcc, so configuring glibc
16462 # with a fresh cross-compiler works.
16463 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16464 # <limits.h> exists even on freestanding compilers.
16465 # On the NeXT, cc -E runs the code through the compiler's parser,
16466 # not just through cpp. "Syntax error" is here to catch this case.
16467 cat >conftest.$ac_ext <<_ACEOF
16468/* confdefs.h. */
16469_ACEOF
16470cat confdefs.h >>conftest.$ac_ext
16471cat >>conftest.$ac_ext <<_ACEOF
16472/* end confdefs.h. */
16473#ifdef __STDC__
16474# include <limits.h>
16475#else
16476# include <assert.h>
16477#endif
16478 Syntax error
16479_ACEOF
16480if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16482 ac_status=$?
16483 grep -v '^ *+' conftest.er1 >conftest.err
16484 rm -f conftest.er1
16485 cat conftest.err >&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); } >/dev/null; then
16488 if test -s conftest.err; then
16489 ac_cpp_err=$ac_cxx_preproc_warn_flag
16490 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16491 else
16492 ac_cpp_err=
16493 fi
16494else
16495 ac_cpp_err=yes
16496fi
16497if test -z "$ac_cpp_err"; then
16498 :
16499else
16500 echo "$as_me: failed program was:" >&5
16501sed 's/^/| /' conftest.$ac_ext >&5
16502
16503 # Broken: fails on valid input.
16504continue
16505fi
16506rm -f conftest.err conftest.$ac_ext
16507
16508 # OK, works on sane cases. Now check whether non-existent headers
16509 # can be detected and how.
16510 cat >conftest.$ac_ext <<_ACEOF
16511/* confdefs.h. */
16512_ACEOF
16513cat confdefs.h >>conftest.$ac_ext
16514cat >>conftest.$ac_ext <<_ACEOF
16515/* end confdefs.h. */
16516#include <ac_nonexistent.h>
16517_ACEOF
16518if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16520 ac_status=$?
16521 grep -v '^ *+' conftest.er1 >conftest.err
16522 rm -f conftest.er1
16523 cat conftest.err >&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); } >/dev/null; then
16526 if test -s conftest.err; then
16527 ac_cpp_err=$ac_cxx_preproc_warn_flag
16528 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16529 else
16530 ac_cpp_err=
16531 fi
16532else
16533 ac_cpp_err=yes
16534fi
16535if test -z "$ac_cpp_err"; then
16536 # Broken: success on invalid input.
16537continue
16538else
16539 echo "$as_me: failed program was:" >&5
16540sed 's/^/| /' conftest.$ac_ext >&5
16541
16542 # Passes both tests.
16543ac_preproc_ok=:
16544break
16545fi
16546rm -f conftest.err conftest.$ac_ext
16547
16548done
16549# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16550rm -f conftest.err conftest.$ac_ext
16551if $ac_preproc_ok; then
16552 :
16553else
16554 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16555See \`config.log' for more details." >&5
16556echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16557See \`config.log' for more details." >&2;}
16558 { (exit 1); exit 1; }; }
16559fi
16560
16561ac_ext=cc
16562ac_cpp='$CXXCPP $CPPFLAGS'
16563ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16564ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16565ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16566
16567
a848cd7e
SC
16568echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16569echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16570if test "${ac_cv_header_stdc+set}" = set; then
16571 echo $ECHO_N "(cached) $ECHO_C" >&6
16572else
16573 cat >conftest.$ac_ext <<_ACEOF
16574/* confdefs.h. */
16575_ACEOF
16576cat confdefs.h >>conftest.$ac_ext
16577cat >>conftest.$ac_ext <<_ACEOF
16578/* end confdefs.h. */
16579#include <stdlib.h>
16580#include <stdarg.h>
16581#include <string.h>
16582#include <float.h>
16583
16584int
16585main ()
16586{
16587
16588 ;
16589 return 0;
16590}
16591_ACEOF
16592rm -f conftest.$ac_objext
16593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16594 (eval $ac_compile) 2>conftest.er1
a848cd7e 16595 ac_status=$?
ac1cb8d3
VS
16596 grep -v '^ *+' conftest.er1 >conftest.err
16597 rm -f conftest.er1
16598 cat conftest.err >&5
a848cd7e
SC
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); } &&
bb9e79c0 16601 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603 (eval $ac_try) 2>&5
16604 ac_status=$?
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; } &&
16607 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16609 (eval $ac_try) 2>&5
16610 ac_status=$?
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); }; }; then
16613 ac_cv_header_stdc=yes
16614else
16615 echo "$as_me: failed program was:" >&5
16616sed 's/^/| /' conftest.$ac_ext >&5
16617
16618ac_cv_header_stdc=no
16619fi
ac1cb8d3 16620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16621
16622if test $ac_cv_header_stdc = yes; then
16623 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16624 cat >conftest.$ac_ext <<_ACEOF
16625/* confdefs.h. */
16626_ACEOF
16627cat confdefs.h >>conftest.$ac_ext
16628cat >>conftest.$ac_ext <<_ACEOF
16629/* end confdefs.h. */
16630#include <string.h>
16631
16632_ACEOF
16633if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16634 $EGREP "memchr" >/dev/null 2>&1; then
16635 :
16636else
16637 ac_cv_header_stdc=no
16638fi
16639rm -f conftest*
16640
16641fi
16642
16643if test $ac_cv_header_stdc = yes; then
16644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16645 cat >conftest.$ac_ext <<_ACEOF
16646/* confdefs.h. */
16647_ACEOF
16648cat confdefs.h >>conftest.$ac_ext
16649cat >>conftest.$ac_ext <<_ACEOF
16650/* end confdefs.h. */
16651#include <stdlib.h>
16652
16653_ACEOF
16654if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16655 $EGREP "free" >/dev/null 2>&1; then
16656 :
16657else
16658 ac_cv_header_stdc=no
16659fi
16660rm -f conftest*
16661
16662fi
16663
16664if test $ac_cv_header_stdc = yes; then
16665 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16666 if test "$cross_compiling" = yes; then
16667 :
16668else
16669 cat >conftest.$ac_ext <<_ACEOF
16670/* confdefs.h. */
16671_ACEOF
16672cat confdefs.h >>conftest.$ac_ext
16673cat >>conftest.$ac_ext <<_ACEOF
16674/* end confdefs.h. */
16675#include <ctype.h>
16676#if ((' ' & 0x0FF) == 0x020)
16677# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16678# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16679#else
16680# define ISLOWER(c) \
ac1cb8d3
VS
16681 (('a' <= (c) && (c) <= 'i') \
16682 || ('j' <= (c) && (c) <= 'r') \
16683 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
16684# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16685#endif
16686
16687#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16688int
16689main ()
16690{
16691 int i;
16692 for (i = 0; i < 256; i++)
16693 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 16694 || toupper (i) != TOUPPER (i))
a848cd7e
SC
16695 exit(2);
16696 exit (0);
16697}
16698_ACEOF
16699rm -f conftest$ac_exeext
16700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16701 (eval $ac_link) 2>&5
16702 ac_status=$?
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16706 (eval $ac_try) 2>&5
16707 ac_status=$?
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); }; }; then
16710 :
16711else
16712 echo "$as_me: program exited with status $ac_status" >&5
16713echo "$as_me: failed program was:" >&5
16714sed 's/^/| /' conftest.$ac_ext >&5
16715
16716( exit $ac_status )
16717ac_cv_header_stdc=no
16718fi
ac1cb8d3 16719rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16720fi
16721fi
16722fi
16723echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16724echo "${ECHO_T}$ac_cv_header_stdc" >&6
16725if test $ac_cv_header_stdc = yes; then
16726
16727cat >>confdefs.h <<\_ACEOF
16728#define STDC_HEADERS 1
16729_ACEOF
16730
16731fi
16732
16733# On IRIX 5.3, sys/types and inttypes.h are conflicting.
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 16744 inttypes.h stdint.h unistd.h
a848cd7e
SC
16745do
16746as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16747echo "$as_me:$LINENO: checking for $ac_header" >&5
16748echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16749if eval "test \"\${$as_ac_Header+set}\" = set"; then
16750 echo $ECHO_N "(cached) $ECHO_C" >&6
16751else
16752 cat >conftest.$ac_ext <<_ACEOF
16753/* confdefs.h. */
16754_ACEOF
16755cat confdefs.h >>conftest.$ac_ext
16756cat >>conftest.$ac_ext <<_ACEOF
16757/* end confdefs.h. */
16758$ac_includes_default
16759
16760#include <$ac_header>
16761_ACEOF
16762rm -f conftest.$ac_objext
16763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16764 (eval $ac_compile) 2>conftest.er1
a848cd7e 16765 ac_status=$?
ac1cb8d3
VS
16766 grep -v '^ *+' conftest.er1 >conftest.err
16767 rm -f conftest.er1
16768 cat conftest.err >&5
a848cd7e
SC
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); } &&
bb9e79c0 16771 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16773 (eval $ac_try) 2>&5
16774 ac_status=$?
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; } &&
16777 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779 (eval $ac_try) 2>&5
16780 ac_status=$?
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; }; then
16783 eval "$as_ac_Header=yes"
16784else
16785 echo "$as_me: failed program was:" >&5
16786sed 's/^/| /' conftest.$ac_ext >&5
16787
16788eval "$as_ac_Header=no"
16789fi
ac1cb8d3 16790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16791fi
16792echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16793echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16794if test `eval echo '${'$as_ac_Header'}'` = yes; then
16795 cat >>confdefs.h <<_ACEOF
16796#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16797_ACEOF
16798
16799fi
16800
16801done
16802
16803
16804
16805for ac_header in stdlib.h
16806do
16807as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16808if eval "test \"\${$as_ac_Header+set}\" = set"; then
16809 echo "$as_me:$LINENO: checking for $ac_header" >&5
16810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16811if eval "test \"\${$as_ac_Header+set}\" = set"; then
16812 echo $ECHO_N "(cached) $ECHO_C" >&6
16813fi
16814echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16815echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16816else
16817 # Is the header compilable?
16818echo "$as_me:$LINENO: checking $ac_header usability" >&5
16819echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16820cat >conftest.$ac_ext <<_ACEOF
16821/* confdefs.h. */
16822_ACEOF
16823cat confdefs.h >>conftest.$ac_ext
16824cat >>conftest.$ac_ext <<_ACEOF
16825/* end confdefs.h. */
16826$ac_includes_default
16827#include <$ac_header>
16828_ACEOF
16829rm -f conftest.$ac_objext
16830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16831 (eval $ac_compile) 2>conftest.er1
a848cd7e 16832 ac_status=$?
ac1cb8d3
VS
16833 grep -v '^ *+' conftest.er1 >conftest.err
16834 rm -f conftest.er1
16835 cat conftest.err >&5
a848cd7e
SC
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); } &&
bb9e79c0 16838 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16840 (eval $ac_try) 2>&5
16841 ac_status=$?
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); }; } &&
16844 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16846 (eval $ac_try) 2>&5
16847 ac_status=$?
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); }; }; then
16850 ac_header_compiler=yes
16851else
16852 echo "$as_me: failed program was:" >&5
16853sed 's/^/| /' conftest.$ac_ext >&5
16854
16855ac_header_compiler=no
16856fi
ac1cb8d3 16857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16858echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16859echo "${ECHO_T}$ac_header_compiler" >&6
16860
16861# Is the header present?
16862echo "$as_me:$LINENO: checking $ac_header presence" >&5
16863echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16864cat >conftest.$ac_ext <<_ACEOF
16865/* confdefs.h. */
16866_ACEOF
16867cat confdefs.h >>conftest.$ac_ext
16868cat >>conftest.$ac_ext <<_ACEOF
16869/* end confdefs.h. */
16870#include <$ac_header>
16871_ACEOF
16872if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16874 ac_status=$?
16875 grep -v '^ *+' conftest.er1 >conftest.err
16876 rm -f conftest.er1
16877 cat conftest.err >&5
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); } >/dev/null; then
16880 if test -s conftest.err; then
5d7b7554
VZ
16881 ac_cpp_err=$ac_cxx_preproc_warn_flag
16882 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16883 else
16884 ac_cpp_err=
16885 fi
16886else
16887 ac_cpp_err=yes
16888fi
16889if test -z "$ac_cpp_err"; then
16890 ac_header_preproc=yes
16891else
16892 echo "$as_me: failed program was:" >&5
16893sed 's/^/| /' conftest.$ac_ext >&5
16894
16895 ac_header_preproc=no
16896fi
16897rm -f conftest.err conftest.$ac_ext
16898echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16899echo "${ECHO_T}$ac_header_preproc" >&6
16900
16901# So? What about this header?
5d7b7554 16902case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16903 yes:no: )
a848cd7e
SC
16904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16905echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16907echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16908 ac_header_preproc=yes
a848cd7e 16909 ;;
ac1cb8d3 16910 no:yes:* )
a848cd7e
SC
16911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16912echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16914echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16916echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16918echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16920echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16922echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16923 (
16924 cat <<\_ASBOX
ac1cb8d3
VS
16925## ----------------------------------------- ##
16926## Report this to wx-dev@lists.wxwidgets.org ##
16927## ----------------------------------------- ##
a848cd7e
SC
16928_ASBOX
16929 ) |
16930 sed "s/^/$as_me: WARNING: /" >&2
16931 ;;
16932esac
16933echo "$as_me:$LINENO: checking for $ac_header" >&5
16934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16935if eval "test \"\${$as_ac_Header+set}\" = set"; then
16936 echo $ECHO_N "(cached) $ECHO_C" >&6
16937else
ac1cb8d3 16938 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16939fi
16940echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16941echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16942
16943fi
16944if test `eval echo '${'$as_ac_Header'}'` = yes; then
16945 cat >>confdefs.h <<_ACEOF
16946#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16947_ACEOF
16948
16949fi
16950
16951done
16952
16953
16954for ac_header in malloc.h
16955do
16956as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16957if eval "test \"\${$as_ac_Header+set}\" = set"; then
16958 echo "$as_me:$LINENO: checking for $ac_header" >&5
16959echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16960if eval "test \"\${$as_ac_Header+set}\" = set"; then
16961 echo $ECHO_N "(cached) $ECHO_C" >&6
16962fi
16963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16964echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16965else
16966 # Is the header compilable?
16967echo "$as_me:$LINENO: checking $ac_header usability" >&5
16968echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16969cat >conftest.$ac_ext <<_ACEOF
16970/* confdefs.h. */
16971_ACEOF
16972cat confdefs.h >>conftest.$ac_ext
16973cat >>conftest.$ac_ext <<_ACEOF
16974/* end confdefs.h. */
16975$ac_includes_default
16976#include <$ac_header>
16977_ACEOF
16978rm -f conftest.$ac_objext
16979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16980 (eval $ac_compile) 2>conftest.er1
a848cd7e 16981 ac_status=$?
ac1cb8d3
VS
16982 grep -v '^ *+' conftest.er1 >conftest.err
16983 rm -f conftest.er1
16984 cat conftest.err >&5
a848cd7e
SC
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } &&
bb9e79c0 16987 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16989 (eval $ac_try) 2>&5
16990 ac_status=$?
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; } &&
16993 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995 (eval $ac_try) 2>&5
16996 ac_status=$?
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; }; then
16999 ac_header_compiler=yes
17000else
17001 echo "$as_me: failed program was:" >&5
17002sed 's/^/| /' conftest.$ac_ext >&5
17003
17004ac_header_compiler=no
17005fi
ac1cb8d3 17006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17007echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17008echo "${ECHO_T}$ac_header_compiler" >&6
17009
17010# Is the header present?
17011echo "$as_me:$LINENO: checking $ac_header presence" >&5
17012echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17013cat >conftest.$ac_ext <<_ACEOF
17014/* confdefs.h. */
17015_ACEOF
17016cat confdefs.h >>conftest.$ac_ext
17017cat >>conftest.$ac_ext <<_ACEOF
17018/* end confdefs.h. */
17019#include <$ac_header>
17020_ACEOF
17021if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17023 ac_status=$?
17024 grep -v '^ *+' conftest.er1 >conftest.err
17025 rm -f conftest.er1
17026 cat conftest.err >&5
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); } >/dev/null; then
17029 if test -s conftest.err; then
5d7b7554
VZ
17030 ac_cpp_err=$ac_cxx_preproc_warn_flag
17031 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17032 else
17033 ac_cpp_err=
17034 fi
17035else
17036 ac_cpp_err=yes
17037fi
17038if test -z "$ac_cpp_err"; then
17039 ac_header_preproc=yes
17040else
17041 echo "$as_me: failed program was:" >&5
17042sed 's/^/| /' conftest.$ac_ext >&5
17043
17044 ac_header_preproc=no
17045fi
17046rm -f conftest.err conftest.$ac_ext
17047echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17048echo "${ECHO_T}$ac_header_preproc" >&6
17049
17050# So? What about this header?
5d7b7554 17051case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17052 yes:no: )
a848cd7e
SC
17053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17054echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17056echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17057 ac_header_preproc=yes
a848cd7e 17058 ;;
ac1cb8d3 17059 no:yes:* )
a848cd7e
SC
17060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17061echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17063echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17065echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17067echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17069echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17071echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17072 (
17073 cat <<\_ASBOX
ac1cb8d3
VS
17074## ----------------------------------------- ##
17075## Report this to wx-dev@lists.wxwidgets.org ##
17076## ----------------------------------------- ##
a848cd7e
SC
17077_ASBOX
17078 ) |
17079 sed "s/^/$as_me: WARNING: /" >&2
17080 ;;
17081esac
17082echo "$as_me:$LINENO: checking for $ac_header" >&5
17083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17084if eval "test \"\${$as_ac_Header+set}\" = set"; then
17085 echo $ECHO_N "(cached) $ECHO_C" >&6
17086else
ac1cb8d3 17087 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17088fi
17089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17090echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17091
17092fi
17093if test `eval echo '${'$as_ac_Header'}'` = yes; then
17094 cat >>confdefs.h <<_ACEOF
17095#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17096_ACEOF
17097
17098fi
17099
17100done
17101
17102
17103for ac_header in unistd.h
17104do
17105as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17106if eval "test \"\${$as_ac_Header+set}\" = set"; then
17107 echo "$as_me:$LINENO: checking for $ac_header" >&5
17108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17109if eval "test \"\${$as_ac_Header+set}\" = set"; then
17110 echo $ECHO_N "(cached) $ECHO_C" >&6
17111fi
17112echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17113echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17114else
17115 # Is the header compilable?
17116echo "$as_me:$LINENO: checking $ac_header usability" >&5
17117echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17118cat >conftest.$ac_ext <<_ACEOF
17119/* confdefs.h. */
17120_ACEOF
17121cat confdefs.h >>conftest.$ac_ext
17122cat >>conftest.$ac_ext <<_ACEOF
17123/* end confdefs.h. */
17124$ac_includes_default
17125#include <$ac_header>
17126_ACEOF
17127rm -f conftest.$ac_objext
17128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17129 (eval $ac_compile) 2>conftest.er1
a848cd7e 17130 ac_status=$?
ac1cb8d3
VS
17131 grep -v '^ *+' conftest.er1 >conftest.err
17132 rm -f conftest.er1
17133 cat conftest.err >&5
a848cd7e
SC
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); } &&
bb9e79c0 17136 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17138 (eval $ac_try) 2>&5
17139 ac_status=$?
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); }; } &&
17142 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17144 (eval $ac_try) 2>&5
17145 ac_status=$?
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); }; }; then
17148 ac_header_compiler=yes
17149else
17150 echo "$as_me: failed program was:" >&5
17151sed 's/^/| /' conftest.$ac_ext >&5
17152
17153ac_header_compiler=no
17154fi
ac1cb8d3 17155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17156echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17157echo "${ECHO_T}$ac_header_compiler" >&6
17158
17159# Is the header present?
17160echo "$as_me:$LINENO: checking $ac_header presence" >&5
17161echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17162cat >conftest.$ac_ext <<_ACEOF
17163/* confdefs.h. */
17164_ACEOF
17165cat confdefs.h >>conftest.$ac_ext
17166cat >>conftest.$ac_ext <<_ACEOF
17167/* end confdefs.h. */
17168#include <$ac_header>
17169_ACEOF
17170if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17172 ac_status=$?
17173 grep -v '^ *+' conftest.er1 >conftest.err
17174 rm -f conftest.er1
17175 cat conftest.err >&5
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); } >/dev/null; then
17178 if test -s conftest.err; then
5d7b7554
VZ
17179 ac_cpp_err=$ac_cxx_preproc_warn_flag
17180 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17181 else
17182 ac_cpp_err=
17183 fi
17184else
17185 ac_cpp_err=yes
17186fi
17187if test -z "$ac_cpp_err"; then
17188 ac_header_preproc=yes
17189else
17190 echo "$as_me: failed program was:" >&5
17191sed 's/^/| /' conftest.$ac_ext >&5
17192
17193 ac_header_preproc=no
17194fi
17195rm -f conftest.err conftest.$ac_ext
17196echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17197echo "${ECHO_T}$ac_header_preproc" >&6
17198
17199# So? What about this header?
5d7b7554 17200case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17201 yes:no: )
a848cd7e
SC
17202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17203echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17205echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17206 ac_header_preproc=yes
a848cd7e 17207 ;;
ac1cb8d3 17208 no:yes:* )
a848cd7e
SC
17209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17210echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17212echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17214echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17216echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17218echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17220echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17221 (
17222 cat <<\_ASBOX
ac1cb8d3
VS
17223## ----------------------------------------- ##
17224## Report this to wx-dev@lists.wxwidgets.org ##
17225## ----------------------------------------- ##
a848cd7e
SC
17226_ASBOX
17227 ) |
17228 sed "s/^/$as_me: WARNING: /" >&2
17229 ;;
17230esac
17231echo "$as_me:$LINENO: checking for $ac_header" >&5
17232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17233if eval "test \"\${$as_ac_Header+set}\" = set"; then
17234 echo $ECHO_N "(cached) $ECHO_C" >&6
17235else
ac1cb8d3 17236 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17237fi
17238echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17239echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17240
17241fi
17242if test `eval echo '${'$as_ac_Header'}'` = yes; then
17243 cat >>confdefs.h <<_ACEOF
17244#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17245_ACEOF
17246
17247fi
17248
17249done
17250
17251
17252for ac_header in wchar.h
17253do
17254as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17255if eval "test \"\${$as_ac_Header+set}\" = set"; then
17256 echo "$as_me:$LINENO: checking for $ac_header" >&5
17257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17258if eval "test \"\${$as_ac_Header+set}\" = set"; then
17259 echo $ECHO_N "(cached) $ECHO_C" >&6
17260fi
17261echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17262echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17263else
17264 # Is the header compilable?
17265echo "$as_me:$LINENO: checking $ac_header usability" >&5
17266echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17267cat >conftest.$ac_ext <<_ACEOF
17268/* confdefs.h. */
17269_ACEOF
17270cat confdefs.h >>conftest.$ac_ext
17271cat >>conftest.$ac_ext <<_ACEOF
17272/* end confdefs.h. */
17273$ac_includes_default
17274#include <$ac_header>
17275_ACEOF
17276rm -f conftest.$ac_objext
17277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17278 (eval $ac_compile) 2>conftest.er1
a848cd7e 17279 ac_status=$?
ac1cb8d3
VS
17280 grep -v '^ *+' conftest.er1 >conftest.err
17281 rm -f conftest.er1
17282 cat conftest.err >&5
a848cd7e
SC
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); } &&
bb9e79c0 17285 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17287 (eval $ac_try) 2>&5
17288 ac_status=$?
17289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290 (exit $ac_status); }; } &&
17291 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17293 (eval $ac_try) 2>&5
17294 ac_status=$?
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); }; }; then
17297 ac_header_compiler=yes
17298else
17299 echo "$as_me: failed program was:" >&5
17300sed 's/^/| /' conftest.$ac_ext >&5
17301
17302ac_header_compiler=no
17303fi
ac1cb8d3 17304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17305echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17306echo "${ECHO_T}$ac_header_compiler" >&6
17307
17308# Is the header present?
17309echo "$as_me:$LINENO: checking $ac_header presence" >&5
17310echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17311cat >conftest.$ac_ext <<_ACEOF
17312/* confdefs.h. */
17313_ACEOF
17314cat confdefs.h >>conftest.$ac_ext
17315cat >>conftest.$ac_ext <<_ACEOF
17316/* end confdefs.h. */
17317#include <$ac_header>
17318_ACEOF
17319if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17321 ac_status=$?
17322 grep -v '^ *+' conftest.er1 >conftest.err
17323 rm -f conftest.er1
17324 cat conftest.err >&5
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); } >/dev/null; then
17327 if test -s conftest.err; then
5d7b7554
VZ
17328 ac_cpp_err=$ac_cxx_preproc_warn_flag
17329 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17330 else
17331 ac_cpp_err=
17332 fi
17333else
17334 ac_cpp_err=yes
17335fi
17336if test -z "$ac_cpp_err"; then
17337 ac_header_preproc=yes
17338else
17339 echo "$as_me: failed program was:" >&5
17340sed 's/^/| /' conftest.$ac_ext >&5
17341
17342 ac_header_preproc=no
17343fi
17344rm -f conftest.err conftest.$ac_ext
17345echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17346echo "${ECHO_T}$ac_header_preproc" >&6
17347
17348# So? What about this header?
5d7b7554 17349case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17350 yes:no: )
a848cd7e
SC
17351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17352echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17354echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17355 ac_header_preproc=yes
a848cd7e 17356 ;;
ac1cb8d3 17357 no:yes:* )
a848cd7e
SC
17358 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17359echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17360 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17361echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17362 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17363echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17364 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17365echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17367echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17368 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17369echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17370 (
17371 cat <<\_ASBOX
ac1cb8d3
VS
17372## ----------------------------------------- ##
17373## Report this to wx-dev@lists.wxwidgets.org ##
17374## ----------------------------------------- ##
a848cd7e
SC
17375_ASBOX
17376 ) |
17377 sed "s/^/$as_me: WARNING: /" >&2
17378 ;;
17379esac
17380echo "$as_me:$LINENO: checking for $ac_header" >&5
17381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17382if eval "test \"\${$as_ac_Header+set}\" = set"; then
17383 echo $ECHO_N "(cached) $ECHO_C" >&6
17384else
ac1cb8d3 17385 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17386fi
17387echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17388echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17389
17390fi
17391if test `eval echo '${'$as_ac_Header'}'` = yes; then
17392 cat >>confdefs.h <<_ACEOF
17393#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17394_ACEOF
17395
17396fi
17397
17398done
17399
17400
17401if test "$ac_cv_header_wchar_h" != "yes"; then
17402
17403for ac_header in wcstr.h
17404do
17405as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17406if eval "test \"\${$as_ac_Header+set}\" = set"; then
17407 echo "$as_me:$LINENO: checking for $ac_header" >&5
17408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17409if eval "test \"\${$as_ac_Header+set}\" = set"; then
17410 echo $ECHO_N "(cached) $ECHO_C" >&6
17411fi
17412echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17413echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17414else
17415 # Is the header compilable?
17416echo "$as_me:$LINENO: checking $ac_header usability" >&5
17417echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17418cat >conftest.$ac_ext <<_ACEOF
17419/* confdefs.h. */
17420_ACEOF
17421cat confdefs.h >>conftest.$ac_ext
17422cat >>conftest.$ac_ext <<_ACEOF
17423/* end confdefs.h. */
17424$ac_includes_default
17425#include <$ac_header>
17426_ACEOF
17427rm -f conftest.$ac_objext
17428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17429 (eval $ac_compile) 2>conftest.er1
a848cd7e 17430 ac_status=$?
ac1cb8d3
VS
17431 grep -v '^ *+' conftest.er1 >conftest.err
17432 rm -f conftest.er1
17433 cat conftest.err >&5
a848cd7e
SC
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } &&
bb9e79c0 17436 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17438 (eval $ac_try) 2>&5
17439 ac_status=$?
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); }; } &&
17442 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17444 (eval $ac_try) 2>&5
17445 ac_status=$?
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); }; }; then
17448 ac_header_compiler=yes
17449else
17450 echo "$as_me: failed program was:" >&5
17451sed 's/^/| /' conftest.$ac_ext >&5
17452
17453ac_header_compiler=no
17454fi
ac1cb8d3 17455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17456echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17457echo "${ECHO_T}$ac_header_compiler" >&6
17458
17459# Is the header present?
17460echo "$as_me:$LINENO: checking $ac_header presence" >&5
17461echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17462cat >conftest.$ac_ext <<_ACEOF
17463/* confdefs.h. */
17464_ACEOF
17465cat confdefs.h >>conftest.$ac_ext
17466cat >>conftest.$ac_ext <<_ACEOF
17467/* end confdefs.h. */
17468#include <$ac_header>
17469_ACEOF
17470if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17472 ac_status=$?
17473 grep -v '^ *+' conftest.er1 >conftest.err
17474 rm -f conftest.er1
17475 cat conftest.err >&5
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); } >/dev/null; then
17478 if test -s conftest.err; then
5d7b7554
VZ
17479 ac_cpp_err=$ac_cxx_preproc_warn_flag
17480 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17481 else
17482 ac_cpp_err=
17483 fi
17484else
17485 ac_cpp_err=yes
17486fi
17487if test -z "$ac_cpp_err"; then
17488 ac_header_preproc=yes
17489else
17490 echo "$as_me: failed program was:" >&5
17491sed 's/^/| /' conftest.$ac_ext >&5
17492
17493 ac_header_preproc=no
17494fi
17495rm -f conftest.err conftest.$ac_ext
17496echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17497echo "${ECHO_T}$ac_header_preproc" >&6
17498
17499# So? What about this header?
5d7b7554 17500case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17501 yes:no: )
a848cd7e
SC
17502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17503echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17505echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17506 ac_header_preproc=yes
a848cd7e 17507 ;;
ac1cb8d3 17508 no:yes:* )
a848cd7e
SC
17509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17510echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17512echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17513 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17514echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17515 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17516echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17518echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17519 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17520echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17521 (
17522 cat <<\_ASBOX
ac1cb8d3
VS
17523## ----------------------------------------- ##
17524## Report this to wx-dev@lists.wxwidgets.org ##
17525## ----------------------------------------- ##
a848cd7e
SC
17526_ASBOX
17527 ) |
17528 sed "s/^/$as_me: WARNING: /" >&2
17529 ;;
17530esac
17531echo "$as_me:$LINENO: checking for $ac_header" >&5
17532echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17533if eval "test \"\${$as_ac_Header+set}\" = set"; then
17534 echo $ECHO_N "(cached) $ECHO_C" >&6
17535else
ac1cb8d3 17536 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17537fi
17538echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17539echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17540
17541fi
17542if test `eval echo '${'$as_ac_Header'}'` = yes; then
17543 cat >>confdefs.h <<_ACEOF
17544#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17545_ACEOF
17546
17547fi
17548
17549done
17550
17551fi
17552
17553
17554for ac_header in fnmatch.h
17555do
17556as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17557if eval "test \"\${$as_ac_Header+set}\" = set"; then
17558 echo "$as_me:$LINENO: checking for $ac_header" >&5
17559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17560if eval "test \"\${$as_ac_Header+set}\" = set"; then
17561 echo $ECHO_N "(cached) $ECHO_C" >&6
17562fi
17563echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17564echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17565else
17566 # Is the header compilable?
17567echo "$as_me:$LINENO: checking $ac_header usability" >&5
17568echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17569cat >conftest.$ac_ext <<_ACEOF
17570/* confdefs.h. */
17571_ACEOF
17572cat confdefs.h >>conftest.$ac_ext
17573cat >>conftest.$ac_ext <<_ACEOF
17574/* end confdefs.h. */
17575$ac_includes_default
17576#include <$ac_header>
17577_ACEOF
17578rm -f conftest.$ac_objext
17579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17580 (eval $ac_compile) 2>conftest.er1
a848cd7e 17581 ac_status=$?
ac1cb8d3
VS
17582 grep -v '^ *+' conftest.er1 >conftest.err
17583 rm -f conftest.er1
17584 cat conftest.err >&5
a848cd7e
SC
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); } &&
bb9e79c0 17587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17589 (eval $ac_try) 2>&5
17590 ac_status=$?
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); }; } &&
17593 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17595 (eval $ac_try) 2>&5
17596 ac_status=$?
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); }; }; then
17599 ac_header_compiler=yes
17600else
17601 echo "$as_me: failed program was:" >&5
17602sed 's/^/| /' conftest.$ac_ext >&5
17603
17604ac_header_compiler=no
17605fi
ac1cb8d3 17606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17607echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17608echo "${ECHO_T}$ac_header_compiler" >&6
17609
17610# Is the header present?
17611echo "$as_me:$LINENO: checking $ac_header presence" >&5
17612echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17613cat >conftest.$ac_ext <<_ACEOF
17614/* confdefs.h. */
17615_ACEOF
17616cat confdefs.h >>conftest.$ac_ext
17617cat >>conftest.$ac_ext <<_ACEOF
17618/* end confdefs.h. */
17619#include <$ac_header>
17620_ACEOF
17621if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17622 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17623 ac_status=$?
17624 grep -v '^ *+' conftest.er1 >conftest.err
17625 rm -f conftest.er1
17626 cat conftest.err >&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); } >/dev/null; then
17629 if test -s conftest.err; then
5d7b7554
VZ
17630 ac_cpp_err=$ac_cxx_preproc_warn_flag
17631 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17632 else
17633 ac_cpp_err=
17634 fi
17635else
17636 ac_cpp_err=yes
17637fi
17638if test -z "$ac_cpp_err"; then
17639 ac_header_preproc=yes
17640else
17641 echo "$as_me: failed program was:" >&5
17642sed 's/^/| /' conftest.$ac_ext >&5
17643
17644 ac_header_preproc=no
17645fi
17646rm -f conftest.err conftest.$ac_ext
17647echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17648echo "${ECHO_T}$ac_header_preproc" >&6
17649
17650# So? What about this header?
5d7b7554 17651case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17652 yes:no: )
a848cd7e
SC
17653 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17654echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17656echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17657 ac_header_preproc=yes
a848cd7e 17658 ;;
ac1cb8d3 17659 no:yes:* )
a848cd7e
SC
17660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17661echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17663echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17664 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17665echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17666 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17667echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17669echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17670 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17671echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17672 (
17673 cat <<\_ASBOX
ac1cb8d3
VS
17674## ----------------------------------------- ##
17675## Report this to wx-dev@lists.wxwidgets.org ##
17676## ----------------------------------------- ##
a848cd7e
SC
17677_ASBOX
17678 ) |
17679 sed "s/^/$as_me: WARNING: /" >&2
17680 ;;
17681esac
17682echo "$as_me:$LINENO: checking for $ac_header" >&5
17683echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17684if eval "test \"\${$as_ac_Header+set}\" = set"; then
17685 echo $ECHO_N "(cached) $ECHO_C" >&6
17686else
ac1cb8d3 17687 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17688fi
17689echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17690echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17691
17692fi
17693if test `eval echo '${'$as_ac_Header'}'` = yes; then
17694 cat >>confdefs.h <<_ACEOF
17695#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17696_ACEOF
17697
17698fi
17699
17700done
17701
17702
a848cd7e
SC
17703
17704for ac_header in langinfo.h
17705do
17706as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17707if eval "test \"\${$as_ac_Header+set}\" = set"; then
17708 echo "$as_me:$LINENO: checking for $ac_header" >&5
17709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17710if eval "test \"\${$as_ac_Header+set}\" = set"; then
17711 echo $ECHO_N "(cached) $ECHO_C" >&6
17712fi
17713echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17714echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17715else
17716 # Is the header compilable?
17717echo "$as_me:$LINENO: checking $ac_header usability" >&5
17718echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17719cat >conftest.$ac_ext <<_ACEOF
17720/* confdefs.h. */
17721_ACEOF
17722cat confdefs.h >>conftest.$ac_ext
17723cat >>conftest.$ac_ext <<_ACEOF
17724/* end confdefs.h. */
17725$ac_includes_default
17726#include <$ac_header>
17727_ACEOF
17728rm -f conftest.$ac_objext
17729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17730 (eval $ac_compile) 2>conftest.er1
a848cd7e 17731 ac_status=$?
ac1cb8d3
VS
17732 grep -v '^ *+' conftest.er1 >conftest.err
17733 rm -f conftest.er1
17734 cat conftest.err >&5
a848cd7e
SC
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); } &&
bb9e79c0 17737 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17739 (eval $ac_try) 2>&5
17740 ac_status=$?
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); }; } &&
17743 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17745 (eval $ac_try) 2>&5
17746 ac_status=$?
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); }; }; then
17749 ac_header_compiler=yes
17750else
17751 echo "$as_me: failed program was:" >&5
17752sed 's/^/| /' conftest.$ac_ext >&5
17753
17754ac_header_compiler=no
17755fi
ac1cb8d3 17756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17757echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17758echo "${ECHO_T}$ac_header_compiler" >&6
17759
17760# Is the header present?
17761echo "$as_me:$LINENO: checking $ac_header presence" >&5
17762echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17763cat >conftest.$ac_ext <<_ACEOF
17764/* confdefs.h. */
17765_ACEOF
17766cat confdefs.h >>conftest.$ac_ext
17767cat >>conftest.$ac_ext <<_ACEOF
17768/* end confdefs.h. */
17769#include <$ac_header>
17770_ACEOF
17771if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17773 ac_status=$?
17774 grep -v '^ *+' conftest.er1 >conftest.err
17775 rm -f conftest.er1
17776 cat conftest.err >&5
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); } >/dev/null; then
17779 if test -s conftest.err; then
5d7b7554
VZ
17780 ac_cpp_err=$ac_cxx_preproc_warn_flag
17781 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17782 else
17783 ac_cpp_err=
17784 fi
17785else
17786 ac_cpp_err=yes
17787fi
17788if test -z "$ac_cpp_err"; then
17789 ac_header_preproc=yes
17790else
17791 echo "$as_me: failed program was:" >&5
17792sed 's/^/| /' conftest.$ac_ext >&5
17793
17794 ac_header_preproc=no
17795fi
17796rm -f conftest.err conftest.$ac_ext
17797echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17798echo "${ECHO_T}$ac_header_preproc" >&6
17799
17800# So? What about this header?
5d7b7554 17801case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17802 yes:no: )
a848cd7e
SC
17803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17804echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17806echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17807 ac_header_preproc=yes
a848cd7e 17808 ;;
ac1cb8d3 17809 no:yes:* )
a848cd7e
SC
17810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17811echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17813echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17815echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17817echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17819echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17821echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17822 (
17823 cat <<\_ASBOX
ac1cb8d3
VS
17824## ----------------------------------------- ##
17825## Report this to wx-dev@lists.wxwidgets.org ##
17826## ----------------------------------------- ##
a848cd7e
SC
17827_ASBOX
17828 ) |
17829 sed "s/^/$as_me: WARNING: /" >&2
17830 ;;
17831esac
17832echo "$as_me:$LINENO: checking for $ac_header" >&5
17833echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17834if eval "test \"\${$as_ac_Header+set}\" = set"; then
17835 echo $ECHO_N "(cached) $ECHO_C" >&6
17836else
ac1cb8d3 17837 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17838fi
17839echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17840echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17841
17842fi
17843if test `eval echo '${'$as_ac_Header'}'` = yes; then
17844 cat >>confdefs.h <<_ACEOF
17845#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17846_ACEOF
17847
17848fi
17849
17850done
17851
17852
17853case "${host}" in
17854 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
17855 if test $ac_cv_header_langinfo_h = "yes" \
17856 -a \( "$wx_cv_gccversion" = "EMX2" \
17857 -o "$wx_cv_gccversion" = "EMX3" \
17858 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
17859 LIBS="$LIBS -lintl"
17860 fi
17861 ;;
17862esac
17863
bc023abb
MW
17864if test "$USE_UNIX" = 1 ; then
17865
17866for ac_header in sys/select.h
17867do
17868as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17869if eval "test \"\${$as_ac_Header+set}\" = set"; then
17870 echo "$as_me:$LINENO: checking for $ac_header" >&5
17871echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17872if eval "test \"\${$as_ac_Header+set}\" = set"; then
17873 echo $ECHO_N "(cached) $ECHO_C" >&6
17874fi
17875echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17876echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17877else
17878 # Is the header compilable?
17879echo "$as_me:$LINENO: checking $ac_header usability" >&5
17880echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17881cat >conftest.$ac_ext <<_ACEOF
17882/* confdefs.h. */
17883_ACEOF
17884cat confdefs.h >>conftest.$ac_ext
17885cat >>conftest.$ac_ext <<_ACEOF
17886/* end confdefs.h. */
17887$ac_includes_default
17888#include <$ac_header>
17889_ACEOF
17890rm -f conftest.$ac_objext
17891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17892 (eval $ac_compile) 2>conftest.er1
17893 ac_status=$?
17894 grep -v '^ *+' conftest.er1 >conftest.err
17895 rm -f conftest.er1
17896 cat conftest.err >&5
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); } &&
bb9e79c0 17899 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
bc023abb
MW
17900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17901 (eval $ac_try) 2>&5
17902 ac_status=$?
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); }; } &&
17905 { ac_try='test -s conftest.$ac_objext'
17906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17907 (eval $ac_try) 2>&5
17908 ac_status=$?
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); }; }; then
17911 ac_header_compiler=yes
17912else
17913 echo "$as_me: failed program was:" >&5
17914sed 's/^/| /' conftest.$ac_ext >&5
17915
17916ac_header_compiler=no
17917fi
17918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17919echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17920echo "${ECHO_T}$ac_header_compiler" >&6
17921
17922# Is the header present?
17923echo "$as_me:$LINENO: checking $ac_header presence" >&5
17924echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17925cat >conftest.$ac_ext <<_ACEOF
17926/* confdefs.h. */
17927_ACEOF
17928cat confdefs.h >>conftest.$ac_ext
17929cat >>conftest.$ac_ext <<_ACEOF
17930/* end confdefs.h. */
17931#include <$ac_header>
17932_ACEOF
17933if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17935 ac_status=$?
17936 grep -v '^ *+' conftest.er1 >conftest.err
17937 rm -f conftest.er1
17938 cat conftest.err >&5
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); } >/dev/null; then
17941 if test -s conftest.err; then
17942 ac_cpp_err=$ac_cxx_preproc_warn_flag
17943 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17944 else
17945 ac_cpp_err=
17946 fi
17947else
17948 ac_cpp_err=yes
17949fi
17950if test -z "$ac_cpp_err"; then
17951 ac_header_preproc=yes
17952else
17953 echo "$as_me: failed program was:" >&5
17954sed 's/^/| /' conftest.$ac_ext >&5
17955
17956 ac_header_preproc=no
17957fi
17958rm -f conftest.err conftest.$ac_ext
17959echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17960echo "${ECHO_T}$ac_header_preproc" >&6
17961
17962# So? What about this header?
17963case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17964 yes:no: )
17965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17966echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17968echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17969 ac_header_preproc=yes
17970 ;;
17971 no:yes:* )
17972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17973echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17975echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17977echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17979echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17981echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17983echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17984 (
17985 cat <<\_ASBOX
17986## ----------------------------------------- ##
17987## Report this to wx-dev@lists.wxwidgets.org ##
17988## ----------------------------------------- ##
17989_ASBOX
17990 ) |
17991 sed "s/^/$as_me: WARNING: /" >&2
17992 ;;
17993esac
17994echo "$as_me:$LINENO: checking for $ac_header" >&5
17995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17996if eval "test \"\${$as_ac_Header+set}\" = set"; then
17997 echo $ECHO_N "(cached) $ECHO_C" >&6
17998else
17999 eval "$as_ac_Header=\$ac_header_preproc"
18000fi
18001echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18002echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18003
18004fi
18005if test `eval echo '${'$as_ac_Header'}'` = yes; then
18006 cat >>confdefs.h <<_ACEOF
18007#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18008_ACEOF
18009
18010fi
18011
18012done
18013
18014fi
18015
a848cd7e
SC
18016
18017echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18018echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18019if test "${ac_cv_c_const+set}" = set; then
18020 echo $ECHO_N "(cached) $ECHO_C" >&6
18021else
18022 cat >conftest.$ac_ext <<_ACEOF
18023/* confdefs.h. */
18024_ACEOF
18025cat confdefs.h >>conftest.$ac_ext
18026cat >>conftest.$ac_ext <<_ACEOF
18027/* end confdefs.h. */
18028
18029int
18030main ()
18031{
18032/* FIXME: Include the comments suggested by Paul. */
18033#ifndef __cplusplus
18034 /* Ultrix mips cc rejects this. */
18035 typedef int charset[2];
18036 const charset x;
18037 /* SunOS 4.1.1 cc rejects this. */
18038 char const *const *ccp;
18039 char **p;
18040 /* NEC SVR4.0.2 mips cc rejects this. */
18041 struct point {int x, y;};
18042 static struct point const zero = {0,0};
18043 /* AIX XL C 1.02.0.0 rejects this.
18044 It does not let you subtract one const X* pointer from another in
18045 an arm of an if-expression whose if-part is not a constant
18046 expression */
18047 const char *g = "string";
18048 ccp = &g + (g ? g-g : 0);
18049 /* HPUX 7.0 cc rejects these. */
18050 ++ccp;
18051 p = (char**) ccp;
18052 ccp = (char const *const *) p;
18053 { /* SCO 3.2v4 cc rejects this. */
18054 char *t;
18055 char const *s = 0 ? (char *) 0 : (char const *) 0;
18056
18057 *t++ = 0;
18058 }
18059 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18060 int x[] = {25, 17};
18061 const int *foo = &x[0];
18062 ++foo;
18063 }
18064 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18065 typedef const int *iptr;
18066 iptr p = 0;
18067 ++p;
18068 }
18069 { /* AIX XL C 1.02.0.0 rejects this saying
18070 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18071 struct s { int j; const int *ap[3]; };
18072 struct s *b; b->j = 5;
18073 }
18074 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18075 const int foo = 10;
18076 }
18077#endif
18078
18079 ;
18080 return 0;
18081}
18082_ACEOF
18083rm -f conftest.$ac_objext
18084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18085 (eval $ac_compile) 2>conftest.er1
a848cd7e 18086 ac_status=$?
ac1cb8d3
VS
18087 grep -v '^ *+' conftest.er1 >conftest.err
18088 rm -f conftest.er1
18089 cat conftest.err >&5
a848cd7e
SC
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); } &&
bb9e79c0 18092 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18094 (eval $ac_try) 2>&5
18095 ac_status=$?
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); }; } &&
18098 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18100 (eval $ac_try) 2>&5
18101 ac_status=$?
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); }; }; then
18104 ac_cv_c_const=yes
18105else
18106 echo "$as_me: failed program was:" >&5
18107sed 's/^/| /' conftest.$ac_ext >&5
18108
18109ac_cv_c_const=no
18110fi
ac1cb8d3 18111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18112fi
18113echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18114echo "${ECHO_T}$ac_cv_c_const" >&6
18115if test $ac_cv_c_const = no; then
18116
18117cat >>confdefs.h <<\_ACEOF
18118#define const
18119_ACEOF
18120
18121fi
18122
18123echo "$as_me:$LINENO: checking for inline" >&5
18124echo $ECHO_N "checking for inline... $ECHO_C" >&6
18125if test "${ac_cv_c_inline+set}" = set; then
18126 echo $ECHO_N "(cached) $ECHO_C" >&6
18127else
18128 ac_cv_c_inline=no
18129for ac_kw in inline __inline__ __inline; do
18130 cat >conftest.$ac_ext <<_ACEOF
18131/* confdefs.h. */
18132_ACEOF
18133cat confdefs.h >>conftest.$ac_ext
18134cat >>conftest.$ac_ext <<_ACEOF
18135/* end confdefs.h. */
18136#ifndef __cplusplus
18137typedef int foo_t;
18138static $ac_kw foo_t static_foo () {return 0; }
18139$ac_kw foo_t foo () {return 0; }
18140#endif
18141
18142_ACEOF
18143rm -f conftest.$ac_objext
18144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18145 (eval $ac_compile) 2>conftest.er1
a848cd7e 18146 ac_status=$?
ac1cb8d3
VS
18147 grep -v '^ *+' conftest.er1 >conftest.err
18148 rm -f conftest.er1
18149 cat conftest.err >&5
a848cd7e
SC
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } &&
bb9e79c0 18152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18154 (eval $ac_try) 2>&5
18155 ac_status=$?
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); }; } &&
18158 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18160 (eval $ac_try) 2>&5
18161 ac_status=$?
18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); }; }; then
18164 ac_cv_c_inline=$ac_kw; break
18165else
18166 echo "$as_me: failed program was:" >&5
18167sed 's/^/| /' conftest.$ac_ext >&5
18168
18169fi
ac1cb8d3 18170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18171done
18172
18173fi
18174echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18175echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
18176
18177
a848cd7e
SC
18178case $ac_cv_c_inline in
18179 inline | yes) ;;
ac1cb8d3
VS
18180 *)
18181 case $ac_cv_c_inline in
18182 no) ac_val=;;
18183 *) ac_val=$ac_cv_c_inline;;
18184 esac
18185 cat >>confdefs.h <<_ACEOF
18186#ifndef __cplusplus
18187#define inline $ac_val
18188#endif
de59c161 18189_ACEOF
ac1cb8d3 18190 ;;
a848cd7e
SC
18191esac
18192
18193
18194echo "$as_me:$LINENO: checking for char" >&5
18195echo $ECHO_N "checking for char... $ECHO_C" >&6
18196if test "${ac_cv_type_char+set}" = set; then
18197 echo $ECHO_N "(cached) $ECHO_C" >&6
18198else
18199 cat >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{
18209if ((char *) 0)
18210 return 0;
18211if (sizeof (char))
18212 return 0;
18213 ;
18214 return 0;
18215}
18216_ACEOF
18217rm -f conftest.$ac_objext
18218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18219 (eval $ac_compile) 2>conftest.er1
a848cd7e 18220 ac_status=$?
ac1cb8d3
VS
18221 grep -v '^ *+' conftest.er1 >conftest.err
18222 rm -f conftest.er1
18223 cat conftest.err >&5
a848cd7e
SC
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); } &&
bb9e79c0 18226 { ac_try='test -z "$ac_cxx_werror_flag" || 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_cv_type_char=yes
18239else
18240 echo "$as_me: failed program was:" >&5
18241sed 's/^/| /' conftest.$ac_ext >&5
18242
18243ac_cv_type_char=no
18244fi
ac1cb8d3 18245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18246fi
18247echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
18248echo "${ECHO_T}$ac_cv_type_char" >&6
18249
18250echo "$as_me:$LINENO: checking size of char" >&5
18251echo $ECHO_N "checking size of char... $ECHO_C" >&6
18252if test "${ac_cv_sizeof_char+set}" = set; then
18253 echo $ECHO_N "(cached) $ECHO_C" >&6
18254else
18255 if test "$ac_cv_type_char" = yes; then
18256 # The cast to unsigned long works around a bug in the HP C Compiler
18257 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18258 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18259 # This bug is HP SR number 8606223364.
18260 if test "$cross_compiling" = yes; then
18261 # Depending upon the size, compute the lo and hi bounds.
18262cat >conftest.$ac_ext <<_ACEOF
18263/* confdefs.h. */
18264_ACEOF
18265cat confdefs.h >>conftest.$ac_ext
18266cat >>conftest.$ac_ext <<_ACEOF
18267/* end confdefs.h. */
18268$ac_includes_default
18269int
18270main ()
18271{
18272static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
18273test_array [0] = 0
18274
18275 ;
18276 return 0;
18277}
18278_ACEOF
18279rm -f conftest.$ac_objext
18280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18281 (eval $ac_compile) 2>conftest.er1
a848cd7e 18282 ac_status=$?
ac1cb8d3
VS
18283 grep -v '^ *+' conftest.er1 >conftest.err
18284 rm -f conftest.er1
18285 cat conftest.err >&5
a848cd7e
SC
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); } &&
bb9e79c0 18288 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18290 (eval $ac_try) 2>&5
18291 ac_status=$?
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); }; } &&
18294 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18296 (eval $ac_try) 2>&5
18297 ac_status=$?
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; }; then
18300 ac_lo=0 ac_mid=0
18301 while :; do
18302 cat >conftest.$ac_ext <<_ACEOF
18303/* confdefs.h. */
18304_ACEOF
18305cat confdefs.h >>conftest.$ac_ext
18306cat >>conftest.$ac_ext <<_ACEOF
18307/* end confdefs.h. */
18308$ac_includes_default
18309int
18310main ()
18311{
18312static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18313test_array [0] = 0
18314
18315 ;
18316 return 0;
18317}
18318_ACEOF
18319rm -f conftest.$ac_objext
18320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18321 (eval $ac_compile) 2>conftest.er1
a848cd7e 18322 ac_status=$?
ac1cb8d3
VS
18323 grep -v '^ *+' conftest.er1 >conftest.err
18324 rm -f conftest.er1
18325 cat conftest.err >&5
a848cd7e
SC
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); } &&
bb9e79c0 18328 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18330 (eval $ac_try) 2>&5
18331 ac_status=$?
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); }; } &&
18334 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336 (eval $ac_try) 2>&5
18337 ac_status=$?
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; }; then
18340 ac_hi=$ac_mid; break
18341else
18342 echo "$as_me: failed program was:" >&5
18343sed 's/^/| /' conftest.$ac_ext >&5
18344
18345ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18346 if test $ac_lo -le $ac_mid; then
18347 ac_lo= ac_hi=
18348 break
18349 fi
18350 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18351fi
ac1cb8d3 18352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18353 done
18354else
18355 echo "$as_me: failed program was:" >&5
18356sed 's/^/| /' conftest.$ac_ext >&5
18357
18358cat >conftest.$ac_ext <<_ACEOF
18359/* confdefs.h. */
18360_ACEOF
18361cat confdefs.h >>conftest.$ac_ext
18362cat >>conftest.$ac_ext <<_ACEOF
18363/* end confdefs.h. */
18364$ac_includes_default
18365int
18366main ()
18367{
18368static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
18369test_array [0] = 0
18370
18371 ;
18372 return 0;
18373}
18374_ACEOF
18375rm -f conftest.$ac_objext
18376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18377 (eval $ac_compile) 2>conftest.er1
a848cd7e 18378 ac_status=$?
ac1cb8d3
VS
18379 grep -v '^ *+' conftest.er1 >conftest.err
18380 rm -f conftest.er1
18381 cat conftest.err >&5
a848cd7e
SC
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); } &&
bb9e79c0 18384 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386 (eval $ac_try) 2>&5
18387 ac_status=$?
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); }; } &&
18390 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18392 (eval $ac_try) 2>&5
18393 ac_status=$?
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); }; }; then
18396 ac_hi=-1 ac_mid=-1
18397 while :; do
18398 cat >conftest.$ac_ext <<_ACEOF
18399/* confdefs.h. */
18400_ACEOF
18401cat confdefs.h >>conftest.$ac_ext
18402cat >>conftest.$ac_ext <<_ACEOF
18403/* end confdefs.h. */
18404$ac_includes_default
18405int
18406main ()
18407{
18408static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
18409test_array [0] = 0
18410
18411 ;
18412 return 0;
18413}
18414_ACEOF
18415rm -f conftest.$ac_objext
18416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18417 (eval $ac_compile) 2>conftest.er1
a848cd7e 18418 ac_status=$?
ac1cb8d3
VS
18419 grep -v '^ *+' conftest.er1 >conftest.err
18420 rm -f conftest.er1
18421 cat conftest.err >&5
a848cd7e
SC
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); } &&
bb9e79c0 18424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18426 (eval $ac_try) 2>&5
18427 ac_status=$?
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; } &&
18430 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
18436 ac_lo=$ac_mid; break
18437else
18438 echo "$as_me: failed program was:" >&5
18439sed 's/^/| /' conftest.$ac_ext >&5
18440
18441ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18442 if test $ac_mid -le $ac_hi; then
18443 ac_lo= ac_hi=
18444 break
18445 fi
18446 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18447fi
ac1cb8d3 18448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18449 done
18450else
18451 echo "$as_me: failed program was:" >&5
18452sed 's/^/| /' conftest.$ac_ext >&5
18453
18454ac_lo= ac_hi=
18455fi
ac1cb8d3 18456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18457fi
ac1cb8d3 18458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18459# Binary search between lo and hi bounds.
18460while test "x$ac_lo" != "x$ac_hi"; do
18461 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18462 cat >conftest.$ac_ext <<_ACEOF
18463/* confdefs.h. */
18464_ACEOF
18465cat confdefs.h >>conftest.$ac_ext
18466cat >>conftest.$ac_ext <<_ACEOF
18467/* end confdefs.h. */
18468$ac_includes_default
18469int
18470main ()
18471{
18472static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18473test_array [0] = 0
18474
18475 ;
18476 return 0;
18477}
18478_ACEOF
18479rm -f conftest.$ac_objext
18480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18481 (eval $ac_compile) 2>conftest.er1
a848cd7e 18482 ac_status=$?
ac1cb8d3
VS
18483 grep -v '^ *+' conftest.er1 >conftest.err
18484 rm -f conftest.er1
18485 cat conftest.err >&5
a848cd7e
SC
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); } &&
bb9e79c0 18488 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18490 (eval $ac_try) 2>&5
18491 ac_status=$?
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); }; } &&
18494 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18496 (eval $ac_try) 2>&5
18497 ac_status=$?
18498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499 (exit $ac_status); }; }; then
18500 ac_hi=$ac_mid
18501else
18502 echo "$as_me: failed program was:" >&5
18503sed 's/^/| /' conftest.$ac_ext >&5
18504
18505ac_lo=`expr '(' $ac_mid ')' + 1`
18506fi
ac1cb8d3 18507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18508done
18509case $ac_lo in
18510?*) ac_cv_sizeof_char=$ac_lo;;
18511'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18512See \`config.log' for more details." >&5
18513echo "$as_me: error: cannot compute sizeof (char), 77
18514See \`config.log' for more details." >&2;}
18515 { (exit 1); exit 1; }; } ;;
18516esac
18517else
18518 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
18519 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18520echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18521 { (exit 1); exit 1; }; }
18522else
18523 cat >conftest.$ac_ext <<_ACEOF
18524/* confdefs.h. */
18525_ACEOF
18526cat confdefs.h >>conftest.$ac_ext
18527cat >>conftest.$ac_ext <<_ACEOF
18528/* end confdefs.h. */
18529$ac_includes_default
18530long longval () { return (long) (sizeof (char)); }
18531unsigned long ulongval () { return (long) (sizeof (char)); }
18532#include <stdio.h>
18533#include <stdlib.h>
18534int
18535main ()
18536{
18537
18538 FILE *f = fopen ("conftest.val", "w");
18539 if (! f)
18540 exit (1);
18541 if (((long) (sizeof (char))) < 0)
18542 {
18543 long i = longval ();
18544 if (i != ((long) (sizeof (char))))
18545 exit (1);
18546 fprintf (f, "%ld\n", i);
18547 }
18548 else
18549 {
18550 unsigned long i = ulongval ();
18551 if (i != ((long) (sizeof (char))))
18552 exit (1);
18553 fprintf (f, "%lu\n", i);
18554 }
18555 exit (ferror (f) || fclose (f) != 0);
18556
18557 ;
18558 return 0;
18559}
18560_ACEOF
18561rm -f conftest$ac_exeext
18562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18563 (eval $ac_link) 2>&5
18564 ac_status=$?
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18568 (eval $ac_try) 2>&5
18569 ac_status=$?
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; }; then
18572 ac_cv_sizeof_char=`cat conftest.val`
18573else
18574 echo "$as_me: program exited with status $ac_status" >&5
18575echo "$as_me: failed program was:" >&5
18576sed 's/^/| /' conftest.$ac_ext >&5
18577
18578( exit $ac_status )
18579{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18580See \`config.log' for more details." >&5
18581echo "$as_me: error: cannot compute sizeof (char), 77
18582See \`config.log' for more details." >&2;}
18583 { (exit 1); exit 1; }; }
18584fi
ac1cb8d3 18585rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18586fi
18587fi
18588rm -f conftest.val
18589else
18590 ac_cv_sizeof_char=0
18591fi
18592fi
18593echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18594echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18595cat >>confdefs.h <<_ACEOF
18596#define SIZEOF_CHAR $ac_cv_sizeof_char
18597_ACEOF
18598
18599
18600echo "$as_me:$LINENO: checking for short" >&5
18601echo $ECHO_N "checking for short... $ECHO_C" >&6
18602if test "${ac_cv_type_short+set}" = set; then
18603 echo $ECHO_N "(cached) $ECHO_C" >&6
18604else
18605 cat >conftest.$ac_ext <<_ACEOF
18606/* confdefs.h. */
18607_ACEOF
18608cat confdefs.h >>conftest.$ac_ext
18609cat >>conftest.$ac_ext <<_ACEOF
18610/* end confdefs.h. */
18611$ac_includes_default
18612int
18613main ()
18614{
18615if ((short *) 0)
18616 return 0;
18617if (sizeof (short))
18618 return 0;
18619 ;
18620 return 0;
18621}
18622_ACEOF
18623rm -f conftest.$ac_objext
18624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18625 (eval $ac_compile) 2>conftest.er1
a848cd7e 18626 ac_status=$?
ac1cb8d3
VS
18627 grep -v '^ *+' conftest.er1 >conftest.err
18628 rm -f conftest.er1
18629 cat conftest.err >&5
a848cd7e
SC
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); } &&
bb9e79c0 18632 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18634 (eval $ac_try) 2>&5
18635 ac_status=$?
18636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); }; } &&
18638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18640 (eval $ac_try) 2>&5
18641 ac_status=$?
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); }; }; then
18644 ac_cv_type_short=yes
18645else
18646 echo "$as_me: failed program was:" >&5
18647sed 's/^/| /' conftest.$ac_ext >&5
18648
18649ac_cv_type_short=no
18650fi
ac1cb8d3 18651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18652fi
18653echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18654echo "${ECHO_T}$ac_cv_type_short" >&6
18655
18656echo "$as_me:$LINENO: checking size of short" >&5
18657echo $ECHO_N "checking size of short... $ECHO_C" >&6
18658if test "${ac_cv_sizeof_short+set}" = set; then
18659 echo $ECHO_N "(cached) $ECHO_C" >&6
18660else
18661 if test "$ac_cv_type_short" = yes; then
18662 # The cast to unsigned long works around a bug in the HP C Compiler
18663 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18664 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18665 # This bug is HP SR number 8606223364.
18666 if test "$cross_compiling" = yes; then
18667 # Depending upon the size, compute the lo and hi bounds.
18668cat >conftest.$ac_ext <<_ACEOF
18669/* confdefs.h. */
18670_ACEOF
18671cat confdefs.h >>conftest.$ac_ext
18672cat >>conftest.$ac_ext <<_ACEOF
18673/* end confdefs.h. */
18674$ac_includes_default
18675int
18676main ()
18677{
18678static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18679test_array [0] = 0
18680
18681 ;
18682 return 0;
18683}
18684_ACEOF
18685rm -f conftest.$ac_objext
18686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18687 (eval $ac_compile) 2>conftest.er1
a848cd7e 18688 ac_status=$?
ac1cb8d3
VS
18689 grep -v '^ *+' conftest.er1 >conftest.err
18690 rm -f conftest.er1
18691 cat conftest.err >&5
a848cd7e
SC
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); } &&
bb9e79c0 18694 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18696 (eval $ac_try) 2>&5
18697 ac_status=$?
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); }; } &&
18700 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18702 (eval $ac_try) 2>&5
18703 ac_status=$?
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); }; }; then
18706 ac_lo=0 ac_mid=0
18707 while :; do
18708 cat >conftest.$ac_ext <<_ACEOF
18709/* confdefs.h. */
18710_ACEOF
18711cat confdefs.h >>conftest.$ac_ext
18712cat >>conftest.$ac_ext <<_ACEOF
18713/* end confdefs.h. */
18714$ac_includes_default
18715int
18716main ()
18717{
18718static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18719test_array [0] = 0
18720
18721 ;
18722 return 0;
18723}
18724_ACEOF
18725rm -f conftest.$ac_objext
18726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18727 (eval $ac_compile) 2>conftest.er1
a848cd7e 18728 ac_status=$?
ac1cb8d3
VS
18729 grep -v '^ *+' conftest.er1 >conftest.err
18730 rm -f conftest.er1
18731 cat conftest.err >&5
a848cd7e
SC
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); } &&
bb9e79c0 18734 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18736 (eval $ac_try) 2>&5
18737 ac_status=$?
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); }; } &&
18740 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18742 (eval $ac_try) 2>&5
18743 ac_status=$?
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); }; }; then
18746 ac_hi=$ac_mid; break
18747else
18748 echo "$as_me: failed program was:" >&5
18749sed 's/^/| /' conftest.$ac_ext >&5
18750
18751ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18752 if test $ac_lo -le $ac_mid; then
18753 ac_lo= ac_hi=
18754 break
18755 fi
18756 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18757fi
ac1cb8d3 18758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18759 done
18760else
18761 echo "$as_me: failed program was:" >&5
18762sed 's/^/| /' conftest.$ac_ext >&5
18763
18764cat >conftest.$ac_ext <<_ACEOF
18765/* confdefs.h. */
18766_ACEOF
18767cat confdefs.h >>conftest.$ac_ext
18768cat >>conftest.$ac_ext <<_ACEOF
18769/* end confdefs.h. */
18770$ac_includes_default
18771int
18772main ()
18773{
18774static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18775test_array [0] = 0
18776
18777 ;
18778 return 0;
18779}
18780_ACEOF
18781rm -f conftest.$ac_objext
18782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18783 (eval $ac_compile) 2>conftest.er1
a848cd7e 18784 ac_status=$?
ac1cb8d3
VS
18785 grep -v '^ *+' conftest.er1 >conftest.err
18786 rm -f conftest.er1
18787 cat conftest.err >&5
a848cd7e
SC
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); } &&
bb9e79c0 18790 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18792 (eval $ac_try) 2>&5
18793 ac_status=$?
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); }; } &&
18796 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18798 (eval $ac_try) 2>&5
18799 ac_status=$?
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; }; then
18802 ac_hi=-1 ac_mid=-1
18803 while :; do
18804 cat >conftest.$ac_ext <<_ACEOF
18805/* confdefs.h. */
18806_ACEOF
18807cat confdefs.h >>conftest.$ac_ext
18808cat >>conftest.$ac_ext <<_ACEOF
18809/* end confdefs.h. */
18810$ac_includes_default
18811int
18812main ()
18813{
18814static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18815test_array [0] = 0
18816
18817 ;
18818 return 0;
18819}
18820_ACEOF
18821rm -f conftest.$ac_objext
18822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18823 (eval $ac_compile) 2>conftest.er1
a848cd7e 18824 ac_status=$?
ac1cb8d3
VS
18825 grep -v '^ *+' conftest.er1 >conftest.err
18826 rm -f conftest.er1
18827 cat conftest.err >&5
a848cd7e
SC
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); } &&
bb9e79c0 18830 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18832 (eval $ac_try) 2>&5
18833 ac_status=$?
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); }; } &&
18836 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18838 (eval $ac_try) 2>&5
18839 ac_status=$?
18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); }; }; then
18842 ac_lo=$ac_mid; break
18843else
18844 echo "$as_me: failed program was:" >&5
18845sed 's/^/| /' conftest.$ac_ext >&5
18846
18847ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18848 if test $ac_mid -le $ac_hi; then
18849 ac_lo= ac_hi=
18850 break
18851 fi
18852 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18853fi
ac1cb8d3 18854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18855 done
18856else
18857 echo "$as_me: failed program was:" >&5
18858sed 's/^/| /' conftest.$ac_ext >&5
18859
18860ac_lo= ac_hi=
18861fi
ac1cb8d3 18862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18863fi
ac1cb8d3 18864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18865# Binary search between lo and hi bounds.
18866while test "x$ac_lo" != "x$ac_hi"; do
18867 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18868 cat >conftest.$ac_ext <<_ACEOF
18869/* confdefs.h. */
18870_ACEOF
18871cat confdefs.h >>conftest.$ac_ext
18872cat >>conftest.$ac_ext <<_ACEOF
18873/* end confdefs.h. */
18874$ac_includes_default
18875int
18876main ()
18877{
18878static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18879test_array [0] = 0
18880
18881 ;
18882 return 0;
18883}
18884_ACEOF
18885rm -f conftest.$ac_objext
18886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18887 (eval $ac_compile) 2>conftest.er1
a848cd7e 18888 ac_status=$?
ac1cb8d3
VS
18889 grep -v '^ *+' conftest.er1 >conftest.err
18890 rm -f conftest.er1
18891 cat conftest.err >&5
a848cd7e
SC
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); } &&
bb9e79c0 18894 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18896 (eval $ac_try) 2>&5
18897 ac_status=$?
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); }; } &&
18900 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18902 (eval $ac_try) 2>&5
18903 ac_status=$?
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); }; }; then
18906 ac_hi=$ac_mid
18907else
18908 echo "$as_me: failed program was:" >&5
18909sed 's/^/| /' conftest.$ac_ext >&5
18910
18911ac_lo=`expr '(' $ac_mid ')' + 1`
18912fi
ac1cb8d3 18913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18914done
18915case $ac_lo in
18916?*) ac_cv_sizeof_short=$ac_lo;;
18917'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18918See \`config.log' for more details." >&5
18919echo "$as_me: error: cannot compute sizeof (short), 77
18920See \`config.log' for more details." >&2;}
18921 { (exit 1); exit 1; }; } ;;
18922esac
18923else
18924 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
18925 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18926echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18927 { (exit 1); exit 1; }; }
18928else
18929 cat >conftest.$ac_ext <<_ACEOF
18930/* confdefs.h. */
18931_ACEOF
18932cat confdefs.h >>conftest.$ac_ext
18933cat >>conftest.$ac_ext <<_ACEOF
18934/* end confdefs.h. */
18935$ac_includes_default
18936long longval () { return (long) (sizeof (short)); }
18937unsigned long ulongval () { return (long) (sizeof (short)); }
18938#include <stdio.h>
18939#include <stdlib.h>
18940int
18941main ()
18942{
18943
18944 FILE *f = fopen ("conftest.val", "w");
18945 if (! f)
18946 exit (1);
18947 if (((long) (sizeof (short))) < 0)
18948 {
18949 long i = longval ();
18950 if (i != ((long) (sizeof (short))))
18951 exit (1);
18952 fprintf (f, "%ld\n", i);
18953 }
18954 else
18955 {
18956 unsigned long i = ulongval ();
18957 if (i != ((long) (sizeof (short))))
18958 exit (1);
18959 fprintf (f, "%lu\n", i);
18960 }
18961 exit (ferror (f) || fclose (f) != 0);
18962
18963 ;
18964 return 0;
18965}
18966_ACEOF
18967rm -f conftest$ac_exeext
18968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18969 (eval $ac_link) 2>&5
18970 ac_status=$?
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18974 (eval $ac_try) 2>&5
18975 ac_status=$?
18976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); }; }; then
18978 ac_cv_sizeof_short=`cat conftest.val`
18979else
18980 echo "$as_me: program exited with status $ac_status" >&5
18981echo "$as_me: failed program was:" >&5
18982sed 's/^/| /' conftest.$ac_ext >&5
18983
18984( exit $ac_status )
18985{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18986See \`config.log' for more details." >&5
18987echo "$as_me: error: cannot compute sizeof (short), 77
18988See \`config.log' for more details." >&2;}
18989 { (exit 1); exit 1; }; }
18990fi
ac1cb8d3 18991rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18992fi
18993fi
18994rm -f conftest.val
18995else
18996 ac_cv_sizeof_short=0
18997fi
18998fi
18999echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
19000echo "${ECHO_T}$ac_cv_sizeof_short" >&6
19001cat >>confdefs.h <<_ACEOF
19002#define SIZEOF_SHORT $ac_cv_sizeof_short
19003_ACEOF
19004
19005
19006echo "$as_me:$LINENO: checking for void *" >&5
19007echo $ECHO_N "checking for void *... $ECHO_C" >&6
19008if test "${ac_cv_type_void_p+set}" = set; then
19009 echo $ECHO_N "(cached) $ECHO_C" >&6
19010else
19011 cat >conftest.$ac_ext <<_ACEOF
19012/* confdefs.h. */
19013_ACEOF
19014cat confdefs.h >>conftest.$ac_ext
19015cat >>conftest.$ac_ext <<_ACEOF
19016/* end confdefs.h. */
19017$ac_includes_default
19018int
19019main ()
19020{
19021if ((void * *) 0)
19022 return 0;
19023if (sizeof (void *))
19024 return 0;
19025 ;
19026 return 0;
19027}
19028_ACEOF
19029rm -f conftest.$ac_objext
19030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19031 (eval $ac_compile) 2>conftest.er1
a848cd7e 19032 ac_status=$?
ac1cb8d3
VS
19033 grep -v '^ *+' conftest.er1 >conftest.err
19034 rm -f conftest.er1
19035 cat conftest.err >&5
a848cd7e
SC
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); } &&
bb9e79c0 19038 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19040 (eval $ac_try) 2>&5
19041 ac_status=$?
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); }; } &&
19044 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19046 (eval $ac_try) 2>&5
19047 ac_status=$?
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); }; }; then
19050 ac_cv_type_void_p=yes
19051else
19052 echo "$as_me: failed program was:" >&5
19053sed 's/^/| /' conftest.$ac_ext >&5
19054
19055ac_cv_type_void_p=no
19056fi
ac1cb8d3 19057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19058fi
19059echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
19060echo "${ECHO_T}$ac_cv_type_void_p" >&6
19061
19062echo "$as_me:$LINENO: checking size of void *" >&5
19063echo $ECHO_N "checking size of void *... $ECHO_C" >&6
19064if test "${ac_cv_sizeof_void_p+set}" = set; then
19065 echo $ECHO_N "(cached) $ECHO_C" >&6
19066else
19067 if test "$ac_cv_type_void_p" = yes; then
19068 # The cast to unsigned long works around a bug in the HP C Compiler
19069 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19070 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19071 # This bug is HP SR number 8606223364.
19072 if test "$cross_compiling" = yes; then
19073 # Depending upon the size, compute the lo and hi bounds.
19074cat >conftest.$ac_ext <<_ACEOF
19075/* confdefs.h. */
19076_ACEOF
19077cat confdefs.h >>conftest.$ac_ext
19078cat >>conftest.$ac_ext <<_ACEOF
19079/* end confdefs.h. */
19080$ac_includes_default
19081int
19082main ()
19083{
19084static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
19085test_array [0] = 0
19086
19087 ;
19088 return 0;
19089}
19090_ACEOF
19091rm -f conftest.$ac_objext
19092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19093 (eval $ac_compile) 2>conftest.er1
a848cd7e 19094 ac_status=$?
ac1cb8d3
VS
19095 grep -v '^ *+' conftest.er1 >conftest.err
19096 rm -f conftest.er1
19097 cat conftest.err >&5
a848cd7e
SC
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); } &&
bb9e79c0 19100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19102 (eval $ac_try) 2>&5
19103 ac_status=$?
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; } &&
19106 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19108 (eval $ac_try) 2>&5
19109 ac_status=$?
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); }; }; then
19112 ac_lo=0 ac_mid=0
19113 while :; do
19114 cat >conftest.$ac_ext <<_ACEOF
19115/* confdefs.h. */
19116_ACEOF
19117cat confdefs.h >>conftest.$ac_ext
19118cat >>conftest.$ac_ext <<_ACEOF
19119/* end confdefs.h. */
19120$ac_includes_default
19121int
19122main ()
19123{
19124static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
19125test_array [0] = 0
19126
19127 ;
19128 return 0;
19129}
19130_ACEOF
19131rm -f conftest.$ac_objext
19132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19133 (eval $ac_compile) 2>conftest.er1
a848cd7e 19134 ac_status=$?
ac1cb8d3
VS
19135 grep -v '^ *+' conftest.er1 >conftest.err
19136 rm -f conftest.er1
19137 cat conftest.err >&5
a848cd7e
SC
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } &&
bb9e79c0 19140 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19142 (eval $ac_try) 2>&5
19143 ac_status=$?
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); }; } &&
19146 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19148 (eval $ac_try) 2>&5
19149 ac_status=$?
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); }; }; then
19152 ac_hi=$ac_mid; break
19153else
19154 echo "$as_me: failed program was:" >&5
19155sed 's/^/| /' conftest.$ac_ext >&5
19156
19157ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19158 if test $ac_lo -le $ac_mid; then
19159 ac_lo= ac_hi=
19160 break
19161 fi
19162 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19163fi
ac1cb8d3 19164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19165 done
19166else
19167 echo "$as_me: failed program was:" >&5
19168sed 's/^/| /' conftest.$ac_ext >&5
19169
19170cat >conftest.$ac_ext <<_ACEOF
19171/* confdefs.h. */
19172_ACEOF
19173cat confdefs.h >>conftest.$ac_ext
19174cat >>conftest.$ac_ext <<_ACEOF
19175/* end confdefs.h. */
19176$ac_includes_default
19177int
19178main ()
19179{
19180static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
19181test_array [0] = 0
19182
19183 ;
19184 return 0;
19185}
19186_ACEOF
19187rm -f conftest.$ac_objext
19188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19189 (eval $ac_compile) 2>conftest.er1
a848cd7e 19190 ac_status=$?
ac1cb8d3
VS
19191 grep -v '^ *+' conftest.er1 >conftest.err
19192 rm -f conftest.er1
19193 cat conftest.err >&5
a848cd7e
SC
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); } &&
bb9e79c0 19196 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19198 (eval $ac_try) 2>&5
19199 ac_status=$?
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); }; } &&
19202 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19204 (eval $ac_try) 2>&5
19205 ac_status=$?
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); }; }; then
19208 ac_hi=-1 ac_mid=-1
19209 while :; do
19210 cat >conftest.$ac_ext <<_ACEOF
19211/* confdefs.h. */
19212_ACEOF
19213cat confdefs.h >>conftest.$ac_ext
19214cat >>conftest.$ac_ext <<_ACEOF
19215/* end confdefs.h. */
19216$ac_includes_default
19217int
19218main ()
19219{
19220static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
19221test_array [0] = 0
19222
19223 ;
19224 return 0;
19225}
19226_ACEOF
19227rm -f conftest.$ac_objext
19228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19229 (eval $ac_compile) 2>conftest.er1
a848cd7e 19230 ac_status=$?
ac1cb8d3
VS
19231 grep -v '^ *+' conftest.er1 >conftest.err
19232 rm -f conftest.er1
19233 cat conftest.err >&5
a848cd7e
SC
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); } &&
bb9e79c0 19236 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238 (eval $ac_try) 2>&5
19239 ac_status=$?
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); }; } &&
19242 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244 (eval $ac_try) 2>&5
19245 ac_status=$?
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); }; }; then
19248 ac_lo=$ac_mid; break
19249else
19250 echo "$as_me: failed program was:" >&5
19251sed 's/^/| /' conftest.$ac_ext >&5
19252
19253ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19254 if test $ac_mid -le $ac_hi; then
19255 ac_lo= ac_hi=
19256 break
19257 fi
19258 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19259fi
ac1cb8d3 19260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19261 done
19262else
19263 echo "$as_me: failed program was:" >&5
19264sed 's/^/| /' conftest.$ac_ext >&5
19265
19266ac_lo= ac_hi=
19267fi
ac1cb8d3 19268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19269fi
ac1cb8d3 19270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19271# Binary search between lo and hi bounds.
19272while test "x$ac_lo" != "x$ac_hi"; do
19273 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19274 cat >conftest.$ac_ext <<_ACEOF
19275/* confdefs.h. */
19276_ACEOF
19277cat confdefs.h >>conftest.$ac_ext
19278cat >>conftest.$ac_ext <<_ACEOF
19279/* end confdefs.h. */
19280$ac_includes_default
19281int
19282main ()
19283{
19284static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
19285test_array [0] = 0
19286
19287 ;
19288 return 0;
19289}
19290_ACEOF
19291rm -f conftest.$ac_objext
19292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19293 (eval $ac_compile) 2>conftest.er1
a848cd7e 19294 ac_status=$?
ac1cb8d3
VS
19295 grep -v '^ *+' conftest.er1 >conftest.err
19296 rm -f conftest.er1
19297 cat conftest.err >&5
a848cd7e
SC
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); } &&
bb9e79c0 19300 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302 (eval $ac_try) 2>&5
19303 ac_status=$?
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; } &&
19306 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308 (eval $ac_try) 2>&5
19309 ac_status=$?
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; }; then
19312 ac_hi=$ac_mid
19313else
19314 echo "$as_me: failed program was:" >&5
19315sed 's/^/| /' conftest.$ac_ext >&5
19316
19317ac_lo=`expr '(' $ac_mid ')' + 1`
19318fi
ac1cb8d3 19319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19320done
19321case $ac_lo in
19322?*) ac_cv_sizeof_void_p=$ac_lo;;
19323'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19324See \`config.log' for more details." >&5
19325echo "$as_me: error: cannot compute sizeof (void *), 77
19326See \`config.log' for more details." >&2;}
19327 { (exit 1); exit 1; }; } ;;
19328esac
19329else
19330 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
19331 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19332echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19333 { (exit 1); exit 1; }; }
19334else
19335 cat >conftest.$ac_ext <<_ACEOF
19336/* confdefs.h. */
19337_ACEOF
19338cat confdefs.h >>conftest.$ac_ext
19339cat >>conftest.$ac_ext <<_ACEOF
19340/* end confdefs.h. */
19341$ac_includes_default
19342long longval () { return (long) (sizeof (void *)); }
19343unsigned long ulongval () { return (long) (sizeof (void *)); }
19344#include <stdio.h>
19345#include <stdlib.h>
19346int
19347main ()
19348{
19349
19350 FILE *f = fopen ("conftest.val", "w");
19351 if (! f)
19352 exit (1);
19353 if (((long) (sizeof (void *))) < 0)
19354 {
19355 long i = longval ();
19356 if (i != ((long) (sizeof (void *))))
19357 exit (1);
19358 fprintf (f, "%ld\n", i);
19359 }
19360 else
19361 {
19362 unsigned long i = ulongval ();
19363 if (i != ((long) (sizeof (void *))))
19364 exit (1);
19365 fprintf (f, "%lu\n", i);
19366 }
19367 exit (ferror (f) || fclose (f) != 0);
19368
19369 ;
19370 return 0;
19371}
19372_ACEOF
19373rm -f conftest$ac_exeext
19374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19375 (eval $ac_link) 2>&5
19376 ac_status=$?
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19380 (eval $ac_try) 2>&5
19381 ac_status=$?
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); }; }; then
19384 ac_cv_sizeof_void_p=`cat conftest.val`
19385else
19386 echo "$as_me: program exited with status $ac_status" >&5
19387echo "$as_me: failed program was:" >&5
19388sed 's/^/| /' conftest.$ac_ext >&5
19389
19390( exit $ac_status )
19391{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19392See \`config.log' for more details." >&5
19393echo "$as_me: error: cannot compute sizeof (void *), 77
19394See \`config.log' for more details." >&2;}
19395 { (exit 1); exit 1; }; }
19396fi
ac1cb8d3 19397rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19398fi
19399fi
19400rm -f conftest.val
19401else
19402 ac_cv_sizeof_void_p=0
19403fi
19404fi
19405echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
19406echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
19407cat >>confdefs.h <<_ACEOF
19408#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
19409_ACEOF
19410
19411
19412echo "$as_me:$LINENO: checking for int" >&5
19413echo $ECHO_N "checking for int... $ECHO_C" >&6
19414if test "${ac_cv_type_int+set}" = set; then
19415 echo $ECHO_N "(cached) $ECHO_C" >&6
19416else
19417 cat >conftest.$ac_ext <<_ACEOF
19418/* confdefs.h. */
19419_ACEOF
19420cat confdefs.h >>conftest.$ac_ext
19421cat >>conftest.$ac_ext <<_ACEOF
19422/* end confdefs.h. */
19423$ac_includes_default
19424int
19425main ()
19426{
19427if ((int *) 0)
19428 return 0;
19429if (sizeof (int))
19430 return 0;
19431 ;
19432 return 0;
19433}
19434_ACEOF
19435rm -f conftest.$ac_objext
19436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19437 (eval $ac_compile) 2>conftest.er1
a848cd7e 19438 ac_status=$?
ac1cb8d3
VS
19439 grep -v '^ *+' conftest.er1 >conftest.err
19440 rm -f conftest.er1
19441 cat conftest.err >&5
a848cd7e
SC
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); } &&
bb9e79c0 19444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19446 (eval $ac_try) 2>&5
19447 ac_status=$?
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); }; } &&
19450 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19452 (eval $ac_try) 2>&5
19453 ac_status=$?
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); }; }; then
19456 ac_cv_type_int=yes
19457else
19458 echo "$as_me: failed program was:" >&5
19459sed 's/^/| /' conftest.$ac_ext >&5
19460
19461ac_cv_type_int=no
19462fi
ac1cb8d3 19463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19464fi
19465echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19466echo "${ECHO_T}$ac_cv_type_int" >&6
19467
19468echo "$as_me:$LINENO: checking size of int" >&5
19469echo $ECHO_N "checking size of int... $ECHO_C" >&6
19470if test "${ac_cv_sizeof_int+set}" = set; then
19471 echo $ECHO_N "(cached) $ECHO_C" >&6
19472else
19473 if test "$ac_cv_type_int" = yes; then
19474 # The cast to unsigned long works around a bug in the HP C Compiler
19475 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19476 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19477 # This bug is HP SR number 8606223364.
19478 if test "$cross_compiling" = yes; then
19479 # Depending upon the size, compute the lo and hi bounds.
19480cat >conftest.$ac_ext <<_ACEOF
19481/* confdefs.h. */
19482_ACEOF
19483cat confdefs.h >>conftest.$ac_ext
19484cat >>conftest.$ac_ext <<_ACEOF
19485/* end confdefs.h. */
19486$ac_includes_default
19487int
19488main ()
19489{
19490static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
19491test_array [0] = 0
19492
19493 ;
19494 return 0;
19495}
19496_ACEOF
19497rm -f conftest.$ac_objext
19498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19499 (eval $ac_compile) 2>conftest.er1
a848cd7e 19500 ac_status=$?
ac1cb8d3
VS
19501 grep -v '^ *+' conftest.er1 >conftest.err
19502 rm -f conftest.er1
19503 cat conftest.err >&5
a848cd7e
SC
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); } &&
bb9e79c0 19506 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19508 (eval $ac_try) 2>&5
19509 ac_status=$?
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); }; } &&
19512 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
19518 ac_lo=0 ac_mid=0
19519 while :; do
19520 cat >conftest.$ac_ext <<_ACEOF
19521/* confdefs.h. */
19522_ACEOF
19523cat confdefs.h >>conftest.$ac_ext
19524cat >>conftest.$ac_ext <<_ACEOF
19525/* end confdefs.h. */
19526$ac_includes_default
19527int
19528main ()
19529{
19530static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19531test_array [0] = 0
19532
19533 ;
19534 return 0;
19535}
19536_ACEOF
19537rm -f conftest.$ac_objext
19538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19539 (eval $ac_compile) 2>conftest.er1
a848cd7e 19540 ac_status=$?
ac1cb8d3
VS
19541 grep -v '^ *+' conftest.er1 >conftest.err
19542 rm -f conftest.er1
19543 cat conftest.err >&5
a848cd7e
SC
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); } &&
bb9e79c0 19546 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548 (eval $ac_try) 2>&5
19549 ac_status=$?
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; } &&
19552 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554 (eval $ac_try) 2>&5
19555 ac_status=$?
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; }; then
19558 ac_hi=$ac_mid; break
19559else
19560 echo "$as_me: failed program was:" >&5
19561sed 's/^/| /' conftest.$ac_ext >&5
19562
19563ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19564 if test $ac_lo -le $ac_mid; then
19565 ac_lo= ac_hi=
19566 break
19567 fi
19568 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19569fi
ac1cb8d3 19570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19571 done
19572else
19573 echo "$as_me: failed program was:" >&5
19574sed 's/^/| /' conftest.$ac_ext >&5
19575
19576cat >conftest.$ac_ext <<_ACEOF
19577/* confdefs.h. */
19578_ACEOF
19579cat confdefs.h >>conftest.$ac_ext
19580cat >>conftest.$ac_ext <<_ACEOF
19581/* end confdefs.h. */
19582$ac_includes_default
19583int
19584main ()
19585{
19586static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19587test_array [0] = 0
19588
19589 ;
19590 return 0;
19591}
19592_ACEOF
19593rm -f conftest.$ac_objext
19594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19595 (eval $ac_compile) 2>conftest.er1
a848cd7e 19596 ac_status=$?
ac1cb8d3
VS
19597 grep -v '^ *+' conftest.er1 >conftest.err
19598 rm -f conftest.er1
19599 cat conftest.err >&5
a848cd7e
SC
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); } &&
bb9e79c0 19602 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604 (eval $ac_try) 2>&5
19605 ac_status=$?
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; } &&
19608 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19610 (eval $ac_try) 2>&5
19611 ac_status=$?
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); }; }; then
19614 ac_hi=-1 ac_mid=-1
19615 while :; do
19616 cat >conftest.$ac_ext <<_ACEOF
19617/* confdefs.h. */
19618_ACEOF
19619cat confdefs.h >>conftest.$ac_ext
19620cat >>conftest.$ac_ext <<_ACEOF
19621/* end confdefs.h. */
19622$ac_includes_default
19623int
19624main ()
19625{
19626static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19627test_array [0] = 0
19628
19629 ;
19630 return 0;
19631}
19632_ACEOF
19633rm -f conftest.$ac_objext
19634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19635 (eval $ac_compile) 2>conftest.er1
a848cd7e 19636 ac_status=$?
ac1cb8d3
VS
19637 grep -v '^ *+' conftest.er1 >conftest.err
19638 rm -f conftest.er1
19639 cat conftest.err >&5
a848cd7e
SC
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); } &&
bb9e79c0 19642 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19644 (eval $ac_try) 2>&5
19645 ac_status=$?
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; } &&
19648 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19650 (eval $ac_try) 2>&5
19651 ac_status=$?
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); }; }; then
19654 ac_lo=$ac_mid; break
19655else
19656 echo "$as_me: failed program was:" >&5
19657sed 's/^/| /' conftest.$ac_ext >&5
19658
19659ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19660 if test $ac_mid -le $ac_hi; then
19661 ac_lo= ac_hi=
19662 break
19663 fi
19664 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19665fi
ac1cb8d3 19666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19667 done
19668else
19669 echo "$as_me: failed program was:" >&5
19670sed 's/^/| /' conftest.$ac_ext >&5
19671
19672ac_lo= ac_hi=
19673fi
ac1cb8d3 19674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19675fi
ac1cb8d3 19676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19677# Binary search between lo and hi bounds.
19678while test "x$ac_lo" != "x$ac_hi"; do
19679 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19680 cat >conftest.$ac_ext <<_ACEOF
19681/* confdefs.h. */
19682_ACEOF
19683cat confdefs.h >>conftest.$ac_ext
19684cat >>conftest.$ac_ext <<_ACEOF
19685/* end confdefs.h. */
19686$ac_includes_default
19687int
19688main ()
19689{
19690static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19691test_array [0] = 0
19692
19693 ;
19694 return 0;
19695}
19696_ACEOF
19697rm -f conftest.$ac_objext
19698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19699 (eval $ac_compile) 2>conftest.er1
a848cd7e 19700 ac_status=$?
ac1cb8d3
VS
19701 grep -v '^ *+' conftest.er1 >conftest.err
19702 rm -f conftest.er1
19703 cat conftest.err >&5
a848cd7e
SC
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); } &&
bb9e79c0 19706 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19708 (eval $ac_try) 2>&5
19709 ac_status=$?
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); }; } &&
19712 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19714 (eval $ac_try) 2>&5
19715 ac_status=$?
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); }; }; then
19718 ac_hi=$ac_mid
19719else
19720 echo "$as_me: failed program was:" >&5
19721sed 's/^/| /' conftest.$ac_ext >&5
19722
19723ac_lo=`expr '(' $ac_mid ')' + 1`
19724fi
ac1cb8d3 19725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19726done
19727case $ac_lo in
19728?*) ac_cv_sizeof_int=$ac_lo;;
19729'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19730See \`config.log' for more details." >&5
19731echo "$as_me: error: cannot compute sizeof (int), 77
19732See \`config.log' for more details." >&2;}
19733 { (exit 1); exit 1; }; } ;;
19734esac
19735else
19736 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
19737 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19738echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19739 { (exit 1); exit 1; }; }
19740else
19741 cat >conftest.$ac_ext <<_ACEOF
19742/* confdefs.h. */
19743_ACEOF
19744cat confdefs.h >>conftest.$ac_ext
19745cat >>conftest.$ac_ext <<_ACEOF
19746/* end confdefs.h. */
19747$ac_includes_default
19748long longval () { return (long) (sizeof (int)); }
19749unsigned long ulongval () { return (long) (sizeof (int)); }
19750#include <stdio.h>
19751#include <stdlib.h>
19752int
19753main ()
19754{
19755
19756 FILE *f = fopen ("conftest.val", "w");
19757 if (! f)
19758 exit (1);
19759 if (((long) (sizeof (int))) < 0)
19760 {
19761 long i = longval ();
19762 if (i != ((long) (sizeof (int))))
19763 exit (1);
19764 fprintf (f, "%ld\n", i);
19765 }
19766 else
19767 {
19768 unsigned long i = ulongval ();
19769 if (i != ((long) (sizeof (int))))
19770 exit (1);
19771 fprintf (f, "%lu\n", i);
19772 }
19773 exit (ferror (f) || fclose (f) != 0);
19774
19775 ;
19776 return 0;
19777}
19778_ACEOF
19779rm -f conftest$ac_exeext
19780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19781 (eval $ac_link) 2>&5
19782 ac_status=$?
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19786 (eval $ac_try) 2>&5
19787 ac_status=$?
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); }; }; then
19790 ac_cv_sizeof_int=`cat conftest.val`
19791else
19792 echo "$as_me: program exited with status $ac_status" >&5
19793echo "$as_me: failed program was:" >&5
19794sed 's/^/| /' conftest.$ac_ext >&5
19795
19796( exit $ac_status )
19797{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19798See \`config.log' for more details." >&5
19799echo "$as_me: error: cannot compute sizeof (int), 77
19800See \`config.log' for more details." >&2;}
19801 { (exit 1); exit 1; }; }
19802fi
ac1cb8d3 19803rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19804fi
19805fi
19806rm -f conftest.val
19807else
19808 ac_cv_sizeof_int=0
19809fi
19810fi
19811echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19812echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19813cat >>confdefs.h <<_ACEOF
19814#define SIZEOF_INT $ac_cv_sizeof_int
19815_ACEOF
19816
19817
19818echo "$as_me:$LINENO: checking for long" >&5
19819echo $ECHO_N "checking for long... $ECHO_C" >&6
19820if test "${ac_cv_type_long+set}" = set; then
19821 echo $ECHO_N "(cached) $ECHO_C" >&6
19822else
19823 cat >conftest.$ac_ext <<_ACEOF
19824/* confdefs.h. */
19825_ACEOF
19826cat confdefs.h >>conftest.$ac_ext
19827cat >>conftest.$ac_ext <<_ACEOF
19828/* end confdefs.h. */
19829$ac_includes_default
19830int
19831main ()
19832{
19833if ((long *) 0)
19834 return 0;
19835if (sizeof (long))
19836 return 0;
19837 ;
19838 return 0;
19839}
19840_ACEOF
19841rm -f conftest.$ac_objext
19842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19843 (eval $ac_compile) 2>conftest.er1
a848cd7e 19844 ac_status=$?
ac1cb8d3
VS
19845 grep -v '^ *+' conftest.er1 >conftest.err
19846 rm -f conftest.er1
19847 cat conftest.err >&5
a848cd7e
SC
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); } &&
bb9e79c0 19850 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19852 (eval $ac_try) 2>&5
19853 ac_status=$?
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); }; } &&
19856 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19858 (eval $ac_try) 2>&5
19859 ac_status=$?
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); }; }; then
19862 ac_cv_type_long=yes
19863else
19864 echo "$as_me: failed program was:" >&5
19865sed 's/^/| /' conftest.$ac_ext >&5
19866
19867ac_cv_type_long=no
19868fi
ac1cb8d3 19869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19870fi
19871echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19872echo "${ECHO_T}$ac_cv_type_long" >&6
19873
19874echo "$as_me:$LINENO: checking size of long" >&5
19875echo $ECHO_N "checking size of long... $ECHO_C" >&6
19876if test "${ac_cv_sizeof_long+set}" = set; then
19877 echo $ECHO_N "(cached) $ECHO_C" >&6
19878else
19879 if test "$ac_cv_type_long" = yes; then
19880 # The cast to unsigned long works around a bug in the HP C Compiler
19881 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19882 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19883 # This bug is HP SR number 8606223364.
19884 if test "$cross_compiling" = yes; then
19885 # Depending upon the size, compute the lo and hi bounds.
19886cat >conftest.$ac_ext <<_ACEOF
19887/* confdefs.h. */
19888_ACEOF
19889cat confdefs.h >>conftest.$ac_ext
19890cat >>conftest.$ac_ext <<_ACEOF
19891/* end confdefs.h. */
19892$ac_includes_default
19893int
19894main ()
19895{
19896static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19897test_array [0] = 0
19898
19899 ;
19900 return 0;
19901}
19902_ACEOF
19903rm -f conftest.$ac_objext
19904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19905 (eval $ac_compile) 2>conftest.er1
a848cd7e 19906 ac_status=$?
ac1cb8d3
VS
19907 grep -v '^ *+' conftest.er1 >conftest.err
19908 rm -f conftest.er1
19909 cat conftest.err >&5
a848cd7e
SC
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); } &&
bb9e79c0 19912 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19914 (eval $ac_try) 2>&5
19915 ac_status=$?
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); }; } &&
19918 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920 (eval $ac_try) 2>&5
19921 ac_status=$?
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); }; }; then
19924 ac_lo=0 ac_mid=0
19925 while :; do
19926 cat >conftest.$ac_ext <<_ACEOF
19927/* confdefs.h. */
19928_ACEOF
19929cat confdefs.h >>conftest.$ac_ext
19930cat >>conftest.$ac_ext <<_ACEOF
19931/* end confdefs.h. */
19932$ac_includes_default
19933int
19934main ()
19935{
19936static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19937test_array [0] = 0
19938
19939 ;
19940 return 0;
19941}
19942_ACEOF
19943rm -f conftest.$ac_objext
19944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19945 (eval $ac_compile) 2>conftest.er1
a848cd7e 19946 ac_status=$?
ac1cb8d3
VS
19947 grep -v '^ *+' conftest.er1 >conftest.err
19948 rm -f conftest.er1
19949 cat conftest.err >&5
a848cd7e
SC
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); } &&
bb9e79c0 19952 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19954 (eval $ac_try) 2>&5
19955 ac_status=$?
19956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957 (exit $ac_status); }; } &&
19958 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19960 (eval $ac_try) 2>&5
19961 ac_status=$?
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); }; }; then
19964 ac_hi=$ac_mid; break
19965else
19966 echo "$as_me: failed program was:" >&5
19967sed 's/^/| /' conftest.$ac_ext >&5
19968
19969ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19970 if test $ac_lo -le $ac_mid; then
19971 ac_lo= ac_hi=
19972 break
19973 fi
19974 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19975fi
ac1cb8d3 19976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19977 done
19978else
19979 echo "$as_me: failed program was:" >&5
19980sed 's/^/| /' conftest.$ac_ext >&5
19981
19982cat >conftest.$ac_ext <<_ACEOF
19983/* confdefs.h. */
19984_ACEOF
19985cat confdefs.h >>conftest.$ac_ext
19986cat >>conftest.$ac_ext <<_ACEOF
19987/* end confdefs.h. */
19988$ac_includes_default
19989int
19990main ()
19991{
19992static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19993test_array [0] = 0
19994
19995 ;
19996 return 0;
19997}
19998_ACEOF
19999rm -f conftest.$ac_objext
20000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20001 (eval $ac_compile) 2>conftest.er1
a848cd7e 20002 ac_status=$?
ac1cb8d3
VS
20003 grep -v '^ *+' conftest.er1 >conftest.err
20004 rm -f conftest.er1
20005 cat conftest.err >&5
a848cd7e
SC
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } &&
bb9e79c0 20008 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20010 (eval $ac_try) 2>&5
20011 ac_status=$?
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); }; } &&
20014 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016 (eval $ac_try) 2>&5
20017 ac_status=$?
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); }; }; then
20020 ac_hi=-1 ac_mid=-1
20021 while :; do
20022 cat >conftest.$ac_ext <<_ACEOF
20023/* confdefs.h. */
20024_ACEOF
20025cat confdefs.h >>conftest.$ac_ext
20026cat >>conftest.$ac_ext <<_ACEOF
20027/* end confdefs.h. */
20028$ac_includes_default
20029int
20030main ()
20031{
20032static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
20033test_array [0] = 0
20034
20035 ;
20036 return 0;
20037}
20038_ACEOF
20039rm -f conftest.$ac_objext
20040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20041 (eval $ac_compile) 2>conftest.er1
a848cd7e 20042 ac_status=$?
ac1cb8d3
VS
20043 grep -v '^ *+' conftest.er1 >conftest.err
20044 rm -f conftest.er1
20045 cat conftest.err >&5
a848cd7e
SC
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } &&
bb9e79c0 20048 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20050 (eval $ac_try) 2>&5
20051 ac_status=$?
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); }; } &&
20054 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20056 (eval $ac_try) 2>&5
20057 ac_status=$?
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); }; }; then
20060 ac_lo=$ac_mid; break
20061else
20062 echo "$as_me: failed program was:" >&5
20063sed 's/^/| /' conftest.$ac_ext >&5
20064
20065ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20066 if test $ac_mid -le $ac_hi; then
20067 ac_lo= ac_hi=
20068 break
20069 fi
20070 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20071fi
ac1cb8d3 20072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20073 done
20074else
20075 echo "$as_me: failed program was:" >&5
20076sed 's/^/| /' conftest.$ac_ext >&5
20077
20078ac_lo= ac_hi=
20079fi
ac1cb8d3 20080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20081fi
ac1cb8d3 20082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20083# Binary search between lo and hi bounds.
20084while test "x$ac_lo" != "x$ac_hi"; do
20085 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20086 cat >conftest.$ac_ext <<_ACEOF
20087/* confdefs.h. */
20088_ACEOF
20089cat confdefs.h >>conftest.$ac_ext
20090cat >>conftest.$ac_ext <<_ACEOF
20091/* end confdefs.h. */
20092$ac_includes_default
20093int
20094main ()
20095{
20096static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
20097test_array [0] = 0
20098
20099 ;
20100 return 0;
20101}
20102_ACEOF
20103rm -f conftest.$ac_objext
20104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20105 (eval $ac_compile) 2>conftest.er1
a848cd7e 20106 ac_status=$?
ac1cb8d3
VS
20107 grep -v '^ *+' conftest.er1 >conftest.err
20108 rm -f conftest.er1
20109 cat conftest.err >&5
a848cd7e
SC
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); } &&
bb9e79c0 20112 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20114 (eval $ac_try) 2>&5
20115 ac_status=$?
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); }; } &&
20118 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120 (eval $ac_try) 2>&5
20121 ac_status=$?
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); }; }; then
20124 ac_hi=$ac_mid
20125else
20126 echo "$as_me: failed program was:" >&5
20127sed 's/^/| /' conftest.$ac_ext >&5
20128
20129ac_lo=`expr '(' $ac_mid ')' + 1`
20130fi
ac1cb8d3 20131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20132done
20133case $ac_lo in
20134?*) ac_cv_sizeof_long=$ac_lo;;
20135'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20136See \`config.log' for more details." >&5
20137echo "$as_me: error: cannot compute sizeof (long), 77
20138See \`config.log' for more details." >&2;}
20139 { (exit 1); exit 1; }; } ;;
20140esac
20141else
20142 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
20143 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20144echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20145 { (exit 1); exit 1; }; }
20146else
20147 cat >conftest.$ac_ext <<_ACEOF
20148/* confdefs.h. */
20149_ACEOF
20150cat confdefs.h >>conftest.$ac_ext
20151cat >>conftest.$ac_ext <<_ACEOF
20152/* end confdefs.h. */
20153$ac_includes_default
20154long longval () { return (long) (sizeof (long)); }
20155unsigned long ulongval () { return (long) (sizeof (long)); }
20156#include <stdio.h>
20157#include <stdlib.h>
20158int
20159main ()
20160{
20161
20162 FILE *f = fopen ("conftest.val", "w");
20163 if (! f)
20164 exit (1);
20165 if (((long) (sizeof (long))) < 0)
20166 {
20167 long i = longval ();
20168 if (i != ((long) (sizeof (long))))
20169 exit (1);
20170 fprintf (f, "%ld\n", i);
20171 }
20172 else
20173 {
20174 unsigned long i = ulongval ();
20175 if (i != ((long) (sizeof (long))))
20176 exit (1);
20177 fprintf (f, "%lu\n", i);
20178 }
20179 exit (ferror (f) || fclose (f) != 0);
20180
20181 ;
20182 return 0;
20183}
20184_ACEOF
20185rm -f conftest$ac_exeext
20186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20187 (eval $ac_link) 2>&5
20188 ac_status=$?
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20192 (eval $ac_try) 2>&5
20193 ac_status=$?
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); }; }; then
20196 ac_cv_sizeof_long=`cat conftest.val`
20197else
20198 echo "$as_me: program exited with status $ac_status" >&5
20199echo "$as_me: failed program was:" >&5
20200sed 's/^/| /' conftest.$ac_ext >&5
20201
20202( exit $ac_status )
20203{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20204See \`config.log' for more details." >&5
20205echo "$as_me: error: cannot compute sizeof (long), 77
20206See \`config.log' for more details." >&2;}
20207 { (exit 1); exit 1; }; }
20208fi
ac1cb8d3 20209rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20210fi
20211fi
20212rm -f conftest.val
20213else
20214 ac_cv_sizeof_long=0
20215fi
20216fi
20217echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
20218echo "${ECHO_T}$ac_cv_sizeof_long" >&6
20219cat >>confdefs.h <<_ACEOF
20220#define SIZEOF_LONG $ac_cv_sizeof_long
20221_ACEOF
20222
20223
20224echo "$as_me:$LINENO: checking for size_t" >&5
20225echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20226if test "${ac_cv_type_size_t+set}" = set; then
20227 echo $ECHO_N "(cached) $ECHO_C" >&6
20228else
20229 cat >conftest.$ac_ext <<_ACEOF
20230/* confdefs.h. */
20231_ACEOF
20232cat confdefs.h >>conftest.$ac_ext
20233cat >>conftest.$ac_ext <<_ACEOF
20234/* end confdefs.h. */
20235$ac_includes_default
20236int
20237main ()
20238{
20239if ((size_t *) 0)
20240 return 0;
20241if (sizeof (size_t))
20242 return 0;
20243 ;
20244 return 0;
20245}
20246_ACEOF
20247rm -f conftest.$ac_objext
20248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20249 (eval $ac_compile) 2>conftest.er1
a848cd7e 20250 ac_status=$?
ac1cb8d3
VS
20251 grep -v '^ *+' conftest.er1 >conftest.err
20252 rm -f conftest.er1
20253 cat conftest.err >&5
a848cd7e
SC
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); } &&
bb9e79c0 20256 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20258 (eval $ac_try) 2>&5
20259 ac_status=$?
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); }; } &&
20262 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20264 (eval $ac_try) 2>&5
20265 ac_status=$?
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); }; }; then
20268 ac_cv_type_size_t=yes
20269else
20270 echo "$as_me: failed program was:" >&5
20271sed 's/^/| /' conftest.$ac_ext >&5
20272
20273ac_cv_type_size_t=no
20274fi
ac1cb8d3 20275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20276fi
20277echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20278echo "${ECHO_T}$ac_cv_type_size_t" >&6
20279
20280echo "$as_me:$LINENO: checking size of size_t" >&5
20281echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
20282if test "${ac_cv_sizeof_size_t+set}" = set; then
20283 echo $ECHO_N "(cached) $ECHO_C" >&6
20284else
20285 if test "$ac_cv_type_size_t" = yes; then
20286 # The cast to unsigned long works around a bug in the HP C Compiler
20287 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20288 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20289 # This bug is HP SR number 8606223364.
20290 if test "$cross_compiling" = yes; then
20291 # Depending upon the size, compute the lo and hi bounds.
20292cat >conftest.$ac_ext <<_ACEOF
20293/* confdefs.h. */
20294_ACEOF
20295cat confdefs.h >>conftest.$ac_ext
20296cat >>conftest.$ac_ext <<_ACEOF
20297/* end confdefs.h. */
20298$ac_includes_default
20299int
20300main ()
20301{
20302static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
20303test_array [0] = 0
20304
20305 ;
20306 return 0;
20307}
20308_ACEOF
20309rm -f conftest.$ac_objext
20310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20311 (eval $ac_compile) 2>conftest.er1
a848cd7e 20312 ac_status=$?
ac1cb8d3
VS
20313 grep -v '^ *+' conftest.er1 >conftest.err
20314 rm -f conftest.er1
20315 cat conftest.err >&5
a848cd7e
SC
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); } &&
bb9e79c0 20318 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20320 (eval $ac_try) 2>&5
20321 ac_status=$?
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); }; } &&
20324 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20326 (eval $ac_try) 2>&5
20327 ac_status=$?
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); }; }; then
20330 ac_lo=0 ac_mid=0
20331 while :; do
20332 cat >conftest.$ac_ext <<_ACEOF
20333/* confdefs.h. */
20334_ACEOF
20335cat confdefs.h >>conftest.$ac_ext
20336cat >>conftest.$ac_ext <<_ACEOF
20337/* end confdefs.h. */
20338$ac_includes_default
20339int
20340main ()
20341{
20342static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20343test_array [0] = 0
20344
20345 ;
20346 return 0;
20347}
20348_ACEOF
20349rm -f conftest.$ac_objext
20350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20351 (eval $ac_compile) 2>conftest.er1
a848cd7e 20352 ac_status=$?
ac1cb8d3
VS
20353 grep -v '^ *+' conftest.er1 >conftest.err
20354 rm -f conftest.er1
20355 cat conftest.err >&5
a848cd7e
SC
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); } &&
bb9e79c0 20358 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360 (eval $ac_try) 2>&5
20361 ac_status=$?
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); }; } &&
20364 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20366 (eval $ac_try) 2>&5
20367 ac_status=$?
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); }; }; then
20370 ac_hi=$ac_mid; break
20371else
20372 echo "$as_me: failed program was:" >&5
20373sed 's/^/| /' conftest.$ac_ext >&5
20374
20375ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20376 if test $ac_lo -le $ac_mid; then
20377 ac_lo= ac_hi=
20378 break
20379 fi
20380 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20381fi
ac1cb8d3 20382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20383 done
20384else
20385 echo "$as_me: failed program was:" >&5
20386sed 's/^/| /' conftest.$ac_ext >&5
20387
20388cat >conftest.$ac_ext <<_ACEOF
20389/* confdefs.h. */
20390_ACEOF
20391cat confdefs.h >>conftest.$ac_ext
20392cat >>conftest.$ac_ext <<_ACEOF
20393/* end confdefs.h. */
20394$ac_includes_default
20395int
20396main ()
20397{
20398static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
20399test_array [0] = 0
20400
20401 ;
20402 return 0;
20403}
20404_ACEOF
20405rm -f conftest.$ac_objext
20406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20407 (eval $ac_compile) 2>conftest.er1
a848cd7e 20408 ac_status=$?
ac1cb8d3
VS
20409 grep -v '^ *+' conftest.er1 >conftest.err
20410 rm -f conftest.er1
20411 cat conftest.err >&5
a848cd7e
SC
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); } &&
bb9e79c0 20414 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20416 (eval $ac_try) 2>&5
20417 ac_status=$?
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); }; } &&
20420 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20422 (eval $ac_try) 2>&5
20423 ac_status=$?
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); }; }; then
20426 ac_hi=-1 ac_mid=-1
20427 while :; do
20428 cat >conftest.$ac_ext <<_ACEOF
20429/* confdefs.h. */
20430_ACEOF
20431cat confdefs.h >>conftest.$ac_ext
20432cat >>conftest.$ac_ext <<_ACEOF
20433/* end confdefs.h. */
20434$ac_includes_default
20435int
20436main ()
20437{
20438static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
20439test_array [0] = 0
20440
20441 ;
20442 return 0;
20443}
20444_ACEOF
20445rm -f conftest.$ac_objext
20446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20447 (eval $ac_compile) 2>conftest.er1
a848cd7e 20448 ac_status=$?
ac1cb8d3
VS
20449 grep -v '^ *+' conftest.er1 >conftest.err
20450 rm -f conftest.er1
20451 cat conftest.err >&5
a848cd7e
SC
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); } &&
bb9e79c0 20454 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20456 (eval $ac_try) 2>&5
20457 ac_status=$?
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); }; } &&
20460 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20462 (eval $ac_try) 2>&5
20463 ac_status=$?
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); }; }; then
20466 ac_lo=$ac_mid; break
20467else
20468 echo "$as_me: failed program was:" >&5
20469sed 's/^/| /' conftest.$ac_ext >&5
20470
20471ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20472 if test $ac_mid -le $ac_hi; then
20473 ac_lo= ac_hi=
20474 break
20475 fi
20476 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20477fi
ac1cb8d3 20478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20479 done
20480else
20481 echo "$as_me: failed program was:" >&5
20482sed 's/^/| /' conftest.$ac_ext >&5
20483
20484ac_lo= ac_hi=
20485fi
ac1cb8d3 20486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20487fi
ac1cb8d3 20488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20489# Binary search between lo and hi bounds.
20490while test "x$ac_lo" != "x$ac_hi"; do
20491 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20492 cat >conftest.$ac_ext <<_ACEOF
20493/* confdefs.h. */
20494_ACEOF
20495cat confdefs.h >>conftest.$ac_ext
20496cat >>conftest.$ac_ext <<_ACEOF
20497/* end confdefs.h. */
20498$ac_includes_default
20499int
20500main ()
20501{
20502static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20503test_array [0] = 0
20504
20505 ;
20506 return 0;
20507}
20508_ACEOF
20509rm -f conftest.$ac_objext
20510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20511 (eval $ac_compile) 2>conftest.er1
a848cd7e 20512 ac_status=$?
ac1cb8d3
VS
20513 grep -v '^ *+' conftest.er1 >conftest.err
20514 rm -f conftest.er1
20515 cat conftest.err >&5
a848cd7e
SC
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); } &&
bb9e79c0 20518 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20520 (eval $ac_try) 2>&5
20521 ac_status=$?
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); }; } &&
20524 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20526 (eval $ac_try) 2>&5
20527 ac_status=$?
20528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 (exit $ac_status); }; }; then
20530 ac_hi=$ac_mid
20531else
20532 echo "$as_me: failed program was:" >&5
20533sed 's/^/| /' conftest.$ac_ext >&5
20534
20535ac_lo=`expr '(' $ac_mid ')' + 1`
20536fi
ac1cb8d3 20537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20538done
20539case $ac_lo in
20540?*) ac_cv_sizeof_size_t=$ac_lo;;
20541'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20542See \`config.log' for more details." >&5
20543echo "$as_me: error: cannot compute sizeof (size_t), 77
20544See \`config.log' for more details." >&2;}
20545 { (exit 1); exit 1; }; } ;;
20546esac
20547else
20548 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
20549 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20550echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20551 { (exit 1); exit 1; }; }
20552else
20553 cat >conftest.$ac_ext <<_ACEOF
20554/* confdefs.h. */
20555_ACEOF
20556cat confdefs.h >>conftest.$ac_ext
20557cat >>conftest.$ac_ext <<_ACEOF
20558/* end confdefs.h. */
20559$ac_includes_default
20560long longval () { return (long) (sizeof (size_t)); }
20561unsigned long ulongval () { return (long) (sizeof (size_t)); }
20562#include <stdio.h>
20563#include <stdlib.h>
20564int
20565main ()
20566{
20567
20568 FILE *f = fopen ("conftest.val", "w");
20569 if (! f)
20570 exit (1);
20571 if (((long) (sizeof (size_t))) < 0)
20572 {
20573 long i = longval ();
20574 if (i != ((long) (sizeof (size_t))))
20575 exit (1);
20576 fprintf (f, "%ld\n", i);
20577 }
20578 else
20579 {
20580 unsigned long i = ulongval ();
20581 if (i != ((long) (sizeof (size_t))))
20582 exit (1);
20583 fprintf (f, "%lu\n", i);
20584 }
20585 exit (ferror (f) || fclose (f) != 0);
20586
20587 ;
20588 return 0;
20589}
20590_ACEOF
20591rm -f conftest$ac_exeext
20592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20593 (eval $ac_link) 2>&5
20594 ac_status=$?
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20598 (eval $ac_try) 2>&5
20599 ac_status=$?
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); }; }; then
20602 ac_cv_sizeof_size_t=`cat conftest.val`
20603else
20604 echo "$as_me: program exited with status $ac_status" >&5
20605echo "$as_me: failed program was:" >&5
20606sed 's/^/| /' conftest.$ac_ext >&5
20607
20608( exit $ac_status )
20609{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20610See \`config.log' for more details." >&5
20611echo "$as_me: error: cannot compute sizeof (size_t), 77
20612See \`config.log' for more details." >&2;}
20613 { (exit 1); exit 1; }; }
20614fi
ac1cb8d3 20615rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20616fi
20617fi
20618rm -f conftest.val
20619else
20620 ac_cv_sizeof_size_t=0
20621fi
20622fi
20623echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20624echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20625cat >>confdefs.h <<_ACEOF
20626#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20627_ACEOF
20628
20629
20630
20631case "${host}" in
20632 arm-*-linux* )
20633 echo "$as_me:$LINENO: checking for long long" >&5
20634echo $ECHO_N "checking for long long... $ECHO_C" >&6
20635if test "${ac_cv_type_long_long+set}" = set; then
20636 echo $ECHO_N "(cached) $ECHO_C" >&6
20637else
20638 cat >conftest.$ac_ext <<_ACEOF
20639/* confdefs.h. */
20640_ACEOF
20641cat confdefs.h >>conftest.$ac_ext
20642cat >>conftest.$ac_ext <<_ACEOF
20643/* end confdefs.h. */
20644$ac_includes_default
20645int
20646main ()
20647{
20648if ((long long *) 0)
20649 return 0;
20650if (sizeof (long long))
20651 return 0;
20652 ;
20653 return 0;
20654}
20655_ACEOF
20656rm -f conftest.$ac_objext
20657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20658 (eval $ac_compile) 2>conftest.er1
a848cd7e 20659 ac_status=$?
ac1cb8d3
VS
20660 grep -v '^ *+' conftest.er1 >conftest.err
20661 rm -f conftest.er1
20662 cat conftest.err >&5
a848cd7e
SC
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); } &&
bb9e79c0 20665 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20667 (eval $ac_try) 2>&5
20668 ac_status=$?
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); }; } &&
20671 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20673 (eval $ac_try) 2>&5
20674 ac_status=$?
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); }; }; then
20677 ac_cv_type_long_long=yes
20678else
20679 echo "$as_me: failed program was:" >&5
20680sed 's/^/| /' conftest.$ac_ext >&5
20681
20682ac_cv_type_long_long=no
20683fi
ac1cb8d3 20684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20685fi
20686echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20687echo "${ECHO_T}$ac_cv_type_long_long" >&6
20688
20689echo "$as_me:$LINENO: checking size of long long" >&5
20690echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20691if test "${ac_cv_sizeof_long_long+set}" = set; then
20692 echo $ECHO_N "(cached) $ECHO_C" >&6
20693else
20694 if test "$ac_cv_type_long_long" = yes; then
20695 # The cast to unsigned long works around a bug in the HP C Compiler
20696 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20697 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20698 # This bug is HP SR number 8606223364.
20699 if test "$cross_compiling" = yes; then
20700 # Depending upon the size, compute the lo and hi bounds.
20701cat >conftest.$ac_ext <<_ACEOF
20702/* confdefs.h. */
20703_ACEOF
20704cat confdefs.h >>conftest.$ac_ext
20705cat >>conftest.$ac_ext <<_ACEOF
20706/* end confdefs.h. */
20707$ac_includes_default
20708int
20709main ()
20710{
20711static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20712test_array [0] = 0
20713
20714 ;
20715 return 0;
20716}
20717_ACEOF
20718rm -f conftest.$ac_objext
20719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20720 (eval $ac_compile) 2>conftest.er1
a848cd7e 20721 ac_status=$?
ac1cb8d3
VS
20722 grep -v '^ *+' conftest.er1 >conftest.err
20723 rm -f conftest.er1
20724 cat conftest.err >&5
a848cd7e
SC
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); } &&
bb9e79c0 20727 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20729 (eval $ac_try) 2>&5
20730 ac_status=$?
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); }; } &&
20733 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20735 (eval $ac_try) 2>&5
20736 ac_status=$?
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); }; }; then
20739 ac_lo=0 ac_mid=0
20740 while :; do
20741 cat >conftest.$ac_ext <<_ACEOF
20742/* confdefs.h. */
20743_ACEOF
20744cat confdefs.h >>conftest.$ac_ext
20745cat >>conftest.$ac_ext <<_ACEOF
20746/* end confdefs.h. */
20747$ac_includes_default
20748int
20749main ()
20750{
20751static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20752test_array [0] = 0
20753
20754 ;
20755 return 0;
20756}
20757_ACEOF
20758rm -f conftest.$ac_objext
20759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20760 (eval $ac_compile) 2>conftest.er1
a848cd7e 20761 ac_status=$?
ac1cb8d3
VS
20762 grep -v '^ *+' conftest.er1 >conftest.err
20763 rm -f conftest.er1
20764 cat conftest.err >&5
a848cd7e
SC
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); } &&
bb9e79c0 20767 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20769 (eval $ac_try) 2>&5
20770 ac_status=$?
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); }; } &&
20773 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20775 (eval $ac_try) 2>&5
20776 ac_status=$?
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); }; }; then
20779 ac_hi=$ac_mid; break
20780else
20781 echo "$as_me: failed program was:" >&5
20782sed 's/^/| /' conftest.$ac_ext >&5
20783
20784ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20785 if test $ac_lo -le $ac_mid; then
20786 ac_lo= ac_hi=
20787 break
20788 fi
20789 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20790fi
ac1cb8d3 20791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20792 done
20793else
20794 echo "$as_me: failed program was:" >&5
20795sed 's/^/| /' conftest.$ac_ext >&5
20796
20797cat >conftest.$ac_ext <<_ACEOF
20798/* confdefs.h. */
20799_ACEOF
20800cat confdefs.h >>conftest.$ac_ext
20801cat >>conftest.$ac_ext <<_ACEOF
20802/* end confdefs.h. */
20803$ac_includes_default
20804int
20805main ()
20806{
20807static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20808test_array [0] = 0
20809
20810 ;
20811 return 0;
20812}
20813_ACEOF
20814rm -f conftest.$ac_objext
20815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20816 (eval $ac_compile) 2>conftest.er1
a848cd7e 20817 ac_status=$?
ac1cb8d3
VS
20818 grep -v '^ *+' conftest.er1 >conftest.err
20819 rm -f conftest.er1
20820 cat conftest.err >&5
a848cd7e
SC
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); } &&
bb9e79c0 20823 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20825 (eval $ac_try) 2>&5
20826 ac_status=$?
20827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828 (exit $ac_status); }; } &&
20829 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20831 (eval $ac_try) 2>&5
20832 ac_status=$?
20833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834 (exit $ac_status); }; }; then
20835 ac_hi=-1 ac_mid=-1
20836 while :; do
20837 cat >conftest.$ac_ext <<_ACEOF
20838/* confdefs.h. */
20839_ACEOF
20840cat confdefs.h >>conftest.$ac_ext
20841cat >>conftest.$ac_ext <<_ACEOF
20842/* end confdefs.h. */
20843$ac_includes_default
20844int
20845main ()
20846{
20847static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20848test_array [0] = 0
20849
20850 ;
20851 return 0;
20852}
20853_ACEOF
20854rm -f conftest.$ac_objext
20855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20856 (eval $ac_compile) 2>conftest.er1
a848cd7e 20857 ac_status=$?
ac1cb8d3
VS
20858 grep -v '^ *+' conftest.er1 >conftest.err
20859 rm -f conftest.er1
20860 cat conftest.err >&5
a848cd7e
SC
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); } &&
bb9e79c0 20863 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20865 (eval $ac_try) 2>&5
20866 ac_status=$?
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); }; } &&
20869 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20871 (eval $ac_try) 2>&5
20872 ac_status=$?
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); }; }; then
20875 ac_lo=$ac_mid; break
20876else
20877 echo "$as_me: failed program was:" >&5
20878sed 's/^/| /' conftest.$ac_ext >&5
20879
20880ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20881 if test $ac_mid -le $ac_hi; then
20882 ac_lo= ac_hi=
20883 break
20884 fi
20885 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20886fi
ac1cb8d3 20887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20888 done
20889else
20890 echo "$as_me: failed program was:" >&5
20891sed 's/^/| /' conftest.$ac_ext >&5
20892
20893ac_lo= ac_hi=
20894fi
ac1cb8d3 20895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20896fi
ac1cb8d3 20897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20898# Binary search between lo and hi bounds.
20899while test "x$ac_lo" != "x$ac_hi"; do
20900 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20901 cat >conftest.$ac_ext <<_ACEOF
20902/* confdefs.h. */
20903_ACEOF
20904cat confdefs.h >>conftest.$ac_ext
20905cat >>conftest.$ac_ext <<_ACEOF
20906/* end confdefs.h. */
20907$ac_includes_default
20908int
20909main ()
20910{
20911static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20912test_array [0] = 0
20913
20914 ;
20915 return 0;
20916}
20917_ACEOF
20918rm -f conftest.$ac_objext
20919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20920 (eval $ac_compile) 2>conftest.er1
a848cd7e 20921 ac_status=$?
ac1cb8d3
VS
20922 grep -v '^ *+' conftest.er1 >conftest.err
20923 rm -f conftest.er1
20924 cat conftest.err >&5
a848cd7e
SC
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); } &&
bb9e79c0 20927 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20929 (eval $ac_try) 2>&5
20930 ac_status=$?
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); }; } &&
20933 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20935 (eval $ac_try) 2>&5
20936 ac_status=$?
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); }; }; then
20939 ac_hi=$ac_mid
20940else
20941 echo "$as_me: failed program was:" >&5
20942sed 's/^/| /' conftest.$ac_ext >&5
20943
20944ac_lo=`expr '(' $ac_mid ')' + 1`
20945fi
ac1cb8d3 20946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20947done
20948case $ac_lo in
20949?*) ac_cv_sizeof_long_long=$ac_lo;;
20950'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20951See \`config.log' for more details." >&5
20952echo "$as_me: error: cannot compute sizeof (long long), 77
20953See \`config.log' for more details." >&2;}
20954 { (exit 1); exit 1; }; } ;;
20955esac
20956else
20957 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
20958 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20959echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20960 { (exit 1); exit 1; }; }
20961else
20962 cat >conftest.$ac_ext <<_ACEOF
20963/* confdefs.h. */
20964_ACEOF
20965cat confdefs.h >>conftest.$ac_ext
20966cat >>conftest.$ac_ext <<_ACEOF
20967/* end confdefs.h. */
20968$ac_includes_default
20969long longval () { return (long) (sizeof (long long)); }
20970unsigned long ulongval () { return (long) (sizeof (long long)); }
20971#include <stdio.h>
20972#include <stdlib.h>
20973int
20974main ()
20975{
20976
20977 FILE *f = fopen ("conftest.val", "w");
20978 if (! f)
20979 exit (1);
20980 if (((long) (sizeof (long long))) < 0)
20981 {
20982 long i = longval ();
20983 if (i != ((long) (sizeof (long long))))
20984 exit (1);
20985 fprintf (f, "%ld\n", i);
20986 }
20987 else
20988 {
20989 unsigned long i = ulongval ();
20990 if (i != ((long) (sizeof (long long))))
20991 exit (1);
20992 fprintf (f, "%lu\n", i);
20993 }
20994 exit (ferror (f) || fclose (f) != 0);
20995
20996 ;
20997 return 0;
20998}
20999_ACEOF
21000rm -f conftest$ac_exeext
21001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21002 (eval $ac_link) 2>&5
21003 ac_status=$?
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21007 (eval $ac_try) 2>&5
21008 ac_status=$?
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); }; }; then
21011 ac_cv_sizeof_long_long=`cat conftest.val`
21012else
21013 echo "$as_me: program exited with status $ac_status" >&5
21014echo "$as_me: failed program was:" >&5
21015sed 's/^/| /' conftest.$ac_ext >&5
21016
21017( exit $ac_status )
21018{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21019See \`config.log' for more details." >&5
21020echo "$as_me: error: cannot compute sizeof (long long), 77
21021See \`config.log' for more details." >&2;}
21022 { (exit 1); exit 1; }; }
21023fi
ac1cb8d3 21024rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21025fi
21026fi
21027rm -f conftest.val
21028else
21029 ac_cv_sizeof_long_long=0
21030fi
21031fi
21032echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21033echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21034cat >>confdefs.h <<_ACEOF
21035#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21036_ACEOF
21037
21038
21039 ;;
21040 *-hp-hpux* )
21041 echo "$as_me:$LINENO: checking for long long" >&5
21042echo $ECHO_N "checking for long long... $ECHO_C" >&6
21043if test "${ac_cv_type_long_long+set}" = set; then
21044 echo $ECHO_N "(cached) $ECHO_C" >&6
21045else
21046 cat >conftest.$ac_ext <<_ACEOF
21047/* confdefs.h. */
21048_ACEOF
21049cat confdefs.h >>conftest.$ac_ext
21050cat >>conftest.$ac_ext <<_ACEOF
21051/* end confdefs.h. */
21052$ac_includes_default
21053int
21054main ()
21055{
21056if ((long long *) 0)
21057 return 0;
21058if (sizeof (long long))
21059 return 0;
21060 ;
21061 return 0;
21062}
21063_ACEOF
21064rm -f conftest.$ac_objext
21065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21066 (eval $ac_compile) 2>conftest.er1
a848cd7e 21067 ac_status=$?
ac1cb8d3
VS
21068 grep -v '^ *+' conftest.er1 >conftest.err
21069 rm -f conftest.er1
21070 cat conftest.err >&5
a848cd7e
SC
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); } &&
bb9e79c0 21073 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21075 (eval $ac_try) 2>&5
21076 ac_status=$?
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); }; } &&
21079 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21081 (eval $ac_try) 2>&5
21082 ac_status=$?
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); }; }; then
21085 ac_cv_type_long_long=yes
21086else
21087 echo "$as_me: failed program was:" >&5
21088sed 's/^/| /' conftest.$ac_ext >&5
21089
21090ac_cv_type_long_long=no
21091fi
ac1cb8d3 21092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21093fi
21094echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21095echo "${ECHO_T}$ac_cv_type_long_long" >&6
21096
21097echo "$as_me:$LINENO: checking size of long long" >&5
21098echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21099if test "${ac_cv_sizeof_long_long+set}" = set; then
21100 echo $ECHO_N "(cached) $ECHO_C" >&6
21101else
21102 if test "$ac_cv_type_long_long" = yes; then
21103 # The cast to unsigned long works around a bug in the HP C Compiler
21104 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21105 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21106 # This bug is HP SR number 8606223364.
21107 if test "$cross_compiling" = yes; then
21108 # Depending upon the size, compute the lo and hi bounds.
21109cat >conftest.$ac_ext <<_ACEOF
21110/* confdefs.h. */
21111_ACEOF
21112cat confdefs.h >>conftest.$ac_ext
21113cat >>conftest.$ac_ext <<_ACEOF
21114/* end confdefs.h. */
21115$ac_includes_default
21116int
21117main ()
21118{
21119static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21120test_array [0] = 0
21121
21122 ;
21123 return 0;
21124}
21125_ACEOF
21126rm -f conftest.$ac_objext
21127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21128 (eval $ac_compile) 2>conftest.er1
a848cd7e 21129 ac_status=$?
ac1cb8d3
VS
21130 grep -v '^ *+' conftest.er1 >conftest.err
21131 rm -f conftest.er1
21132 cat conftest.err >&5
a848cd7e
SC
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); } &&
bb9e79c0 21135 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21137 (eval $ac_try) 2>&5
21138 ac_status=$?
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); }; } &&
21141 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21143 (eval $ac_try) 2>&5
21144 ac_status=$?
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); }; }; then
21147 ac_lo=0 ac_mid=0
21148 while :; do
21149 cat >conftest.$ac_ext <<_ACEOF
21150/* confdefs.h. */
21151_ACEOF
21152cat confdefs.h >>conftest.$ac_ext
21153cat >>conftest.$ac_ext <<_ACEOF
21154/* end confdefs.h. */
21155$ac_includes_default
21156int
21157main ()
21158{
21159static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21160test_array [0] = 0
21161
21162 ;
21163 return 0;
21164}
21165_ACEOF
21166rm -f conftest.$ac_objext
21167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21168 (eval $ac_compile) 2>conftest.er1
a848cd7e 21169 ac_status=$?
ac1cb8d3
VS
21170 grep -v '^ *+' conftest.er1 >conftest.err
21171 rm -f conftest.er1
21172 cat conftest.err >&5
a848cd7e
SC
21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); } &&
bb9e79c0 21175 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21177 (eval $ac_try) 2>&5
21178 ac_status=$?
21179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); }; } &&
21181 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21183 (eval $ac_try) 2>&5
21184 ac_status=$?
21185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186 (exit $ac_status); }; }; then
21187 ac_hi=$ac_mid; break
21188else
21189 echo "$as_me: failed program was:" >&5
21190sed 's/^/| /' conftest.$ac_ext >&5
21191
21192ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
21193 if test $ac_lo -le $ac_mid; then
21194 ac_lo= ac_hi=
21195 break
21196 fi
21197 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 21198fi
ac1cb8d3 21199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21200 done
21201else
21202 echo "$as_me: failed program was:" >&5
21203sed 's/^/| /' conftest.$ac_ext >&5
21204
21205cat >conftest.$ac_ext <<_ACEOF
21206/* confdefs.h. */
21207_ACEOF
21208cat confdefs.h >>conftest.$ac_ext
21209cat >>conftest.$ac_ext <<_ACEOF
21210/* end confdefs.h. */
21211$ac_includes_default
21212int
21213main ()
21214{
21215static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21216test_array [0] = 0
21217
21218 ;
21219 return 0;
21220}
21221_ACEOF
21222rm -f conftest.$ac_objext
21223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21224 (eval $ac_compile) 2>conftest.er1
a848cd7e 21225 ac_status=$?
ac1cb8d3
VS
21226 grep -v '^ *+' conftest.er1 >conftest.err
21227 rm -f conftest.er1
21228 cat conftest.err >&5
a848cd7e
SC
21229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230 (exit $ac_status); } &&
bb9e79c0 21231 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21233 (eval $ac_try) 2>&5
21234 ac_status=$?
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); }; } &&
21237 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21239 (eval $ac_try) 2>&5
21240 ac_status=$?
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); }; }; then
21243 ac_hi=-1 ac_mid=-1
21244 while :; do
21245 cat >conftest.$ac_ext <<_ACEOF
21246/* confdefs.h. */
21247_ACEOF
21248cat confdefs.h >>conftest.$ac_ext
21249cat >>conftest.$ac_ext <<_ACEOF
21250/* end confdefs.h. */
21251$ac_includes_default
21252int
21253main ()
21254{
21255static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21256test_array [0] = 0
21257
21258 ;
21259 return 0;
21260}
21261_ACEOF
21262rm -f conftest.$ac_objext
21263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21264 (eval $ac_compile) 2>conftest.er1
a848cd7e 21265 ac_status=$?
ac1cb8d3
VS
21266 grep -v '^ *+' conftest.er1 >conftest.err
21267 rm -f conftest.er1
21268 cat conftest.err >&5
a848cd7e
SC
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); } &&
bb9e79c0 21271 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21273 (eval $ac_try) 2>&5
21274 ac_status=$?
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); }; } &&
21277 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21279 (eval $ac_try) 2>&5
21280 ac_status=$?
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 (exit $ac_status); }; }; then
21283 ac_lo=$ac_mid; break
21284else
21285 echo "$as_me: failed program was:" >&5
21286sed 's/^/| /' conftest.$ac_ext >&5
21287
21288ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
21289 if test $ac_mid -le $ac_hi; then
21290 ac_lo= ac_hi=
21291 break
21292 fi
21293 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21294fi
ac1cb8d3 21295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21296 done
21297else
21298 echo "$as_me: failed program was:" >&5
21299sed 's/^/| /' conftest.$ac_ext >&5
21300
21301ac_lo= ac_hi=
21302fi
ac1cb8d3 21303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21304fi
ac1cb8d3 21305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21306# Binary search between lo and hi bounds.
21307while test "x$ac_lo" != "x$ac_hi"; do
21308 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21309 cat >conftest.$ac_ext <<_ACEOF
21310/* confdefs.h. */
21311_ACEOF
21312cat confdefs.h >>conftest.$ac_ext
21313cat >>conftest.$ac_ext <<_ACEOF
21314/* end confdefs.h. */
21315$ac_includes_default
21316int
21317main ()
21318{
21319static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21320test_array [0] = 0
21321
21322 ;
21323 return 0;
21324}
21325_ACEOF
21326rm -f conftest.$ac_objext
21327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21328 (eval $ac_compile) 2>conftest.er1
a848cd7e 21329 ac_status=$?
ac1cb8d3
VS
21330 grep -v '^ *+' conftest.er1 >conftest.err
21331 rm -f conftest.er1
21332 cat conftest.err >&5
a848cd7e
SC
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); } &&
bb9e79c0 21335 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21337 (eval $ac_try) 2>&5
21338 ac_status=$?
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); }; } &&
21341 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21343 (eval $ac_try) 2>&5
21344 ac_status=$?
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); }; }; then
21347 ac_hi=$ac_mid
21348else
21349 echo "$as_me: failed program was:" >&5
21350sed 's/^/| /' conftest.$ac_ext >&5
21351
21352ac_lo=`expr '(' $ac_mid ')' + 1`
21353fi
ac1cb8d3 21354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21355done
21356case $ac_lo in
21357?*) ac_cv_sizeof_long_long=$ac_lo;;
21358'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21359See \`config.log' for more details." >&5
21360echo "$as_me: error: cannot compute sizeof (long long), 77
21361See \`config.log' for more details." >&2;}
21362 { (exit 1); exit 1; }; } ;;
21363esac
21364else
21365 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
21366 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21367echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
21368 { (exit 1); exit 1; }; }
21369else
21370 cat >conftest.$ac_ext <<_ACEOF
21371/* confdefs.h. */
21372_ACEOF
21373cat confdefs.h >>conftest.$ac_ext
21374cat >>conftest.$ac_ext <<_ACEOF
21375/* end confdefs.h. */
21376$ac_includes_default
21377long longval () { return (long) (sizeof (long long)); }
21378unsigned long ulongval () { return (long) (sizeof (long long)); }
21379#include <stdio.h>
21380#include <stdlib.h>
21381int
21382main ()
21383{
21384
21385 FILE *f = fopen ("conftest.val", "w");
21386 if (! f)
21387 exit (1);
21388 if (((long) (sizeof (long long))) < 0)
21389 {
21390 long i = longval ();
21391 if (i != ((long) (sizeof (long long))))
21392 exit (1);
21393 fprintf (f, "%ld\n", i);
21394 }
21395 else
21396 {
21397 unsigned long i = ulongval ();
21398 if (i != ((long) (sizeof (long long))))
21399 exit (1);
21400 fprintf (f, "%lu\n", i);
21401 }
21402 exit (ferror (f) || fclose (f) != 0);
21403
21404 ;
21405 return 0;
21406}
21407_ACEOF
21408rm -f conftest$ac_exeext
21409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21410 (eval $ac_link) 2>&5
21411 ac_status=$?
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21415 (eval $ac_try) 2>&5
21416 ac_status=$?
21417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418 (exit $ac_status); }; }; then
21419 ac_cv_sizeof_long_long=`cat conftest.val`
21420else
21421 echo "$as_me: program exited with status $ac_status" >&5
21422echo "$as_me: failed program was:" >&5
21423sed 's/^/| /' conftest.$ac_ext >&5
21424
21425( exit $ac_status )
21426{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21427See \`config.log' for more details." >&5
21428echo "$as_me: error: cannot compute sizeof (long long), 77
21429See \`config.log' for more details." >&2;}
21430 { (exit 1); exit 1; }; }
21431fi
ac1cb8d3 21432rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21433fi
21434fi
21435rm -f conftest.val
21436else
21437 ac_cv_sizeof_long_long=0
21438fi
21439fi
21440echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21441echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21442cat >>confdefs.h <<_ACEOF
21443#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21444_ACEOF
21445
21446
21447 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 21448 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
21449 fi
21450 ;;
21451 * )
21452 echo "$as_me:$LINENO: checking for long long" >&5
21453echo $ECHO_N "checking for long long... $ECHO_C" >&6
21454if test "${ac_cv_type_long_long+set}" = set; then
21455 echo $ECHO_N "(cached) $ECHO_C" >&6
21456else
21457 cat >conftest.$ac_ext <<_ACEOF
21458/* confdefs.h. */
21459_ACEOF
21460cat confdefs.h >>conftest.$ac_ext
21461cat >>conftest.$ac_ext <<_ACEOF
21462/* end confdefs.h. */
21463$ac_includes_default
21464int
21465main ()
21466{
21467if ((long long *) 0)
21468 return 0;
21469if (sizeof (long long))
21470 return 0;
21471 ;
21472 return 0;
21473}
21474_ACEOF
21475rm -f conftest.$ac_objext
21476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21477 (eval $ac_compile) 2>conftest.er1
a848cd7e 21478 ac_status=$?
ac1cb8d3
VS
21479 grep -v '^ *+' conftest.er1 >conftest.err
21480 rm -f conftest.er1
21481 cat conftest.err >&5
a848cd7e
SC
21482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483 (exit $ac_status); } &&
bb9e79c0 21484 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21486 (eval $ac_try) 2>&5
21487 ac_status=$?
21488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489 (exit $ac_status); }; } &&
21490 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21492 (eval $ac_try) 2>&5
21493 ac_status=$?
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); }; }; then
21496 ac_cv_type_long_long=yes
21497else
21498 echo "$as_me: failed program was:" >&5
21499sed 's/^/| /' conftest.$ac_ext >&5
21500
21501ac_cv_type_long_long=no
21502fi
ac1cb8d3 21503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21504fi
21505echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21506echo "${ECHO_T}$ac_cv_type_long_long" >&6
21507
21508echo "$as_me:$LINENO: checking size of long long" >&5
21509echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21510if test "${ac_cv_sizeof_long_long+set}" = set; then
21511 echo $ECHO_N "(cached) $ECHO_C" >&6
21512else
21513 if test "$ac_cv_type_long_long" = yes; then
21514 # The cast to unsigned long works around a bug in the HP C Compiler
21515 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21516 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21517 # This bug is HP SR number 8606223364.
21518 if test "$cross_compiling" = yes; then
21519 # Depending upon the size, compute the lo and hi bounds.
21520cat >conftest.$ac_ext <<_ACEOF
21521/* confdefs.h. */
21522_ACEOF
21523cat confdefs.h >>conftest.$ac_ext
21524cat >>conftest.$ac_ext <<_ACEOF
21525/* end confdefs.h. */
21526$ac_includes_default
21527int
21528main ()
21529{
21530static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21531test_array [0] = 0
21532
21533 ;
21534 return 0;
21535}
21536_ACEOF
21537rm -f conftest.$ac_objext
21538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21539 (eval $ac_compile) 2>conftest.er1
a848cd7e 21540 ac_status=$?
ac1cb8d3
VS
21541 grep -v '^ *+' conftest.er1 >conftest.err
21542 rm -f conftest.er1
21543 cat conftest.err >&5
a848cd7e
SC
21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545 (exit $ac_status); } &&
bb9e79c0 21546 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21548 (eval $ac_try) 2>&5
21549 ac_status=$?
21550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551 (exit $ac_status); }; } &&
21552 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21554 (eval $ac_try) 2>&5
21555 ac_status=$?
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); }; }; then
21558 ac_lo=0 ac_mid=0
21559 while :; do
21560 cat >conftest.$ac_ext <<_ACEOF
21561/* confdefs.h. */
21562_ACEOF
21563cat confdefs.h >>conftest.$ac_ext
21564cat >>conftest.$ac_ext <<_ACEOF
21565/* end confdefs.h. */
21566$ac_includes_default
21567int
21568main ()
21569{
21570static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21571test_array [0] = 0
21572
21573 ;
21574 return 0;
21575}
21576_ACEOF
21577rm -f conftest.$ac_objext
21578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21579 (eval $ac_compile) 2>conftest.er1
a848cd7e 21580 ac_status=$?
ac1cb8d3
VS
21581 grep -v '^ *+' conftest.er1 >conftest.err
21582 rm -f conftest.er1
21583 cat conftest.err >&5
a848cd7e
SC
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); } &&
bb9e79c0 21586 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21588 (eval $ac_try) 2>&5
21589 ac_status=$?
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); }; } &&
21592 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21594 (eval $ac_try) 2>&5
21595 ac_status=$?
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); }; }; then
21598 ac_hi=$ac_mid; break
21599else
21600 echo "$as_me: failed program was:" >&5
21601sed 's/^/| /' conftest.$ac_ext >&5
21602
21603ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
21604 if test $ac_lo -le $ac_mid; then
21605 ac_lo= ac_hi=
21606 break
21607 fi
21608 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 21609fi
ac1cb8d3 21610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21611 done
21612else
21613 echo "$as_me: failed program was:" >&5
21614sed 's/^/| /' conftest.$ac_ext >&5
21615
21616cat >conftest.$ac_ext <<_ACEOF
21617/* confdefs.h. */
21618_ACEOF
21619cat confdefs.h >>conftest.$ac_ext
21620cat >>conftest.$ac_ext <<_ACEOF
21621/* end confdefs.h. */
21622$ac_includes_default
21623int
21624main ()
21625{
21626static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21627test_array [0] = 0
21628
21629 ;
21630 return 0;
21631}
21632_ACEOF
21633rm -f conftest.$ac_objext
21634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21635 (eval $ac_compile) 2>conftest.er1
a848cd7e 21636 ac_status=$?
ac1cb8d3
VS
21637 grep -v '^ *+' conftest.er1 >conftest.err
21638 rm -f conftest.er1
21639 cat conftest.err >&5
a848cd7e
SC
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); } &&
bb9e79c0 21642 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21644 (eval $ac_try) 2>&5
21645 ac_status=$?
21646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647 (exit $ac_status); }; } &&
21648 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21650 (eval $ac_try) 2>&5
21651 ac_status=$?
21652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653 (exit $ac_status); }; }; then
21654 ac_hi=-1 ac_mid=-1
21655 while :; do
21656 cat >conftest.$ac_ext <<_ACEOF
21657/* confdefs.h. */
21658_ACEOF
21659cat confdefs.h >>conftest.$ac_ext
21660cat >>conftest.$ac_ext <<_ACEOF
21661/* end confdefs.h. */
21662$ac_includes_default
21663int
21664main ()
21665{
21666static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21667test_array [0] = 0
21668
21669 ;
21670 return 0;
21671}
21672_ACEOF
21673rm -f conftest.$ac_objext
21674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21675 (eval $ac_compile) 2>conftest.er1
a848cd7e 21676 ac_status=$?
ac1cb8d3
VS
21677 grep -v '^ *+' conftest.er1 >conftest.err
21678 rm -f conftest.er1
21679 cat conftest.err >&5
a848cd7e
SC
21680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681 (exit $ac_status); } &&
bb9e79c0 21682 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21684 (eval $ac_try) 2>&5
21685 ac_status=$?
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); }; } &&
21688 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
21694 ac_lo=$ac_mid; break
21695else
21696 echo "$as_me: failed program was:" >&5
21697sed 's/^/| /' conftest.$ac_ext >&5
21698
21699ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
21700 if test $ac_mid -le $ac_hi; then
21701 ac_lo= ac_hi=
21702 break
21703 fi
21704 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21705fi
ac1cb8d3 21706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21707 done
21708else
21709 echo "$as_me: failed program was:" >&5
21710sed 's/^/| /' conftest.$ac_ext >&5
21711
21712ac_lo= ac_hi=
21713fi
ac1cb8d3 21714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21715fi
ac1cb8d3 21716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21717# Binary search between lo and hi bounds.
21718while test "x$ac_lo" != "x$ac_hi"; do
21719 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21720 cat >conftest.$ac_ext <<_ACEOF
21721/* confdefs.h. */
21722_ACEOF
21723cat confdefs.h >>conftest.$ac_ext
21724cat >>conftest.$ac_ext <<_ACEOF
21725/* end confdefs.h. */
21726$ac_includes_default
21727int
21728main ()
21729{
21730static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21731test_array [0] = 0
21732
21733 ;
21734 return 0;
21735}
21736_ACEOF
21737rm -f conftest.$ac_objext
21738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21739 (eval $ac_compile) 2>conftest.er1
a848cd7e 21740 ac_status=$?
ac1cb8d3
VS
21741 grep -v '^ *+' conftest.er1 >conftest.err
21742 rm -f conftest.er1
21743 cat conftest.err >&5
a848cd7e
SC
21744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); } &&
bb9e79c0 21746 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21748 (eval $ac_try) 2>&5
21749 ac_status=$?
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); }; } &&
21752 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21754 (eval $ac_try) 2>&5
21755 ac_status=$?
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); }; }; then
21758 ac_hi=$ac_mid
21759else
21760 echo "$as_me: failed program was:" >&5
21761sed 's/^/| /' conftest.$ac_ext >&5
21762
21763ac_lo=`expr '(' $ac_mid ')' + 1`
21764fi
ac1cb8d3 21765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21766done
21767case $ac_lo in
21768?*) ac_cv_sizeof_long_long=$ac_lo;;
21769'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21770See \`config.log' for more details." >&5
21771echo "$as_me: error: cannot compute sizeof (long long), 77
21772See \`config.log' for more details." >&2;}
21773 { (exit 1); exit 1; }; } ;;
21774esac
21775else
21776 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
21777 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21778echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
21779 { (exit 1); exit 1; }; }
21780else
21781 cat >conftest.$ac_ext <<_ACEOF
21782/* confdefs.h. */
21783_ACEOF
21784cat confdefs.h >>conftest.$ac_ext
21785cat >>conftest.$ac_ext <<_ACEOF
21786/* end confdefs.h. */
21787$ac_includes_default
21788long longval () { return (long) (sizeof (long long)); }
21789unsigned long ulongval () { return (long) (sizeof (long long)); }
21790#include <stdio.h>
21791#include <stdlib.h>
21792int
21793main ()
21794{
21795
21796 FILE *f = fopen ("conftest.val", "w");
21797 if (! f)
21798 exit (1);
21799 if (((long) (sizeof (long long))) < 0)
21800 {
21801 long i = longval ();
21802 if (i != ((long) (sizeof (long long))))
21803 exit (1);
21804 fprintf (f, "%ld\n", i);
21805 }
21806 else
21807 {
21808 unsigned long i = ulongval ();
21809 if (i != ((long) (sizeof (long long))))
21810 exit (1);
21811 fprintf (f, "%lu\n", i);
21812 }
21813 exit (ferror (f) || fclose (f) != 0);
21814
21815 ;
21816 return 0;
21817}
21818_ACEOF
21819rm -f conftest$ac_exeext
21820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21821 (eval $ac_link) 2>&5
21822 ac_status=$?
21823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21826 (eval $ac_try) 2>&5
21827 ac_status=$?
21828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829 (exit $ac_status); }; }; then
21830 ac_cv_sizeof_long_long=`cat conftest.val`
21831else
21832 echo "$as_me: program exited with status $ac_status" >&5
21833echo "$as_me: failed program was:" >&5
21834sed 's/^/| /' conftest.$ac_ext >&5
21835
21836( exit $ac_status )
21837{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21838See \`config.log' for more details." >&5
21839echo "$as_me: error: cannot compute sizeof (long long), 77
21840See \`config.log' for more details." >&2;}
21841 { (exit 1); exit 1; }; }
21842fi
ac1cb8d3 21843rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21844fi
21845fi
21846rm -f conftest.val
21847else
21848 ac_cv_sizeof_long_long=0
21849fi
21850fi
21851echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21852echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21853cat >>confdefs.h <<_ACEOF
21854#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21855_ACEOF
21856
21857
21858esac
21859
238ecede
MW
21860echo "$as_me:$LINENO: checking for wchar_t" >&5
21861echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21862if test "${ac_cv_type_wchar_t+set}" = set; then
21863 echo $ECHO_N "(cached) $ECHO_C" >&6
21864else
21865 cat >conftest.$ac_ext <<_ACEOF
21866/* confdefs.h. */
21867_ACEOF
21868cat confdefs.h >>conftest.$ac_ext
21869cat >>conftest.$ac_ext <<_ACEOF
21870/* end confdefs.h. */
21871
83d8eb47
MW
21872 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21873 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21874 # error "fake wchar_t"
21875 #endif
21876 #ifdef HAVE_WCHAR_H
21877 # ifdef __CYGWIN__
21878 # include <stddef.h>
21879 # endif
21880 # include <wchar.h>
21881 #endif
21882 #ifdef HAVE_STDLIB_H
21883 # include <stdlib.h>
21884 #endif
21885 #include <stdio.h>
21886
21887
21888
21889int
21890main ()
21891{
21892if ((wchar_t *) 0)
21893 return 0;
21894if (sizeof (wchar_t))
21895 return 0;
21896 ;
21897 return 0;
21898}
21899_ACEOF
21900rm -f conftest.$ac_objext
21901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21902 (eval $ac_compile) 2>conftest.er1
21903 ac_status=$?
21904 grep -v '^ *+' conftest.er1 >conftest.err
21905 rm -f conftest.er1
21906 cat conftest.err >&5
21907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908 (exit $ac_status); } &&
bb9e79c0 21909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21911 (eval $ac_try) 2>&5
21912 ac_status=$?
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); }; } &&
21915 { ac_try='test -s conftest.$ac_objext'
21916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21917 (eval $ac_try) 2>&5
21918 ac_status=$?
21919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920 (exit $ac_status); }; }; then
21921 ac_cv_type_wchar_t=yes
21922else
21923 echo "$as_me: failed program was:" >&5
21924sed 's/^/| /' conftest.$ac_ext >&5
21925
21926ac_cv_type_wchar_t=no
21927fi
21928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21929fi
21930echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21931echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21932
a848cd7e
SC
21933echo "$as_me:$LINENO: checking size of wchar_t" >&5
21934echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 21935if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
21936 echo $ECHO_N "(cached) $ECHO_C" >&6
21937else
238ecede
MW
21938 if test "$ac_cv_type_wchar_t" = yes; then
21939 # The cast to unsigned long works around a bug in the HP C Compiler
21940 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21941 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21942 # This bug is HP SR number 8606223364.
21943 if test "$cross_compiling" = yes; then
21944 # Depending upon the size, compute the lo and hi bounds.
21945cat >conftest.$ac_ext <<_ACEOF
21946/* confdefs.h. */
21947_ACEOF
21948cat confdefs.h >>conftest.$ac_ext
21949cat >>conftest.$ac_ext <<_ACEOF
21950/* end confdefs.h. */
21951
83d8eb47
MW
21952 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21953 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21954 # error "fake wchar_t"
21955 #endif
21956 #ifdef HAVE_WCHAR_H
21957 # ifdef __CYGWIN__
21958 # include <stddef.h>
21959 # endif
21960 # include <wchar.h>
21961 #endif
21962 #ifdef HAVE_STDLIB_H
21963 # include <stdlib.h>
21964 #endif
21965 #include <stdio.h>
21966
21967
21968
21969int
21970main ()
21971{
21972static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21973test_array [0] = 0
21974
21975 ;
21976 return 0;
21977}
21978_ACEOF
21979rm -f conftest.$ac_objext
21980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21981 (eval $ac_compile) 2>conftest.er1
21982 ac_status=$?
21983 grep -v '^ *+' conftest.er1 >conftest.err
21984 rm -f conftest.er1
21985 cat conftest.err >&5
21986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987 (exit $ac_status); } &&
bb9e79c0 21988 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21990 (eval $ac_try) 2>&5
21991 ac_status=$?
21992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); }; } &&
21994 { ac_try='test -s conftest.$ac_objext'
21995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21996 (eval $ac_try) 2>&5
21997 ac_status=$?
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); }; }; then
22000 ac_lo=0 ac_mid=0
22001 while :; do
22002 cat >conftest.$ac_ext <<_ACEOF
22003/* confdefs.h. */
22004_ACEOF
22005cat confdefs.h >>conftest.$ac_ext
22006cat >>conftest.$ac_ext <<_ACEOF
22007/* end confdefs.h. */
22008
83d8eb47
MW
22009 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22010 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
22011 # error "fake wchar_t"
22012 #endif
22013 #ifdef HAVE_WCHAR_H
22014 # ifdef __CYGWIN__
22015 # include <stddef.h>
22016 # endif
22017 # include <wchar.h>
22018 #endif
22019 #ifdef HAVE_STDLIB_H
22020 # include <stdlib.h>
22021 #endif
22022 #include <stdio.h>
22023
22024
22025
22026int
22027main ()
22028{
22029static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
22030test_array [0] = 0
22031
22032 ;
22033 return 0;
22034}
22035_ACEOF
22036rm -f conftest.$ac_objext
22037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22038 (eval $ac_compile) 2>conftest.er1
22039 ac_status=$?
22040 grep -v '^ *+' conftest.er1 >conftest.err
22041 rm -f conftest.er1
22042 cat conftest.err >&5
22043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044 (exit $ac_status); } &&
bb9e79c0 22045 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
22046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22047 (eval $ac_try) 2>&5
22048 ac_status=$?
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); }; } &&
22051 { ac_try='test -s conftest.$ac_objext'
22052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22053 (eval $ac_try) 2>&5
22054 ac_status=$?
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); }; }; then
22057 ac_hi=$ac_mid; break
22058else
22059 echo "$as_me: failed program was:" >&5
22060sed 's/^/| /' conftest.$ac_ext >&5
22061
22062ac_lo=`expr $ac_mid + 1`
22063 if test $ac_lo -le $ac_mid; then
22064 ac_lo= ac_hi=
22065 break
22066 fi
22067 ac_mid=`expr 2 '*' $ac_mid + 1`
22068fi
22069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22070 done
22071else
22072 echo "$as_me: failed program was:" >&5
22073sed 's/^/| /' conftest.$ac_ext >&5
22074
22075cat >conftest.$ac_ext <<_ACEOF
22076/* confdefs.h. */
22077_ACEOF
22078cat confdefs.h >>conftest.$ac_ext
22079cat >>conftest.$ac_ext <<_ACEOF
22080/* end confdefs.h. */
22081
83d8eb47
MW
22082 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22083 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
22084 # error "fake wchar_t"
22085 #endif
22086 #ifdef HAVE_WCHAR_H
22087 # ifdef __CYGWIN__
22088 # include <stddef.h>
22089 # endif
22090 # include <wchar.h>
22091 #endif
22092 #ifdef HAVE_STDLIB_H
22093 # include <stdlib.h>
22094 #endif
22095 #include <stdio.h>
22096
22097
22098
22099int
22100main ()
22101{
22102static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
22103test_array [0] = 0
22104
22105 ;
22106 return 0;
22107}
22108_ACEOF
22109rm -f conftest.$ac_objext
22110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22111 (eval $ac_compile) 2>conftest.er1
22112 ac_status=$?
22113 grep -v '^ *+' conftest.er1 >conftest.err
22114 rm -f conftest.er1
22115 cat conftest.err >&5
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); } &&
bb9e79c0 22118 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
22119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22120 (eval $ac_try) 2>&5
22121 ac_status=$?
22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123 (exit $ac_status); }; } &&
22124 { ac_try='test -s conftest.$ac_objext'
22125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22126 (eval $ac_try) 2>&5
22127 ac_status=$?
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); }; }; then
22130 ac_hi=-1 ac_mid=-1
22131 while :; do
22132 cat >conftest.$ac_ext <<_ACEOF
22133/* confdefs.h. */
22134_ACEOF
22135cat confdefs.h >>conftest.$ac_ext
22136cat >>conftest.$ac_ext <<_ACEOF
22137/* end confdefs.h. */
22138
83d8eb47
MW
22139 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22140 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
22141 # error "fake wchar_t"
22142 #endif
22143 #ifdef HAVE_WCHAR_H
22144 # ifdef __CYGWIN__
22145 # include <stddef.h>
22146 # endif
22147 # include <wchar.h>
22148 #endif
22149 #ifdef HAVE_STDLIB_H
22150 # include <stdlib.h>
22151 #endif
22152 #include <stdio.h>
22153
22154
22155
22156int
22157main ()
22158{
22159static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
22160test_array [0] = 0
22161
22162 ;
22163 return 0;
22164}
22165_ACEOF
22166rm -f conftest.$ac_objext
22167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22168 (eval $ac_compile) 2>conftest.er1
22169 ac_status=$?
22170 grep -v '^ *+' conftest.er1 >conftest.err
22171 rm -f conftest.er1
22172 cat conftest.err >&5
22173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); } &&
bb9e79c0 22175 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
22176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22177 (eval $ac_try) 2>&5
22178 ac_status=$?
22179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); }; } &&
22181 { ac_try='test -s conftest.$ac_objext'
22182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22183 (eval $ac_try) 2>&5
22184 ac_status=$?
22185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186 (exit $ac_status); }; }; then
22187 ac_lo=$ac_mid; break
22188else
22189 echo "$as_me: failed program was:" >&5
22190sed 's/^/| /' conftest.$ac_ext >&5
22191
22192ac_hi=`expr '(' $ac_mid ')' - 1`
22193 if test $ac_mid -le $ac_hi; then
22194 ac_lo= ac_hi=
22195 break
22196 fi
22197 ac_mid=`expr 2 '*' $ac_mid`
22198fi
22199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22200 done
22201else
22202 echo "$as_me: failed program was:" >&5
22203sed 's/^/| /' conftest.$ac_ext >&5
22204
22205ac_lo= ac_hi=
22206fi
22207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22208fi
22209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22210# Binary search between lo and hi bounds.
22211while test "x$ac_lo" != "x$ac_hi"; do
22212 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22213 cat >conftest.$ac_ext <<_ACEOF
22214/* confdefs.h. */
22215_ACEOF
22216cat confdefs.h >>conftest.$ac_ext
22217cat >>conftest.$ac_ext <<_ACEOF
22218/* end confdefs.h. */
22219
83d8eb47
MW
22220 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22221 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
22222 # error "fake wchar_t"
22223 #endif
22224 #ifdef HAVE_WCHAR_H
22225 # ifdef __CYGWIN__
22226 # include <stddef.h>
22227 # endif
22228 # include <wchar.h>
22229 #endif
22230 #ifdef HAVE_STDLIB_H
22231 # include <stdlib.h>
22232 #endif
22233 #include <stdio.h>
a848cd7e 22234
a848cd7e 22235
a848cd7e 22236
238ecede
MW
22237int
22238main ()
22239{
22240static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
22241test_array [0] = 0
a848cd7e 22242
238ecede
MW
22243 ;
22244 return 0;
22245}
22246_ACEOF
22247rm -f conftest.$ac_objext
22248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22249 (eval $ac_compile) 2>conftest.er1
22250 ac_status=$?
22251 grep -v '^ *+' conftest.er1 >conftest.err
22252 rm -f conftest.er1
22253 cat conftest.err >&5
22254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255 (exit $ac_status); } &&
bb9e79c0 22256 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
22257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22258 (eval $ac_try) 2>&5
22259 ac_status=$?
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); }; } &&
22262 { ac_try='test -s conftest.$ac_objext'
22263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22264 (eval $ac_try) 2>&5
22265 ac_status=$?
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267 (exit $ac_status); }; }; then
22268 ac_hi=$ac_mid
22269else
22270 echo "$as_me: failed program was:" >&5
22271sed 's/^/| /' conftest.$ac_ext >&5
22272
22273ac_lo=`expr '(' $ac_mid ')' + 1`
22274fi
22275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22276done
22277case $ac_lo in
22278?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22279'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
22280See \`config.log' for more details." >&5
22281echo "$as_me: error: cannot compute sizeof (wchar_t), 77
22282See \`config.log' for more details." >&2;}
22283 { (exit 1); exit 1; }; } ;;
22284esac
22285else
22286 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
22287 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
22288echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 22289 { (exit 1); exit 1; }; }
a848cd7e
SC
22290else
22291 cat >conftest.$ac_ext <<_ACEOF
22292/* confdefs.h. */
22293_ACEOF
22294cat confdefs.h >>conftest.$ac_ext
22295cat >>conftest.$ac_ext <<_ACEOF
22296/* end confdefs.h. */
22297
83d8eb47
MW
22298 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22299 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
22300 # error "fake wchar_t"
22301 #endif
22302 #ifdef HAVE_WCHAR_H
22303 # ifdef __CYGWIN__
22304 # include <stddef.h>
22305 # endif
22306 # include <wchar.h>
22307 #endif
22308 #ifdef HAVE_STDLIB_H
22309 # include <stdlib.h>
22310 #endif
22311 #include <stdio.h>
22312
22313
22314
22315long longval () { return (long) (sizeof (wchar_t)); }
22316unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
22317#include <stdio.h>
22318#include <stdlib.h>
22319int
22320main ()
22321{
a848cd7e 22322
238ecede
MW
22323 FILE *f = fopen ("conftest.val", "w");
22324 if (! f)
22325 exit (1);
22326 if (((long) (sizeof (wchar_t))) < 0)
22327 {
22328 long i = longval ();
22329 if (i != ((long) (sizeof (wchar_t))))
22330 exit (1);
22331 fprintf (f, "%ld\n", i);
22332 }
22333 else
22334 {
22335 unsigned long i = ulongval ();
22336 if (i != ((long) (sizeof (wchar_t))))
22337 exit (1);
22338 fprintf (f, "%lu\n", i);
22339 }
22340 exit (ferror (f) || fclose (f) != 0);
22341
22342 ;
22343 return 0;
22344}
a848cd7e
SC
22345_ACEOF
22346rm -f conftest$ac_exeext
22347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22348 (eval $ac_link) 2>&5
22349 ac_status=$?
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22353 (eval $ac_try) 2>&5
22354 ac_status=$?
22355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356 (exit $ac_status); }; }; then
238ecede 22357 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
22358else
22359 echo "$as_me: program exited with status $ac_status" >&5
22360echo "$as_me: failed program was:" >&5
22361sed 's/^/| /' conftest.$ac_ext >&5
22362
22363( exit $ac_status )
238ecede
MW
22364{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
22365See \`config.log' for more details." >&5
22366echo "$as_me: error: cannot compute sizeof (wchar_t), 77
22367See \`config.log' for more details." >&2;}
22368 { (exit 1); exit 1; }; }
a848cd7e 22369fi
ac1cb8d3 22370rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 22371fi
a848cd7e 22372fi
238ecede
MW
22373rm -f conftest.val
22374else
22375 ac_cv_sizeof_wchar_t=0
22376fi
22377fi
22378echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22379echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 22380cat >>confdefs.h <<_ACEOF
238ecede 22381#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
22382_ACEOF
22383
22384
47a7e797
MW
22385if test "$ac_cv_sizeof_wchar_t" != "0"; then
22386 wxUSE_WCHAR_T=yes
22387else
22388 wxUSE_WCHAR_T=no
22389fi
238ecede 22390
ba3d13e1
VZ
22391echo "$as_me:$LINENO: checking for va_copy" >&5
22392echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
22393if test "${wx_cv_func_va_copy+set}" = set; then
22394 echo $ECHO_N "(cached) $ECHO_C" >&6
22395else
22396
22397 cat >conftest.$ac_ext <<_ACEOF
22398
22399 #include <stdarg.h>
22400 void foo(char *f, ...)
22401 {
22402 va_list ap1, ap2;
22403 va_start(ap1, f);
22404 va_copy(ap2, ap1);
22405 va_end(ap2);
22406 va_end(ap1);
22407 }
5886b072
VZ
22408 int main()
22409 {
b902e639
VZ
22410 foo("hi", 17);
22411 return 0;
5886b072 22412 }
ba3d13e1
VZ
22413_ACEOF
22414rm -f conftest.$ac_objext conftest$ac_exeext
22415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22416 (eval $ac_link) 2>conftest.er1
22417 ac_status=$?
22418 grep -v '^ *+' conftest.er1 >conftest.err
22419 rm -f conftest.er1
22420 cat conftest.err >&5
22421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422 (exit $ac_status); } &&
bb9e79c0 22423 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
22424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22425 (eval $ac_try) 2>&5
22426 ac_status=$?
22427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428 (exit $ac_status); }; } &&
22429 { ac_try='test -s conftest$ac_exeext'
22430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22431 (eval $ac_try) 2>&5
22432 ac_status=$?
22433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434 (exit $ac_status); }; }; then
22435 wx_cv_func_va_copy=yes
22436else
22437 echo "$as_me: failed program was:" >&5
22438sed 's/^/| /' conftest.$ac_ext >&5
22439
22440wx_cv_func_va_copy=no
22441
22442fi
22443rm -f conftest.err conftest.$ac_objext \
22444 conftest$ac_exeext conftest.$ac_ext
22445
22446
22447fi
22448echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
22449echo "${ECHO_T}$wx_cv_func_va_copy" >&6
22450
22451if test $wx_cv_func_va_copy = "yes"; then
22452 cat >>confdefs.h <<\_ACEOF
22453#define HAVE_VA_COPY 1
22454_ACEOF
22455
22456else
22457 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
22458echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
22459if test "${wx_cv_type_va_list_lvalue+set}" = set; then
22460 echo $ECHO_N "(cached) $ECHO_C" >&6
22461else
22462
22463 if test "$cross_compiling" = yes; then
22464 wx_cv_type_va_list_lvalue=yes
22465
22466else
22467 cat >conftest.$ac_ext <<_ACEOF
22468
22469 #include <stdarg.h>
22470 int foo(char *f, ...)
22471 {
22472 va_list ap1, ap2;
22473 va_start(ap1, f);
22474 ap2 = ap1;
22475 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
22476 return 1;
22477 va_end(ap2);
22478 va_end(ap1);
22479 return 0;
22480 }
22481 int main()
22482 {
22483 return foo("hi", 17);
22484 }
22485_ACEOF
22486rm -f conftest$ac_exeext
22487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22488 (eval $ac_link) 2>&5
22489 ac_status=$?
22490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22493 (eval $ac_try) 2>&5
22494 ac_status=$?
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); }; }; then
22497 wx_cv_type_va_list_lvalue=yes
22498else
22499 echo "$as_me: program exited with status $ac_status" >&5
22500echo "$as_me: failed program was:" >&5
22501sed 's/^/| /' conftest.$ac_ext >&5
22502
22503( exit $ac_status )
22504wx_cv_type_va_list_lvalue=no
22505fi
22506rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22507fi
22508
22509
22510fi
22511echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
22512echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
22513
22514 if test $wx_cv_type_va_list_lvalue != "yes"; then
22515 cat >>confdefs.h <<\_ACEOF
22516#define VA_LIST_IS_ARRAY 1
22517_ACEOF
22518
22519 fi
22520fi
22521
ca766534
VS
22522echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
22523echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6
22524if test "${wx_cv_have_variadic_macros+set}" = set; then
22525 echo $ECHO_N "(cached) $ECHO_C" >&6
22526else
22527
22528 cat >conftest.$ac_ext <<_ACEOF
22529/* confdefs.h. */
22530_ACEOF
22531cat confdefs.h >>conftest.$ac_ext
22532cat >>conftest.$ac_ext <<_ACEOF
22533/* end confdefs.h. */
22534
22535 #include <stdio.h>
22536 #define test(fmt, ...) printf(fmt, __VA_ARGS__)
22537
22538int
22539main ()
22540{
22541
22542 test("%s %d %p", "test", 1, 0);
22543
22544
22545 ;
22546 return 0;
22547}
22548_ACEOF
22549rm -f conftest.$ac_objext
22550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22551 (eval $ac_compile) 2>conftest.er1
22552 ac_status=$?
22553 grep -v '^ *+' conftest.er1 >conftest.err
22554 rm -f conftest.er1
22555 cat conftest.err >&5
22556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); } &&
bb9e79c0 22558 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ca766534
VS
22559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22560 (eval $ac_try) 2>&5
22561 ac_status=$?
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); }; } &&
22564 { ac_try='test -s conftest.$ac_objext'
22565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22566 (eval $ac_try) 2>&5
22567 ac_status=$?
22568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569 (exit $ac_status); }; }; then
22570 wx_cv_have_variadic_macros=yes
22571else
22572 echo "$as_me: failed program was:" >&5
22573sed 's/^/| /' conftest.$ac_ext >&5
22574
22575wx_cv_have_variadic_macros=no
22576
22577fi
22578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22579
22580
22581fi
22582echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
22583echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6
22584
22585if test $wx_cv_have_variadic_macros = "yes"; then
22586 cat >>confdefs.h <<\_ACEOF
22587#define HAVE_VARIADIC_MACROS 1
22588_ACEOF
22589
22590fi
22591
a848cd7e
SC
22592# Check whether --enable-largefile or --disable-largefile was given.
22593if test "${enable_largefile+set}" = set; then
22594 enableval="$enable_largefile"
22595
22596fi;
22597if test "$enable_largefile" != no; then
22598 wx_largefile=no
22599
22600 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22601echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
22602if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22603 echo $ECHO_N "(cached) $ECHO_C" >&6
22604else
22605
22606 cat >conftest.$ac_ext <<_ACEOF
22607/* confdefs.h. */
22608_ACEOF
22609cat confdefs.h >>conftest.$ac_ext
22610cat >>conftest.$ac_ext <<_ACEOF
22611/* end confdefs.h. */
22612#define _FILE_OFFSET_BITS 64
22613 #include <sys/types.h>
22614int
22615main ()
22616{
22617typedef struct {
22618 unsigned int field: sizeof(off_t) == 8;
22619} wxlf;
22620
22621 ;
22622 return 0;
22623}
22624_ACEOF
22625rm -f conftest.$ac_objext
22626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22627 (eval $ac_compile) 2>conftest.er1
a848cd7e 22628 ac_status=$?
ac1cb8d3
VS
22629 grep -v '^ *+' conftest.er1 >conftest.err
22630 rm -f conftest.er1
22631 cat conftest.err >&5
a848cd7e
SC
22632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633 (exit $ac_status); } &&
bb9e79c0 22634 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22636 (eval $ac_try) 2>&5
22637 ac_status=$?
22638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639 (exit $ac_status); }; } &&
22640 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22642 (eval $ac_try) 2>&5
22643 ac_status=$?
22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); }; }; then
22646 ac_cv_sys_file_offset_bits=64
22647else
22648 echo "$as_me: failed program was:" >&5
22649sed 's/^/| /' conftest.$ac_ext >&5
22650
22651ac_cv_sys_file_offset_bits=no
22652fi
ac1cb8d3 22653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22654
22655
22656fi
22657echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22658echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
22659
22660 if test "$ac_cv_sys_file_offset_bits" != no; then
22661 wx_largefile=yes
22662 cat >>confdefs.h <<_ACEOF
22663#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22664_ACEOF
22665
22666 fi
22667
22668 if test "x$wx_largefile" != "xyes"; then
22669
22670 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22671echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
22672if test "${ac_cv_sys_large_files+set}" = set; then
22673 echo $ECHO_N "(cached) $ECHO_C" >&6
22674else
22675
22676 cat >conftest.$ac_ext <<_ACEOF
22677/* confdefs.h. */
22678_ACEOF
22679cat confdefs.h >>conftest.$ac_ext
22680cat >>conftest.$ac_ext <<_ACEOF
22681/* end confdefs.h. */
22682#define _LARGE_FILES 1
22683 #include <sys/types.h>
22684int
22685main ()
22686{
22687typedef struct {
22688 unsigned int field: sizeof(off_t) == 8;
22689} wxlf;
22690
22691 ;
22692 return 0;
22693}
22694_ACEOF
22695rm -f conftest.$ac_objext
22696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22697 (eval $ac_compile) 2>conftest.er1
a848cd7e 22698 ac_status=$?
ac1cb8d3
VS
22699 grep -v '^ *+' conftest.er1 >conftest.err
22700 rm -f conftest.er1
22701 cat conftest.err >&5
a848cd7e
SC
22702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703 (exit $ac_status); } &&
bb9e79c0 22704 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22706 (eval $ac_try) 2>&5
22707 ac_status=$?
22708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709 (exit $ac_status); }; } &&
22710 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22712 (eval $ac_try) 2>&5
22713 ac_status=$?
22714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22715 (exit $ac_status); }; }; then
22716 ac_cv_sys_large_files=1
22717else
22718 echo "$as_me: failed program was:" >&5
22719sed 's/^/| /' conftest.$ac_ext >&5
22720
22721ac_cv_sys_large_files=no
22722fi
ac1cb8d3 22723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22724
22725
22726fi
22727echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22728echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22729
22730 if test "$ac_cv_sys_large_files" != no; then
22731 wx_largefile=yes
22732 cat >>confdefs.h <<_ACEOF
22733#define _LARGE_FILES $ac_cv_sys_large_files
22734_ACEOF
22735
22736 fi
22737
22738 fi
22739
22740 echo "$as_me:$LINENO: checking if large file support is available" >&5
22741echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
22742 if test "x$wx_largefile" = "xyes"; then
22743 cat >>confdefs.h <<\_ACEOF
22744#define HAVE_LARGEFILE_SUPPORT 1
22745_ACEOF
22746
22747 fi
22748 echo "$as_me:$LINENO: result: $wx_largefile" >&5
22749echo "${ECHO_T}$wx_largefile" >&6
22750fi
22751
5b674b9d
DE
22752
22753if test "x$wx_largefile" = "xyes"; then
22754 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 22755 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
22756
22757 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
22758 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
22759echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
22760if test "${wx_cv_STDC_EXT_required+set}" = set; then
22761 echo $ECHO_N "(cached) $ECHO_C" >&6
22762else
22763
00421666
MW
22764 cat >conftest.$ac_ext <<_ACEOF
22765/* confdefs.h. */
22766_ACEOF
22767cat confdefs.h >>conftest.$ac_ext
22768cat >>conftest.$ac_ext <<_ACEOF
22769/* end confdefs.h. */
22770
22771int
22772main ()
22773{
22774
22775 #ifndef __STDC_EXT__
22776 choke me
22777 #endif
22778
22779 ;
22780 return 0;
22781}
22782_ACEOF
22783rm -f conftest.$ac_objext
22784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22785 (eval $ac_compile) 2>conftest.er1
22786 ac_status=$?
22787 grep -v '^ *+' conftest.er1 >conftest.err
22788 rm -f conftest.er1
22789 cat conftest.err >&5
22790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791 (exit $ac_status); } &&
bb9e79c0 22792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
00421666
MW
22793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22794 (eval $ac_try) 2>&5
22795 ac_status=$?
22796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797 (exit $ac_status); }; } &&
22798 { ac_try='test -s conftest.$ac_objext'
22799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22800 (eval $ac_try) 2>&5
22801 ac_status=$?
22802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22803 (exit $ac_status); }; }; then
22804 wx_cv_STDC_EXT_required=no
22805else
22806 echo "$as_me: failed program was:" >&5
22807sed 's/^/| /' conftest.$ac_ext >&5
22808
22809wx_cv_STDC_EXT_required=yes
22810
22811fi
22812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
00421666
MW
22813
22814
22815fi
22816echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22817echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22818 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 22819 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
22820 fi
22821 fi
5b674b9d 22822 else
5ff751d6 22823 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
22824 fi
22825 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
22826echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22827if test "${ac_cv_sys_largefile_source+set}" = set; then
22828 echo $ECHO_N "(cached) $ECHO_C" >&6
22829else
22830 while :; do
22831 ac_cv_sys_largefile_source=no
22832 cat >conftest.$ac_ext <<_ACEOF
22833/* confdefs.h. */
22834_ACEOF
22835cat confdefs.h >>conftest.$ac_ext
22836cat >>conftest.$ac_ext <<_ACEOF
22837/* end confdefs.h. */
22838#include <stdio.h>
22839int
22840main ()
22841{
22842return !fseeko;
22843 ;
22844 return 0;
22845}
22846_ACEOF
22847rm -f conftest.$ac_objext
22848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22849 (eval $ac_compile) 2>conftest.er1
22850 ac_status=$?
22851 grep -v '^ *+' conftest.er1 >conftest.err
22852 rm -f conftest.er1
22853 cat conftest.err >&5
22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); } &&
bb9e79c0 22856 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22858 (eval $ac_try) 2>&5
22859 ac_status=$?
22860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861 (exit $ac_status); }; } &&
22862 { ac_try='test -s conftest.$ac_objext'
22863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22864 (eval $ac_try) 2>&5
22865 ac_status=$?
22866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867 (exit $ac_status); }; }; then
22868 break
22869else
22870 echo "$as_me: failed program was:" >&5
22871sed 's/^/| /' conftest.$ac_ext >&5
22872
22873fi
22874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22875 cat >conftest.$ac_ext <<_ACEOF
22876/* confdefs.h. */
22877_ACEOF
22878cat confdefs.h >>conftest.$ac_ext
22879cat >>conftest.$ac_ext <<_ACEOF
22880/* end confdefs.h. */
22881#define _LARGEFILE_SOURCE 1
22882#include <stdio.h>
22883int
22884main ()
22885{
22886return !fseeko;
22887 ;
22888 return 0;
22889}
22890_ACEOF
22891rm -f conftest.$ac_objext
22892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22893 (eval $ac_compile) 2>conftest.er1
22894 ac_status=$?
22895 grep -v '^ *+' conftest.er1 >conftest.err
22896 rm -f conftest.er1
22897 cat conftest.err >&5
22898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899 (exit $ac_status); } &&
bb9e79c0 22900 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22902 (eval $ac_try) 2>&5
22903 ac_status=$?
22904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905 (exit $ac_status); }; } &&
22906 { ac_try='test -s conftest.$ac_objext'
22907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22908 (eval $ac_try) 2>&5
22909 ac_status=$?
22910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911 (exit $ac_status); }; }; then
22912 ac_cv_sys_largefile_source=1; break
22913else
22914 echo "$as_me: failed program was:" >&5
22915sed 's/^/| /' conftest.$ac_ext >&5
22916
22917fi
22918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22919 break
22920done
22921fi
22922echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22923echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22924if test "$ac_cv_sys_largefile_source" != no; then
22925
22926cat >>confdefs.h <<_ACEOF
22927#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22928_ACEOF
22929
22930fi
22931rm -f conftest*
22932
22933# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22934# in glibc 2.1.3, but that breaks too many other things.
22935# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22936echo "$as_me:$LINENO: checking for fseeko" >&5
22937echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22938if test "${ac_cv_func_fseeko+set}" = set; then
22939 echo $ECHO_N "(cached) $ECHO_C" >&6
22940else
22941 cat >conftest.$ac_ext <<_ACEOF
22942/* confdefs.h. */
22943_ACEOF
22944cat confdefs.h >>conftest.$ac_ext
22945cat >>conftest.$ac_ext <<_ACEOF
22946/* end confdefs.h. */
22947#include <stdio.h>
22948int
22949main ()
22950{
22951return fseeko && fseeko (stdin, 0, 0);
22952 ;
22953 return 0;
22954}
22955_ACEOF
22956rm -f conftest.$ac_objext conftest$ac_exeext
22957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22958 (eval $ac_link) 2>conftest.er1
22959 ac_status=$?
22960 grep -v '^ *+' conftest.er1 >conftest.err
22961 rm -f conftest.er1
22962 cat conftest.err >&5
22963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22964 (exit $ac_status); } &&
bb9e79c0 22965 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22967 (eval $ac_try) 2>&5
22968 ac_status=$?
22969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970 (exit $ac_status); }; } &&
22971 { ac_try='test -s conftest$ac_exeext'
22972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22973 (eval $ac_try) 2>&5
22974 ac_status=$?
22975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976 (exit $ac_status); }; }; then
22977 ac_cv_func_fseeko=yes
22978else
22979 echo "$as_me: failed program was:" >&5
22980sed 's/^/| /' conftest.$ac_ext >&5
22981
22982ac_cv_func_fseeko=no
22983fi
22984rm -f conftest.err conftest.$ac_objext \
22985 conftest$ac_exeext conftest.$ac_ext
22986fi
22987echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22988echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22989if test $ac_cv_func_fseeko = yes; then
22990
22991cat >>confdefs.h <<\_ACEOF
22992#define HAVE_FSEEKO 1
22993_ACEOF
22994
22995fi
22996
5b674b9d 22997 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 22998 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 22999 fi
a848cd7e
SC
23000fi
23001
23002echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23003echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
23004if test "${ac_cv_c_bigendian+set}" = set; then
23005 echo $ECHO_N "(cached) $ECHO_C" >&6
23006else
23007 ac_cv_c_bigendian=unknown
23008# See if sys/param.h defines the BYTE_ORDER macro.
23009cat >conftest.$ac_ext <<_ACEOF
23010/* confdefs.h. */
23011_ACEOF
23012cat confdefs.h >>conftest.$ac_ext
23013cat >>conftest.$ac_ext <<_ACEOF
23014/* end confdefs.h. */
23015#include <sys/types.h>
23016#include <sys/param.h>
23017int
23018main ()
23019{
23020
23021#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
23022 bogus endian macros
23023#endif
23024 ;
23025 return 0;
23026}
23027_ACEOF
23028rm -f conftest.$ac_objext
23029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23030 (eval $ac_compile) 2>conftest.er1
a848cd7e 23031 ac_status=$?
ac1cb8d3
VS
23032 grep -v '^ *+' conftest.er1 >conftest.err
23033 rm -f conftest.er1
23034 cat conftest.err >&5
a848cd7e
SC
23035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036 (exit $ac_status); } &&
bb9e79c0 23037 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23039 (eval $ac_try) 2>&5
23040 ac_status=$?
23041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23042 (exit $ac_status); }; } &&
23043 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23045 (eval $ac_try) 2>&5
23046 ac_status=$?
23047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048 (exit $ac_status); }; }; then
23049 # It does; now see whether it defined to BIG_ENDIAN or not.
23050cat >conftest.$ac_ext <<_ACEOF
23051/* confdefs.h. */
23052_ACEOF
23053cat confdefs.h >>conftest.$ac_ext
23054cat >>conftest.$ac_ext <<_ACEOF
23055/* end confdefs.h. */
23056#include <sys/types.h>
23057#include <sys/param.h>
23058int
23059main ()
23060{
23061
23062#if BYTE_ORDER != BIG_ENDIAN
23063 not big endian
23064#endif
23065 ;
23066 return 0;
23067}
23068_ACEOF
23069rm -f conftest.$ac_objext
23070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23071 (eval $ac_compile) 2>conftest.er1
a848cd7e 23072 ac_status=$?
ac1cb8d3
VS
23073 grep -v '^ *+' conftest.er1 >conftest.err
23074 rm -f conftest.er1
23075 cat conftest.err >&5
a848cd7e
SC
23076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077 (exit $ac_status); } &&
bb9e79c0 23078 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23080 (eval $ac_try) 2>&5
23081 ac_status=$?
23082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23083 (exit $ac_status); }; } &&
23084 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23086 (eval $ac_try) 2>&5
23087 ac_status=$?
23088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089 (exit $ac_status); }; }; then
23090 ac_cv_c_bigendian=yes
23091else
23092 echo "$as_me: failed program was:" >&5
23093sed 's/^/| /' conftest.$ac_ext >&5
23094
23095ac_cv_c_bigendian=no
23096fi
ac1cb8d3 23097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23098else
23099 echo "$as_me: failed program was:" >&5
23100sed 's/^/| /' conftest.$ac_ext >&5
23101
23102fi
ac1cb8d3 23103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23104if test $ac_cv_c_bigendian = unknown; then
23105if test "$cross_compiling" = yes; then
23106 ac_cv_c_bigendian=unknown
23107else
23108 cat >conftest.$ac_ext <<_ACEOF
23109/* confdefs.h. */
23110_ACEOF
23111cat confdefs.h >>conftest.$ac_ext
23112cat >>conftest.$ac_ext <<_ACEOF
23113/* end confdefs.h. */
23114main () {
23115 /* Are we little or big endian? From Harbison&Steele. */
23116 union
23117 {
23118 long l;
23119 char c[sizeof (long)];
23120 } u;
23121 u.l = 1;
23122 exit (u.c[sizeof (long) - 1] == 1);
23123}
23124_ACEOF
23125rm -f conftest$ac_exeext
23126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23127 (eval $ac_link) 2>&5
23128 ac_status=$?
23129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23132 (eval $ac_try) 2>&5
23133 ac_status=$?
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); }; }; then
23136 ac_cv_c_bigendian=no
23137else
23138 echo "$as_me: program exited with status $ac_status" >&5
23139echo "$as_me: failed program was:" >&5
23140sed 's/^/| /' conftest.$ac_ext >&5
23141
23142( exit $ac_status )
23143ac_cv_c_bigendian=yes
23144fi
ac1cb8d3 23145rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23146fi
23147fi
23148fi
23149echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23150echo "${ECHO_T}$ac_cv_c_bigendian" >&6
23151if test $ac_cv_c_bigendian = unknown; then
23152 { 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
23153echo "$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;}
23154fi
23155if test $ac_cv_c_bigendian = yes; then
23156 cat >>confdefs.h <<\_ACEOF
23157#define WORDS_BIGENDIAN 1
23158_ACEOF
23159
23160fi
23161
23162
a848cd7e
SC
23163
23164
23165
23166 ac_ext=cc
23167ac_cpp='$CXXCPP $CPPFLAGS'
23168ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23169ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23170ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23171
23172
23173
23174for ac_header in iostream
23175do
23176as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23177if eval "test \"\${$as_ac_Header+set}\" = set"; then
23178 echo "$as_me:$LINENO: checking for $ac_header" >&5
23179echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23180if eval "test \"\${$as_ac_Header+set}\" = set"; then
23181 echo $ECHO_N "(cached) $ECHO_C" >&6
23182fi
23183echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23184echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23185else
23186 # Is the header compilable?
23187echo "$as_me:$LINENO: checking $ac_header usability" >&5
23188echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23189cat >conftest.$ac_ext <<_ACEOF
23190/* confdefs.h. */
23191_ACEOF
23192cat confdefs.h >>conftest.$ac_ext
23193cat >>conftest.$ac_ext <<_ACEOF
23194/* end confdefs.h. */
23195$ac_includes_default
23196#include <$ac_header>
23197_ACEOF
23198rm -f conftest.$ac_objext
23199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23200 (eval $ac_compile) 2>conftest.er1
a848cd7e 23201 ac_status=$?
ac1cb8d3
VS
23202 grep -v '^ *+' conftest.er1 >conftest.err
23203 rm -f conftest.er1
23204 cat conftest.err >&5
a848cd7e
SC
23205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206 (exit $ac_status); } &&
bb9e79c0 23207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23209 (eval $ac_try) 2>&5
23210 ac_status=$?
23211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23212 (exit $ac_status); }; } &&
23213 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23215 (eval $ac_try) 2>&5
23216 ac_status=$?
23217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218 (exit $ac_status); }; }; then
23219 ac_header_compiler=yes
23220else
23221 echo "$as_me: failed program was:" >&5
23222sed 's/^/| /' conftest.$ac_ext >&5
23223
23224ac_header_compiler=no
23225fi
ac1cb8d3 23226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23227echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23228echo "${ECHO_T}$ac_header_compiler" >&6
23229
23230# Is the header present?
23231echo "$as_me:$LINENO: checking $ac_header presence" >&5
23232echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23233cat >conftest.$ac_ext <<_ACEOF
23234/* confdefs.h. */
23235_ACEOF
23236cat confdefs.h >>conftest.$ac_ext
23237cat >>conftest.$ac_ext <<_ACEOF
23238/* end confdefs.h. */
23239#include <$ac_header>
23240_ACEOF
23241if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23243 ac_status=$?
23244 grep -v '^ *+' conftest.er1 >conftest.err
23245 rm -f conftest.er1
23246 cat conftest.err >&5
23247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248 (exit $ac_status); } >/dev/null; then
23249 if test -s conftest.err; then
23250 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23251 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
23252 else
23253 ac_cpp_err=
23254 fi
23255else
23256 ac_cpp_err=yes
23257fi
23258if test -z "$ac_cpp_err"; then
23259 ac_header_preproc=yes
23260else
23261 echo "$as_me: failed program was:" >&5
23262sed 's/^/| /' conftest.$ac_ext >&5
23263
23264 ac_header_preproc=no
23265fi
23266rm -f conftest.err conftest.$ac_ext
23267echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23268echo "${ECHO_T}$ac_header_preproc" >&6
23269
23270# So? What about this header?
ac1cb8d3
VS
23271case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23272 yes:no: )
a848cd7e
SC
23273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23274echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23276echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23277 ac_header_preproc=yes
a848cd7e 23278 ;;
ac1cb8d3 23279 no:yes:* )
a848cd7e
SC
23280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23281echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23283echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23284 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23285echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23286 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23287echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23289echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23290 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23291echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23292 (
23293 cat <<\_ASBOX
ac1cb8d3
VS
23294## ----------------------------------------- ##
23295## Report this to wx-dev@lists.wxwidgets.org ##
23296## ----------------------------------------- ##
a848cd7e
SC
23297_ASBOX
23298 ) |
23299 sed "s/^/$as_me: WARNING: /" >&2
23300 ;;
23301esac
23302echo "$as_me:$LINENO: checking for $ac_header" >&5
23303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23304if eval "test \"\${$as_ac_Header+set}\" = set"; then
23305 echo $ECHO_N "(cached) $ECHO_C" >&6
23306else
ac1cb8d3 23307 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
23308fi
23309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23310echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23311
23312fi
23313if test `eval echo '${'$as_ac_Header'}'` = yes; then
23314 cat >>confdefs.h <<_ACEOF
23315#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23316_ACEOF
23317
23318fi
23319
23320done
23321
23322
23323 if test "$ac_cv_header_iostream" = "yes" ; then
23324 :
23325 else
23326 cat >>confdefs.h <<\_ACEOF
23327#define wxUSE_IOSTREAMH 1
23328_ACEOF
23329
23330 fi
23331
5d7b7554
VZ
23332 ac_ext=cc
23333ac_cpp='$CXXCPP $CPPFLAGS'
23334ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23335ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23336ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23337
23338
23339
23340
23341 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
23342echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
23343if test "${wx_cv_cpp_bool+set}" = set; then
23344 echo $ECHO_N "(cached) $ECHO_C" >&6
23345else
23346
23347
23348
23349 ac_ext=cc
23350ac_cpp='$CXXCPP $CPPFLAGS'
23351ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23352ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23353ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23354
23355
23356 cat >conftest.$ac_ext <<_ACEOF
23357/* confdefs.h. */
23358_ACEOF
23359cat confdefs.h >>conftest.$ac_ext
23360cat >>conftest.$ac_ext <<_ACEOF
23361/* end confdefs.h. */
23362
23363
23364int
23365main ()
23366{
23367
23368 bool b = true;
23369
23370 return 0;
23371
23372 ;
23373 return 0;
23374}
23375_ACEOF
23376rm -f conftest.$ac_objext
23377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23378 (eval $ac_compile) 2>conftest.er1
a848cd7e 23379 ac_status=$?
ac1cb8d3
VS
23380 grep -v '^ *+' conftest.er1 >conftest.err
23381 rm -f conftest.er1
23382 cat conftest.err >&5
a848cd7e
SC
23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); } &&
bb9e79c0 23385 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23387 (eval $ac_try) 2>&5
23388 ac_status=$?
23389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390 (exit $ac_status); }; } &&
23391 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23393 (eval $ac_try) 2>&5
23394 ac_status=$?
23395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396 (exit $ac_status); }; }; then
23397
23398 wx_cv_cpp_bool=yes
23399
23400else
23401 echo "$as_me: failed program was:" >&5
23402sed 's/^/| /' conftest.$ac_ext >&5
23403
23404
23405 wx_cv_cpp_bool=no
23406
23407
23408fi
ac1cb8d3 23409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23410
5d7b7554
VZ
23411 ac_ext=cc
23412ac_cpp='$CXXCPP $CPPFLAGS'
23413ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23414ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23415ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23416
23417
23418fi
23419echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
23420echo "${ECHO_T}$wx_cv_cpp_bool" >&6
23421
23422 if test "$wx_cv_cpp_bool" = "yes"; then
23423 cat >>confdefs.h <<\_ACEOF
23424#define HAVE_BOOL 1
23425_ACEOF
23426
23427 fi
23428
23429
23430
23431 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
23432echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
23433if test "${wx_cv_explicit+set}" = set; then
23434 echo $ECHO_N "(cached) $ECHO_C" >&6
23435else
23436
23437
23438
23439 ac_ext=cc
23440ac_cpp='$CXXCPP $CPPFLAGS'
23441ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23442ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23443ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23444
23445
23446 cat >conftest.$ac_ext <<_ACEOF
23447/* confdefs.h. */
23448_ACEOF
23449cat confdefs.h >>conftest.$ac_ext
23450cat >>conftest.$ac_ext <<_ACEOF
23451/* end confdefs.h. */
23452
23453 class Foo { public: explicit Foo(int) {} };
23454
23455int
23456main ()
23457{
23458
23459 return 0;
23460
23461 ;
23462 return 0;
23463}
23464_ACEOF
23465rm -f conftest.$ac_objext
23466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23467 (eval $ac_compile) 2>conftest.er1
a848cd7e 23468 ac_status=$?
ac1cb8d3
VS
23469 grep -v '^ *+' conftest.er1 >conftest.err
23470 rm -f conftest.er1
23471 cat conftest.err >&5
a848cd7e
SC
23472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); } &&
bb9e79c0 23474 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23476 (eval $ac_try) 2>&5
23477 ac_status=$?
23478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479 (exit $ac_status); }; } &&
23480 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23482 (eval $ac_try) 2>&5
23483 ac_status=$?
23484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23485 (exit $ac_status); }; }; then
23486
23487 cat >conftest.$ac_ext <<_ACEOF
23488/* confdefs.h. */
23489_ACEOF
23490cat confdefs.h >>conftest.$ac_ext
23491cat >>conftest.$ac_ext <<_ACEOF
23492/* end confdefs.h. */
23493
23494 class Foo { public: explicit Foo(int) {} };
23495 static void TakeFoo(const Foo& foo) { }
23496
23497int
23498main ()
23499{
23500
23501 TakeFoo(17);
23502 return 0;
23503
23504 ;
23505 return 0;
23506}
23507_ACEOF
23508rm -f conftest.$ac_objext
23509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23510 (eval $ac_compile) 2>conftest.er1
a848cd7e 23511 ac_status=$?
ac1cb8d3
VS
23512 grep -v '^ *+' conftest.er1 >conftest.err
23513 rm -f conftest.er1
23514 cat conftest.err >&5
a848cd7e
SC
23515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23516 (exit $ac_status); } &&
bb9e79c0 23517 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23519 (eval $ac_try) 2>&5
23520 ac_status=$?
23521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23522 (exit $ac_status); }; } &&
23523 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23525 (eval $ac_try) 2>&5
23526 ac_status=$?
23527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528 (exit $ac_status); }; }; then
23529 wx_cv_explicit=no
23530else
23531 echo "$as_me: failed program was:" >&5
23532sed 's/^/| /' conftest.$ac_ext >&5
23533
23534wx_cv_explicit=yes
23535
23536fi
ac1cb8d3 23537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23538
23539else
23540 echo "$as_me: failed program was:" >&5
23541sed 's/^/| /' conftest.$ac_ext >&5
23542
23543wx_cv_explicit=no
23544
23545fi
ac1cb8d3 23546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23547
5d7b7554
VZ
23548 ac_ext=cc
23549ac_cpp='$CXXCPP $CPPFLAGS'
23550ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23551ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23552ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23553
23554
23555fi
23556echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
23557echo "${ECHO_T}$wx_cv_explicit" >&6
23558
23559 if test "$wx_cv_explicit" = "yes"; then
23560 cat >>confdefs.h <<\_ACEOF
23561#define HAVE_EXPLICIT 1
23562_ACEOF
23563
23564 fi
23565
23566
23567echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
23568echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
23569if test "${ac_cv_cxx_const_cast+set}" = set; then
23570 echo $ECHO_N "(cached) $ECHO_C" >&6
23571else
23572
23573
23574 ac_ext=cc
23575ac_cpp='$CXXCPP $CPPFLAGS'
23576ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23577ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23578ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23579
23580 cat >conftest.$ac_ext <<_ACEOF
23581/* confdefs.h. */
23582_ACEOF
23583cat confdefs.h >>conftest.$ac_ext
23584cat >>conftest.$ac_ext <<_ACEOF
23585/* end confdefs.h. */
23586
23587int
23588main ()
23589{
23590int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
23591 ;
23592 return 0;
23593}
23594_ACEOF
23595rm -f conftest.$ac_objext
23596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23597 (eval $ac_compile) 2>conftest.er1
a848cd7e 23598 ac_status=$?
ac1cb8d3
VS
23599 grep -v '^ *+' conftest.er1 >conftest.err
23600 rm -f conftest.er1
23601 cat conftest.err >&5
a848cd7e
SC
23602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603 (exit $ac_status); } &&
bb9e79c0 23604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23606 (eval $ac_try) 2>&5
23607 ac_status=$?
23608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609 (exit $ac_status); }; } &&
23610 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23612 (eval $ac_try) 2>&5
23613 ac_status=$?
23614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615 (exit $ac_status); }; }; then
23616 ac_cv_cxx_const_cast=yes
23617else
23618 echo "$as_me: failed program was:" >&5
23619sed 's/^/| /' conftest.$ac_ext >&5
23620
23621ac_cv_cxx_const_cast=no
23622fi
ac1cb8d3 23623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23624 ac_ext=cc
23625ac_cpp='$CXXCPP $CPPFLAGS'
23626ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23627ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23628ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23629
23630
23631fi
23632echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23633echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
23634if test "$ac_cv_cxx_const_cast" = yes; then
23635
23636cat >>confdefs.h <<\_ACEOF
23637#define HAVE_CONST_CAST
23638_ACEOF
23639
23640fi
23641
7714864e
RL
23642echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23643echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
23644if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23645 echo $ECHO_N "(cached) $ECHO_C" >&6
23646else
23647
23648
23649 ac_ext=cc
23650ac_cpp='$CXXCPP $CPPFLAGS'
23651ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23652ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23653ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23654
23655 cat >conftest.$ac_ext <<_ACEOF
23656/* confdefs.h. */
23657_ACEOF
23658cat confdefs.h >>conftest.$ac_ext
23659cat >>conftest.$ac_ext <<_ACEOF
23660/* end confdefs.h. */
23661#include <typeinfo>
23662class Base { public : Base () {} virtual void f () = 0;};
23663class Derived : public Base { public : Derived () {} virtual void f () {} };
23664class Unrelated { public : Unrelated () {} };
23665int g (Unrelated&) { return 0; }
23666int
23667main ()
23668{
23669
23670Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23671 ;
23672 return 0;
23673}
23674_ACEOF
23675rm -f conftest.$ac_objext
23676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23677 (eval $ac_compile) 2>conftest.er1
23678 ac_status=$?
23679 grep -v '^ *+' conftest.er1 >conftest.err
23680 rm -f conftest.er1
23681 cat conftest.err >&5
23682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23683 (exit $ac_status); } &&
bb9e79c0 23684 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
23685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23686 (eval $ac_try) 2>&5
23687 ac_status=$?
23688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689 (exit $ac_status); }; } &&
23690 { ac_try='test -s conftest.$ac_objext'
23691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23692 (eval $ac_try) 2>&5
23693 ac_status=$?
23694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695 (exit $ac_status); }; }; then
23696 ac_cv_cxx_reinterpret_cast=yes
23697else
23698 echo "$as_me: failed program was:" >&5
23699sed 's/^/| /' conftest.$ac_ext >&5
23700
23701ac_cv_cxx_reinterpret_cast=no
23702fi
23703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23704 ac_ext=cc
23705ac_cpp='$CXXCPP $CPPFLAGS'
23706ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23707ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23708ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7714864e
RL
23709
23710
23711fi
23712echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23713echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
23714if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23715
23716cat >>confdefs.h <<\_ACEOF
23717#define HAVE_REINTERPRET_CAST
23718_ACEOF
23719
23720fi
23721
a848cd7e
SC
23722echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23723echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
23724if test "${ac_cv_cxx_static_cast+set}" = set; then
23725 echo $ECHO_N "(cached) $ECHO_C" >&6
23726else
23727
23728
23729 ac_ext=cc
23730ac_cpp='$CXXCPP $CPPFLAGS'
23731ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23732ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23733ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23734
23735 cat >conftest.$ac_ext <<_ACEOF
23736/* confdefs.h. */
23737_ACEOF
23738cat confdefs.h >>conftest.$ac_ext
23739cat >>conftest.$ac_ext <<_ACEOF
23740/* end confdefs.h. */
23741#include <typeinfo>
23742class Base { public : Base () {} virtual void f () = 0; };
23743class Derived : public Base { public : Derived () {} virtual void f () {} };
23744int g (Derived&) { return 0; }
23745int
23746main ()
23747{
23748
23749Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23750 ;
23751 return 0;
23752}
23753_ACEOF
23754rm -f conftest.$ac_objext
23755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23756 (eval $ac_compile) 2>conftest.er1
a848cd7e 23757 ac_status=$?
ac1cb8d3
VS
23758 grep -v '^ *+' conftest.er1 >conftest.err
23759 rm -f conftest.er1
23760 cat conftest.err >&5
a848cd7e
SC
23761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762 (exit $ac_status); } &&
bb9e79c0 23763 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23765 (eval $ac_try) 2>&5
23766 ac_status=$?
23767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768 (exit $ac_status); }; } &&
23769 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23771 (eval $ac_try) 2>&5
23772 ac_status=$?
23773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23774 (exit $ac_status); }; }; then
23775 ac_cv_cxx_static_cast=yes
23776else
23777 echo "$as_me: failed program was:" >&5
23778sed 's/^/| /' conftest.$ac_ext >&5
23779
23780ac_cv_cxx_static_cast=no
23781fi
ac1cb8d3 23782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23783 ac_ext=cc
23784ac_cpp='$CXXCPP $CPPFLAGS'
23785ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23786ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23787ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23788
23789
23790fi
23791echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23792echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23793if test "$ac_cv_cxx_static_cast" = yes; then
23794
23795cat >>confdefs.h <<\_ACEOF
23796#define HAVE_STATIC_CAST
23797_ACEOF
23798
23799fi
23800
23801
3c28b7cb 23802if test "x$SUNCXX" = xyes; then
c92ad099 23803 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
23804fi
23805
9122d155 23806if test "x$SUNCC" = xyes; then
c92ad099 23807 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
23808fi
23809
0ad5d837 23810if test "x$SGICC" = "xyes"; then
c92ad099 23811 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
23812fi
23813if test "x$SGICXX" = "xyes"; then
c92ad099 23814 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
23815fi
23816
2eef8513 23817if test "x$HPCC" = "xyes"; then
c92ad099 23818 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
23819fi
23820if test "x$HPCXX" = "xyes"; then
c92ad099 23821 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
23822fi
23823
23824if test "x$COMPAQCXX" = "xyes"; then
23825 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23826fi
23827
f56c22b4 23828if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
23829 if test "$wxUSE_UNICODE" = "yes"; then
23830 std_string="std::wstring"
23831 char_type="wchar_t"
23832 else
23833 std_string="std::string"
23834 char_type="char"
23835 fi
23836
23837 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23838echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
23839 cat >conftest.$ac_ext <<_ACEOF
23840/* confdefs.h. */
23841_ACEOF
23842cat confdefs.h >>conftest.$ac_ext
23843cat >>conftest.$ac_ext <<_ACEOF
23844/* end confdefs.h. */
23845#include <string>
a848cd7e
SC
23846int
23847main ()
23848{
f56c22b4 23849$std_string foo;
a848cd7e
SC
23850 ;
23851 return 0;
23852}
23853_ACEOF
23854rm -f conftest.$ac_objext
23855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23856 (eval $ac_compile) 2>conftest.er1
a848cd7e 23857 ac_status=$?
ac1cb8d3
VS
23858 grep -v '^ *+' conftest.er1 >conftest.err
23859 rm -f conftest.er1
23860 cat conftest.err >&5
a848cd7e
SC
23861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862 (exit $ac_status); } &&
bb9e79c0 23863 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23865 (eval $ac_try) 2>&5
23866 ac_status=$?
23867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23868 (exit $ac_status); }; } &&
23869 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23871 (eval $ac_try) 2>&5
23872 ac_status=$?
23873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874 (exit $ac_status); }; }; then
23875 echo "$as_me:$LINENO: result: yes" >&5
23876echo "${ECHO_T}yes" >&6
0a08f02a
MB
23877 cat >>confdefs.h <<\_ACEOF
23878#define HAVE_STD_WSTRING 1
23879_ACEOF
23880
a848cd7e
SC
23881else
23882 echo "$as_me: failed program was:" >&5
23883sed 's/^/| /' conftest.$ac_ext >&5
23884
23885echo "$as_me:$LINENO: result: no" >&5
23886echo "${ECHO_T}no" >&6
f56c22b4
MW
23887 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23888echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
23889 cat >conftest.$ac_ext <<_ACEOF
23890/* confdefs.h. */
23891_ACEOF
23892cat confdefs.h >>conftest.$ac_ext
23893cat >>conftest.$ac_ext <<_ACEOF
23894/* end confdefs.h. */
23895
23896 #ifdef HAVE_WCHAR_H
23897 # ifdef __CYGWIN__
23898 # include <stddef.h>
23899 # endif
23900 # include <wchar.h>
23901 #endif
23902 #ifdef HAVE_STDLIB_H
23903 # include <stdlib.h>
23904 #endif
23905 #include <stdio.h>
23906 #include <string>
23907
23908int
23909main ()
23910{
f56c22b4
MW
23911std::basic_string<$char_type> foo;
23912 const $char_type* dummy = foo.c_str();
0a08f02a
MB
23913 ;
23914 return 0;
23915}
23916_ACEOF
23917rm -f conftest.$ac_objext
23918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23919 (eval $ac_compile) 2>conftest.er1
23920 ac_status=$?
23921 grep -v '^ *+' conftest.er1 >conftest.err
23922 rm -f conftest.er1
23923 cat conftest.err >&5
23924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925 (exit $ac_status); } &&
bb9e79c0 23926 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
23927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23928 (eval $ac_try) 2>&5
23929 ac_status=$?
23930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931 (exit $ac_status); }; } &&
23932 { ac_try='test -s conftest.$ac_objext'
23933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23934 (eval $ac_try) 2>&5
23935 ac_status=$?
23936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937 (exit $ac_status); }; }; then
23938 echo "$as_me:$LINENO: result: yes" >&5
23939echo "${ECHO_T}yes" >&6
23940else
23941 echo "$as_me: failed program was:" >&5
23942sed 's/^/| /' conftest.$ac_ext >&5
23943
23944echo "$as_me:$LINENO: result: no" >&5
23945echo "${ECHO_T}no" >&6
f56c22b4 23946 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
23947 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23948echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23949 { (exit 1); exit 1; }; }
23950 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23951 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23952echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 23953 { (exit 1); exit 1; }; }
f56c22b4
MW
23954 else
23955 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23956echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23957 wxUSE_STD_STRING=no
23958 fi
23959
0a08f02a 23960
a848cd7e 23961fi
ac1cb8d3 23962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23963
0a08f02a
MB
23964fi
23965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4
MW
23966fi
23967
23968if test "$wxUSE_STD_IOSTREAM" = "yes"; then
f56c22b4
MW
23969 echo "$as_me:$LINENO: checking for std::istream" >&5
23970echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23971if test "${ac_cv_type_std__istream+set}" = set; then
23972 echo $ECHO_N "(cached) $ECHO_C" >&6
23973else
23974 cat >conftest.$ac_ext <<_ACEOF
23975/* confdefs.h. */
23976_ACEOF
23977cat confdefs.h >>conftest.$ac_ext
23978cat >>conftest.$ac_ext <<_ACEOF
23979/* end confdefs.h. */
23980#include <iostream>
23981
23982int
23983main ()
23984{
23985if ((std::istream *) 0)
23986 return 0;
23987if (sizeof (std::istream))
23988 return 0;
23989 ;
23990 return 0;
23991}
23992_ACEOF
23993rm -f conftest.$ac_objext
23994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23995 (eval $ac_compile) 2>conftest.er1
23996 ac_status=$?
23997 grep -v '^ *+' conftest.er1 >conftest.err
23998 rm -f conftest.er1
23999 cat conftest.err >&5
24000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24001 (exit $ac_status); } &&
bb9e79c0 24002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
24003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24004 (eval $ac_try) 2>&5
24005 ac_status=$?
24006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24007 (exit $ac_status); }; } &&
24008 { ac_try='test -s conftest.$ac_objext'
24009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24010 (eval $ac_try) 2>&5
24011 ac_status=$?
24012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24013 (exit $ac_status); }; }; then
24014 ac_cv_type_std__istream=yes
24015else
24016 echo "$as_me: failed program was:" >&5
24017sed 's/^/| /' conftest.$ac_ext >&5
24018
24019ac_cv_type_std__istream=no
24020fi
24021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24022fi
24023echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
24024echo "${ECHO_T}$ac_cv_type_std__istream" >&6
24025if test $ac_cv_type_std__istream = yes; then
24026
24027cat >>confdefs.h <<_ACEOF
24028#define HAVE_STD__ISTREAM 1
24029_ACEOF
24030
24031
24032else
24033 wxUSE_STD_IOSTREAM=no
24034fi
24035echo "$as_me:$LINENO: checking for std::ostream" >&5
24036echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
24037if test "${ac_cv_type_std__ostream+set}" = set; then
24038 echo $ECHO_N "(cached) $ECHO_C" >&6
24039else
24040 cat >conftest.$ac_ext <<_ACEOF
24041/* confdefs.h. */
24042_ACEOF
24043cat confdefs.h >>conftest.$ac_ext
24044cat >>conftest.$ac_ext <<_ACEOF
24045/* end confdefs.h. */
24046#include <iostream>
24047
24048int
24049main ()
24050{
24051if ((std::ostream *) 0)
24052 return 0;
24053if (sizeof (std::ostream))
24054 return 0;
24055 ;
24056 return 0;
24057}
24058_ACEOF
24059rm -f conftest.$ac_objext
24060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24061 (eval $ac_compile) 2>conftest.er1
24062 ac_status=$?
24063 grep -v '^ *+' conftest.er1 >conftest.err
24064 rm -f conftest.er1
24065 cat conftest.err >&5
24066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24067 (exit $ac_status); } &&
bb9e79c0 24068 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
24069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24070 (eval $ac_try) 2>&5
24071 ac_status=$?
24072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24073 (exit $ac_status); }; } &&
24074 { ac_try='test -s conftest.$ac_objext'
24075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24076 (eval $ac_try) 2>&5
24077 ac_status=$?
24078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24079 (exit $ac_status); }; }; then
24080 ac_cv_type_std__ostream=yes
24081else
24082 echo "$as_me: failed program was:" >&5
24083sed 's/^/| /' conftest.$ac_ext >&5
24084
24085ac_cv_type_std__ostream=no
24086fi
24087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24088fi
24089echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
24090echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
24091if test $ac_cv_type_std__ostream = yes; then
24092
24093cat >>confdefs.h <<_ACEOF
24094#define HAVE_STD__OSTREAM 1
24095_ACEOF
24096
24097
24098else
24099 wxUSE_STD_IOSTREAM=no
24100fi
24101
24102
24103 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
24104 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
24105 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
24106echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
24107 { (exit 1); exit 1; }; }
24108 else
24109 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 24110echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 24111 fi
f56c22b4 24112 fi
0a08f02a
MB
24113fi
24114
24115if test "$wxUSE_STL" = "yes"; then
0a08f02a
MB
24116 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
24117echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
24118 cat >conftest.$ac_ext <<_ACEOF
24119/* confdefs.h. */
24120_ACEOF
24121cat confdefs.h >>conftest.$ac_ext
24122cat >>conftest.$ac_ext <<_ACEOF
24123/* end confdefs.h. */
24124#include <string>
0a08f02a
MB
24125 #include <functional>
24126 #include <algorithm>
24127 #include <vector>
24128 #include <list>
a848cd7e
SC
24129int
24130main ()
24131{
0a08f02a
MB
24132std::vector<int> moo;
24133 std::list<int> foo;
24134 std::vector<int>::iterator it =
24135 std::find_if(moo.begin(), moo.end(),
24136 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
24137 ;
24138 return 0;
24139}
24140_ACEOF
24141rm -f conftest.$ac_objext
24142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24143 (eval $ac_compile) 2>conftest.er1
a848cd7e 24144 ac_status=$?
ac1cb8d3
VS
24145 grep -v '^ *+' conftest.er1 >conftest.err
24146 rm -f conftest.er1
24147 cat conftest.err >&5
a848cd7e
SC
24148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149 (exit $ac_status); } &&
bb9e79c0 24150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24152 (eval $ac_try) 2>&5
24153 ac_status=$?
24154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155 (exit $ac_status); }; } &&
24156 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24158 (eval $ac_try) 2>&5
24159 ac_status=$?
24160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); }; }; then
24162 echo "$as_me:$LINENO: result: yes" >&5
24163echo "${ECHO_T}yes" >&6
a848cd7e
SC
24164else
24165 echo "$as_me: failed program was:" >&5
24166sed 's/^/| /' conftest.$ac_ext >&5
24167
24168echo "$as_me:$LINENO: result: no" >&5
24169echo "${ECHO_T}no" >&6
0a08f02a
MB
24170 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
24171echo "$as_me: error: Basic STL functionality missing" >&2;}
24172 { (exit 1); exit 1; }; }
a848cd7e 24173fi
ac1cb8d3 24174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24175
24176 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
24177echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
24178 cat >conftest.$ac_ext <<_ACEOF
24179/* confdefs.h. */
24180_ACEOF
24181cat confdefs.h >>conftest.$ac_ext
24182cat >>conftest.$ac_ext <<_ACEOF
24183/* end confdefs.h. */
24184#include <string>
24185int
24186main ()
24187{
24188std::string foo, bar;
24189 foo.compare(bar);
24190 foo.compare(1, 1, bar);
24191 foo.compare(1, 1, bar, 1, 1);
24192 foo.compare("");
24193 foo.compare(1, 1, "");
24194 foo.compare(1, 1, "", 2);
24195 ;
24196 return 0;
24197}
24198_ACEOF
24199rm -f conftest.$ac_objext
24200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24201 (eval $ac_compile) 2>conftest.er1
a848cd7e 24202 ac_status=$?
ac1cb8d3
VS
24203 grep -v '^ *+' conftest.er1 >conftest.err
24204 rm -f conftest.er1
24205 cat conftest.err >&5
a848cd7e
SC
24206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207 (exit $ac_status); } &&
bb9e79c0 24208 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24210 (eval $ac_try) 2>&5
24211 ac_status=$?
24212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24213 (exit $ac_status); }; } &&
24214 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24216 (eval $ac_try) 2>&5
24217 ac_status=$?
24218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24219 (exit $ac_status); }; }; then
24220 echo "$as_me:$LINENO: result: yes" >&5
24221echo "${ECHO_T}yes" >&6
24222 cat >>confdefs.h <<\_ACEOF
24223#define HAVE_STD_STRING_COMPARE 1
24224_ACEOF
24225
24226else
24227 echo "$as_me: failed program was:" >&5
24228sed 's/^/| /' conftest.$ac_ext >&5
24229
24230echo "$as_me:$LINENO: result: no" >&5
24231echo "${ECHO_T}no" >&6
24232fi
ac1cb8d3 24233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24234
24235 if test "${ac_cv_header_hash_map+set}" = set; then
24236 echo "$as_me:$LINENO: checking for hash_map" >&5
24237echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
24238if test "${ac_cv_header_hash_map+set}" = set; then
24239 echo $ECHO_N "(cached) $ECHO_C" >&6
24240fi
24241echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24242echo "${ECHO_T}$ac_cv_header_hash_map" >&6
24243else
24244 # Is the header compilable?
24245echo "$as_me:$LINENO: checking hash_map usability" >&5
24246echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
24247cat >conftest.$ac_ext <<_ACEOF
24248/* confdefs.h. */
24249_ACEOF
24250cat confdefs.h >>conftest.$ac_ext
24251cat >>conftest.$ac_ext <<_ACEOF
24252/* end confdefs.h. */
24253$ac_includes_default
24254#include <hash_map>
24255_ACEOF
24256rm -f conftest.$ac_objext
24257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24258 (eval $ac_compile) 2>conftest.er1
bdcade0a 24259 ac_status=$?
ac1cb8d3
VS
24260 grep -v '^ *+' conftest.er1 >conftest.err
24261 rm -f conftest.er1
24262 cat conftest.err >&5
bdcade0a
MB
24263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264 (exit $ac_status); } &&
bb9e79c0 24265 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24267 (eval $ac_try) 2>&5
24268 ac_status=$?
24269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270 (exit $ac_status); }; } &&
24271 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24273 (eval $ac_try) 2>&5
24274 ac_status=$?
24275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24276 (exit $ac_status); }; }; then
24277 ac_header_compiler=yes
24278else
24279 echo "$as_me: failed program was:" >&5
24280sed 's/^/| /' conftest.$ac_ext >&5
24281
24282ac_header_compiler=no
24283fi
ac1cb8d3 24284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24285echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24286echo "${ECHO_T}$ac_header_compiler" >&6
24287
24288# Is the header present?
24289echo "$as_me:$LINENO: checking hash_map presence" >&5
24290echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
24291cat >conftest.$ac_ext <<_ACEOF
24292/* confdefs.h. */
24293_ACEOF
24294cat confdefs.h >>conftest.$ac_ext
24295cat >>conftest.$ac_ext <<_ACEOF
24296/* end confdefs.h. */
24297#include <hash_map>
24298_ACEOF
24299if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24301 ac_status=$?
24302 grep -v '^ *+' conftest.er1 >conftest.err
24303 rm -f conftest.er1
24304 cat conftest.err >&5
24305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24306 (exit $ac_status); } >/dev/null; then
24307 if test -s conftest.err; then
24308 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 24309 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
24310 else
24311 ac_cpp_err=
24312 fi
24313else
24314 ac_cpp_err=yes
24315fi
24316if test -z "$ac_cpp_err"; then
24317 ac_header_preproc=yes
24318else
24319 echo "$as_me: failed program was:" >&5
24320sed 's/^/| /' conftest.$ac_ext >&5
24321
24322 ac_header_preproc=no
24323fi
24324rm -f conftest.err conftest.$ac_ext
24325echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24326echo "${ECHO_T}$ac_header_preproc" >&6
24327
24328# So? What about this header?
ac1cb8d3
VS
24329case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24330 yes:no: )
bdcade0a
MB
24331 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24332echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24333 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
24334echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
24335 ac_header_preproc=yes
bdcade0a 24336 ;;
ac1cb8d3 24337 no:yes:* )
bdcade0a
MB
24338 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
24339echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24340 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
24341echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
24342 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
24343echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
24344 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
24345echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
24346 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
24347echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24348 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
24349echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
24350 (
24351 cat <<\_ASBOX
ac1cb8d3
VS
24352## ----------------------------------------- ##
24353## Report this to wx-dev@lists.wxwidgets.org ##
24354## ----------------------------------------- ##
bdcade0a
MB
24355_ASBOX
24356 ) |
24357 sed "s/^/$as_me: WARNING: /" >&2
24358 ;;
24359esac
24360echo "$as_me:$LINENO: checking for hash_map" >&5
24361echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
24362if test "${ac_cv_header_hash_map+set}" = set; then
24363 echo $ECHO_N "(cached) $ECHO_C" >&6
24364else
24365 ac_cv_header_hash_map=$ac_header_preproc
24366fi
24367echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24368echo "${ECHO_T}$ac_cv_header_hash_map" >&6
24369
24370fi
24371if test $ac_cv_header_hash_map = yes; then
24372 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24373echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24374 cat >conftest.$ac_ext <<_ACEOF
24375/* confdefs.h. */
24376_ACEOF
24377cat confdefs.h >>conftest.$ac_ext
24378cat >>conftest.$ac_ext <<_ACEOF
24379/* end confdefs.h. */
24380#include <hash_map>
24381 #include <hash_set>
24382int
24383main ()
24384{
24385std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
24386 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
24387 ;
24388 return 0;
24389}
24390_ACEOF
24391rm -f conftest.$ac_objext
24392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24393 (eval $ac_compile) 2>conftest.er1
bdcade0a 24394 ac_status=$?
ac1cb8d3
VS
24395 grep -v '^ *+' conftest.er1 >conftest.err
24396 rm -f conftest.er1
24397 cat conftest.err >&5
bdcade0a
MB
24398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24399 (exit $ac_status); } &&
bb9e79c0 24400 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24402 (eval $ac_try) 2>&5
24403 ac_status=$?
24404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24405 (exit $ac_status); }; } &&
24406 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24408 (eval $ac_try) 2>&5
24409 ac_status=$?
24410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411 (exit $ac_status); }; }; then
24412 echo "$as_me:$LINENO: result: yes" >&5
24413echo "${ECHO_T}yes" >&6
24414 cat >>confdefs.h <<\_ACEOF
24415#define HAVE_HASH_MAP 1
24416_ACEOF
24417
24418 cat >>confdefs.h <<\_ACEOF
24419#define HAVE_STD_HASH_MAP 1
24420_ACEOF
24421
24422else
24423 echo "$as_me: failed program was:" >&5
24424sed 's/^/| /' conftest.$ac_ext >&5
24425
24426echo "$as_me:$LINENO: result: no" >&5
24427echo "${ECHO_T}no" >&6
24428fi
ac1cb8d3 24429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24430
24431fi
24432
24433
24434
24435 if test "${ac_cv_header_ext_hash_map+set}" = set; then
24436 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24437echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24438if test "${ac_cv_header_ext_hash_map+set}" = set; then
24439 echo $ECHO_N "(cached) $ECHO_C" >&6
24440fi
24441echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24442echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24443else
24444 # Is the header compilable?
24445echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
24446echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
24447cat >conftest.$ac_ext <<_ACEOF
24448/* confdefs.h. */
24449_ACEOF
24450cat confdefs.h >>conftest.$ac_ext
24451cat >>conftest.$ac_ext <<_ACEOF
24452/* end confdefs.h. */
24453$ac_includes_default
24454#include <ext/hash_map>
24455_ACEOF
24456rm -f conftest.$ac_objext
24457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24458 (eval $ac_compile) 2>conftest.er1
bdcade0a 24459 ac_status=$?
ac1cb8d3
VS
24460 grep -v '^ *+' conftest.er1 >conftest.err
24461 rm -f conftest.er1
24462 cat conftest.err >&5
bdcade0a
MB
24463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24464 (exit $ac_status); } &&
bb9e79c0 24465 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24467 (eval $ac_try) 2>&5
24468 ac_status=$?
24469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470 (exit $ac_status); }; } &&
24471 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24473 (eval $ac_try) 2>&5
24474 ac_status=$?
24475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476 (exit $ac_status); }; }; then
24477 ac_header_compiler=yes
24478else
24479 echo "$as_me: failed program was:" >&5
24480sed 's/^/| /' conftest.$ac_ext >&5
24481
24482ac_header_compiler=no
24483fi
ac1cb8d3 24484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24485echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24486echo "${ECHO_T}$ac_header_compiler" >&6
24487
24488# Is the header present?
24489echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
24490echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
24491cat >conftest.$ac_ext <<_ACEOF
24492/* confdefs.h. */
24493_ACEOF
24494cat confdefs.h >>conftest.$ac_ext
24495cat >>conftest.$ac_ext <<_ACEOF
24496/* end confdefs.h. */
24497#include <ext/hash_map>
24498_ACEOF
24499if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24501 ac_status=$?
24502 grep -v '^ *+' conftest.er1 >conftest.err
24503 rm -f conftest.er1
24504 cat conftest.err >&5
24505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506 (exit $ac_status); } >/dev/null; then
24507 if test -s conftest.err; then
24508 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 24509 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
24510 else
24511 ac_cpp_err=
24512 fi
24513else
24514 ac_cpp_err=yes
24515fi
24516if test -z "$ac_cpp_err"; then
24517 ac_header_preproc=yes
24518else
24519 echo "$as_me: failed program was:" >&5
24520sed 's/^/| /' conftest.$ac_ext >&5
24521
24522 ac_header_preproc=no
24523fi
24524rm -f conftest.err conftest.$ac_ext
24525echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24526echo "${ECHO_T}$ac_header_preproc" >&6
24527
24528# So? What about this header?
ac1cb8d3
VS
24529case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24530 yes:no: )
bdcade0a
MB
24531 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24532echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24533 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
24534echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
24535 ac_header_preproc=yes
bdcade0a 24536 ;;
ac1cb8d3 24537 no:yes:* )
bdcade0a
MB
24538 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
24539echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24540 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
24541echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
24542 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
24543echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
24544 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
24545echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
24546 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
24547echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24548 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
24549echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
24550 (
24551 cat <<\_ASBOX
ac1cb8d3
VS
24552## ----------------------------------------- ##
24553## Report this to wx-dev@lists.wxwidgets.org ##
24554## ----------------------------------------- ##
bdcade0a
MB
24555_ASBOX
24556 ) |
24557 sed "s/^/$as_me: WARNING: /" >&2
24558 ;;
24559esac
24560echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24561echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24562if test "${ac_cv_header_ext_hash_map+set}" = set; then
24563 echo $ECHO_N "(cached) $ECHO_C" >&6
24564else
24565 ac_cv_header_ext_hash_map=$ac_header_preproc
24566fi
24567echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24568echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24569
24570fi
24571if test $ac_cv_header_ext_hash_map = yes; then
24572 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24573echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24574 cat >conftest.$ac_ext <<_ACEOF
24575/* confdefs.h. */
24576_ACEOF
24577cat confdefs.h >>conftest.$ac_ext
24578cat >>conftest.$ac_ext <<_ACEOF
24579/* end confdefs.h. */
24580#include <ext/hash_map>
24581 #include <ext/hash_set>
24582int
24583main ()
24584{
24585__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
24586 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
24587 ;
24588 return 0;
24589}
24590_ACEOF
24591rm -f conftest.$ac_objext
24592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24593 (eval $ac_compile) 2>conftest.er1
bdcade0a 24594 ac_status=$?
ac1cb8d3
VS
24595 grep -v '^ *+' conftest.er1 >conftest.err
24596 rm -f conftest.er1
24597 cat conftest.err >&5
bdcade0a
MB
24598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24599 (exit $ac_status); } &&
bb9e79c0 24600 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24602 (eval $ac_try) 2>&5
24603 ac_status=$?
24604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605 (exit $ac_status); }; } &&
24606 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24608 (eval $ac_try) 2>&5
24609 ac_status=$?
24610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611 (exit $ac_status); }; }; then
24612 echo "$as_me:$LINENO: result: yes" >&5
24613echo "${ECHO_T}yes" >&6
24614 cat >>confdefs.h <<\_ACEOF
24615#define HAVE_EXT_HASH_MAP 1
24616_ACEOF
24617
24618 cat >>confdefs.h <<\_ACEOF
24619#define HAVE_GNU_CXX_HASH_MAP 1
24620_ACEOF
24621
24622else
24623 echo "$as_me: failed program was:" >&5
24624sed 's/^/| /' conftest.$ac_ext >&5
24625
24626echo "$as_me:$LINENO: result: no" >&5
24627echo "${ECHO_T}no" >&6
24628fi
ac1cb8d3 24629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24630
24631fi
24632
24633
a848cd7e
SC
24634fi
24635
24636
24637SEARCH_INCLUDE="\
24638 /usr/local/include \
24639 \
24640 /usr/Motif-2.1/include \
24641 /usr/Motif-1.2/include \
24642 /usr/include/Motif1.2 \
a848cd7e
SC
24643 \
24644 /usr/dt/include \
24645 /usr/openwin/include \
24646 \
24647 /usr/include/Xm \
24648 \
24649 /usr/X11R6/include \
24650 /usr/X11R6.4/include \
24651 /usr/X11R5/include \
24652 /usr/X11R4/include \
24653 \
24654 /usr/include/X11R6 \
24655 /usr/include/X11R5 \
24656 /usr/include/X11R4 \
24657 \
24658 /usr/local/X11R6/include \
24659 /usr/local/X11R5/include \
24660 /usr/local/X11R4/include \
24661 \
24662 /usr/local/include/X11R6 \
24663 /usr/local/include/X11R5 \
24664 /usr/local/include/X11R4 \
24665 \
24666 /usr/X11/include \
24667 /usr/include/X11 \
24668 /usr/local/X11/include \
24669 /usr/local/include/X11 \
24670 \
a848cd7e 24671 /usr/XFree86/include/X11 \
e051b34e
MW
24672 /usr/pkg/include \
24673 \
a848cd7e
SC
24674 /usr/openwin/share/include"
24675
6f9cf1e6 24676echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 24677echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
24678
24679case "${host}" in
24680 *-*-irix6* )
24681 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
24682 echo $ECHO_N "(cached) $ECHO_C" >&6
24683else
24684
c687b303
VZ
24685 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24686 for e in a so sl dylib dll.a; do
24687 libc="$d/libc.$e"
24688 if test -f $libc; then
24689 save_LIBS="$LIBS"
24690 LIBS="$libc"
24691 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
24692int main() { return 0; }
24693_ACEOF
24694rm -f conftest.$ac_objext conftest$ac_exeext
24695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24696 (eval $ac_link) 2>conftest.er1
24697 ac_status=$?
24698 grep -v '^ *+' conftest.er1 >conftest.err
24699 rm -f conftest.er1
24700 cat conftest.err >&5
24701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24702 (exit $ac_status); } &&
bb9e79c0 24703 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
24704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24705 (eval $ac_try) 2>&5
24706 ac_status=$?
24707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24708 (exit $ac_status); }; } &&
24709 { ac_try='test -s conftest$ac_exeext'
24710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24711 (eval $ac_try) 2>&5
24712 ac_status=$?
24713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714 (exit $ac_status); }; }; then
24715 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24716else
24717 echo "$as_me: failed program was:" >&5
24718sed 's/^/| /' conftest.$ac_ext >&5
24719
24720fi
24721rm -f conftest.err conftest.$ac_objext \
24722 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
24723 LIBS="$save_LIBS"
24724 if test "x$wx_cv_std_libpath" != "x"; then
24725 break 2
24726 fi
24727 fi
24728 done
24729 done
24730 if test "x$wx_cv_std_libpath" = "x"; then
24731 wx_cv_std_libpath="lib"
0ad5d837 24732 fi
0ad5d837
VZ
24733
24734
24735fi
6f9cf1e6
MW
24736
24737 ;;
24738
24739 *-*-solaris2* )
24740 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24741 wx_cv_std_libpath="lib/64"
24742 else
24743 wx_cv_std_libpath="lib"
24744 fi
24745 ;;
24746
24747 *-*-linux* )
24748 if test "$ac_cv_sizeof_void_p" = 8 -a \
24749 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24750 wx_cv_std_libpath="lib64"
24751 else
24752 wx_cv_std_libpath="lib"
24753 fi
c687b303
VZ
24754 ;;
24755
24756 *)
24757 wx_cv_std_libpath="lib";
24758 ;;
24759esac
0ad5d837 24760
6f9cf1e6
MW
24761echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24762echo "${ECHO_T}$wx_cv_std_libpath" >&6
24763
24764SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 24765
3eca31dc
MW
24766if test "$build" != "$host" -a "$GCC" = yes; then
24767 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24768 cross_root=`dirname $cross_root`
24769 cross_root=`dirname $cross_root`
24770
24771 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24772 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 24773 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
24774
24775 if test -z "$PKG_CONFIG_PATH"; then
24776 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24777 export PKG_CONFIG_PATH
24778 fi
24779
24780 if test -z "$x_includes" -o "$x_includes" = NONE; then
24781
24782ac_find_includes=
24783for ac_dir in $SEARCH_INCLUDE /usr/include;
24784 do
24785 if test -f "$ac_dir/X11/Intrinsic.h"; then
24786 ac_find_includes=$ac_dir
24787 break
24788 fi
24789 done
24790
24791 x_includes=$ac_find_includes
24792 fi
24793 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24794
0ad5d837
VZ
24795 ac_find_libraries=
24796 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
24797 do
24798 for ac_extension in a so sl dylib dll.a; do
24799 if test -f "$ac_dir/libXt.$ac_extension"; then
24800 ac_find_libraries=$ac_dir
24801 break 2
24802 fi
24803 done
24804 done
24805
24806 x_libraries=$ac_find_libraries
24807 fi
24808 fi
24809fi
24810
a848cd7e
SC
24811
24812cat >confcache <<\_ACEOF
24813# This file is a shell script that caches the results of configure
24814# tests run on this system so they can be shared between configure
24815# scripts and configure runs, see configure's option --config-cache.
24816# It is not useful on other systems. If it contains results you don't
24817# want to keep, you may remove or edit it.
24818#
24819# config.status only pays attention to the cache file if you give it
24820# the --recheck option to rerun configure.
24821#
24822# `ac_cv_env_foo' variables (set or unset) will be overridden when
24823# loading this file, other *unset* `ac_cv_foo' will be assigned the
24824# following values.
24825
24826_ACEOF
24827
24828# The following way of writing the cache mishandles newlines in values,
24829# but we know of no workaround that is simple, portable, and efficient.
24830# So, don't put newlines in cache variables' values.
24831# Ultrix sh set writes to stderr and can't be redirected directly,
24832# and sets the high bit in the cache file unless we assign to the vars.
24833{
24834 (set) 2>&1 |
24835 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24836 *ac_space=\ *)
24837 # `set' does not quote correctly, so add quotes (double-quote
24838 # substitution turns \\\\ into \\, and sed turns \\ into \).
24839 sed -n \
ac1cb8d3
VS
24840 "s/'/'\\\\''/g;
24841 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
24842 ;;
24843 *)
24844 # `set' quotes correctly as required by POSIX, so do not add quotes.
24845 sed -n \
ac1cb8d3 24846 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
24847 ;;
24848 esac;
24849} |
24850 sed '
24851 t clear
24852 : clear
24853 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24854 t end
24855 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24856 : end' >>confcache
24857if diff $cache_file confcache >/dev/null 2>&1; then :; else
24858 if test -w $cache_file; then
24859 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24860 cat confcache >$cache_file
24861 else
24862 echo "not updating unwritable cache $cache_file"
24863 fi
24864fi
24865rm -f confcache
24866
24867if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24868 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24869echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24870if test "${wx_cv_lib_glibc21+set}" = set; then
24871 echo $ECHO_N "(cached) $ECHO_C" >&6
24872else
24873
24874 cat >conftest.$ac_ext <<_ACEOF
24875/* confdefs.h. */
24876_ACEOF
24877cat confdefs.h >>conftest.$ac_ext
24878cat >>conftest.$ac_ext <<_ACEOF
24879/* end confdefs.h. */
24880#include <features.h>
24881int
24882main ()
24883{
24884
24885 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 24886 not glibc 2.1
a848cd7e
SC
24887 #endif
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); } &&
bb9e79c0 24902 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24904 (eval $ac_try) 2>&5
24905 ac_status=$?
24906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907 (exit $ac_status); }; } &&
24908 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24910 (eval $ac_try) 2>&5
24911 ac_status=$?
24912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24913 (exit $ac_status); }; }; then
24914
24915 wx_cv_lib_glibc21=yes
24916
24917else
24918 echo "$as_me: failed program was:" >&5
24919sed 's/^/| /' conftest.$ac_ext >&5
24920
24921
24922 wx_cv_lib_glibc21=no
24923
24924
24925fi
ac1cb8d3 24926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24927
24928fi
24929echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24930echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24931 if test "$wx_cv_lib_glibc21" = "yes"; then
24932 cat >>confdefs.h <<\_ACEOF
24933#define wxHAVE_GLIBC2 1
24934_ACEOF
24935
24936 fi
24937fi
24938
24939if test "x$wx_cv_lib_glibc21" = "xyes"; then
24940 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24941 cat >>confdefs.h <<\_ACEOF
24942#define _GNU_SOURCE 1
24943_ACEOF
24944
24945 fi
24946fi
24947
5d7b7554
VZ
24948have_cos=0
24949have_floor=0
a848cd7e 24950
5d7b7554
VZ
24951for ac_func in cos
24952do
24953as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24954echo "$as_me:$LINENO: checking for $ac_func" >&5
24955echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24956if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e 24957 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 24958else
5d7b7554 24959 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
24960/* confdefs.h. */
24961_ACEOF
24962cat confdefs.h >>conftest.$ac_ext
24963cat >>conftest.$ac_ext <<_ACEOF
24964/* end confdefs.h. */
5d7b7554
VZ
24965/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24967#define $ac_func innocuous_$ac_func
24968
24969/* System header to define __stub macros and hopefully few prototypes,
24970 which can conflict with char $ac_func (); below.
24971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24972 <limits.h> exists even on freestanding compilers. */
24973
24974#ifdef __STDC__
24975# include <limits.h>
24976#else
24977# include <assert.h>
24978#endif
24979
24980#undef $ac_func
24981
24982/* Override any gcc2 internal prototype to avoid an error. */
24983#ifdef __cplusplus
24984extern "C"
24985{
24986#endif
24987/* We use char because int might match the return type of a gcc2
24988 builtin and then its argument prototype would still apply. */
24989char $ac_func ();
24990/* The GNU C library defines this for functions which it implements
24991 to always fail with ENOSYS. Some functions are actually named
24992 something starting with __ and the normal name is an alias. */
24993#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24994choke me
24995#else
24996char (*f) () = $ac_func;
24997#endif
24998#ifdef __cplusplus
24999}
25000#endif
25001
25002int
25003main ()
25004{
25005return f != $ac_func;
25006 ;
25007 return 0;
25008}
a848cd7e 25009_ACEOF
5d7b7554
VZ
25010rm -f conftest.$ac_objext conftest$ac_exeext
25011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25012 (eval $ac_link) 2>conftest.er1
a848cd7e 25013 ac_status=$?
ac1cb8d3
VS
25014 grep -v '^ *+' conftest.er1 >conftest.err
25015 rm -f conftest.er1
25016 cat conftest.err >&5
a848cd7e
SC
25017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018 (exit $ac_status); } &&
bb9e79c0 25019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25021 (eval $ac_try) 2>&5
25022 ac_status=$?
25023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024 (exit $ac_status); }; } &&
5d7b7554 25025 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25027 (eval $ac_try) 2>&5
25028 ac_status=$?
25029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); }; }; then
5d7b7554 25031 eval "$as_ac_var=yes"
a848cd7e
SC
25032else
25033 echo "$as_me: failed program was:" >&5
25034sed 's/^/| /' conftest.$ac_ext >&5
25035
5d7b7554 25036eval "$as_ac_var=no"
a848cd7e 25037fi
5d7b7554
VZ
25038rm -f conftest.err conftest.$ac_objext \
25039 conftest$ac_exeext conftest.$ac_ext
a848cd7e 25040fi
5d7b7554
VZ
25041echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25042echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25043if test `eval echo '${'$as_ac_var'}'` = yes; then
25044 cat >>confdefs.h <<_ACEOF
25045#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25046_ACEOF
25047 have_cos=1
a848cd7e 25048fi
5d7b7554 25049done
a848cd7e 25050
ab0f0edd 25051
5d7b7554 25052for ac_func in floor
a848cd7e
SC
25053do
25054as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25055echo "$as_me:$LINENO: checking for $ac_func" >&5
25056echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25057if eval "test \"\${$as_ac_var+set}\" = set"; then
25058 echo $ECHO_N "(cached) $ECHO_C" >&6
25059else
25060 cat >conftest.$ac_ext <<_ACEOF
25061/* confdefs.h. */
25062_ACEOF
25063cat confdefs.h >>conftest.$ac_ext
25064cat >>conftest.$ac_ext <<_ACEOF
25065/* end confdefs.h. */
ac1cb8d3
VS
25066/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25068#define $ac_func innocuous_$ac_func
25069
a848cd7e
SC
25070/* System header to define __stub macros and hopefully few prototypes,
25071 which can conflict with char $ac_func (); below.
25072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25073 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25074
a848cd7e
SC
25075#ifdef __STDC__
25076# include <limits.h>
25077#else
25078# include <assert.h>
25079#endif
ac1cb8d3
VS
25080
25081#undef $ac_func
25082
a848cd7e
SC
25083/* Override any gcc2 internal prototype to avoid an error. */
25084#ifdef __cplusplus
25085extern "C"
25086{
25087#endif
25088/* We use char because int might match the return type of a gcc2
25089 builtin and then its argument prototype would still apply. */
25090char $ac_func ();
25091/* The GNU C library defines this for functions which it implements
25092 to always fail with ENOSYS. Some functions are actually named
25093 something starting with __ and the normal name is an alias. */
25094#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25095choke me
25096#else
25097char (*f) () = $ac_func;
25098#endif
25099#ifdef __cplusplus
25100}
25101#endif
25102
25103int
25104main ()
25105{
25106return f != $ac_func;
25107 ;
25108 return 0;
25109}
25110_ACEOF
25111rm -f conftest.$ac_objext conftest$ac_exeext
25112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25113 (eval $ac_link) 2>conftest.er1
a848cd7e 25114 ac_status=$?
ac1cb8d3
VS
25115 grep -v '^ *+' conftest.er1 >conftest.err
25116 rm -f conftest.er1
25117 cat conftest.err >&5
a848cd7e
SC
25118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119 (exit $ac_status); } &&
bb9e79c0 25120 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25122 (eval $ac_try) 2>&5
25123 ac_status=$?
25124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125 (exit $ac_status); }; } &&
25126 { ac_try='test -s conftest$ac_exeext'
25127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25128 (eval $ac_try) 2>&5
25129 ac_status=$?
25130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131 (exit $ac_status); }; }; then
25132 eval "$as_ac_var=yes"
25133else
25134 echo "$as_me: failed program was:" >&5
25135sed 's/^/| /' conftest.$ac_ext >&5
25136
25137eval "$as_ac_var=no"
25138fi
25139rm -f conftest.err conftest.$ac_objext \
25140 conftest$ac_exeext conftest.$ac_ext
25141fi
25142echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25143echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25144if test `eval echo '${'$as_ac_var'}'` = yes; then
25145 cat >>confdefs.h <<_ACEOF
25146#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25147_ACEOF
25148 have_floor=1
25149fi
25150done
25151
25152echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
25153echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
25154if test "$have_cos" = 1 -a "$have_floor" = 1; then
25155 echo "$as_me:$LINENO: result: yes" >&5
25156echo "${ECHO_T}yes" >&6
25157else
25158 echo "$as_me:$LINENO: result: no" >&5
25159echo "${ECHO_T}no" >&6
25160 LIBS="$LIBS -lm"
25161 # use different functions to avoid configure caching
25162 have_sin=0
25163 have_ceil=0
25164
25165for ac_func in sin
25166do
25167as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25168echo "$as_me:$LINENO: checking for $ac_func" >&5
25169echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25170if eval "test \"\${$as_ac_var+set}\" = set"; then
25171 echo $ECHO_N "(cached) $ECHO_C" >&6
25172else
25173 cat >conftest.$ac_ext <<_ACEOF
25174/* confdefs.h. */
25175_ACEOF
25176cat confdefs.h >>conftest.$ac_ext
25177cat >>conftest.$ac_ext <<_ACEOF
25178/* end confdefs.h. */
25179/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25181#define $ac_func innocuous_$ac_func
25182
25183/* System header to define __stub macros and hopefully few prototypes,
25184 which can conflict with char $ac_func (); below.
25185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25186 <limits.h> exists even on freestanding compilers. */
25187
25188#ifdef __STDC__
25189# include <limits.h>
25190#else
25191# include <assert.h>
25192#endif
25193
25194#undef $ac_func
25195
25196/* Override any gcc2 internal prototype to avoid an error. */
25197#ifdef __cplusplus
25198extern "C"
25199{
25200#endif
25201/* We use char because int might match the return type of a gcc2
25202 builtin and then its argument prototype would still apply. */
25203char $ac_func ();
25204/* The GNU C library defines this for functions which it implements
25205 to always fail with ENOSYS. Some functions are actually named
25206 something starting with __ and the normal name is an alias. */
25207#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25208choke me
25209#else
25210char (*f) () = $ac_func;
25211#endif
25212#ifdef __cplusplus
25213}
25214#endif
25215
25216int
25217main ()
25218{
25219return f != $ac_func;
25220 ;
25221 return 0;
25222}
25223_ACEOF
25224rm -f conftest.$ac_objext conftest$ac_exeext
25225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25226 (eval $ac_link) 2>conftest.er1
25227 ac_status=$?
25228 grep -v '^ *+' conftest.er1 >conftest.err
25229 rm -f conftest.er1
25230 cat conftest.err >&5
25231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25232 (exit $ac_status); } &&
bb9e79c0 25233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25235 (eval $ac_try) 2>&5
25236 ac_status=$?
25237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238 (exit $ac_status); }; } &&
25239 { ac_try='test -s conftest$ac_exeext'
25240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25241 (eval $ac_try) 2>&5
25242 ac_status=$?
25243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25244 (exit $ac_status); }; }; then
25245 eval "$as_ac_var=yes"
25246else
25247 echo "$as_me: failed program was:" >&5
25248sed 's/^/| /' conftest.$ac_ext >&5
25249
25250eval "$as_ac_var=no"
25251fi
25252rm -f conftest.err conftest.$ac_objext \
25253 conftest$ac_exeext conftest.$ac_ext
25254fi
25255echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25256echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25257if test `eval echo '${'$as_ac_var'}'` = yes; then
25258 cat >>confdefs.h <<_ACEOF
25259#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25260_ACEOF
25261 have_sin=1
25262fi
25263done
25264
25265
25266for ac_func in ceil
25267do
25268as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25269echo "$as_me:$LINENO: checking for $ac_func" >&5
25270echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25271if eval "test \"\${$as_ac_var+set}\" = set"; then
25272 echo $ECHO_N "(cached) $ECHO_C" >&6
25273else
25274 cat >conftest.$ac_ext <<_ACEOF
25275/* confdefs.h. */
25276_ACEOF
25277cat confdefs.h >>conftest.$ac_ext
25278cat >>conftest.$ac_ext <<_ACEOF
25279/* end confdefs.h. */
25280/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25282#define $ac_func innocuous_$ac_func
25283
25284/* System header to define __stub macros and hopefully few prototypes,
25285 which can conflict with char $ac_func (); below.
25286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25287 <limits.h> exists even on freestanding compilers. */
25288
25289#ifdef __STDC__
25290# include <limits.h>
25291#else
25292# include <assert.h>
25293#endif
25294
25295#undef $ac_func
25296
25297/* Override any gcc2 internal prototype to avoid an error. */
25298#ifdef __cplusplus
25299extern "C"
25300{
25301#endif
25302/* We use char because int might match the return type of a gcc2
25303 builtin and then its argument prototype would still apply. */
25304char $ac_func ();
25305/* The GNU C library defines this for functions which it implements
25306 to always fail with ENOSYS. Some functions are actually named
25307 something starting with __ and the normal name is an alias. */
25308#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25309choke me
25310#else
25311char (*f) () = $ac_func;
25312#endif
25313#ifdef __cplusplus
25314}
25315#endif
25316
25317int
25318main ()
25319{
25320return f != $ac_func;
25321 ;
25322 return 0;
25323}
25324_ACEOF
25325rm -f conftest.$ac_objext conftest$ac_exeext
25326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25327 (eval $ac_link) 2>conftest.er1
25328 ac_status=$?
25329 grep -v '^ *+' conftest.er1 >conftest.err
25330 rm -f conftest.er1
25331 cat conftest.err >&5
25332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333 (exit $ac_status); } &&
bb9e79c0 25334 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25336 (eval $ac_try) 2>&5
25337 ac_status=$?
25338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339 (exit $ac_status); }; } &&
25340 { ac_try='test -s conftest$ac_exeext'
25341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25342 (eval $ac_try) 2>&5
25343 ac_status=$?
25344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25345 (exit $ac_status); }; }; then
25346 eval "$as_ac_var=yes"
25347else
25348 echo "$as_me: failed program was:" >&5
25349sed 's/^/| /' conftest.$ac_ext >&5
25350
25351eval "$as_ac_var=no"
25352fi
25353rm -f conftest.err conftest.$ac_objext \
25354 conftest$ac_exeext conftest.$ac_ext
25355fi
25356echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25357echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25358if test `eval echo '${'$as_ac_var'}'` = yes; then
25359 cat >>confdefs.h <<_ACEOF
25360#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25361_ACEOF
25362 have_ceil=1
25363fi
25364done
25365
25366 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
25367echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
25368 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
25369 echo "$as_me:$LINENO: result: yes" >&5
25370echo "${ECHO_T}yes" >&6
25371 else
25372 echo "$as_me:$LINENO: result: no" >&5
25373echo "${ECHO_T}no" >&6
25374 # not sure we should warn the user, crash, etc.
25375 fi
25376fi
25377
ec3edcc9
VZ
25378if test "wxUSE_UNICODE" = "yes"; then
25379
25380for ac_func in wcstoull
25381do
25382as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25383echo "$as_me:$LINENO: checking for $ac_func" >&5
25384echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25385if eval "test \"\${$as_ac_var+set}\" = set"; then
25386 echo $ECHO_N "(cached) $ECHO_C" >&6
25387else
25388 cat >conftest.$ac_ext <<_ACEOF
25389/* confdefs.h. */
25390_ACEOF
25391cat confdefs.h >>conftest.$ac_ext
25392cat >>conftest.$ac_ext <<_ACEOF
25393/* end confdefs.h. */
25394/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25396#define $ac_func innocuous_$ac_func
25397
25398/* System header to define __stub macros and hopefully few prototypes,
25399 which can conflict with char $ac_func (); below.
25400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25401 <limits.h> exists even on freestanding compilers. */
25402
25403#ifdef __STDC__
25404# include <limits.h>
25405#else
25406# include <assert.h>
25407#endif
25408
25409#undef $ac_func
25410
25411/* Override any gcc2 internal prototype to avoid an error. */
25412#ifdef __cplusplus
25413extern "C"
25414{
25415#endif
25416/* We use char because int might match the return type of a gcc2
25417 builtin and then its argument prototype would still apply. */
25418char $ac_func ();
25419/* The GNU C library defines this for functions which it implements
25420 to always fail with ENOSYS. Some functions are actually named
25421 something starting with __ and the normal name is an alias. */
25422#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25423choke me
25424#else
25425char (*f) () = $ac_func;
25426#endif
25427#ifdef __cplusplus
25428}
25429#endif
25430
25431int
25432main ()
25433{
25434return f != $ac_func;
25435 ;
25436 return 0;
25437}
25438_ACEOF
25439rm -f conftest.$ac_objext conftest$ac_exeext
25440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25441 (eval $ac_link) 2>conftest.er1
25442 ac_status=$?
25443 grep -v '^ *+' conftest.er1 >conftest.err
25444 rm -f conftest.er1
25445 cat conftest.err >&5
25446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25447 (exit $ac_status); } &&
bb9e79c0 25448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ec3edcc9
VZ
25449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25450 (eval $ac_try) 2>&5
25451 ac_status=$?
25452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453 (exit $ac_status); }; } &&
25454 { ac_try='test -s conftest$ac_exeext'
25455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25456 (eval $ac_try) 2>&5
25457 ac_status=$?
25458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25459 (exit $ac_status); }; }; then
25460 eval "$as_ac_var=yes"
25461else
25462 echo "$as_me: failed program was:" >&5
25463sed 's/^/| /' conftest.$ac_ext >&5
25464
25465eval "$as_ac_var=no"
25466fi
25467rm -f conftest.err conftest.$ac_objext \
25468 conftest$ac_exeext conftest.$ac_ext
25469fi
25470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25471echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25472if test `eval echo '${'$as_ac_var'}'` = yes; then
25473 cat >>confdefs.h <<_ACEOF
25474#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25475_ACEOF
25476
25477fi
25478done
25479
25480else
25481
25482for ac_func in strtoull
25483do
25484as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25485echo "$as_me:$LINENO: checking for $ac_func" >&5
25486echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25487if eval "test \"\${$as_ac_var+set}\" = set"; then
25488 echo $ECHO_N "(cached) $ECHO_C" >&6
25489else
25490 cat >conftest.$ac_ext <<_ACEOF
25491/* confdefs.h. */
25492_ACEOF
25493cat confdefs.h >>conftest.$ac_ext
25494cat >>conftest.$ac_ext <<_ACEOF
25495/* end confdefs.h. */
25496/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25498#define $ac_func innocuous_$ac_func
25499
25500/* System header to define __stub macros and hopefully few prototypes,
25501 which can conflict with char $ac_func (); below.
25502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25503 <limits.h> exists even on freestanding compilers. */
25504
25505#ifdef __STDC__
25506# include <limits.h>
25507#else
25508# include <assert.h>
25509#endif
25510
25511#undef $ac_func
25512
25513/* Override any gcc2 internal prototype to avoid an error. */
25514#ifdef __cplusplus
25515extern "C"
25516{
25517#endif
25518/* We use char because int might match the return type of a gcc2
25519 builtin and then its argument prototype would still apply. */
25520char $ac_func ();
25521/* The GNU C library defines this for functions which it implements
25522 to always fail with ENOSYS. Some functions are actually named
25523 something starting with __ and the normal name is an alias. */
25524#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25525choke me
25526#else
25527char (*f) () = $ac_func;
25528#endif
25529#ifdef __cplusplus
25530}
25531#endif
25532
25533int
25534main ()
25535{
25536return f != $ac_func;
25537 ;
25538 return 0;
25539}
25540_ACEOF
25541rm -f conftest.$ac_objext conftest$ac_exeext
25542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25543 (eval $ac_link) 2>conftest.er1
25544 ac_status=$?
25545 grep -v '^ *+' conftest.er1 >conftest.err
25546 rm -f conftest.er1
25547 cat conftest.err >&5
25548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25549 (exit $ac_status); } &&
bb9e79c0 25550 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ec3edcc9
VZ
25551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25552 (eval $ac_try) 2>&5
25553 ac_status=$?
25554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25555 (exit $ac_status); }; } &&
25556 { ac_try='test -s conftest$ac_exeext'
25557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25558 (eval $ac_try) 2>&5
25559 ac_status=$?
25560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25561 (exit $ac_status); }; }; then
25562 eval "$as_ac_var=yes"
25563else
25564 echo "$as_me: failed program was:" >&5
25565sed 's/^/| /' conftest.$ac_ext >&5
25566
25567eval "$as_ac_var=no"
25568fi
25569rm -f conftest.err conftest.$ac_objext \
25570 conftest$ac_exeext conftest.$ac_ext
25571fi
25572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25573echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25574if test `eval echo '${'$as_ac_var'}'` = yes; then
25575 cat >>confdefs.h <<_ACEOF
25576#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25577_ACEOF
25578
25579fi
25580done
25581
25582fi
25583
5d7b7554
VZ
25584
25585
25586if test "$wxUSE_REGEX" != "no"; then
25587 cat >>confdefs.h <<\_ACEOF
25588#define wxUSE_REGEX 1
25589_ACEOF
25590
25591
25592 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
25593 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
25594echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
25595 wxUSE_REGEX=builtin
25596 fi
25597
25598 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
25599 if test "${ac_cv_header_regex_h+set}" = set; then
25600 echo "$as_me:$LINENO: checking for regex.h" >&5
25601echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25602if test "${ac_cv_header_regex_h+set}" = set; then
25603 echo $ECHO_N "(cached) $ECHO_C" >&6
25604fi
25605echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25606echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25607else
25608 # Is the header compilable?
25609echo "$as_me:$LINENO: checking regex.h usability" >&5
25610echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
25611cat >conftest.$ac_ext <<_ACEOF
25612/* confdefs.h. */
25613_ACEOF
25614cat confdefs.h >>conftest.$ac_ext
25615cat >>conftest.$ac_ext <<_ACEOF
25616/* end confdefs.h. */
25617$ac_includes_default
25618#include <regex.h>
25619_ACEOF
25620rm -f conftest.$ac_objext
25621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25622 (eval $ac_compile) 2>conftest.er1
25623 ac_status=$?
25624 grep -v '^ *+' conftest.er1 >conftest.err
25625 rm -f conftest.er1
25626 cat conftest.err >&5
25627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628 (exit $ac_status); } &&
bb9e79c0 25629 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25631 (eval $ac_try) 2>&5
25632 ac_status=$?
25633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634 (exit $ac_status); }; } &&
25635 { ac_try='test -s conftest.$ac_objext'
25636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25637 (eval $ac_try) 2>&5
25638 ac_status=$?
25639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25640 (exit $ac_status); }; }; then
25641 ac_header_compiler=yes
25642else
25643 echo "$as_me: failed program was:" >&5
25644sed 's/^/| /' conftest.$ac_ext >&5
25645
25646ac_header_compiler=no
25647fi
25648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25649echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25650echo "${ECHO_T}$ac_header_compiler" >&6
25651
25652# Is the header present?
25653echo "$as_me:$LINENO: checking regex.h presence" >&5
25654echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
25655cat >conftest.$ac_ext <<_ACEOF
25656/* confdefs.h. */
25657_ACEOF
25658cat confdefs.h >>conftest.$ac_ext
25659cat >>conftest.$ac_ext <<_ACEOF
25660/* end confdefs.h. */
25661#include <regex.h>
25662_ACEOF
25663if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25665 ac_status=$?
25666 grep -v '^ *+' conftest.er1 >conftest.err
25667 rm -f conftest.er1
25668 cat conftest.err >&5
25669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25670 (exit $ac_status); } >/dev/null; then
25671 if test -s conftest.err; then
25672 ac_cpp_err=$ac_cxx_preproc_warn_flag
25673 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25674 else
25675 ac_cpp_err=
25676 fi
25677else
25678 ac_cpp_err=yes
25679fi
25680if test -z "$ac_cpp_err"; then
25681 ac_header_preproc=yes
25682else
25683 echo "$as_me: failed program was:" >&5
25684sed 's/^/| /' conftest.$ac_ext >&5
25685
25686 ac_header_preproc=no
25687fi
25688rm -f conftest.err conftest.$ac_ext
25689echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25690echo "${ECHO_T}$ac_header_preproc" >&6
25691
25692# So? What about this header?
25693case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25694 yes:no: )
25695 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
25696echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25697 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
25698echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
25699 ac_header_preproc=yes
25700 ;;
25701 no:yes:* )
25702 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
25703echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
25704 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
25705echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
25706 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
25707echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
25708 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
25709echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
25710 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
25711echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
25712 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
25713echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
25714 (
25715 cat <<\_ASBOX
25716## ----------------------------------------- ##
25717## Report this to wx-dev@lists.wxwidgets.org ##
25718## ----------------------------------------- ##
25719_ASBOX
25720 ) |
25721 sed "s/^/$as_me: WARNING: /" >&2
25722 ;;
25723esac
25724echo "$as_me:$LINENO: checking for regex.h" >&5
25725echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25726if test "${ac_cv_header_regex_h+set}" = set; then
25727 echo $ECHO_N "(cached) $ECHO_C" >&6
25728else
25729 ac_cv_header_regex_h=$ac_header_preproc
25730fi
25731echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25732echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25733
25734fi
25735if test $ac_cv_header_regex_h = yes; then
25736
25737
25738for ac_func in regcomp re_search
25739do
25740as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25741echo "$as_me:$LINENO: checking for $ac_func" >&5
25742echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25743if eval "test \"\${$as_ac_var+set}\" = set"; then
25744 echo $ECHO_N "(cached) $ECHO_C" >&6
25745else
25746 cat >conftest.$ac_ext <<_ACEOF
25747/* confdefs.h. */
25748_ACEOF
25749cat confdefs.h >>conftest.$ac_ext
25750cat >>conftest.$ac_ext <<_ACEOF
25751/* end confdefs.h. */
25752/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25754#define $ac_func innocuous_$ac_func
25755
25756/* System header to define __stub macros and hopefully few prototypes,
25757 which can conflict with char $ac_func (); below.
25758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25759 <limits.h> exists even on freestanding compilers. */
25760
25761#ifdef __STDC__
25762# include <limits.h>
25763#else
25764# include <assert.h>
25765#endif
25766
25767#undef $ac_func
25768
25769/* Override any gcc2 internal prototype to avoid an error. */
25770#ifdef __cplusplus
25771extern "C"
25772{
25773#endif
25774/* We use char because int might match the return type of a gcc2
25775 builtin and then its argument prototype would still apply. */
25776char $ac_func ();
25777/* The GNU C library defines this for functions which it implements
25778 to always fail with ENOSYS. Some functions are actually named
25779 something starting with __ and the normal name is an alias. */
25780#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25781choke me
25782#else
25783char (*f) () = $ac_func;
25784#endif
25785#ifdef __cplusplus
25786}
25787#endif
25788
25789int
25790main ()
25791{
25792return f != $ac_func;
25793 ;
25794 return 0;
25795}
25796_ACEOF
25797rm -f conftest.$ac_objext conftest$ac_exeext
25798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25799 (eval $ac_link) 2>conftest.er1
25800 ac_status=$?
25801 grep -v '^ *+' conftest.er1 >conftest.err
25802 rm -f conftest.er1
25803 cat conftest.err >&5
25804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25805 (exit $ac_status); } &&
bb9e79c0 25806 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25808 (eval $ac_try) 2>&5
25809 ac_status=$?
25810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811 (exit $ac_status); }; } &&
25812 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25814 (eval $ac_try) 2>&5
25815 ac_status=$?
25816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817 (exit $ac_status); }; }; then
25818 eval "$as_ac_var=yes"
25819else
25820 echo "$as_me: failed program was:" >&5
25821sed 's/^/| /' conftest.$ac_ext >&5
25822
25823eval "$as_ac_var=no"
25824fi
ac1cb8d3
VS
25825rm -f conftest.err conftest.$ac_objext \
25826 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25827fi
25828echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25829echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25830if test `eval echo '${'$as_ac_var'}'` = yes; then
25831 cat >>confdefs.h <<_ACEOF
25832#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25833_ACEOF
25834
25835fi
25836done
25837
25838fi
25839
25840
25841
25842 if test "x$ac_cv_func_regcomp" != "xyes"; then
25843 if test "$wxUSE_REGEX" = "sys" ; then
25844 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25845echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25846 { (exit 1); exit 1; }; }
25847 else
25848 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25849echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25850 wxUSE_REGEX=builtin
25851 fi
25852 else
25853 wxUSE_REGEX=sys
25854 cat >>confdefs.h <<\_ACEOF
25855#define WX_NO_REGEX_ADVANCED 1
25856_ACEOF
25857
25858 fi
25859 fi
25860fi
25861
25862
25863ZLIB_LINK=
25864if test "$wxUSE_ZLIB" != "no" ; then
25865 cat >>confdefs.h <<\_ACEOF
25866#define wxUSE_ZLIB 1
25867_ACEOF
25868
25869
25870 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25871 if test "$USE_DARWIN" = 1; then
25872 system_zlib_h_ok="yes"
25873 else
25874 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25875echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
25876if test "${ac_cv_header_zlib_h+set}" = set; then
25877 echo $ECHO_N "(cached) $ECHO_C" >&6
25878else
25879 if test "$cross_compiling" = yes; then
25880 unset ac_cv_header_zlib_h
25881
25882else
25883 cat >conftest.$ac_ext <<_ACEOF
25884/* confdefs.h. */
25885_ACEOF
25886cat confdefs.h >>conftest.$ac_ext
25887cat >>conftest.$ac_ext <<_ACEOF
25888/* end confdefs.h. */
25889
25890 #include <zlib.h>
25891 #include <stdio.h>
25892
25893 int main()
25894 {
25895 FILE *f=fopen("conftestval", "w");
25896 if (!f) exit(1);
25897 fprintf(f, "%s",
25898 ZLIB_VERSION[0] == '1' &&
25899 (ZLIB_VERSION[2] > '1' ||
25900 (ZLIB_VERSION[2] == '1' &&
25901 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25902 exit(0);
25903 }
25904
25905_ACEOF
25906rm -f conftest$ac_exeext
25907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25908 (eval $ac_link) 2>&5
25909 ac_status=$?
25910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25913 (eval $ac_try) 2>&5
25914 ac_status=$?
25915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916 (exit $ac_status); }; }; then
25917 ac_cv_header_zlib_h=`cat conftestval`
25918else
25919 echo "$as_me: program exited with status $ac_status" >&5
25920echo "$as_me: failed program was:" >&5
25921sed 's/^/| /' conftest.$ac_ext >&5
25922
25923( exit $ac_status )
25924ac_cv_header_zlib_h=no
25925fi
ac1cb8d3 25926rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25927fi
25928
25929fi
25930echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25931echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25932 if test "${ac_cv_header_zlib_h+set}" = set; then
25933 echo "$as_me:$LINENO: checking for zlib.h" >&5
25934echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25935if test "${ac_cv_header_zlib_h+set}" = set; then
25936 echo $ECHO_N "(cached) $ECHO_C" >&6
25937fi
25938echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25939echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25940else
25941 # Is the header compilable?
25942echo "$as_me:$LINENO: checking zlib.h usability" >&5
25943echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25944cat >conftest.$ac_ext <<_ACEOF
25945/* confdefs.h. */
25946_ACEOF
25947cat confdefs.h >>conftest.$ac_ext
25948cat >>conftest.$ac_ext <<_ACEOF
25949/* end confdefs.h. */
25950$ac_includes_default
25951#include <zlib.h>
25952_ACEOF
25953rm -f conftest.$ac_objext
25954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25955 (eval $ac_compile) 2>conftest.er1
a848cd7e 25956 ac_status=$?
ac1cb8d3
VS
25957 grep -v '^ *+' conftest.er1 >conftest.err
25958 rm -f conftest.er1
25959 cat conftest.err >&5
a848cd7e
SC
25960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25961 (exit $ac_status); } &&
bb9e79c0 25962 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25964 (eval $ac_try) 2>&5
25965 ac_status=$?
25966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967 (exit $ac_status); }; } &&
25968 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25970 (eval $ac_try) 2>&5
25971 ac_status=$?
25972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25973 (exit $ac_status); }; }; then
25974 ac_header_compiler=yes
25975else
25976 echo "$as_me: failed program was:" >&5
25977sed 's/^/| /' conftest.$ac_ext >&5
25978
25979ac_header_compiler=no
25980fi
ac1cb8d3 25981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25982echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25983echo "${ECHO_T}$ac_header_compiler" >&6
25984
25985# Is the header present?
25986echo "$as_me:$LINENO: checking zlib.h presence" >&5
25987echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25988cat >conftest.$ac_ext <<_ACEOF
25989/* confdefs.h. */
25990_ACEOF
25991cat confdefs.h >>conftest.$ac_ext
25992cat >>conftest.$ac_ext <<_ACEOF
25993/* end confdefs.h. */
25994#include <zlib.h>
25995_ACEOF
25996if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25998 ac_status=$?
25999 grep -v '^ *+' conftest.er1 >conftest.err
26000 rm -f conftest.er1
26001 cat conftest.err >&5
26002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26003 (exit $ac_status); } >/dev/null; then
26004 if test -s conftest.err; then
5d7b7554
VZ
26005 ac_cpp_err=$ac_cxx_preproc_warn_flag
26006 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26007 else
26008 ac_cpp_err=
26009 fi
26010else
26011 ac_cpp_err=yes
26012fi
26013if test -z "$ac_cpp_err"; then
26014 ac_header_preproc=yes
26015else
26016 echo "$as_me: failed program was:" >&5
26017sed 's/^/| /' conftest.$ac_ext >&5
26018
26019 ac_header_preproc=no
26020fi
26021rm -f conftest.err conftest.$ac_ext
26022echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26023echo "${ECHO_T}$ac_header_preproc" >&6
26024
26025# So? What about this header?
5d7b7554 26026case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26027 yes:no: )
a848cd7e
SC
26028 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26029echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26030 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
26031echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
26032 ac_header_preproc=yes
a848cd7e 26033 ;;
ac1cb8d3 26034 no:yes:* )
a848cd7e
SC
26035 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
26036echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26037 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
26038echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
26039 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
26040echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
26041 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
26042echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26043 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
26044echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26045 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
26046echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26047 (
26048 cat <<\_ASBOX
ac1cb8d3
VS
26049## ----------------------------------------- ##
26050## Report this to wx-dev@lists.wxwidgets.org ##
26051## ----------------------------------------- ##
a848cd7e
SC
26052_ASBOX
26053 ) |
26054 sed "s/^/$as_me: WARNING: /" >&2
26055 ;;
26056esac
26057echo "$as_me:$LINENO: checking for zlib.h" >&5
26058echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
26059if test "${ac_cv_header_zlib_h+set}" = set; then
26060 echo $ECHO_N "(cached) $ECHO_C" >&6
26061else
26062 ac_cv_header_zlib_h=$ac_header_preproc
26063fi
26064echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26065echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
26066
26067fi
26068
26069
26070
26071 system_zlib_h_ok=$ac_cv_header_zlib_h
26072 fi
26073
26074 if test "$system_zlib_h_ok" = "yes"; then
26075 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
26076echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
26077if test "${ac_cv_lib_z_deflate+set}" = set; then
26078 echo $ECHO_N "(cached) $ECHO_C" >&6
26079else
26080 ac_check_lib_save_LIBS=$LIBS
26081LIBS="-lz $LIBS"
26082cat >conftest.$ac_ext <<_ACEOF
26083/* confdefs.h. */
26084_ACEOF
26085cat confdefs.h >>conftest.$ac_ext
26086cat >>conftest.$ac_ext <<_ACEOF
26087/* end confdefs.h. */
26088
26089/* Override any gcc2 internal prototype to avoid an error. */
26090#ifdef __cplusplus
26091extern "C"
26092#endif
26093/* We use char because int might match the return type of a gcc2
26094 builtin and then its argument prototype would still apply. */
26095char deflate ();
26096int
26097main ()
26098{
26099deflate ();
26100 ;
26101 return 0;
26102}
26103_ACEOF
26104rm -f conftest.$ac_objext conftest$ac_exeext
26105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26106 (eval $ac_link) 2>conftest.er1
a848cd7e 26107 ac_status=$?
ac1cb8d3
VS
26108 grep -v '^ *+' conftest.er1 >conftest.err
26109 rm -f conftest.er1
26110 cat conftest.err >&5
a848cd7e
SC
26111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112 (exit $ac_status); } &&
bb9e79c0 26113 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26115 (eval $ac_try) 2>&5
26116 ac_status=$?
26117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26118 (exit $ac_status); }; } &&
26119 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26121 (eval $ac_try) 2>&5
26122 ac_status=$?
26123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26124 (exit $ac_status); }; }; then
26125 ac_cv_lib_z_deflate=yes
26126else
26127 echo "$as_me: failed program was:" >&5
26128sed 's/^/| /' conftest.$ac_ext >&5
26129
26130ac_cv_lib_z_deflate=no
26131fi
ac1cb8d3
VS
26132rm -f conftest.err conftest.$ac_objext \
26133 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26134LIBS=$ac_check_lib_save_LIBS
26135fi
26136echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
26137echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
26138if test $ac_cv_lib_z_deflate = yes; then
26139 ZLIB_LINK=" -lz"
26140fi
26141
26142 fi
26143
26144 if test "x$ZLIB_LINK" = "x" ; then
26145 if test "$wxUSE_ZLIB" = "sys" ; then
26146 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
26147echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
26148 { (exit 1); exit 1; }; }
26149 else
26150 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
26151echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
26152 wxUSE_ZLIB=builtin
26153 fi
26154 else
26155 wxUSE_ZLIB=sys
26156 fi
26157 fi
26158fi
26159
26160
26161PNG_LINK=
26162if test "$wxUSE_LIBPNG" != "no" ; then
26163 cat >>confdefs.h <<\_ACEOF
26164#define wxUSE_LIBPNG 1
26165_ACEOF
26166
26167
26168 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
26169 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
26170echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
26171 wxUSE_LIBPNG=sys
26172 fi
26173
26174 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
26175 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
26176echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
26177 wxUSE_LIBPNG=builtin
26178 fi
26179
26180 if test "$wxUSE_MGL" != 1 ; then
26181 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
26182 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
26183echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
26184if test "${ac_cv_header_png_h+set}" = set; then
26185 echo $ECHO_N "(cached) $ECHO_C" >&6
26186else
26187 if test "$cross_compiling" = yes; then
26188 unset ac_cv_header_png_h
26189
26190else
26191 cat >conftest.$ac_ext <<_ACEOF
26192/* confdefs.h. */
26193_ACEOF
26194cat confdefs.h >>conftest.$ac_ext
26195cat >>conftest.$ac_ext <<_ACEOF
26196/* end confdefs.h. */
26197
26198 #include <png.h>
26199 #include <stdio.h>
26200
26201 int main()
26202 {
26203 FILE *f=fopen("conftestval", "w");
26204 if (!f) exit(1);
26205 fprintf(f, "%s",
26206 PNG_LIBPNG_VER > 90 ? "yes" : "no");
26207 exit(0);
26208 }
26209
26210_ACEOF
26211rm -f conftest$ac_exeext
26212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26213 (eval $ac_link) 2>&5
26214 ac_status=$?
26215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26218 (eval $ac_try) 2>&5
26219 ac_status=$?
26220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26221 (exit $ac_status); }; }; then
26222 ac_cv_header_png_h=`cat conftestval`
26223else
26224 echo "$as_me: program exited with status $ac_status" >&5
26225echo "$as_me: failed program was:" >&5
26226sed 's/^/| /' conftest.$ac_ext >&5
26227
26228( exit $ac_status )
26229ac_cv_header_png_h=no
26230fi
ac1cb8d3 26231rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26232fi
26233
26234fi
26235echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26236echo "${ECHO_T}$ac_cv_header_png_h" >&6
26237 if test "${ac_cv_header_png_h+set}" = set; then
26238 echo "$as_me:$LINENO: checking for png.h" >&5
26239echo $ECHO_N "checking for png.h... $ECHO_C" >&6
26240if test "${ac_cv_header_png_h+set}" = set; then
26241 echo $ECHO_N "(cached) $ECHO_C" >&6
26242fi
26243echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26244echo "${ECHO_T}$ac_cv_header_png_h" >&6
26245else
26246 # Is the header compilable?
26247echo "$as_me:$LINENO: checking png.h usability" >&5
26248echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
26249cat >conftest.$ac_ext <<_ACEOF
26250/* confdefs.h. */
26251_ACEOF
26252cat confdefs.h >>conftest.$ac_ext
26253cat >>conftest.$ac_ext <<_ACEOF
26254/* end confdefs.h. */
26255$ac_includes_default
26256#include <png.h>
26257_ACEOF
26258rm -f conftest.$ac_objext
26259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26260 (eval $ac_compile) 2>conftest.er1
a848cd7e 26261 ac_status=$?
ac1cb8d3
VS
26262 grep -v '^ *+' conftest.er1 >conftest.err
26263 rm -f conftest.er1
26264 cat conftest.err >&5
a848cd7e
SC
26265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26266 (exit $ac_status); } &&
bb9e79c0 26267 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26269 (eval $ac_try) 2>&5
26270 ac_status=$?
26271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272 (exit $ac_status); }; } &&
26273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26275 (eval $ac_try) 2>&5
26276 ac_status=$?
26277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26278 (exit $ac_status); }; }; then
26279 ac_header_compiler=yes
26280else
26281 echo "$as_me: failed program was:" >&5
26282sed 's/^/| /' conftest.$ac_ext >&5
26283
26284ac_header_compiler=no
26285fi
ac1cb8d3 26286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26287echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26288echo "${ECHO_T}$ac_header_compiler" >&6
26289
26290# Is the header present?
26291echo "$as_me:$LINENO: checking png.h presence" >&5
26292echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
26293cat >conftest.$ac_ext <<_ACEOF
26294/* confdefs.h. */
26295_ACEOF
26296cat confdefs.h >>conftest.$ac_ext
26297cat >>conftest.$ac_ext <<_ACEOF
26298/* end confdefs.h. */
26299#include <png.h>
26300_ACEOF
26301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26303 ac_status=$?
26304 grep -v '^ *+' conftest.er1 >conftest.err
26305 rm -f conftest.er1
26306 cat conftest.err >&5
26307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26308 (exit $ac_status); } >/dev/null; then
26309 if test -s conftest.err; then
5d7b7554
VZ
26310 ac_cpp_err=$ac_cxx_preproc_warn_flag
26311 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26312 else
26313 ac_cpp_err=
26314 fi
26315else
26316 ac_cpp_err=yes
26317fi
26318if test -z "$ac_cpp_err"; then
26319 ac_header_preproc=yes
26320else
26321 echo "$as_me: failed program was:" >&5
26322sed 's/^/| /' conftest.$ac_ext >&5
26323
26324 ac_header_preproc=no
26325fi
26326rm -f conftest.err conftest.$ac_ext
26327echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26328echo "${ECHO_T}$ac_header_preproc" >&6
26329
26330# So? What about this header?
5d7b7554 26331case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26332 yes:no: )
a848cd7e
SC
26333 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
26334echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26335 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
26336echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
26337 ac_header_preproc=yes
a848cd7e 26338 ;;
ac1cb8d3 26339 no:yes:* )
a848cd7e
SC
26340 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
26341echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26342 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
26343echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
26344 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
26345echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
26346 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
26347echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26348 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
26349echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26350 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
26351echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26352 (
26353 cat <<\_ASBOX
ac1cb8d3
VS
26354## ----------------------------------------- ##
26355## Report this to wx-dev@lists.wxwidgets.org ##
26356## ----------------------------------------- ##
a848cd7e
SC
26357_ASBOX
26358 ) |
26359 sed "s/^/$as_me: WARNING: /" >&2
26360 ;;
26361esac
26362echo "$as_me:$LINENO: checking for png.h" >&5
26363echo $ECHO_N "checking for png.h... $ECHO_C" >&6
26364if test "${ac_cv_header_png_h+set}" = set; then
26365 echo $ECHO_N "(cached) $ECHO_C" >&6
26366else
26367 ac_cv_header_png_h=$ac_header_preproc
26368fi
26369echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26370echo "${ECHO_T}$ac_cv_header_png_h" >&6
26371
26372fi
26373
26374
26375
26376 if test "$ac_cv_header_png_h" = "yes"; then
26377 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
26378echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
26379if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
26380 echo $ECHO_N "(cached) $ECHO_C" >&6
26381else
26382 ac_check_lib_save_LIBS=$LIBS
26383LIBS="-lpng -lz -lm $LIBS"
26384cat >conftest.$ac_ext <<_ACEOF
26385/* confdefs.h. */
26386_ACEOF
26387cat confdefs.h >>conftest.$ac_ext
26388cat >>conftest.$ac_ext <<_ACEOF
26389/* end confdefs.h. */
26390
26391/* Override any gcc2 internal prototype to avoid an error. */
26392#ifdef __cplusplus
26393extern "C"
26394#endif
26395/* We use char because int might match the return type of a gcc2
26396 builtin and then its argument prototype would still apply. */
26397char png_check_sig ();
26398int
26399main ()
26400{
26401png_check_sig ();
26402 ;
26403 return 0;
26404}
26405_ACEOF
26406rm -f conftest.$ac_objext conftest$ac_exeext
26407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26408 (eval $ac_link) 2>conftest.er1
a848cd7e 26409 ac_status=$?
ac1cb8d3
VS
26410 grep -v '^ *+' conftest.er1 >conftest.err
26411 rm -f conftest.er1
26412 cat conftest.err >&5
a848cd7e
SC
26413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26414 (exit $ac_status); } &&
bb9e79c0 26415 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26417 (eval $ac_try) 2>&5
26418 ac_status=$?
26419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26420 (exit $ac_status); }; } &&
26421 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26423 (eval $ac_try) 2>&5
26424 ac_status=$?
26425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26426 (exit $ac_status); }; }; then
26427 ac_cv_lib_png_png_check_sig=yes
26428else
26429 echo "$as_me: failed program was:" >&5
26430sed 's/^/| /' conftest.$ac_ext >&5
26431
26432ac_cv_lib_png_png_check_sig=no
26433fi
ac1cb8d3
VS
26434rm -f conftest.err conftest.$ac_objext \
26435 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26436LIBS=$ac_check_lib_save_LIBS
26437fi
26438echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
26439echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
26440if test $ac_cv_lib_png_png_check_sig = yes; then
26441 PNG_LINK=" -lpng -lz"
26442fi
26443
26444 fi
26445
26446 if test "x$PNG_LINK" = "x" ; then
26447 if test "$wxUSE_LIBPNG" = "sys" ; then
26448 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
26449echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
26450 { (exit 1); exit 1; }; }
26451 else
26452 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
26453echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
26454 wxUSE_LIBPNG=builtin
26455 fi
26456 else
26457 wxUSE_LIBPNG=sys
26458 fi
26459 fi
26460 fi
26461
26462 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
26463fi
26464
26465
26466JPEG_LINK=
26467if test "$wxUSE_LIBJPEG" != "no" ; then
26468 cat >>confdefs.h <<\_ACEOF
26469#define wxUSE_LIBJPEG 1
26470_ACEOF
26471
26472
26473 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
26474 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
26475echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
26476 wxUSE_LIBJPEG=sys
26477 fi
26478
26479 if test "$wxUSE_MGL" != 1 ; then
26480 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
26481 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
26482echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
26483 if test "${ac_cv_header_jpeglib_h+set}" = set; then
26484 echo $ECHO_N "(cached) $ECHO_C" >&6
26485else
26486 cat >conftest.$ac_ext <<_ACEOF
26487/* confdefs.h. */
26488_ACEOF
26489cat confdefs.h >>conftest.$ac_ext
26490cat >>conftest.$ac_ext <<_ACEOF
26491/* end confdefs.h. */
26492
26493 #undef HAVE_STDLIB_H
26494 #include <stdio.h>
26495 #include <jpeglib.h>
26496
26497int
26498main ()
26499{
26500
26501
26502 ;
26503 return 0;
26504}
26505_ACEOF
26506rm -f conftest.$ac_objext
26507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26508 (eval $ac_compile) 2>conftest.er1
a848cd7e 26509 ac_status=$?
ac1cb8d3
VS
26510 grep -v '^ *+' conftest.er1 >conftest.err
26511 rm -f conftest.er1
26512 cat conftest.err >&5
a848cd7e
SC
26513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26514 (exit $ac_status); } &&
bb9e79c0 26515 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26517 (eval $ac_try) 2>&5
26518 ac_status=$?
26519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26520 (exit $ac_status); }; } &&
26521 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26523 (eval $ac_try) 2>&5
26524 ac_status=$?
26525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26526 (exit $ac_status); }; }; then
26527 ac_cv_header_jpeglib_h=yes
26528else
26529 echo "$as_me: failed program was:" >&5
26530sed 's/^/| /' conftest.$ac_ext >&5
26531
26532ac_cv_header_jpeglib_h=no
26533
26534fi
ac1cb8d3 26535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26536
26537fi
26538
26539 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
26540echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
26541
26542 if test "$ac_cv_header_jpeglib_h" = "yes"; then
26543 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
26544echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
26545if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
26546 echo $ECHO_N "(cached) $ECHO_C" >&6
26547else
26548 ac_check_lib_save_LIBS=$LIBS
26549LIBS="-ljpeg $LIBS"
26550cat >conftest.$ac_ext <<_ACEOF
26551/* confdefs.h. */
26552_ACEOF
26553cat confdefs.h >>conftest.$ac_ext
26554cat >>conftest.$ac_ext <<_ACEOF
26555/* end confdefs.h. */
26556
26557/* Override any gcc2 internal prototype to avoid an error. */
26558#ifdef __cplusplus
26559extern "C"
26560#endif
26561/* We use char because int might match the return type of a gcc2
26562 builtin and then its argument prototype would still apply. */
26563char jpeg_read_header ();
26564int
26565main ()
26566{
26567jpeg_read_header ();
26568 ;
26569 return 0;
26570}
26571_ACEOF
26572rm -f conftest.$ac_objext conftest$ac_exeext
26573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26574 (eval $ac_link) 2>conftest.er1
a848cd7e 26575 ac_status=$?
ac1cb8d3
VS
26576 grep -v '^ *+' conftest.er1 >conftest.err
26577 rm -f conftest.er1
26578 cat conftest.err >&5
a848cd7e
SC
26579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26580 (exit $ac_status); } &&
bb9e79c0 26581 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26583 (eval $ac_try) 2>&5
26584 ac_status=$?
26585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26586 (exit $ac_status); }; } &&
26587 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26589 (eval $ac_try) 2>&5
26590 ac_status=$?
26591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26592 (exit $ac_status); }; }; then
26593 ac_cv_lib_jpeg_jpeg_read_header=yes
26594else
26595 echo "$as_me: failed program was:" >&5
26596sed 's/^/| /' conftest.$ac_ext >&5
26597
26598ac_cv_lib_jpeg_jpeg_read_header=no
26599fi
ac1cb8d3
VS
26600rm -f conftest.err conftest.$ac_objext \
26601 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26602LIBS=$ac_check_lib_save_LIBS
26603fi
26604echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26605echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
26606if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26607 JPEG_LINK=" -ljpeg"
26608fi
26609
26610 fi
26611
26612 if test "x$JPEG_LINK" = "x" ; then
26613 if test "$wxUSE_LIBJPEG" = "sys" ; then
26614 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
26615echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
26616 { (exit 1); exit 1; }; }
26617 else
26618 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
26619echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
26620 wxUSE_LIBJPEG=builtin
26621 fi
26622 else
26623 wxUSE_LIBJPEG=sys
26624 fi
26625 fi
26626 fi
26627fi
26628
26629
26630TIFF_LINK=
26631TIFF_PREREQ_LINKS=-lm
26632if test "$wxUSE_LIBTIFF" != "no" ; then
26633 cat >>confdefs.h <<\_ACEOF
26634#define wxUSE_LIBTIFF 1
26635_ACEOF
26636
26637
26638 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
26639 if test "$wxUSE_LIBJPEG" = "sys"; then
26640 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
26641 fi
26642 if test "$wxUSE_ZLIB" = "sys"; then
26643 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
26644 fi
26645 if test "${ac_cv_header_tiffio_h+set}" = set; then
26646 echo "$as_me:$LINENO: checking for tiffio.h" >&5
26647echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26648if test "${ac_cv_header_tiffio_h+set}" = set; then
26649 echo $ECHO_N "(cached) $ECHO_C" >&6
26650fi
26651echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26652echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26653else
26654 # Is the header compilable?
26655echo "$as_me:$LINENO: checking tiffio.h usability" >&5
26656echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
26657cat >conftest.$ac_ext <<_ACEOF
26658/* confdefs.h. */
26659_ACEOF
26660cat confdefs.h >>conftest.$ac_ext
26661cat >>conftest.$ac_ext <<_ACEOF
26662/* end confdefs.h. */
26663$ac_includes_default
26664#include <tiffio.h>
26665_ACEOF
26666rm -f conftest.$ac_objext
26667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26668 (eval $ac_compile) 2>conftest.er1
a848cd7e 26669 ac_status=$?
ac1cb8d3
VS
26670 grep -v '^ *+' conftest.er1 >conftest.err
26671 rm -f conftest.er1
26672 cat conftest.err >&5
a848cd7e
SC
26673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26674 (exit $ac_status); } &&
bb9e79c0 26675 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26677 (eval $ac_try) 2>&5
26678 ac_status=$?
26679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26680 (exit $ac_status); }; } &&
26681 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26683 (eval $ac_try) 2>&5
26684 ac_status=$?
26685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26686 (exit $ac_status); }; }; then
26687 ac_header_compiler=yes
26688else
26689 echo "$as_me: failed program was:" >&5
26690sed 's/^/| /' conftest.$ac_ext >&5
26691
26692ac_header_compiler=no
26693fi
ac1cb8d3 26694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26695echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26696echo "${ECHO_T}$ac_header_compiler" >&6
26697
26698# Is the header present?
26699echo "$as_me:$LINENO: checking tiffio.h presence" >&5
26700echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
26701cat >conftest.$ac_ext <<_ACEOF
26702/* confdefs.h. */
26703_ACEOF
26704cat confdefs.h >>conftest.$ac_ext
26705cat >>conftest.$ac_ext <<_ACEOF
26706/* end confdefs.h. */
26707#include <tiffio.h>
26708_ACEOF
26709if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26711 ac_status=$?
26712 grep -v '^ *+' conftest.er1 >conftest.err
26713 rm -f conftest.er1
26714 cat conftest.err >&5
26715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26716 (exit $ac_status); } >/dev/null; then
26717 if test -s conftest.err; then
5d7b7554
VZ
26718 ac_cpp_err=$ac_cxx_preproc_warn_flag
26719 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26720 else
26721 ac_cpp_err=
26722 fi
26723else
26724 ac_cpp_err=yes
26725fi
26726if test -z "$ac_cpp_err"; then
26727 ac_header_preproc=yes
26728else
26729 echo "$as_me: failed program was:" >&5
26730sed 's/^/| /' conftest.$ac_ext >&5
26731
26732 ac_header_preproc=no
26733fi
26734rm -f conftest.err conftest.$ac_ext
26735echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26736echo "${ECHO_T}$ac_header_preproc" >&6
26737
26738# So? What about this header?
5d7b7554 26739case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26740 yes:no: )
a848cd7e
SC
26741 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
26742echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26743 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
26744echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
26745 ac_header_preproc=yes
a848cd7e 26746 ;;
ac1cb8d3 26747 no:yes:* )
a848cd7e
SC
26748 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
26749echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26750 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
26751echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
26752 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
26753echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
26754 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
26755echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26756 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
26757echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26758 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
26759echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26760 (
26761 cat <<\_ASBOX
ac1cb8d3
VS
26762## ----------------------------------------- ##
26763## Report this to wx-dev@lists.wxwidgets.org ##
26764## ----------------------------------------- ##
a848cd7e
SC
26765_ASBOX
26766 ) |
26767 sed "s/^/$as_me: WARNING: /" >&2
26768 ;;
26769esac
26770echo "$as_me:$LINENO: checking for tiffio.h" >&5
26771echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26772if test "${ac_cv_header_tiffio_h+set}" = set; then
26773 echo $ECHO_N "(cached) $ECHO_C" >&6
26774else
26775 ac_cv_header_tiffio_h=$ac_header_preproc
26776fi
26777echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26778echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26779
26780fi
26781if test $ac_cv_header_tiffio_h = yes; then
26782
26783 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
26784echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
26785if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
26786 echo $ECHO_N "(cached) $ECHO_C" >&6
26787else
26788 ac_check_lib_save_LIBS=$LIBS
26789LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
26790cat >conftest.$ac_ext <<_ACEOF
26791/* confdefs.h. */
26792_ACEOF
26793cat confdefs.h >>conftest.$ac_ext
26794cat >>conftest.$ac_ext <<_ACEOF
26795/* end confdefs.h. */
26796
26797/* Override any gcc2 internal prototype to avoid an error. */
26798#ifdef __cplusplus
26799extern "C"
26800#endif
26801/* We use char because int might match the return type of a gcc2
26802 builtin and then its argument prototype would still apply. */
26803char TIFFError ();
26804int
26805main ()
26806{
26807TIFFError ();
26808 ;
26809 return 0;
26810}
26811_ACEOF
26812rm -f conftest.$ac_objext conftest$ac_exeext
26813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26814 (eval $ac_link) 2>conftest.er1
a848cd7e 26815 ac_status=$?
ac1cb8d3
VS
26816 grep -v '^ *+' conftest.er1 >conftest.err
26817 rm -f conftest.er1
26818 cat conftest.err >&5
a848cd7e
SC
26819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820 (exit $ac_status); } &&
bb9e79c0 26821 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26823 (eval $ac_try) 2>&5
26824 ac_status=$?
26825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26826 (exit $ac_status); }; } &&
26827 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26829 (eval $ac_try) 2>&5
26830 ac_status=$?
26831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26832 (exit $ac_status); }; }; then
26833 ac_cv_lib_tiff_TIFFError=yes
26834else
26835 echo "$as_me: failed program was:" >&5
26836sed 's/^/| /' conftest.$ac_ext >&5
26837
26838ac_cv_lib_tiff_TIFFError=no
26839fi
ac1cb8d3
VS
26840rm -f conftest.err conftest.$ac_objext \
26841 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26842LIBS=$ac_check_lib_save_LIBS
26843fi
26844echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26845echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
26846if test $ac_cv_lib_tiff_TIFFError = yes; then
26847 TIFF_LINK=" -ltiff"
26848fi
26849
26850
26851
26852fi
26853
26854
26855
26856 if test "x$TIFF_LINK" = "x" ; then
26857 if test "$wxUSE_LIBTIFF" = "sys" ; then
26858 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26859echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26860 { (exit 1); exit 1; }; }
26861 else
26862 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26863echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26864 wxUSE_LIBTIFF=builtin
26865 fi
26866 else
26867 wxUSE_LIBTIFF=sys
26868 fi
26869 fi
26870fi
26871
26872
47a7e797
MW
26873if test "$wxUSE_WCHAR_T" != "yes"; then
26874 if test "$wxUSE_EXPAT" != "no"; then
26875 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26876echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26877 wxUSE_EXPAT=no
26878 fi
26879 if test "$wxUSE_XML" != "no"; then
26880 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26881echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26882 wxUSE_XML=no
26883 fi
26884fi
26885
a848cd7e
SC
26886if test "$wxUSE_EXPAT" != "no"; then
26887 wxUSE_XML=yes
26888 cat >>confdefs.h <<\_ACEOF
26889#define wxUSE_EXPAT 1
26890_ACEOF
26891
26892 cat >>confdefs.h <<\_ACEOF
26893#define wxUSE_XML 1
26894_ACEOF
26895
26896
26897 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26898 if test "${ac_cv_header_expat_h+set}" = set; then
26899 echo "$as_me:$LINENO: checking for expat.h" >&5
26900echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26901if test "${ac_cv_header_expat_h+set}" = set; then
26902 echo $ECHO_N "(cached) $ECHO_C" >&6
26903fi
26904echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26905echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26906else
26907 # Is the header compilable?
26908echo "$as_me:$LINENO: checking expat.h usability" >&5
26909echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
26910cat >conftest.$ac_ext <<_ACEOF
26911/* confdefs.h. */
26912_ACEOF
26913cat confdefs.h >>conftest.$ac_ext
26914cat >>conftest.$ac_ext <<_ACEOF
26915/* end confdefs.h. */
26916$ac_includes_default
26917#include <expat.h>
26918_ACEOF
26919rm -f conftest.$ac_objext
26920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26921 (eval $ac_compile) 2>conftest.er1
a848cd7e 26922 ac_status=$?
ac1cb8d3
VS
26923 grep -v '^ *+' conftest.er1 >conftest.err
26924 rm -f conftest.er1
26925 cat conftest.err >&5
a848cd7e
SC
26926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927 (exit $ac_status); } &&
bb9e79c0 26928 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26930 (eval $ac_try) 2>&5
26931 ac_status=$?
26932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26933 (exit $ac_status); }; } &&
26934 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26936 (eval $ac_try) 2>&5
26937 ac_status=$?
26938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939 (exit $ac_status); }; }; then
26940 ac_header_compiler=yes
26941else
26942 echo "$as_me: failed program was:" >&5
26943sed 's/^/| /' conftest.$ac_ext >&5
26944
26945ac_header_compiler=no
26946fi
ac1cb8d3 26947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26948echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26949echo "${ECHO_T}$ac_header_compiler" >&6
26950
26951# Is the header present?
26952echo "$as_me:$LINENO: checking expat.h presence" >&5
26953echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
26954cat >conftest.$ac_ext <<_ACEOF
26955/* confdefs.h. */
26956_ACEOF
26957cat confdefs.h >>conftest.$ac_ext
26958cat >>conftest.$ac_ext <<_ACEOF
26959/* end confdefs.h. */
26960#include <expat.h>
26961_ACEOF
26962if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26964 ac_status=$?
26965 grep -v '^ *+' conftest.er1 >conftest.err
26966 rm -f conftest.er1
26967 cat conftest.err >&5
26968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26969 (exit $ac_status); } >/dev/null; then
26970 if test -s conftest.err; then
5d7b7554
VZ
26971 ac_cpp_err=$ac_cxx_preproc_warn_flag
26972 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26973 else
26974 ac_cpp_err=
26975 fi
26976else
26977 ac_cpp_err=yes
26978fi
26979if test -z "$ac_cpp_err"; then
26980 ac_header_preproc=yes
26981else
26982 echo "$as_me: failed program was:" >&5
26983sed 's/^/| /' conftest.$ac_ext >&5
26984
26985 ac_header_preproc=no
26986fi
26987rm -f conftest.err conftest.$ac_ext
26988echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26989echo "${ECHO_T}$ac_header_preproc" >&6
26990
26991# So? What about this header?
5d7b7554 26992case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26993 yes:no: )
a848cd7e
SC
26994 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26995echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26996 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26997echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26998 ac_header_preproc=yes
a848cd7e 26999 ;;
ac1cb8d3 27000 no:yes:* )
a848cd7e
SC
27001 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
27002echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27003 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
27004echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
27005 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
27006echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
27007 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
27008echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27009 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
27010echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27011 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
27012echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27013 (
27014 cat <<\_ASBOX
ac1cb8d3
VS
27015## ----------------------------------------- ##
27016## Report this to wx-dev@lists.wxwidgets.org ##
27017## ----------------------------------------- ##
a848cd7e
SC
27018_ASBOX
27019 ) |
27020 sed "s/^/$as_me: WARNING: /" >&2
27021 ;;
27022esac
27023echo "$as_me:$LINENO: checking for expat.h" >&5
27024echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
27025if test "${ac_cv_header_expat_h+set}" = set; then
27026 echo $ECHO_N "(cached) $ECHO_C" >&6
27027else
27028 ac_cv_header_expat_h=$ac_header_preproc
27029fi
27030echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
27031echo "${ECHO_T}$ac_cv_header_expat_h" >&6
27032
27033fi
27034if test $ac_cv_header_expat_h = yes; then
27035 found_expat_h=1
27036fi
27037
27038
27039 if test "x$found_expat_h" = "x1"; then
27040 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
27041echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
27042if test "${wx_cv_expat_is_not_broken+set}" = set; then
27043 echo $ECHO_N "(cached) $ECHO_C" >&6
27044else
27045
a848cd7e
SC
27046 cat >conftest.$ac_ext <<_ACEOF
27047/* confdefs.h. */
27048_ACEOF
27049cat confdefs.h >>conftest.$ac_ext
27050cat >>conftest.$ac_ext <<_ACEOF
27051/* end confdefs.h. */
27052#include <expat.h>
27053int
27054main ()
27055{
27056
27057 ;
27058 return 0;
27059}
27060_ACEOF
27061rm -f conftest.$ac_objext
27062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27063 (eval $ac_compile) 2>conftest.er1
a848cd7e 27064 ac_status=$?
ac1cb8d3
VS
27065 grep -v '^ *+' conftest.er1 >conftest.err
27066 rm -f conftest.er1
27067 cat conftest.err >&5
a848cd7e
SC
27068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069 (exit $ac_status); } &&
bb9e79c0 27070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27072 (eval $ac_try) 2>&5
27073 ac_status=$?
27074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075 (exit $ac_status); }; } &&
27076 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27078 (eval $ac_try) 2>&5
27079 ac_status=$?
27080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081 (exit $ac_status); }; }; then
27082 wx_cv_expat_is_not_broken=yes
27083else
27084 echo "$as_me: failed program was:" >&5
27085sed 's/^/| /' conftest.$ac_ext >&5
27086
27087wx_cv_expat_is_not_broken=no
27088
27089fi
ac1cb8d3 27090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27091
27092
27093fi
27094echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
27095echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
27096 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
27097 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
27098echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
27099if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
27100 echo $ECHO_N "(cached) $ECHO_C" >&6
27101else
27102 ac_check_lib_save_LIBS=$LIBS
27103LIBS="-lexpat $LIBS"
27104cat >conftest.$ac_ext <<_ACEOF
27105/* confdefs.h. */
27106_ACEOF
27107cat confdefs.h >>conftest.$ac_ext
27108cat >>conftest.$ac_ext <<_ACEOF
27109/* end confdefs.h. */
27110
27111/* Override any gcc2 internal prototype to avoid an error. */
27112#ifdef __cplusplus
27113extern "C"
27114#endif
27115/* We use char because int might match the return type of a gcc2
27116 builtin and then its argument prototype would still apply. */
27117char XML_ParserCreate ();
27118int
27119main ()
27120{
27121XML_ParserCreate ();
27122 ;
27123 return 0;
27124}
27125_ACEOF
27126rm -f conftest.$ac_objext conftest$ac_exeext
27127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27128 (eval $ac_link) 2>conftest.er1
a848cd7e 27129 ac_status=$?
ac1cb8d3
VS
27130 grep -v '^ *+' conftest.er1 >conftest.err
27131 rm -f conftest.er1
27132 cat conftest.err >&5
a848cd7e
SC
27133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134 (exit $ac_status); } &&
bb9e79c0 27135 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27137 (eval $ac_try) 2>&5
27138 ac_status=$?
27139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140 (exit $ac_status); }; } &&
27141 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27143 (eval $ac_try) 2>&5
27144 ac_status=$?
27145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146 (exit $ac_status); }; }; then
27147 ac_cv_lib_expat_XML_ParserCreate=yes
27148else
27149 echo "$as_me: failed program was:" >&5
27150sed 's/^/| /' conftest.$ac_ext >&5
27151
27152ac_cv_lib_expat_XML_ParserCreate=no
27153fi
ac1cb8d3
VS
27154rm -f conftest.err conftest.$ac_objext \
27155 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27156LIBS=$ac_check_lib_save_LIBS
27157fi
27158echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
27159echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
27160if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
27161 EXPAT_LINK=" -lexpat"
27162fi
27163
27164 fi
27165 fi
27166 if test "x$EXPAT_LINK" = "x" ; then
27167 if test "$wxUSE_EXPAT" = "sys" ; then
27168 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
27169echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
27170 { (exit 1); exit 1; }; }
27171 else
27172 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
27173echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
27174 wxUSE_EXPAT=builtin
27175 fi
27176 else
27177 wxUSE_EXPAT=sys
27178 fi
27179 fi
27180 if test "$wxUSE_EXPAT" = "builtin" ; then
27181
27182
27183subdirs="$subdirs src/expat"
27184
27185 fi
27186fi
27187
27188
27189
27190if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
27191 if test "${ac_cv_header_mspack_h+set}" = set; then
27192 echo "$as_me:$LINENO: checking for mspack.h" >&5
27193echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
27194if test "${ac_cv_header_mspack_h+set}" = set; then
27195 echo $ECHO_N "(cached) $ECHO_C" >&6
27196fi
27197echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
27198echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
27199else
27200 # Is the header compilable?
27201echo "$as_me:$LINENO: checking mspack.h usability" >&5
27202echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
27203cat >conftest.$ac_ext <<_ACEOF
27204/* confdefs.h. */
27205_ACEOF
27206cat confdefs.h >>conftest.$ac_ext
27207cat >>conftest.$ac_ext <<_ACEOF
27208/* end confdefs.h. */
27209$ac_includes_default
27210#include <mspack.h>
27211_ACEOF
27212rm -f conftest.$ac_objext
27213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27214 (eval $ac_compile) 2>conftest.er1
a848cd7e 27215 ac_status=$?
ac1cb8d3
VS
27216 grep -v '^ *+' conftest.er1 >conftest.err
27217 rm -f conftest.er1
27218 cat conftest.err >&5
a848cd7e
SC
27219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220 (exit $ac_status); } &&
bb9e79c0 27221 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27223 (eval $ac_try) 2>&5
27224 ac_status=$?
27225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226 (exit $ac_status); }; } &&
27227 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27229 (eval $ac_try) 2>&5
27230 ac_status=$?
27231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232 (exit $ac_status); }; }; then
27233 ac_header_compiler=yes
27234else
27235 echo "$as_me: failed program was:" >&5
27236sed 's/^/| /' conftest.$ac_ext >&5
27237
27238ac_header_compiler=no
27239fi
ac1cb8d3 27240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27241echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27242echo "${ECHO_T}$ac_header_compiler" >&6
27243
27244# Is the header present?
27245echo "$as_me:$LINENO: checking mspack.h presence" >&5
27246echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
27247cat >conftest.$ac_ext <<_ACEOF
27248/* confdefs.h. */
27249_ACEOF
27250cat confdefs.h >>conftest.$ac_ext
27251cat >>conftest.$ac_ext <<_ACEOF
27252/* end confdefs.h. */
27253#include <mspack.h>
27254_ACEOF
27255if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27257 ac_status=$?
27258 grep -v '^ *+' conftest.er1 >conftest.err
27259 rm -f conftest.er1
27260 cat conftest.err >&5
27261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27262 (exit $ac_status); } >/dev/null; then
27263 if test -s conftest.err; then
5d7b7554
VZ
27264 ac_cpp_err=$ac_cxx_preproc_warn_flag
27265 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
27266 else
27267 ac_cpp_err=
27268 fi
27269else
27270 ac_cpp_err=yes
27271fi
27272if test -z "$ac_cpp_err"; then
27273 ac_header_preproc=yes
27274else
27275 echo "$as_me: failed program was:" >&5
27276sed 's/^/| /' conftest.$ac_ext >&5
27277
27278 ac_header_preproc=no
27279fi
27280rm -f conftest.err conftest.$ac_ext
27281echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27282echo "${ECHO_T}$ac_header_preproc" >&6
27283
27284# So? What about this header?
5d7b7554 27285case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 27286 yes:no: )
a848cd7e
SC
27287 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
27288echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27289 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
27290echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
27291 ac_header_preproc=yes
a848cd7e 27292 ;;
ac1cb8d3 27293 no:yes:* )
a848cd7e
SC
27294 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
27295echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27296 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
27297echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
27298 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
27299echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
27300 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
27301echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27302 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
27303echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27304 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
27305echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27306 (
27307 cat <<\_ASBOX
ac1cb8d3
VS
27308## ----------------------------------------- ##
27309## Report this to wx-dev@lists.wxwidgets.org ##
27310## ----------------------------------------- ##
a848cd7e
SC
27311_ASBOX
27312 ) |
27313 sed "s/^/$as_me: WARNING: /" >&2
27314 ;;
27315esac
27316echo "$as_me:$LINENO: checking for mspack.h" >&5
27317echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
27318if test "${ac_cv_header_mspack_h+set}" = set; then
27319 echo $ECHO_N "(cached) $ECHO_C" >&6
27320else
27321 ac_cv_header_mspack_h=$ac_header_preproc
27322fi
27323echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
27324echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
27325
27326fi
27327if test $ac_cv_header_mspack_h = yes; then
27328 found_mspack_h=1
27329fi
27330
27331
27332 if test "x$found_mspack_h" = "x1"; then
27333 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
27334echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
27335if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
27336 echo $ECHO_N "(cached) $ECHO_C" >&6
27337else
27338 ac_check_lib_save_LIBS=$LIBS
27339LIBS="-lmspack $LIBS"
27340cat >conftest.$ac_ext <<_ACEOF
27341/* confdefs.h. */
27342_ACEOF
27343cat confdefs.h >>conftest.$ac_ext
27344cat >>conftest.$ac_ext <<_ACEOF
27345/* end confdefs.h. */
27346
27347/* Override any gcc2 internal prototype to avoid an error. */
27348#ifdef __cplusplus
27349extern "C"
27350#endif
27351/* We use char because int might match the return type of a gcc2
27352 builtin and then its argument prototype would still apply. */
27353char mspack_create_chm_decompressor ();
27354int
27355main ()
27356{
27357mspack_create_chm_decompressor ();
27358 ;
27359 return 0;
27360}
27361_ACEOF
27362rm -f conftest.$ac_objext conftest$ac_exeext
27363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27364 (eval $ac_link) 2>conftest.er1
a848cd7e 27365 ac_status=$?
ac1cb8d3
VS
27366 grep -v '^ *+' conftest.er1 >conftest.err
27367 rm -f conftest.er1
27368 cat conftest.err >&5
a848cd7e
SC
27369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370 (exit $ac_status); } &&
bb9e79c0 27371 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27373 (eval $ac_try) 2>&5
27374 ac_status=$?
27375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27376 (exit $ac_status); }; } &&
27377 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27379 (eval $ac_try) 2>&5
27380 ac_status=$?
27381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382 (exit $ac_status); }; }; then
27383 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
27384else
27385 echo "$as_me: failed program was:" >&5
27386sed 's/^/| /' conftest.$ac_ext >&5
27387
27388ac_cv_lib_mspack_mspack_create_chm_decompressor=no
27389fi
ac1cb8d3
VS
27390rm -f conftest.err conftest.$ac_objext \
27391 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27392LIBS=$ac_check_lib_save_LIBS
27393fi
27394echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
27395echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
27396if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
27397 MSPACK_LINK=" -lmspack"
27398fi
27399
27400 fi
27401 if test "x$MSPACK_LINK" = "x" ; then
27402 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
27403 fi
27404fi
27405
27406if test "$wxUSE_LIBMSPACK" != "no"; then
27407 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
27408#define wxUSE_LIBMSPACK 1
27409_ACEOF
27410
a848cd7e
SC
27411fi
27412
27413
27414
27415AFMINSTALL=
27416WIN32INSTALL=
27417
27418TOOLKIT=
27419TOOLKIT_INCLUDE=
27420WIDGET_SET=
27421
27422if test "$USE_WIN32" = 1 ; then
27423
27424for ac_header in w32api.h
27425do
27426as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27427if eval "test \"\${$as_ac_Header+set}\" = set"; then
27428 echo "$as_me:$LINENO: checking for $ac_header" >&5
27429echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27430if eval "test \"\${$as_ac_Header+set}\" = set"; then
27431 echo $ECHO_N "(cached) $ECHO_C" >&6
27432fi
27433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27434echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27435else
27436 # Is the header compilable?
27437echo "$as_me:$LINENO: checking $ac_header usability" >&5
27438echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27439cat >conftest.$ac_ext <<_ACEOF
27440/* confdefs.h. */
27441_ACEOF
27442cat confdefs.h >>conftest.$ac_ext
27443cat >>conftest.$ac_ext <<_ACEOF
27444/* end confdefs.h. */
27445$ac_includes_default
27446#include <$ac_header>
27447_ACEOF
27448rm -f conftest.$ac_objext
27449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27450 (eval $ac_compile) 2>conftest.er1
a848cd7e 27451 ac_status=$?
ac1cb8d3
VS
27452 grep -v '^ *+' conftest.er1 >conftest.err
27453 rm -f conftest.er1
27454 cat conftest.err >&5
a848cd7e
SC
27455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456 (exit $ac_status); } &&
bb9e79c0 27457 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27459 (eval $ac_try) 2>&5
27460 ac_status=$?
27461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27462 (exit $ac_status); }; } &&
27463 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27465 (eval $ac_try) 2>&5
27466 ac_status=$?
27467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27468 (exit $ac_status); }; }; then
27469 ac_header_compiler=yes
27470else
27471 echo "$as_me: failed program was:" >&5
27472sed 's/^/| /' conftest.$ac_ext >&5
27473
27474ac_header_compiler=no
27475fi
ac1cb8d3 27476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27477echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27478echo "${ECHO_T}$ac_header_compiler" >&6
27479
27480# Is the header present?
27481echo "$as_me:$LINENO: checking $ac_header presence" >&5
27482echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27483cat >conftest.$ac_ext <<_ACEOF
27484/* confdefs.h. */
27485_ACEOF
27486cat confdefs.h >>conftest.$ac_ext
27487cat >>conftest.$ac_ext <<_ACEOF
27488/* end confdefs.h. */
27489#include <$ac_header>
27490_ACEOF
27491if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27493 ac_status=$?
27494 grep -v '^ *+' conftest.er1 >conftest.err
27495 rm -f conftest.er1
27496 cat conftest.err >&5
27497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498 (exit $ac_status); } >/dev/null; then
27499 if test -s conftest.err; then
5d7b7554
VZ
27500 ac_cpp_err=$ac_cxx_preproc_warn_flag
27501 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
27502 else
27503 ac_cpp_err=
27504 fi
27505else
27506 ac_cpp_err=yes
27507fi
27508if test -z "$ac_cpp_err"; then
27509 ac_header_preproc=yes
27510else
27511 echo "$as_me: failed program was:" >&5
27512sed 's/^/| /' conftest.$ac_ext >&5
27513
27514 ac_header_preproc=no
27515fi
27516rm -f conftest.err conftest.$ac_ext
27517echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27518echo "${ECHO_T}$ac_header_preproc" >&6
27519
27520# So? What about this header?
5d7b7554 27521case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 27522 yes:no: )
a848cd7e
SC
27523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27524echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27526echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27527 ac_header_preproc=yes
a848cd7e 27528 ;;
ac1cb8d3 27529 no:yes:* )
a848cd7e
SC
27530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27531echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27533echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27534 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27535echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27536 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27537echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27539echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27540 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27541echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27542 (
27543 cat <<\_ASBOX
ac1cb8d3
VS
27544## ----------------------------------------- ##
27545## Report this to wx-dev@lists.wxwidgets.org ##
27546## ----------------------------------------- ##
a848cd7e
SC
27547_ASBOX
27548 ) |
27549 sed "s/^/$as_me: WARNING: /" >&2
27550 ;;
27551esac
27552echo "$as_me:$LINENO: checking for $ac_header" >&5
27553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27554if eval "test \"\${$as_ac_Header+set}\" = set"; then
27555 echo $ECHO_N "(cached) $ECHO_C" >&6
27556else
ac1cb8d3 27557 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
27558fi
27559echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27560echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27561
27562fi
27563if test `eval echo '${'$as_ac_Header'}'` = yes; then
27564 cat >>confdefs.h <<_ACEOF
27565#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27566_ACEOF
27567
27568fi
27569
27570done
27571
27572 if test "${ac_cv_header_windows_h+set}" = set; then
27573 echo "$as_me:$LINENO: checking for windows.h" >&5
27574echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27575if test "${ac_cv_header_windows_h+set}" = set; then
27576 echo $ECHO_N "(cached) $ECHO_C" >&6
27577fi
27578echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27579echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27580else
27581 # Is the header compilable?
27582echo "$as_me:$LINENO: checking windows.h usability" >&5
27583echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
27584cat >conftest.$ac_ext <<_ACEOF
27585/* confdefs.h. */
27586_ACEOF
27587cat confdefs.h >>conftest.$ac_ext
27588cat >>conftest.$ac_ext <<_ACEOF
27589/* end confdefs.h. */
27590$ac_includes_default
27591#include <windows.h>
27592_ACEOF
27593rm -f conftest.$ac_objext
27594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27595 (eval $ac_compile) 2>conftest.er1
a848cd7e 27596 ac_status=$?
ac1cb8d3
VS
27597 grep -v '^ *+' conftest.er1 >conftest.err
27598 rm -f conftest.er1
27599 cat conftest.err >&5
a848cd7e
SC
27600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27601 (exit $ac_status); } &&
bb9e79c0 27602 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27604 (eval $ac_try) 2>&5
27605 ac_status=$?
27606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27607 (exit $ac_status); }; } &&
27608 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27610 (eval $ac_try) 2>&5
27611 ac_status=$?
27612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27613 (exit $ac_status); }; }; then
27614 ac_header_compiler=yes
27615else
27616 echo "$as_me: failed program was:" >&5
27617sed 's/^/| /' conftest.$ac_ext >&5
27618
27619ac_header_compiler=no
27620fi
ac1cb8d3 27621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27622echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27623echo "${ECHO_T}$ac_header_compiler" >&6
27624
27625# Is the header present?
27626echo "$as_me:$LINENO: checking windows.h presence" >&5
27627echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
27628cat >conftest.$ac_ext <<_ACEOF
27629/* confdefs.h. */
27630_ACEOF
27631cat confdefs.h >>conftest.$ac_ext
27632cat >>conftest.$ac_ext <<_ACEOF
27633/* end confdefs.h. */
27634#include <windows.h>
27635_ACEOF
27636if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27638 ac_status=$?
27639 grep -v '^ *+' conftest.er1 >conftest.err
27640 rm -f conftest.er1
27641 cat conftest.err >&5
27642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27643 (exit $ac_status); } >/dev/null; then
27644 if test -s conftest.err; then
5d7b7554
VZ
27645 ac_cpp_err=$ac_cxx_preproc_warn_flag
27646 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
27647 else
27648 ac_cpp_err=
27649 fi
27650else
27651 ac_cpp_err=yes
27652fi
27653if test -z "$ac_cpp_err"; then
27654 ac_header_preproc=yes
27655else
27656 echo "$as_me: failed program was:" >&5
27657sed 's/^/| /' conftest.$ac_ext >&5
27658
27659 ac_header_preproc=no
27660fi
27661rm -f conftest.err conftest.$ac_ext
27662echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27663echo "${ECHO_T}$ac_header_preproc" >&6
27664
27665# So? What about this header?
5d7b7554 27666case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 27667 yes:no: )
a848cd7e
SC
27668 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
27669echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27670 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
27671echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
27672 ac_header_preproc=yes
a848cd7e 27673 ;;
ac1cb8d3 27674 no:yes:* )
a848cd7e
SC
27675 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
27676echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27677 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
27678echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
27679 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
27680echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
27681 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
27682echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27683 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
27684echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27685 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
27686echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27687 (
27688 cat <<\_ASBOX
ac1cb8d3
VS
27689## ----------------------------------------- ##
27690## Report this to wx-dev@lists.wxwidgets.org ##
27691## ----------------------------------------- ##
a848cd7e
SC
27692_ASBOX
27693 ) |
27694 sed "s/^/$as_me: WARNING: /" >&2
27695 ;;
27696esac
27697echo "$as_me:$LINENO: checking for windows.h" >&5
27698echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27699if test "${ac_cv_header_windows_h+set}" = set; then
27700 echo $ECHO_N "(cached) $ECHO_C" >&6
27701else
27702 ac_cv_header_windows_h=$ac_header_preproc
27703fi
27704echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27705echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27706
27707fi
27708if test $ac_cv_header_windows_h = yes; then
27709 :
27710else
27711
27712 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
27713echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
27714 { (exit 1); exit 1; }; }
27715
27716fi
27717
27718
27719
27720 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
27721
27722 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
27723 LIBS="$LIBS -loleacc"
27724 fi
27725
27726 case "${host}" in
27727 *-*-cygwin* )
27728 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
27729 esac
27730
27731 if test "$wxUSE_ODBC" = "sys" ; then
27732 wxUSE_ODBC = "yes"
27733 fi
27734 if test "$wxUSE_ODBC" = "yes" ; then
27735 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
27736 cat >>confdefs.h <<\_ACEOF
27737#define wxUSE_ODBC 1
27738_ACEOF
27739
27740 fi
27741
370d2fd7 27742 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
27743 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
27744
004ee6da 27745 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 27746
a848cd7e 27747 WIN32INSTALL=win32install
5f41d1bf
MW
27748
27749 echo "$as_me:$LINENO: checking for boolean" >&5
27750echo $ECHO_N "checking for boolean... $ECHO_C" >&6
27751if test "${ac_cv_type_boolean+set}" = set; then
27752 echo $ECHO_N "(cached) $ECHO_C" >&6
27753else
27754 cat >conftest.$ac_ext <<_ACEOF
27755/* confdefs.h. */
27756_ACEOF
27757cat confdefs.h >>conftest.$ac_ext
27758cat >>conftest.$ac_ext <<_ACEOF
27759/* end confdefs.h. */
27760#include <windows.h>
27761
27762int
27763main ()
27764{
27765if ((boolean *) 0)
27766 return 0;
27767if (sizeof (boolean))
27768 return 0;
27769 ;
27770 return 0;
27771}
27772_ACEOF
27773rm -f conftest.$ac_objext
27774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27775 (eval $ac_compile) 2>conftest.er1
27776 ac_status=$?
27777 grep -v '^ *+' conftest.er1 >conftest.err
27778 rm -f conftest.er1
27779 cat conftest.err >&5
27780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781 (exit $ac_status); } &&
bb9e79c0 27782 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5f41d1bf
MW
27783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27784 (eval $ac_try) 2>&5
27785 ac_status=$?
27786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787 (exit $ac_status); }; } &&
27788 { ac_try='test -s conftest.$ac_objext'
27789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27790 (eval $ac_try) 2>&5
27791 ac_status=$?
27792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27793 (exit $ac_status); }; }; then
27794 ac_cv_type_boolean=yes
27795else
27796 echo "$as_me: failed program was:" >&5
27797sed 's/^/| /' conftest.$ac_ext >&5
27798
27799ac_cv_type_boolean=no
27800fi
27801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27802fi
27803echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27804echo "${ECHO_T}$ac_cv_type_boolean" >&6
27805if test $ac_cv_type_boolean = yes; then
27806
27807cat >>confdefs.h <<_ACEOF
27808#define HAVE_BOOLEAN 1
27809_ACEOF
27810
27811
27812fi
27813
dcfd4ac4
MW
27814
27815
27816for ac_header in pbt.h
27817do
27818as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27819if eval "test \"\${$as_ac_Header+set}\" = set"; then
27820 echo "$as_me:$LINENO: checking for $ac_header" >&5
27821echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27822if eval "test \"\${$as_ac_Header+set}\" = set"; then
27823 echo $ECHO_N "(cached) $ECHO_C" >&6
27824fi
27825echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27826echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27827else
27828 # Is the header compilable?
27829echo "$as_me:$LINENO: checking $ac_header usability" >&5
27830echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27831cat >conftest.$ac_ext <<_ACEOF
27832/* confdefs.h. */
27833_ACEOF
27834cat confdefs.h >>conftest.$ac_ext
27835cat >>conftest.$ac_ext <<_ACEOF
27836/* end confdefs.h. */
27837$ac_includes_default
27838#include <$ac_header>
27839_ACEOF
27840rm -f conftest.$ac_objext
27841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27842 (eval $ac_compile) 2>conftest.er1
27843 ac_status=$?
27844 grep -v '^ *+' conftest.er1 >conftest.err
27845 rm -f conftest.er1
27846 cat conftest.err >&5
27847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848 (exit $ac_status); } &&
bb9e79c0 27849 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
dcfd4ac4
MW
27850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27851 (eval $ac_try) 2>&5
27852 ac_status=$?
27853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854 (exit $ac_status); }; } &&
27855 { ac_try='test -s conftest.$ac_objext'
27856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27857 (eval $ac_try) 2>&5
27858 ac_status=$?
27859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27860 (exit $ac_status); }; }; then
27861 ac_header_compiler=yes
27862else
27863 echo "$as_me: failed program was:" >&5
27864sed 's/^/| /' conftest.$ac_ext >&5
27865
27866ac_header_compiler=no
27867fi
27868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27869echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27870echo "${ECHO_T}$ac_header_compiler" >&6
27871
27872# Is the header present?
27873echo "$as_me:$LINENO: checking $ac_header presence" >&5
27874echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27875cat >conftest.$ac_ext <<_ACEOF
27876/* confdefs.h. */
27877_ACEOF
27878cat confdefs.h >>conftest.$ac_ext
27879cat >>conftest.$ac_ext <<_ACEOF
27880/* end confdefs.h. */
27881#include <$ac_header>
27882_ACEOF
27883if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27884 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27885 ac_status=$?
27886 grep -v '^ *+' conftest.er1 >conftest.err
27887 rm -f conftest.er1
27888 cat conftest.err >&5
27889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27890 (exit $ac_status); } >/dev/null; then
27891 if test -s conftest.err; then
27892 ac_cpp_err=$ac_cxx_preproc_warn_flag
27893 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27894 else
27895 ac_cpp_err=
27896 fi
27897else
27898 ac_cpp_err=yes
27899fi
27900if test -z "$ac_cpp_err"; then
27901 ac_header_preproc=yes
27902else
27903 echo "$as_me: failed program was:" >&5
27904sed 's/^/| /' conftest.$ac_ext >&5
27905
27906 ac_header_preproc=no
27907fi
27908rm -f conftest.err conftest.$ac_ext
27909echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27910echo "${ECHO_T}$ac_header_preproc" >&6
27911
27912# So? What about this header?
27913case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27914 yes:no: )
27915 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27916echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27918echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27919 ac_header_preproc=yes
27920 ;;
27921 no:yes:* )
27922 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27923echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27924 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27925echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27926 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27927echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27928 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27929echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27931echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27932 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27933echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27934 (
27935 cat <<\_ASBOX
27936## ----------------------------------------- ##
27937## Report this to wx-dev@lists.wxwidgets.org ##
27938## ----------------------------------------- ##
27939_ASBOX
27940 ) |
27941 sed "s/^/$as_me: WARNING: /" >&2
27942 ;;
27943esac
27944echo "$as_me:$LINENO: checking for $ac_header" >&5
27945echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27946if eval "test \"\${$as_ac_Header+set}\" = set"; then
27947 echo $ECHO_N "(cached) $ECHO_C" >&6
27948else
27949 eval "$as_ac_Header=\$ac_header_preproc"
27950fi
27951echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27952echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27953
27954fi
27955if test `eval echo '${'$as_ac_Header'}'` = yes; then
27956 cat >>confdefs.h <<_ACEOF
27957#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27958_ACEOF
27959
27960else
27961 cat >>confdefs.h <<\_ACEOF
27962#define NEED_PBT_H 1
27963_ACEOF
27964
27965fi
27966
27967done
27968
a848cd7e
SC
27969fi
27970
27971if test "$wxUSE_GUI" = "yes"; then
27972 USE_GUI=1
27973
27974 GUI_TK_LIBRARY=
27975
27976 WXGTK12=
27977 WXGTK127=
27978 WXGTK20=
27979 WXGPE=
27980
207bc66c
RN
27981 if test "$wxUSE_COCOA" = 1 ; then
27982 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27983 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27984echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27985 wxUSE_PRINTING_ARCHITECTURE=no
27986 fi
27987 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27988 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27989echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27990 wxUSE_DRAG_AND_DROP=no
27991 fi
27992 if test "$wxUSE_DRAGIMAGE" = "yes"; then
27993 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
27994echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
27995 wxUSE_DRAGIMAGE=no
27996 fi
27997 fi
27998
a848cd7e
SC
27999 if test "$wxUSE_MSW" = 1 ; then
28000 TOOLKIT=MSW
28001 GUIDIST=MSW_DIST
28002
ceec2216 28003 case "${host}" in
a848cd7e
SC
28004 *-*-mingw32* )
28005 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
28006 esac
28007 fi
28008
28009 if test "$wxUSE_GTK" = 1; then
5d7b7554
VZ
28010 ac_ext=c
28011ac_cpp='$CPP $CPPFLAGS'
28012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28014ac_compiler_gnu=$ac_cv_c_compiler_gnu
28015
28016
a848cd7e
SC
28017 echo "$as_me:$LINENO: checking for GTK+ version" >&5
28018echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
28019
28020 gtk_version_cached=1
28021 if test "${wx_cv_lib_gtk+set}" = set; then
28022 echo $ECHO_N "(cached) $ECHO_C" >&6
28023else
28024
28025 gtk_version_cached=0
28026 echo "$as_me:$LINENO: result: " >&5
28027echo "${ECHO_T}" >&6
28028
28029 GTK_MODULES=
28030 if test "$wxUSE_THREADS" = "yes"; then
28031 GTK_MODULES=gthread
28032 fi
28033
f597b41c 28034 wx_cv_lib_gtk=
5001df0d
MW
28035 if test "x$wxGTK_VERSION" != "x1"
28036 then
28037 case "${host}" in
28038 *-*-solaris2* )
28039 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 28040 enable_gtktest=no
5001df0d
MW
28041 fi
28042 esac
28043
a848cd7e
SC
28044 # Check whether --enable-gtktest or --disable-gtktest was given.
28045if test "${enable_gtktest+set}" = set; then
28046 enableval="$enable_gtktest"
28047
28048else
28049 enable_gtktest=yes
28050fi;
28051
28052 pkg_config_args=gtk+-2.0
28053 for module in . $GTK_MODULES
28054 do
28055 case "$module" in
28056 gthread)
28057 pkg_config_args="$pkg_config_args gthread-2.0"
28058 ;;
28059 esac
28060 done
28061
28062 no_gtk=""
28063
28064 # Extract the first word of "pkg-config", so it can be a program name with args.
28065set dummy pkg-config; ac_word=$2
28066echo "$as_me:$LINENO: checking for $ac_word" >&5
28067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28068if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28069 echo $ECHO_N "(cached) $ECHO_C" >&6
28070else
28071 case $PKG_CONFIG in
28072 [\\/]* | ?:[\\/]*)
28073 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28074 ;;
28075 *)
28076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28077for as_dir in $PATH
28078do
28079 IFS=$as_save_IFS
28080 test -z "$as_dir" && as_dir=.
28081 for ac_exec_ext in '' $ac_executable_extensions; do
28082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28083 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28085 break 2
28086 fi
28087done
28088done
28089
28090 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28091 ;;
28092esac
28093fi
28094PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28095
28096if test -n "$PKG_CONFIG"; then
28097 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28098echo "${ECHO_T}$PKG_CONFIG" >&6
28099else
28100 echo "$as_me:$LINENO: result: no" >&5
28101echo "${ECHO_T}no" >&6
28102fi
28103
28104
28105 if test x$PKG_CONFIG != xno ; then
28106 if pkg-config --atleast-pkgconfig-version 0.7 ; then
28107 :
28108 else
c2218763 28109 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
28110 no_gtk=yes
28111 PKG_CONFIG=no
28112 fi
28113 else
28114 no_gtk=yes
28115 fi
28116
28117 min_gtk_version=2.0.0
28118 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
28119echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
28120
28121 if test x$PKG_CONFIG != xno ; then
28122 ## don't try to run the test against uninstalled libtool libs
28123 if $PKG_CONFIG --uninstalled $pkg_config_args; then
28124 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
28125 enable_gtktest=no
28126 fi
28127
28128 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
28129 :
28130 else
28131 no_gtk=yes
28132 fi
28133 fi
28134
28135 if test x"$no_gtk" = x ; then
28136 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
28137 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
28138 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28139 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28140 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28141 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28142 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28143 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28144 if test "x$enable_gtktest" = "xyes" ; then
28145 ac_save_CFLAGS="$CFLAGS"
28146 ac_save_LIBS="$LIBS"
28147 CFLAGS="$CFLAGS $GTK_CFLAGS"
28148 LIBS="$GTK_LIBS $LIBS"
28149 rm -f conf.gtktest
28150 if test "$cross_compiling" = yes; then
28151 echo $ac_n "cross compiling; assumed OK... $ac_c"
28152else
28153 cat >conftest.$ac_ext <<_ACEOF
28154/* confdefs.h. */
28155_ACEOF
28156cat confdefs.h >>conftest.$ac_ext
28157cat >>conftest.$ac_ext <<_ACEOF
28158/* end confdefs.h. */
28159
28160#include <gtk/gtk.h>
28161#include <stdio.h>
28162#include <stdlib.h>
28163
28164int
28165main ()
28166{
28167 int major, minor, micro;
28168 char *tmp_version;
28169
28170 system ("touch conf.gtktest");
28171
28172 /* HP/UX 9 (%@#!) writes to sscanf strings */
28173 tmp_version = g_strdup("$min_gtk_version");
28174 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28175 printf("%s, bad version string\n", "$min_gtk_version");
28176 exit(1);
28177 }
28178
28179 if ((gtk_major_version != $gtk_config_major_version) ||
28180 (gtk_minor_version != $gtk_config_minor_version) ||
28181 (gtk_micro_version != $gtk_config_micro_version))
28182 {
28183 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28184 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28185 gtk_major_version, gtk_minor_version, gtk_micro_version);
28186 printf ("*** was found! If pkg-config was correct, then it is best\n");
28187 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28188 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28189 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28190 printf("*** required on your system.\n");
28191 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
28192 printf("*** to point to the correct configuration files\n");
28193 }
28194 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28195 (gtk_minor_version != GTK_MINOR_VERSION) ||
28196 (gtk_micro_version != GTK_MICRO_VERSION))
28197 {
28198 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28199 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28200 printf("*** library (version %d.%d.%d)\n",
28201 gtk_major_version, gtk_minor_version, gtk_micro_version);
28202 }
28203 else
28204 {
28205 if ((gtk_major_version > major) ||
28206 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28207 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28208 {
28209 return 0;
28210 }
28211 else
28212 {
28213 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28214 gtk_major_version, gtk_minor_version, gtk_micro_version);
28215 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28216 major, minor, micro);
28217 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28218 printf("***\n");
28219 printf("*** If you have already installed a sufficiently new version, this error\n");
28220 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
28221 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28222 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
28223 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
28224 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28225 printf("*** so that the correct libraries are found at run-time))\n");
28226 }
28227 }
28228 return 1;
28229}
28230
28231_ACEOF
28232rm -f conftest$ac_exeext
28233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28234 (eval $ac_link) 2>&5
28235 ac_status=$?
28236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28239 (eval $ac_try) 2>&5
28240 ac_status=$?
28241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28242 (exit $ac_status); }; }; then
28243 :
28244else
28245 echo "$as_me: program exited with status $ac_status" >&5
28246echo "$as_me: failed program was:" >&5
28247sed 's/^/| /' conftest.$ac_ext >&5
28248
28249( exit $ac_status )
28250no_gtk=yes
28251fi
ac1cb8d3 28252rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28253fi
28254 CFLAGS="$ac_save_CFLAGS"
28255 LIBS="$ac_save_LIBS"
28256 fi
28257 fi
28258 if test "x$no_gtk" = x ; then
28259 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
28260echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
28261 wx_cv_lib_gtk=2.0
28262 else
28263 echo "$as_me:$LINENO: result: no" >&5
28264echo "${ECHO_T}no" >&6
28265 if test "$PKG_CONFIG" = "no" ; then
28266 echo "*** A new enough version of pkg-config was not found."
28267 echo "*** See http://pkgconfig.sourceforge.net"
28268 else
28269 if test -f conf.gtktest ; then
28270 :
28271 else
28272 echo "*** Could not run GTK+ test program, checking why..."
28273 ac_save_CFLAGS="$CFLAGS"
28274 ac_save_LIBS="$LIBS"
28275 CFLAGS="$CFLAGS $GTK_CFLAGS"
28276 LIBS="$LIBS $GTK_LIBS"
28277 cat >conftest.$ac_ext <<_ACEOF
28278/* confdefs.h. */
28279_ACEOF
28280cat confdefs.h >>conftest.$ac_ext
28281cat >>conftest.$ac_ext <<_ACEOF
28282/* end confdefs.h. */
28283
28284#include <gtk/gtk.h>
28285#include <stdio.h>
28286
28287int
28288main ()
28289{
28290 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28291 ;
28292 return 0;
28293}
28294_ACEOF
28295rm -f conftest.$ac_objext conftest$ac_exeext
28296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28297 (eval $ac_link) 2>conftest.er1
a848cd7e 28298 ac_status=$?
ac1cb8d3
VS
28299 grep -v '^ *+' conftest.er1 >conftest.err
28300 rm -f conftest.er1
28301 cat conftest.err >&5
a848cd7e
SC
28302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28303 (exit $ac_status); } &&
bb9e79c0 28304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28306 (eval $ac_try) 2>&5
28307 ac_status=$?
28308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309 (exit $ac_status); }; } &&
28310 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28312 (eval $ac_try) 2>&5
28313 ac_status=$?
28314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28315 (exit $ac_status); }; }; then
28316 echo "*** The test program compiled, but did not run. This usually means"
28317 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
28318 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
28319 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28320 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28321 echo "*** is required on your system"
28322 echo "***"
28323 echo "*** If you have an old version installed, it is best to remove it, although"
28324 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28325else
28326 echo "$as_me: failed program was:" >&5
28327sed 's/^/| /' conftest.$ac_ext >&5
28328
28329 echo "*** The test program failed to compile or link. See the file config.log for the"
28330 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
28331fi
ac1cb8d3
VS
28332rm -f conftest.err conftest.$ac_objext \
28333 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28334 CFLAGS="$ac_save_CFLAGS"
28335 LIBS="$ac_save_LIBS"
28336 fi
28337 fi
28338 GTK_CFLAGS=""
28339 GTK_LIBS=""
28340 :
28341 fi
28342
28343
28344 rm -f conf.gtktest
28345
5001df0d
MW
28346
28347 case "${host}" in
28348 *-*-solaris2* )
28349 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
28350 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
28351 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
28352 fi
28353 if test "$wxUSE_SHARED" != "yes"; then
28354 GTK_LIBS="$GTK_LIBS -lX11"
28355 fi
28356 esac
f597b41c
MW
28357 fi
28358
f34ca037
MW
28359 if test -z "$wx_cv_lib_gtk"; then
28360 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
28361
28362# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
28363if test "${with_gtk_prefix+set}" = set; then
28364 withval="$with_gtk_prefix"
28365 gtk_config_prefix="$withval"
28366else
28367 gtk_config_prefix=""
28368fi;
28369
28370# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
28371if test "${with_gtk_exec_prefix+set}" = set; then
28372 withval="$with_gtk_exec_prefix"
28373 gtk_config_exec_prefix="$withval"
28374else
28375 gtk_config_exec_prefix=""
28376fi;
28377# Check whether --enable-gtktest or --disable-gtktest was given.
28378if test "${enable_gtktest+set}" = set; then
28379 enableval="$enable_gtktest"
28380
28381else
28382 enable_gtktest=yes
28383fi;
28384
28385 for module in . $GTK_MODULES
28386 do
28387 case "$module" in
28388 gthread)
28389 gtk_config_args="$gtk_config_args gthread"
28390 ;;
28391 esac
28392 done
28393
28394 if test x$gtk_config_exec_prefix != x ; then
28395 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28396 if test x${GTK_CONFIG+set} != xset ; then
28397 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28398 fi
28399 fi
28400 if test x$gtk_config_prefix != x ; then
28401 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28402 if test x${GTK_CONFIG+set} != xset ; then
28403 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28404 fi
28405 fi
28406
28407 # Extract the first word of "gtk-config", so it can be a program name with args.
28408set dummy gtk-config; ac_word=$2
28409echo "$as_me:$LINENO: checking for $ac_word" >&5
28410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28411if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28412 echo $ECHO_N "(cached) $ECHO_C" >&6
28413else
28414 case $GTK_CONFIG in
28415 [\\/]* | ?:[\\/]*)
28416 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28417 ;;
28418 *)
28419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28420for as_dir in $PATH
28421do
28422 IFS=$as_save_IFS
28423 test -z "$as_dir" && as_dir=.
28424 for ac_exec_ext in '' $ac_executable_extensions; do
28425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28426 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28428 break 2
28429 fi
28430done
28431done
28432
28433 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28434 ;;
28435esac
28436fi
28437GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28438
28439if test -n "$GTK_CONFIG"; then
28440 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28441echo "${ECHO_T}$GTK_CONFIG" >&6
28442else
28443 echo "$as_me:$LINENO: result: no" >&5
28444echo "${ECHO_T}no" >&6
28445fi
28446
28447 min_gtk_version=1.2.7
28448 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28449echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28450 no_gtk=""
28451 if test "$GTK_CONFIG" = "no" ; then
28452 no_gtk=yes
28453 else
28454 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28455 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28456 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28457 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28458 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28459 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28460 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28461 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28462 if test "x$enable_gtktest" = "xyes" ; then
28463 ac_save_CFLAGS="$CFLAGS"
28464 ac_save_LIBS="$LIBS"
28465 CFLAGS="$CFLAGS $GTK_CFLAGS"
28466 LIBS="$GTK_LIBS $LIBS"
28467 rm -f conf.gtktest
28468 if test "$cross_compiling" = yes; then
28469 echo $ac_n "cross compiling; assumed OK... $ac_c"
28470else
28471 cat >conftest.$ac_ext <<_ACEOF
28472/* confdefs.h. */
28473_ACEOF
28474cat confdefs.h >>conftest.$ac_ext
28475cat >>conftest.$ac_ext <<_ACEOF
28476/* end confdefs.h. */
28477
28478#include <gtk/gtk.h>
28479#include <stdio.h>
28480#include <stdlib.h>
28481
28482int
28483main ()
28484{
28485 int major, minor, micro;
28486 char *tmp_version;
28487
28488 system ("touch conf.gtktest");
28489
28490 /* HP/UX 9 (%@#!) writes to sscanf strings */
28491 tmp_version = g_strdup("$min_gtk_version");
28492 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28493 printf("%s, bad version string\n", "$min_gtk_version");
28494 exit(1);
28495 }
28496
28497 if ((gtk_major_version != $gtk_config_major_version) ||
28498 (gtk_minor_version != $gtk_config_minor_version) ||
28499 (gtk_micro_version != $gtk_config_micro_version))
28500 {
28501 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28502 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28503 gtk_major_version, gtk_minor_version, gtk_micro_version);
28504 printf ("*** was found! If gtk-config was correct, then it is best\n");
28505 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28506 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28507 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28508 printf("*** required on your system.\n");
28509 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28510 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28511 printf("*** before re-running configure\n");
28512 }
28513#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28514 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28515 (gtk_minor_version != GTK_MINOR_VERSION) ||
28516 (gtk_micro_version != GTK_MICRO_VERSION))
28517 {
28518 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28519 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28520 printf("*** library (version %d.%d.%d)\n",
28521 gtk_major_version, gtk_minor_version, gtk_micro_version);
28522 }
28523#endif /* defined (GTK_MAJOR_VERSION) ... */
28524 else
28525 {
28526 if ((gtk_major_version > major) ||
28527 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28528 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28529 {
28530 return 0;
28531 }
28532 else
28533 {
28534 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28535 gtk_major_version, gtk_minor_version, gtk_micro_version);
28536 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28537 major, minor, micro);
28538 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28539 printf("***\n");
28540 printf("*** If you have already installed a sufficiently new version, this error\n");
28541 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28542 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28543 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28544 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28545 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28546 printf("*** so that the correct libraries are found at run-time))\n");
28547 }
28548 }
28549 return 1;
28550}
28551
28552_ACEOF
28553rm -f conftest$ac_exeext
28554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28555 (eval $ac_link) 2>&5
28556 ac_status=$?
28557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28560 (eval $ac_try) 2>&5
28561 ac_status=$?
28562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28563 (exit $ac_status); }; }; then
28564 :
28565else
28566 echo "$as_me: program exited with status $ac_status" >&5
28567echo "$as_me: failed program was:" >&5
28568sed 's/^/| /' conftest.$ac_ext >&5
28569
28570( exit $ac_status )
28571no_gtk=yes
28572fi
ac1cb8d3 28573rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28574fi
28575 CFLAGS="$ac_save_CFLAGS"
28576 LIBS="$ac_save_LIBS"
28577 fi
28578 fi
28579 if test "x$no_gtk" = x ; then
28580 echo "$as_me:$LINENO: result: yes" >&5
28581echo "${ECHO_T}yes" >&6
28582 wx_cv_lib_gtk=1.2.7
28583 else
28584 echo "$as_me:$LINENO: result: no" >&5
28585echo "${ECHO_T}no" >&6
28586 if test "$GTK_CONFIG" = "no" ; then
28587 echo "*** The gtk-config script installed by GTK could not be found"
28588 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28589 echo "*** your path, or set the GTK_CONFIG environment variable to the"
28590 echo "*** full path to gtk-config."
28591 else
28592 if test -f conf.gtktest ; then
28593 :
28594 else
28595 echo "*** Could not run GTK test program, checking why..."
28596 CFLAGS="$CFLAGS $GTK_CFLAGS"
28597 LIBS="$LIBS $GTK_LIBS"
28598 cat >conftest.$ac_ext <<_ACEOF
28599/* confdefs.h. */
28600_ACEOF
28601cat confdefs.h >>conftest.$ac_ext
28602cat >>conftest.$ac_ext <<_ACEOF
28603/* end confdefs.h. */
28604
28605#include <gtk/gtk.h>
28606#include <stdio.h>
28607
28608int
28609main ()
28610{
28611 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28612 ;
28613 return 0;
28614}
28615_ACEOF
28616rm -f conftest.$ac_objext conftest$ac_exeext
28617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28618 (eval $ac_link) 2>conftest.er1
a848cd7e 28619 ac_status=$?
ac1cb8d3
VS
28620 grep -v '^ *+' conftest.er1 >conftest.err
28621 rm -f conftest.er1
28622 cat conftest.err >&5
a848cd7e
SC
28623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28624 (exit $ac_status); } &&
bb9e79c0 28625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28627 (eval $ac_try) 2>&5
28628 ac_status=$?
28629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630 (exit $ac_status); }; } &&
28631 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28633 (eval $ac_try) 2>&5
28634 ac_status=$?
28635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28636 (exit $ac_status); }; }; then
28637 echo "*** The test program compiled, but did not run. This usually means"
28638 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28639 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28640 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28641 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28642 echo "*** is required on your system"
28643 echo "***"
28644 echo "*** If you have an old version installed, it is best to remove it, although"
28645 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28646 echo "***"
28647 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28648 echo "*** came with the system with the command"
28649 echo "***"
28650 echo "*** rpm --erase --nodeps gtk gtk-devel"
28651else
28652 echo "$as_me: failed program was:" >&5
28653sed 's/^/| /' conftest.$ac_ext >&5
28654
28655 echo "*** The test program failed to compile or link. See the file config.log for the"
28656 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28657 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28658 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28659fi
ac1cb8d3
VS
28660rm -f conftest.err conftest.$ac_objext \
28661 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28662 CFLAGS="$ac_save_CFLAGS"
28663 LIBS="$ac_save_LIBS"
28664 fi
28665 fi
28666 GTK_CFLAGS=""
28667 GTK_LIBS=""
28668 :
28669 fi
28670
28671
28672 rm -f conf.gtktest
28673
28674
f34ca037 28675 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
28676
28677# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
28678if test "${with_gtk_prefix+set}" = set; then
28679 withval="$with_gtk_prefix"
28680 gtk_config_prefix="$withval"
28681else
28682 gtk_config_prefix=""
28683fi;
28684
28685# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
28686if test "${with_gtk_exec_prefix+set}" = set; then
28687 withval="$with_gtk_exec_prefix"
28688 gtk_config_exec_prefix="$withval"
28689else
28690 gtk_config_exec_prefix=""
28691fi;
28692# Check whether --enable-gtktest or --disable-gtktest was given.
28693if test "${enable_gtktest+set}" = set; then
28694 enableval="$enable_gtktest"
28695
28696else
28697 enable_gtktest=yes
28698fi;
28699
28700 for module in . $GTK_MODULES
28701 do
28702 case "$module" in
28703 gthread)
28704 gtk_config_args="$gtk_config_args gthread"
28705 ;;
28706 esac
28707 done
28708
28709 if test x$gtk_config_exec_prefix != x ; then
28710 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28711 if test x${GTK_CONFIG+set} != xset ; then
28712 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28713 fi
28714 fi
28715 if test x$gtk_config_prefix != x ; then
28716 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28717 if test x${GTK_CONFIG+set} != xset ; then
28718 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28719 fi
28720 fi
28721
28722 # Extract the first word of "gtk-config", so it can be a program name with args.
28723set dummy gtk-config; ac_word=$2
28724echo "$as_me:$LINENO: checking for $ac_word" >&5
28725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28726if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28727 echo $ECHO_N "(cached) $ECHO_C" >&6
28728else
28729 case $GTK_CONFIG in
28730 [\\/]* | ?:[\\/]*)
28731 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28732 ;;
28733 *)
28734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28735for as_dir in $PATH
28736do
28737 IFS=$as_save_IFS
28738 test -z "$as_dir" && as_dir=.
28739 for ac_exec_ext in '' $ac_executable_extensions; do
28740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28741 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28743 break 2
28744 fi
28745done
28746done
28747
28748 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28749 ;;
28750esac
28751fi
28752GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28753
28754if test -n "$GTK_CONFIG"; then
28755 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28756echo "${ECHO_T}$GTK_CONFIG" >&6
28757else
28758 echo "$as_me:$LINENO: result: no" >&5
28759echo "${ECHO_T}no" >&6
28760fi
28761
28762 min_gtk_version=1.2.3
28763 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28764echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28765 no_gtk=""
28766 if test "$GTK_CONFIG" = "no" ; then
28767 no_gtk=yes
28768 else
28769 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28770 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28771 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28772 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28773 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28774 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28775 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28776 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28777 if test "x$enable_gtktest" = "xyes" ; then
28778 ac_save_CFLAGS="$CFLAGS"
28779 ac_save_LIBS="$LIBS"
28780 CFLAGS="$CFLAGS $GTK_CFLAGS"
28781 LIBS="$GTK_LIBS $LIBS"
28782 rm -f conf.gtktest
28783 if test "$cross_compiling" = yes; then
28784 echo $ac_n "cross compiling; assumed OK... $ac_c"
28785else
28786 cat >conftest.$ac_ext <<_ACEOF
28787/* confdefs.h. */
28788_ACEOF
28789cat confdefs.h >>conftest.$ac_ext
28790cat >>conftest.$ac_ext <<_ACEOF
28791/* end confdefs.h. */
28792
28793#include <gtk/gtk.h>
28794#include <stdio.h>
28795#include <stdlib.h>
28796
28797int
28798main ()
28799{
28800 int major, minor, micro;
28801 char *tmp_version;
28802
28803 system ("touch conf.gtktest");
28804
28805 /* HP/UX 9 (%@#!) writes to sscanf strings */
28806 tmp_version = g_strdup("$min_gtk_version");
28807 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28808 printf("%s, bad version string\n", "$min_gtk_version");
28809 exit(1);
28810 }
28811
28812 if ((gtk_major_version != $gtk_config_major_version) ||
28813 (gtk_minor_version != $gtk_config_minor_version) ||
28814 (gtk_micro_version != $gtk_config_micro_version))
28815 {
28816 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28817 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28818 gtk_major_version, gtk_minor_version, gtk_micro_version);
28819 printf ("*** was found! If gtk-config was correct, then it is best\n");
28820 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28821 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28822 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28823 printf("*** required on your system.\n");
28824 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28825 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28826 printf("*** before re-running configure\n");
28827 }
28828#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28829 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28830 (gtk_minor_version != GTK_MINOR_VERSION) ||
28831 (gtk_micro_version != GTK_MICRO_VERSION))
28832 {
28833 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28834 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28835 printf("*** library (version %d.%d.%d)\n",
28836 gtk_major_version, gtk_minor_version, gtk_micro_version);
28837 }
28838#endif /* defined (GTK_MAJOR_VERSION) ... */
28839 else
28840 {
28841 if ((gtk_major_version > major) ||
28842 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28843 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28844 {
28845 return 0;
28846 }
28847 else
28848 {
28849 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28850 gtk_major_version, gtk_minor_version, gtk_micro_version);
28851 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28852 major, minor, micro);
28853 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28854 printf("***\n");
28855 printf("*** If you have already installed a sufficiently new version, this error\n");
28856 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28857 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28858 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28859 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28860 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28861 printf("*** so that the correct libraries are found at run-time))\n");
28862 }
28863 }
28864 return 1;
28865}
28866
28867_ACEOF
28868rm -f conftest$ac_exeext
28869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28870 (eval $ac_link) 2>&5
28871 ac_status=$?
28872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28875 (eval $ac_try) 2>&5
28876 ac_status=$?
28877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28878 (exit $ac_status); }; }; then
28879 :
28880else
28881 echo "$as_me: program exited with status $ac_status" >&5
28882echo "$as_me: failed program was:" >&5
28883sed 's/^/| /' conftest.$ac_ext >&5
28884
28885( exit $ac_status )
28886no_gtk=yes
28887fi
ac1cb8d3 28888rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28889fi
28890 CFLAGS="$ac_save_CFLAGS"
28891 LIBS="$ac_save_LIBS"
28892 fi
28893 fi
28894 if test "x$no_gtk" = x ; then
28895 echo "$as_me:$LINENO: result: yes" >&5
28896echo "${ECHO_T}yes" >&6
28897 wx_cv_lib_gtk=1.2.3
28898 else
28899 echo "$as_me:$LINENO: result: no" >&5
28900echo "${ECHO_T}no" >&6
28901 if test "$GTK_CONFIG" = "no" ; then
28902 echo "*** The gtk-config script installed by GTK could not be found"
28903 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28904 echo "*** your path, or set the GTK_CONFIG environment variable to the"
28905 echo "*** full path to gtk-config."
28906 else
28907 if test -f conf.gtktest ; then
28908 :
28909 else
28910 echo "*** Could not run GTK test program, checking why..."
28911 CFLAGS="$CFLAGS $GTK_CFLAGS"
28912 LIBS="$LIBS $GTK_LIBS"
28913 cat >conftest.$ac_ext <<_ACEOF
28914/* confdefs.h. */
28915_ACEOF
28916cat confdefs.h >>conftest.$ac_ext
28917cat >>conftest.$ac_ext <<_ACEOF
28918/* end confdefs.h. */
28919
28920#include <gtk/gtk.h>
28921#include <stdio.h>
28922
28923int
28924main ()
28925{
28926 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28927 ;
28928 return 0;
28929}
28930_ACEOF
28931rm -f conftest.$ac_objext conftest$ac_exeext
28932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28933 (eval $ac_link) 2>conftest.er1
a848cd7e 28934 ac_status=$?
ac1cb8d3
VS
28935 grep -v '^ *+' conftest.er1 >conftest.err
28936 rm -f conftest.er1
28937 cat conftest.err >&5
a848cd7e
SC
28938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28939 (exit $ac_status); } &&
bb9e79c0 28940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28942 (eval $ac_try) 2>&5
28943 ac_status=$?
28944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945 (exit $ac_status); }; } &&
28946 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28948 (eval $ac_try) 2>&5
28949 ac_status=$?
28950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28951 (exit $ac_status); }; }; then
28952 echo "*** The test program compiled, but did not run. This usually means"
28953 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28954 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28955 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28956 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28957 echo "*** is required on your system"
28958 echo "***"
28959 echo "*** If you have an old version installed, it is best to remove it, although"
28960 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28961 echo "***"
28962 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28963 echo "*** came with the system with the command"
28964 echo "***"
28965 echo "*** rpm --erase --nodeps gtk gtk-devel"
28966else
28967 echo "$as_me: failed program was:" >&5
28968sed 's/^/| /' conftest.$ac_ext >&5
28969
28970 echo "*** The test program failed to compile or link. See the file config.log for the"
28971 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28972 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28973 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28974fi
ac1cb8d3
VS
28975rm -f conftest.err conftest.$ac_objext \
28976 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28977 CFLAGS="$ac_save_CFLAGS"
28978 LIBS="$ac_save_LIBS"
28979 fi
28980 fi
28981 GTK_CFLAGS=""
28982 GTK_LIBS=""
28983 :
28984 fi
28985
28986
28987 rm -f conf.gtktest
28988
f34ca037 28989 fi
a848cd7e
SC
28990 fi
28991 fi
28992
28993 if test -z "$wx_cv_lib_gtk"; then
28994 wx_cv_lib_gtk=none
28995 else
28996 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 28997 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
28998 fi
28999
29000
29001fi
29002
29003
29004 if test "$gtk_version_cached" = 1; then
29005 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
29006echo "${ECHO_T}$wx_cv_lib_gtk" >&6
29007 fi
29008
29009 case "$wx_cv_lib_gtk" in
29010 2.0) WXGTK20=1
29011 TOOLKIT_VERSION=2
29012 ;;
29013 1.2.7) WXGTK127=1
29014 WXGTK12=1
29015 ;;
29016 1.2.3) WXGTK12=1
29017 ;;
29018 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
29019The development files for GTK+ were not found. For GTK+ 2, please
29020ensure that pkg-config is in the path and that gtk+-2.0.pc is
29021installed. For GTK+ 1.2 please check that gtk-config is in the path,
29022and that the version is 1.2.3 or above. Also check that the
29023libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29024--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
29025 " >&5
29026echo "$as_me: error:
f597b41c
MW
29027The development files for GTK+ were not found. For GTK+ 2, please
29028ensure that pkg-config is in the path and that gtk+-2.0.pc is
29029installed. For GTK+ 1.2 please check that gtk-config is in the path,
29030and that the version is 1.2.3 or above. Also check that the
29031libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29032--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
29033 " >&2;}
29034 { (exit 1); exit 1; }; }
29035 ;;
29036 esac
29037
29038 if test "$WXGTK20" = 1; then
6954625c 29039 save_CFLAGS="$CFLAGS"
304205f1 29040 save_LIBS="$LIBS"
6954625c 29041 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 29042 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 29043
58e65954
MW
29044 echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
29045echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6
29046if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
29047 echo $ECHO_N "(cached) $ECHO_C" >&6
29048else
29049 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
29050/* confdefs.h. */
29051_ACEOF
29052cat confdefs.h >>conftest.$ac_ext
29053cat >>conftest.$ac_ext <<_ACEOF
29054/* end confdefs.h. */
58e65954 29055#include <gtk/gtk.h>
304205f1 29056
d12aef51
VZ
29057int
29058main ()
29059{
58e65954
MW
29060#ifndef gtk_icon_size_lookup
29061 char *p = (char *) gtk_icon_size_lookup;
29062#endif
abc736fd
MW
29063
29064 ;
29065 return 0;
29066}
29067_ACEOF
29068rm -f conftest.$ac_objext
29069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29070 (eval $ac_compile) 2>conftest.er1
29071 ac_status=$?
29072 grep -v '^ *+' conftest.er1 >conftest.err
29073 rm -f conftest.er1
29074 cat conftest.err >&5
29075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076 (exit $ac_status); } &&
bb9e79c0 29077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
29078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29079 (eval $ac_try) 2>&5
29080 ac_status=$?
29081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29082 (exit $ac_status); }; } &&
29083 { ac_try='test -s conftest.$ac_objext'
29084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29085 (eval $ac_try) 2>&5
29086 ac_status=$?
29087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29088 (exit $ac_status); }; }; then
58e65954 29089 ac_cv_have_decl_gtk_icon_size_lookup=yes
abc736fd
MW
29090else
29091 echo "$as_me: failed program was:" >&5
29092sed 's/^/| /' conftest.$ac_ext >&5
29093
58e65954
MW
29094ac_cv_have_decl_gtk_icon_size_lookup=no
29095fi
29096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29097fi
29098echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
29099echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6
29100if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
abc736fd 29101
58e65954
MW
29102cat >>confdefs.h <<_ACEOF
29103#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
abc736fd
MW
29104_ACEOF
29105
58e65954
MW
29106
29107else
29108 cat >>confdefs.h <<_ACEOF
29109#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
29110_ACEOF
29111
29112cat >>confdefs.h <<\_ACEOF
29113#define NEED_GTK_ICON_SIZE_LOOKUP 1
29114_ACEOF
abc736fd
MW
29115
29116fi
58e65954
MW
29117
29118
abc736fd 29119
e9263684
VZ
29120 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
29121echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
29122 cat >conftest.$ac_ext <<_ACEOF
29123/* confdefs.h. */
29124_ACEOF
29125cat confdefs.h >>conftest.$ac_ext
29126cat >>conftest.$ac_ext <<_ACEOF
29127/* end confdefs.h. */
29128
29129 #include <gtk/gtk.h>
29130
29131int
29132main ()
29133{
29134
29135 #if !GTK_CHECK_VERSION(2,6,0)
29136 Not GTK+ 2.6
29137 #endif
29138
29139 ;
29140 return 0;
29141}
29142_ACEOF
29143rm -f conftest.$ac_objext
29144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29145 (eval $ac_compile) 2>conftest.er1
29146 ac_status=$?
29147 grep -v '^ *+' conftest.er1 >conftest.err
29148 rm -f conftest.er1
29149 cat conftest.err >&5
29150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151 (exit $ac_status); } &&
bb9e79c0 29152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e9263684
VZ
29153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29154 (eval $ac_try) 2>&5
29155 ac_status=$?
29156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157 (exit $ac_status); }; } &&
29158 { ac_try='test -s conftest.$ac_objext'
29159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29160 (eval $ac_try) 2>&5
29161 ac_status=$?
29162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29163 (exit $ac_status); }; }; then
29164
29165 cat >>confdefs.h <<\_ACEOF
29166#define __WXGTK26__ 1
29167_ACEOF
29168
29169 cat >>confdefs.h <<\_ACEOF
29170#define __WXGTK24__ 1
29171_ACEOF
29172
29173 echo "$as_me:$LINENO: result: yes" >&5
29174echo "${ECHO_T}yes" >&6
29175 ac_wxgtk26=1
29176
29177else
29178 echo "$as_me: failed program was:" >&5
29179sed 's/^/| /' conftest.$ac_ext >&5
29180
29181
29182 echo "$as_me:$LINENO: result: no" >&5
29183echo "${ECHO_T}no" >&6
29184 ac_wxgtk26=0
29185
29186fi
29187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29188
29189 if test "$ac_wxgtk26" = 0; then
9755e73b
VS
29190 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
29191echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
29192 cat >conftest.$ac_ext <<_ACEOF
29193/* confdefs.h. */
29194_ACEOF
29195cat confdefs.h >>conftest.$ac_ext
29196cat >>conftest.$ac_ext <<_ACEOF
29197/* end confdefs.h. */
29198
29199 #include <gtk/gtk.h>
29200
29201int
29202main ()
29203{
29204
29205 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 29206 Not GTK+ 2.4
9755e73b
VS
29207 #endif
29208
29209 ;
29210 return 0;
29211}
29212_ACEOF
29213rm -f conftest.$ac_objext
29214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29215 (eval $ac_compile) 2>conftest.er1
29216 ac_status=$?
29217 grep -v '^ *+' conftest.er1 >conftest.err
29218 rm -f conftest.er1
29219 cat conftest.err >&5
29220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221 (exit $ac_status); } &&
bb9e79c0 29222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
29223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29224 (eval $ac_try) 2>&5
29225 ac_status=$?
29226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227 (exit $ac_status); }; } &&
29228 { ac_try='test -s conftest.$ac_objext'
29229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29230 (eval $ac_try) 2>&5
29231 ac_status=$?
29232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233 (exit $ac_status); }; }; then
29234
29235 cat >>confdefs.h <<\_ACEOF
29236#define __WXGTK24__ 1
29237_ACEOF
29238
29239 echo "$as_me:$LINENO: result: yes" >&5
29240echo "${ECHO_T}yes" >&6
29241
29242else
29243 echo "$as_me: failed program was:" >&5
29244sed 's/^/| /' conftest.$ac_ext >&5
29245
29246
29247 echo "$as_me:$LINENO: result: no" >&5
29248echo "${ECHO_T}no" >&6
29249
29250fi
29251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e9263684 29252 fi
9755e73b 29253
6954625c 29254 CFLAGS="$save_CFLAGS"
304205f1 29255 LIBS="$save_LIBS"
a848cd7e
SC
29256 else
29257 if test "$wxUSE_UNICODE" = "yes"; then
29258 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
29259echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
29260 wxUSE_UNICODE=no
29261 fi
64b75e64
RD
29262
29263 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
29264echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
29265if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
29266 echo $ECHO_N "(cached) $ECHO_C" >&6
29267else
29268 ac_check_lib_save_LIBS=$LIBS
29269LIBS="-lgdk $LIBS"
29270cat >conftest.$ac_ext <<_ACEOF
29271/* confdefs.h. */
29272_ACEOF
29273cat confdefs.h >>conftest.$ac_ext
29274cat >>conftest.$ac_ext <<_ACEOF
29275/* end confdefs.h. */
29276
29277/* Override any gcc2 internal prototype to avoid an error. */
29278#ifdef __cplusplus
29279extern "C"
29280#endif
29281/* We use char because int might match the return type of a gcc2
29282 builtin and then its argument prototype would still apply. */
29283char gdk_im_open ();
29284int
29285main ()
29286{
29287gdk_im_open ();
29288 ;
29289 return 0;
29290}
29291_ACEOF
29292rm -f conftest.$ac_objext conftest$ac_exeext
29293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29294 (eval $ac_link) 2>conftest.er1
29295 ac_status=$?
29296 grep -v '^ *+' conftest.er1 >conftest.err
29297 rm -f conftest.er1
29298 cat conftest.err >&5
29299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29300 (exit $ac_status); } &&
bb9e79c0 29301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
64b75e64
RD
29302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29303 (eval $ac_try) 2>&5
29304 ac_status=$?
29305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29306 (exit $ac_status); }; } &&
29307 { ac_try='test -s conftest$ac_exeext'
29308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29309 (eval $ac_try) 2>&5
29310 ac_status=$?
29311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312 (exit $ac_status); }; }; then
29313 ac_cv_lib_gdk_gdk_im_open=yes
29314else
29315 echo "$as_me: failed program was:" >&5
29316sed 's/^/| /' conftest.$ac_ext >&5
29317
29318ac_cv_lib_gdk_gdk_im_open=no
29319fi
29320rm -f conftest.err conftest.$ac_objext \
29321 conftest$ac_exeext conftest.$ac_ext
29322LIBS=$ac_check_lib_save_LIBS
29323fi
29324echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
29325echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
29326if test $ac_cv_lib_gdk_gdk_im_open = yes; then
29327 cat >>confdefs.h <<\_ACEOF
29328#define HAVE_XIM 1
29329_ACEOF
29330
29331fi
29332
a848cd7e
SC
29333 fi
29334
e56f4f9e
VZ
29335 ac_ext=cc
29336ac_cpp='$CXXCPP $CPPFLAGS'
29337ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29338ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29339ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29340
29341
a848cd7e
SC
29342 if test "$USE_DARWIN" != 1; then
29343
29344for ac_func in poll
29345do
29346as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29347echo "$as_me:$LINENO: checking for $ac_func" >&5
29348echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29349if eval "test \"\${$as_ac_var+set}\" = set"; then
29350 echo $ECHO_N "(cached) $ECHO_C" >&6
29351else
29352 cat >conftest.$ac_ext <<_ACEOF
29353/* confdefs.h. */
29354_ACEOF
29355cat confdefs.h >>conftest.$ac_ext
29356cat >>conftest.$ac_ext <<_ACEOF
29357/* end confdefs.h. */
ac1cb8d3
VS
29358/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29360#define $ac_func innocuous_$ac_func
29361
a848cd7e
SC
29362/* System header to define __stub macros and hopefully few prototypes,
29363 which can conflict with char $ac_func (); below.
29364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29365 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29366
a848cd7e
SC
29367#ifdef __STDC__
29368# include <limits.h>
29369#else
29370# include <assert.h>
29371#endif
ac1cb8d3
VS
29372
29373#undef $ac_func
29374
a848cd7e
SC
29375/* Override any gcc2 internal prototype to avoid an error. */
29376#ifdef __cplusplus
29377extern "C"
29378{
29379#endif
29380/* We use char because int might match the return type of a gcc2
29381 builtin and then its argument prototype would still apply. */
29382char $ac_func ();
29383/* The GNU C library defines this for functions which it implements
29384 to always fail with ENOSYS. Some functions are actually named
29385 something starting with __ and the normal name is an alias. */
29386#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29387choke me
29388#else
29389char (*f) () = $ac_func;
29390#endif
29391#ifdef __cplusplus
29392}
29393#endif
29394
29395int
29396main ()
29397{
29398return f != $ac_func;
29399 ;
29400 return 0;
29401}
29402_ACEOF
29403rm -f conftest.$ac_objext conftest$ac_exeext
29404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29405 (eval $ac_link) 2>conftest.er1
a848cd7e 29406 ac_status=$?
ac1cb8d3
VS
29407 grep -v '^ *+' conftest.er1 >conftest.err
29408 rm -f conftest.er1
29409 cat conftest.err >&5
a848cd7e
SC
29410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411 (exit $ac_status); } &&
bb9e79c0 29412 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29414 (eval $ac_try) 2>&5
29415 ac_status=$?
29416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29417 (exit $ac_status); }; } &&
29418 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29420 (eval $ac_try) 2>&5
29421 ac_status=$?
29422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423 (exit $ac_status); }; }; then
29424 eval "$as_ac_var=yes"
29425else
29426 echo "$as_me: failed program was:" >&5
29427sed 's/^/| /' conftest.$ac_ext >&5
29428
29429eval "$as_ac_var=no"
29430fi
ac1cb8d3
VS
29431rm -f conftest.err conftest.$ac_objext \
29432 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29433fi
29434echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29435echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29436if test `eval echo '${'$as_ac_var'}'` = yes; then
29437 cat >>confdefs.h <<_ACEOF
29438#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29439_ACEOF
29440
29441fi
29442done
29443
29444 fi
29445
29446 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
29447 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
29448
29449 AFMINSTALL=afminstall
29450 TOOLKIT=GTK
29451 GUIDIST=GTK_DIST
29452
a848cd7e
SC
29453 if test "$wxUSE_GPE" = "yes"; then
29454 echo "$as_me:$LINENO: checking for gpewidget library" >&5
29455echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
29456
0ad5d837
VZ
29457 ac_find_libraries=
29458 for ac_dir in $SEARCH_LIB;
a848cd7e 29459 do
3eca31dc 29460 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29461 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
29462 ac_find_libraries=$ac_dir
29463 break 2
29464 fi
29465 done
29466 done
29467
29468 if test "$ac_find_libraries" != "" ; then
29469
0ad5d837 29470 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
29471 ac_path_to_link=""
29472 else
0ad5d837
VZ
29473 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29474 result=$?
29475 if test $result = 0; then
29476 ac_path_to_link=""
29477 else
29478 ac_path_to_link=" -L$ac_find_libraries"
29479 fi
a848cd7e
SC
29480 fi
29481
29482 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29483 WXGPE=1
0ad5d837
VZ
29484 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29485echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
29486 else
29487 echo "$as_me:$LINENO: result: not found" >&5
29488echo "${ECHO_T}not found" >&6
29489 fi
29490
29491 fi
29492 fi
29493
29494 if test "$wxUSE_MGL" = 1; then
29495 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29496echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
29497 if test "x$MGL_ROOT" = x ; then
29498 echo "$as_me:$LINENO: result: not found" >&5
29499echo "${ECHO_T}not found" >&6
29500 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29501echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29502 { (exit 1); exit 1; }; }
29503 else
29504 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29505echo "${ECHO_T}$MGL_ROOT" >&6
29506 fi
29507
29508 echo "$as_me:$LINENO: checking for libmgl location" >&5
29509echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
29510 case "${host}" in
29511 *-*-linux* )
29512 if test "x$wxUSE_SHARED" = xyes ; then
29513 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29514 else
29515 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29516 fi
29517 ;;
29518 *-pc-msdosdjgpp )
29519 mgl_os_candidates="dos32/dj2"
29520 ;;
29521 *)
29522 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29523echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29524 { (exit 1); exit 1; }; }
29525 esac
29526
29527 mgl_lib_type=""
29528 mgl_os=""
29529
29530 for mgl_os_i in $mgl_os_candidates ; do
29531 if test "x$mgl_os" = x ; then
29532 if test "$wxUSE_DEBUG_FLAG" = yes ; then
29533 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29534 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29535 mgl_lib_type=debug
29536 mgl_os=$mgl_os_i
29537 fi
29538 fi
29539 if test "x$mgl_lib_type" = x ; then
29540 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29541 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29542 mgl_lib_type=release
29543 mgl_os=$mgl_os_i
29544 fi
29545 fi
29546 fi
29547 done
29548
29549 if test "x$mgl_os" = x ; then
29550 echo "$as_me:$LINENO: result: not found" >&5
29551echo "${ECHO_T}not found" >&6
29552 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29553echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29554 { (exit 1); exit 1; }; }
29555 fi
29556 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29557echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
29558
29559 wxUSE_UNIVERSAL="yes"
29560
29561 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29562 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29563
29564 AFMINSTALL=afminstall
29565 TOOLKIT=MGL
29566 GUIDIST=MGL_DIST
29567 fi
29568
b3c86150
VS
29569 if test "$wxUSE_DFB" = 1; then
29570
29571
29572if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29573 if test -n "$ac_tool_prefix"; then
29574 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29575set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29576echo "$as_me:$LINENO: checking for $ac_word" >&5
29577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29578if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29579 echo $ECHO_N "(cached) $ECHO_C" >&6
29580else
29581 case $PKG_CONFIG in
29582 [\\/]* | ?:[\\/]*)
29583 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29584 ;;
29585 *)
29586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29587for as_dir in $PATH
29588do
29589 IFS=$as_save_IFS
29590 test -z "$as_dir" && as_dir=.
29591 for ac_exec_ext in '' $ac_executable_extensions; do
29592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29593 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29595 break 2
29596 fi
29597done
29598done
29599
29600 ;;
29601esac
29602fi
29603PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29604
29605if test -n "$PKG_CONFIG"; then
29606 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29607echo "${ECHO_T}$PKG_CONFIG" >&6
29608else
29609 echo "$as_me:$LINENO: result: no" >&5
29610echo "${ECHO_T}no" >&6
29611fi
29612
29613fi
29614if test -z "$ac_cv_path_PKG_CONFIG"; then
29615 ac_pt_PKG_CONFIG=$PKG_CONFIG
29616 # Extract the first word of "pkg-config", so it can be a program name with args.
29617set dummy pkg-config; ac_word=$2
29618echo "$as_me:$LINENO: checking for $ac_word" >&5
29619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29620if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29621 echo $ECHO_N "(cached) $ECHO_C" >&6
29622else
29623 case $ac_pt_PKG_CONFIG in
29624 [\\/]* | ?:[\\/]*)
29625 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29626 ;;
29627 *)
29628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29629for as_dir in $PATH
29630do
29631 IFS=$as_save_IFS
29632 test -z "$as_dir" && as_dir=.
29633 for ac_exec_ext in '' $ac_executable_extensions; do
29634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29635 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29637 break 2
29638 fi
29639done
29640done
29641
29642 ;;
29643esac
29644fi
29645ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29646
29647if test -n "$ac_pt_PKG_CONFIG"; then
29648 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29649echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
29650else
29651 echo "$as_me:$LINENO: result: no" >&5
29652echo "${ECHO_T}no" >&6
29653fi
29654
29655 PKG_CONFIG=$ac_pt_PKG_CONFIG
29656else
29657 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29658fi
29659
29660fi
29661if test -n "$PKG_CONFIG"; then
29662 _pkg_min_version=0.9.0
29663 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29664echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
29665 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29666 echo "$as_me:$LINENO: result: yes" >&5
29667echo "${ECHO_T}yes" >&6
29668 else
29669 echo "$as_me:$LINENO: result: no" >&5
29670echo "${ECHO_T}no" >&6
29671 PKG_CONFIG=""
29672 fi
29673
29674fi
29675
479c790c 29676
b3c86150
VS
29677pkg_failed=no
29678echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29679echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6
29680
29681if test -n "$PKG_CONFIG"; then
29682 if test -n "$DIRECTFB_CFLAGS"; then
29683 pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29684 else
29685 if test -n "$PKG_CONFIG" && \
737d3175
VZ
29686 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29687 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
b3c86150
VS
29688 ac_status=$?
29689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29690 (exit $ac_status); }; then
737d3175 29691 pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.22" 2>/dev/null`
b3c86150
VS
29692else
29693 pkg_failed=yes
29694fi
29695 fi
29696else
29697 pkg_failed=untried
29698fi
29699if test -n "$PKG_CONFIG"; then
29700 if test -n "$DIRECTFB_LIBS"; then
29701 pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29702 else
29703 if test -n "$PKG_CONFIG" && \
737d3175
VZ
29704 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29705 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
b3c86150
VS
29706 ac_status=$?
29707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29708 (exit $ac_status); }; then
737d3175 29709 pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.22" 2>/dev/null`
b3c86150
VS
29710else
29711 pkg_failed=yes
29712fi
29713 fi
29714else
29715 pkg_failed=untried
29716fi
29717
29718
29719
29720if test $pkg_failed = yes; then
29721
29722if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29723 _pkg_short_errors_supported=yes
29724else
29725 _pkg_short_errors_supported=no
29726fi
29727 if test $_pkg_short_errors_supported = yes; then
737d3175 29728 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.22"`
b3c86150 29729 else
737d3175 29730 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.22"`
b3c86150
VS
29731 fi
29732 # Put the nasty error message in config.log where it belongs
29733 echo "$DIRECTFB_PKG_ERRORS" >&5
29734
29735
29736 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29737echo "$as_me: error: DirectFB not found." >&2;}
29738 { (exit 1); exit 1; }; }
29739
29740
29741elif test $pkg_failed = untried; then
29742
29743 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29744echo "$as_me: error: DirectFB not found." >&2;}
29745 { (exit 1); exit 1; }; }
29746
29747
29748else
29749 DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29750 DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29751 echo "$as_me:$LINENO: result: yes" >&5
29752echo "${ECHO_T}yes" >&6
29753
29754 wxUSE_UNIVERSAL="yes"
29755 TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29756 GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29757 TOOLKIT=DFB
29758 GUIDIST=DFB_DIST
29759
29760fi
29761 fi
29762
a848cd7e
SC
29763 if test "$wxUSE_MICROWIN" = 1; then
29764 echo "$as_me:$LINENO: checking for MicroWindows" >&5
29765echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
29766 if test "x$MICROWINDOWS" = x ; then
29767 echo "$as_me:$LINENO: result: not found" >&5
29768echo "${ECHO_T}not found" >&6
29769 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29770echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29771 { (exit 1); exit 1; }; }
29772 else
29773 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29774echo "${ECHO_T}$MICROWINDOWS" >&6
29775 fi
29776
29777 if test -f $MICROWINDOWS/lib/libmwin.a; then
29778 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29779echo "${ECHO_T}MicroWindows' libraries found." >&6
29780 else
29781 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29782echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29783 { (exit 1); exit 1; }; }
29784 fi
29785
29786 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29787 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29788
29789 wxUSE_UNIVERSAL="yes"
29790
29791 AFMINSTALL=afminstall
29792 TOOLKIT=MICROWIN
29793 GUIDIST=MICROWIN_DIST
29794
29795 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29796 fi
29797
74b84332 29798 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
bb9e79c0
VZ
29799
29800if test "x$ac_path_x_has_been_run" != xyes; then
29801 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
29802echo $ECHO_N "checking for X... $ECHO_C" >&6
29803
bb9e79c0 29804ac_path_x_has_been_run=yes
a848cd7e
SC
29805
29806# Check whether --with-x or --without-x was given.
29807if test "${with_x+set}" = set; then
29808 withval="$with_x"
29809
29810fi;
29811# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29812if test "x$with_x" = xno; then
29813 # The user explicitly disabled X.
29814 have_x=disabled
29815else
29816 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
29817 # Both variables are already set.
29818 have_x=yes
29819 else
29820 if test "${ac_cv_have_x+set}" = set; then
29821 echo $ECHO_N "(cached) $ECHO_C" >&6
29822else
29823 # One or both of the vars are not set, and there is no cached value.
29824ac_x_includes=no ac_x_libraries=no
29825rm -fr conftest.dir
29826if mkdir conftest.dir; then
29827 cd conftest.dir
29828 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
29829 cat >Imakefile <<'_ACEOF'
29830acfindx:
29831 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
29832_ACEOF
29833 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
29834 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29835 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
29836 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29837 for ac_extension in a so sl; do
29838 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
29839 test -f $ac_im_libdir/libX11.$ac_extension; then
29840 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
29841 fi
29842 done
29843 # Screen out bogus values from the imake configuration. They are
29844 # bogus both because they are the default anyway, and because
29845 # using them would break gcc on systems where it needs fixed includes.
29846 case $ac_im_incroot in
29847 /usr/include) ;;
29848 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29849 esac
29850 case $ac_im_usrlibdir in
29851 /usr/lib | /lib) ;;
29852 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29853 esac
29854 fi
29855 cd ..
29856 rm -fr conftest.dir
29857fi
29858
29859# Standard set of common directories for X headers.
29860# Check X11 before X11Rn because it is often a symlink to the current release.
29861ac_x_header_dirs='
29862/usr/X11/include
29863/usr/X11R6/include
29864/usr/X11R5/include
29865/usr/X11R4/include
29866
29867/usr/include/X11
29868/usr/include/X11R6
29869/usr/include/X11R5
29870/usr/include/X11R4
29871
29872/usr/local/X11/include
29873/usr/local/X11R6/include
29874/usr/local/X11R5/include
29875/usr/local/X11R4/include
29876
29877/usr/local/include/X11
29878/usr/local/include/X11R6
29879/usr/local/include/X11R5
29880/usr/local/include/X11R4
29881
29882/usr/X386/include
29883/usr/x386/include
29884/usr/XFree86/include/X11
29885
29886/usr/include
29887/usr/local/include
29888/usr/unsupported/include
29889/usr/athena/include
29890/usr/local/x11r5/include
29891/usr/lpp/Xamples/include
29892
29893/usr/openwin/include
29894/usr/openwin/share/include'
29895
29896if test "$ac_x_includes" = no; then
bb9e79c0 29897 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
29898 # First, try using that file with no special directory specified.
29899 cat >conftest.$ac_ext <<_ACEOF
29900/* confdefs.h. */
29901_ACEOF
29902cat confdefs.h >>conftest.$ac_ext
29903cat >>conftest.$ac_ext <<_ACEOF
29904/* end confdefs.h. */
bb9e79c0 29905#include <X11/Xlib.h>
a848cd7e
SC
29906_ACEOF
29907if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29909 ac_status=$?
29910 grep -v '^ *+' conftest.er1 >conftest.err
29911 rm -f conftest.er1
29912 cat conftest.err >&5
29913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29914 (exit $ac_status); } >/dev/null; then
29915 if test -s conftest.err; then
5d7b7554
VZ
29916 ac_cpp_err=$ac_cxx_preproc_warn_flag
29917 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
29918 else
29919 ac_cpp_err=
29920 fi
29921else
29922 ac_cpp_err=yes
29923fi
29924if test -z "$ac_cpp_err"; then
29925 # We can compile using X headers with no special include directory.
29926ac_x_includes=
29927else
29928 echo "$as_me: failed program was:" >&5
29929sed 's/^/| /' conftest.$ac_ext >&5
29930
29931 for ac_dir in $ac_x_header_dirs; do
bb9e79c0 29932 if test -r "$ac_dir/X11/Xlib.h"; then
a848cd7e
SC
29933 ac_x_includes=$ac_dir
29934 break
29935 fi
29936done
29937fi
29938rm -f conftest.err conftest.$ac_ext
29939fi # $ac_x_includes = no
29940
29941if test "$ac_x_libraries" = no; then
29942 # Check for the libraries.
29943 # See if we find them without any special options.
29944 # Don't add to $LIBS permanently.
29945 ac_save_LIBS=$LIBS
bb9e79c0 29946 LIBS="-lX11 $LIBS"
a848cd7e
SC
29947 cat >conftest.$ac_ext <<_ACEOF
29948/* confdefs.h. */
29949_ACEOF
29950cat confdefs.h >>conftest.$ac_ext
29951cat >>conftest.$ac_ext <<_ACEOF
29952/* end confdefs.h. */
bb9e79c0 29953#include <X11/Xlib.h>
a848cd7e
SC
29954int
29955main ()
29956{
bb9e79c0 29957XrmInitialize ()
a848cd7e
SC
29958 ;
29959 return 0;
29960}
29961_ACEOF
29962rm -f conftest.$ac_objext conftest$ac_exeext
29963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29964 (eval $ac_link) 2>conftest.er1
a848cd7e 29965 ac_status=$?
ac1cb8d3
VS
29966 grep -v '^ *+' conftest.er1 >conftest.err
29967 rm -f conftest.er1
29968 cat conftest.err >&5
a848cd7e
SC
29969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970 (exit $ac_status); } &&
bb9e79c0 29971 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29973 (eval $ac_try) 2>&5
29974 ac_status=$?
29975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29976 (exit $ac_status); }; } &&
29977 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29979 (eval $ac_try) 2>&5
29980 ac_status=$?
29981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982 (exit $ac_status); }; }; then
29983 LIBS=$ac_save_LIBS
29984# We can link X programs with no special library path.
29985ac_x_libraries=
29986else
29987 echo "$as_me: failed program was:" >&5
29988sed 's/^/| /' conftest.$ac_ext >&5
29989
29990LIBS=$ac_save_LIBS
29991for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29992do
29993 # Don't even attempt the hair of trying to link an X program!
29994 for ac_extension in a so sl; do
bb9e79c0 29995 if test -r $ac_dir/libX11.$ac_extension; then
a848cd7e
SC
29996 ac_x_libraries=$ac_dir
29997 break 2
29998 fi
29999 done
30000done
30001fi
ac1cb8d3
VS
30002rm -f conftest.err conftest.$ac_objext \
30003 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30004fi # $ac_x_libraries = no
30005
30006if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
30007 # Didn't find X anywhere. Cache the known absence of X.
30008 ac_cv_have_x="have_x=no"
30009else
30010 # Record where we found X for the cache.
30011 ac_cv_have_x="have_x=yes \
ac1cb8d3 30012 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
30013fi
30014fi
30015
30016 fi
30017 eval "$ac_cv_have_x"
30018fi # $with_x != no
30019
30020if test "$have_x" != yes; then
30021 echo "$as_me:$LINENO: result: $have_x" >&5
30022echo "${ECHO_T}$have_x" >&6
30023 no_x=yes
30024else
30025 # If each of the values was on the command line, it overrides each guess.
30026 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30027 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30028 # Update the cache value to reflect the command line values.
30029 ac_cv_have_x="have_x=yes \
30030 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
bb9e79c0
VZ
30031 # It might be that x_includes is empty (headers are found in the
30032 # standard search path. Then output the corresponding message
30033 ac_out_x_includes=$x_includes
30034 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
30035 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
30036echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
30037fi
30038
bb9e79c0 30039fi
a848cd7e
SC
30040if test "$no_x" = yes; then
30041 # Not all programs may use this symbol, but it does not hurt to define it.
30042
30043cat >>confdefs.h <<\_ACEOF
30044#define X_DISPLAY_MISSING 1
30045_ACEOF
30046
30047 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30048else
30049 if test -n "$x_includes"; then
30050 X_CFLAGS="$X_CFLAGS -I$x_includes"
30051 fi
30052
30053 # It would also be nice to do this for all -L options, not just this one.
30054 if test -n "$x_libraries"; then
30055 X_LIBS="$X_LIBS -L$x_libraries"
30056 # For Solaris; some versions of Sun CC require a space after -R and
30057 # others require no space. Words are not sufficient . . . .
30058 case `(uname -sr) 2>/dev/null` in
30059 "SunOS 5"*)
30060 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30061echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
30062 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30063 cat >conftest.$ac_ext <<_ACEOF
30064/* confdefs.h. */
30065_ACEOF
30066cat confdefs.h >>conftest.$ac_ext
30067cat >>conftest.$ac_ext <<_ACEOF
30068/* end confdefs.h. */
30069
30070int
30071main ()
30072{
30073
30074 ;
30075 return 0;
30076}
30077_ACEOF
30078rm -f conftest.$ac_objext conftest$ac_exeext
30079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30080 (eval $ac_link) 2>conftest.er1
a848cd7e 30081 ac_status=$?
ac1cb8d3
VS
30082 grep -v '^ *+' conftest.er1 >conftest.err
30083 rm -f conftest.er1
30084 cat conftest.err >&5
a848cd7e
SC
30085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30086 (exit $ac_status); } &&
bb9e79c0 30087 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30089 (eval $ac_try) 2>&5
30090 ac_status=$?
30091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30092 (exit $ac_status); }; } &&
30093 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30095 (eval $ac_try) 2>&5
30096 ac_status=$?
30097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30098 (exit $ac_status); }; }; then
30099 ac_R_nospace=yes
30100else
30101 echo "$as_me: failed program was:" >&5
30102sed 's/^/| /' conftest.$ac_ext >&5
30103
30104ac_R_nospace=no
30105fi
ac1cb8d3
VS
30106rm -f conftest.err conftest.$ac_objext \
30107 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30108 if test $ac_R_nospace = yes; then
30109 echo "$as_me:$LINENO: result: no" >&5
30110echo "${ECHO_T}no" >&6
30111 X_LIBS="$X_LIBS -R$x_libraries"
30112 else
30113 LIBS="$ac_xsave_LIBS -R $x_libraries"
30114 cat >conftest.$ac_ext <<_ACEOF
30115/* confdefs.h. */
30116_ACEOF
30117cat confdefs.h >>conftest.$ac_ext
30118cat >>conftest.$ac_ext <<_ACEOF
30119/* end confdefs.h. */
30120
30121int
30122main ()
30123{
30124
30125 ;
30126 return 0;
30127}
30128_ACEOF
30129rm -f conftest.$ac_objext conftest$ac_exeext
30130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30131 (eval $ac_link) 2>conftest.er1
a848cd7e 30132 ac_status=$?
ac1cb8d3
VS
30133 grep -v '^ *+' conftest.er1 >conftest.err
30134 rm -f conftest.er1
30135 cat conftest.err >&5
a848cd7e
SC
30136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30137 (exit $ac_status); } &&
bb9e79c0 30138 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30140 (eval $ac_try) 2>&5
30141 ac_status=$?
30142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30143 (exit $ac_status); }; } &&
30144 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30146 (eval $ac_try) 2>&5
30147 ac_status=$?
30148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30149 (exit $ac_status); }; }; then
30150 ac_R_space=yes
30151else
30152 echo "$as_me: failed program was:" >&5
30153sed 's/^/| /' conftest.$ac_ext >&5
30154
30155ac_R_space=no
30156fi
ac1cb8d3
VS
30157rm -f conftest.err conftest.$ac_objext \
30158 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30159 if test $ac_R_space = yes; then
30160 echo "$as_me:$LINENO: result: yes" >&5
30161echo "${ECHO_T}yes" >&6
30162 X_LIBS="$X_LIBS -R $x_libraries"
30163 else
30164 echo "$as_me:$LINENO: result: neither works" >&5
30165echo "${ECHO_T}neither works" >&6
30166 fi
30167 fi
30168 LIBS=$ac_xsave_LIBS
30169 esac
30170 fi
30171
30172 # Check for system-dependent libraries X programs must link with.
30173 # Do this before checking for the system-independent R6 libraries
30174 # (-lICE), since we may need -lsocket or whatever for X linking.
30175
30176 if test "$ISC" = yes; then
30177 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30178 else
30179 # Martyn Johnson says this is needed for Ultrix, if the X
30180 # libraries were built with DECnet support. And Karl Berry says
30181 # the Alpha needs dnet_stub (dnet does not exist).
30182 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30183 cat >conftest.$ac_ext <<_ACEOF
30184/* confdefs.h. */
30185_ACEOF
30186cat confdefs.h >>conftest.$ac_ext
30187cat >>conftest.$ac_ext <<_ACEOF
30188/* end confdefs.h. */
30189
30190/* Override any gcc2 internal prototype to avoid an error. */
30191#ifdef __cplusplus
30192extern "C"
30193#endif
30194/* We use char because int might match the return type of a gcc2
30195 builtin and then its argument prototype would still apply. */
30196char XOpenDisplay ();
30197int
30198main ()
30199{
30200XOpenDisplay ();
30201 ;
30202 return 0;
30203}
30204_ACEOF
30205rm -f conftest.$ac_objext conftest$ac_exeext
30206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30207 (eval $ac_link) 2>conftest.er1
a848cd7e 30208 ac_status=$?
ac1cb8d3
VS
30209 grep -v '^ *+' conftest.er1 >conftest.err
30210 rm -f conftest.er1
30211 cat conftest.err >&5
a848cd7e
SC
30212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30213 (exit $ac_status); } &&
bb9e79c0 30214 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30216 (eval $ac_try) 2>&5
30217 ac_status=$?
30218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30219 (exit $ac_status); }; } &&
30220 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30222 (eval $ac_try) 2>&5
30223 ac_status=$?
30224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30225 (exit $ac_status); }; }; then
30226 :
30227else
30228 echo "$as_me: failed program was:" >&5
30229sed 's/^/| /' conftest.$ac_ext >&5
30230
30231echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30232echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
30233if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30234 echo $ECHO_N "(cached) $ECHO_C" >&6
30235else
30236 ac_check_lib_save_LIBS=$LIBS
30237LIBS="-ldnet $LIBS"
30238cat >conftest.$ac_ext <<_ACEOF
30239/* confdefs.h. */
30240_ACEOF
30241cat confdefs.h >>conftest.$ac_ext
30242cat >>conftest.$ac_ext <<_ACEOF
30243/* end confdefs.h. */
30244
30245/* Override any gcc2 internal prototype to avoid an error. */
30246#ifdef __cplusplus
30247extern "C"
30248#endif
30249/* We use char because int might match the return type of a gcc2
30250 builtin and then its argument prototype would still apply. */
30251char dnet_ntoa ();
30252int
30253main ()
30254{
30255dnet_ntoa ();
30256 ;
30257 return 0;
30258}
30259_ACEOF
30260rm -f conftest.$ac_objext conftest$ac_exeext
30261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30262 (eval $ac_link) 2>conftest.er1
a848cd7e 30263 ac_status=$?
ac1cb8d3
VS
30264 grep -v '^ *+' conftest.er1 >conftest.err
30265 rm -f conftest.er1
30266 cat conftest.err >&5
a848cd7e
SC
30267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30268 (exit $ac_status); } &&
bb9e79c0 30269 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30271 (eval $ac_try) 2>&5
30272 ac_status=$?
30273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30274 (exit $ac_status); }; } &&
30275 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30277 (eval $ac_try) 2>&5
30278 ac_status=$?
30279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30280 (exit $ac_status); }; }; then
30281 ac_cv_lib_dnet_dnet_ntoa=yes
30282else
30283 echo "$as_me: failed program was:" >&5
30284sed 's/^/| /' conftest.$ac_ext >&5
30285
30286ac_cv_lib_dnet_dnet_ntoa=no
30287fi
ac1cb8d3
VS
30288rm -f conftest.err conftest.$ac_objext \
30289 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30290LIBS=$ac_check_lib_save_LIBS
30291fi
30292echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30293echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
30294if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30295 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30296fi
30297
30298 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30299 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30300echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
30301if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30302 echo $ECHO_N "(cached) $ECHO_C" >&6
30303else
30304 ac_check_lib_save_LIBS=$LIBS
30305LIBS="-ldnet_stub $LIBS"
30306cat >conftest.$ac_ext <<_ACEOF
30307/* confdefs.h. */
30308_ACEOF
30309cat confdefs.h >>conftest.$ac_ext
30310cat >>conftest.$ac_ext <<_ACEOF
30311/* end confdefs.h. */
30312
30313/* Override any gcc2 internal prototype to avoid an error. */
30314#ifdef __cplusplus
30315extern "C"
30316#endif
30317/* We use char because int might match the return type of a gcc2
30318 builtin and then its argument prototype would still apply. */
30319char dnet_ntoa ();
30320int
30321main ()
30322{
30323dnet_ntoa ();
30324 ;
30325 return 0;
30326}
30327_ACEOF
30328rm -f conftest.$ac_objext conftest$ac_exeext
30329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30330 (eval $ac_link) 2>conftest.er1
a848cd7e 30331 ac_status=$?
ac1cb8d3
VS
30332 grep -v '^ *+' conftest.er1 >conftest.err
30333 rm -f conftest.er1
30334 cat conftest.err >&5
a848cd7e
SC
30335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30336 (exit $ac_status); } &&
bb9e79c0 30337 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30339 (eval $ac_try) 2>&5
30340 ac_status=$?
30341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30342 (exit $ac_status); }; } &&
30343 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30345 (eval $ac_try) 2>&5
30346 ac_status=$?
30347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30348 (exit $ac_status); }; }; then
30349 ac_cv_lib_dnet_stub_dnet_ntoa=yes
30350else
30351 echo "$as_me: failed program was:" >&5
30352sed 's/^/| /' conftest.$ac_ext >&5
30353
30354ac_cv_lib_dnet_stub_dnet_ntoa=no
30355fi
ac1cb8d3
VS
30356rm -f conftest.err conftest.$ac_objext \
30357 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30358LIBS=$ac_check_lib_save_LIBS
30359fi
30360echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30361echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
30362if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30363 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30364fi
30365
30366 fi
30367fi
ac1cb8d3
VS
30368rm -f conftest.err conftest.$ac_objext \
30369 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30370 LIBS="$ac_xsave_LIBS"
30371
30372 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30373 # to get the SysV transport functions.
30374 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30375 # needs -lnsl.
30376 # The nsl library prevents programs from opening the X display
30377 # on Irix 5.2, according to T.E. Dickey.
30378 # The functions gethostbyname, getservbyname, and inet_addr are
30379 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30380 echo "$as_me:$LINENO: checking for gethostbyname" >&5
30381echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
30382if test "${ac_cv_func_gethostbyname+set}" = set; then
30383 echo $ECHO_N "(cached) $ECHO_C" >&6
30384else
30385 cat >conftest.$ac_ext <<_ACEOF
30386/* confdefs.h. */
30387_ACEOF
30388cat confdefs.h >>conftest.$ac_ext
30389cat >>conftest.$ac_ext <<_ACEOF
30390/* end confdefs.h. */
ac1cb8d3
VS
30391/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30393#define gethostbyname innocuous_gethostbyname
30394
a848cd7e
SC
30395/* System header to define __stub macros and hopefully few prototypes,
30396 which can conflict with char gethostbyname (); below.
30397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30398 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30399
a848cd7e
SC
30400#ifdef __STDC__
30401# include <limits.h>
30402#else
30403# include <assert.h>
30404#endif
ac1cb8d3
VS
30405
30406#undef gethostbyname
30407
a848cd7e
SC
30408/* Override any gcc2 internal prototype to avoid an error. */
30409#ifdef __cplusplus
30410extern "C"
30411{
30412#endif
30413/* We use char because int might match the return type of a gcc2
30414 builtin and then its argument prototype would still apply. */
30415char gethostbyname ();
30416/* The GNU C library defines this for functions which it implements
30417 to always fail with ENOSYS. Some functions are actually named
30418 something starting with __ and the normal name is an alias. */
30419#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
30420choke me
30421#else
30422char (*f) () = gethostbyname;
30423#endif
30424#ifdef __cplusplus
30425}
30426#endif
30427
30428int
30429main ()
30430{
30431return f != gethostbyname;
30432 ;
30433 return 0;
30434}
30435_ACEOF
30436rm -f conftest.$ac_objext conftest$ac_exeext
30437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30438 (eval $ac_link) 2>conftest.er1
a848cd7e 30439 ac_status=$?
ac1cb8d3
VS
30440 grep -v '^ *+' conftest.er1 >conftest.err
30441 rm -f conftest.er1
30442 cat conftest.err >&5
a848cd7e
SC
30443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30444 (exit $ac_status); } &&
bb9e79c0 30445 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30447 (eval $ac_try) 2>&5
30448 ac_status=$?
30449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30450 (exit $ac_status); }; } &&
30451 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30453 (eval $ac_try) 2>&5
30454 ac_status=$?
30455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30456 (exit $ac_status); }; }; then
30457 ac_cv_func_gethostbyname=yes
30458else
30459 echo "$as_me: failed program was:" >&5
30460sed 's/^/| /' conftest.$ac_ext >&5
30461
30462ac_cv_func_gethostbyname=no
30463fi
ac1cb8d3
VS
30464rm -f conftest.err conftest.$ac_objext \
30465 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30466fi
30467echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30468echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
30469
30470 if test $ac_cv_func_gethostbyname = no; then
30471 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30472echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
30473if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30474 echo $ECHO_N "(cached) $ECHO_C" >&6
30475else
30476 ac_check_lib_save_LIBS=$LIBS
30477LIBS="-lnsl $LIBS"
30478cat >conftest.$ac_ext <<_ACEOF
30479/* confdefs.h. */
30480_ACEOF
30481cat confdefs.h >>conftest.$ac_ext
30482cat >>conftest.$ac_ext <<_ACEOF
30483/* end confdefs.h. */
30484
30485/* Override any gcc2 internal prototype to avoid an error. */
30486#ifdef __cplusplus
30487extern "C"
30488#endif
30489/* We use char because int might match the return type of a gcc2
30490 builtin and then its argument prototype would still apply. */
30491char gethostbyname ();
30492int
30493main ()
30494{
30495gethostbyname ();
30496 ;
30497 return 0;
30498}
30499_ACEOF
30500rm -f conftest.$ac_objext conftest$ac_exeext
30501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
30502 (eval $ac_link) 2>conftest.er1
30503 ac_status=$?
30504 grep -v '^ *+' conftest.er1 >conftest.err
30505 rm -f conftest.er1
30506 cat conftest.err >&5
30507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30508 (exit $ac_status); } &&
bb9e79c0 30509 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30511 (eval $ac_try) 2>&5
30512 ac_status=$?
30513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30514 (exit $ac_status); }; } &&
30515 { ac_try='test -s conftest$ac_exeext'
30516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30517 (eval $ac_try) 2>&5
30518 ac_status=$?
30519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30520 (exit $ac_status); }; }; then
30521 ac_cv_lib_nsl_gethostbyname=yes
30522else
30523 echo "$as_me: failed program was:" >&5
30524sed 's/^/| /' conftest.$ac_ext >&5
30525
30526ac_cv_lib_nsl_gethostbyname=no
30527fi
30528rm -f conftest.err conftest.$ac_objext \
30529 conftest$ac_exeext conftest.$ac_ext
30530LIBS=$ac_check_lib_save_LIBS
30531fi
30532echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30533echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
30534if test $ac_cv_lib_nsl_gethostbyname = yes; then
30535 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30536fi
30537
30538 if test $ac_cv_lib_nsl_gethostbyname = no; then
30539 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30540echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
30541if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30542 echo $ECHO_N "(cached) $ECHO_C" >&6
30543else
30544 ac_check_lib_save_LIBS=$LIBS
30545LIBS="-lbsd $LIBS"
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
30553/* Override any gcc2 internal prototype to avoid an error. */
30554#ifdef __cplusplus
30555extern "C"
30556#endif
30557/* We use char because int might match the return type of a gcc2
30558 builtin and then its argument prototype would still apply. */
30559char gethostbyname ();
30560int
30561main ()
30562{
30563gethostbyname ();
30564 ;
30565 return 0;
30566}
30567_ACEOF
30568rm -f conftest.$ac_objext conftest$ac_exeext
30569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30570 (eval $ac_link) 2>conftest.er1
a848cd7e 30571 ac_status=$?
ac1cb8d3
VS
30572 grep -v '^ *+' conftest.er1 >conftest.err
30573 rm -f conftest.er1
30574 cat conftest.err >&5
a848cd7e
SC
30575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30576 (exit $ac_status); } &&
bb9e79c0 30577 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
30578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30579 (eval $ac_try) 2>&5
30580 ac_status=$?
30581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
30582 (exit $ac_status); }; } &&
30583 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30585 (eval $ac_try) 2>&5
30586 ac_status=$?
30587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30588 (exit $ac_status); }; }; then
30589 ac_cv_lib_bsd_gethostbyname=yes
30590else
30591 echo "$as_me: failed program was:" >&5
30592sed 's/^/| /' conftest.$ac_ext >&5
30593
30594ac_cv_lib_bsd_gethostbyname=no
30595fi
ac1cb8d3
VS
30596rm -f conftest.err conftest.$ac_objext \
30597 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30598LIBS=$ac_check_lib_save_LIBS
30599fi
30600echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30601echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
30602if test $ac_cv_lib_bsd_gethostbyname = yes; then
30603 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30604fi
30605
30606 fi
30607 fi
30608
30609 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30610 # socket/setsockopt and other routines are undefined under SCO ODT
30611 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30612 # on later versions), says Simon Leinen: it contains gethostby*
30613 # variants that don't use the name server (or something). -lsocket
30614 # must be given before -lnsl if both are needed. We assume that
30615 # if connect needs -lnsl, so does gethostbyname.
30616 echo "$as_me:$LINENO: checking for connect" >&5
30617echo $ECHO_N "checking for connect... $ECHO_C" >&6
30618if test "${ac_cv_func_connect+set}" = set; then
30619 echo $ECHO_N "(cached) $ECHO_C" >&6
30620else
30621 cat >conftest.$ac_ext <<_ACEOF
30622/* confdefs.h. */
30623_ACEOF
30624cat confdefs.h >>conftest.$ac_ext
30625cat >>conftest.$ac_ext <<_ACEOF
30626/* end confdefs.h. */
ac1cb8d3
VS
30627/* Define connect to an innocuous variant, in case <limits.h> declares connect.
30628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30629#define connect innocuous_connect
30630
a848cd7e
SC
30631/* System header to define __stub macros and hopefully few prototypes,
30632 which can conflict with char connect (); below.
30633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30634 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30635
a848cd7e
SC
30636#ifdef __STDC__
30637# include <limits.h>
30638#else
30639# include <assert.h>
30640#endif
ac1cb8d3
VS
30641
30642#undef connect
30643
a848cd7e
SC
30644/* Override any gcc2 internal prototype to avoid an error. */
30645#ifdef __cplusplus
30646extern "C"
30647{
30648#endif
30649/* We use char because int might match the return type of a gcc2
30650 builtin and then its argument prototype would still apply. */
30651char connect ();
30652/* The GNU C library defines this for functions which it implements
30653 to always fail with ENOSYS. Some functions are actually named
30654 something starting with __ and the normal name is an alias. */
30655#if defined (__stub_connect) || defined (__stub___connect)
30656choke me
30657#else
30658char (*f) () = connect;
30659#endif
30660#ifdef __cplusplus
30661}
30662#endif
30663
30664int
30665main ()
30666{
30667return f != connect;
30668 ;
30669 return 0;
30670}
30671_ACEOF
30672rm -f conftest.$ac_objext conftest$ac_exeext
30673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30674 (eval $ac_link) 2>conftest.er1
a848cd7e 30675 ac_status=$?
ac1cb8d3
VS
30676 grep -v '^ *+' conftest.er1 >conftest.err
30677 rm -f conftest.er1
30678 cat conftest.err >&5
a848cd7e
SC
30679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680 (exit $ac_status); } &&
bb9e79c0 30681 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30683 (eval $ac_try) 2>&5
30684 ac_status=$?
30685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30686 (exit $ac_status); }; } &&
30687 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30689 (eval $ac_try) 2>&5
30690 ac_status=$?
30691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30692 (exit $ac_status); }; }; then
30693 ac_cv_func_connect=yes
30694else
30695 echo "$as_me: failed program was:" >&5
30696sed 's/^/| /' conftest.$ac_ext >&5
30697
30698ac_cv_func_connect=no
30699fi
ac1cb8d3
VS
30700rm -f conftest.err conftest.$ac_objext \
30701 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30702fi
30703echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30704echo "${ECHO_T}$ac_cv_func_connect" >&6
30705
30706 if test $ac_cv_func_connect = no; then
30707 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30708echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
30709if test "${ac_cv_lib_socket_connect+set}" = set; then
30710 echo $ECHO_N "(cached) $ECHO_C" >&6
30711else
30712 ac_check_lib_save_LIBS=$LIBS
30713LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30714cat >conftest.$ac_ext <<_ACEOF
30715/* confdefs.h. */
30716_ACEOF
30717cat confdefs.h >>conftest.$ac_ext
30718cat >>conftest.$ac_ext <<_ACEOF
30719/* end confdefs.h. */
30720
30721/* Override any gcc2 internal prototype to avoid an error. */
30722#ifdef __cplusplus
30723extern "C"
30724#endif
30725/* We use char because int might match the return type of a gcc2
30726 builtin and then its argument prototype would still apply. */
30727char connect ();
30728int
30729main ()
30730{
30731connect ();
30732 ;
30733 return 0;
30734}
30735_ACEOF
30736rm -f conftest.$ac_objext conftest$ac_exeext
30737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30738 (eval $ac_link) 2>conftest.er1
a848cd7e 30739 ac_status=$?
ac1cb8d3
VS
30740 grep -v '^ *+' conftest.er1 >conftest.err
30741 rm -f conftest.er1
30742 cat conftest.err >&5
a848cd7e
SC
30743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30744 (exit $ac_status); } &&
bb9e79c0 30745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30747 (eval $ac_try) 2>&5
30748 ac_status=$?
30749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30750 (exit $ac_status); }; } &&
30751 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30753 (eval $ac_try) 2>&5
30754 ac_status=$?
30755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30756 (exit $ac_status); }; }; then
30757 ac_cv_lib_socket_connect=yes
30758else
30759 echo "$as_me: failed program was:" >&5
30760sed 's/^/| /' conftest.$ac_ext >&5
30761
30762ac_cv_lib_socket_connect=no
30763fi
ac1cb8d3
VS
30764rm -f conftest.err conftest.$ac_objext \
30765 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30766LIBS=$ac_check_lib_save_LIBS
30767fi
30768echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30769echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
30770if test $ac_cv_lib_socket_connect = yes; then
30771 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30772fi
30773
30774 fi
30775
30776 # Guillermo Gomez says -lposix is necessary on A/UX.
30777 echo "$as_me:$LINENO: checking for remove" >&5
30778echo $ECHO_N "checking for remove... $ECHO_C" >&6
30779if test "${ac_cv_func_remove+set}" = set; then
30780 echo $ECHO_N "(cached) $ECHO_C" >&6
30781else
30782 cat >conftest.$ac_ext <<_ACEOF
30783/* confdefs.h. */
30784_ACEOF
30785cat confdefs.h >>conftest.$ac_ext
30786cat >>conftest.$ac_ext <<_ACEOF
30787/* end confdefs.h. */
ac1cb8d3
VS
30788/* Define remove to an innocuous variant, in case <limits.h> declares remove.
30789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30790#define remove innocuous_remove
30791
a848cd7e
SC
30792/* System header to define __stub macros and hopefully few prototypes,
30793 which can conflict with char remove (); below.
30794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30795 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30796
a848cd7e
SC
30797#ifdef __STDC__
30798# include <limits.h>
30799#else
30800# include <assert.h>
30801#endif
ac1cb8d3
VS
30802
30803#undef remove
30804
a848cd7e
SC
30805/* Override any gcc2 internal prototype to avoid an error. */
30806#ifdef __cplusplus
30807extern "C"
30808{
30809#endif
30810/* We use char because int might match the return type of a gcc2
30811 builtin and then its argument prototype would still apply. */
30812char remove ();
30813/* The GNU C library defines this for functions which it implements
30814 to always fail with ENOSYS. Some functions are actually named
30815 something starting with __ and the normal name is an alias. */
30816#if defined (__stub_remove) || defined (__stub___remove)
30817choke me
30818#else
30819char (*f) () = remove;
30820#endif
30821#ifdef __cplusplus
30822}
30823#endif
30824
30825int
30826main ()
30827{
30828return f != remove;
30829 ;
30830 return 0;
30831}
30832_ACEOF
30833rm -f conftest.$ac_objext conftest$ac_exeext
30834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30835 (eval $ac_link) 2>conftest.er1
a848cd7e 30836 ac_status=$?
ac1cb8d3
VS
30837 grep -v '^ *+' conftest.er1 >conftest.err
30838 rm -f conftest.er1
30839 cat conftest.err >&5
a848cd7e
SC
30840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30841 (exit $ac_status); } &&
bb9e79c0 30842 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30844 (eval $ac_try) 2>&5
30845 ac_status=$?
30846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30847 (exit $ac_status); }; } &&
30848 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30850 (eval $ac_try) 2>&5
30851 ac_status=$?
30852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30853 (exit $ac_status); }; }; then
30854 ac_cv_func_remove=yes
30855else
30856 echo "$as_me: failed program was:" >&5
30857sed 's/^/| /' conftest.$ac_ext >&5
30858
30859ac_cv_func_remove=no
30860fi
ac1cb8d3
VS
30861rm -f conftest.err conftest.$ac_objext \
30862 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30863fi
30864echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30865echo "${ECHO_T}$ac_cv_func_remove" >&6
30866
30867 if test $ac_cv_func_remove = no; then
30868 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30869echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
30870if test "${ac_cv_lib_posix_remove+set}" = set; then
30871 echo $ECHO_N "(cached) $ECHO_C" >&6
30872else
30873 ac_check_lib_save_LIBS=$LIBS
30874LIBS="-lposix $LIBS"
30875cat >conftest.$ac_ext <<_ACEOF
30876/* confdefs.h. */
30877_ACEOF
30878cat confdefs.h >>conftest.$ac_ext
30879cat >>conftest.$ac_ext <<_ACEOF
30880/* end confdefs.h. */
30881
30882/* Override any gcc2 internal prototype to avoid an error. */
30883#ifdef __cplusplus
30884extern "C"
30885#endif
30886/* We use char because int might match the return type of a gcc2
30887 builtin and then its argument prototype would still apply. */
30888char remove ();
30889int
30890main ()
30891{
30892remove ();
30893 ;
30894 return 0;
30895}
30896_ACEOF
30897rm -f conftest.$ac_objext conftest$ac_exeext
30898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30899 (eval $ac_link) 2>conftest.er1
a848cd7e 30900 ac_status=$?
ac1cb8d3
VS
30901 grep -v '^ *+' conftest.er1 >conftest.err
30902 rm -f conftest.er1
30903 cat conftest.err >&5
a848cd7e
SC
30904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30905 (exit $ac_status); } &&
bb9e79c0 30906 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30908 (eval $ac_try) 2>&5
30909 ac_status=$?
30910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30911 (exit $ac_status); }; } &&
30912 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30914 (eval $ac_try) 2>&5
30915 ac_status=$?
30916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30917 (exit $ac_status); }; }; then
30918 ac_cv_lib_posix_remove=yes
30919else
30920 echo "$as_me: failed program was:" >&5
30921sed 's/^/| /' conftest.$ac_ext >&5
30922
30923ac_cv_lib_posix_remove=no
30924fi
ac1cb8d3
VS
30925rm -f conftest.err conftest.$ac_objext \
30926 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30927LIBS=$ac_check_lib_save_LIBS
30928fi
30929echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30930echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
30931if test $ac_cv_lib_posix_remove = yes; then
30932 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30933fi
30934
30935 fi
30936
30937 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30938 echo "$as_me:$LINENO: checking for shmat" >&5
30939echo $ECHO_N "checking for shmat... $ECHO_C" >&6
30940if test "${ac_cv_func_shmat+set}" = set; then
30941 echo $ECHO_N "(cached) $ECHO_C" >&6
30942else
30943 cat >conftest.$ac_ext <<_ACEOF
30944/* confdefs.h. */
30945_ACEOF
30946cat confdefs.h >>conftest.$ac_ext
30947cat >>conftest.$ac_ext <<_ACEOF
30948/* end confdefs.h. */
ac1cb8d3
VS
30949/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30951#define shmat innocuous_shmat
30952
a848cd7e
SC
30953/* System header to define __stub macros and hopefully few prototypes,
30954 which can conflict with char shmat (); below.
30955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30956 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30957
a848cd7e
SC
30958#ifdef __STDC__
30959# include <limits.h>
30960#else
30961# include <assert.h>
30962#endif
ac1cb8d3
VS
30963
30964#undef shmat
30965
a848cd7e
SC
30966/* Override any gcc2 internal prototype to avoid an error. */
30967#ifdef __cplusplus
30968extern "C"
30969{
30970#endif
30971/* We use char because int might match the return type of a gcc2
30972 builtin and then its argument prototype would still apply. */
30973char shmat ();
30974/* The GNU C library defines this for functions which it implements
30975 to always fail with ENOSYS. Some functions are actually named
30976 something starting with __ and the normal name is an alias. */
30977#if defined (__stub_shmat) || defined (__stub___shmat)
30978choke me
30979#else
30980char (*f) () = shmat;
30981#endif
30982#ifdef __cplusplus
30983}
30984#endif
30985
30986int
30987main ()
30988{
30989return f != shmat;
30990 ;
30991 return 0;
30992}
30993_ACEOF
30994rm -f conftest.$ac_objext conftest$ac_exeext
30995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30996 (eval $ac_link) 2>conftest.er1
a848cd7e 30997 ac_status=$?
ac1cb8d3
VS
30998 grep -v '^ *+' conftest.er1 >conftest.err
30999 rm -f conftest.er1
31000 cat conftest.err >&5
a848cd7e
SC
31001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31002 (exit $ac_status); } &&
bb9e79c0 31003 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31005 (eval $ac_try) 2>&5
31006 ac_status=$?
31007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31008 (exit $ac_status); }; } &&
31009 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31011 (eval $ac_try) 2>&5
31012 ac_status=$?
31013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31014 (exit $ac_status); }; }; then
31015 ac_cv_func_shmat=yes
31016else
31017 echo "$as_me: failed program was:" >&5
31018sed 's/^/| /' conftest.$ac_ext >&5
31019
31020ac_cv_func_shmat=no
31021fi
ac1cb8d3
VS
31022rm -f conftest.err conftest.$ac_objext \
31023 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31024fi
31025echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
31026echo "${ECHO_T}$ac_cv_func_shmat" >&6
31027
31028 if test $ac_cv_func_shmat = no; then
31029 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
31030echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
31031if test "${ac_cv_lib_ipc_shmat+set}" = set; then
31032 echo $ECHO_N "(cached) $ECHO_C" >&6
31033else
31034 ac_check_lib_save_LIBS=$LIBS
31035LIBS="-lipc $LIBS"
31036cat >conftest.$ac_ext <<_ACEOF
31037/* confdefs.h. */
31038_ACEOF
31039cat confdefs.h >>conftest.$ac_ext
31040cat >>conftest.$ac_ext <<_ACEOF
31041/* end confdefs.h. */
31042
31043/* Override any gcc2 internal prototype to avoid an error. */
31044#ifdef __cplusplus
31045extern "C"
31046#endif
31047/* We use char because int might match the return type of a gcc2
31048 builtin and then its argument prototype would still apply. */
31049char shmat ();
31050int
31051main ()
31052{
31053shmat ();
31054 ;
31055 return 0;
31056}
31057_ACEOF
31058rm -f conftest.$ac_objext conftest$ac_exeext
31059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31060 (eval $ac_link) 2>conftest.er1
a848cd7e 31061 ac_status=$?
ac1cb8d3
VS
31062 grep -v '^ *+' conftest.er1 >conftest.err
31063 rm -f conftest.er1
31064 cat conftest.err >&5
a848cd7e
SC
31065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31066 (exit $ac_status); } &&
bb9e79c0 31067 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31069 (eval $ac_try) 2>&5
31070 ac_status=$?
31071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31072 (exit $ac_status); }; } &&
31073 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31075 (eval $ac_try) 2>&5
31076 ac_status=$?
31077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31078 (exit $ac_status); }; }; then
31079 ac_cv_lib_ipc_shmat=yes
31080else
31081 echo "$as_me: failed program was:" >&5
31082sed 's/^/| /' conftest.$ac_ext >&5
31083
31084ac_cv_lib_ipc_shmat=no
31085fi
ac1cb8d3
VS
31086rm -f conftest.err conftest.$ac_objext \
31087 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31088LIBS=$ac_check_lib_save_LIBS
31089fi
31090echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31091echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
31092if test $ac_cv_lib_ipc_shmat = yes; then
31093 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31094fi
31095
31096 fi
31097 fi
31098
31099 # Check for libraries that X11R6 Xt/Xaw programs need.
31100 ac_save_LDFLAGS=$LDFLAGS
31101 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31102 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31103 # check for ICE first), but we must link in the order -lSM -lICE or
31104 # we get undefined symbols. So assume we have SM if we have ICE.
31105 # These have to be linked with before -lX11, unlike the other
31106 # libraries we check for below, so use a different variable.
31107 # John Interrante, Karl Berry
31108 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31109echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
31110if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31111 echo $ECHO_N "(cached) $ECHO_C" >&6
31112else
31113 ac_check_lib_save_LIBS=$LIBS
31114LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31115cat >conftest.$ac_ext <<_ACEOF
31116/* confdefs.h. */
31117_ACEOF
31118cat confdefs.h >>conftest.$ac_ext
31119cat >>conftest.$ac_ext <<_ACEOF
31120/* end confdefs.h. */
31121
31122/* Override any gcc2 internal prototype to avoid an error. */
31123#ifdef __cplusplus
31124extern "C"
31125#endif
31126/* We use char because int might match the return type of a gcc2
31127 builtin and then its argument prototype would still apply. */
31128char IceConnectionNumber ();
31129int
31130main ()
31131{
31132IceConnectionNumber ();
31133 ;
31134 return 0;
31135}
31136_ACEOF
31137rm -f conftest.$ac_objext conftest$ac_exeext
31138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31139 (eval $ac_link) 2>conftest.er1
a848cd7e 31140 ac_status=$?
ac1cb8d3
VS
31141 grep -v '^ *+' conftest.er1 >conftest.err
31142 rm -f conftest.er1
31143 cat conftest.err >&5
a848cd7e
SC
31144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31145 (exit $ac_status); } &&
bb9e79c0 31146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31148 (eval $ac_try) 2>&5
31149 ac_status=$?
31150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31151 (exit $ac_status); }; } &&
31152 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31154 (eval $ac_try) 2>&5
31155 ac_status=$?
31156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31157 (exit $ac_status); }; }; then
31158 ac_cv_lib_ICE_IceConnectionNumber=yes
31159else
31160 echo "$as_me: failed program was:" >&5
31161sed 's/^/| /' conftest.$ac_ext >&5
31162
31163ac_cv_lib_ICE_IceConnectionNumber=no
31164fi
ac1cb8d3
VS
31165rm -f conftest.err conftest.$ac_objext \
31166 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31167LIBS=$ac_check_lib_save_LIBS
31168fi
31169echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31170echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
31171if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
31172 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31173fi
31174
31175 LDFLAGS=$ac_save_LDFLAGS
31176
31177fi
31178
31179
31180 if test "$no_x" = "yes"; then
89d90d6d
VZ
31181 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
31182echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
31183 { (exit 1); exit 1; }; }
a848cd7e
SC
31184 fi
31185
74b84332
VS
31186 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
31187 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
31188 AFMINSTALL=afminstall
31189 COMPILED_X_PROGRAM=0
31190
74b84332
VS
31191 fi
31192
31193 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
31194 if test "$wxUSE_NANOX" = "yes"; then
31195 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
31196echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
31197 if test "x$MICROWIN" = x ; then
31198 echo "$as_me:$LINENO: result: not found" >&5
31199echo "${ECHO_T}not found" >&6
31200 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
31201echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
31202 { (exit 1); exit 1; }; }
31203 else
31204 echo "$as_me:$LINENO: result: $MICROWIN" >&5
31205echo "${ECHO_T}$MICROWIN" >&6
31206 cat >>confdefs.h <<\_ACEOF
31207#define wxUSE_NANOX 1
31208_ACEOF
31209
31210 fi
31211 fi
31212
31213 if test "$wxUSE_UNICODE" = "yes"; then
31214
479c790c
VZ
31215
31216if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31217 if test -n "$ac_tool_prefix"; then
31218 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31219set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31220echo "$as_me:$LINENO: checking for $ac_word" >&5
31221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31222if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31223 echo $ECHO_N "(cached) $ECHO_C" >&6
31224else
31225 case $PKG_CONFIG in
31226 [\\/]* | ?:[\\/]*)
31227 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31228 ;;
31229 *)
31230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31231for as_dir in $PATH
31232do
31233 IFS=$as_save_IFS
31234 test -z "$as_dir" && as_dir=.
31235 for ac_exec_ext in '' $ac_executable_extensions; do
31236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31237 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31239 break 2
31240 fi
31241done
31242done
31243
31244 ;;
31245esac
31246fi
31247PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31248
31249if test -n "$PKG_CONFIG"; then
31250 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31251echo "${ECHO_T}$PKG_CONFIG" >&6
31252else
31253 echo "$as_me:$LINENO: result: no" >&5
31254echo "${ECHO_T}no" >&6
31255fi
31256
31257fi
31258if test -z "$ac_cv_path_PKG_CONFIG"; then
31259 ac_pt_PKG_CONFIG=$PKG_CONFIG
31260 # Extract the first word of "pkg-config", so it can be a program name with args.
31261set dummy pkg-config; ac_word=$2
31262echo "$as_me:$LINENO: checking for $ac_word" >&5
31263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31264if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31265 echo $ECHO_N "(cached) $ECHO_C" >&6
31266else
31267 case $ac_pt_PKG_CONFIG in
31268 [\\/]* | ?:[\\/]*)
31269 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31270 ;;
31271 *)
31272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31273for as_dir in $PATH
31274do
31275 IFS=$as_save_IFS
31276 test -z "$as_dir" && as_dir=.
31277 for ac_exec_ext in '' $ac_executable_extensions; do
31278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31279 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31281 break 2
31282 fi
31283done
31284done
31285
31286 ;;
31287esac
31288fi
31289ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31290
31291if test -n "$ac_pt_PKG_CONFIG"; then
31292 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31293echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
31294else
31295 echo "$as_me:$LINENO: result: no" >&5
31296echo "${ECHO_T}no" >&6
31297fi
31298
31299 PKG_CONFIG=$ac_pt_PKG_CONFIG
31300else
31301 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31302fi
31303
31304fi
31305if test -n "$PKG_CONFIG"; then
31306 _pkg_min_version=0.9.0
31307 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31308echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
31309 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31310 echo "$as_me:$LINENO: result: yes" >&5
31311echo "${ECHO_T}yes" >&6
31312 else
31313 echo "$as_me:$LINENO: result: no" >&5
31314echo "${ECHO_T}no" >&6
31315 PKG_CONFIG=""
31316 fi
31317
31318fi
31319
31320
3ecd9f92
MW
31321pkg_failed=no
31322echo "$as_me:$LINENO: checking for PANGOX" >&5
31323echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6
a848cd7e 31324
3ecd9f92
MW
31325if test -n "$PKG_CONFIG"; then
31326 if test -n "$PANGOX_CFLAGS"; then
31327 pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
31328 else
31329 if test -n "$PKG_CONFIG" && \
31330 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31331 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31332 ac_status=$?
31333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31334 (exit $ac_status); }; then
31335 pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
31336else
31337 pkg_failed=yes
31338fi
31339 fi
31340else
31341 pkg_failed=untried
31342fi
31343if test -n "$PKG_CONFIG"; then
31344 if test -n "$PANGOX_LIBS"; then
31345 pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
31346 else
31347 if test -n "$PKG_CONFIG" && \
31348 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31349 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31350 ac_status=$?
31351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31352 (exit $ac_status); }; then
31353 pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
31354else
31355 pkg_failed=yes
31356fi
31357 fi
31358else
31359 pkg_failed=untried
31360fi
31361
31362
31363
31364if test $pkg_failed = yes; then
31365
31366if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31367 _pkg_short_errors_supported=yes
31368else
31369 _pkg_short_errors_supported=no
31370fi
31371 if test $_pkg_short_errors_supported = yes; then
31372 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
31373 else
31374 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
a848cd7e 31375 fi
3ecd9f92
MW
31376 # Put the nasty error message in config.log where it belongs
31377 echo "$PANGOX_PKG_ERRORS" >&5
a848cd7e
SC
31378
31379
479c790c 31380 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
3ecd9f92
MW
31381echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31382 { (exit 1); exit 1; }; }
a848cd7e 31383
a848cd7e 31384
3ecd9f92 31385elif test $pkg_failed = untried; then
a848cd7e 31386
479c790c 31387 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
3ecd9f92
MW
31388echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31389 { (exit 1); exit 1; }; }
31390
31391
31392else
31393 PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
31394 PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
31395 echo "$as_me:$LINENO: result: yes" >&5
31396echo "${ECHO_T}yes" >&6
31397
479c790c
VZ
31398 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31399 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
3ecd9f92
MW
31400
31401fi
31402
31403pkg_failed=no
31404echo "$as_me:$LINENO: checking for PANGOFT2" >&5
31405echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6
31406
31407if test -n "$PKG_CONFIG"; then
31408 if test -n "$PANGOFT2_CFLAGS"; then
31409 pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
31410 else
31411 if test -n "$PKG_CONFIG" && \
31412 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31413 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31414 ac_status=$?
31415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31416 (exit $ac_status); }; then
31417 pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
31418else
31419 pkg_failed=yes
31420fi
31421 fi
31422else
31423 pkg_failed=untried
31424fi
31425if test -n "$PKG_CONFIG"; then
31426 if test -n "$PANGOFT2_LIBS"; then
31427 pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
31428 else
31429 if test -n "$PKG_CONFIG" && \
31430 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31431 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31432 ac_status=$?
31433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31434 (exit $ac_status); }; then
31435 pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
31436else
31437 pkg_failed=yes
31438fi
31439 fi
31440else
31441 pkg_failed=untried
31442fi
31443
31444
31445
31446if test $pkg_failed = yes; then
31447
31448if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31449 _pkg_short_errors_supported=yes
31450else
31451 _pkg_short_errors_supported=no
31452fi
31453 if test $_pkg_short_errors_supported = yes; then
31454 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
31455 else
31456 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
31457 fi
31458 # Put the nasty error message in config.log where it belongs
31459 echo "$PANGOFT2_PKG_ERRORS" >&5
a848cd7e 31460
a848cd7e 31461
479c790c 31462 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
a848cd7e 31463echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
479c790c 31464 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e
SC
31465
31466
3ecd9f92 31467elif test $pkg_failed = untried; then
a848cd7e 31468
479c790c 31469 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
3ecd9f92 31470echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
479c790c 31471 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e 31472
a848cd7e 31473
a848cd7e 31474else
3ecd9f92
MW
31475 PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
31476 PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
31477 echo "$as_me:$LINENO: result: yes" >&5
31478echo "${ECHO_T}yes" >&6
31479
479c790c
VZ
31480 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
31481 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
a848cd7e 31482
a848cd7e 31483fi
3ecd9f92
MW
31484
31485pkg_failed=no
31486echo "$as_me:$LINENO: checking for PANGOXFT" >&5
31487echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6
a848cd7e
SC
31488
31489if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
31490 if test -n "$PANGOXFT_CFLAGS"; then
31491 pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
31492 else
31493 if test -n "$PKG_CONFIG" && \
31494 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31495 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31496 ac_status=$?
31497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31498 (exit $ac_status); }; then
31499 pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
a848cd7e 31500else
3ecd9f92
MW
31501 pkg_failed=yes
31502fi
31503 fi
31504else
31505 pkg_failed=untried
31506fi
31507if test -n "$PKG_CONFIG"; then
31508 if test -n "$PANGOXFT_LIBS"; then
31509 pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
31510 else
31511 if test -n "$PKG_CONFIG" && \
31512 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31513 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31514 ac_status=$?
31515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31516 (exit $ac_status); }; then
31517 pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
31518else
31519 pkg_failed=yes
31520fi
31521 fi
31522else
31523 pkg_failed=untried
a848cd7e
SC
31524fi
31525
a848cd7e 31526
a848cd7e 31527
3ecd9f92 31528if test $pkg_failed = yes; then
a848cd7e 31529
3ecd9f92
MW
31530if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31531 _pkg_short_errors_supported=yes
31532else
31533 _pkg_short_errors_supported=no
31534fi
31535 if test $_pkg_short_errors_supported = yes; then
31536 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
31537 else
31538 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
a848cd7e 31539 fi
3ecd9f92
MW
31540 # Put the nasty error message in config.log where it belongs
31541 echo "$PANGOXFT_PKG_ERRORS" >&5
a848cd7e
SC
31542
31543
479c790c 31544 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
3ecd9f92
MW
31545echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31546
a848cd7e 31547
3ecd9f92 31548elif test $pkg_failed = untried; then
a848cd7e 31549
479c790c 31550 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
3ecd9f92
MW
31551echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31552
31553
31554else
31555 PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
31556 PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
31557 echo "$as_me:$LINENO: result: yes" >&5
31558echo "${ECHO_T}yes" >&6
a848cd7e 31559
479c790c 31560 cat >>confdefs.h <<\_ACEOF
4ae1af05
MB
31561#define HAVE_PANGO_XFT 1
31562_ACEOF
31563
479c790c
VZ
31564 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
31565 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
a848cd7e 31566
3ecd9f92 31567fi
479c790c
VZ
31568 save_CXXFLAGS="$CXXFLAGS"
31569 save_LIBS="$LIBS"
31570 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31571 LIBS="$LIBS $PANGOX_LIBS"
304205f1
VS
31572
31573for ac_func in pango_font_family_is_monospace
31574do
31575as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31576echo "$as_me:$LINENO: checking for $ac_func" >&5
31577echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31578if eval "test \"\${$as_ac_var+set}\" = set"; then
31579 echo $ECHO_N "(cached) $ECHO_C" >&6
31580else
31581 cat >conftest.$ac_ext <<_ACEOF
31582/* confdefs.h. */
31583_ACEOF
31584cat confdefs.h >>conftest.$ac_ext
31585cat >>conftest.$ac_ext <<_ACEOF
31586/* end confdefs.h. */
31587/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31589#define $ac_func innocuous_$ac_func
31590
31591/* System header to define __stub macros and hopefully few prototypes,
31592 which can conflict with char $ac_func (); below.
31593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31594 <limits.h> exists even on freestanding compilers. */
31595
31596#ifdef __STDC__
31597# include <limits.h>
31598#else
31599# include <assert.h>
31600#endif
31601
31602#undef $ac_func
31603
31604/* Override any gcc2 internal prototype to avoid an error. */
31605#ifdef __cplusplus
31606extern "C"
31607{
31608#endif
31609/* We use char because int might match the return type of a gcc2
31610 builtin and then its argument prototype would still apply. */
31611char $ac_func ();
31612/* The GNU C library defines this for functions which it implements
31613 to always fail with ENOSYS. Some functions are actually named
31614 something starting with __ and the normal name is an alias. */
31615#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31616choke me
31617#else
31618char (*f) () = $ac_func;
31619#endif
31620#ifdef __cplusplus
31621}
31622#endif
31623
31624int
31625main ()
31626{
31627return f != $ac_func;
31628 ;
31629 return 0;
31630}
31631_ACEOF
31632rm -f conftest.$ac_objext conftest$ac_exeext
31633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31634 (eval $ac_link) 2>conftest.er1
31635 ac_status=$?
31636 grep -v '^ *+' conftest.er1 >conftest.err
31637 rm -f conftest.er1
31638 cat conftest.err >&5
31639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31640 (exit $ac_status); } &&
bb9e79c0 31641 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
304205f1
VS
31642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31643 (eval $ac_try) 2>&5
31644 ac_status=$?
31645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31646 (exit $ac_status); }; } &&
31647 { ac_try='test -s conftest$ac_exeext'
31648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31649 (eval $ac_try) 2>&5
31650 ac_status=$?
31651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31652 (exit $ac_status); }; }; then
31653 eval "$as_ac_var=yes"
31654else
31655 echo "$as_me: failed program was:" >&5
31656sed 's/^/| /' conftest.$ac_ext >&5
31657
31658eval "$as_ac_var=no"
31659fi
31660rm -f conftest.err conftest.$ac_objext \
31661 conftest$ac_exeext conftest.$ac_ext
31662fi
31663echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31664echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31665if test `eval echo '${'$as_ac_var'}'` = yes; then
31666 cat >>confdefs.h <<_ACEOF
31667#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31668_ACEOF
31669
31670fi
31671done
31672
479c790c
VZ
31673 CXXFLAGS="$save_CXXFLAGS"
31674 LIBS="$save_LIBS"
a848cd7e
SC
31675 fi
31676
31677 wxUSE_UNIVERSAL="yes"
31678
31679 if test "$wxUSE_NANOX" = "yes"; then
31680 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31681 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"
31682 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31683 else
31684 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31685 fi
31686
a848cd7e
SC
31687 TOOLKIT=X11
31688 GUIDIST=X11_DIST
31689 fi
31690
31691 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
31692 if test "$wxUSE_UNICODE" = "yes"; then
31693 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
31694echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
31695 { (exit 1); exit 1; }; }
31696 fi
31697
74b84332
VS
31698 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31699echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 31700
74b84332
VS
31701ac_find_includes=
31702for ac_dir in $SEARCH_INCLUDE /usr/include;
31703 do
31704 if test -f "$ac_dir/Xm/Xm.h"; then
31705 ac_find_includes=$ac_dir
31706 break
31707 fi
31708 done
a848cd7e 31709
74b84332
VS
31710 if test "$ac_find_includes" != "" ; then
31711 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31712echo "${ECHO_T}found in $ac_find_includes" >&6
31713
31714 if test "x$ac_find_includes" = "x/usr/include"; then
31715 ac_path_to_include=""
31716 else
31717 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31718 result=$?
31719 if test $result = 0; then
31720 ac_path_to_include=""
31721 else
31722 ac_path_to_include=" -I$ac_find_includes"
31723 fi
a848cd7e
SC
31724 fi
31725
74b84332
VS
31726 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31727 else
e56f4f9e
VZ
31728 save_CXXFLAGS=$CXXFLAGS
31729 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
e051b34e 31730
74b84332 31731 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31732/* confdefs.h. */
31733_ACEOF
31734cat confdefs.h >>conftest.$ac_ext
31735cat >>conftest.$ac_ext <<_ACEOF
31736/* end confdefs.h. */
31737
74b84332
VS
31738 #include <Xm/Xm.h>
31739
a848cd7e
SC
31740int
31741main ()
31742{
31743
74b84332
VS
31744 int version;
31745 version = xmUseVersion;
31746
a848cd7e
SC
31747 ;
31748 return 0;
31749}
31750_ACEOF
74b84332
VS
31751rm -f conftest.$ac_objext
31752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31753 (eval $ac_compile) 2>conftest.er1
a848cd7e 31754 ac_status=$?
ac1cb8d3
VS
31755 grep -v '^ *+' conftest.er1 >conftest.err
31756 rm -f conftest.er1
31757 cat conftest.err >&5
a848cd7e
SC
31758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31759 (exit $ac_status); } &&
bb9e79c0 31760 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31762 (eval $ac_try) 2>&5
31763 ac_status=$?
31764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31765 (exit $ac_status); }; } &&
74b84332 31766 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31768 (eval $ac_try) 2>&5
31769 ac_status=$?
31770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31771 (exit $ac_status); }; }; then
74b84332
VS
31772
31773 echo "$as_me:$LINENO: result: found in default search path" >&5
31774echo "${ECHO_T}found in default search path" >&6
31775 COMPILED_X_PROGRAM=1
31776
a848cd7e
SC
31777else
31778 echo "$as_me: failed program was:" >&5
31779sed 's/^/| /' conftest.$ac_ext >&5
31780
a848cd7e 31781
74b84332
VS
31782 echo "$as_me:$LINENO: result: no" >&5
31783echo "${ECHO_T}no" >&6
e051b34e
MW
31784 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31785echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 31786 { (exit 1); exit 1; }; }
a848cd7e 31787
a848cd7e 31788
a848cd7e 31789fi
74b84332 31790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 31791
e56f4f9e 31792 CXXFLAGS=$save_CXXFLAGS
74b84332
VS
31793 fi
31794
0ad5d837
VZ
31795
31796 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
31797echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
31798
0ad5d837
VZ
31799 ac_find_libraries=
31800 for ac_dir in $SEARCH_LIB;
74b84332 31801 do
3eca31dc 31802 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
31803 if test -f "$ac_dir/libXm.$ac_extension"; then
31804 ac_find_libraries=$ac_dir
31805 break 2
a848cd7e 31806 fi
74b84332
VS
31807 done
31808 done
a848cd7e 31809
0ad5d837
VZ
31810
31811 if test "x$ac_find_libraries" != "x" ; then
31812 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31813echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 31814
74b84332 31815
0ad5d837 31816 if test "$ac_find_libraries" = "default location"; then
74b84332 31817 ac_path_to_link=""
a848cd7e 31818 else
0ad5d837
VZ
31819 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31820 result=$?
31821 if test $result = 0; then
31822 ac_path_to_link=""
31823 else
31824 ac_path_to_link=" -L$ac_find_libraries"
31825 fi
74b84332
VS
31826 fi
31827
0ad5d837
VZ
31828 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31829 else
e56f4f9e
VZ
31830 save_CXXFLAGS=$CXXFLAGS
31831 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
6f9cf1e6
MW
31832 save_LIBS="$LIBS"
31833 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 31834
0ad5d837 31835 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31836/* confdefs.h. */
31837_ACEOF
31838cat confdefs.h >>conftest.$ac_ext
31839cat >>conftest.$ac_ext <<_ACEOF
31840/* end confdefs.h. */
31841
0ad5d837 31842 #include <Xm/Xm.h>
74b84332 31843
a848cd7e
SC
31844int
31845main ()
31846{
74b84332 31847
0ad5d837
VZ
31848 int version;
31849 version = xmUseVersion;
74b84332 31850
a848cd7e
SC
31851 ;
31852 return 0;
31853}
31854_ACEOF
0ad5d837
VZ
31855rm -f conftest.$ac_objext conftest$ac_exeext
31856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31857 (eval $ac_link) 2>conftest.er1
a848cd7e 31858 ac_status=$?
ac1cb8d3
VS
31859 grep -v '^ *+' conftest.er1 >conftest.err
31860 rm -f conftest.er1
31861 cat conftest.err >&5
a848cd7e
SC
31862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31863 (exit $ac_status); } &&
bb9e79c0 31864 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31866 (eval $ac_try) 2>&5
31867 ac_status=$?
31868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31869 (exit $ac_status); }; } &&
0ad5d837 31870 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31872 (eval $ac_try) 2>&5
31873 ac_status=$?
31874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31875 (exit $ac_status); }; }; then
74b84332 31876
0ad5d837 31877 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 31878echo "${ECHO_T}found in default search path" >&6
0ad5d837 31879 COMPILED_X_PROGRAM=1
74b84332 31880
a848cd7e
SC
31881else
31882 echo "$as_me: failed program was:" >&5
31883sed 's/^/| /' conftest.$ac_ext >&5
31884
74b84332 31885
6f9cf1e6 31886 echo "$as_me:$LINENO: result: no" >&5
74b84332 31887echo "${ECHO_T}no" >&6
6f9cf1e6 31888 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
31889echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
31890 { (exit 1); exit 1; }; }
31891
31892
31893fi
0ad5d837
VZ
31894rm -f conftest.err conftest.$ac_objext \
31895 conftest$ac_exeext conftest.$ac_ext
74b84332 31896
e56f4f9e 31897 CXXFLAGS=$save_CXXFLAGS
6f9cf1e6 31898 LIBS="$save_LIBS"
74b84332
VS
31899 fi
31900
31901 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
31902echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
31903 libp_link=""
31904 libsm_ice_link=""
31905 libs_found=0
31906 for libp in "" " -lXp"; do
31907 if test "$libs_found" = "0"; then
31908 for libsm_ice in "" " -lSM -lICE"; do
31909 if test "$libs_found" = "0"; then
31910 save_LIBS="$LIBS"
31911 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
e56f4f9e
VZ
31912 save_CXXFLAGS=$CXXFLAGS
31913 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
74b84332
VS
31914
31915 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31916/* confdefs.h. */
31917_ACEOF
31918cat confdefs.h >>conftest.$ac_ext
31919cat >>conftest.$ac_ext <<_ACEOF
31920/* end confdefs.h. */
31921
74b84332
VS
31922 #include <Xm/Xm.h>
31923 #include <Xm/List.h>
31924
a848cd7e
SC
31925int
31926main ()
31927{
74b84332
VS
31928
31929 XmString string = NULL;
31930 Widget w = NULL;
31931 int position = 0;
31932 XmListAddItem(w, string, position);
31933
a848cd7e
SC
31934 ;
31935 return 0;
31936}
31937_ACEOF
31938rm -f conftest.$ac_objext conftest$ac_exeext
31939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31940 (eval $ac_link) 2>conftest.er1
a848cd7e 31941 ac_status=$?
ac1cb8d3
VS
31942 grep -v '^ *+' conftest.er1 >conftest.err
31943 rm -f conftest.er1
31944 cat conftest.err >&5
a848cd7e
SC
31945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946 (exit $ac_status); } &&
bb9e79c0 31947 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31949 (eval $ac_try) 2>&5
31950 ac_status=$?
31951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31952 (exit $ac_status); }; } &&
31953 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31955 (eval $ac_try) 2>&5
31956 ac_status=$?
31957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31958 (exit $ac_status); }; }; then
31959
31960 libp_link="$libp"
31961 libsm_ice_link="$libsm_ice"
31962 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
31963echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
31964 libs_found=1
31965
31966else
31967 echo "$as_me: failed program was:" >&5
31968sed 's/^/| /' conftest.$ac_ext >&5
31969
31970
31971
31972fi
ac1cb8d3
VS
31973rm -f conftest.err conftest.$ac_objext \
31974 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31975
31976 LIBS="$save_LIBS"
e56f4f9e 31977 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
31978 fi
31979 done
31980 fi
31981 done
31982
31983 if test "$libs_found" = "0"; then
31984 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
31985echo "${ECHO_T}can't find the right libraries" >&6
31986 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
31987echo "$as_me: error: can't link a simple motif program" >&2;}
31988 { (exit 1); exit 1; }; }
31989 fi
31990
62fa8b3a
MW
31991 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
31992echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
31993if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
31994 echo $ECHO_N "(cached) $ECHO_C" >&6
31995else
31996 ac_check_lib_save_LIBS=$LIBS
31997LIBS="-lSgm $LIBS"
31998cat >conftest.$ac_ext <<_ACEOF
31999/* confdefs.h. */
32000_ACEOF
32001cat confdefs.h >>conftest.$ac_ext
32002cat >>conftest.$ac_ext <<_ACEOF
32003/* end confdefs.h. */
32004
32005/* Override any gcc2 internal prototype to avoid an error. */
32006#ifdef __cplusplus
32007extern "C"
32008#endif
32009/* We use char because int might match the return type of a gcc2
32010 builtin and then its argument prototype would still apply. */
32011char SgCreateList ();
32012int
32013main ()
32014{
32015SgCreateList ();
32016 ;
32017 return 0;
32018}
32019_ACEOF
32020rm -f conftest.$ac_objext conftest$ac_exeext
32021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32022 (eval $ac_link) 2>conftest.er1
32023 ac_status=$?
32024 grep -v '^ *+' conftest.er1 >conftest.err
32025 rm -f conftest.er1
32026 cat conftest.err >&5
32027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32028 (exit $ac_status); } &&
bb9e79c0 32029 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
32030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32031 (eval $ac_try) 2>&5
32032 ac_status=$?
32033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32034 (exit $ac_status); }; } &&
32035 { ac_try='test -s conftest$ac_exeext'
32036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32037 (eval $ac_try) 2>&5
32038 ac_status=$?
32039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32040 (exit $ac_status); }; }; then
32041 ac_cv_lib_Sgm_SgCreateList=yes
32042else
32043 echo "$as_me: failed program was:" >&5
32044sed 's/^/| /' conftest.$ac_ext >&5
32045
32046ac_cv_lib_Sgm_SgCreateList=no
32047fi
32048rm -f conftest.err conftest.$ac_objext \
32049 conftest$ac_exeext conftest.$ac_ext
32050LIBS=$ac_check_lib_save_LIBS
32051fi
32052echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
32053echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
32054if test $ac_cv_lib_Sgm_SgCreateList = yes; then
32055 libsgm_link=" -lSgm"
32056fi
32057
32058
e56f4f9e
VZ
32059 save_CXXFLAGS=$CXXFLAGS
32060 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
0ad5d837 32061
a848cd7e
SC
32062 echo "$as_me:$LINENO: checking for Motif 2" >&5
32063echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
32064if test "${wx_cv_lib_motif2+set}" = set; then
32065 echo $ECHO_N "(cached) $ECHO_C" >&6
32066else
32067 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
32068/* confdefs.h. */
32069_ACEOF
32070cat confdefs.h >>conftest.$ac_ext
32071cat >>conftest.$ac_ext <<_ACEOF
32072/* end confdefs.h. */
32073
0ad5d837 32074 #include <Xm/Xm.h>
a848cd7e
SC
32075
32076int
32077main ()
32078{
32079
0ad5d837
VZ
32080 #if XmVersion < 2000
32081 Not Motif 2
32082 #endif
a848cd7e
SC
32083
32084 ;
32085 return 0;
32086}
32087_ACEOF
32088rm -f conftest.$ac_objext
32089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32090 (eval $ac_compile) 2>conftest.er1
a848cd7e 32091 ac_status=$?
ac1cb8d3
VS
32092 grep -v '^ *+' conftest.er1 >conftest.err
32093 rm -f conftest.er1
32094 cat conftest.err >&5
a848cd7e
SC
32095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32096 (exit $ac_status); } &&
bb9e79c0 32097 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32099 (eval $ac_try) 2>&5
32100 ac_status=$?
32101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32102 (exit $ac_status); }; } &&
32103 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32105 (eval $ac_try) 2>&5
32106 ac_status=$?
32107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32108 (exit $ac_status); }; }; then
0ad5d837 32109 wx_cv_lib_motif2="yes"
a848cd7e
SC
32110else
32111 echo "$as_me: failed program was:" >&5
32112sed 's/^/| /' conftest.$ac_ext >&5
32113
0ad5d837
VZ
32114wx_cv_lib_motif2="no"
32115fi
32116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32117fi
32118echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
32119echo "${ECHO_T}$wx_cv_lib_motif2" >&6
32120 if test "$wx_cv_lib_motif2" = "yes"; then
32121 cat >>confdefs.h <<\_ACEOF
32122#define __WXMOTIF20__ 1
32123_ACEOF
a848cd7e 32124
0ad5d837
VZ
32125 else
32126 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
32127#define __WXMOTIF20__ 0
32128_ACEOF
32129
0ad5d837 32130 fi
2113bc77
MW
32131
32132 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
32133echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
32134if test "${wx_cv_lib_lesstif+set}" = set; then
32135 echo $ECHO_N "(cached) $ECHO_C" >&6
32136else
32137 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
32138/* confdefs.h. */
32139_ACEOF
32140cat confdefs.h >>conftest.$ac_ext
32141cat >>conftest.$ac_ext <<_ACEOF
32142/* end confdefs.h. */
32143
0ad5d837 32144 #include <Xm/Xm.h>
2113bc77
MW
32145
32146int
32147main ()
32148{
32149
0ad5d837
VZ
32150 #if !defined(LesstifVersion) || LesstifVersion <= 0
32151 Not Lesstif
32152 #endif
2113bc77
MW
32153
32154 ;
32155 return 0;
32156}
32157_ACEOF
32158rm -f conftest.$ac_objext
32159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32160 (eval $ac_compile) 2>conftest.er1
32161 ac_status=$?
32162 grep -v '^ *+' conftest.er1 >conftest.err
32163 rm -f conftest.er1
32164 cat conftest.err >&5
32165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32166 (exit $ac_status); } &&
bb9e79c0 32167 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2113bc77
MW
32168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32169 (eval $ac_try) 2>&5
32170 ac_status=$?
32171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172 (exit $ac_status); }; } &&
32173 { ac_try='test -s conftest.$ac_objext'
32174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32175 (eval $ac_try) 2>&5
32176 ac_status=$?
32177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32178 (exit $ac_status); }; }; then
0ad5d837 32179 wx_cv_lib_lesstif="yes"
2113bc77
MW
32180else
32181 echo "$as_me: failed program was:" >&5
32182sed 's/^/| /' conftest.$ac_ext >&5
32183
0ad5d837
VZ
32184wx_cv_lib_lesstif="no"
32185fi
32186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 32187
0ad5d837
VZ
32188fi
32189echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
32190echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
32191 if test "$wx_cv_lib_lesstif" = "yes"; then
32192 cat >>confdefs.h <<\_ACEOF
32193#define __WXLESSTIF__ 1
32194_ACEOF
32195
32196 else
32197 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
32198#define __WXLESSTIF__ 0
32199_ACEOF
32200
0ad5d837 32201 fi
2113bc77 32202
e56f4f9e 32203 CXXFLAGS=$save_CXXFLAGS
a848cd7e 32204
62fa8b3a 32205 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
32206 TOOLKIT=MOTIF
32207 GUIDIST=MOTIF_DIST
32208 fi
32209
74b84332 32210 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
32211 if test "$wxUSE_LIBXPM" = "sys"; then
32212 echo "$as_me:$LINENO: checking for Xpm library" >&5
32213echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
32214
0ad5d837
VZ
32215 ac_find_libraries=
32216 for ac_dir in $SEARCH_LIB;
a848cd7e 32217 do
3eca31dc 32218 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32219 if test -f "$ac_dir/libXpm.$ac_extension"; then
32220 ac_find_libraries=$ac_dir
32221 break 2
32222 fi
32223 done
32224 done
32225
32226 if test "$ac_find_libraries" != "" ; then
32227
0ad5d837 32228 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32229 ac_path_to_link=""
32230 else
0ad5d837
VZ
32231 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32232 result=$?
32233 if test $result = 0; then
32234 ac_path_to_link=""
32235 else
32236 ac_path_to_link=" -L$ac_find_libraries"
32237 fi
a848cd7e
SC
32238 fi
32239
32240 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
32241 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32242echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
32243
32244 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
32245echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
32246if test "${wx_cv_x11_xpm_h+set}" = set; then
32247 echo $ECHO_N "(cached) $ECHO_C" >&6
32248else
32249
e56f4f9e
VZ
32250 save_CXXFLAGS=$CXXFLAGS
32251 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
32252
32253 cat >conftest.$ac_ext <<_ACEOF
32254/* confdefs.h. */
32255_ACEOF
32256cat confdefs.h >>conftest.$ac_ext
32257cat >>conftest.$ac_ext <<_ACEOF
32258/* end confdefs.h. */
32259
32260 #include <X11/xpm.h>
32261
32262int
32263main ()
32264{
32265
32266 int version;
32267 version = XpmLibraryVersion();
32268
32269 ;
32270 return 0;
32271}
32272_ACEOF
32273rm -f conftest.$ac_objext
32274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32275 (eval $ac_compile) 2>conftest.er1
a848cd7e 32276 ac_status=$?
ac1cb8d3
VS
32277 grep -v '^ *+' conftest.er1 >conftest.err
32278 rm -f conftest.er1
32279 cat conftest.err >&5
a848cd7e
SC
32280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32281 (exit $ac_status); } &&
bb9e79c0 32282 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32284 (eval $ac_try) 2>&5
32285 ac_status=$?
32286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287 (exit $ac_status); }; } &&
32288 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32290 (eval $ac_try) 2>&5
32291 ac_status=$?
32292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32293 (exit $ac_status); }; }; then
32294 wx_cv_x11_xpm_h=yes
32295else
32296 echo "$as_me: failed program was:" >&5
32297sed 's/^/| /' conftest.$ac_ext >&5
32298
32299wx_cv_x11_xpm_h=no
32300
32301fi
ac1cb8d3 32302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 32303
e56f4f9e 32304 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
32305
32306
32307fi
32308echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
32309echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
32310
32311 if test $wx_cv_x11_xpm_h = "yes"; then
32312 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
32313 cat >>confdefs.h <<\_ACEOF
32314#define wxHAVE_LIB_XPM 1
32315_ACEOF
32316
32317 else
32318 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
32319echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
32320 fi
32321 fi
32322
32323 fi
32324
32325 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
32326echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
32327if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
32328 echo $ECHO_N "(cached) $ECHO_C" >&6
32329else
32330 ac_check_lib_save_LIBS=$LIBS
32331LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
32332cat >conftest.$ac_ext <<_ACEOF
32333/* confdefs.h. */
32334_ACEOF
32335cat confdefs.h >>conftest.$ac_ext
32336cat >>conftest.$ac_ext <<_ACEOF
32337/* end confdefs.h. */
32338
32339/* Override any gcc2 internal prototype to avoid an error. */
32340#ifdef __cplusplus
32341extern "C"
32342#endif
32343/* We use char because int might match the return type of a gcc2
32344 builtin and then its argument prototype would still apply. */
32345char XShapeQueryExtension ();
32346int
32347main ()
32348{
32349XShapeQueryExtension ();
32350 ;
32351 return 0;
32352}
32353_ACEOF
32354rm -f conftest.$ac_objext conftest$ac_exeext
32355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32356 (eval $ac_link) 2>conftest.er1
a848cd7e 32357 ac_status=$?
ac1cb8d3
VS
32358 grep -v '^ *+' conftest.er1 >conftest.err
32359 rm -f conftest.er1
32360 cat conftest.err >&5
a848cd7e
SC
32361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32362 (exit $ac_status); } &&
bb9e79c0 32363 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32365 (eval $ac_try) 2>&5
32366 ac_status=$?
32367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32368 (exit $ac_status); }; } &&
32369 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32371 (eval $ac_try) 2>&5
32372 ac_status=$?
32373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32374 (exit $ac_status); }; }; then
32375 ac_cv_lib_Xext_XShapeQueryExtension=yes
32376else
32377 echo "$as_me: failed program was:" >&5
32378sed 's/^/| /' conftest.$ac_ext >&5
32379
32380ac_cv_lib_Xext_XShapeQueryExtension=no
32381fi
ac1cb8d3
VS
32382rm -f conftest.err conftest.$ac_objext \
32383 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32384LIBS=$ac_check_lib_save_LIBS
32385fi
32386echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
32387echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
32388if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
32389
32390 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
32391 wxHAVE_XEXT_LIB=1
32392
32393fi
32394
32395
32396 if test "$wxHAVE_XEXT_LIB" = 1; then
e56f4f9e
VZ
32397 save_CXXFLAGS="$CXXFLAGS"
32398 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
32399
32400 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
32401echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
32402 cat >conftest.$ac_ext <<_ACEOF
32403/* confdefs.h. */
32404_ACEOF
32405cat confdefs.h >>conftest.$ac_ext
32406cat >>conftest.$ac_ext <<_ACEOF
32407/* end confdefs.h. */
32408
32409 #include <X11/Xlib.h>
32410 #include <X11/extensions/shape.h>
32411
32412int
32413main ()
32414{
32415
32416 int dummy1, dummy2;
32417 XShapeQueryExtension((Display*)NULL,
32418 (int*)NULL, (int*)NULL);
32419
32420 ;
32421 return 0;
32422}
32423_ACEOF
32424rm -f conftest.$ac_objext
32425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32426 (eval $ac_compile) 2>conftest.er1
a848cd7e 32427 ac_status=$?
ac1cb8d3
VS
32428 grep -v '^ *+' conftest.er1 >conftest.err
32429 rm -f conftest.er1
32430 cat conftest.err >&5
a848cd7e
SC
32431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32432 (exit $ac_status); } &&
bb9e79c0 32433 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32435 (eval $ac_try) 2>&5
32436 ac_status=$?
32437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438 (exit $ac_status); }; } &&
32439 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32441 (eval $ac_try) 2>&5
32442 ac_status=$?
32443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32444 (exit $ac_status); }; }; then
32445
32446 cat >>confdefs.h <<\_ACEOF
32447#define HAVE_XSHAPE 1
32448_ACEOF
32449
32450 echo "$as_me:$LINENO: result: found" >&5
32451echo "${ECHO_T}found" >&6
32452
32453else
32454 echo "$as_me: failed program was:" >&5
32455sed 's/^/| /' conftest.$ac_ext >&5
32456
32457
32458 echo "$as_me:$LINENO: result: not found" >&5
32459echo "${ECHO_T}not found" >&6
32460
32461fi
ac1cb8d3 32462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e56f4f9e 32463 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
32464
32465 fi
32466 fi
32467
32468 if test "$wxUSE_MAC" = 1; then
32469 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
32470echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
32471 if test "$GCC" = yes; then
32472 echo "$as_me:$LINENO: result: gcc" >&5
32473echo "${ECHO_T}gcc" >&6
32474 CPPFLAGS_PASCAL="-fpascal-strings"
32475 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
32476 echo "$as_me:$LINENO: result: xlc" >&5
32477echo "${ECHO_T}xlc" >&6
32478 CPPFLAGS_PASCAL="-qmacpstr"
32479 else
32480 echo "$as_me:$LINENO: result: none" >&5
32481echo "${ECHO_T}none" >&6
32482 fi
32483
1e9e8aba 32484 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 32485 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 32486 else
c92ad099 32487 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 32488 fi
a848cd7e 32489
a848cd7e
SC
32490 TOOLKIT=MAC
32491 GUIDIST=MACX_DIST
dd21ced8 32492 WXBASEPORT="_carbon"
a848cd7e
SC
32493 fi
32494
32495 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
32496 TOOLKIT=COCOA
32497 GUIDIST=COCOA_DIST
32498 fi
32499
32500 if test "$wxUSE_PM" = 1; then
32501 TOOLKIT=PM
de59c161
RD
32502 GUIDIST=PM_DIST
32503 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
32504echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
32505if test "${wx_cv_spbcdata+set}" = set; then
32506 echo $ECHO_N "(cached) $ECHO_C" >&6
32507else
32508
32509 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
32510/* confdefs.h. */
32511_ACEOF
32512cat confdefs.h >>conftest.$ac_ext
32513cat >>conftest.$ac_ext <<_ACEOF
32514/* end confdefs.h. */
32515
32516 #define INCL_PM
32517 #include <os2.h>
32518
32519int
32520main ()
32521{
32522
32523 SPBCDATA test;
32524
32525 ;
32526 return 0;
32527}
32528_ACEOF
32529rm -f conftest.$ac_objext
32530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32531 (eval $ac_compile) 2>conftest.er1
de59c161 32532 ac_status=$?
ac1cb8d3
VS
32533 grep -v '^ *+' conftest.er1 >conftest.err
32534 rm -f conftest.er1
32535 cat conftest.err >&5
de59c161
RD
32536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32537 (exit $ac_status); } &&
bb9e79c0 32538 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32540 (eval $ac_try) 2>&5
32541 ac_status=$?
32542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32543 (exit $ac_status); }; } &&
32544 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
32545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32546 (eval $ac_try) 2>&5
32547 ac_status=$?
32548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32549 (exit $ac_status); }; }; then
32550 wx_cv_spbcdata=yes
32551else
32552 echo "$as_me: failed program was:" >&5
32553sed 's/^/| /' conftest.$ac_ext >&5
32554
32555wx_cv_spbcdata=no
32556
32557fi
ac1cb8d3 32558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
32559
32560
32561fi
32562echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
32563echo "${ECHO_T}$wx_cv_spbcdata" >&6
32564
32565 if test $wx_cv_spbcdata = "yes"; then
32566 cat >>confdefs.h <<\_ACEOF
32567#define HAVE_SPBCDATA 1
32568_ACEOF
32569
32570 fi
a848cd7e
SC
32571 fi
32572
32573 if test "$TOOLKIT" = "PM" ; then
32574 TOOLKIT_DIR="os2"
32575 else
32576 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
32577 fi
32578
a848cd7e 32579 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
32580 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
32581 WIDGET_SET=univ
a848cd7e
SC
32582 fi
32583
32584 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
32585 DISTDIR="wx\$(TOOLKIT)"
32586else
32587 USE_GUI=0
32588
32589 TOOLKIT_DIR="base"
32590
32591 if test "$USE_WIN32" = 1 ; then
a848cd7e 32592 TOOLKIT="MSW"
a848cd7e
SC
32593 fi
32594
a848cd7e
SC
32595 GUIDIST="BASE_DIST"
32596 DISTDIR="wxBase"
32597fi
32598
32599
d12aef51
VZ
32600if test "$wxUSE_GUI" = "yes"; then
32601 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32602
32603for ac_header in X11/Xlib.h
32604do
32605as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32606if eval "test \"\${$as_ac_Header+set}\" = set"; then
32607 echo "$as_me:$LINENO: checking for $ac_header" >&5
32608echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32609if eval "test \"\${$as_ac_Header+set}\" = set"; then
32610 echo $ECHO_N "(cached) $ECHO_C" >&6
32611fi
32612echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32613echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32614else
32615 # Is the header compilable?
32616echo "$as_me:$LINENO: checking $ac_header usability" >&5
32617echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32618cat >conftest.$ac_ext <<_ACEOF
32619/* confdefs.h. */
32620_ACEOF
32621cat confdefs.h >>conftest.$ac_ext
32622cat >>conftest.$ac_ext <<_ACEOF
32623/* end confdefs.h. */
32624$ac_includes_default
32625#include <$ac_header>
32626_ACEOF
32627rm -f conftest.$ac_objext
32628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32629 (eval $ac_compile) 2>conftest.er1
32630 ac_status=$?
32631 grep -v '^ *+' conftest.er1 >conftest.err
32632 rm -f conftest.er1
32633 cat conftest.err >&5
32634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32635 (exit $ac_status); } &&
bb9e79c0 32636 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
32637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32638 (eval $ac_try) 2>&5
32639 ac_status=$?
32640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32641 (exit $ac_status); }; } &&
32642 { ac_try='test -s conftest.$ac_objext'
32643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32644 (eval $ac_try) 2>&5
32645 ac_status=$?
32646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32647 (exit $ac_status); }; }; then
32648 ac_header_compiler=yes
32649else
32650 echo "$as_me: failed program was:" >&5
32651sed 's/^/| /' conftest.$ac_ext >&5
32652
32653ac_header_compiler=no
32654fi
32655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32656echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32657echo "${ECHO_T}$ac_header_compiler" >&6
32658
32659# Is the header present?
32660echo "$as_me:$LINENO: checking $ac_header presence" >&5
32661echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32662cat >conftest.$ac_ext <<_ACEOF
32663/* confdefs.h. */
32664_ACEOF
32665cat confdefs.h >>conftest.$ac_ext
32666cat >>conftest.$ac_ext <<_ACEOF
32667/* end confdefs.h. */
32668#include <$ac_header>
32669_ACEOF
32670if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32671 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32672 ac_status=$?
32673 grep -v '^ *+' conftest.er1 >conftest.err
32674 rm -f conftest.er1
32675 cat conftest.err >&5
32676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32677 (exit $ac_status); } >/dev/null; then
32678 if test -s conftest.err; then
5d7b7554
VZ
32679 ac_cpp_err=$ac_cxx_preproc_warn_flag
32680 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
d12aef51
VZ
32681 else
32682 ac_cpp_err=
32683 fi
32684else
32685 ac_cpp_err=yes
32686fi
32687if test -z "$ac_cpp_err"; then
32688 ac_header_preproc=yes
32689else
32690 echo "$as_me: failed program was:" >&5
32691sed 's/^/| /' conftest.$ac_ext >&5
32692
32693 ac_header_preproc=no
32694fi
32695rm -f conftest.err conftest.$ac_ext
32696echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32697echo "${ECHO_T}$ac_header_preproc" >&6
32698
32699# So? What about this header?
5d7b7554 32700case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
d12aef51
VZ
32701 yes:no: )
32702 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32703echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32705echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32706 ac_header_preproc=yes
32707 ;;
32708 no:yes:* )
32709 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32710echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32711 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32712echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32713 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32714echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32715 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32716echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32718echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32719 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32720echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32721 (
32722 cat <<\_ASBOX
32723## ----------------------------------------- ##
32724## Report this to wx-dev@lists.wxwidgets.org ##
32725## ----------------------------------------- ##
32726_ASBOX
32727 ) |
32728 sed "s/^/$as_me: WARNING: /" >&2
32729 ;;
32730esac
32731echo "$as_me:$LINENO: checking for $ac_header" >&5
32732echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32733if eval "test \"\${$as_ac_Header+set}\" = set"; then
32734 echo $ECHO_N "(cached) $ECHO_C" >&6
32735else
32736 eval "$as_ac_Header=\$ac_header_preproc"
32737fi
32738echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32739echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32740
32741fi
32742if test `eval echo '${'$as_ac_Header'}'` = yes; then
32743 cat >>confdefs.h <<_ACEOF
32744#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32745_ACEOF
32746
32747fi
32748
32749done
32750
32751
32752for ac_header in X11/XKBlib.h
32753do
32754as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32755echo "$as_me:$LINENO: checking for $ac_header" >&5
32756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32757if eval "test \"\${$as_ac_Header+set}\" = set"; then
32758 echo $ECHO_N "(cached) $ECHO_C" >&6
32759else
32760 cat >conftest.$ac_ext <<_ACEOF
32761/* confdefs.h. */
32762_ACEOF
32763cat confdefs.h >>conftest.$ac_ext
32764cat >>conftest.$ac_ext <<_ACEOF
32765/* end confdefs.h. */
32766
32767 #if HAVE_X11_XLIB_H
32768 #include <X11/Xlib.h>
32769 #endif
32770
32771
32772#include <$ac_header>
32773_ACEOF
32774rm -f conftest.$ac_objext
32775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32776 (eval $ac_compile) 2>conftest.er1
32777 ac_status=$?
32778 grep -v '^ *+' conftest.er1 >conftest.err
32779 rm -f conftest.er1
32780 cat conftest.err >&5
32781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32782 (exit $ac_status); } &&
bb9e79c0 32783 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
32784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32785 (eval $ac_try) 2>&5
32786 ac_status=$?
32787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788 (exit $ac_status); }; } &&
32789 { ac_try='test -s conftest.$ac_objext'
32790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32791 (eval $ac_try) 2>&5
32792 ac_status=$?
32793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32794 (exit $ac_status); }; }; then
32795 eval "$as_ac_Header=yes"
32796else
32797 echo "$as_me: failed program was:" >&5
32798sed 's/^/| /' conftest.$ac_ext >&5
32799
32800eval "$as_ac_Header=no"
32801fi
32802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32803fi
32804echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32805echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32806if test `eval echo '${'$as_ac_Header'}'` = yes; then
32807 cat >>confdefs.h <<_ACEOF
32808#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32809_ACEOF
32810
32811fi
32812
32813done
32814
32815 fi
32816fi
32817
a848cd7e
SC
32818
32819
32820IODBC_C_SRC=""
32821
32822
32823if test "$TOOLKIT" != "MSW" ; then
32824
32825 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
32826
32827 if test "${ac_cv_header_sql_h+set}" = set; then
32828 echo "$as_me:$LINENO: checking for sql.h" >&5
32829echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32830if test "${ac_cv_header_sql_h+set}" = set; then
32831 echo $ECHO_N "(cached) $ECHO_C" >&6
32832fi
32833echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32834echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32835else
32836 # Is the header compilable?
32837echo "$as_me:$LINENO: checking sql.h usability" >&5
32838echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
32839cat >conftest.$ac_ext <<_ACEOF
32840/* confdefs.h. */
32841_ACEOF
32842cat confdefs.h >>conftest.$ac_ext
32843cat >>conftest.$ac_ext <<_ACEOF
32844/* end confdefs.h. */
32845$ac_includes_default
32846#include <sql.h>
32847_ACEOF
32848rm -f conftest.$ac_objext
32849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32850 (eval $ac_compile) 2>conftest.er1
a848cd7e 32851 ac_status=$?
ac1cb8d3
VS
32852 grep -v '^ *+' conftest.er1 >conftest.err
32853 rm -f conftest.er1
32854 cat conftest.err >&5
a848cd7e
SC
32855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32856 (exit $ac_status); } &&
bb9e79c0 32857 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32859 (eval $ac_try) 2>&5
32860 ac_status=$?
32861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32862 (exit $ac_status); }; } &&
32863 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32865 (eval $ac_try) 2>&5
32866 ac_status=$?
32867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32868 (exit $ac_status); }; }; then
32869 ac_header_compiler=yes
32870else
32871 echo "$as_me: failed program was:" >&5
32872sed 's/^/| /' conftest.$ac_ext >&5
32873
32874ac_header_compiler=no
32875fi
ac1cb8d3 32876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32877echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32878echo "${ECHO_T}$ac_header_compiler" >&6
32879
32880# Is the header present?
32881echo "$as_me:$LINENO: checking sql.h presence" >&5
32882echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
32883cat >conftest.$ac_ext <<_ACEOF
32884/* confdefs.h. */
32885_ACEOF
32886cat confdefs.h >>conftest.$ac_ext
32887cat >>conftest.$ac_ext <<_ACEOF
32888/* end confdefs.h. */
32889#include <sql.h>
32890_ACEOF
32891if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32893 ac_status=$?
32894 grep -v '^ *+' conftest.er1 >conftest.err
32895 rm -f conftest.er1
32896 cat conftest.err >&5
32897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32898 (exit $ac_status); } >/dev/null; then
32899 if test -s conftest.err; then
5d7b7554
VZ
32900 ac_cpp_err=$ac_cxx_preproc_warn_flag
32901 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
32902 else
32903 ac_cpp_err=
32904 fi
32905else
32906 ac_cpp_err=yes
32907fi
32908if test -z "$ac_cpp_err"; then
32909 ac_header_preproc=yes
32910else
32911 echo "$as_me: failed program was:" >&5
32912sed 's/^/| /' conftest.$ac_ext >&5
32913
32914 ac_header_preproc=no
32915fi
32916rm -f conftest.err conftest.$ac_ext
32917echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32918echo "${ECHO_T}$ac_header_preproc" >&6
32919
32920# So? What about this header?
5d7b7554 32921case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 32922 yes:no: )
a848cd7e
SC
32923 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
32924echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32925 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
32926echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
32927 ac_header_preproc=yes
a848cd7e 32928 ;;
ac1cb8d3 32929 no:yes:* )
a848cd7e
SC
32930 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
32931echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32932 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
32933echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
32934 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
32935echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
32936 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
32937echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32938 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
32939echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32940 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
32941echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32942 (
32943 cat <<\_ASBOX
ac1cb8d3
VS
32944## ----------------------------------------- ##
32945## Report this to wx-dev@lists.wxwidgets.org ##
32946## ----------------------------------------- ##
a848cd7e
SC
32947_ASBOX
32948 ) |
32949 sed "s/^/$as_me: WARNING: /" >&2
32950 ;;
32951esac
32952echo "$as_me:$LINENO: checking for sql.h" >&5
32953echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32954if test "${ac_cv_header_sql_h+set}" = set; then
32955 echo $ECHO_N "(cached) $ECHO_C" >&6
32956else
32957 ac_cv_header_sql_h=$ac_header_preproc
32958fi
32959echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32960echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32961
32962fi
32963if test $ac_cv_header_sql_h = yes; then
32964 found_sql_h=1
32965fi
32966
32967
32968 if test "x$found_sql_h" = "x1" ; then
32969 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
32970echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
32971if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
32972 echo $ECHO_N "(cached) $ECHO_C" >&6
32973else
32974 ac_check_lib_save_LIBS=$LIBS
32975LIBS="-liodbc $LIBS"
32976cat >conftest.$ac_ext <<_ACEOF
32977/* confdefs.h. */
32978_ACEOF
32979cat confdefs.h >>conftest.$ac_ext
32980cat >>conftest.$ac_ext <<_ACEOF
32981/* end confdefs.h. */
32982
32983/* Override any gcc2 internal prototype to avoid an error. */
32984#ifdef __cplusplus
32985extern "C"
32986#endif
32987/* We use char because int might match the return type of a gcc2
32988 builtin and then its argument prototype would still apply. */
32989char SQLAllocEnv ();
32990int
32991main ()
32992{
32993SQLAllocEnv ();
32994 ;
32995 return 0;
32996}
32997_ACEOF
32998rm -f conftest.$ac_objext conftest$ac_exeext
32999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33000 (eval $ac_link) 2>conftest.er1
a848cd7e 33001 ac_status=$?
ac1cb8d3
VS
33002 grep -v '^ *+' conftest.er1 >conftest.err
33003 rm -f conftest.er1
33004 cat conftest.err >&5
a848cd7e
SC
33005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33006 (exit $ac_status); } &&
bb9e79c0 33007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33009 (eval $ac_try) 2>&5
33010 ac_status=$?
33011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33012 (exit $ac_status); }; } &&
33013 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33015 (eval $ac_try) 2>&5
33016 ac_status=$?
33017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33018 (exit $ac_status); }; }; then
33019 ac_cv_lib_iodbc_SQLAllocEnv=yes
33020else
33021 echo "$as_me: failed program was:" >&5
33022sed 's/^/| /' conftest.$ac_ext >&5
33023
33024ac_cv_lib_iodbc_SQLAllocEnv=no
33025fi
ac1cb8d3
VS
33026rm -f conftest.err conftest.$ac_objext \
33027 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33028LIBS=$ac_check_lib_save_LIBS
33029fi
33030echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
33031echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
33032if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
33033 ODBC_LINK=" -liodbc"
33034else
33035
33036 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
33037echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
33038if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
33039 echo $ECHO_N "(cached) $ECHO_C" >&6
33040else
33041 ac_check_lib_save_LIBS=$LIBS
33042LIBS="-lunixodbc $LIBS"
33043cat >conftest.$ac_ext <<_ACEOF
33044/* confdefs.h. */
33045_ACEOF
33046cat confdefs.h >>conftest.$ac_ext
33047cat >>conftest.$ac_ext <<_ACEOF
33048/* end confdefs.h. */
33049
33050/* Override any gcc2 internal prototype to avoid an error. */
33051#ifdef __cplusplus
33052extern "C"
33053#endif
33054/* We use char because int might match the return type of a gcc2
33055 builtin and then its argument prototype would still apply. */
33056char SQLAllocEnv ();
33057int
33058main ()
33059{
33060SQLAllocEnv ();
33061 ;
33062 return 0;
33063}
33064_ACEOF
33065rm -f conftest.$ac_objext conftest$ac_exeext
33066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33067 (eval $ac_link) 2>conftest.er1
a848cd7e 33068 ac_status=$?
ac1cb8d3
VS
33069 grep -v '^ *+' conftest.er1 >conftest.err
33070 rm -f conftest.er1
33071 cat conftest.err >&5
a848cd7e
SC
33072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33073 (exit $ac_status); } &&
bb9e79c0 33074 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33076 (eval $ac_try) 2>&5
33077 ac_status=$?
33078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33079 (exit $ac_status); }; } &&
33080 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33082 (eval $ac_try) 2>&5
33083 ac_status=$?
33084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33085 (exit $ac_status); }; }; then
33086 ac_cv_lib_unixodbc_SQLAllocEnv=yes
33087else
33088 echo "$as_me: failed program was:" >&5
33089sed 's/^/| /' conftest.$ac_ext >&5
33090
33091ac_cv_lib_unixodbc_SQLAllocEnv=no
33092fi
ac1cb8d3
VS
33093rm -f conftest.err conftest.$ac_objext \
33094 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33095LIBS=$ac_check_lib_save_LIBS
33096fi
33097echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
33098echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
33099if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
33100 ODBC_LINK=" -lunixodbc"
33101else
33102
33103 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
33104echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
33105if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
33106 echo $ECHO_N "(cached) $ECHO_C" >&6
33107else
33108 ac_check_lib_save_LIBS=$LIBS
33109LIBS="-lodbc $LIBS"
33110cat >conftest.$ac_ext <<_ACEOF
33111/* confdefs.h. */
33112_ACEOF
33113cat confdefs.h >>conftest.$ac_ext
33114cat >>conftest.$ac_ext <<_ACEOF
33115/* end confdefs.h. */
33116
33117/* Override any gcc2 internal prototype to avoid an error. */
33118#ifdef __cplusplus
33119extern "C"
33120#endif
33121/* We use char because int might match the return type of a gcc2
33122 builtin and then its argument prototype would still apply. */
33123char SQLAllocEnv ();
33124int
33125main ()
33126{
33127SQLAllocEnv ();
33128 ;
33129 return 0;
33130}
33131_ACEOF
33132rm -f conftest.$ac_objext conftest$ac_exeext
33133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33134 (eval $ac_link) 2>conftest.er1
a848cd7e 33135 ac_status=$?
ac1cb8d3
VS
33136 grep -v '^ *+' conftest.er1 >conftest.err
33137 rm -f conftest.er1
33138 cat conftest.err >&5
a848cd7e
SC
33139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33140 (exit $ac_status); } &&
bb9e79c0 33141 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33143 (eval $ac_try) 2>&5
33144 ac_status=$?
33145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33146 (exit $ac_status); }; } &&
33147 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33149 (eval $ac_try) 2>&5
33150 ac_status=$?
33151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33152 (exit $ac_status); }; }; then
33153 ac_cv_lib_odbc_SQLAllocEnv=yes
33154else
33155 echo "$as_me: failed program was:" >&5
33156sed 's/^/| /' conftest.$ac_ext >&5
33157
33158ac_cv_lib_odbc_SQLAllocEnv=no
33159fi
ac1cb8d3
VS
33160rm -f conftest.err conftest.$ac_objext \
33161 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33162LIBS=$ac_check_lib_save_LIBS
33163fi
33164echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
33165echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
33166if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
33167 ODBC_LINK=" -lodbc"
33168fi
33169
33170
33171fi
33172
33173
33174fi
33175
33176 fi
33177 if test "x$ODBC_LINK" = "x" ; then
33178 if test "$wxUSE_ODBC" = "sys" ; then
33179 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
33180echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
33181 { (exit 1); exit 1; }; }
33182 else
33183 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
33184echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
33185 wxUSE_ODBC=builtin
33186 fi
33187 else
33188 wxUSE_ODBC=sys
33189 fi
33190 fi
a848cd7e 33191
2da0c077
RD
33192 if test "$wxUSE_ODBC" = "builtin" ; then
33193 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
33194#define wxUSE_BUILTIN_IODBC 1
33195_ACEOF
33196
a848cd7e
SC
33197 fi
33198fi
33199
2da0c077
RD
33200if test "$wxUSE_ODBC" != "no" ; then
33201 cat >>confdefs.h <<\_ACEOF
33202#define wxUSE_ODBC 1
33203_ACEOF
33204
33205 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
33206
5ff751d6 33207 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 33208fi
a848cd7e 33209
01cb68df 33210
a848cd7e 33211if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 33212 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
33213 echo "$as_me:$LINENO: checking for Xinerama" >&5
33214echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
33215
0ad5d837
VZ
33216 ac_find_libraries=
33217 for ac_dir in $SEARCH_LIB;
33218 do
33219 for ac_extension in a so sl dylib dll.a; do
33220 if test -f "$ac_dir/libXinerama.$ac_extension"; then
33221 ac_find_libraries=$ac_dir
33222 break 2
33223 fi
33224 done
33225 done
33226
a848cd7e
SC
33227 if test "$ac_find_libraries" != "" ; then
33228
0ad5d837 33229 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33230 ac_path_to_link=""
33231 else
0ad5d837
VZ
33232 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33233 result=$?
33234 if test $result = 0; then
33235 ac_path_to_link=""
33236 else
33237 ac_path_to_link=" -L$ac_find_libraries"
33238 fi
a848cd7e
SC
33239 fi
33240
33241 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33242 LDFLAGS="$LDFLAGS $ac_path_to_link"
33243 fi
33244 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
33245 echo "$as_me:$LINENO: result: yes" >&5
33246echo "${ECHO_T}yes" >&6
33247
33248 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
33249echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
33250
0ad5d837
VZ
33251 ac_find_libraries=
33252 for ac_dir in $SEARCH_LIB;
a848cd7e 33253 do
3eca31dc 33254 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33255 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
33256 ac_find_libraries=$ac_dir
33257 break 2
33258 fi
33259 done
33260 done
33261
33262 if test "$ac_find_libraries" != "" ; then
33263 echo "$as_me:$LINENO: result: yes" >&5
33264echo "${ECHO_T}yes" >&6
33265
33266for ac_header in X11/extensions/xf86vmode.h
33267do
33268as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33269echo "$as_me:$LINENO: checking for $ac_header" >&5
33270echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33271if eval "test \"\${$as_ac_Header+set}\" = set"; then
33272 echo $ECHO_N "(cached) $ECHO_C" >&6
33273else
33274 cat >conftest.$ac_ext <<_ACEOF
33275/* confdefs.h. */
33276_ACEOF
33277cat confdefs.h >>conftest.$ac_ext
33278cat >>conftest.$ac_ext <<_ACEOF
33279/* end confdefs.h. */
33280
33281 #if HAVE_X11_XLIB_H
33282 #include <X11/Xlib.h>
33283 #endif
33284
33285
33286#include <$ac_header>
33287_ACEOF
33288rm -f conftest.$ac_objext
33289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33290 (eval $ac_compile) 2>conftest.er1
a848cd7e 33291 ac_status=$?
ac1cb8d3
VS
33292 grep -v '^ *+' conftest.er1 >conftest.err
33293 rm -f conftest.er1
33294 cat conftest.err >&5
a848cd7e
SC
33295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33296 (exit $ac_status); } &&
bb9e79c0 33297 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33299 (eval $ac_try) 2>&5
33300 ac_status=$?
33301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33302 (exit $ac_status); }; } &&
33303 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33305 (eval $ac_try) 2>&5
33306 ac_status=$?
33307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33308 (exit $ac_status); }; }; then
33309 eval "$as_ac_Header=yes"
33310else
33311 echo "$as_me: failed program was:" >&5
33312sed 's/^/| /' conftest.$ac_ext >&5
33313
33314eval "$as_ac_Header=no"
33315fi
ac1cb8d3 33316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33317fi
33318echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33319echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33320if test `eval echo '${'$as_ac_Header'}'` = yes; then
33321 cat >>confdefs.h <<_ACEOF
33322#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33323_ACEOF
33324
33325 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
33326
33327fi
33328
33329done
33330
33331 else
33332 echo "$as_me:$LINENO: result: no" >&5
33333echo "${ECHO_T}no" >&6
33334 fi
33335
33336 else
33337 echo "$as_me:$LINENO: result: no" >&5
33338echo "${ECHO_T}no" >&6
dcc1b6ad
VS
33339 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
33340echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
33341 wxUSE_DISPLAY="no"
33342 fi
01cb68df
RG
33343 elif test "$wxUSE_MSW" = 1; then
33344
e5efa97e 33345for ac_header in ddraw.h
01cb68df
RG
33346do
33347as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 33348echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
33349echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33350if eval "test \"\${$as_ac_Header+set}\" = set"; then
33351 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 33352else
5294a27e 33353 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
33354/* confdefs.h. */
33355_ACEOF
33356cat confdefs.h >>conftest.$ac_ext
33357cat >>conftest.$ac_ext <<_ACEOF
33358/* end confdefs.h. */
5294a27e
VZ
33359#include <windows.h>
33360
01cb68df
RG
33361#include <$ac_header>
33362_ACEOF
33363rm -f conftest.$ac_objext
33364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33365 (eval $ac_compile) 2>conftest.er1
01cb68df 33366 ac_status=$?
ac1cb8d3
VS
33367 grep -v '^ *+' conftest.er1 >conftest.err
33368 rm -f conftest.er1
33369 cat conftest.err >&5
01cb68df
RG
33370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33371 (exit $ac_status); } &&
bb9e79c0 33372 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33374 (eval $ac_try) 2>&5
33375 ac_status=$?
33376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377 (exit $ac_status); }; } &&
33378 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
33379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33380 (eval $ac_try) 2>&5
33381 ac_status=$?
33382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33383 (exit $ac_status); }; }; then
5294a27e 33384 eval "$as_ac_Header=yes"
01cb68df
RG
33385else
33386 echo "$as_me: failed program was:" >&5
33387sed 's/^/| /' conftest.$ac_ext >&5
33388
5294a27e 33389eval "$as_ac_Header=no"
01cb68df 33390fi
ac1cb8d3 33391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
33392fi
33393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33394echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
33395if test `eval echo '${'$as_ac_Header'}'` = yes; then
33396 cat >>confdefs.h <<_ACEOF
33397#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33398_ACEOF
33399
01cb68df
RG
33400fi
33401
33402done
33403
a848cd7e
SC
33404 fi
33405fi
33406
88bbc332
RR
33407if test "$wxUSE_DETECT_SM" = "yes"; then
33408 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
33409 echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
33410echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6
33411
33412 ac_find_libraries=
33413 for ac_dir in $SEARCH_LIB;
33414 do
33415 for ac_extension in a so sl dylib dll.a; do
33416 if test -f "$ac_dir/libSM.$ac_extension"; then
33417 ac_find_libraries=$ac_dir
33418 break 2
33419 fi
33420 done
33421 done
33422
33423 if test "$ac_find_libraries" != "" ; then
33424
33425 if test "$ac_find_libraries" = "default location"; then
33426 ac_path_to_link=""
33427 else
33428 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33429 result=$?
33430 if test $result = 0; then
33431 ac_path_to_link=""
33432 else
33433 ac_path_to_link=" -L$ac_find_libraries"
33434 fi
33435 fi
33436
33437 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33438 LDFLAGS="$LDFLAGS $ac_path_to_link"
33439 fi
33440 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
33441 echo "$as_me:$LINENO: result: yes" >&5
33442echo "${ECHO_T}yes" >&6
33443 else
33444 echo "$as_me:$LINENO: result: no" >&5
33445echo "${ECHO_T}no" >&6
33446 { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
33447echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
33448 wxUSE_DETECT_SM="no"
33449 fi
33450 else
33451 wxUSE_DETECT_SM="no"
33452 fi
33453fi
33454
33455
a848cd7e
SC
33456
33457USE_OPENGL=0
33458if test "$wxUSE_OPENGL" = "yes"; then
33459 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
33460 OPENGL_LIBS="-framework OpenGL -framework AGL"
33461 elif test "$wxUSE_MSW" = 1; then
33462 OPENGL_LIBS="-lopengl32 -lglu32"
33463 else
33464
33465
33466ac_find_includes=
33467for ac_dir in $SEARCH_INCLUDE /usr/include;
33468 do
33469 if test -f "$ac_dir/GL/gl.h"; then
33470 ac_find_includes=$ac_dir
33471 break
33472 fi
33473 done
33474
33475 if test "$ac_find_includes" != "" ; then
33476 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33477echo "${ECHO_T}found in $ac_find_includes" >&6
33478
33479 if test "x$ac_find_includes" = "x/usr/include"; then
33480 ac_path_to_include=""
33481 else
33482 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
33483 result=$?
33484 if test $result = 0; then
33485 ac_path_to_include=""
33486 else
33487 ac_path_to_include=" -I$ac_find_includes"
33488 fi
33489 fi
33490
c92ad099 33491 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
33492 fi
33493
33494 if test "${ac_cv_header_GL_gl_h+set}" = set; then
33495 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33496echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
33497if test "${ac_cv_header_GL_gl_h+set}" = set; then
33498 echo $ECHO_N "(cached) $ECHO_C" >&6
33499fi
33500echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33501echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
33502else
33503 # Is the header compilable?
33504echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
33505echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
33506cat >conftest.$ac_ext <<_ACEOF
33507/* confdefs.h. */
33508_ACEOF
33509cat confdefs.h >>conftest.$ac_ext
33510cat >>conftest.$ac_ext <<_ACEOF
33511/* end confdefs.h. */
33512$ac_includes_default
33513#include <GL/gl.h>
33514_ACEOF
33515rm -f conftest.$ac_objext
33516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33517 (eval $ac_compile) 2>conftest.er1
a848cd7e 33518 ac_status=$?
ac1cb8d3
VS
33519 grep -v '^ *+' conftest.er1 >conftest.err
33520 rm -f conftest.er1
33521 cat conftest.err >&5
a848cd7e
SC
33522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33523 (exit $ac_status); } &&
bb9e79c0 33524 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33526 (eval $ac_try) 2>&5
33527 ac_status=$?
33528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33529 (exit $ac_status); }; } &&
33530 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33532 (eval $ac_try) 2>&5
33533 ac_status=$?
33534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33535 (exit $ac_status); }; }; then
33536 ac_header_compiler=yes
33537else
33538 echo "$as_me: failed program was:" >&5
33539sed 's/^/| /' conftest.$ac_ext >&5
33540
33541ac_header_compiler=no
33542fi
ac1cb8d3 33543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33544echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33545echo "${ECHO_T}$ac_header_compiler" >&6
33546
33547# Is the header present?
33548echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
33549echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
33550cat >conftest.$ac_ext <<_ACEOF
33551/* confdefs.h. */
33552_ACEOF
33553cat confdefs.h >>conftest.$ac_ext
33554cat >>conftest.$ac_ext <<_ACEOF
33555/* end confdefs.h. */
33556#include <GL/gl.h>
33557_ACEOF
33558if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33560 ac_status=$?
33561 grep -v '^ *+' conftest.er1 >conftest.err
33562 rm -f conftest.er1
33563 cat conftest.err >&5
33564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33565 (exit $ac_status); } >/dev/null; then
33566 if test -s conftest.err; then
5d7b7554
VZ
33567 ac_cpp_err=$ac_cxx_preproc_warn_flag
33568 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
33569 else
33570 ac_cpp_err=
33571 fi
33572else
33573 ac_cpp_err=yes
33574fi
33575if test -z "$ac_cpp_err"; then
33576 ac_header_preproc=yes
33577else
33578 echo "$as_me: failed program was:" >&5
33579sed 's/^/| /' conftest.$ac_ext >&5
33580
33581 ac_header_preproc=no
33582fi
33583rm -f conftest.err conftest.$ac_ext
33584echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33585echo "${ECHO_T}$ac_header_preproc" >&6
33586
33587# So? What about this header?
5d7b7554 33588case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 33589 yes:no: )
a848cd7e
SC
33590 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33591echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33592 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
33593echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
33594 ac_header_preproc=yes
a848cd7e 33595 ;;
ac1cb8d3 33596 no:yes:* )
a848cd7e
SC
33597 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
33598echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33599 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
33600echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
33601 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
33602echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
33603 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
33604echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33605 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
33606echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33607 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
33608echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33609 (
33610 cat <<\_ASBOX
ac1cb8d3
VS
33611## ----------------------------------------- ##
33612## Report this to wx-dev@lists.wxwidgets.org ##
33613## ----------------------------------------- ##
a848cd7e
SC
33614_ASBOX
33615 ) |
33616 sed "s/^/$as_me: WARNING: /" >&2
33617 ;;
33618esac
33619echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33620echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
33621if test "${ac_cv_header_GL_gl_h+set}" = set; then
33622 echo $ECHO_N "(cached) $ECHO_C" >&6
33623else
33624 ac_cv_header_GL_gl_h=$ac_header_preproc
33625fi
33626echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33627echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
33628
33629fi
33630if test $ac_cv_header_GL_gl_h = yes; then
33631
33632 found_gl=0
33633
33634 echo "$as_me:$LINENO: checking for -lGL" >&5
33635echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
33636
0ad5d837
VZ
33637 ac_find_libraries=
33638 for ac_dir in $SEARCH_LIB;
a848cd7e 33639 do
3eca31dc 33640 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33641 if test -f "$ac_dir/libGL.$ac_extension"; then
33642 ac_find_libraries=$ac_dir
33643 break 2
33644 fi
33645 done
33646 done
33647
33648 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
33649 echo "$as_me:$LINENO: result: yes" >&5
33650echo "${ECHO_T}yes" >&6
33651
a848cd7e 33652
0ad5d837 33653 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33654 ac_path_to_link=""
33655 else
0ad5d837
VZ
33656 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33657 result=$?
33658 if test $result = 0; then
33659 ac_path_to_link=""
33660 else
33661 ac_path_to_link=" -L$ac_find_libraries"
33662 fi
a848cd7e
SC
33663 fi
33664
33665 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33666 LDFLAGS_GL="$ac_path_to_link"
33667 fi
33668
69120ee4
VZ
33669 echo "$as_me:$LINENO: checking for -lGLU" >&5
33670echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 33671
0ad5d837
VZ
33672 ac_find_libraries=
33673 for ac_dir in $SEARCH_LIB;
33674 do
33675 for ac_extension in a so sl dylib dll.a; do
33676 if test -f "$ac_dir/libGLU.$ac_extension"; then
33677 ac_find_libraries=$ac_dir
33678 break 2
33679 fi
33680 done
33681 done
33682
a848cd7e
SC
33683 if test "$ac_find_libraries" != "" ; then
33684
0ad5d837 33685 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33686 ac_path_to_link=""
33687 else
0ad5d837
VZ
33688 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33689 result=$?
33690 if test $result = 0; then
33691 ac_path_to_link=""
33692 else
33693 ac_path_to_link=" -L$ac_find_libraries"
33694 fi
a848cd7e
SC
33695 fi
33696
33697 if test "$ac_path_to_link" != " -L/usr/lib" -a \
33698 "$ac_path_to_link" != "$LDFLAGS_GL"; then
33699 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33700 fi
33701
33702 found_gl=1
33703 OPENGL_LIBS="-lGL -lGLU"
33704 echo "$as_me:$LINENO: result: yes" >&5
33705echo "${ECHO_T}yes" >&6
69120ee4
VZ
33706 else
33707 echo "$as_me:$LINENO: result: no" >&5
33708echo "${ECHO_T}no" >&6
a848cd7e 33709 fi
69120ee4
VZ
33710 else
33711 echo "$as_me:$LINENO: result: no" >&5
33712echo "${ECHO_T}no" >&6
a848cd7e
SC
33713 fi
33714
33715 if test "$found_gl" != 1; then
a848cd7e
SC
33716 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33717echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
33718
0ad5d837
VZ
33719 ac_find_libraries=
33720 for ac_dir in $SEARCH_LIB;
a848cd7e 33721 do
3eca31dc 33722 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33723 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33724 ac_find_libraries=$ac_dir
33725 break 2
33726 fi
33727 done
33728 done
33729
33730 if test "$ac_find_libraries" != "" ; then
33731
0ad5d837 33732 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33733 ac_path_to_link=""
33734 else
0ad5d837
VZ
33735 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33736 result=$?
33737 if test $result = 0; then
33738 ac_path_to_link=""
33739 else
33740 ac_path_to_link=" -L$ac_find_libraries"
33741 fi
a848cd7e
SC
33742 fi
33743
33744 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33745 OPENGL_LIBS="-lMesaGL -lMesaGLU"
33746 echo "$as_me:$LINENO: result: yes" >&5
33747echo "${ECHO_T}yes" >&6
33748 else
33749 echo "$as_me:$LINENO: result: no" >&5
33750echo "${ECHO_T}no" >&6
33751 fi
33752 fi
33753
33754fi
33755
33756
33757
33758 if test "x$OPENGL_LIBS" = "x"; then
33759 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33760echo "$as_me: error: OpenGL libraries not available" >&2;}
33761 { (exit 1); exit 1; }; }
33762 fi
33763 fi
33764
33765 if test "$wxUSE_OPENGL" = "yes"; then
33766 USE_OPENGL=1
33767 cat >>confdefs.h <<\_ACEOF
33768#define wxUSE_OPENGL 1
33769_ACEOF
33770
33771 cat >>confdefs.h <<\_ACEOF
33772#define wxUSE_GLCANVAS 1
33773_ACEOF
33774
33775 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33776 fi
33777fi
33778
a848cd7e
SC
33779
33780if test -n "$TOOLKIT" ; then
33781 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33782fi
33783
a848cd7e
SC
33784
33785
33786if test "$wxUSE_SHARED" = "yes"; then
33787 case "${host}" in
33788 *-pc-msdosdjgpp )
33789 wxUSE_SHARED=no
33790 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33791echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33792 ;;
33793 esac
33794fi
33795
a848cd7e 33796if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
33797
33798
33799 found_versioning=no
33800
33801
33802 if test $found_versioning = no ; then
33803 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33804echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
33805if test "${wx_cv_version_script+set}" = set; then
33806 echo $ECHO_N "(cached) $ECHO_C" >&6
33807else
33808
33809 echo "VER_1 { *; };" >conftest.sym
33810 echo "int main() { return 0; }" >conftest.cpp
33811
33812 if { ac_try='
33813 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33814 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33816 (eval $ac_try) 2>&5
33817 ac_status=$?
33818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33819 (exit $ac_status); }; } ; then
33820 if test -s conftest.stderr ; then
33821 wx_cv_version_script=no
33822 else
33823 wx_cv_version_script=yes
33824 fi
33825 else
33826 wx_cv_version_script=no
33827 fi
e5d4b470
MW
33828
33829 if test $wx_cv_version_script = yes
33830 then
33831 echo "struct B { virtual ~B() { } }; \
33832 struct D : public B { }; \
33833 void F() { D d; }" > conftest.cpp
33834
33835 if { ac_try='
33836 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33837 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33839 (eval $ac_try) 2>&5
33840 ac_status=$?
33841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33842 (exit $ac_status); }; } &&
33843 { ac_try='
33844 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33845 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33847 (eval $ac_try) 2>&5
33848 ac_status=$?
33849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33850 (exit $ac_status); }; }
33851 then
33852 if { ac_try='
33853 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33854 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33856 (eval $ac_try) 2>&5
33857 ac_status=$?
33858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33859 (exit $ac_status); }; }
33860 then
33861 wx_cv_version_script=yes
33862 else
33863 wx_cv_version_script=no
33864 fi
33865 fi
33866 fi
33867
a848cd7e 33868 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 33869 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
33870
33871fi
33872echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33873echo "${ECHO_T}$wx_cv_version_script" >&6
33874 if test $wx_cv_version_script = yes ; then
33875 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
33876 fi
33877 fi
33878
33879
33880 case "${host}" in
33881 *-*-linux* | *-*-gnu* )
33882 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 33883 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 33884 ;;
a848cd7e
SC
33885
33886 *-*-solaris2* )
33887 if test "$GCC" = yes ; then
c92ad099 33888 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
33889
33890 saveLdflags="$LDFLAGS"
33891 LDFLAGS="$saveLdflags -Wl,-rpath,/"
33892 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33893echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
33894 cat >conftest.$ac_ext <<_ACEOF
33895/* confdefs.h. */
33896_ACEOF
33897cat confdefs.h >>conftest.$ac_ext
33898cat >>conftest.$ac_ext <<_ACEOF
33899/* end confdefs.h. */
33900
33901int
33902main ()
33903{
33904
33905 ;
33906 return 0;
33907}
33908_ACEOF
33909rm -f conftest.$ac_objext conftest$ac_exeext
33910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33911 (eval $ac_link) 2>conftest.er1
a848cd7e 33912 ac_status=$?
ac1cb8d3
VS
33913 grep -v '^ *+' conftest.er1 >conftest.err
33914 rm -f conftest.er1
33915 cat conftest.err >&5
a848cd7e
SC
33916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33917 (exit $ac_status); } &&
bb9e79c0 33918 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33920 (eval $ac_try) 2>&5
33921 ac_status=$?
33922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33923 (exit $ac_status); }; } &&
33924 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33926 (eval $ac_try) 2>&5
33927 ac_status=$?
33928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33929 (exit $ac_status); }; }; then
33930
33931 echo "$as_me:$LINENO: result: yes" >&5
33932echo "${ECHO_T}yes" >&6
33933 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 33934 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
33935
33936else
33937 echo "$as_me: failed program was:" >&5
33938sed 's/^/| /' conftest.$ac_ext >&5
33939
33940
33941 echo "$as_me:$LINENO: result: no" >&5
33942echo "${ECHO_T}no" >&6
33943 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33944echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
33945 LDFLAGS="$saveLdflags -Wl,-R,/"
33946 cat >conftest.$ac_ext <<_ACEOF
33947/* confdefs.h. */
33948_ACEOF
33949cat confdefs.h >>conftest.$ac_ext
33950cat >>conftest.$ac_ext <<_ACEOF
33951/* end confdefs.h. */
33952
33953int
33954main ()
33955{
33956
33957 ;
33958 return 0;
33959}
33960_ACEOF
33961rm -f conftest.$ac_objext conftest$ac_exeext
33962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33963 (eval $ac_link) 2>conftest.er1
a848cd7e 33964 ac_status=$?
ac1cb8d3
VS
33965 grep -v '^ *+' conftest.er1 >conftest.err
33966 rm -f conftest.er1
33967 cat conftest.err >&5
a848cd7e
SC
33968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33969 (exit $ac_status); } &&
bb9e79c0 33970 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33972 (eval $ac_try) 2>&5
33973 ac_status=$?
33974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33975 (exit $ac_status); }; } &&
33976 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33978 (eval $ac_try) 2>&5
33979 ac_status=$?
33980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33981 (exit $ac_status); }; }; then
33982
ffa0583f 33983 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 33984echo "${ECHO_T}yes" >&6
ffa0583f
RL
33985 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
33986 WXCONFIG_RPATH="-Wl,-R,\$libdir"
33987
a848cd7e
SC
33988else
33989 echo "$as_me: failed program was:" >&5
33990sed 's/^/| /' conftest.$ac_ext >&5
33991
33992
33993 echo "$as_me:$LINENO: result: no" >&5
33994echo "${ECHO_T}no" >&6
33995
33996fi
ac1cb8d3
VS
33997rm -f conftest.err conftest.$ac_objext \
33998 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33999
34000fi
ac1cb8d3
VS
34001rm -f conftest.err conftest.$ac_objext \
34002 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34003 LDFLAGS="$saveLdflags"
34004 else
a848cd7e 34005 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 34006 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
34007 fi
34008 ;;
34009
cfda0ea8 34010 *-*-darwin* )
0caebc27
MW
34011 install_name_tool=`which install_name_tool`
34012 if test "$install_name_tool" -a -x "$install_name_tool"; then
34013 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
34014 cat <<EOF >change-install-names
a848cd7e
SC
34015#!/bin/sh
34016libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
34017inst_cmd="install_name_tool "
34018for i in \${libnames} ; do
34019 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
34020done
34021\${inst_cmd} \${3}
34022EOF
0caebc27
MW
34023 chmod +x change-install-names
34024 fi
a848cd7e
SC
34025 ;;
34026
34027 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
34028 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
34029 ;;
a848cd7e 34030
81f90336
MW
34031 *-*-hpux* )
34032 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
34033 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 34034 ;;
81f90336 34035
a848cd7e 34036 esac
ceec2216 34037
ffa0583f
RL
34038 if test $wxUSE_RPATH = "no"; then
34039 SAMPLES_RPATH_FLAG=''
34040 SAMPLES_RPATH_POSTLINK=''
34041 WXCONFIG_RPATH=''
34042 fi
34043
34044 SHARED=1
34045
34046else
34047
ceec2216
RL
34048 config_linkage_component="-static"
34049 SHARED=0
ffa0583f 34050
ceec2216 34051fi
a848cd7e 34052
a848cd7e 34053
ceec2216
RL
34054UNICODE=0
34055lib_unicode_suffix=
34056WX_CHARTYPE="ansi"
34057if test "$wxUSE_UNICODE" = "yes"; then
34058 lib_unicode_suffix=u
34059 WX_CHARTYPE="unicode"
34060 UNICODE=1
a848cd7e
SC
34061fi
34062
ceec2216
RL
34063lib_debug_suffix=
34064WX_DEBUGTYPE="release"
34065DEBUG_FLAG=0
34066if test "$wxUSE_DEBUG_FLAG" = "yes"; then
34067 lib_debug_suffix=d
34068 WX_DEBUGTYPE="debug"
34069 DEBUG_FLAG=1
34070fi
a848cd7e 34071
ceec2216
RL
34072WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
34073WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 34074
ceec2216
RL
34075DEBUG_INFO=0
34076if test "$wxUSE_DEBUG_INFO" = "yes"; then
34077 DEBUG_INFO=1
34078fi
a848cd7e 34079
ceec2216 34080WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 34081
ceec2216 34082TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 34083
ceec2216 34084TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 34085
ceec2216
RL
34086if test "$cross_compiling" = "yes"; then
34087 HOST_SUFFIX="-$host_alias"
34088 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
34089 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
34090fi
34091
dd21ced8 34092WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
34093if test "${TOOLKIT_DIR}" = "os2"; then
34094 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
34095else
34096 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
34097fi
ceec2216
RL
34098
34099
34100
1d1af5ea
DE
34101if test "$wxUSE_COCOA" = 1; then
34102
34103
34104 ac_ext=c
34105ac_cpp='$CPP $CPPFLAGS'
34106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34108ac_compiler_gnu=$ac_cv_c_compiler_gnu
34109
34110ac_ext=m
34111
34112 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
34113echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
34114 cat >conftest.$ac_ext <<_ACEOF
34115/* confdefs.h. */
34116_ACEOF
34117cat confdefs.h >>conftest.$ac_ext
34118cat >>conftest.$ac_ext <<_ACEOF
34119/* end confdefs.h. */
34120#include <AppKit/NSEvent.h>
34121#include <CoreFoundation/CoreFoundation.h>
34122
34123int
34124main ()
34125{
34126
34127 ;
34128 return 0;
34129}
34130_ACEOF
34131rm -f conftest.$ac_objext
34132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34133 (eval $ac_compile) 2>conftest.er1
34134 ac_status=$?
34135 grep -v '^ *+' conftest.er1 >conftest.err
34136 rm -f conftest.er1
34137 cat conftest.err >&5
34138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34139 (exit $ac_status); } &&
bb9e79c0 34140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
34141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34142 (eval $ac_try) 2>&5
34143 ac_status=$?
34144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34145 (exit $ac_status); }; } &&
34146 { ac_try='test -s conftest.$ac_objext'
34147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34148 (eval $ac_try) 2>&5
34149 ac_status=$?
34150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34151 (exit $ac_status); }; }; then
34152 echo "$as_me:$LINENO: result: no" >&5
34153echo "${ECHO_T}no" >&6
34154else
34155 echo "$as_me: failed program was:" >&5
34156sed 's/^/| /' conftest.$ac_ext >&5
34157
34158echo "$as_me:$LINENO: result: yes" >&5
34159echo "${ECHO_T}yes" >&6
34160 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
34161echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
34162 cat >conftest.$ac_ext <<_ACEOF
34163/* confdefs.h. */
34164_ACEOF
34165cat confdefs.h >>conftest.$ac_ext
34166cat >>conftest.$ac_ext <<_ACEOF
34167/* end confdefs.h. */
34168#define __Point__ 1
34169#include <AppKit/NSEvent.h>
34170#include <CoreFoundation/CoreFoundation.h>
34171
34172int
34173main ()
34174{
34175
34176 ;
34177 return 0;
34178}
34179_ACEOF
34180rm -f conftest.$ac_objext
34181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34182 (eval $ac_compile) 2>conftest.er1
34183 ac_status=$?
34184 grep -v '^ *+' conftest.er1 >conftest.err
34185 rm -f conftest.er1
34186 cat conftest.err >&5
34187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34188 (exit $ac_status); } &&
bb9e79c0 34189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
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); }; } &&
34195 { ac_try='test -s conftest.$ac_objext'
34196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34197 (eval $ac_try) 2>&5
34198 ac_status=$?
34199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34200 (exit $ac_status); }; }; then
34201 echo "$as_me:$LINENO: result: yes" >&5
34202echo "${ECHO_T}yes" >&6
34203 cat >>confdefs.h <<\_ACEOF
34204#define __Point__ 1
34205_ACEOF
34206
34207
34208else
34209 echo "$as_me: failed program was:" >&5
34210sed 's/^/| /' conftest.$ac_ext >&5
34211
34212{ { echo "$as_me:$LINENO: error: no
34213See \`config.log' for more details." >&5
34214echo "$as_me: error: no
34215See \`config.log' for more details." >&2;}
34216 { (exit 1); exit 1; }; }
34217
34218fi
34219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34220
34221fi
34222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
34223 ac_ext=cc
34224ac_cpp='$CXXCPP $CPPFLAGS'
34225ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34226ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34227ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1d1af5ea
DE
34228
34229fi
34230
a848cd7e 34231if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
34232 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
34233 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 34234
a848cd7e 34235 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
34236
34237 # Extract the first word of "Rez", so it can be a program name with args.
34238set dummy Rez; ac_word=$2
34239echo "$as_me:$LINENO: checking for $ac_word" >&5
34240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 34241if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
34242 echo $ECHO_N "(cached) $ECHO_C" >&6
34243else
8ced02f6
DE
34244 if test -n "$REZ"; then
34245 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
34246else
34247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34248for as_dir in $PATH
34249do
34250 IFS=$as_save_IFS
34251 test -z "$as_dir" && as_dir=.
34252 for ac_exec_ext in '' $ac_executable_extensions; do
34253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 34254 ac_cv_prog_REZ="Rez"
a848cd7e
SC
34255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34256 break 2
34257 fi
34258done
34259done
34260
8ced02f6 34261 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
34262fi
34263fi
8ced02f6
DE
34264REZ=$ac_cv_prog_REZ
34265if test -n "$REZ"; then
34266 echo "$as_me:$LINENO: result: $REZ" >&5
34267echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
34268else
34269 echo "$as_me:$LINENO: result: no" >&5
34270echo "${ECHO_T}no" >&6
34271fi
34272
34273 # Extract the first word of "DeRez", so it can be a program name with args.
34274set dummy DeRez; ac_word=$2
34275echo "$as_me:$LINENO: checking for $ac_word" >&5
34276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34277if test "${ac_cv_prog_DEREZ+set}" = set; then
34278 echo $ECHO_N "(cached) $ECHO_C" >&6
34279else
34280 if test -n "$DEREZ"; then
34281 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
34282else
34283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34284for as_dir in $PATH
34285do
34286 IFS=$as_save_IFS
34287 test -z "$as_dir" && as_dir=.
34288 for ac_exec_ext in '' $ac_executable_extensions; do
34289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34290 ac_cv_prog_DEREZ="DeRez"
34291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34292 break 2
34293 fi
34294done
34295done
34296
34297 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
34298fi
34299fi
34300DEREZ=$ac_cv_prog_DEREZ
34301if test -n "$DEREZ"; then
34302 echo "$as_me:$LINENO: result: $DEREZ" >&5
34303echo "${ECHO_T}$DEREZ" >&6
34304else
34305 echo "$as_me:$LINENO: result: no" >&5
34306echo "${ECHO_T}no" >&6
34307fi
34308
34309 # Extract the first word of "SetFile", so it can be a program name with args.
34310set dummy SetFile; ac_word=$2
34311echo "$as_me:$LINENO: checking for $ac_word" >&5
34312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34313if test "${ac_cv_prog_SETFILE+set}" = set; then
34314 echo $ECHO_N "(cached) $ECHO_C" >&6
34315else
34316 if test -n "$SETFILE"; then
34317 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
34318else
34319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34320for as_dir in $PATH
34321do
34322 IFS=$as_save_IFS
34323 test -z "$as_dir" && as_dir=.
34324 for ac_exec_ext in '' $ac_executable_extensions; do
34325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34326 ac_cv_prog_SETFILE="SetFile"
34327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34328 break 2
34329 fi
34330done
34331done
34332
34333 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
34334fi
34335fi
34336SETFILE=$ac_cv_prog_SETFILE
34337if test -n "$SETFILE"; then
34338 echo "$as_me:$LINENO: result: $SETFILE" >&5
34339echo "${ECHO_T}$SETFILE" >&6
34340else
34341 echo "$as_me:$LINENO: result: no" >&5
34342echo "${ECHO_T}no" >&6
34343fi
34344
34345
34346 MACSETFILE="\$(SETFILE)"
34347
34348 if test "$wxUSE_MAC" = 1; then
8ced02f6 34349 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
34350 RESCOMP="$REZ"
34351 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 34352 else
004ee6da
RL
34353 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
34354 RESCOMP="echo -n \| $REZ"
34355 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 34356 fi
004ee6da 34357
a848cd7e 34358else
ffa0583f 34359 MACSETFILE="@true"
a848cd7e 34360
8ced02f6 34361 if test "$wxUSE_PM" = 1; then
004ee6da
RL
34362 RESCOMP="emxbind"
34363 WXCONFIG_RESFLAGS="-ep"
34364
34365 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 34366 else
8ced02f6 34367 POSTLINK_COMMAND="@true"
a848cd7e 34368 fi
004ee6da 34369
a848cd7e
SC
34370fi
34371
34372
34373
34374echo "$as_me:$LINENO: checking for mode_t" >&5
34375echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
34376if test "${ac_cv_type_mode_t+set}" = set; then
34377 echo $ECHO_N "(cached) $ECHO_C" >&6
34378else
34379 cat >conftest.$ac_ext <<_ACEOF
34380/* confdefs.h. */
34381_ACEOF
34382cat confdefs.h >>conftest.$ac_ext
34383cat >>conftest.$ac_ext <<_ACEOF
34384/* end confdefs.h. */
34385$ac_includes_default
34386int
34387main ()
34388{
34389if ((mode_t *) 0)
34390 return 0;
34391if (sizeof (mode_t))
34392 return 0;
34393 ;
34394 return 0;
34395}
34396_ACEOF
34397rm -f conftest.$ac_objext
34398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34399 (eval $ac_compile) 2>conftest.er1
a848cd7e 34400 ac_status=$?
ac1cb8d3
VS
34401 grep -v '^ *+' conftest.er1 >conftest.err
34402 rm -f conftest.er1
34403 cat conftest.err >&5
a848cd7e
SC
34404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34405 (exit $ac_status); } &&
bb9e79c0 34406 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34408 (eval $ac_try) 2>&5
34409 ac_status=$?
34410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34411 (exit $ac_status); }; } &&
34412 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34414 (eval $ac_try) 2>&5
34415 ac_status=$?
34416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34417 (exit $ac_status); }; }; then
34418 ac_cv_type_mode_t=yes
34419else
34420 echo "$as_me: failed program was:" >&5
34421sed 's/^/| /' conftest.$ac_ext >&5
34422
34423ac_cv_type_mode_t=no
34424fi
ac1cb8d3 34425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34426fi
34427echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34428echo "${ECHO_T}$ac_cv_type_mode_t" >&6
34429if test $ac_cv_type_mode_t = yes; then
34430 :
34431else
34432
34433cat >>confdefs.h <<_ACEOF
34434#define mode_t int
34435_ACEOF
34436
34437fi
34438
34439echo "$as_me:$LINENO: checking for off_t" >&5
34440echo $ECHO_N "checking for off_t... $ECHO_C" >&6
34441if test "${ac_cv_type_off_t+set}" = set; then
34442 echo $ECHO_N "(cached) $ECHO_C" >&6
34443else
34444 cat >conftest.$ac_ext <<_ACEOF
34445/* confdefs.h. */
34446_ACEOF
34447cat confdefs.h >>conftest.$ac_ext
34448cat >>conftest.$ac_ext <<_ACEOF
34449/* end confdefs.h. */
34450$ac_includes_default
34451int
34452main ()
34453{
34454if ((off_t *) 0)
34455 return 0;
34456if (sizeof (off_t))
34457 return 0;
34458 ;
34459 return 0;
34460}
34461_ACEOF
34462rm -f conftest.$ac_objext
34463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34464 (eval $ac_compile) 2>conftest.er1
a848cd7e 34465 ac_status=$?
ac1cb8d3
VS
34466 grep -v '^ *+' conftest.er1 >conftest.err
34467 rm -f conftest.er1
34468 cat conftest.err >&5
a848cd7e
SC
34469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34470 (exit $ac_status); } &&
bb9e79c0 34471 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34473 (eval $ac_try) 2>&5
34474 ac_status=$?
34475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34476 (exit $ac_status); }; } &&
34477 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34479 (eval $ac_try) 2>&5
34480 ac_status=$?
34481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34482 (exit $ac_status); }; }; then
34483 ac_cv_type_off_t=yes
34484else
34485 echo "$as_me: failed program was:" >&5
34486sed 's/^/| /' conftest.$ac_ext >&5
34487
34488ac_cv_type_off_t=no
34489fi
ac1cb8d3 34490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34491fi
34492echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34493echo "${ECHO_T}$ac_cv_type_off_t" >&6
34494if test $ac_cv_type_off_t = yes; then
34495 :
34496else
34497
34498cat >>confdefs.h <<_ACEOF
34499#define off_t long
34500_ACEOF
34501
34502fi
34503
34504echo "$as_me:$LINENO: checking for pid_t" >&5
34505echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
34506if test "${ac_cv_type_pid_t+set}" = set; then
34507 echo $ECHO_N "(cached) $ECHO_C" >&6
34508else
34509 cat >conftest.$ac_ext <<_ACEOF
34510/* confdefs.h. */
34511_ACEOF
34512cat confdefs.h >>conftest.$ac_ext
34513cat >>conftest.$ac_ext <<_ACEOF
34514/* end confdefs.h. */
34515$ac_includes_default
34516int
34517main ()
34518{
34519if ((pid_t *) 0)
34520 return 0;
34521if (sizeof (pid_t))
34522 return 0;
34523 ;
34524 return 0;
34525}
34526_ACEOF
34527rm -f conftest.$ac_objext
34528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34529 (eval $ac_compile) 2>conftest.er1
a848cd7e 34530 ac_status=$?
ac1cb8d3
VS
34531 grep -v '^ *+' conftest.er1 >conftest.err
34532 rm -f conftest.er1
34533 cat conftest.err >&5
a848cd7e
SC
34534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34535 (exit $ac_status); } &&
bb9e79c0 34536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34538 (eval $ac_try) 2>&5
34539 ac_status=$?
34540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34541 (exit $ac_status); }; } &&
34542 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34544 (eval $ac_try) 2>&5
34545 ac_status=$?
34546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34547 (exit $ac_status); }; }; then
34548 ac_cv_type_pid_t=yes
34549else
34550 echo "$as_me: failed program was:" >&5
34551sed 's/^/| /' conftest.$ac_ext >&5
34552
34553ac_cv_type_pid_t=no
34554fi
ac1cb8d3 34555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34556fi
34557echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34558echo "${ECHO_T}$ac_cv_type_pid_t" >&6
34559if test $ac_cv_type_pid_t = yes; then
34560 :
34561else
34562
34563cat >>confdefs.h <<_ACEOF
34564#define pid_t int
34565_ACEOF
34566
34567fi
34568
34569echo "$as_me:$LINENO: checking for size_t" >&5
34570echo $ECHO_N "checking for size_t... $ECHO_C" >&6
34571if test "${ac_cv_type_size_t+set}" = set; then
34572 echo $ECHO_N "(cached) $ECHO_C" >&6
34573else
34574 cat >conftest.$ac_ext <<_ACEOF
34575/* confdefs.h. */
34576_ACEOF
34577cat confdefs.h >>conftest.$ac_ext
34578cat >>conftest.$ac_ext <<_ACEOF
34579/* end confdefs.h. */
34580$ac_includes_default
34581int
34582main ()
34583{
34584if ((size_t *) 0)
34585 return 0;
34586if (sizeof (size_t))
34587 return 0;
34588 ;
34589 return 0;
34590}
34591_ACEOF
34592rm -f conftest.$ac_objext
34593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34594 (eval $ac_compile) 2>conftest.er1
a848cd7e 34595 ac_status=$?
ac1cb8d3
VS
34596 grep -v '^ *+' conftest.er1 >conftest.err
34597 rm -f conftest.er1
34598 cat conftest.err >&5
a848cd7e
SC
34599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34600 (exit $ac_status); } &&
bb9e79c0 34601 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34603 (eval $ac_try) 2>&5
34604 ac_status=$?
34605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34606 (exit $ac_status); }; } &&
34607 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34609 (eval $ac_try) 2>&5
34610 ac_status=$?
34611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34612 (exit $ac_status); }; }; then
34613 ac_cv_type_size_t=yes
34614else
34615 echo "$as_me: failed program was:" >&5
34616sed 's/^/| /' conftest.$ac_ext >&5
34617
34618ac_cv_type_size_t=no
34619fi
ac1cb8d3 34620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34621fi
34622echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34623echo "${ECHO_T}$ac_cv_type_size_t" >&6
34624if test $ac_cv_type_size_t = yes; then
34625 :
34626else
34627
34628cat >>confdefs.h <<_ACEOF
34629#define size_t unsigned
34630_ACEOF
34631
34632fi
34633
34634echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34635echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34636if test "${ac_cv_type_uid_t+set}" = set; then
34637 echo $ECHO_N "(cached) $ECHO_C" >&6
34638else
34639 cat >conftest.$ac_ext <<_ACEOF
34640/* confdefs.h. */
34641_ACEOF
34642cat confdefs.h >>conftest.$ac_ext
34643cat >>conftest.$ac_ext <<_ACEOF
34644/* end confdefs.h. */
34645#include <sys/types.h>
34646
34647_ACEOF
34648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34649 $EGREP "uid_t" >/dev/null 2>&1; then
34650 ac_cv_type_uid_t=yes
34651else
34652 ac_cv_type_uid_t=no
34653fi
34654rm -f conftest*
34655
34656fi
34657echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34658echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34659if test $ac_cv_type_uid_t = no; then
34660
34661cat >>confdefs.h <<\_ACEOF
34662#define uid_t int
34663_ACEOF
34664
34665
34666cat >>confdefs.h <<\_ACEOF
34667#define gid_t int
34668_ACEOF
34669
34670fi
34671
34672
d51253e8
RL
34673echo "$as_me:$LINENO: checking for ssize_t" >&5
34674echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
34675if test "${ac_cv_type_ssize_t+set}" = set; then
34676 echo $ECHO_N "(cached) $ECHO_C" >&6
34677else
34678 cat >conftest.$ac_ext <<_ACEOF
34679/* confdefs.h. */
34680_ACEOF
34681cat confdefs.h >>conftest.$ac_ext
34682cat >>conftest.$ac_ext <<_ACEOF
34683/* end confdefs.h. */
34684$ac_includes_default
34685int
34686main ()
34687{
34688if ((ssize_t *) 0)
34689 return 0;
34690if (sizeof (ssize_t))
34691 return 0;
34692 ;
34693 return 0;
34694}
34695_ACEOF
34696rm -f conftest.$ac_objext
34697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34698 (eval $ac_compile) 2>conftest.er1
34699 ac_status=$?
34700 grep -v '^ *+' conftest.er1 >conftest.err
34701 rm -f conftest.er1
34702 cat conftest.err >&5
34703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34704 (exit $ac_status); } &&
bb9e79c0 34705 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d51253e8
RL
34706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34707 (eval $ac_try) 2>&5
34708 ac_status=$?
34709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34710 (exit $ac_status); }; } &&
34711 { ac_try='test -s conftest.$ac_objext'
34712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34713 (eval $ac_try) 2>&5
34714 ac_status=$?
34715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34716 (exit $ac_status); }; }; then
34717 ac_cv_type_ssize_t=yes
34718else
34719 echo "$as_me: failed program was:" >&5
34720sed 's/^/| /' conftest.$ac_ext >&5
34721
34722ac_cv_type_ssize_t=no
34723fi
34724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34725fi
34726echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34727echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
34728if test $ac_cv_type_ssize_t = yes; then
34729
34730cat >>confdefs.h <<_ACEOF
34731#define HAVE_SSIZE_T 1
34732_ACEOF
34733
34734
34735fi
34736
34737
a848cd7e
SC
34738echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34739echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
34740if test "${wx_cv_size_t_is_uint+set}" = set; then
34741 echo $ECHO_N "(cached) $ECHO_C" >&6
34742else
34743
34744 cat >conftest.$ac_ext <<_ACEOF
34745/* confdefs.h. */
34746_ACEOF
34747cat confdefs.h >>conftest.$ac_ext
34748cat >>conftest.$ac_ext <<_ACEOF
34749/* end confdefs.h. */
34750#include <stddef.h>
34751int
34752main ()
34753{
34754
34755 return 0; }
34756
34757 struct Foo { void foo(size_t); void foo(unsigned int); };
34758
34759 int bar() {
34760
34761 ;
34762 return 0;
34763}
34764_ACEOF
34765rm -f conftest.$ac_objext
34766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34767 (eval $ac_compile) 2>conftest.er1
a848cd7e 34768 ac_status=$?
ac1cb8d3
VS
34769 grep -v '^ *+' conftest.er1 >conftest.err
34770 rm -f conftest.er1
34771 cat conftest.err >&5
a848cd7e
SC
34772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34773 (exit $ac_status); } &&
bb9e79c0 34774 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34776 (eval $ac_try) 2>&5
34777 ac_status=$?
34778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34779 (exit $ac_status); }; } &&
34780 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34782 (eval $ac_try) 2>&5
34783 ac_status=$?
34784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34785 (exit $ac_status); }; }; then
34786 wx_cv_size_t_is_uint=no
34787else
34788 echo "$as_me: failed program was:" >&5
34789sed 's/^/| /' conftest.$ac_ext >&5
34790
34791wx_cv_size_t_is_uint=yes
34792
34793fi
ac1cb8d3 34794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34795
34796
34797fi
34798echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34799echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
34800
34801if test "$wx_cv_size_t_is_uint" = "yes"; then
34802 cat >>confdefs.h <<\_ACEOF
34803#define wxSIZE_T_IS_UINT 1
34804_ACEOF
34805
34806else
34807 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34808echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
34809if test "${wx_cv_size_t_is_ulong+set}" = set; then
34810 echo $ECHO_N "(cached) $ECHO_C" >&6
34811else
34812 cat >conftest.$ac_ext <<_ACEOF
34813/* confdefs.h. */
34814_ACEOF
34815cat confdefs.h >>conftest.$ac_ext
34816cat >>conftest.$ac_ext <<_ACEOF
34817/* end confdefs.h. */
34818#include <stddef.h>
34819int
34820main ()
34821{
34822
34823 return 0; }
34824
34825 struct Foo { void foo(size_t); void foo(unsigned long); };
34826
34827 int bar() {
34828
34829 ;
34830 return 0;
34831}
34832_ACEOF
34833rm -f conftest.$ac_objext
34834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34835 (eval $ac_compile) 2>conftest.er1
a848cd7e 34836 ac_status=$?
ac1cb8d3
VS
34837 grep -v '^ *+' conftest.er1 >conftest.err
34838 rm -f conftest.er1
34839 cat conftest.err >&5
a848cd7e
SC
34840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34841 (exit $ac_status); } &&
bb9e79c0 34842 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34844 (eval $ac_try) 2>&5
34845 ac_status=$?
34846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34847 (exit $ac_status); }; } &&
34848 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34850 (eval $ac_try) 2>&5
34851 ac_status=$?
34852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34853 (exit $ac_status); }; }; then
34854 wx_cv_size_t_is_ulong=no
34855else
34856 echo "$as_me: failed program was:" >&5
34857sed 's/^/| /' conftest.$ac_ext >&5
34858
34859wx_cv_size_t_is_ulong=yes
34860
34861fi
ac1cb8d3 34862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34863
34864fi
34865echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34866echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
34867
34868 if test "$wx_cv_size_t_is_ulong" = "yes"; then
34869 cat >>confdefs.h <<\_ACEOF
34870#define wxSIZE_T_IS_ULONG 1
34871_ACEOF
34872
34873 fi
34874fi
34875
a848cd7e
SC
34876
34877echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34878echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
34879if test "${wx_cv_struct_pw_gecos+set}" = set; then
34880 echo $ECHO_N "(cached) $ECHO_C" >&6
34881else
34882
34883 cat >conftest.$ac_ext <<_ACEOF
34884/* confdefs.h. */
34885_ACEOF
34886cat confdefs.h >>conftest.$ac_ext
34887cat >>conftest.$ac_ext <<_ACEOF
34888/* end confdefs.h. */
34889#include <pwd.h>
34890int
34891main ()
34892{
34893
34894 char *p;
34895 struct passwd *pw;
34896 p = pw->pw_gecos;
34897
34898 ;
34899 return 0;
34900}
34901_ACEOF
34902rm -f conftest.$ac_objext
34903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34904 (eval $ac_compile) 2>conftest.er1
a848cd7e 34905 ac_status=$?
ac1cb8d3
VS
34906 grep -v '^ *+' conftest.er1 >conftest.err
34907 rm -f conftest.er1
34908 cat conftest.err >&5
a848cd7e
SC
34909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34910 (exit $ac_status); } &&
bb9e79c0 34911 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34913 (eval $ac_try) 2>&5
34914 ac_status=$?
34915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34916 (exit $ac_status); }; } &&
34917 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34919 (eval $ac_try) 2>&5
34920 ac_status=$?
34921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34922 (exit $ac_status); }; }; then
34923
34924 wx_cv_struct_pw_gecos=yes
34925
34926else
34927 echo "$as_me: failed program was:" >&5
34928sed 's/^/| /' conftest.$ac_ext >&5
34929
34930
34931 wx_cv_struct_pw_gecos=no
34932
34933
34934fi
ac1cb8d3 34935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34936
34937
34938fi
34939echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34940echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
34941
34942if test "$wx_cv_struct_pw_gecos" = "yes"; then
34943 cat >>confdefs.h <<\_ACEOF
34944#define HAVE_PW_GECOS 1
34945_ACEOF
34946
34947fi
34948
34949
47a7e797 34950if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
34951 cat >>confdefs.h <<\_ACEOF
34952#define wxUSE_WCHAR_T 1
34953_ACEOF
34954
34955
34956 WCSLEN_FOUND=0
34957 WCHAR_LINK=
34958
34959for ac_func in wcslen
34960do
34961as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34962echo "$as_me:$LINENO: checking for $ac_func" >&5
34963echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34964if eval "test \"\${$as_ac_var+set}\" = set"; then
34965 echo $ECHO_N "(cached) $ECHO_C" >&6
34966else
34967 cat >conftest.$ac_ext <<_ACEOF
34968/* confdefs.h. */
34969_ACEOF
34970cat confdefs.h >>conftest.$ac_ext
34971cat >>conftest.$ac_ext <<_ACEOF
34972/* end confdefs.h. */
ac1cb8d3
VS
34973/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34975#define $ac_func innocuous_$ac_func
34976
a848cd7e
SC
34977/* System header to define __stub macros and hopefully few prototypes,
34978 which can conflict with char $ac_func (); below.
34979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34980 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34981
a848cd7e
SC
34982#ifdef __STDC__
34983# include <limits.h>
34984#else
34985# include <assert.h>
34986#endif
ac1cb8d3
VS
34987
34988#undef $ac_func
34989
a848cd7e
SC
34990/* Override any gcc2 internal prototype to avoid an error. */
34991#ifdef __cplusplus
34992extern "C"
34993{
34994#endif
34995/* We use char because int might match the return type of a gcc2
34996 builtin and then its argument prototype would still apply. */
34997char $ac_func ();
34998/* The GNU C library defines this for functions which it implements
34999 to always fail with ENOSYS. Some functions are actually named
35000 something starting with __ and the normal name is an alias. */
35001#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35002choke me
35003#else
35004char (*f) () = $ac_func;
35005#endif
35006#ifdef __cplusplus
35007}
35008#endif
35009
35010int
35011main ()
35012{
35013return f != $ac_func;
35014 ;
35015 return 0;
35016}
35017_ACEOF
35018rm -f conftest.$ac_objext conftest$ac_exeext
35019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35020 (eval $ac_link) 2>conftest.er1
a848cd7e 35021 ac_status=$?
ac1cb8d3
VS
35022 grep -v '^ *+' conftest.er1 >conftest.err
35023 rm -f conftest.er1
35024 cat conftest.err >&5
a848cd7e
SC
35025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35026 (exit $ac_status); } &&
bb9e79c0 35027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35029 (eval $ac_try) 2>&5
35030 ac_status=$?
35031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35032 (exit $ac_status); }; } &&
35033 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35035 (eval $ac_try) 2>&5
35036 ac_status=$?
35037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35038 (exit $ac_status); }; }; then
35039 eval "$as_ac_var=yes"
35040else
35041 echo "$as_me: failed program was:" >&5
35042sed 's/^/| /' conftest.$ac_ext >&5
35043
35044eval "$as_ac_var=no"
35045fi
ac1cb8d3
VS
35046rm -f conftest.err conftest.$ac_objext \
35047 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35048fi
35049echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35050echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35051if test `eval echo '${'$as_ac_var'}'` = yes; then
35052 cat >>confdefs.h <<_ACEOF
35053#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35054_ACEOF
35055 WCSLEN_FOUND=1
35056fi
35057done
35058
35059
35060 if test "$WCSLEN_FOUND" = 0; then
35061 if test "$TOOLKIT" = "MSW"; then
35062 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
35063echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
35064if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
35065 echo $ECHO_N "(cached) $ECHO_C" >&6
35066else
35067 ac_check_lib_save_LIBS=$LIBS
35068LIBS="-lmsvcrt $LIBS"
35069cat >conftest.$ac_ext <<_ACEOF
35070/* confdefs.h. */
35071_ACEOF
35072cat confdefs.h >>conftest.$ac_ext
35073cat >>conftest.$ac_ext <<_ACEOF
35074/* end confdefs.h. */
35075
35076/* Override any gcc2 internal prototype to avoid an error. */
35077#ifdef __cplusplus
35078extern "C"
35079#endif
35080/* We use char because int might match the return type of a gcc2
35081 builtin and then its argument prototype would still apply. */
35082char wcslen ();
35083int
35084main ()
35085{
35086wcslen ();
35087 ;
35088 return 0;
35089}
35090_ACEOF
35091rm -f conftest.$ac_objext conftest$ac_exeext
35092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35093 (eval $ac_link) 2>conftest.er1
a848cd7e 35094 ac_status=$?
ac1cb8d3
VS
35095 grep -v '^ *+' conftest.er1 >conftest.err
35096 rm -f conftest.er1
35097 cat conftest.err >&5
a848cd7e
SC
35098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35099 (exit $ac_status); } &&
bb9e79c0 35100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35102 (eval $ac_try) 2>&5
35103 ac_status=$?
35104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35105 (exit $ac_status); }; } &&
35106 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35108 (eval $ac_try) 2>&5
35109 ac_status=$?
35110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35111 (exit $ac_status); }; }; then
35112 ac_cv_lib_msvcrt_wcslen=yes
35113else
35114 echo "$as_me: failed program was:" >&5
35115sed 's/^/| /' conftest.$ac_ext >&5
35116
35117ac_cv_lib_msvcrt_wcslen=no
35118fi
ac1cb8d3
VS
35119rm -f conftest.err conftest.$ac_objext \
35120 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35121LIBS=$ac_check_lib_save_LIBS
35122fi
35123echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
35124echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
35125if test $ac_cv_lib_msvcrt_wcslen = yes; then
35126 WCHAR_OK=1
35127fi
35128
35129 else
35130 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
35131echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
35132if test "${ac_cv_lib_w_wcslen+set}" = set; then
35133 echo $ECHO_N "(cached) $ECHO_C" >&6
35134else
35135 ac_check_lib_save_LIBS=$LIBS
35136LIBS="-lw $LIBS"
35137cat >conftest.$ac_ext <<_ACEOF
35138/* confdefs.h. */
35139_ACEOF
35140cat confdefs.h >>conftest.$ac_ext
35141cat >>conftest.$ac_ext <<_ACEOF
35142/* end confdefs.h. */
35143
35144/* Override any gcc2 internal prototype to avoid an error. */
35145#ifdef __cplusplus
35146extern "C"
35147#endif
35148/* We use char because int might match the return type of a gcc2
35149 builtin and then its argument prototype would still apply. */
35150char wcslen ();
35151int
35152main ()
35153{
35154wcslen ();
35155 ;
35156 return 0;
35157}
35158_ACEOF
35159rm -f conftest.$ac_objext conftest$ac_exeext
35160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35161 (eval $ac_link) 2>conftest.er1
a848cd7e 35162 ac_status=$?
ac1cb8d3
VS
35163 grep -v '^ *+' conftest.er1 >conftest.err
35164 rm -f conftest.er1
35165 cat conftest.err >&5
a848cd7e
SC
35166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35167 (exit $ac_status); } &&
bb9e79c0 35168 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35170 (eval $ac_try) 2>&5
35171 ac_status=$?
35172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35173 (exit $ac_status); }; } &&
35174 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35176 (eval $ac_try) 2>&5
35177 ac_status=$?
35178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35179 (exit $ac_status); }; }; then
35180 ac_cv_lib_w_wcslen=yes
35181else
35182 echo "$as_me: failed program was:" >&5
35183sed 's/^/| /' conftest.$ac_ext >&5
35184
35185ac_cv_lib_w_wcslen=no
35186fi
ac1cb8d3
VS
35187rm -f conftest.err conftest.$ac_objext \
35188 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35189LIBS=$ac_check_lib_save_LIBS
35190fi
35191echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
35192echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
35193if test $ac_cv_lib_w_wcslen = yes; then
35194
35195 WCHAR_LINK=" -lw"
35196 WCSLEN_FOUND=1
35197
35198fi
35199
35200 fi
35201 fi
35202
35203 if test "$WCSLEN_FOUND" = 1; then
35204 cat >>confdefs.h <<\_ACEOF
35205#define HAVE_WCSLEN 1
35206_ACEOF
35207
35208 fi
35209
efdf6afe 35210 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 35211 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
35212 fi
35213
efdf6afe
VZ
35214 echo "$as_me:$LINENO: checking for mbstate_t" >&5
35215echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
35216if test "${ac_cv_type_mbstate_t+set}" = set; then
35217 echo $ECHO_N "(cached) $ECHO_C" >&6
35218else
35219 cat >conftest.$ac_ext <<_ACEOF
35220/* confdefs.h. */
35221_ACEOF
35222cat confdefs.h >>conftest.$ac_ext
35223cat >>conftest.$ac_ext <<_ACEOF
35224/* end confdefs.h. */
35225#include <wchar.h>
35226
35227int
35228main ()
35229{
35230if ((mbstate_t *) 0)
35231 return 0;
35232if (sizeof (mbstate_t))
35233 return 0;
35234 ;
35235 return 0;
35236}
35237_ACEOF
35238rm -f conftest.$ac_objext
35239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35240 (eval $ac_compile) 2>conftest.er1
35241 ac_status=$?
35242 grep -v '^ *+' conftest.er1 >conftest.err
35243 rm -f conftest.er1
35244 cat conftest.err >&5
35245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35246 (exit $ac_status); } &&
bb9e79c0 35247 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
efdf6afe
VZ
35248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35249 (eval $ac_try) 2>&5
35250 ac_status=$?
35251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35252 (exit $ac_status); }; } &&
35253 { ac_try='test -s conftest.$ac_objext'
35254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35255 (eval $ac_try) 2>&5
35256 ac_status=$?
35257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35258 (exit $ac_status); }; }; then
35259 ac_cv_type_mbstate_t=yes
35260else
35261 echo "$as_me: failed program was:" >&5
35262sed 's/^/| /' conftest.$ac_ext >&5
35263
35264ac_cv_type_mbstate_t=no
35265fi
35266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35267fi
35268echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
35269echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
35270if test $ac_cv_type_mbstate_t = yes; then
35271
35272cat >>confdefs.h <<_ACEOF
35273#define HAVE_MBSTATE_T 1
35274_ACEOF
35275
a848cd7e
SC
35276
35277for ac_func in wcsrtombs
35278do
35279as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35280echo "$as_me:$LINENO: checking for $ac_func" >&5
35281echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35282if eval "test \"\${$as_ac_var+set}\" = set"; then
35283 echo $ECHO_N "(cached) $ECHO_C" >&6
35284else
35285 cat >conftest.$ac_ext <<_ACEOF
35286/* confdefs.h. */
35287_ACEOF
35288cat confdefs.h >>conftest.$ac_ext
35289cat >>conftest.$ac_ext <<_ACEOF
35290/* end confdefs.h. */
ac1cb8d3
VS
35291/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35293#define $ac_func innocuous_$ac_func
35294
a848cd7e
SC
35295/* System header to define __stub macros and hopefully few prototypes,
35296 which can conflict with char $ac_func (); below.
35297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35298 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35299
a848cd7e
SC
35300#ifdef __STDC__
35301# include <limits.h>
35302#else
35303# include <assert.h>
35304#endif
ac1cb8d3
VS
35305
35306#undef $ac_func
35307
a848cd7e
SC
35308/* Override any gcc2 internal prototype to avoid an error. */
35309#ifdef __cplusplus
35310extern "C"
35311{
35312#endif
35313/* We use char because int might match the return type of a gcc2
35314 builtin and then its argument prototype would still apply. */
35315char $ac_func ();
35316/* The GNU C library defines this for functions which it implements
35317 to always fail with ENOSYS. Some functions are actually named
35318 something starting with __ and the normal name is an alias. */
35319#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35320choke me
35321#else
35322char (*f) () = $ac_func;
35323#endif
35324#ifdef __cplusplus
35325}
35326#endif
35327
35328int
35329main ()
35330{
35331return f != $ac_func;
35332 ;
35333 return 0;
35334}
35335_ACEOF
35336rm -f conftest.$ac_objext conftest$ac_exeext
35337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35338 (eval $ac_link) 2>conftest.er1
a848cd7e 35339 ac_status=$?
ac1cb8d3
VS
35340 grep -v '^ *+' conftest.er1 >conftest.err
35341 rm -f conftest.er1
35342 cat conftest.err >&5
a848cd7e
SC
35343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35344 (exit $ac_status); } &&
bb9e79c0 35345 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35347 (eval $ac_try) 2>&5
35348 ac_status=$?
35349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35350 (exit $ac_status); }; } &&
35351 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35353 (eval $ac_try) 2>&5
35354 ac_status=$?
35355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35356 (exit $ac_status); }; }; then
35357 eval "$as_ac_var=yes"
35358else
35359 echo "$as_me: failed program was:" >&5
35360sed 's/^/| /' conftest.$ac_ext >&5
35361
35362eval "$as_ac_var=no"
35363fi
ac1cb8d3
VS
35364rm -f conftest.err conftest.$ac_objext \
35365 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35366fi
35367echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35368echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35369if test `eval echo '${'$as_ac_var'}'` = yes; then
35370 cat >>confdefs.h <<_ACEOF
35371#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35372_ACEOF
35373
35374fi
35375done
35376
efdf6afe
VZ
35377fi
35378
a848cd7e
SC
35379else
35380 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
35381echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
35382fi
35383
a848cd7e 35384
4a767dd5
VZ
35385
35386for ac_func in snprintf vsnprintf
a848cd7e
SC
35387do
35388as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35389echo "$as_me:$LINENO: checking for $ac_func" >&5
35390echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35391if eval "test \"\${$as_ac_var+set}\" = set"; then
35392 echo $ECHO_N "(cached) $ECHO_C" >&6
35393else
35394 cat >conftest.$ac_ext <<_ACEOF
35395/* confdefs.h. */
35396_ACEOF
35397cat confdefs.h >>conftest.$ac_ext
35398cat >>conftest.$ac_ext <<_ACEOF
35399/* end confdefs.h. */
ac1cb8d3
VS
35400/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35402#define $ac_func innocuous_$ac_func
35403
a848cd7e
SC
35404/* System header to define __stub macros and hopefully few prototypes,
35405 which can conflict with char $ac_func (); below.
35406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35407 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35408
a848cd7e
SC
35409#ifdef __STDC__
35410# include <limits.h>
35411#else
35412# include <assert.h>
35413#endif
ac1cb8d3
VS
35414
35415#undef $ac_func
35416
a848cd7e
SC
35417/* Override any gcc2 internal prototype to avoid an error. */
35418#ifdef __cplusplus
35419extern "C"
35420{
35421#endif
35422/* We use char because int might match the return type of a gcc2
35423 builtin and then its argument prototype would still apply. */
35424char $ac_func ();
35425/* The GNU C library defines this for functions which it implements
35426 to always fail with ENOSYS. Some functions are actually named
35427 something starting with __ and the normal name is an alias. */
35428#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35429choke me
35430#else
35431char (*f) () = $ac_func;
35432#endif
35433#ifdef __cplusplus
35434}
35435#endif
35436
35437int
35438main ()
35439{
35440return f != $ac_func;
35441 ;
35442 return 0;
35443}
35444_ACEOF
35445rm -f conftest.$ac_objext conftest$ac_exeext
35446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35447 (eval $ac_link) 2>conftest.er1
a848cd7e 35448 ac_status=$?
ac1cb8d3
VS
35449 grep -v '^ *+' conftest.er1 >conftest.err
35450 rm -f conftest.er1
35451 cat conftest.err >&5
a848cd7e
SC
35452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35453 (exit $ac_status); } &&
bb9e79c0 35454 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35456 (eval $ac_try) 2>&5
35457 ac_status=$?
35458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35459 (exit $ac_status); }; } &&
35460 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35462 (eval $ac_try) 2>&5
35463 ac_status=$?
35464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35465 (exit $ac_status); }; }; then
35466 eval "$as_ac_var=yes"
35467else
35468 echo "$as_me: failed program was:" >&5
35469sed 's/^/| /' conftest.$ac_ext >&5
35470
35471eval "$as_ac_var=no"
35472fi
ac1cb8d3
VS
35473rm -f conftest.err conftest.$ac_objext \
35474 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35475fi
35476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35477echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35478if test `eval echo '${'$as_ac_var'}'` = yes; then
35479 cat >>confdefs.h <<_ACEOF
35480#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35481_ACEOF
35482
35483fi
35484done
35485
35486
35487if test "$ac_cv_func_vsnprintf" = "yes"; then
35488 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
35489echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
35490if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
35491 echo $ECHO_N "(cached) $ECHO_C" >&6
35492else
35493
efdf6afe 35494 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
35495/* confdefs.h. */
35496_ACEOF
35497cat confdefs.h >>conftest.$ac_ext
35498cat >>conftest.$ac_ext <<_ACEOF
35499/* end confdefs.h. */
35500
35501 #include <stdio.h>
35502 #include <stdarg.h>
efdf6afe
VZ
35503 #ifdef __MSL__
35504 #if __MSL__ >= 0x6000
35505 namespace std {}
35506 using namespace std;
35507 #endif
35508 #endif
a848cd7e
SC
35509
35510int
35511main ()
35512{
35513
35514 char *buf;
35515 va_list ap;
62fa8b3a 35516 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
35517
35518 ;
35519 return 0;
35520}
35521_ACEOF
35522rm -f conftest.$ac_objext
35523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35524 (eval $ac_compile) 2>conftest.er1
35525 ac_status=$?
35526 grep -v '^ *+' conftest.er1 >conftest.err
35527 rm -f conftest.er1
35528 cat conftest.err >&5
35529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35530 (exit $ac_status); } &&
bb9e79c0 35531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
35532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35533 (eval $ac_try) 2>&5
35534 ac_status=$?
35535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35536 (exit $ac_status); }; } &&
35537 { ac_try='test -s conftest.$ac_objext'
35538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35539 (eval $ac_try) 2>&5
35540 ac_status=$?
35541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35542 (exit $ac_status); }; }; then
35543 wx_cv_func_vsnprintf_decl=yes
35544else
35545 echo "$as_me: failed program was:" >&5
35546sed 's/^/| /' conftest.$ac_ext >&5
35547
a848cd7e
SC
35548wx_cv_func_vsnprintf_decl=no
35549
35550fi
ac1cb8d3 35551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35552
35553
35554fi
35555echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
35556echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
35557
35558 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
35559 cat >>confdefs.h <<\_ACEOF
35560#define HAVE_VSNPRINTF_DECL 1
35561_ACEOF
35562
62fa8b3a
MW
35563
35564 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
35565echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
35566if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
35567 echo $ECHO_N "(cached) $ECHO_C" >&6
35568else
35569
35570 cat >conftest.$ac_ext <<_ACEOF
35571/* confdefs.h. */
35572_ACEOF
35573cat confdefs.h >>conftest.$ac_ext
35574cat >>conftest.$ac_ext <<_ACEOF
35575/* end confdefs.h. */
35576
35577 #include <stdio.h>
35578 #include <stdarg.h>
35579 #ifdef __MSL__
35580 #if __MSL__ >= 0x6000
35581 namespace std {}
35582 using namespace std;
35583 #endif
35584 #endif
35585
35586int
35587main ()
35588{
35589
35590 char *buf;
35591 va_list ap;
35592 const char *fmt = "%s";
35593 vsnprintf(buf, 10u, fmt, ap);
35594
35595 ;
35596 return 0;
35597}
35598_ACEOF
35599rm -f conftest.$ac_objext
35600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35601 (eval $ac_compile) 2>conftest.er1
35602 ac_status=$?
35603 grep -v '^ *+' conftest.er1 >conftest.err
35604 rm -f conftest.er1
35605 cat conftest.err >&5
35606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35607 (exit $ac_status); } &&
bb9e79c0 35608 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
35609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35610 (eval $ac_try) 2>&5
35611 ac_status=$?
35612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35613 (exit $ac_status); }; } &&
35614 { ac_try='test -s conftest.$ac_objext'
35615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35616 (eval $ac_try) 2>&5
35617 ac_status=$?
35618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35619 (exit $ac_status); }; }; then
35620 wx_cv_func_broken_vsnprintf_decl=no
35621else
35622 echo "$as_me: failed program was:" >&5
35623sed 's/^/| /' conftest.$ac_ext >&5
35624
35625wx_cv_func_broken_vsnprintf_decl=yes
35626
35627fi
35628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35629
35630
35631fi
35632echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35633echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
35634
35635 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35636 cat >>confdefs.h <<\_ACEOF
35637#define HAVE_BROKEN_VSNPRINTF_DECL 1
35638_ACEOF
35639
35640 fi
a848cd7e
SC
35641 fi
35642fi
35643
4a767dd5
VZ
35644if test "$ac_cv_func_snprintf" = "yes"; then
35645 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35646echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
35647if test "${wx_cv_func_snprintf_decl+set}" = set; then
35648 echo $ECHO_N "(cached) $ECHO_C" >&6
35649else
35650
35651 cat >conftest.$ac_ext <<_ACEOF
35652/* confdefs.h. */
35653_ACEOF
35654cat confdefs.h >>conftest.$ac_ext
35655cat >>conftest.$ac_ext <<_ACEOF
35656/* end confdefs.h. */
35657
35658 #include <stdio.h>
35659 #include <stdarg.h>
35660 #ifdef __MSL__
35661 #if __MSL__ >= 0x6000
35662 namespace std {}
35663 using namespace std;
35664 #endif
35665 #endif
35666
35667int
35668main ()
35669{
35670
35671 char *buf;
62fa8b3a 35672 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
35673
35674 ;
35675 return 0;
35676}
35677_ACEOF
35678rm -f conftest.$ac_objext
35679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35680 (eval $ac_compile) 2>conftest.er1
35681 ac_status=$?
35682 grep -v '^ *+' conftest.er1 >conftest.err
35683 rm -f conftest.er1
35684 cat conftest.err >&5
35685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35686 (exit $ac_status); } &&
bb9e79c0 35687 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4a767dd5
VZ
35688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35689 (eval $ac_try) 2>&5
35690 ac_status=$?
35691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35692 (exit $ac_status); }; } &&
35693 { ac_try='test -s conftest.$ac_objext'
35694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35695 (eval $ac_try) 2>&5
35696 ac_status=$?
35697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35698 (exit $ac_status); }; }; then
35699 wx_cv_func_snprintf_decl=yes
35700else
35701 echo "$as_me: failed program was:" >&5
35702sed 's/^/| /' conftest.$ac_ext >&5
35703
35704wx_cv_func_snprintf_decl=no
35705
35706fi
35707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35708
35709
35710fi
35711echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35712echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
35713
35714 if test "$wx_cv_func_snprintf_decl" = "yes"; then
35715 cat >>confdefs.h <<\_ACEOF
35716#define HAVE_SNPRINTF_DECL 1
35717_ACEOF
35718
62fa8b3a
MW
35719
35720 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
35721echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
35722if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
35723 echo $ECHO_N "(cached) $ECHO_C" >&6
35724else
35725
35726 cat >conftest.$ac_ext <<_ACEOF
35727/* confdefs.h. */
35728_ACEOF
35729cat confdefs.h >>conftest.$ac_ext
35730cat >>conftest.$ac_ext <<_ACEOF
35731/* end confdefs.h. */
35732
35733 #include <stdio.h>
35734 #include <stdarg.h>
35735 #ifdef __MSL__
35736 #if __MSL__ >= 0x6000
35737 namespace std {}
35738 using namespace std;
35739 #endif
35740 #endif
35741
35742int
35743main ()
35744{
35745
35746 char *buf;
35747 const char *fmt = "%s";
35748 snprintf(buf, 10u, fmt, "wx");
35749
35750 ;
35751 return 0;
35752}
35753_ACEOF
35754rm -f conftest.$ac_objext
35755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35756 (eval $ac_compile) 2>conftest.er1
35757 ac_status=$?
35758 grep -v '^ *+' conftest.er1 >conftest.err
35759 rm -f conftest.er1
35760 cat conftest.err >&5
35761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35762 (exit $ac_status); } &&
bb9e79c0 35763 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
35764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35765 (eval $ac_try) 2>&5
35766 ac_status=$?
35767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35768 (exit $ac_status); }; } &&
35769 { ac_try='test -s conftest.$ac_objext'
35770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35771 (eval $ac_try) 2>&5
35772 ac_status=$?
35773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35774 (exit $ac_status); }; }; then
35775 wx_cv_func_broken_snprintf_decl=no
35776else
35777 echo "$as_me: failed program was:" >&5
35778sed 's/^/| /' conftest.$ac_ext >&5
35779
35780wx_cv_func_broken_snprintf_decl=yes
35781
35782fi
35783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35784
35785
35786fi
35787echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
35788echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
35789
35790 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
35791 cat >>confdefs.h <<\_ACEOF
35792#define HAVE_BROKEN_SNPRINTF_DECL 1
8b6682b9
JS
35793_ACEOF
35794
35795 fi
35796 fi
35797
35798 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35799
35800 echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35801echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
35802if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35803 echo $ECHO_N "(cached) $ECHO_C" >&6
35804else
35805
35806 if test "$cross_compiling" = yes; then
5039a2df
VZ
35807
35808 { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35809define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35810echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35811define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35812 wx_cv_func_snprintf_pos_params=no
35813
35814
8b6682b9
JS
35815else
35816 cat >conftest.$ac_ext <<_ACEOF
35817/* confdefs.h. */
35818_ACEOF
35819cat confdefs.h >>conftest.$ac_ext
35820cat >>conftest.$ac_ext <<_ACEOF
35821/* end confdefs.h. */
35822
35823 #include <stdio.h>
35824
35825 int main (void)
35826 {
35827 char buffer[128];
35828 snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
35829 if (strcmp ("2 3 1", buffer) == 0)
35830 exit (0);
35831 exit (1);
35832 }
35833
35834_ACEOF
35835rm -f conftest$ac_exeext
35836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35837 (eval $ac_link) 2>&5
35838 ac_status=$?
35839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35840 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35842 (eval $ac_try) 2>&5
35843 ac_status=$?
35844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35845 (exit $ac_status); }; }; then
35846 wx_cv_func_snprintf_pos_params=no
35847else
35848 echo "$as_me: program exited with status $ac_status" >&5
35849echo "$as_me: failed program was:" >&5
35850sed 's/^/| /' conftest.$ac_ext >&5
35851
35852( exit $ac_status )
35853wx_cv_func_snprintf_pos_params=yes
8b6682b9
JS
35854fi
35855rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35856fi
35857
35858
35859fi
35860echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35861echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
35862
35863 if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35864 cat >>confdefs.h <<\_ACEOF
35865#define HAVE_UNIX98_PRINTF 1
62fa8b3a
MW
35866_ACEOF
35867
35868 fi
4a767dd5
VZ
35869 fi
35870fi
35871
a848cd7e
SC
35872if test "$wxUSE_UNICODE" = yes; then
35873
35874
6a5c9b3f
RR
35875for ac_func in swprintf
35876do
35877as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35878echo "$as_me:$LINENO: checking for $ac_func" >&5
35879echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35880if eval "test \"\${$as_ac_var+set}\" = set"; then
35881 echo $ECHO_N "(cached) $ECHO_C" >&6
35882else
35883 cat >conftest.$ac_ext <<_ACEOF
35884/* confdefs.h. */
35885_ACEOF
35886cat confdefs.h >>conftest.$ac_ext
35887cat >>conftest.$ac_ext <<_ACEOF
35888/* end confdefs.h. */
35889/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35891#define $ac_func innocuous_$ac_func
35892
35893/* System header to define __stub macros and hopefully few prototypes,
35894 which can conflict with char $ac_func (); below.
35895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35896 <limits.h> exists even on freestanding compilers. */
35897
35898#ifdef __STDC__
35899# include <limits.h>
35900#else
35901# include <assert.h>
35902#endif
35903
35904#undef $ac_func
35905
35906/* Override any gcc2 internal prototype to avoid an error. */
35907#ifdef __cplusplus
35908extern "C"
35909{
35910#endif
35911/* We use char because int might match the return type of a gcc2
35912 builtin and then its argument prototype would still apply. */
35913char $ac_func ();
35914/* The GNU C library defines this for functions which it implements
35915 to always fail with ENOSYS. Some functions are actually named
35916 something starting with __ and the normal name is an alias. */
35917#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35918choke me
35919#else
35920char (*f) () = $ac_func;
35921#endif
35922#ifdef __cplusplus
35923}
35924#endif
35925
35926int
35927main ()
35928{
35929return f != $ac_func;
35930 ;
35931 return 0;
35932}
35933_ACEOF
35934rm -f conftest.$ac_objext conftest$ac_exeext
35935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35936 (eval $ac_link) 2>conftest.er1
35937 ac_status=$?
35938 grep -v '^ *+' conftest.er1 >conftest.err
35939 rm -f conftest.er1
35940 cat conftest.err >&5
35941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35942 (exit $ac_status); } &&
bb9e79c0 35943 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6a5c9b3f
RR
35944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35945 (eval $ac_try) 2>&5
35946 ac_status=$?
35947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35948 (exit $ac_status); }; } &&
35949 { ac_try='test -s conftest$ac_exeext'
35950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35951 (eval $ac_try) 2>&5
35952 ac_status=$?
35953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35954 (exit $ac_status); }; }; then
35955 eval "$as_ac_var=yes"
35956else
35957 echo "$as_me: failed program was:" >&5
35958sed 's/^/| /' conftest.$ac_ext >&5
35959
35960eval "$as_ac_var=no"
35961fi
35962rm -f conftest.err conftest.$ac_objext \
35963 conftest$ac_exeext conftest.$ac_ext
35964fi
35965echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35966echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35967if test `eval echo '${'$as_ac_var'}'` = yes; then
35968 cat >>confdefs.h <<_ACEOF
35969#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35970_ACEOF
35971
35972fi
35973done
35974
35975
35976 if test "$ac_cv_func_swprintf" = "yes"; then
35977 echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
35978echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6
35979if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
35980 echo $ECHO_N "(cached) $ECHO_C" >&6
35981else
35982
35983 cat >conftest.$ac_ext <<_ACEOF
35984/* confdefs.h. */
35985_ACEOF
35986cat confdefs.h >>conftest.$ac_ext
35987cat >>conftest.$ac_ext <<_ACEOF
35988/* end confdefs.h. */
35989
35990 #include <stdio.h>
35991 #include <stdarg.h>
35992 #include <wchar.h>
35993
35994int
35995main ()
35996{
35997
35998 wchar_t *buf;
35999 const wchar_t *fmt = L"test";
36000 swprintf(buf, 10u, fmt);
36001
36002 ;
36003 return 0;
36004}
36005_ACEOF
36006rm -f conftest.$ac_objext
36007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36008 (eval $ac_compile) 2>conftest.er1
36009 ac_status=$?
36010 grep -v '^ *+' conftest.er1 >conftest.err
36011 rm -f conftest.er1
36012 cat conftest.err >&5
36013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36014 (exit $ac_status); } &&
bb9e79c0 36015 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6a5c9b3f
RR
36016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36017 (eval $ac_try) 2>&5
36018 ac_status=$?
36019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36020 (exit $ac_status); }; } &&
36021 { ac_try='test -s conftest.$ac_objext'
36022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36023 (eval $ac_try) 2>&5
36024 ac_status=$?
36025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36026 (exit $ac_status); }; }; then
36027 wx_cv_func_broken_swprintf_decl=no
36028else
36029 echo "$as_me: failed program was:" >&5
36030sed 's/^/| /' conftest.$ac_ext >&5
36031
36032wx_cv_func_broken_swprintf_decl=yes
36033
36034fi
36035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36036
36037
36038fi
36039echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
36040echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6
36041
36042 if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
36043 cat >>confdefs.h <<\_ACEOF
36044#define HAVE_BROKEN_SWPRINTF_DECL 1
36045_ACEOF
36046
36047 fi
36048 fi
36049
36050
36051
a848cd7e 36052
fbe47c7b
VS
36053
36054
36055
36056for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
36057do
36058as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36059echo "$as_me:$LINENO: checking for $ac_func" >&5
36060echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36061if eval "test \"\${$as_ac_var+set}\" = set"; then
36062 echo $ECHO_N "(cached) $ECHO_C" >&6
36063else
36064 cat >conftest.$ac_ext <<_ACEOF
36065/* confdefs.h. */
36066_ACEOF
36067cat confdefs.h >>conftest.$ac_ext
36068cat >>conftest.$ac_ext <<_ACEOF
36069/* end confdefs.h. */
ac1cb8d3
VS
36070/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36072#define $ac_func innocuous_$ac_func
36073
a848cd7e
SC
36074/* System header to define __stub macros and hopefully few prototypes,
36075 which can conflict with char $ac_func (); below.
36076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36077 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36078
a848cd7e
SC
36079#ifdef __STDC__
36080# include <limits.h>
36081#else
36082# include <assert.h>
36083#endif
ac1cb8d3
VS
36084
36085#undef $ac_func
36086
a848cd7e
SC
36087/* Override any gcc2 internal prototype to avoid an error. */
36088#ifdef __cplusplus
36089extern "C"
36090{
36091#endif
36092/* We use char because int might match the return type of a gcc2
36093 builtin and then its argument prototype would still apply. */
36094char $ac_func ();
36095/* The GNU C library defines this for functions which it implements
36096 to always fail with ENOSYS. Some functions are actually named
36097 something starting with __ and the normal name is an alias. */
36098#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36099choke me
36100#else
36101char (*f) () = $ac_func;
36102#endif
36103#ifdef __cplusplus
36104}
36105#endif
36106
36107int
36108main ()
36109{
36110return f != $ac_func;
36111 ;
36112 return 0;
36113}
36114_ACEOF
36115rm -f conftest.$ac_objext conftest$ac_exeext
36116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36117 (eval $ac_link) 2>conftest.er1
a848cd7e 36118 ac_status=$?
ac1cb8d3
VS
36119 grep -v '^ *+' conftest.er1 >conftest.err
36120 rm -f conftest.er1
36121 cat conftest.err >&5
a848cd7e
SC
36122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36123 (exit $ac_status); } &&
bb9e79c0 36124 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36126 (eval $ac_try) 2>&5
36127 ac_status=$?
36128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36129 (exit $ac_status); }; } &&
36130 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36132 (eval $ac_try) 2>&5
36133 ac_status=$?
36134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36135 (exit $ac_status); }; }; then
36136 eval "$as_ac_var=yes"
36137else
36138 echo "$as_me: failed program was:" >&5
36139sed 's/^/| /' conftest.$ac_ext >&5
36140
36141eval "$as_ac_var=no"
36142fi
ac1cb8d3
VS
36143rm -f conftest.err conftest.$ac_objext \
36144 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36145fi
36146echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36147echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36148if test `eval echo '${'$as_ac_var'}'` = yes; then
36149 cat >>confdefs.h <<_ACEOF
36150#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36151_ACEOF
36152
36153fi
36154done
36155
36156
36157 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
36158echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
36159 cat >conftest.$ac_ext <<_ACEOF
36160/* confdefs.h. */
36161_ACEOF
36162cat confdefs.h >>conftest.$ac_ext
36163cat >>conftest.$ac_ext <<_ACEOF
36164/* end confdefs.h. */
36165#include <wchar.h>
36166int
36167main ()
36168{
36169&_vsnwprintf;
36170 ;
36171 return 0;
36172}
36173_ACEOF
36174rm -f conftest.$ac_objext
36175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36176 (eval $ac_compile) 2>conftest.er1
a848cd7e 36177 ac_status=$?
ac1cb8d3
VS
36178 grep -v '^ *+' conftest.er1 >conftest.err
36179 rm -f conftest.er1
36180 cat conftest.err >&5
a848cd7e
SC
36181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36182 (exit $ac_status); } &&
bb9e79c0 36183 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36185 (eval $ac_try) 2>&5
36186 ac_status=$?
36187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36188 (exit $ac_status); }; } &&
36189 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36191 (eval $ac_try) 2>&5
36192 ac_status=$?
36193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36194 (exit $ac_status); }; }; then
36195 echo "$as_me:$LINENO: result: yes" >&5
36196echo "${ECHO_T}yes" >&6
36197 cat >>confdefs.h <<\_ACEOF
36198#define HAVE__VSNWPRINTF 1
36199_ACEOF
36200
36201else
36202 echo "$as_me: failed program was:" >&5
36203sed 's/^/| /' conftest.$ac_ext >&5
36204
36205echo "$as_me:$LINENO: result: no" >&5
36206echo "${ECHO_T}no" >&6
36207fi
ac1cb8d3 36208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
36209fi
36210
6ebeb4c7
VZ
36211if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
36212
36213for ac_func in fnmatch
36214do
36215as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36216echo "$as_me:$LINENO: checking for $ac_func" >&5
36217echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36218if eval "test \"\${$as_ac_var+set}\" = set"; then
36219 echo $ECHO_N "(cached) $ECHO_C" >&6
36220else
36221 cat >conftest.$ac_ext <<_ACEOF
36222/* confdefs.h. */
36223_ACEOF
36224cat confdefs.h >>conftest.$ac_ext
36225cat >>conftest.$ac_ext <<_ACEOF
36226/* end confdefs.h. */
36227/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36229#define $ac_func innocuous_$ac_func
36230
36231/* System header to define __stub macros and hopefully few prototypes,
36232 which can conflict with char $ac_func (); below.
36233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36234 <limits.h> exists even on freestanding compilers. */
36235
36236#ifdef __STDC__
36237# include <limits.h>
36238#else
36239# include <assert.h>
36240#endif
36241
36242#undef $ac_func
36243
36244/* Override any gcc2 internal prototype to avoid an error. */
36245#ifdef __cplusplus
36246extern "C"
36247{
36248#endif
36249/* We use char because int might match the return type of a gcc2
36250 builtin and then its argument prototype would still apply. */
36251char $ac_func ();
36252/* The GNU C library defines this for functions which it implements
36253 to always fail with ENOSYS. Some functions are actually named
36254 something starting with __ and the normal name is an alias. */
36255#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36256choke me
36257#else
36258char (*f) () = $ac_func;
36259#endif
36260#ifdef __cplusplus
36261}
36262#endif
36263
36264int
36265main ()
36266{
36267return f != $ac_func;
36268 ;
36269 return 0;
36270}
36271_ACEOF
36272rm -f conftest.$ac_objext conftest$ac_exeext
36273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36274 (eval $ac_link) 2>conftest.er1
36275 ac_status=$?
36276 grep -v '^ *+' conftest.er1 >conftest.err
36277 rm -f conftest.er1
36278 cat conftest.err >&5
36279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36280 (exit $ac_status); } &&
bb9e79c0 36281 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
36282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36283 (eval $ac_try) 2>&5
36284 ac_status=$?
36285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36286 (exit $ac_status); }; } &&
36287 { ac_try='test -s conftest$ac_exeext'
36288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36289 (eval $ac_try) 2>&5
36290 ac_status=$?
36291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36292 (exit $ac_status); }; }; then
36293 eval "$as_ac_var=yes"
36294else
36295 echo "$as_me: failed program was:" >&5
36296sed 's/^/| /' conftest.$ac_ext >&5
36297
36298eval "$as_ac_var=no"
36299fi
36300rm -f conftest.err conftest.$ac_objext \
36301 conftest$ac_exeext conftest.$ac_ext
36302fi
36303echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36304echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36305if test `eval echo '${'$as_ac_var'}'` = yes; then
36306 cat >>confdefs.h <<_ACEOF
36307#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36308_ACEOF
36309
36310fi
36311done
36312
36313fi
36314
36315if test "$wxUSE_FILE" = "yes"; then
36316
36317for ac_func in fsync
36318do
36319as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36320echo "$as_me:$LINENO: checking for $ac_func" >&5
36321echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36322if eval "test \"\${$as_ac_var+set}\" = set"; then
36323 echo $ECHO_N "(cached) $ECHO_C" >&6
36324else
36325 cat >conftest.$ac_ext <<_ACEOF
36326/* confdefs.h. */
36327_ACEOF
36328cat confdefs.h >>conftest.$ac_ext
36329cat >>conftest.$ac_ext <<_ACEOF
36330/* end confdefs.h. */
36331/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36333#define $ac_func innocuous_$ac_func
36334
36335/* System header to define __stub macros and hopefully few prototypes,
36336 which can conflict with char $ac_func (); below.
36337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36338 <limits.h> exists even on freestanding compilers. */
36339
36340#ifdef __STDC__
36341# include <limits.h>
36342#else
36343# include <assert.h>
36344#endif
36345
36346#undef $ac_func
36347
36348/* Override any gcc2 internal prototype to avoid an error. */
36349#ifdef __cplusplus
36350extern "C"
36351{
36352#endif
36353/* We use char because int might match the return type of a gcc2
36354 builtin and then its argument prototype would still apply. */
36355char $ac_func ();
36356/* The GNU C library defines this for functions which it implements
36357 to always fail with ENOSYS. Some functions are actually named
36358 something starting with __ and the normal name is an alias. */
36359#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36360choke me
36361#else
36362char (*f) () = $ac_func;
36363#endif
36364#ifdef __cplusplus
36365}
36366#endif
36367
36368int
36369main ()
36370{
36371return f != $ac_func;
36372 ;
36373 return 0;
36374}
36375_ACEOF
36376rm -f conftest.$ac_objext conftest$ac_exeext
36377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36378 (eval $ac_link) 2>conftest.er1
36379 ac_status=$?
36380 grep -v '^ *+' conftest.er1 >conftest.err
36381 rm -f conftest.er1
36382 cat conftest.err >&5
36383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36384 (exit $ac_status); } &&
bb9e79c0 36385 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
36386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36387 (eval $ac_try) 2>&5
36388 ac_status=$?
36389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36390 (exit $ac_status); }; } &&
36391 { ac_try='test -s conftest$ac_exeext'
36392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36393 (eval $ac_try) 2>&5
36394 ac_status=$?
36395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36396 (exit $ac_status); }; }; then
36397 eval "$as_ac_var=yes"
36398else
36399 echo "$as_me: failed program was:" >&5
36400sed 's/^/| /' conftest.$ac_ext >&5
36401
36402eval "$as_ac_var=no"
36403fi
36404rm -f conftest.err conftest.$ac_objext \
36405 conftest$ac_exeext conftest.$ac_ext
36406fi
36407echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36408echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36409if test `eval echo '${'$as_ac_var'}'` = yes; then
36410 cat >>confdefs.h <<_ACEOF
36411#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36412_ACEOF
36413
36414fi
36415done
36416
36417fi
a848cd7e
SC
36418
36419
c2e9ada4
VZ
36420for ac_func in round
36421do
36422as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36423echo "$as_me:$LINENO: checking for $ac_func" >&5
36424echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36425if eval "test \"\${$as_ac_var+set}\" = set"; then
36426 echo $ECHO_N "(cached) $ECHO_C" >&6
36427else
36428 cat >conftest.$ac_ext <<_ACEOF
36429/* confdefs.h. */
36430_ACEOF
36431cat confdefs.h >>conftest.$ac_ext
36432cat >>conftest.$ac_ext <<_ACEOF
36433/* end confdefs.h. */
36434/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36436#define $ac_func innocuous_$ac_func
36437
36438/* System header to define __stub macros and hopefully few prototypes,
36439 which can conflict with char $ac_func (); below.
36440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36441 <limits.h> exists even on freestanding compilers. */
36442
36443#ifdef __STDC__
36444# include <limits.h>
36445#else
36446# include <assert.h>
36447#endif
36448
36449#undef $ac_func
36450
36451/* Override any gcc2 internal prototype to avoid an error. */
36452#ifdef __cplusplus
36453extern "C"
36454{
36455#endif
36456/* We use char because int might match the return type of a gcc2
36457 builtin and then its argument prototype would still apply. */
36458char $ac_func ();
36459/* The GNU C library defines this for functions which it implements
36460 to always fail with ENOSYS. Some functions are actually named
36461 something starting with __ and the normal name is an alias. */
36462#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36463choke me
36464#else
36465char (*f) () = $ac_func;
36466#endif
36467#ifdef __cplusplus
36468}
36469#endif
36470
36471int
36472main ()
36473{
36474return f != $ac_func;
36475 ;
36476 return 0;
36477}
36478_ACEOF
36479rm -f conftest.$ac_objext conftest$ac_exeext
36480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36481 (eval $ac_link) 2>conftest.er1
36482 ac_status=$?
36483 grep -v '^ *+' conftest.er1 >conftest.err
36484 rm -f conftest.er1
36485 cat conftest.err >&5
36486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36487 (exit $ac_status); } &&
bb9e79c0 36488 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c2e9ada4
VZ
36489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36490 (eval $ac_try) 2>&5
36491 ac_status=$?
36492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36493 (exit $ac_status); }; } &&
36494 { ac_try='test -s conftest$ac_exeext'
36495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36496 (eval $ac_try) 2>&5
36497 ac_status=$?
36498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36499 (exit $ac_status); }; }; then
36500 eval "$as_ac_var=yes"
36501else
36502 echo "$as_me: failed program was:" >&5
36503sed 's/^/| /' conftest.$ac_ext >&5
36504
36505eval "$as_ac_var=no"
36506fi
36507rm -f conftest.err conftest.$ac_objext \
36508 conftest$ac_exeext conftest.$ac_ext
36509fi
36510echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36511echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36512if test `eval echo '${'$as_ac_var'}'` = yes; then
36513 cat >>confdefs.h <<_ACEOF
36514#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36515_ACEOF
36516
36517fi
36518done
36519
36520if test "$ac_cv_func_round" = yes; then
36521 echo "$as_me:$LINENO: checking whether round is declared" >&5
36522echo $ECHO_N "checking whether round is declared... $ECHO_C" >&6
36523if test "${ac_cv_have_decl_round+set}" = set; then
36524 echo $ECHO_N "(cached) $ECHO_C" >&6
36525else
36526 cat >conftest.$ac_ext <<_ACEOF
36527/* confdefs.h. */
36528_ACEOF
36529cat confdefs.h >>conftest.$ac_ext
36530cat >>conftest.$ac_ext <<_ACEOF
36531/* end confdefs.h. */
36532#include <math.h>
36533
36534int
36535main ()
36536{
36537#ifndef round
36538 char *p = (char *) round;
36539#endif
36540
36541 ;
36542 return 0;
36543}
36544_ACEOF
36545rm -f conftest.$ac_objext
36546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36547 (eval $ac_compile) 2>conftest.er1
36548 ac_status=$?
36549 grep -v '^ *+' conftest.er1 >conftest.err
36550 rm -f conftest.er1
36551 cat conftest.err >&5
36552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36553 (exit $ac_status); } &&
bb9e79c0 36554 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c2e9ada4
VZ
36555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36556 (eval $ac_try) 2>&5
36557 ac_status=$?
36558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36559 (exit $ac_status); }; } &&
36560 { ac_try='test -s conftest.$ac_objext'
36561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36562 (eval $ac_try) 2>&5
36563 ac_status=$?
36564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36565 (exit $ac_status); }; }; then
36566 ac_cv_have_decl_round=yes
36567else
36568 echo "$as_me: failed program was:" >&5
36569sed 's/^/| /' conftest.$ac_ext >&5
36570
36571ac_cv_have_decl_round=no
36572fi
36573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36574fi
36575echo "$as_me:$LINENO: result: $ac_cv_have_decl_round" >&5
36576echo "${ECHO_T}$ac_cv_have_decl_round" >&6
36577if test $ac_cv_have_decl_round = yes; then
36578
36579cat >>confdefs.h <<_ACEOF
36580#define HAVE_DECL_ROUND 1
36581_ACEOF
36582
36583
36584else
36585 cat >>confdefs.h <<_ACEOF
36586#define HAVE_DECL_ROUND 0
36587_ACEOF
36588
36589
36590fi
36591
36592
36593fi
36594
36595
a848cd7e
SC
36596if test "$TOOLKIT" != "MSW"; then
36597
36598
a848cd7e
SC
36599
36600
36601
36602# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
36603if test "${with_libiconv_prefix+set}" = set; then
36604 withval="$with_libiconv_prefix"
36605
36606 for dir in `echo "$withval" | tr : ' '`; do
36607 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36608 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36609 done
36610
36611fi;
36612
36613 echo "$as_me:$LINENO: checking for iconv" >&5
36614echo $ECHO_N "checking for iconv... $ECHO_C" >&6
36615if test "${am_cv_func_iconv+set}" = set; then
36616 echo $ECHO_N "(cached) $ECHO_C" >&6
36617else
36618
36619 am_cv_func_iconv="no, consider installing GNU libiconv"
36620 am_cv_lib_iconv=no
36621 cat >conftest.$ac_ext <<_ACEOF
36622/* confdefs.h. */
36623_ACEOF
36624cat confdefs.h >>conftest.$ac_ext
36625cat >>conftest.$ac_ext <<_ACEOF
36626/* end confdefs.h. */
36627#include <stdlib.h>
36628#include <iconv.h>
36629int
36630main ()
36631{
36632iconv_t cd = iconv_open("","");
36633 iconv(cd,NULL,NULL,NULL,NULL);
36634 iconv_close(cd);
36635 ;
36636 return 0;
36637}
36638_ACEOF
36639rm -f conftest.$ac_objext conftest$ac_exeext
36640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36641 (eval $ac_link) 2>conftest.er1
a848cd7e 36642 ac_status=$?
ac1cb8d3
VS
36643 grep -v '^ *+' conftest.er1 >conftest.err
36644 rm -f conftest.er1
36645 cat conftest.err >&5
a848cd7e
SC
36646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36647 (exit $ac_status); } &&
bb9e79c0 36648 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36650 (eval $ac_try) 2>&5
36651 ac_status=$?
36652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36653 (exit $ac_status); }; } &&
36654 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36656 (eval $ac_try) 2>&5
36657 ac_status=$?
36658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36659 (exit $ac_status); }; }; then
36660 am_cv_func_iconv=yes
36661else
36662 echo "$as_me: failed program was:" >&5
36663sed 's/^/| /' conftest.$ac_ext >&5
36664
36665fi
ac1cb8d3
VS
36666rm -f conftest.err conftest.$ac_objext \
36667 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36668 if test "$am_cv_func_iconv" != yes; then
36669 am_save_LIBS="$LIBS"
36670 LIBS="$LIBS -liconv"
36671 cat >conftest.$ac_ext <<_ACEOF
36672/* confdefs.h. */
36673_ACEOF
36674cat confdefs.h >>conftest.$ac_ext
36675cat >>conftest.$ac_ext <<_ACEOF
36676/* end confdefs.h. */
36677#include <stdlib.h>
36678#include <iconv.h>
36679int
36680main ()
36681{
36682iconv_t cd = iconv_open("","");
36683 iconv(cd,NULL,NULL,NULL,NULL);
36684 iconv_close(cd);
36685 ;
36686 return 0;
36687}
36688_ACEOF
36689rm -f conftest.$ac_objext conftest$ac_exeext
36690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36691 (eval $ac_link) 2>conftest.er1
a848cd7e 36692 ac_status=$?
ac1cb8d3
VS
36693 grep -v '^ *+' conftest.er1 >conftest.err
36694 rm -f conftest.er1
36695 cat conftest.err >&5
a848cd7e
SC
36696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36697 (exit $ac_status); } &&
bb9e79c0 36698 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36700 (eval $ac_try) 2>&5
36701 ac_status=$?
36702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36703 (exit $ac_status); }; } &&
36704 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36706 (eval $ac_try) 2>&5
36707 ac_status=$?
36708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36709 (exit $ac_status); }; }; then
36710 am_cv_lib_iconv=yes
36711 am_cv_func_iconv=yes
36712else
36713 echo "$as_me: failed program was:" >&5
36714sed 's/^/| /' conftest.$ac_ext >&5
36715
36716fi
ac1cb8d3
VS
36717rm -f conftest.err conftest.$ac_objext \
36718 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36719 LIBS="$am_save_LIBS"
36720 fi
36721
36722fi
36723echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36724echo "${ECHO_T}$am_cv_func_iconv" >&6
36725 if test "$am_cv_func_iconv" = yes; then
36726
36727cat >>confdefs.h <<\_ACEOF
36728#define HAVE_ICONV 1
36729_ACEOF
36730
36731 echo "$as_me:$LINENO: checking if iconv needs const" >&5
36732echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
36733if test "${wx_cv_func_iconv_const+set}" = set; then
36734 echo $ECHO_N "(cached) $ECHO_C" >&6
36735else
36736 cat >conftest.$ac_ext <<_ACEOF
36737/* confdefs.h. */
36738_ACEOF
36739cat confdefs.h >>conftest.$ac_ext
36740cat >>conftest.$ac_ext <<_ACEOF
36741/* end confdefs.h. */
36742
36743#include <stdlib.h>
36744#include <iconv.h>
36745extern
36746#ifdef __cplusplus
36747"C"
36748#endif
36749#if defined(__STDC__) || defined(__cplusplus)
36750size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36751#else
36752size_t iconv();
36753#endif
36754
36755int
36756main ()
36757{
36758
36759 ;
36760 return 0;
36761}
36762_ACEOF
36763rm -f conftest.$ac_objext
36764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36765 (eval $ac_compile) 2>conftest.er1
a848cd7e 36766 ac_status=$?
ac1cb8d3
VS
36767 grep -v '^ *+' conftest.er1 >conftest.err
36768 rm -f conftest.er1
36769 cat conftest.err >&5
a848cd7e
SC
36770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36771 (exit $ac_status); } &&
bb9e79c0 36772 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36774 (eval $ac_try) 2>&5
36775 ac_status=$?
36776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36777 (exit $ac_status); }; } &&
36778 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36780 (eval $ac_try) 2>&5
36781 ac_status=$?
36782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36783 (exit $ac_status); }; }; then
36784 wx_cv_func_iconv_const="no"
36785else
36786 echo "$as_me: failed program was:" >&5
36787sed 's/^/| /' conftest.$ac_ext >&5
36788
36789wx_cv_func_iconv_const="yes"
36790
36791fi
ac1cb8d3 36792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36793
36794fi
36795echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36796echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
36797
36798 iconv_const=
36799 if test "x$wx_cv_func_iconv_const" = "xyes"; then
36800 iconv_const="const"
36801 fi
36802
36803
36804cat >>confdefs.h <<_ACEOF
36805#define ICONV_CONST $iconv_const
36806_ACEOF
36807
36808 fi
36809 LIBICONV=
36810 if test "$am_cv_lib_iconv" = yes; then
36811 LIBICONV="-liconv"
36812 fi
36813
36814
36815LIBS="$LIBICONV $LIBS"
a848cd7e
SC
36816
36817if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36818
36819for ac_func in sigaction
36820do
36821as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36822echo "$as_me:$LINENO: checking for $ac_func" >&5
36823echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36824if eval "test \"\${$as_ac_var+set}\" = set"; then
36825 echo $ECHO_N "(cached) $ECHO_C" >&6
36826else
36827 cat >conftest.$ac_ext <<_ACEOF
36828/* confdefs.h. */
36829_ACEOF
36830cat confdefs.h >>conftest.$ac_ext
36831cat >>conftest.$ac_ext <<_ACEOF
36832/* end confdefs.h. */
ac1cb8d3
VS
36833/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36835#define $ac_func innocuous_$ac_func
36836
a848cd7e
SC
36837/* System header to define __stub macros and hopefully few prototypes,
36838 which can conflict with char $ac_func (); below.
36839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36840 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36841
a848cd7e
SC
36842#ifdef __STDC__
36843# include <limits.h>
36844#else
36845# include <assert.h>
36846#endif
ac1cb8d3
VS
36847
36848#undef $ac_func
36849
a848cd7e
SC
36850/* Override any gcc2 internal prototype to avoid an error. */
36851#ifdef __cplusplus
36852extern "C"
36853{
36854#endif
36855/* We use char because int might match the return type of a gcc2
36856 builtin and then its argument prototype would still apply. */
36857char $ac_func ();
36858/* The GNU C library defines this for functions which it implements
36859 to always fail with ENOSYS. Some functions are actually named
36860 something starting with __ and the normal name is an alias. */
36861#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36862choke me
36863#else
36864char (*f) () = $ac_func;
36865#endif
36866#ifdef __cplusplus
36867}
36868#endif
36869
36870int
36871main ()
36872{
36873return f != $ac_func;
36874 ;
36875 return 0;
36876}
36877_ACEOF
36878rm -f conftest.$ac_objext conftest$ac_exeext
36879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36880 (eval $ac_link) 2>conftest.er1
a848cd7e 36881 ac_status=$?
ac1cb8d3
VS
36882 grep -v '^ *+' conftest.er1 >conftest.err
36883 rm -f conftest.er1
36884 cat conftest.err >&5
a848cd7e
SC
36885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36886 (exit $ac_status); } &&
bb9e79c0 36887 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36889 (eval $ac_try) 2>&5
36890 ac_status=$?
36891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36892 (exit $ac_status); }; } &&
36893 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36895 (eval $ac_try) 2>&5
36896 ac_status=$?
36897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36898 (exit $ac_status); }; }; then
36899 eval "$as_ac_var=yes"
36900else
36901 echo "$as_me: failed program was:" >&5
36902sed 's/^/| /' conftest.$ac_ext >&5
36903
36904eval "$as_ac_var=no"
36905fi
ac1cb8d3
VS
36906rm -f conftest.err conftest.$ac_objext \
36907 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36908fi
36909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36910echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36911if test `eval echo '${'$as_ac_var'}'` = yes; then
36912 cat >>confdefs.h <<_ACEOF
36913#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36914_ACEOF
36915
36916fi
36917done
36918
36919
36920 if test "$ac_cv_func_sigaction" = "no"; then
36921 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36922echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36923 wxUSE_ON_FATAL_EXCEPTION=no
36924 fi
36925
36926 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
36927 echo "$as_me:$LINENO: checking for sa_handler type" >&5
36928echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
36929if test "${wx_cv_type_sa_handler+set}" = set; then
36930 echo $ECHO_N "(cached) $ECHO_C" >&6
36931else
36932
36933 cat >conftest.$ac_ext <<_ACEOF
36934/* confdefs.h. */
36935_ACEOF
36936cat confdefs.h >>conftest.$ac_ext
36937cat >>conftest.$ac_ext <<_ACEOF
36938/* end confdefs.h. */
36939#include <signal.h>
36940int
36941main ()
36942{
36943
36944 extern void testSigHandler(int);
36945
36946 struct sigaction sa;
36947 sa.sa_handler = testSigHandler;
36948
36949 ;
36950 return 0;
36951}
36952_ACEOF
36953rm -f conftest.$ac_objext
36954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36955 (eval $ac_compile) 2>conftest.er1
a848cd7e 36956 ac_status=$?
ac1cb8d3
VS
36957 grep -v '^ *+' conftest.er1 >conftest.err
36958 rm -f conftest.er1
36959 cat conftest.err >&5
a848cd7e
SC
36960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36961 (exit $ac_status); } &&
bb9e79c0 36962 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36964 (eval $ac_try) 2>&5
36965 ac_status=$?
36966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36967 (exit $ac_status); }; } &&
36968 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36970 (eval $ac_try) 2>&5
36971 ac_status=$?
36972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36973 (exit $ac_status); }; }; then
36974
36975 wx_cv_type_sa_handler=int
36976
36977else
36978 echo "$as_me: failed program was:" >&5
36979sed 's/^/| /' conftest.$ac_ext >&5
36980
36981
36982 wx_cv_type_sa_handler=void
36983
36984fi
ac1cb8d3 36985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36986
36987fi
36988echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36989echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
36990
a848cd7e
SC
36991 cat >>confdefs.h <<_ACEOF
36992#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36993_ACEOF
36994
36995 fi
36996fi
36997
eaff0f0d 36998if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
36999 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
37000echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
37001if test "${wx_cv_func_backtrace+set}" = set; then
37002 echo $ECHO_N "(cached) $ECHO_C" >&6
37003else
37004
37005 cat >conftest.$ac_ext <<_ACEOF
37006/* confdefs.h. */
37007_ACEOF
37008cat confdefs.h >>conftest.$ac_ext
37009cat >>conftest.$ac_ext <<_ACEOF
37010/* end confdefs.h. */
37011#include <execinfo.h>
37012int
37013main ()
37014{
37015
37016 void *trace[1];
37017 char **messages;
37018
37019 backtrace(trace, 1);
37020 messages = backtrace_symbols(trace, 1);
37021
37022 ;
37023 return 0;
37024}
37025_ACEOF
37026rm -f conftest.$ac_objext
37027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37028 (eval $ac_compile) 2>conftest.er1
37029 ac_status=$?
37030 grep -v '^ *+' conftest.er1 >conftest.err
37031 rm -f conftest.er1
37032 cat conftest.err >&5
37033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37034 (exit $ac_status); } &&
bb9e79c0 37035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
37036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37037 (eval $ac_try) 2>&5
37038 ac_status=$?
37039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37040 (exit $ac_status); }; } &&
37041 { ac_try='test -s conftest.$ac_objext'
37042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37043 (eval $ac_try) 2>&5
37044 ac_status=$?
37045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37046 (exit $ac_status); }; }; then
37047 wx_cv_func_backtrace=yes
37048else
37049 echo "$as_me: failed program was:" >&5
37050sed 's/^/| /' conftest.$ac_ext >&5
37051
37052wx_cv_func_backtrace=no
37053
37054fi
37055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37056
37057
37058fi
37059echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
37060echo "${ECHO_T}$wx_cv_func_backtrace" >&6
37061
37062
37063 if test "$wx_cv_func_backtrace" = "no"; then
37064 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
37065echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
37066 wxUSE_STACKWALKER=no
37067 else
37068 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
37069echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
37070if test "${wx_cv_func_cxa_demangle+set}" = set; then
37071 echo $ECHO_N "(cached) $ECHO_C" >&6
37072else
37073
37074 cat >conftest.$ac_ext <<_ACEOF
37075/* confdefs.h. */
37076_ACEOF
37077cat confdefs.h >>conftest.$ac_ext
37078cat >>conftest.$ac_ext <<_ACEOF
37079/* end confdefs.h. */
37080#include <cxxabi.h>
37081int
37082main ()
37083{
37084
37085 int rc;
37086 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
37087
37088 ;
37089 return 0;
37090}
37091_ACEOF
dfe0c803
JS
37092rm -f conftest.$ac_objext conftest$ac_exeext
37093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37094 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
37095 ac_status=$?
37096 grep -v '^ *+' conftest.er1 >conftest.err
37097 rm -f conftest.er1
37098 cat conftest.err >&5
37099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37100 (exit $ac_status); } &&
bb9e79c0 37101 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
37102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37103 (eval $ac_try) 2>&5
37104 ac_status=$?
37105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37106 (exit $ac_status); }; } &&
dfe0c803 37107 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
37108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37109 (eval $ac_try) 2>&5
37110 ac_status=$?
37111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37112 (exit $ac_status); }; }; then
37113 wx_cv_func_cxa_demangle=yes
37114else
37115 echo "$as_me: failed program was:" >&5
37116sed 's/^/| /' conftest.$ac_ext >&5
37117
37118wx_cv_func_cxa_demangle=no
37119
37120fi
dfe0c803
JS
37121rm -f conftest.err conftest.$ac_objext \
37122 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
37123
37124
37125fi
37126echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
37127echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
37128
37129 if test "$wx_cv_func_cxa_demangle" = "yes"; then
37130 cat >>confdefs.h <<\_ACEOF
37131#define HAVE_CXA_DEMANGLE 1
37132_ACEOF
37133
37134 fi
37135 fi
eaff0f0d
VZ
37136fi
37137
898beab1
DE
37138if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
37139 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
37140echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
37141 wxUSE_STACKWALKER=no
37142fi
37143
37144
a848cd7e
SC
37145
37146
37147for ac_func in mkstemp mktemp
37148do
37149as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37150echo "$as_me:$LINENO: checking for $ac_func" >&5
37151echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37152if eval "test \"\${$as_ac_var+set}\" = set"; then
37153 echo $ECHO_N "(cached) $ECHO_C" >&6
37154else
37155 cat >conftest.$ac_ext <<_ACEOF
37156/* confdefs.h. */
37157_ACEOF
37158cat confdefs.h >>conftest.$ac_ext
37159cat >>conftest.$ac_ext <<_ACEOF
37160/* end confdefs.h. */
ac1cb8d3
VS
37161/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37163#define $ac_func innocuous_$ac_func
37164
a848cd7e
SC
37165/* System header to define __stub macros and hopefully few prototypes,
37166 which can conflict with char $ac_func (); below.
37167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37168 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37169
a848cd7e
SC
37170#ifdef __STDC__
37171# include <limits.h>
37172#else
37173# include <assert.h>
37174#endif
ac1cb8d3
VS
37175
37176#undef $ac_func
37177
a848cd7e
SC
37178/* Override any gcc2 internal prototype to avoid an error. */
37179#ifdef __cplusplus
37180extern "C"
37181{
37182#endif
37183/* We use char because int might match the return type of a gcc2
37184 builtin and then its argument prototype would still apply. */
37185char $ac_func ();
37186/* The GNU C library defines this for functions which it implements
37187 to always fail with ENOSYS. Some functions are actually named
37188 something starting with __ and the normal name is an alias. */
37189#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37190choke me
37191#else
37192char (*f) () = $ac_func;
37193#endif
37194#ifdef __cplusplus
37195}
37196#endif
37197
37198int
37199main ()
37200{
37201return f != $ac_func;
37202 ;
37203 return 0;
37204}
37205_ACEOF
37206rm -f conftest.$ac_objext conftest$ac_exeext
37207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37208 (eval $ac_link) 2>conftest.er1
a848cd7e 37209 ac_status=$?
ac1cb8d3
VS
37210 grep -v '^ *+' conftest.er1 >conftest.err
37211 rm -f conftest.er1
37212 cat conftest.err >&5
a848cd7e
SC
37213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37214 (exit $ac_status); } &&
bb9e79c0 37215 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37217 (eval $ac_try) 2>&5
37218 ac_status=$?
37219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37220 (exit $ac_status); }; } &&
37221 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37223 (eval $ac_try) 2>&5
37224 ac_status=$?
37225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37226 (exit $ac_status); }; }; then
37227 eval "$as_ac_var=yes"
37228else
37229 echo "$as_me: failed program was:" >&5
37230sed 's/^/| /' conftest.$ac_ext >&5
37231
37232eval "$as_ac_var=no"
37233fi
ac1cb8d3
VS
37234rm -f conftest.err conftest.$ac_objext \
37235 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37236fi
37237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37238echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37239if test `eval echo '${'$as_ac_var'}'` = yes; then
37240 cat >>confdefs.h <<_ACEOF
37241#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37242_ACEOF
37243 break
37244fi
37245done
37246
37247
37248echo "$as_me:$LINENO: checking for statfs" >&5
37249echo $ECHO_N "checking for statfs... $ECHO_C" >&6
37250if test "${wx_cv_func_statfs+set}" = set; then
37251 echo $ECHO_N "(cached) $ECHO_C" >&6
37252else
37253 cat >conftest.$ac_ext <<_ACEOF
37254/* confdefs.h. */
37255_ACEOF
37256cat confdefs.h >>conftest.$ac_ext
37257cat >>conftest.$ac_ext <<_ACEOF
37258/* end confdefs.h. */
37259
37260 #if defined(__BSD__)
84ae7ca4
VZ
37261 #include <sys/param.h>
37262 #include <sys/mount.h>
a848cd7e 37263 #else
84ae7ca4 37264 #include <sys/vfs.h>
a848cd7e
SC
37265 #endif
37266
37267int
37268main ()
37269{
37270
37271 long l;
37272 struct statfs fs;
37273 statfs("/", &fs);
37274 l = fs.f_bsize;
37275 l += fs.f_blocks;
37276 l += fs.f_bavail;
37277
37278 ;
37279 return 0;
37280}
37281_ACEOF
37282rm -f conftest.$ac_objext
37283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37284 (eval $ac_compile) 2>conftest.er1
a848cd7e 37285 ac_status=$?
ac1cb8d3
VS
37286 grep -v '^ *+' conftest.er1 >conftest.err
37287 rm -f conftest.er1
37288 cat conftest.err >&5
a848cd7e
SC
37289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37290 (exit $ac_status); } &&
bb9e79c0 37291 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37293 (eval $ac_try) 2>&5
37294 ac_status=$?
37295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37296 (exit $ac_status); }; } &&
37297 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37299 (eval $ac_try) 2>&5
37300 ac_status=$?
37301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37302 (exit $ac_status); }; }; then
84ae7ca4 37303 wx_cv_func_statfs=yes
a848cd7e
SC
37304else
37305 echo "$as_me: failed program was:" >&5
37306sed 's/^/| /' conftest.$ac_ext >&5
37307
84ae7ca4 37308wx_cv_func_statfs=no
a848cd7e
SC
37309
37310fi
ac1cb8d3 37311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37312
37313fi
37314echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
37315echo "${ECHO_T}$wx_cv_func_statfs" >&6
37316
37317if test "$wx_cv_func_statfs" = "yes"; then
5d7b7554 37318 echo "$as_me:$LINENO: checking for statfs declaration" >&5
84ae7ca4
VZ
37319echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
37320if test "${wx_cv_func_statfs_decl+set}" = set; then
37321 echo $ECHO_N "(cached) $ECHO_C" >&6
37322else
0683aca6
VZ
37323 cat >conftest.$ac_ext <<_ACEOF
37324/* confdefs.h. */
37325_ACEOF
37326cat confdefs.h >>conftest.$ac_ext
37327cat >>conftest.$ac_ext <<_ACEOF
37328/* end confdefs.h. */
84ae7ca4 37329
0683aca6
VZ
37330 #if defined(__BSD__)
37331 #include <sys/param.h>
37332 #include <sys/mount.h>
37333 #else
37334 #include <sys/vfs.h>
37335 #endif
37336
37337int
37338main ()
37339{
37340
37341 struct statfs fs;
37342 statfs("", &fs);
37343
37344 ;
37345 return 0;
37346}
37347_ACEOF
37348rm -f conftest.$ac_objext
37349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37350 (eval $ac_compile) 2>conftest.er1
37351 ac_status=$?
37352 grep -v '^ *+' conftest.er1 >conftest.err
37353 rm -f conftest.er1
37354 cat conftest.err >&5
37355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37356 (exit $ac_status); } &&
bb9e79c0 37357 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0683aca6
VZ
37358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37359 (eval $ac_try) 2>&5
37360 ac_status=$?
37361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37362 (exit $ac_status); }; } &&
37363 { ac_try='test -s conftest.$ac_objext'
37364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37365 (eval $ac_try) 2>&5
37366 ac_status=$?
37367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37368 (exit $ac_status); }; }; then
37369 wx_cv_func_statfs_decl=yes
37370else
37371 echo "$as_me: failed program was:" >&5
37372sed 's/^/| /' conftest.$ac_ext >&5
37373
37374wx_cv_func_statfs_decl=no
37375
37376fi
37377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
37378
37379fi
37380echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
37381echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
84ae7ca4
VZ
37382
37383 if test "$wx_cv_func_statfs_decl" = "yes"; then
37384 cat >>confdefs.h <<\_ACEOF
37385#define HAVE_STATFS_DECL 1
37386_ACEOF
37387
37388 fi
37389
a848cd7e
SC
37390 wx_cv_type_statvfs_t="struct statfs"
37391 cat >>confdefs.h <<\_ACEOF
37392#define HAVE_STATFS 1
37393_ACEOF
37394
37395else
37396 echo "$as_me:$LINENO: checking for statvfs" >&5
37397echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
37398if test "${wx_cv_func_statvfs+set}" = set; then
37399 echo $ECHO_N "(cached) $ECHO_C" >&6
37400else
37401 cat >conftest.$ac_ext <<_ACEOF
37402/* confdefs.h. */
37403_ACEOF
37404cat confdefs.h >>conftest.$ac_ext
37405cat >>conftest.$ac_ext <<_ACEOF
37406/* end confdefs.h. */
37407
37408 #include <stddef.h>
37409 #include <sys/statvfs.h>
37410
37411int
37412main ()
37413{
37414
37415 statvfs("/", NULL);
37416
37417 ;
37418 return 0;
37419}
37420_ACEOF
37421rm -f conftest.$ac_objext
37422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37423 (eval $ac_compile) 2>conftest.er1
a848cd7e 37424 ac_status=$?
ac1cb8d3
VS
37425 grep -v '^ *+' conftest.er1 >conftest.err
37426 rm -f conftest.er1
37427 cat conftest.err >&5
a848cd7e
SC
37428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37429 (exit $ac_status); } &&
bb9e79c0 37430 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37432 (eval $ac_try) 2>&5
37433 ac_status=$?
37434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37435 (exit $ac_status); }; } &&
37436 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37438 (eval $ac_try) 2>&5
37439 ac_status=$?
37440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37441 (exit $ac_status); }; }; then
37442 wx_cv_func_statvfs=yes
37443else
37444 echo "$as_me: failed program was:" >&5
37445sed 's/^/| /' conftest.$ac_ext >&5
37446
37447wx_cv_func_statvfs=no
37448
37449fi
ac1cb8d3 37450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37451
37452fi
37453echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
37454echo "${ECHO_T}$wx_cv_func_statvfs" >&6
37455
37456 if test "$wx_cv_func_statvfs" = "yes"; then
5d7b7554 37457 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
a848cd7e
SC
37458echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
37459if test "${wx_cv_type_statvfs_t+set}" = set; then
37460 echo $ECHO_N "(cached) $ECHO_C" >&6
37461else
37462 cat >conftest.$ac_ext <<_ACEOF
37463/* confdefs.h. */
37464_ACEOF
37465cat confdefs.h >>conftest.$ac_ext
37466cat >>conftest.$ac_ext <<_ACEOF
37467/* end confdefs.h. */
37468
37469 #include <sys/statvfs.h>
37470
37471int
37472main ()
37473{
37474
37475 long l;
37476 statvfs_t fs;
37477 statvfs("/", &fs);
37478 l = fs.f_bsize;
37479 l += fs.f_blocks;
37480 l += fs.f_bavail;
37481
37482 ;
37483 return 0;
37484}
37485_ACEOF
37486rm -f conftest.$ac_objext
37487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37488 (eval $ac_compile) 2>conftest.er1
a848cd7e 37489 ac_status=$?
ac1cb8d3
VS
37490 grep -v '^ *+' conftest.er1 >conftest.err
37491 rm -f conftest.er1
37492 cat conftest.err >&5
a848cd7e
SC
37493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37494 (exit $ac_status); } &&
bb9e79c0 37495 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37497 (eval $ac_try) 2>&5
37498 ac_status=$?
37499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37500 (exit $ac_status); }; } &&
37501 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37503 (eval $ac_try) 2>&5
37504 ac_status=$?
37505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37506 (exit $ac_status); }; }; then
37507 wx_cv_type_statvfs_t=statvfs_t
37508else
37509 echo "$as_me: failed program was:" >&5
37510sed 's/^/| /' conftest.$ac_ext >&5
37511
37512
37513 cat >conftest.$ac_ext <<_ACEOF
37514/* confdefs.h. */
37515_ACEOF
37516cat confdefs.h >>conftest.$ac_ext
37517cat >>conftest.$ac_ext <<_ACEOF
37518/* end confdefs.h. */
37519
37520 #include <sys/statvfs.h>
37521
37522int
37523main ()
37524{
37525
37526 long l;
37527 struct statvfs fs;
37528 statvfs("/", &fs);
37529 l = fs.f_bsize;
37530 l += fs.f_blocks;
37531 l += fs.f_bavail;
37532
37533 ;
37534 return 0;
37535}
37536_ACEOF
37537rm -f conftest.$ac_objext
37538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37539 (eval $ac_compile) 2>conftest.er1
a848cd7e 37540 ac_status=$?
ac1cb8d3
VS
37541 grep -v '^ *+' conftest.er1 >conftest.err
37542 rm -f conftest.er1
37543 cat conftest.err >&5
a848cd7e
SC
37544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37545 (exit $ac_status); } &&
bb9e79c0 37546 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37548 (eval $ac_try) 2>&5
37549 ac_status=$?
37550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37551 (exit $ac_status); }; } &&
37552 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37554 (eval $ac_try) 2>&5
37555 ac_status=$?
37556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37557 (exit $ac_status); }; }; then
37558 wx_cv_type_statvfs_t="struct statvfs"
37559else
37560 echo "$as_me: failed program was:" >&5
37561sed 's/^/| /' conftest.$ac_ext >&5
37562
37563wx_cv_type_statvfs_t="unknown"
37564
37565fi
ac1cb8d3 37566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37567
37568
37569fi
ac1cb8d3 37570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37571
37572fi
37573echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
37574echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
37575
a848cd7e
SC
37576 if test "$wx_cv_type_statvfs_t" != "unknown"; then
37577 cat >>confdefs.h <<\_ACEOF
37578#define HAVE_STATVFS 1
37579_ACEOF
37580
37581 fi
37582 else
37583 wx_cv_type_statvfs_t="unknown"
37584 fi
37585fi
37586
37587if test "$wx_cv_type_statvfs_t" != "unknown"; then
37588 cat >>confdefs.h <<_ACEOF
37589#define WX_STATFS_T $wx_cv_type_statvfs_t
37590_ACEOF
37591
37592else
37593 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37594echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37595fi
37596
37597if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37598
37599
37600for ac_func in fcntl flock
37601do
37602as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37603echo "$as_me:$LINENO: checking for $ac_func" >&5
37604echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37605if eval "test \"\${$as_ac_var+set}\" = set"; then
37606 echo $ECHO_N "(cached) $ECHO_C" >&6
37607else
37608 cat >conftest.$ac_ext <<_ACEOF
37609/* confdefs.h. */
37610_ACEOF
37611cat confdefs.h >>conftest.$ac_ext
37612cat >>conftest.$ac_ext <<_ACEOF
37613/* end confdefs.h. */
ac1cb8d3
VS
37614/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37616#define $ac_func innocuous_$ac_func
37617
a848cd7e
SC
37618/* System header to define __stub macros and hopefully few prototypes,
37619 which can conflict with char $ac_func (); below.
37620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37621 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37622
a848cd7e
SC
37623#ifdef __STDC__
37624# include <limits.h>
37625#else
37626# include <assert.h>
37627#endif
ac1cb8d3
VS
37628
37629#undef $ac_func
37630
a848cd7e
SC
37631/* Override any gcc2 internal prototype to avoid an error. */
37632#ifdef __cplusplus
37633extern "C"
37634{
37635#endif
37636/* We use char because int might match the return type of a gcc2
37637 builtin and then its argument prototype would still apply. */
37638char $ac_func ();
37639/* The GNU C library defines this for functions which it implements
37640 to always fail with ENOSYS. Some functions are actually named
37641 something starting with __ and the normal name is an alias. */
37642#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37643choke me
37644#else
37645char (*f) () = $ac_func;
37646#endif
37647#ifdef __cplusplus
37648}
37649#endif
37650
37651int
37652main ()
37653{
37654return f != $ac_func;
37655 ;
37656 return 0;
37657}
37658_ACEOF
37659rm -f conftest.$ac_objext conftest$ac_exeext
37660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37661 (eval $ac_link) 2>conftest.er1
a848cd7e 37662 ac_status=$?
ac1cb8d3
VS
37663 grep -v '^ *+' conftest.er1 >conftest.err
37664 rm -f conftest.er1
37665 cat conftest.err >&5
a848cd7e
SC
37666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37667 (exit $ac_status); } &&
bb9e79c0 37668 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37670 (eval $ac_try) 2>&5
37671 ac_status=$?
37672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37673 (exit $ac_status); }; } &&
37674 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37676 (eval $ac_try) 2>&5
37677 ac_status=$?
37678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37679 (exit $ac_status); }; }; then
37680 eval "$as_ac_var=yes"
37681else
37682 echo "$as_me: failed program was:" >&5
37683sed 's/^/| /' conftest.$ac_ext >&5
37684
37685eval "$as_ac_var=no"
37686fi
ac1cb8d3
VS
37687rm -f conftest.err conftest.$ac_objext \
37688 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37689fi
37690echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37691echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37692if test `eval echo '${'$as_ac_var'}'` = yes; then
37693 cat >>confdefs.h <<_ACEOF
37694#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37695_ACEOF
37696 break
37697fi
37698done
37699
37700
37701 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37702 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37703echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37704 wxUSE_SNGLINST_CHECKER=no
37705 fi
37706fi
37707
37708
37709for ac_func in timegm
37710do
37711as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37712echo "$as_me:$LINENO: checking for $ac_func" >&5
37713echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37714if eval "test \"\${$as_ac_var+set}\" = set"; then
37715 echo $ECHO_N "(cached) $ECHO_C" >&6
37716else
37717 cat >conftest.$ac_ext <<_ACEOF
37718/* confdefs.h. */
37719_ACEOF
37720cat confdefs.h >>conftest.$ac_ext
37721cat >>conftest.$ac_ext <<_ACEOF
37722/* end confdefs.h. */
ac1cb8d3
VS
37723/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37725#define $ac_func innocuous_$ac_func
37726
a848cd7e
SC
37727/* System header to define __stub macros and hopefully few prototypes,
37728 which can conflict with char $ac_func (); below.
37729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37730 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37731
a848cd7e
SC
37732#ifdef __STDC__
37733# include <limits.h>
37734#else
37735# include <assert.h>
37736#endif
ac1cb8d3
VS
37737
37738#undef $ac_func
37739
a848cd7e
SC
37740/* Override any gcc2 internal prototype to avoid an error. */
37741#ifdef __cplusplus
37742extern "C"
37743{
37744#endif
37745/* We use char because int might match the return type of a gcc2
37746 builtin and then its argument prototype would still apply. */
37747char $ac_func ();
37748/* The GNU C library defines this for functions which it implements
37749 to always fail with ENOSYS. Some functions are actually named
37750 something starting with __ and the normal name is an alias. */
37751#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37752choke me
37753#else
37754char (*f) () = $ac_func;
37755#endif
37756#ifdef __cplusplus
37757}
37758#endif
37759
37760int
37761main ()
37762{
37763return f != $ac_func;
37764 ;
37765 return 0;
37766}
37767_ACEOF
37768rm -f conftest.$ac_objext conftest$ac_exeext
37769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37770 (eval $ac_link) 2>conftest.er1
a848cd7e 37771 ac_status=$?
ac1cb8d3
VS
37772 grep -v '^ *+' conftest.er1 >conftest.err
37773 rm -f conftest.er1
37774 cat conftest.err >&5
a848cd7e
SC
37775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37776 (exit $ac_status); } &&
bb9e79c0 37777 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37779 (eval $ac_try) 2>&5
37780 ac_status=$?
37781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37782 (exit $ac_status); }; } &&
37783 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37785 (eval $ac_try) 2>&5
37786 ac_status=$?
37787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37788 (exit $ac_status); }; }; then
37789 eval "$as_ac_var=yes"
37790else
37791 echo "$as_me: failed program was:" >&5
37792sed 's/^/| /' conftest.$ac_ext >&5
37793
37794eval "$as_ac_var=no"
37795fi
ac1cb8d3
VS
37796rm -f conftest.err conftest.$ac_objext \
37797 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37798fi
37799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37800echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37801if test `eval echo '${'$as_ac_var'}'` = yes; then
37802 cat >>confdefs.h <<_ACEOF
37803#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37804_ACEOF
37805
37806fi
37807done
37808
37809
37810
37811
37812for ac_func in putenv setenv
37813do
37814as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37815echo "$as_me:$LINENO: checking for $ac_func" >&5
37816echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37817if eval "test \"\${$as_ac_var+set}\" = set"; then
37818 echo $ECHO_N "(cached) $ECHO_C" >&6
37819else
37820 cat >conftest.$ac_ext <<_ACEOF
37821/* confdefs.h. */
37822_ACEOF
37823cat confdefs.h >>conftest.$ac_ext
37824cat >>conftest.$ac_ext <<_ACEOF
37825/* end confdefs.h. */
ac1cb8d3
VS
37826/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37828#define $ac_func innocuous_$ac_func
37829
a848cd7e
SC
37830/* System header to define __stub macros and hopefully few prototypes,
37831 which can conflict with char $ac_func (); below.
37832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37833 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37834
a848cd7e
SC
37835#ifdef __STDC__
37836# include <limits.h>
37837#else
37838# include <assert.h>
37839#endif
ac1cb8d3
VS
37840
37841#undef $ac_func
37842
a848cd7e
SC
37843/* Override any gcc2 internal prototype to avoid an error. */
37844#ifdef __cplusplus
37845extern "C"
37846{
37847#endif
37848/* We use char because int might match the return type of a gcc2
37849 builtin and then its argument prototype would still apply. */
37850char $ac_func ();
37851/* The GNU C library defines this for functions which it implements
37852 to always fail with ENOSYS. Some functions are actually named
37853 something starting with __ and the normal name is an alias. */
37854#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37855choke me
37856#else
37857char (*f) () = $ac_func;
37858#endif
37859#ifdef __cplusplus
37860}
37861#endif
37862
37863int
37864main ()
37865{
37866return f != $ac_func;
37867 ;
37868 return 0;
37869}
37870_ACEOF
37871rm -f conftest.$ac_objext conftest$ac_exeext
37872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37873 (eval $ac_link) 2>conftest.er1
a848cd7e 37874 ac_status=$?
ac1cb8d3
VS
37875 grep -v '^ *+' conftest.er1 >conftest.err
37876 rm -f conftest.er1
37877 cat conftest.err >&5
a848cd7e
SC
37878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37879 (exit $ac_status); } &&
bb9e79c0 37880 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37882 (eval $ac_try) 2>&5
37883 ac_status=$?
37884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37885 (exit $ac_status); }; } &&
37886 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37888 (eval $ac_try) 2>&5
37889 ac_status=$?
37890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37891 (exit $ac_status); }; }; then
37892 eval "$as_ac_var=yes"
37893else
37894 echo "$as_me: failed program was:" >&5
37895sed 's/^/| /' conftest.$ac_ext >&5
37896
37897eval "$as_ac_var=no"
37898fi
ac1cb8d3
VS
37899rm -f conftest.err conftest.$ac_objext \
37900 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37901fi
37902echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37903echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37904if test `eval echo '${'$as_ac_var'}'` = yes; then
37905 cat >>confdefs.h <<_ACEOF
37906#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37907_ACEOF
37908 break
37909fi
37910done
37911
37912
37913HAVE_SOME_SLEEP_FUNC=0
37914if test "$USE_BEOS" = 1; then
37915 cat >>confdefs.h <<\_ACEOF
37916#define HAVE_SLEEP 1
37917_ACEOF
37918
37919 HAVE_SOME_SLEEP_FUNC=1
37920fi
37921
37922if test "$USE_DARWIN" = 1; then
37923 cat >>confdefs.h <<\_ACEOF
37924#define HAVE_USLEEP 1
37925_ACEOF
37926
37927 HAVE_SOME_SLEEP_FUNC=1
37928fi
37929
37930if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
37931 POSIX4_LINK=
37932
37933for ac_func in nanosleep
37934do
37935as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37936echo "$as_me:$LINENO: checking for $ac_func" >&5
37937echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37938if eval "test \"\${$as_ac_var+set}\" = set"; then
37939 echo $ECHO_N "(cached) $ECHO_C" >&6
37940else
37941 cat >conftest.$ac_ext <<_ACEOF
37942/* confdefs.h. */
37943_ACEOF
37944cat confdefs.h >>conftest.$ac_ext
37945cat >>conftest.$ac_ext <<_ACEOF
37946/* end confdefs.h. */
ac1cb8d3
VS
37947/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37949#define $ac_func innocuous_$ac_func
37950
a848cd7e
SC
37951/* System header to define __stub macros and hopefully few prototypes,
37952 which can conflict with char $ac_func (); below.
37953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37954 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37955
a848cd7e
SC
37956#ifdef __STDC__
37957# include <limits.h>
37958#else
37959# include <assert.h>
37960#endif
ac1cb8d3
VS
37961
37962#undef $ac_func
37963
a848cd7e
SC
37964/* Override any gcc2 internal prototype to avoid an error. */
37965#ifdef __cplusplus
37966extern "C"
37967{
37968#endif
37969/* We use char because int might match the return type of a gcc2
37970 builtin and then its argument prototype would still apply. */
37971char $ac_func ();
37972/* The GNU C library defines this for functions which it implements
37973 to always fail with ENOSYS. Some functions are actually named
37974 something starting with __ and the normal name is an alias. */
37975#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37976choke me
37977#else
37978char (*f) () = $ac_func;
37979#endif
37980#ifdef __cplusplus
37981}
37982#endif
37983
37984int
37985main ()
37986{
37987return f != $ac_func;
37988 ;
37989 return 0;
37990}
37991_ACEOF
37992rm -f conftest.$ac_objext conftest$ac_exeext
37993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37994 (eval $ac_link) 2>conftest.er1
a848cd7e 37995 ac_status=$?
ac1cb8d3
VS
37996 grep -v '^ *+' conftest.er1 >conftest.err
37997 rm -f conftest.er1
37998 cat conftest.err >&5
a848cd7e
SC
37999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38000 (exit $ac_status); } &&
bb9e79c0 38001 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38003 (eval $ac_try) 2>&5
38004 ac_status=$?
38005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38006 (exit $ac_status); }; } &&
38007 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38009 (eval $ac_try) 2>&5
38010 ac_status=$?
38011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38012 (exit $ac_status); }; }; then
38013 eval "$as_ac_var=yes"
38014else
38015 echo "$as_me: failed program was:" >&5
38016sed 's/^/| /' conftest.$ac_ext >&5
38017
38018eval "$as_ac_var=no"
38019fi
ac1cb8d3
VS
38020rm -f conftest.err conftest.$ac_objext \
38021 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38022fi
38023echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38024echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38025if test `eval echo '${'$as_ac_var'}'` = yes; then
38026 cat >>confdefs.h <<_ACEOF
38027#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38028_ACEOF
38029 cat >>confdefs.h <<\_ACEOF
38030#define HAVE_NANOSLEEP 1
38031_ACEOF
38032
38033else
38034
38035 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
38036echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
38037if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
38038 echo $ECHO_N "(cached) $ECHO_C" >&6
38039else
38040 ac_check_lib_save_LIBS=$LIBS
38041LIBS="-lposix4 $LIBS"
38042cat >conftest.$ac_ext <<_ACEOF
38043/* confdefs.h. */
38044_ACEOF
38045cat confdefs.h >>conftest.$ac_ext
38046cat >>conftest.$ac_ext <<_ACEOF
38047/* end confdefs.h. */
38048
38049/* Override any gcc2 internal prototype to avoid an error. */
38050#ifdef __cplusplus
38051extern "C"
38052#endif
38053/* We use char because int might match the return type of a gcc2
38054 builtin and then its argument prototype would still apply. */
38055char nanosleep ();
38056int
38057main ()
38058{
38059nanosleep ();
38060 ;
38061 return 0;
38062}
38063_ACEOF
38064rm -f conftest.$ac_objext conftest$ac_exeext
38065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38066 (eval $ac_link) 2>conftest.er1
a848cd7e 38067 ac_status=$?
ac1cb8d3
VS
38068 grep -v '^ *+' conftest.er1 >conftest.err
38069 rm -f conftest.er1
38070 cat conftest.err >&5
a848cd7e
SC
38071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38072 (exit $ac_status); } &&
bb9e79c0 38073 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38075 (eval $ac_try) 2>&5
38076 ac_status=$?
38077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38078 (exit $ac_status); }; } &&
38079 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38081 (eval $ac_try) 2>&5
38082 ac_status=$?
38083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38084 (exit $ac_status); }; }; then
38085 ac_cv_lib_posix4_nanosleep=yes
38086else
38087 echo "$as_me: failed program was:" >&5
38088sed 's/^/| /' conftest.$ac_ext >&5
38089
38090ac_cv_lib_posix4_nanosleep=no
38091fi
ac1cb8d3
VS
38092rm -f conftest.err conftest.$ac_objext \
38093 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38094LIBS=$ac_check_lib_save_LIBS
38095fi
38096echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
38097echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
38098if test $ac_cv_lib_posix4_nanosleep = yes; then
38099
38100 cat >>confdefs.h <<\_ACEOF
38101#define HAVE_NANOSLEEP 1
38102_ACEOF
38103
38104 POSIX4_LINK=" -lposix4"
38105
38106else
38107
38108
38109for ac_func in usleep
38110do
38111as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38112echo "$as_me:$LINENO: checking for $ac_func" >&5
38113echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38114if eval "test \"\${$as_ac_var+set}\" = set"; then
38115 echo $ECHO_N "(cached) $ECHO_C" >&6
38116else
38117 cat >conftest.$ac_ext <<_ACEOF
38118/* confdefs.h. */
38119_ACEOF
38120cat confdefs.h >>conftest.$ac_ext
38121cat >>conftest.$ac_ext <<_ACEOF
38122/* end confdefs.h. */
ac1cb8d3
VS
38123/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38125#define $ac_func innocuous_$ac_func
38126
a848cd7e
SC
38127/* System header to define __stub macros and hopefully few prototypes,
38128 which can conflict with char $ac_func (); below.
38129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38130 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38131
a848cd7e
SC
38132#ifdef __STDC__
38133# include <limits.h>
38134#else
38135# include <assert.h>
38136#endif
ac1cb8d3
VS
38137
38138#undef $ac_func
38139
a848cd7e
SC
38140/* Override any gcc2 internal prototype to avoid an error. */
38141#ifdef __cplusplus
38142extern "C"
38143{
38144#endif
38145/* We use char because int might match the return type of a gcc2
38146 builtin and then its argument prototype would still apply. */
38147char $ac_func ();
38148/* The GNU C library defines this for functions which it implements
38149 to always fail with ENOSYS. Some functions are actually named
38150 something starting with __ and the normal name is an alias. */
38151#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38152choke me
38153#else
38154char (*f) () = $ac_func;
38155#endif
38156#ifdef __cplusplus
38157}
38158#endif
38159
38160int
38161main ()
38162{
38163return f != $ac_func;
38164 ;
38165 return 0;
38166}
38167_ACEOF
38168rm -f conftest.$ac_objext conftest$ac_exeext
38169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38170 (eval $ac_link) 2>conftest.er1
a848cd7e 38171 ac_status=$?
ac1cb8d3
VS
38172 grep -v '^ *+' conftest.er1 >conftest.err
38173 rm -f conftest.er1
38174 cat conftest.err >&5
a848cd7e
SC
38175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38176 (exit $ac_status); } &&
bb9e79c0 38177 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38179 (eval $ac_try) 2>&5
38180 ac_status=$?
38181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38182 (exit $ac_status); }; } &&
38183 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38185 (eval $ac_try) 2>&5
38186 ac_status=$?
38187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38188 (exit $ac_status); }; }; then
38189 eval "$as_ac_var=yes"
38190else
38191 echo "$as_me: failed program was:" >&5
38192sed 's/^/| /' conftest.$ac_ext >&5
38193
38194eval "$as_ac_var=no"
38195fi
ac1cb8d3
VS
38196rm -f conftest.err conftest.$ac_objext \
38197 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38198fi
38199echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38200echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38201if test `eval echo '${'$as_ac_var'}'` = yes; then
38202 cat >>confdefs.h <<_ACEOF
38203#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38204_ACEOF
38205 cat >>confdefs.h <<\_ACEOF
38206#define HAVE_USLEEP 1
38207_ACEOF
38208
38209else
38210 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
38211echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
38212
38213fi
38214done
38215
38216
38217
38218fi
38219
38220
38221
38222fi
38223done
38224
38225fi
38226
38227
38228
38229for ac_func in uname gethostname
38230do
38231as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38232echo "$as_me:$LINENO: checking for $ac_func" >&5
38233echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38234if eval "test \"\${$as_ac_var+set}\" = set"; then
38235 echo $ECHO_N "(cached) $ECHO_C" >&6
38236else
38237 cat >conftest.$ac_ext <<_ACEOF
38238/* confdefs.h. */
38239_ACEOF
38240cat confdefs.h >>conftest.$ac_ext
38241cat >>conftest.$ac_ext <<_ACEOF
38242/* end confdefs.h. */
ac1cb8d3
VS
38243/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38245#define $ac_func innocuous_$ac_func
38246
a848cd7e
SC
38247/* System header to define __stub macros and hopefully few prototypes,
38248 which can conflict with char $ac_func (); below.
38249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38250 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38251
a848cd7e
SC
38252#ifdef __STDC__
38253# include <limits.h>
38254#else
38255# include <assert.h>
38256#endif
ac1cb8d3
VS
38257
38258#undef $ac_func
38259
a848cd7e
SC
38260/* Override any gcc2 internal prototype to avoid an error. */
38261#ifdef __cplusplus
38262extern "C"
38263{
38264#endif
38265/* We use char because int might match the return type of a gcc2
38266 builtin and then its argument prototype would still apply. */
38267char $ac_func ();
38268/* The GNU C library defines this for functions which it implements
38269 to always fail with ENOSYS. Some functions are actually named
38270 something starting with __ and the normal name is an alias. */
38271#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38272choke me
38273#else
38274char (*f) () = $ac_func;
38275#endif
38276#ifdef __cplusplus
38277}
38278#endif
38279
38280int
38281main ()
38282{
38283return f != $ac_func;
38284 ;
38285 return 0;
38286}
38287_ACEOF
38288rm -f conftest.$ac_objext conftest$ac_exeext
38289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38290 (eval $ac_link) 2>conftest.er1
a848cd7e 38291 ac_status=$?
ac1cb8d3
VS
38292 grep -v '^ *+' conftest.er1 >conftest.err
38293 rm -f conftest.er1
38294 cat conftest.err >&5
a848cd7e
SC
38295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38296 (exit $ac_status); } &&
bb9e79c0 38297 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38299 (eval $ac_try) 2>&5
38300 ac_status=$?
38301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38302 (exit $ac_status); }; } &&
38303 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38305 (eval $ac_try) 2>&5
38306 ac_status=$?
38307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38308 (exit $ac_status); }; }; then
38309 eval "$as_ac_var=yes"
38310else
38311 echo "$as_me: failed program was:" >&5
38312sed 's/^/| /' conftest.$ac_ext >&5
38313
38314eval "$as_ac_var=no"
38315fi
ac1cb8d3
VS
38316rm -f conftest.err conftest.$ac_objext \
38317 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38318fi
38319echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38320echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38321if test `eval echo '${'$as_ac_var'}'` = yes; then
38322 cat >>confdefs.h <<_ACEOF
38323#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38324_ACEOF
38325 break
38326fi
38327done
38328
38329
56632e81
MW
38330
38331 for wx_func in strtok_r
38332 do
38333 echo "$as_me:$LINENO: checking for $wx_func" >&5
38334echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
38335if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
a848cd7e
SC
38336 echo $ECHO_N "(cached) $ECHO_C" >&6
38337else
56632e81
MW
38338
38339 cat >conftest.$ac_ext <<_ACEOF
38340
38341 /* confdefs.h. */
a848cd7e
SC
38342_ACEOF
38343cat confdefs.h >>conftest.$ac_ext
38344cat >>conftest.$ac_ext <<_ACEOF
38345/* end confdefs.h. */
56632e81
MW
38346
38347 #define _REENTRANT
38348 $ac_includes_default
38349
a848cd7e
SC
38350int
38351main ()
38352{
56632e81
MW
38353
38354 #ifndef $wx_func
38355 &$wx_func;
38356 #endif
38357
5acfd58d 38358
a848cd7e
SC
38359 ;
38360 return 0;
38361}
56632e81 38362
a848cd7e 38363_ACEOF
56632e81
MW
38364rm -f conftest.$ac_objext conftest$ac_exeext
38365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38366 (eval $ac_link) 2>conftest.er1
a848cd7e 38367 ac_status=$?
ac1cb8d3
VS
38368 grep -v '^ *+' conftest.er1 >conftest.err
38369 rm -f conftest.er1
38370 cat conftest.err >&5
a848cd7e
SC
38371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38372 (exit $ac_status); } &&
bb9e79c0 38373 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
56632e81 38379 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38381 (eval $ac_try) 2>&5
38382 ac_status=$?
38383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38384 (exit $ac_status); }; }; then
56632e81 38385 eval wx_cv_func_$wx_func=yes
a848cd7e
SC
38386else
38387 echo "$as_me: failed program was:" >&5
38388sed 's/^/| /' conftest.$ac_ext >&5
38389
56632e81 38390eval wx_cv_func_$wx_func=no
a848cd7e 38391fi
56632e81
MW
38392rm -f conftest.err conftest.$ac_objext \
38393 conftest$ac_exeext conftest.$ac_ext
a848cd7e 38394
56632e81
MW
38395fi
38396echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
38397echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
a848cd7e 38398
56632e81
MW
38399 if eval test \$wx_cv_func_$wx_func = yes
38400 then
38401 cat >>confdefs.h <<_ACEOF
38402#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
82a2636b
MW
38403_ACEOF
38404
38405
56632e81
MW
38406 else
38407 :
5acfd58d 38408
56632e81
MW
38409 fi
38410 done
5acfd58d 38411
a848cd7e 38412
a848cd7e
SC
38413INET_LINK=
38414
38415for ac_func in inet_addr
38416do
38417as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38418echo "$as_me:$LINENO: checking for $ac_func" >&5
38419echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38420if eval "test \"\${$as_ac_var+set}\" = set"; then
38421 echo $ECHO_N "(cached) $ECHO_C" >&6
38422else
38423 cat >conftest.$ac_ext <<_ACEOF
38424/* confdefs.h. */
38425_ACEOF
38426cat confdefs.h >>conftest.$ac_ext
38427cat >>conftest.$ac_ext <<_ACEOF
38428/* end confdefs.h. */
ac1cb8d3
VS
38429/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38431#define $ac_func innocuous_$ac_func
38432
a848cd7e
SC
38433/* System header to define __stub macros and hopefully few prototypes,
38434 which can conflict with char $ac_func (); below.
38435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38436 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38437
a848cd7e
SC
38438#ifdef __STDC__
38439# include <limits.h>
38440#else
38441# include <assert.h>
38442#endif
ac1cb8d3
VS
38443
38444#undef $ac_func
38445
a848cd7e
SC
38446/* Override any gcc2 internal prototype to avoid an error. */
38447#ifdef __cplusplus
38448extern "C"
38449{
38450#endif
38451/* We use char because int might match the return type of a gcc2
38452 builtin and then its argument prototype would still apply. */
38453char $ac_func ();
38454/* The GNU C library defines this for functions which it implements
38455 to always fail with ENOSYS. Some functions are actually named
38456 something starting with __ and the normal name is an alias. */
38457#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38458choke me
38459#else
38460char (*f) () = $ac_func;
38461#endif
38462#ifdef __cplusplus
38463}
38464#endif
38465
38466int
38467main ()
38468{
38469return f != $ac_func;
38470 ;
38471 return 0;
38472}
38473_ACEOF
38474rm -f conftest.$ac_objext conftest$ac_exeext
38475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38476 (eval $ac_link) 2>conftest.er1
a848cd7e 38477 ac_status=$?
ac1cb8d3
VS
38478 grep -v '^ *+' conftest.er1 >conftest.err
38479 rm -f conftest.er1
38480 cat conftest.err >&5
a848cd7e
SC
38481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38482 (exit $ac_status); } &&
bb9e79c0 38483 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38485 (eval $ac_try) 2>&5
38486 ac_status=$?
38487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38488 (exit $ac_status); }; } &&
38489 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38491 (eval $ac_try) 2>&5
38492 ac_status=$?
38493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38494 (exit $ac_status); }; }; then
38495 eval "$as_ac_var=yes"
38496else
38497 echo "$as_me: failed program was:" >&5
38498sed 's/^/| /' conftest.$ac_ext >&5
38499
38500eval "$as_ac_var=no"
38501fi
ac1cb8d3
VS
38502rm -f conftest.err conftest.$ac_objext \
38503 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38504fi
38505echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38506echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38507if test `eval echo '${'$as_ac_var'}'` = yes; then
38508 cat >>confdefs.h <<_ACEOF
38509#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38510_ACEOF
38511 cat >>confdefs.h <<\_ACEOF
38512#define HAVE_INET_ADDR 1
38513_ACEOF
38514
38515else
38516
38517 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
38518echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
38519if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
38520 echo $ECHO_N "(cached) $ECHO_C" >&6
38521else
38522 ac_check_lib_save_LIBS=$LIBS
38523LIBS="-lnsl $LIBS"
38524cat >conftest.$ac_ext <<_ACEOF
38525/* confdefs.h. */
38526_ACEOF
38527cat confdefs.h >>conftest.$ac_ext
38528cat >>conftest.$ac_ext <<_ACEOF
38529/* end confdefs.h. */
38530
38531/* Override any gcc2 internal prototype to avoid an error. */
38532#ifdef __cplusplus
38533extern "C"
38534#endif
38535/* We use char because int might match the return type of a gcc2
38536 builtin and then its argument prototype would still apply. */
38537char inet_addr ();
38538int
38539main ()
38540{
38541inet_addr ();
38542 ;
38543 return 0;
38544}
38545_ACEOF
38546rm -f conftest.$ac_objext conftest$ac_exeext
38547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38548 (eval $ac_link) 2>conftest.er1
a848cd7e 38549 ac_status=$?
ac1cb8d3
VS
38550 grep -v '^ *+' conftest.er1 >conftest.err
38551 rm -f conftest.er1
38552 cat conftest.err >&5
a848cd7e
SC
38553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38554 (exit $ac_status); } &&
bb9e79c0 38555 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38557 (eval $ac_try) 2>&5
38558 ac_status=$?
38559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38560 (exit $ac_status); }; } &&
38561 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38563 (eval $ac_try) 2>&5
38564 ac_status=$?
38565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38566 (exit $ac_status); }; }; then
38567 ac_cv_lib_nsl_inet_addr=yes
38568else
38569 echo "$as_me: failed program was:" >&5
38570sed 's/^/| /' conftest.$ac_ext >&5
38571
38572ac_cv_lib_nsl_inet_addr=no
38573fi
ac1cb8d3
VS
38574rm -f conftest.err conftest.$ac_objext \
38575 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38576LIBS=$ac_check_lib_save_LIBS
38577fi
38578echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
38579echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
38580if test $ac_cv_lib_nsl_inet_addr = yes; then
38581 INET_LINK="nsl"
38582else
38583
38584 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38585echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
38586if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
38587 echo $ECHO_N "(cached) $ECHO_C" >&6
38588else
38589 ac_check_lib_save_LIBS=$LIBS
38590LIBS="-lresolv $LIBS"
38591cat >conftest.$ac_ext <<_ACEOF
38592/* confdefs.h. */
38593_ACEOF
38594cat confdefs.h >>conftest.$ac_ext
38595cat >>conftest.$ac_ext <<_ACEOF
38596/* end confdefs.h. */
38597
38598/* Override any gcc2 internal prototype to avoid an error. */
38599#ifdef __cplusplus
38600extern "C"
38601#endif
38602/* We use char because int might match the return type of a gcc2
38603 builtin and then its argument prototype would still apply. */
38604char inet_addr ();
38605int
38606main ()
38607{
38608inet_addr ();
38609 ;
38610 return 0;
38611}
38612_ACEOF
38613rm -f conftest.$ac_objext conftest$ac_exeext
38614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38615 (eval $ac_link) 2>conftest.er1
a848cd7e 38616 ac_status=$?
ac1cb8d3
VS
38617 grep -v '^ *+' conftest.er1 >conftest.err
38618 rm -f conftest.er1
38619 cat conftest.err >&5
a848cd7e
SC
38620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38621 (exit $ac_status); } &&
bb9e79c0 38622 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38624 (eval $ac_try) 2>&5
38625 ac_status=$?
38626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38627 (exit $ac_status); }; } &&
38628 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38630 (eval $ac_try) 2>&5
38631 ac_status=$?
38632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38633 (exit $ac_status); }; }; then
38634 ac_cv_lib_resolv_inet_addr=yes
38635else
38636 echo "$as_me: failed program was:" >&5
38637sed 's/^/| /' conftest.$ac_ext >&5
38638
38639ac_cv_lib_resolv_inet_addr=no
38640fi
ac1cb8d3
VS
38641rm -f conftest.err conftest.$ac_objext \
38642 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38643LIBS=$ac_check_lib_save_LIBS
38644fi
38645echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38646echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
38647if test $ac_cv_lib_resolv_inet_addr = yes; then
38648 INET_LINK="resolv"
38649else
38650
38651 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38652echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
38653if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38654 echo $ECHO_N "(cached) $ECHO_C" >&6
38655else
38656 ac_check_lib_save_LIBS=$LIBS
38657LIBS="-lsocket $LIBS"
38658cat >conftest.$ac_ext <<_ACEOF
38659/* confdefs.h. */
38660_ACEOF
38661cat confdefs.h >>conftest.$ac_ext
38662cat >>conftest.$ac_ext <<_ACEOF
38663/* end confdefs.h. */
38664
38665/* Override any gcc2 internal prototype to avoid an error. */
38666#ifdef __cplusplus
38667extern "C"
38668#endif
38669/* We use char because int might match the return type of a gcc2
38670 builtin and then its argument prototype would still apply. */
38671char inet_addr ();
38672int
38673main ()
38674{
38675inet_addr ();
38676 ;
38677 return 0;
38678}
38679_ACEOF
38680rm -f conftest.$ac_objext conftest$ac_exeext
38681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38682 (eval $ac_link) 2>conftest.er1
a848cd7e 38683 ac_status=$?
ac1cb8d3
VS
38684 grep -v '^ *+' conftest.er1 >conftest.err
38685 rm -f conftest.er1
38686 cat conftest.err >&5
a848cd7e
SC
38687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38688 (exit $ac_status); } &&
bb9e79c0 38689 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38691 (eval $ac_try) 2>&5
38692 ac_status=$?
38693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38694 (exit $ac_status); }; } &&
38695 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38697 (eval $ac_try) 2>&5
38698 ac_status=$?
38699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38700 (exit $ac_status); }; }; then
38701 ac_cv_lib_socket_inet_addr=yes
38702else
38703 echo "$as_me: failed program was:" >&5
38704sed 's/^/| /' conftest.$ac_ext >&5
38705
38706ac_cv_lib_socket_inet_addr=no
38707fi
ac1cb8d3
VS
38708rm -f conftest.err conftest.$ac_objext \
38709 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38710LIBS=$ac_check_lib_save_LIBS
38711fi
38712echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38713echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
38714if test $ac_cv_lib_socket_inet_addr = yes; then
38715 INET_LINK="socket"
38716
38717fi
38718
38719
38720
38721fi
38722
38723
38724
38725fi
38726
38727
38728
38729fi
38730done
38731
38732
38733
38734for ac_func in inet_aton
38735do
38736as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38737echo "$as_me:$LINENO: checking for $ac_func" >&5
38738echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38739if eval "test \"\${$as_ac_var+set}\" = set"; then
38740 echo $ECHO_N "(cached) $ECHO_C" >&6
38741else
38742 cat >conftest.$ac_ext <<_ACEOF
38743/* confdefs.h. */
38744_ACEOF
38745cat confdefs.h >>conftest.$ac_ext
38746cat >>conftest.$ac_ext <<_ACEOF
38747/* end confdefs.h. */
ac1cb8d3
VS
38748/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38750#define $ac_func innocuous_$ac_func
38751
a848cd7e
SC
38752/* System header to define __stub macros and hopefully few prototypes,
38753 which can conflict with char $ac_func (); below.
38754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38755 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38756
a848cd7e
SC
38757#ifdef __STDC__
38758# include <limits.h>
38759#else
38760# include <assert.h>
38761#endif
ac1cb8d3
VS
38762
38763#undef $ac_func
38764
a848cd7e
SC
38765/* Override any gcc2 internal prototype to avoid an error. */
38766#ifdef __cplusplus
38767extern "C"
38768{
38769#endif
38770/* We use char because int might match the return type of a gcc2
38771 builtin and then its argument prototype would still apply. */
38772char $ac_func ();
38773/* The GNU C library defines this for functions which it implements
38774 to always fail with ENOSYS. Some functions are actually named
38775 something starting with __ and the normal name is an alias. */
38776#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38777choke me
38778#else
38779char (*f) () = $ac_func;
38780#endif
38781#ifdef __cplusplus
38782}
38783#endif
38784
38785int
38786main ()
38787{
38788return f != $ac_func;
38789 ;
38790 return 0;
38791}
38792_ACEOF
38793rm -f conftest.$ac_objext conftest$ac_exeext
38794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38795 (eval $ac_link) 2>conftest.er1
a848cd7e 38796 ac_status=$?
ac1cb8d3
VS
38797 grep -v '^ *+' conftest.er1 >conftest.err
38798 rm -f conftest.er1
38799 cat conftest.err >&5
a848cd7e
SC
38800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38801 (exit $ac_status); } &&
bb9e79c0 38802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38804 (eval $ac_try) 2>&5
38805 ac_status=$?
38806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38807 (exit $ac_status); }; } &&
38808 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38810 (eval $ac_try) 2>&5
38811 ac_status=$?
38812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38813 (exit $ac_status); }; }; then
38814 eval "$as_ac_var=yes"
38815else
38816 echo "$as_me: failed program was:" >&5
38817sed 's/^/| /' conftest.$ac_ext >&5
38818
38819eval "$as_ac_var=no"
38820fi
ac1cb8d3
VS
38821rm -f conftest.err conftest.$ac_objext \
38822 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38823fi
38824echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38825echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38826if test `eval echo '${'$as_ac_var'}'` = yes; then
38827 cat >>confdefs.h <<_ACEOF
38828#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38829_ACEOF
38830 cat >>confdefs.h <<\_ACEOF
38831#define HAVE_INET_ATON 1
38832_ACEOF
38833
38834else
38835
38836 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38837echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38838echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
38839if eval "test \"\${$as_ac_Lib+set}\" = set"; then
38840 echo $ECHO_N "(cached) $ECHO_C" >&6
38841else
38842 ac_check_lib_save_LIBS=$LIBS
38843LIBS="-l$INET_LINK $LIBS"
38844cat >conftest.$ac_ext <<_ACEOF
38845/* confdefs.h. */
38846_ACEOF
38847cat confdefs.h >>conftest.$ac_ext
38848cat >>conftest.$ac_ext <<_ACEOF
38849/* end confdefs.h. */
38850
38851/* Override any gcc2 internal prototype to avoid an error. */
38852#ifdef __cplusplus
38853extern "C"
38854#endif
38855/* We use char because int might match the return type of a gcc2
38856 builtin and then its argument prototype would still apply. */
38857char inet_aton ();
38858int
38859main ()
38860{
38861inet_aton ();
38862 ;
38863 return 0;
38864}
38865_ACEOF
38866rm -f conftest.$ac_objext conftest$ac_exeext
38867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38868 (eval $ac_link) 2>conftest.er1
a848cd7e 38869 ac_status=$?
ac1cb8d3
VS
38870 grep -v '^ *+' conftest.er1 >conftest.err
38871 rm -f conftest.er1
38872 cat conftest.err >&5
a848cd7e
SC
38873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38874 (exit $ac_status); } &&
bb9e79c0 38875 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38877 (eval $ac_try) 2>&5
38878 ac_status=$?
38879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38880 (exit $ac_status); }; } &&
38881 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38883 (eval $ac_try) 2>&5
38884 ac_status=$?
38885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38886 (exit $ac_status); }; }; then
38887 eval "$as_ac_Lib=yes"
38888else
38889 echo "$as_me: failed program was:" >&5
38890sed 's/^/| /' conftest.$ac_ext >&5
38891
38892eval "$as_ac_Lib=no"
38893fi
ac1cb8d3
VS
38894rm -f conftest.err conftest.$ac_objext \
38895 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38896LIBS=$ac_check_lib_save_LIBS
38897fi
38898echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
38899echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
38900if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38901 cat >>confdefs.h <<\_ACEOF
38902#define HAVE_INET_ATON 1
38903_ACEOF
38904
38905fi
38906
38907
38908fi
38909done
38910
38911
38912if test "x$INET_LINK" != "x"; then
38913 cat >>confdefs.h <<\_ACEOF
38914#define HAVE_INET_ADDR 1
38915_ACEOF
38916
38917 INET_LINK=" -l$INET_LINK"
38918fi
38919
f8f6c91a
MW
38920
38921 for wx_func in fdopen
38922 do
38923 echo "$as_me:$LINENO: checking for $wx_func" >&5
38924echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
38925if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
38926 echo $ECHO_N "(cached) $ECHO_C" >&6
38927else
38928
38929 cat >conftest.$ac_ext <<_ACEOF
38930
38931 /* confdefs.h. */
38932_ACEOF
38933cat confdefs.h >>conftest.$ac_ext
38934cat >>conftest.$ac_ext <<_ACEOF
38935/* end confdefs.h. */
38936
38937
38938 $ac_includes_default
38939
38940int
38941main ()
38942{
38943
38944 #ifndef $wx_func
38945 &$wx_func;
38946 #endif
38947
38948
38949 ;
38950 return 0;
38951}
38952
38953_ACEOF
38954rm -f conftest.$ac_objext conftest$ac_exeext
38955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38956 (eval $ac_link) 2>conftest.er1
38957 ac_status=$?
38958 grep -v '^ *+' conftest.er1 >conftest.err
38959 rm -f conftest.er1
38960 cat conftest.err >&5
38961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38962 (exit $ac_status); } &&
bb9e79c0 38963 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f8f6c91a
MW
38964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38965 (eval $ac_try) 2>&5
38966 ac_status=$?
38967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38968 (exit $ac_status); }; } &&
38969 { ac_try='test -s conftest$ac_exeext'
38970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38971 (eval $ac_try) 2>&5
38972 ac_status=$?
38973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38974 (exit $ac_status); }; }; then
38975 eval wx_cv_func_$wx_func=yes
38976else
38977 echo "$as_me: failed program was:" >&5
38978sed 's/^/| /' conftest.$ac_ext >&5
38979
38980eval wx_cv_func_$wx_func=no
a848cd7e 38981fi
f8f6c91a
MW
38982rm -f conftest.err conftest.$ac_objext \
38983 conftest$ac_exeext conftest.$ac_ext
38984
38985fi
38986echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
38987echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
38988
38989 if eval test \$wx_cv_func_$wx_func = yes
38990 then
38991 cat >>confdefs.h <<_ACEOF
38992#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
38993_ACEOF
38994
38995
38996 else
38997 :
38998
38999 fi
39000 done
39001
39002
39003fi
39004
a848cd7e
SC
39005
39006
39007
39008EXTRALIBS_ESD=
39009echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
39010echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
39011if test "${ac_cv_lib_esd_esd_close+set}" = set; then
39012 echo $ECHO_N "(cached) $ECHO_C" >&6
39013else
39014 ac_check_lib_save_LIBS=$LIBS
39015LIBS="-lesd $LIBS"
39016cat >conftest.$ac_ext <<_ACEOF
39017/* confdefs.h. */
39018_ACEOF
39019cat confdefs.h >>conftest.$ac_ext
39020cat >>conftest.$ac_ext <<_ACEOF
39021/* end confdefs.h. */
39022
39023/* Override any gcc2 internal prototype to avoid an error. */
39024#ifdef __cplusplus
39025extern "C"
39026#endif
39027/* We use char because int might match the return type of a gcc2
39028 builtin and then its argument prototype would still apply. */
39029char esd_close ();
39030int
39031main ()
39032{
39033esd_close ();
39034 ;
39035 return 0;
39036}
39037_ACEOF
39038rm -f conftest.$ac_objext conftest$ac_exeext
39039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39040 (eval $ac_link) 2>conftest.er1
a848cd7e 39041 ac_status=$?
ac1cb8d3
VS
39042 grep -v '^ *+' conftest.er1 >conftest.err
39043 rm -f conftest.er1
39044 cat conftest.err >&5
a848cd7e
SC
39045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39046 (exit $ac_status); } &&
bb9e79c0 39047 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39049 (eval $ac_try) 2>&5
39050 ac_status=$?
39051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39052 (exit $ac_status); }; } &&
39053 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39055 (eval $ac_try) 2>&5
39056 ac_status=$?
39057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39058 (exit $ac_status); }; }; then
39059 ac_cv_lib_esd_esd_close=yes
39060else
39061 echo "$as_me: failed program was:" >&5
39062sed 's/^/| /' conftest.$ac_ext >&5
39063
39064ac_cv_lib_esd_esd_close=no
39065fi
ac1cb8d3
VS
39066rm -f conftest.err conftest.$ac_objext \
39067 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39068LIBS=$ac_check_lib_save_LIBS
39069fi
39070echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
39071echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
39072if test $ac_cv_lib_esd_esd_close = yes; then
39073
39074
39075for ac_header in esd.h
39076do
39077as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39078if eval "test \"\${$as_ac_Header+set}\" = set"; then
39079 echo "$as_me:$LINENO: checking for $ac_header" >&5
39080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39081if eval "test \"\${$as_ac_Header+set}\" = set"; then
39082 echo $ECHO_N "(cached) $ECHO_C" >&6
39083fi
39084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39085echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39086else
39087 # Is the header compilable?
39088echo "$as_me:$LINENO: checking $ac_header usability" >&5
39089echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39090cat >conftest.$ac_ext <<_ACEOF
39091/* confdefs.h. */
39092_ACEOF
39093cat confdefs.h >>conftest.$ac_ext
39094cat >>conftest.$ac_ext <<_ACEOF
39095/* end confdefs.h. */
39096$ac_includes_default
39097#include <$ac_header>
39098_ACEOF
39099rm -f conftest.$ac_objext
39100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39101 (eval $ac_compile) 2>conftest.er1
a848cd7e 39102 ac_status=$?
ac1cb8d3
VS
39103 grep -v '^ *+' conftest.er1 >conftest.err
39104 rm -f conftest.er1
39105 cat conftest.err >&5
a848cd7e
SC
39106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39107 (exit $ac_status); } &&
bb9e79c0 39108 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39110 (eval $ac_try) 2>&5
39111 ac_status=$?
39112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39113 (exit $ac_status); }; } &&
39114 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39116 (eval $ac_try) 2>&5
39117 ac_status=$?
39118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39119 (exit $ac_status); }; }; then
39120 ac_header_compiler=yes
39121else
39122 echo "$as_me: failed program was:" >&5
39123sed 's/^/| /' conftest.$ac_ext >&5
39124
39125ac_header_compiler=no
39126fi
ac1cb8d3 39127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39128echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39129echo "${ECHO_T}$ac_header_compiler" >&6
39130
39131# Is the header present?
39132echo "$as_me:$LINENO: checking $ac_header presence" >&5
39133echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39134cat >conftest.$ac_ext <<_ACEOF
39135/* confdefs.h. */
39136_ACEOF
39137cat confdefs.h >>conftest.$ac_ext
39138cat >>conftest.$ac_ext <<_ACEOF
39139/* end confdefs.h. */
39140#include <$ac_header>
39141_ACEOF
39142if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39144 ac_status=$?
39145 grep -v '^ *+' conftest.er1 >conftest.err
39146 rm -f conftest.er1
39147 cat conftest.err >&5
39148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39149 (exit $ac_status); } >/dev/null; then
39150 if test -s conftest.err; then
5d7b7554
VZ
39151 ac_cpp_err=$ac_cxx_preproc_warn_flag
39152 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
39153 else
39154 ac_cpp_err=
39155 fi
39156else
39157 ac_cpp_err=yes
39158fi
39159if test -z "$ac_cpp_err"; then
39160 ac_header_preproc=yes
39161else
39162 echo "$as_me: failed program was:" >&5
39163sed 's/^/| /' conftest.$ac_ext >&5
39164
39165 ac_header_preproc=no
39166fi
39167rm -f conftest.err conftest.$ac_ext
39168echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39169echo "${ECHO_T}$ac_header_preproc" >&6
39170
39171# So? What about this header?
5d7b7554 39172case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 39173 yes:no: )
a848cd7e
SC
39174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39175echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39177echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39178 ac_header_preproc=yes
a848cd7e 39179 ;;
ac1cb8d3 39180 no:yes:* )
a848cd7e
SC
39181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39182echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39184echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39186echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39188echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39190echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39192echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39193 (
39194 cat <<\_ASBOX
ac1cb8d3
VS
39195## ----------------------------------------- ##
39196## Report this to wx-dev@lists.wxwidgets.org ##
39197## ----------------------------------------- ##
a848cd7e
SC
39198_ASBOX
39199 ) |
39200 sed "s/^/$as_me: WARNING: /" >&2
39201 ;;
39202esac
39203echo "$as_me:$LINENO: checking for $ac_header" >&5
39204echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39205if eval "test \"\${$as_ac_Header+set}\" = set"; then
39206 echo $ECHO_N "(cached) $ECHO_C" >&6
39207else
ac1cb8d3 39208 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39209fi
39210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39211echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39212
39213fi
39214if test `eval echo '${'$as_ac_Header'}'` = yes; then
39215 cat >>confdefs.h <<_ACEOF
39216#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39217_ACEOF
39218
39219 EXTRALIBS_ESD="-lesd"
39220
39221fi
39222
39223done
39224
39225
39226fi
39227
39228
39229
39230echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
39231echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
39232cat >conftest.$ac_ext <<_ACEOF
39233/* confdefs.h. */
39234_ACEOF
39235cat confdefs.h >>conftest.$ac_ext
39236cat >>conftest.$ac_ext <<_ACEOF
39237/* end confdefs.h. */
39238#ifdef __linux__
39239 #include <linux/cdrom.h>
39240 #else
39241 /* For Solaris */
39242 #include <sys/cdio.h>
39243 #endif
39244
39245int
39246main ()
39247{
39248struct cdrom_tocentry entry, old_entry;
39249 ;
39250 return 0;
39251}
39252_ACEOF
39253rm -f conftest.$ac_objext
39254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39255 (eval $ac_compile) 2>conftest.er1
a848cd7e 39256 ac_status=$?
ac1cb8d3
VS
39257 grep -v '^ *+' conftest.er1 >conftest.err
39258 rm -f conftest.er1
39259 cat conftest.err >&5
a848cd7e
SC
39260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39261 (exit $ac_status); } &&
bb9e79c0 39262 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39264 (eval $ac_try) 2>&5
39265 ac_status=$?
39266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39267 (exit $ac_status); }; } &&
39268 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39270 (eval $ac_try) 2>&5
39271 ac_status=$?
39272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39273 (exit $ac_status); }; }; then
39274 echo "$as_me:$LINENO: result: yes" >&5
39275echo "${ECHO_T}yes" >&6
39276 cat >>confdefs.h <<\_ACEOF
39277#define HAVE_KNOWN_CDROM_INTERFACE 1
39278_ACEOF
39279
39280else
39281 echo "$as_me: failed program was:" >&5
39282sed 's/^/| /' conftest.$ac_ext >&5
39283
39284echo "$as_me:$LINENO: result: no" >&5
39285echo "${ECHO_T}no" >&6
39286fi
ac1cb8d3 39287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39288
39289
39290cat >confcache <<\_ACEOF
39291# This file is a shell script that caches the results of configure
39292# tests run on this system so they can be shared between configure
39293# scripts and configure runs, see configure's option --config-cache.
39294# It is not useful on other systems. If it contains results you don't
39295# want to keep, you may remove or edit it.
39296#
39297# config.status only pays attention to the cache file if you give it
39298# the --recheck option to rerun configure.
39299#
39300# `ac_cv_env_foo' variables (set or unset) will be overridden when
39301# loading this file, other *unset* `ac_cv_foo' will be assigned the
39302# following values.
39303
39304_ACEOF
39305
39306# The following way of writing the cache mishandles newlines in values,
39307# but we know of no workaround that is simple, portable, and efficient.
39308# So, don't put newlines in cache variables' values.
39309# Ultrix sh set writes to stderr and can't be redirected directly,
39310# and sets the high bit in the cache file unless we assign to the vars.
39311{
39312 (set) 2>&1 |
39313 case `(ac_space=' '; set | grep ac_space) 2>&1` in
39314 *ac_space=\ *)
39315 # `set' does not quote correctly, so add quotes (double-quote
39316 # substitution turns \\\\ into \\, and sed turns \\ into \).
39317 sed -n \
ac1cb8d3
VS
39318 "s/'/'\\\\''/g;
39319 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
39320 ;;
39321 *)
39322 # `set' quotes correctly as required by POSIX, so do not add quotes.
39323 sed -n \
ac1cb8d3 39324 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
39325 ;;
39326 esac;
39327} |
39328 sed '
39329 t clear
39330 : clear
39331 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39332 t end
39333 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39334 : end' >>confcache
39335if diff $cache_file confcache >/dev/null 2>&1; then :; else
39336 if test -w $cache_file; then
39337 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
39338 cat confcache >$cache_file
39339 else
39340 echo "not updating unwritable cache $cache_file"
39341 fi
39342fi
39343rm -f confcache
39344
39345
a848cd7e
SC
39346if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
39347
39348
39349 THREADS_LINK=
e56f4f9e 39350 THREADS_CXXFLAGS=
a848cd7e
SC
39351
39352 if test "$wxUSE_THREADS" = "yes" ; then
39353 if test "$USE_BEOS" = 1; then
39354 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
39355echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
39356 wxUSE_THREADS="no"
39357 fi
39358 fi
39359
39360 if test "$wxUSE_THREADS" = "yes" ; then
39361
39362
39363 THREAD_OPTS="-pthread"
39364 case "${host}" in
39365 *-*-solaris2* | *-*-sunos4* )
39366 if test "x$GCC" = "xyes"; then
39367 THREAD_OPTS="-pthreads $THREAD_OPTS"
39368 else
39369 THREAD_OPTS="-mt $THREAD_OPTS"
39370 fi
39371 ;;
39372 *-*-freebsd*)
39373 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
39374 ;;
39375 *-*-darwin* | *-*-cygwin* )
39376 THREAD_OPTS=""
39377 ;;
39378 *-*-aix*)
39379 THREAD_OPTS="pthreads"
39380 ;;
39381 *-hp-hpux* )
00421666
MW
39382 if test "x$GCC" = "xyes"; then
39383 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
39384 THREAD_OPTS=""
39385 else
0093c2fc 39386 THREAD_OPTS="-mt"
a848cd7e
SC
39387 fi
39388 ;;
39389
39390 *-*-irix* )
39391 if test "x$GCC" = "xyes"; then
39392 THREAD_OPTS=""
39393 fi
39394 ;;
39395
39396 *-*-*UnixWare*)
39397 if test "x$GCC" != "xyes"; then
39398 THREAD_OPTS="-Ethread"
39399 fi
39400 ;;
39401 esac
39402
39403 THREAD_OPTS="$THREAD_OPTS pthread none"
39404
39405 THREADS_OK=no
39406 for flag in $THREAD_OPTS; do
39407 case $flag in
39408 none)
39409 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
39410echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
39411 ;;
39412
39413 -*)
39414 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
39415echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
e56f4f9e 39416 THREADS_CXXFLAGS="$flag"
a848cd7e
SC
39417 ;;
39418
39419 *)
39420 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
39421echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
39422 THREADS_LINK="-l$flag"
39423 ;;
39424 esac
39425
39426 save_LIBS="$LIBS"
e56f4f9e 39427 save_CXXFLAGS="$CXXFLAGS"
a848cd7e 39428 LIBS="$THREADS_LINK $LIBS"
e56f4f9e 39429 CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
a848cd7e
SC
39430
39431 cat >conftest.$ac_ext <<_ACEOF
39432/* confdefs.h. */
39433_ACEOF
39434cat confdefs.h >>conftest.$ac_ext
39435cat >>conftest.$ac_ext <<_ACEOF
39436/* end confdefs.h. */
39437#include <pthread.h>
39438int
39439main ()
39440{
39441pthread_create(0,0,0,0);
39442 ;
39443 return 0;
39444}
39445_ACEOF
39446rm -f conftest.$ac_objext conftest$ac_exeext
39447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39448 (eval $ac_link) 2>conftest.er1
a848cd7e 39449 ac_status=$?
ac1cb8d3
VS
39450 grep -v '^ *+' conftest.er1 >conftest.err
39451 rm -f conftest.er1
39452 cat conftest.err >&5
a848cd7e
SC
39453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39454 (exit $ac_status); } &&
bb9e79c0 39455 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39457 (eval $ac_try) 2>&5
39458 ac_status=$?
39459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39460 (exit $ac_status); }; } &&
39461 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39463 (eval $ac_try) 2>&5
39464 ac_status=$?
39465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39466 (exit $ac_status); }; }; then
39467 THREADS_OK=yes
39468else
39469 echo "$as_me: failed program was:" >&5
39470sed 's/^/| /' conftest.$ac_ext >&5
39471
39472fi
ac1cb8d3
VS
39473rm -f conftest.err conftest.$ac_objext \
39474 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39475
39476 LIBS="$save_LIBS"
e56f4f9e 39477 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
39478
39479 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
39480echo "${ECHO_T}$THREADS_OK" >&6
39481 if test "x$THREADS_OK" = "xyes"; then
39482 break;
39483 fi
39484
39485 THREADS_LINK=""
e56f4f9e 39486 THREADS_CXXFLAGS=""
a848cd7e
SC
39487 done
39488
39489 if test "x$THREADS_OK" != "xyes"; then
39490 wxUSE_THREADS=no
39491 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
39492echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
39493 else
e56f4f9e 39494 LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
a848cd7e
SC
39495 LIBS="$THREADS_LINK $LIBS"
39496
39497 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39498echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
39499 flag=no
39500 case "${host}" in
39501 *-aix*)
39502 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
39503 flag="-D_THREAD_SAFE"
39504 ;;
39505 *-freebsd*)
39506 flag="-D_THREAD_SAFE"
39507 ;;
39508 *-hp-hpux* )
39509 flag="-D_REENTRANT"
39510 if test "x$GCC" != "xyes"; then
39511 flag="$flag -D_RWSTD_MULTI_THREAD"
39512 fi
39513 ;;
39514 *solaris* | alpha*-osf*)
39515 flag="-D_REENTRANT"
39516 ;;
39517 esac
39518 echo "$as_me:$LINENO: result: ${flag}" >&5
39519echo "${ECHO_T}${flag}" >&6
39520 if test "x$flag" != xno; then
e56f4f9e 39521 THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
a848cd7e
SC
39522 fi
39523
e56f4f9e 39524 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
a848cd7e
SC
39525 fi
39526 fi
39527
39528 if test "$wxUSE_THREADS" = "yes" ; then
39529
39530for ac_func in thr_setconcurrency
39531do
39532as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39533echo "$as_me:$LINENO: checking for $ac_func" >&5
39534echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39535if eval "test \"\${$as_ac_var+set}\" = set"; then
39536 echo $ECHO_N "(cached) $ECHO_C" >&6
39537else
39538 cat >conftest.$ac_ext <<_ACEOF
39539/* confdefs.h. */
39540_ACEOF
39541cat confdefs.h >>conftest.$ac_ext
39542cat >>conftest.$ac_ext <<_ACEOF
39543/* end confdefs.h. */
ac1cb8d3
VS
39544/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39546#define $ac_func innocuous_$ac_func
39547
a848cd7e
SC
39548/* System header to define __stub macros and hopefully few prototypes,
39549 which can conflict with char $ac_func (); below.
39550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39551 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39552
a848cd7e
SC
39553#ifdef __STDC__
39554# include <limits.h>
39555#else
39556# include <assert.h>
39557#endif
ac1cb8d3
VS
39558
39559#undef $ac_func
39560
a848cd7e
SC
39561/* Override any gcc2 internal prototype to avoid an error. */
39562#ifdef __cplusplus
39563extern "C"
39564{
39565#endif
39566/* We use char because int might match the return type of a gcc2
39567 builtin and then its argument prototype would still apply. */
39568char $ac_func ();
39569/* The GNU C library defines this for functions which it implements
39570 to always fail with ENOSYS. Some functions are actually named
39571 something starting with __ and the normal name is an alias. */
39572#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39573choke me
39574#else
39575char (*f) () = $ac_func;
39576#endif
39577#ifdef __cplusplus
39578}
39579#endif
39580
39581int
39582main ()
39583{
39584return f != $ac_func;
39585 ;
39586 return 0;
39587}
39588_ACEOF
39589rm -f conftest.$ac_objext conftest$ac_exeext
39590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39591 (eval $ac_link) 2>conftest.er1
a848cd7e 39592 ac_status=$?
ac1cb8d3
VS
39593 grep -v '^ *+' conftest.er1 >conftest.err
39594 rm -f conftest.er1
39595 cat conftest.err >&5
a848cd7e
SC
39596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39597 (exit $ac_status); } &&
bb9e79c0 39598 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39600 (eval $ac_try) 2>&5
39601 ac_status=$?
39602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39603 (exit $ac_status); }; } &&
39604 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39606 (eval $ac_try) 2>&5
39607 ac_status=$?
39608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39609 (exit $ac_status); }; }; then
39610 eval "$as_ac_var=yes"
39611else
39612 echo "$as_me: failed program was:" >&5
39613sed 's/^/| /' conftest.$ac_ext >&5
39614
39615eval "$as_ac_var=no"
39616fi
ac1cb8d3
VS
39617rm -f conftest.err conftest.$ac_objext \
39618 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39619fi
39620echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39621echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39622if test `eval echo '${'$as_ac_var'}'` = yes; then
39623 cat >>confdefs.h <<_ACEOF
39624#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39625_ACEOF
39626
39627fi
39628done
39629
39630
6ebeb4c7
VZ
39631 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
39632echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
39633if test "${wx_cv_func_pthread_cleanup+set}" = set; then
39634 echo $ECHO_N "(cached) $ECHO_C" >&6
39635else
39636
39637 cat >conftest.$ac_ext <<_ACEOF
39638/* confdefs.h. */
39639_ACEOF
39640cat confdefs.h >>conftest.$ac_ext
39641cat >>conftest.$ac_ext <<_ACEOF
39642/* end confdefs.h. */
39643#include <pthread.h>
39644 void ThreadCleanupFunc(void *p);
39645
39646int
39647main ()
39648{
39649
39650 void *p;
39651 pthread_cleanup_push(ThreadCleanupFunc, p);
39652 pthread_cleanup_pop(0);
39653
39654 ;
39655 return 0;
39656}
39657_ACEOF
39658rm -f conftest.$ac_objext
39659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39660 (eval $ac_compile) 2>conftest.er1
39661 ac_status=$?
39662 grep -v '^ *+' conftest.er1 >conftest.err
39663 rm -f conftest.er1
39664 cat conftest.err >&5
39665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39666 (exit $ac_status); } &&
bb9e79c0 39667 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
39668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39669 (eval $ac_try) 2>&5
39670 ac_status=$?
39671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39672 (exit $ac_status); }; } &&
39673 { ac_try='test -s conftest.$ac_objext'
39674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39675 (eval $ac_try) 2>&5
39676 ac_status=$?
39677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39678 (exit $ac_status); }; }; then
39679
39680 wx_cv_func_pthread_cleanup=yes
39681
39682else
39683 echo "$as_me: failed program was:" >&5
39684sed 's/^/| /' conftest.$ac_ext >&5
39685
39686
39687 wx_cv_func_pthread_cleanup=no
39688
39689
39690fi
39691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39692
39693fi
39694echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39695echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
39696 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39697 cat >>confdefs.h <<\_ACEOF
39698#define wxHAVE_PTHREAD_CLEANUP 1
39699_ACEOF
39700
39701 fi
39702
a848cd7e
SC
39703
39704for ac_header in sched.h
39705do
39706as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39707if eval "test \"\${$as_ac_Header+set}\" = set"; then
39708 echo "$as_me:$LINENO: checking for $ac_header" >&5
39709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39710if eval "test \"\${$as_ac_Header+set}\" = set"; then
39711 echo $ECHO_N "(cached) $ECHO_C" >&6
39712fi
39713echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39714echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39715else
39716 # Is the header compilable?
39717echo "$as_me:$LINENO: checking $ac_header usability" >&5
39718echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39719cat >conftest.$ac_ext <<_ACEOF
39720/* confdefs.h. */
39721_ACEOF
39722cat confdefs.h >>conftest.$ac_ext
39723cat >>conftest.$ac_ext <<_ACEOF
39724/* end confdefs.h. */
39725$ac_includes_default
39726#include <$ac_header>
39727_ACEOF
39728rm -f conftest.$ac_objext
39729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39730 (eval $ac_compile) 2>conftest.er1
a848cd7e 39731 ac_status=$?
ac1cb8d3
VS
39732 grep -v '^ *+' conftest.er1 >conftest.err
39733 rm -f conftest.er1
39734 cat conftest.err >&5
a848cd7e
SC
39735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39736 (exit $ac_status); } &&
bb9e79c0 39737 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39739 (eval $ac_try) 2>&5
39740 ac_status=$?
39741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39742 (exit $ac_status); }; } &&
39743 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39745 (eval $ac_try) 2>&5
39746 ac_status=$?
39747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39748 (exit $ac_status); }; }; then
39749 ac_header_compiler=yes
39750else
39751 echo "$as_me: failed program was:" >&5
39752sed 's/^/| /' conftest.$ac_ext >&5
39753
39754ac_header_compiler=no
39755fi
ac1cb8d3 39756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39757echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39758echo "${ECHO_T}$ac_header_compiler" >&6
39759
39760# Is the header present?
39761echo "$as_me:$LINENO: checking $ac_header presence" >&5
39762echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39763cat >conftest.$ac_ext <<_ACEOF
39764/* confdefs.h. */
39765_ACEOF
39766cat confdefs.h >>conftest.$ac_ext
39767cat >>conftest.$ac_ext <<_ACEOF
39768/* end confdefs.h. */
39769#include <$ac_header>
39770_ACEOF
39771if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39773 ac_status=$?
39774 grep -v '^ *+' conftest.er1 >conftest.err
39775 rm -f conftest.er1
39776 cat conftest.err >&5
39777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39778 (exit $ac_status); } >/dev/null; then
39779 if test -s conftest.err; then
5d7b7554
VZ
39780 ac_cpp_err=$ac_cxx_preproc_warn_flag
39781 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
39782 else
39783 ac_cpp_err=
39784 fi
39785else
39786 ac_cpp_err=yes
39787fi
39788if test -z "$ac_cpp_err"; then
39789 ac_header_preproc=yes
39790else
39791 echo "$as_me: failed program was:" >&5
39792sed 's/^/| /' conftest.$ac_ext >&5
39793
39794 ac_header_preproc=no
39795fi
39796rm -f conftest.err conftest.$ac_ext
39797echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39798echo "${ECHO_T}$ac_header_preproc" >&6
39799
39800# So? What about this header?
5d7b7554 39801case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 39802 yes:no: )
a848cd7e
SC
39803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39804echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39806echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39807 ac_header_preproc=yes
a848cd7e 39808 ;;
ac1cb8d3 39809 no:yes:* )
a848cd7e
SC
39810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39811echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39813echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39815echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39817echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39819echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39821echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39822 (
39823 cat <<\_ASBOX
ac1cb8d3
VS
39824## ----------------------------------------- ##
39825## Report this to wx-dev@lists.wxwidgets.org ##
39826## ----------------------------------------- ##
a848cd7e
SC
39827_ASBOX
39828 ) |
39829 sed "s/^/$as_me: WARNING: /" >&2
39830 ;;
39831esac
39832echo "$as_me:$LINENO: checking for $ac_header" >&5
39833echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39834if eval "test \"\${$as_ac_Header+set}\" = set"; then
39835 echo $ECHO_N "(cached) $ECHO_C" >&6
39836else
ac1cb8d3 39837 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39838fi
39839echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39840echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39841
39842fi
39843if test `eval echo '${'$as_ac_Header'}'` = yes; then
39844 cat >>confdefs.h <<_ACEOF
39845#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39846_ACEOF
39847
39848fi
39849
39850done
39851
39852 if test "$ac_cv_header_sched_h" = "yes"; then
39853 echo "$as_me:$LINENO: checking for sched_yield" >&5
39854echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
39855if test "${ac_cv_func_sched_yield+set}" = set; then
39856 echo $ECHO_N "(cached) $ECHO_C" >&6
39857else
39858 cat >conftest.$ac_ext <<_ACEOF
39859/* confdefs.h. */
39860_ACEOF
39861cat confdefs.h >>conftest.$ac_ext
39862cat >>conftest.$ac_ext <<_ACEOF
39863/* end confdefs.h. */
ac1cb8d3
VS
39864/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39866#define sched_yield innocuous_sched_yield
39867
a848cd7e
SC
39868/* System header to define __stub macros and hopefully few prototypes,
39869 which can conflict with char sched_yield (); below.
39870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39871 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39872
a848cd7e
SC
39873#ifdef __STDC__
39874# include <limits.h>
39875#else
39876# include <assert.h>
39877#endif
ac1cb8d3
VS
39878
39879#undef sched_yield
39880
a848cd7e
SC
39881/* Override any gcc2 internal prototype to avoid an error. */
39882#ifdef __cplusplus
39883extern "C"
39884{
39885#endif
39886/* We use char because int might match the return type of a gcc2
39887 builtin and then its argument prototype would still apply. */
39888char sched_yield ();
39889/* The GNU C library defines this for functions which it implements
39890 to always fail with ENOSYS. Some functions are actually named
39891 something starting with __ and the normal name is an alias. */
39892#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
39893choke me
39894#else
39895char (*f) () = sched_yield;
39896#endif
39897#ifdef __cplusplus
39898}
39899#endif
39900
39901int
39902main ()
39903{
39904return f != sched_yield;
39905 ;
39906 return 0;
39907}
39908_ACEOF
39909rm -f conftest.$ac_objext conftest$ac_exeext
39910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39911 (eval $ac_link) 2>conftest.er1
a848cd7e 39912 ac_status=$?
ac1cb8d3
VS
39913 grep -v '^ *+' conftest.er1 >conftest.err
39914 rm -f conftest.er1
39915 cat conftest.err >&5
a848cd7e
SC
39916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39917 (exit $ac_status); } &&
bb9e79c0 39918 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39920 (eval $ac_try) 2>&5
39921 ac_status=$?
39922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39923 (exit $ac_status); }; } &&
39924 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39926 (eval $ac_try) 2>&5
39927 ac_status=$?
39928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39929 (exit $ac_status); }; }; then
39930 ac_cv_func_sched_yield=yes
39931else
39932 echo "$as_me: failed program was:" >&5
39933sed 's/^/| /' conftest.$ac_ext >&5
39934
39935ac_cv_func_sched_yield=no
39936fi
ac1cb8d3
VS
39937rm -f conftest.err conftest.$ac_objext \
39938 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39939fi
39940echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
39941echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
39942if test $ac_cv_func_sched_yield = yes; then
39943 cat >>confdefs.h <<\_ACEOF
39944#define HAVE_SCHED_YIELD 1
39945_ACEOF
39946
39947else
39948
39949 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
39950echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
39951if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
39952 echo $ECHO_N "(cached) $ECHO_C" >&6
39953else
39954 ac_check_lib_save_LIBS=$LIBS
39955LIBS="-lposix4 $LIBS"
39956cat >conftest.$ac_ext <<_ACEOF
39957/* confdefs.h. */
39958_ACEOF
39959cat confdefs.h >>conftest.$ac_ext
39960cat >>conftest.$ac_ext <<_ACEOF
39961/* end confdefs.h. */
39962
39963/* Override any gcc2 internal prototype to avoid an error. */
39964#ifdef __cplusplus
39965extern "C"
39966#endif
39967/* We use char because int might match the return type of a gcc2
39968 builtin and then its argument prototype would still apply. */
39969char sched_yield ();
39970int
39971main ()
39972{
39973sched_yield ();
39974 ;
39975 return 0;
39976}
39977_ACEOF
39978rm -f conftest.$ac_objext conftest$ac_exeext
39979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39980 (eval $ac_link) 2>conftest.er1
a848cd7e 39981 ac_status=$?
ac1cb8d3
VS
39982 grep -v '^ *+' conftest.er1 >conftest.err
39983 rm -f conftest.er1
39984 cat conftest.err >&5
a848cd7e
SC
39985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39986 (exit $ac_status); } &&
bb9e79c0 39987 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39989 (eval $ac_try) 2>&5
39990 ac_status=$?
39991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39992 (exit $ac_status); }; } &&
39993 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39995 (eval $ac_try) 2>&5
39996 ac_status=$?
39997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39998 (exit $ac_status); }; }; then
39999 ac_cv_lib_posix4_sched_yield=yes
40000else
40001 echo "$as_me: failed program was:" >&5
40002sed 's/^/| /' conftest.$ac_ext >&5
40003
40004ac_cv_lib_posix4_sched_yield=no
40005fi
ac1cb8d3
VS
40006rm -f conftest.err conftest.$ac_objext \
40007 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40008LIBS=$ac_check_lib_save_LIBS
40009fi
40010echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
40011echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
40012if test $ac_cv_lib_posix4_sched_yield = yes; then
40013 cat >>confdefs.h <<\_ACEOF
40014#define HAVE_SCHED_YIELD 1
40015_ACEOF
40016 POSIX4_LINK=" -lposix4"
40017else
40018 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
40019echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
40020
40021fi
40022
40023
40024
40025fi
40026
40027 fi
40028
40029 HAVE_PRIOR_FUNCS=0
40030 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
40031echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
40032if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
40033 echo $ECHO_N "(cached) $ECHO_C" >&6
40034else
40035 cat >conftest.$ac_ext <<_ACEOF
40036/* confdefs.h. */
40037_ACEOF
40038cat confdefs.h >>conftest.$ac_ext
40039cat >>conftest.$ac_ext <<_ACEOF
40040/* end confdefs.h. */
ac1cb8d3
VS
40041/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
40042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40043#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
40044
a848cd7e
SC
40045/* System header to define __stub macros and hopefully few prototypes,
40046 which can conflict with char pthread_attr_getschedpolicy (); below.
40047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40048 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40049
a848cd7e
SC
40050#ifdef __STDC__
40051# include <limits.h>
40052#else
40053# include <assert.h>
40054#endif
ac1cb8d3
VS
40055
40056#undef pthread_attr_getschedpolicy
40057
a848cd7e
SC
40058/* Override any gcc2 internal prototype to avoid an error. */
40059#ifdef __cplusplus
40060extern "C"
40061{
40062#endif
40063/* We use char because int might match the return type of a gcc2
40064 builtin and then its argument prototype would still apply. */
40065char pthread_attr_getschedpolicy ();
40066/* The GNU C library defines this for functions which it implements
40067 to always fail with ENOSYS. Some functions are actually named
40068 something starting with __ and the normal name is an alias. */
40069#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
40070choke me
40071#else
40072char (*f) () = pthread_attr_getschedpolicy;
40073#endif
40074#ifdef __cplusplus
40075}
40076#endif
40077
40078int
40079main ()
40080{
40081return f != pthread_attr_getschedpolicy;
40082 ;
40083 return 0;
40084}
40085_ACEOF
40086rm -f conftest.$ac_objext conftest$ac_exeext
40087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40088 (eval $ac_link) 2>conftest.er1
a848cd7e 40089 ac_status=$?
ac1cb8d3
VS
40090 grep -v '^ *+' conftest.er1 >conftest.err
40091 rm -f conftest.er1
40092 cat conftest.err >&5
a848cd7e
SC
40093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40094 (exit $ac_status); } &&
bb9e79c0 40095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40097 (eval $ac_try) 2>&5
40098 ac_status=$?
40099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40100 (exit $ac_status); }; } &&
40101 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40103 (eval $ac_try) 2>&5
40104 ac_status=$?
40105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40106 (exit $ac_status); }; }; then
40107 ac_cv_func_pthread_attr_getschedpolicy=yes
40108else
40109 echo "$as_me: failed program was:" >&5
40110sed 's/^/| /' conftest.$ac_ext >&5
40111
40112ac_cv_func_pthread_attr_getschedpolicy=no
40113fi
ac1cb8d3
VS
40114rm -f conftest.err conftest.$ac_objext \
40115 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40116fi
40117echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
40118echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
40119if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
40120 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
40121echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
40122if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
40123 echo $ECHO_N "(cached) $ECHO_C" >&6
40124else
40125 cat >conftest.$ac_ext <<_ACEOF
40126/* confdefs.h. */
40127_ACEOF
40128cat confdefs.h >>conftest.$ac_ext
40129cat >>conftest.$ac_ext <<_ACEOF
40130/* end confdefs.h. */
ac1cb8d3
VS
40131/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
40132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40133#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
40134
a848cd7e
SC
40135/* System header to define __stub macros and hopefully few prototypes,
40136 which can conflict with char pthread_attr_setschedparam (); below.
40137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40138 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40139
a848cd7e
SC
40140#ifdef __STDC__
40141# include <limits.h>
40142#else
40143# include <assert.h>
40144#endif
ac1cb8d3
VS
40145
40146#undef pthread_attr_setschedparam
40147
a848cd7e
SC
40148/* Override any gcc2 internal prototype to avoid an error. */
40149#ifdef __cplusplus
40150extern "C"
40151{
40152#endif
40153/* We use char because int might match the return type of a gcc2
40154 builtin and then its argument prototype would still apply. */
40155char pthread_attr_setschedparam ();
40156/* The GNU C library defines this for functions which it implements
40157 to always fail with ENOSYS. Some functions are actually named
40158 something starting with __ and the normal name is an alias. */
40159#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
40160choke me
40161#else
40162char (*f) () = pthread_attr_setschedparam;
40163#endif
40164#ifdef __cplusplus
40165}
40166#endif
40167
40168int
40169main ()
40170{
40171return f != pthread_attr_setschedparam;
40172 ;
40173 return 0;
40174}
40175_ACEOF
40176rm -f conftest.$ac_objext conftest$ac_exeext
40177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40178 (eval $ac_link) 2>conftest.er1
a848cd7e 40179 ac_status=$?
ac1cb8d3
VS
40180 grep -v '^ *+' conftest.er1 >conftest.err
40181 rm -f conftest.er1
40182 cat conftest.err >&5
a848cd7e
SC
40183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40184 (exit $ac_status); } &&
bb9e79c0 40185 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40187 (eval $ac_try) 2>&5
40188 ac_status=$?
40189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40190 (exit $ac_status); }; } &&
40191 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40193 (eval $ac_try) 2>&5
40194 ac_status=$?
40195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40196 (exit $ac_status); }; }; then
40197 ac_cv_func_pthread_attr_setschedparam=yes
40198else
40199 echo "$as_me: failed program was:" >&5
40200sed 's/^/| /' conftest.$ac_ext >&5
40201
40202ac_cv_func_pthread_attr_setschedparam=no
40203fi
ac1cb8d3
VS
40204rm -f conftest.err conftest.$ac_objext \
40205 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40206fi
40207echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
40208echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
40209if test $ac_cv_func_pthread_attr_setschedparam = yes; then
40210 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
40211echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
40212if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
40213 echo $ECHO_N "(cached) $ECHO_C" >&6
40214else
40215 cat >conftest.$ac_ext <<_ACEOF
40216/* confdefs.h. */
40217_ACEOF
40218cat confdefs.h >>conftest.$ac_ext
40219cat >>conftest.$ac_ext <<_ACEOF
40220/* end confdefs.h. */
ac1cb8d3
VS
40221/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
40222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40223#define sched_get_priority_max innocuous_sched_get_priority_max
40224
a848cd7e
SC
40225/* System header to define __stub macros and hopefully few prototypes,
40226 which can conflict with char sched_get_priority_max (); below.
40227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40228 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40229
a848cd7e
SC
40230#ifdef __STDC__
40231# include <limits.h>
40232#else
40233# include <assert.h>
40234#endif
ac1cb8d3
VS
40235
40236#undef sched_get_priority_max
40237
a848cd7e
SC
40238/* Override any gcc2 internal prototype to avoid an error. */
40239#ifdef __cplusplus
40240extern "C"
40241{
40242#endif
40243/* We use char because int might match the return type of a gcc2
40244 builtin and then its argument prototype would still apply. */
40245char sched_get_priority_max ();
40246/* The GNU C library defines this for functions which it implements
40247 to always fail with ENOSYS. Some functions are actually named
40248 something starting with __ and the normal name is an alias. */
40249#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
40250choke me
40251#else
40252char (*f) () = sched_get_priority_max;
40253#endif
40254#ifdef __cplusplus
40255}
40256#endif
40257
40258int
40259main ()
40260{
40261return f != sched_get_priority_max;
40262 ;
40263 return 0;
40264}
40265_ACEOF
40266rm -f conftest.$ac_objext conftest$ac_exeext
40267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40268 (eval $ac_link) 2>conftest.er1
a848cd7e 40269 ac_status=$?
ac1cb8d3
VS
40270 grep -v '^ *+' conftest.er1 >conftest.err
40271 rm -f conftest.er1
40272 cat conftest.err >&5
a848cd7e
SC
40273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40274 (exit $ac_status); } &&
bb9e79c0 40275 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40277 (eval $ac_try) 2>&5
40278 ac_status=$?
40279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40280 (exit $ac_status); }; } &&
40281 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40283 (eval $ac_try) 2>&5
40284 ac_status=$?
40285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40286 (exit $ac_status); }; }; then
40287 ac_cv_func_sched_get_priority_max=yes
40288else
40289 echo "$as_me: failed program was:" >&5
40290sed 's/^/| /' conftest.$ac_ext >&5
40291
40292ac_cv_func_sched_get_priority_max=no
40293fi
ac1cb8d3
VS
40294rm -f conftest.err conftest.$ac_objext \
40295 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40296fi
40297echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
40298echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
40299if test $ac_cv_func_sched_get_priority_max = yes; then
40300 HAVE_PRIOR_FUNCS=1
40301else
40302 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
40303echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
40304if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
40305 echo $ECHO_N "(cached) $ECHO_C" >&6
40306else
40307 ac_check_lib_save_LIBS=$LIBS
40308LIBS="-lposix4 $LIBS"
40309cat >conftest.$ac_ext <<_ACEOF
40310/* confdefs.h. */
40311_ACEOF
40312cat confdefs.h >>conftest.$ac_ext
40313cat >>conftest.$ac_ext <<_ACEOF
40314/* end confdefs.h. */
40315
40316/* Override any gcc2 internal prototype to avoid an error. */
40317#ifdef __cplusplus
40318extern "C"
40319#endif
40320/* We use char because int might match the return type of a gcc2
40321 builtin and then its argument prototype would still apply. */
40322char sched_get_priority_max ();
40323int
40324main ()
40325{
40326sched_get_priority_max ();
40327 ;
40328 return 0;
40329}
40330_ACEOF
40331rm -f conftest.$ac_objext conftest$ac_exeext
40332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40333 (eval $ac_link) 2>conftest.er1
a848cd7e 40334 ac_status=$?
ac1cb8d3
VS
40335 grep -v '^ *+' conftest.er1 >conftest.err
40336 rm -f conftest.er1
40337 cat conftest.err >&5
a848cd7e
SC
40338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40339 (exit $ac_status); } &&
bb9e79c0 40340 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40342 (eval $ac_try) 2>&5
40343 ac_status=$?
40344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40345 (exit $ac_status); }; } &&
40346 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40348 (eval $ac_try) 2>&5
40349 ac_status=$?
40350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40351 (exit $ac_status); }; }; then
40352 ac_cv_lib_posix4_sched_get_priority_max=yes
40353else
40354 echo "$as_me: failed program was:" >&5
40355sed 's/^/| /' conftest.$ac_ext >&5
40356
40357ac_cv_lib_posix4_sched_get_priority_max=no
40358fi
ac1cb8d3
VS
40359rm -f conftest.err conftest.$ac_objext \
40360 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40361LIBS=$ac_check_lib_save_LIBS
40362fi
40363echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
40364echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
40365if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
40366
40367 HAVE_PRIOR_FUNCS=1
40368 POSIX4_LINK=" -lposix4"
40369
40370fi
40371
40372
40373fi
40374
40375
40376fi
40377
40378
40379fi
40380
40381
40382 if test "$HAVE_PRIOR_FUNCS" = 1; then
40383 cat >>confdefs.h <<\_ACEOF
40384#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
40385_ACEOF
40386
40387 else
40388 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
40389echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
40390 fi
40391
40392 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
40393echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
40394if test "${ac_cv_func_pthread_cancel+set}" = set; then
40395 echo $ECHO_N "(cached) $ECHO_C" >&6
40396else
40397 cat >conftest.$ac_ext <<_ACEOF
40398/* confdefs.h. */
40399_ACEOF
40400cat confdefs.h >>conftest.$ac_ext
40401cat >>conftest.$ac_ext <<_ACEOF
40402/* end confdefs.h. */
ac1cb8d3
VS
40403/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
40404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40405#define pthread_cancel innocuous_pthread_cancel
40406
a848cd7e
SC
40407/* System header to define __stub macros and hopefully few prototypes,
40408 which can conflict with char pthread_cancel (); below.
40409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40410 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40411
a848cd7e
SC
40412#ifdef __STDC__
40413# include <limits.h>
40414#else
40415# include <assert.h>
40416#endif
ac1cb8d3
VS
40417
40418#undef pthread_cancel
40419
a848cd7e
SC
40420/* Override any gcc2 internal prototype to avoid an error. */
40421#ifdef __cplusplus
40422extern "C"
40423{
40424#endif
40425/* We use char because int might match the return type of a gcc2
40426 builtin and then its argument prototype would still apply. */
40427char pthread_cancel ();
40428/* The GNU C library defines this for functions which it implements
40429 to always fail with ENOSYS. Some functions are actually named
40430 something starting with __ and the normal name is an alias. */
40431#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
40432choke me
40433#else
40434char (*f) () = pthread_cancel;
40435#endif
40436#ifdef __cplusplus
40437}
40438#endif
40439
40440int
40441main ()
40442{
40443return f != pthread_cancel;
40444 ;
40445 return 0;
40446}
40447_ACEOF
40448rm -f conftest.$ac_objext conftest$ac_exeext
40449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40450 (eval $ac_link) 2>conftest.er1
a848cd7e 40451 ac_status=$?
ac1cb8d3
VS
40452 grep -v '^ *+' conftest.er1 >conftest.err
40453 rm -f conftest.er1
40454 cat conftest.err >&5
a848cd7e
SC
40455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40456 (exit $ac_status); } &&
bb9e79c0 40457 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40459 (eval $ac_try) 2>&5
40460 ac_status=$?
40461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40462 (exit $ac_status); }; } &&
40463 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40465 (eval $ac_try) 2>&5
40466 ac_status=$?
40467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40468 (exit $ac_status); }; }; then
40469 ac_cv_func_pthread_cancel=yes
40470else
40471 echo "$as_me: failed program was:" >&5
40472sed 's/^/| /' conftest.$ac_ext >&5
40473
40474ac_cv_func_pthread_cancel=no
40475fi
ac1cb8d3
VS
40476rm -f conftest.err conftest.$ac_objext \
40477 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40478fi
40479echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
40480echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
40481if test $ac_cv_func_pthread_cancel = yes; then
40482 cat >>confdefs.h <<\_ACEOF
40483#define HAVE_PTHREAD_CANCEL 1
40484_ACEOF
40485
40486else
40487 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
40488echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
40489fi
40490
40491
abc736fd
MW
40492 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
40493echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
40494if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
40495 echo $ECHO_N "(cached) $ECHO_C" >&6
40496else
40497 cat >conftest.$ac_ext <<_ACEOF
40498/* confdefs.h. */
40499_ACEOF
40500cat confdefs.h >>conftest.$ac_ext
40501cat >>conftest.$ac_ext <<_ACEOF
40502/* end confdefs.h. */
40503/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
40504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40505#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
40506
40507/* System header to define __stub macros and hopefully few prototypes,
40508 which can conflict with char pthread_attr_setstacksize (); below.
40509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40510 <limits.h> exists even on freestanding compilers. */
40511
40512#ifdef __STDC__
40513# include <limits.h>
40514#else
40515# include <assert.h>
40516#endif
40517
40518#undef pthread_attr_setstacksize
40519
40520/* Override any gcc2 internal prototype to avoid an error. */
40521#ifdef __cplusplus
40522extern "C"
40523{
40524#endif
40525/* We use char because int might match the return type of a gcc2
40526 builtin and then its argument prototype would still apply. */
40527char pthread_attr_setstacksize ();
40528/* The GNU C library defines this for functions which it implements
40529 to always fail with ENOSYS. Some functions are actually named
40530 something starting with __ and the normal name is an alias. */
40531#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
40532choke me
40533#else
40534char (*f) () = pthread_attr_setstacksize;
40535#endif
40536#ifdef __cplusplus
40537}
40538#endif
40539
40540int
40541main ()
40542{
40543return f != pthread_attr_setstacksize;
40544 ;
40545 return 0;
40546}
40547_ACEOF
40548rm -f conftest.$ac_objext conftest$ac_exeext
40549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40550 (eval $ac_link) 2>conftest.er1
40551 ac_status=$?
40552 grep -v '^ *+' conftest.er1 >conftest.err
40553 rm -f conftest.er1
40554 cat conftest.err >&5
40555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40556 (exit $ac_status); } &&
bb9e79c0 40557 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
abc736fd
MW
40558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40559 (eval $ac_try) 2>&5
40560 ac_status=$?
40561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40562 (exit $ac_status); }; } &&
40563 { ac_try='test -s conftest$ac_exeext'
40564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40565 (eval $ac_try) 2>&5
40566 ac_status=$?
40567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40568 (exit $ac_status); }; }; then
40569 ac_cv_func_pthread_attr_setstacksize=yes
40570else
40571 echo "$as_me: failed program was:" >&5
40572sed 's/^/| /' conftest.$ac_ext >&5
40573
40574ac_cv_func_pthread_attr_setstacksize=no
40575fi
40576rm -f conftest.err conftest.$ac_objext \
40577 conftest$ac_exeext conftest.$ac_ext
40578fi
40579echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
40580echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
40581if test $ac_cv_func_pthread_attr_setstacksize = yes; then
40582 cat >>confdefs.h <<\_ACEOF
40583#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
40584_ACEOF
40585
40586fi
40587
a848cd7e
SC
40588
40589
40590 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
40591echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
40592if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
40593 echo $ECHO_N "(cached) $ECHO_C" >&6
40594else
40595
40596 cat >conftest.$ac_ext <<_ACEOF
40597/* confdefs.h. */
40598_ACEOF
40599cat confdefs.h >>conftest.$ac_ext
40600cat >>conftest.$ac_ext <<_ACEOF
40601/* end confdefs.h. */
40602#include <pthread.h>
40603int
40604main ()
40605{
40606
40607 pthread_mutexattr_t attr;
40608 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40609
40610 ;
40611 return 0;
40612}
40613_ACEOF
40614rm -f conftest.$ac_objext
40615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40616 (eval $ac_compile) 2>conftest.er1
a848cd7e 40617 ac_status=$?
ac1cb8d3
VS
40618 grep -v '^ *+' conftest.er1 >conftest.err
40619 rm -f conftest.er1
40620 cat conftest.err >&5
a848cd7e
SC
40621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40622 (exit $ac_status); } &&
bb9e79c0 40623 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40625 (eval $ac_try) 2>&5
40626 ac_status=$?
40627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40628 (exit $ac_status); }; } &&
40629 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40631 (eval $ac_try) 2>&5
40632 ac_status=$?
40633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40634 (exit $ac_status); }; }; then
123dca7d 40635 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
40636else
40637 echo "$as_me: failed program was:" >&5
40638sed 's/^/| /' conftest.$ac_ext >&5
40639
123dca7d 40640wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
40641
40642fi
ac1cb8d3 40643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40644
40645fi
40646echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
40647echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
40648
40649 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
40650 cat >>confdefs.h <<\_ACEOF
40651#define HAVE_PTHREAD_MUTEXATTR_T 1
40652_ACEOF
40653
123dca7d
VZ
40654
40655 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
40656echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
40657if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
40658 echo $ECHO_N "(cached) $ECHO_C" >&6
40659else
40660
40661 cat >conftest.$ac_ext <<_ACEOF
40662/* confdefs.h. */
40663_ACEOF
40664cat confdefs.h >>conftest.$ac_ext
40665cat >>conftest.$ac_ext <<_ACEOF
40666/* end confdefs.h. */
40667#include <pthread.h>
40668int
40669main ()
40670{
40671
40672 pthread_mutexattr_t attr;
40673 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40674
40675 ;
40676 return 0;
40677}
40678_ACEOF
40679rm -f conftest.$ac_objext
40680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40681 (eval $ac_compile) 2>conftest.er1
40682 ac_status=$?
40683 grep -v '^ *+' conftest.er1 >conftest.err
40684 rm -f conftest.er1
40685 cat conftest.err >&5
40686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40687 (exit $ac_status); } &&
bb9e79c0 40688 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
123dca7d
VZ
40689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40690 (eval $ac_try) 2>&5
40691 ac_status=$?
40692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40693 (exit $ac_status); }; } &&
40694 { ac_try='test -s conftest.$ac_objext'
40695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40696 (eval $ac_try) 2>&5
40697 ac_status=$?
40698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40699 (exit $ac_status); }; }; then
40700 wx_cv_func_pthread_mutexattr_settype_decl=yes
40701else
40702 echo "$as_me: failed program was:" >&5
40703sed 's/^/| /' conftest.$ac_ext >&5
40704
40705wx_cv_func_pthread_mutexattr_settype_decl=no
40706
40707fi
40708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40709
40710fi
40711echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40712echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
40713 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40714 cat >>confdefs.h <<\_ACEOF
40715#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40716_ACEOF
40717
40718 fi
a848cd7e
SC
40719 else
40720 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40721echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
40722if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40723 echo $ECHO_N "(cached) $ECHO_C" >&6
40724else
40725
40726 cat >conftest.$ac_ext <<_ACEOF
40727/* confdefs.h. */
40728_ACEOF
40729cat confdefs.h >>conftest.$ac_ext
40730cat >>conftest.$ac_ext <<_ACEOF
40731/* end confdefs.h. */
40732#include <pthread.h>
40733int
40734main ()
40735{
40736
40737 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40738
40739 ;
40740 return 0;
40741}
40742_ACEOF
40743rm -f conftest.$ac_objext
40744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40745 (eval $ac_compile) 2>conftest.er1
a848cd7e 40746 ac_status=$?
ac1cb8d3
VS
40747 grep -v '^ *+' conftest.er1 >conftest.err
40748 rm -f conftest.er1
40749 cat conftest.err >&5
a848cd7e
SC
40750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40751 (exit $ac_status); } &&
bb9e79c0 40752 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40754 (eval $ac_try) 2>&5
40755 ac_status=$?
40756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40757 (exit $ac_status); }; } &&
40758 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40760 (eval $ac_try) 2>&5
40761 ac_status=$?
40762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40763 (exit $ac_status); }; }; then
40764
40765 wx_cv_type_pthread_rec_mutex_init=yes
40766
40767else
40768 echo "$as_me: failed program was:" >&5
40769sed 's/^/| /' conftest.$ac_ext >&5
40770
40771
40772 wx_cv_type_pthread_rec_mutex_init=no
40773
40774
40775fi
ac1cb8d3 40776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40777
40778fi
40779echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40780echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
40781 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40782 cat >>confdefs.h <<\_ACEOF
40783#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40784_ACEOF
40785
40786 else
40787 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40788echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40789 fi
40790 fi
40791 fi
40792
40793else
40794 if test "$wxUSE_THREADS" = "yes" ; then
40795 case "${host}" in
40796 *-*-mingw32* )
40797 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
40798echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
40799if test "${wx_cv_cflags_mthread+set}" = set; then
40800 echo $ECHO_N "(cached) $ECHO_C" >&6
40801else
40802
e56f4f9e
VZ
40803 CXXFLAGS_OLD="$CXXFLAGS"
40804 CXXFLAGS="-mthreads $CXXFLAGS"
a848cd7e
SC
40805 cat >conftest.$ac_ext <<_ACEOF
40806/* confdefs.h. */
40807_ACEOF
40808cat confdefs.h >>conftest.$ac_ext
40809cat >>conftest.$ac_ext <<_ACEOF
40810/* end confdefs.h. */
40811
40812int
40813main ()
40814{
40815
40816 ;
40817 return 0;
40818}
40819_ACEOF
40820rm -f conftest.$ac_objext
40821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40822 (eval $ac_compile) 2>conftest.er1
a848cd7e 40823 ac_status=$?
ac1cb8d3
VS
40824 grep -v '^ *+' conftest.er1 >conftest.err
40825 rm -f conftest.er1
40826 cat conftest.err >&5
a848cd7e
SC
40827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40828 (exit $ac_status); } &&
bb9e79c0 40829 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40831 (eval $ac_try) 2>&5
40832 ac_status=$?
40833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40834 (exit $ac_status); }; } &&
40835 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40837 (eval $ac_try) 2>&5
40838 ac_status=$?
40839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40840 (exit $ac_status); }; }; then
40841 wx_cv_cflags_mthread=yes
40842else
40843 echo "$as_me: failed program was:" >&5
40844sed 's/^/| /' conftest.$ac_ext >&5
40845
40846wx_cv_cflags_mthread=no
40847
40848fi
ac1cb8d3 40849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40850
40851
40852fi
40853echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
40854echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
40855
40856 if test "$wx_cv_cflags_mthread" = "yes"; then
e56f4f9e 40857 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
a848cd7e
SC
40858 LDFLAGS="$LDFLAGS -mthreads"
40859 else
e56f4f9e 40860 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
40861 fi
40862 ;;
40863 *-pc-os2*emx )
5ff751d6
VZ
40864 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
40865 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
40866 LDFLAGS="$LDFLAGS -Zmt"
40867 ;;
40868 esac
40869 fi
40870fi
40871
004ee6da
RL
40872echo "$as_me:$LINENO: checking for localtime_r" >&5
40873echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
40874if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
40875 echo $ECHO_N "(cached) $ECHO_C" >&6
40876else
40877 cat >conftest.$ac_ext <<_ACEOF
40878/* confdefs.h. */
40879_ACEOF
40880cat confdefs.h >>conftest.$ac_ext
40881cat >>conftest.$ac_ext <<_ACEOF
40882/* end confdefs.h. */
004ee6da 40883/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 40884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 40885#define localtime_r innocuous_localtime_r
ac1cb8d3 40886
a848cd7e 40887/* System header to define __stub macros and hopefully few prototypes,
004ee6da 40888 which can conflict with char localtime_r (); below.
a848cd7e
SC
40889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40890 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40891
a848cd7e
SC
40892#ifdef __STDC__
40893# include <limits.h>
40894#else
40895# include <assert.h>
40896#endif
ac1cb8d3 40897
004ee6da 40898#undef localtime_r
ac1cb8d3 40899
a848cd7e
SC
40900/* Override any gcc2 internal prototype to avoid an error. */
40901#ifdef __cplusplus
40902extern "C"
40903{
40904#endif
40905/* We use char because int might match the return type of a gcc2
40906 builtin and then its argument prototype would still apply. */
004ee6da 40907char localtime_r ();
a848cd7e
SC
40908/* The GNU C library defines this for functions which it implements
40909 to always fail with ENOSYS. Some functions are actually named
40910 something starting with __ and the normal name is an alias. */
004ee6da 40911#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
40912choke me
40913#else
004ee6da 40914char (*f) () = localtime_r;
a848cd7e
SC
40915#endif
40916#ifdef __cplusplus
40917}
40918#endif
40919
40920int
40921main ()
40922{
004ee6da
RL
40923return f != localtime_r;
40924 ;
40925 return 0;
40926}
40927_ACEOF
40928rm -f conftest.$ac_objext conftest$ac_exeext
40929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40930 (eval $ac_link) 2>conftest.er1
40931 ac_status=$?
40932 grep -v '^ *+' conftest.er1 >conftest.err
40933 rm -f conftest.er1
40934 cat conftest.err >&5
40935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40936 (exit $ac_status); } &&
bb9e79c0 40937 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40939 (eval $ac_try) 2>&5
40940 ac_status=$?
40941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40942 (exit $ac_status); }; } &&
40943 { ac_try='test -s conftest$ac_exeext'
40944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40945 (eval $ac_try) 2>&5
40946 ac_status=$?
40947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40948 (exit $ac_status); }; }; then
40949 ac_cv_func_localtime_r=yes
40950else
40951 echo "$as_me: failed program was:" >&5
40952sed 's/^/| /' conftest.$ac_ext >&5
40953
40954ac_cv_func_localtime_r=no
40955fi
40956rm -f conftest.err conftest.$ac_objext \
40957 conftest$ac_exeext conftest.$ac_ext
40958fi
40959echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
40960echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
40961if test $ac_cv_func_localtime_r = yes; then
40962 cat >>confdefs.h <<\_ACEOF
40963#define HAVE_LOCALTIME_R 1
40964_ACEOF
40965
40966fi
40967
40968echo "$as_me:$LINENO: checking for gmtime_r" >&5
40969echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
40970if test "${ac_cv_func_gmtime_r+set}" = set; then
40971 echo $ECHO_N "(cached) $ECHO_C" >&6
40972else
40973 cat >conftest.$ac_ext <<_ACEOF
40974/* confdefs.h. */
40975_ACEOF
40976cat confdefs.h >>conftest.$ac_ext
40977cat >>conftest.$ac_ext <<_ACEOF
40978/* end confdefs.h. */
40979/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
40980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40981#define gmtime_r innocuous_gmtime_r
40982
40983/* System header to define __stub macros and hopefully few prototypes,
40984 which can conflict with char gmtime_r (); below.
40985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40986 <limits.h> exists even on freestanding compilers. */
40987
40988#ifdef __STDC__
40989# include <limits.h>
40990#else
40991# include <assert.h>
40992#endif
40993
40994#undef gmtime_r
40995
40996/* Override any gcc2 internal prototype to avoid an error. */
40997#ifdef __cplusplus
40998extern "C"
40999{
41000#endif
41001/* We use char because int might match the return type of a gcc2
41002 builtin and then its argument prototype would still apply. */
41003char gmtime_r ();
41004/* The GNU C library defines this for functions which it implements
41005 to always fail with ENOSYS. Some functions are actually named
41006 something starting with __ and the normal name is an alias. */
41007#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
41008choke me
41009#else
41010char (*f) () = gmtime_r;
41011#endif
41012#ifdef __cplusplus
41013}
41014#endif
41015
41016int
41017main ()
41018{
41019return f != gmtime_r;
41020 ;
41021 return 0;
41022}
41023_ACEOF
41024rm -f conftest.$ac_objext conftest$ac_exeext
41025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41026 (eval $ac_link) 2>conftest.er1
41027 ac_status=$?
41028 grep -v '^ *+' conftest.er1 >conftest.err
41029 rm -f conftest.er1
41030 cat conftest.err >&5
41031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41032 (exit $ac_status); } &&
bb9e79c0 41033 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41035 (eval $ac_try) 2>&5
41036 ac_status=$?
41037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41038 (exit $ac_status); }; } &&
41039 { ac_try='test -s conftest$ac_exeext'
41040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41041 (eval $ac_try) 2>&5
41042 ac_status=$?
41043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41044 (exit $ac_status); }; }; then
41045 ac_cv_func_gmtime_r=yes
41046else
41047 echo "$as_me: failed program was:" >&5
41048sed 's/^/| /' conftest.$ac_ext >&5
41049
41050ac_cv_func_gmtime_r=no
41051fi
41052rm -f conftest.err conftest.$ac_objext \
41053 conftest$ac_exeext conftest.$ac_ext
41054fi
41055echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
41056echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
41057if test $ac_cv_func_gmtime_r = yes; then
41058 cat >>confdefs.h <<\_ACEOF
41059#define HAVE_GMTIME_R 1
41060_ACEOF
41061
41062fi
41063
41064echo "$as_me:$LINENO: checking for readdir_r" >&5
41065echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
41066if test "${ac_cv_func_readdir_r+set}" = set; then
41067 echo $ECHO_N "(cached) $ECHO_C" >&6
41068else
41069 cat >conftest.$ac_ext <<_ACEOF
41070/* confdefs.h. */
41071_ACEOF
41072cat confdefs.h >>conftest.$ac_ext
41073cat >>conftest.$ac_ext <<_ACEOF
41074/* end confdefs.h. */
41075/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
41076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41077#define readdir_r innocuous_readdir_r
41078
41079/* System header to define __stub macros and hopefully few prototypes,
41080 which can conflict with char readdir_r (); below.
41081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41082 <limits.h> exists even on freestanding compilers. */
41083
41084#ifdef __STDC__
41085# include <limits.h>
41086#else
41087# include <assert.h>
41088#endif
41089
41090#undef readdir_r
41091
41092/* Override any gcc2 internal prototype to avoid an error. */
41093#ifdef __cplusplus
41094extern "C"
41095{
41096#endif
41097/* We use char because int might match the return type of a gcc2
41098 builtin and then its argument prototype would still apply. */
41099char readdir_r ();
41100/* The GNU C library defines this for functions which it implements
41101 to always fail with ENOSYS. Some functions are actually named
41102 something starting with __ and the normal name is an alias. */
41103#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
41104choke me
41105#else
41106char (*f) () = readdir_r;
41107#endif
41108#ifdef __cplusplus
41109}
41110#endif
41111
41112int
41113main ()
41114{
41115return f != readdir_r;
41116 ;
41117 return 0;
41118}
41119_ACEOF
41120rm -f conftest.$ac_objext conftest$ac_exeext
41121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41122 (eval $ac_link) 2>conftest.er1
41123 ac_status=$?
41124 grep -v '^ *+' conftest.er1 >conftest.err
41125 rm -f conftest.er1
41126 cat conftest.err >&5
41127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41128 (exit $ac_status); } &&
bb9e79c0 41129 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41131 (eval $ac_try) 2>&5
41132 ac_status=$?
41133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41134 (exit $ac_status); }; } &&
41135 { ac_try='test -s conftest$ac_exeext'
41136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41137 (eval $ac_try) 2>&5
41138 ac_status=$?
41139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41140 (exit $ac_status); }; }; then
41141 ac_cv_func_readdir_r=yes
41142else
41143 echo "$as_me: failed program was:" >&5
41144sed 's/^/| /' conftest.$ac_ext >&5
41145
41146ac_cv_func_readdir_r=no
41147fi
41148rm -f conftest.err conftest.$ac_objext \
41149 conftest$ac_exeext conftest.$ac_ext
41150fi
41151echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
41152echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
41153if test $ac_cv_func_readdir_r = yes; then
41154 cat >>confdefs.h <<\_ACEOF
41155#define HAVE_READDIR_R 1
41156_ACEOF
41157
41158fi
41159
004ee6da 41160
004ee6da
RL
41161
41162
41163 ac_ext=c
41164ac_cpp='$CPP $CPPFLAGS'
41165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41167ac_compiler_gnu=$ac_cv_c_compiler_gnu
41168
41169 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
41170echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
41171
41172 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
41173 echo $ECHO_N "(cached) $ECHO_C" >&6
41174else
41175
41176
2f6c5bb5 41177################################################################
004ee6da
RL
41178
41179ac_cv_func_which_gethostbyname_r=unknown
41180
41181#
41182# ONE ARGUMENT (sanity check)
41183#
41184
41185# This should fail, as there is no variant of gethostbyname_r() that takes
41186# a single argument. If it actually compiles, then we can assume that
41187# netdb.h is not declaring the function, and the compiler is thereby
41188# assuming an implicit prototype. In which case, we're out of luck.
41189#
41190cat >conftest.$ac_ext <<_ACEOF
41191/* confdefs.h. */
41192_ACEOF
41193cat confdefs.h >>conftest.$ac_ext
41194cat >>conftest.$ac_ext <<_ACEOF
41195/* end confdefs.h. */
41196#include <netdb.h>
41197int
41198main ()
41199{
41200
41201 char *name = "www.gnu.org";
41202 (void)gethostbyname_r(name) /* ; */
41203
41204 ;
41205 return 0;
41206}
41207_ACEOF
41208rm -f conftest.$ac_objext
41209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41210 (eval $ac_compile) 2>conftest.er1
41211 ac_status=$?
41212 grep -v '^ *+' conftest.er1 >conftest.err
41213 rm -f conftest.er1
41214 cat conftest.err >&5
41215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41216 (exit $ac_status); } &&
bb9e79c0 41217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41219 (eval $ac_try) 2>&5
41220 ac_status=$?
41221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41222 (exit $ac_status); }; } &&
41223 { ac_try='test -s conftest.$ac_objext'
41224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41225 (eval $ac_try) 2>&5
41226 ac_status=$?
41227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41228 (exit $ac_status); }; }; then
41229 ac_cv_func_which_gethostbyname_r=no
41230else
41231 echo "$as_me: failed program was:" >&5
41232sed 's/^/| /' conftest.$ac_ext >&5
41233
41234fi
41235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41236
41237#
41238# SIX ARGUMENTS
41239# (e.g. Linux)
41240#
41241
41242if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41243
41244cat >conftest.$ac_ext <<_ACEOF
41245/* confdefs.h. */
41246_ACEOF
41247cat confdefs.h >>conftest.$ac_ext
41248cat >>conftest.$ac_ext <<_ACEOF
41249/* end confdefs.h. */
41250#include <netdb.h>
41251int
41252main ()
41253{
41254
41255 char *name = "www.gnu.org";
41256 struct hostent ret, *retp;
41257 char buf[1024];
41258 int buflen = 1024;
41259 int my_h_errno;
41260 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
41261
41262 ;
41263 return 0;
41264}
41265_ACEOF
41266rm -f conftest.$ac_objext
41267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41268 (eval $ac_compile) 2>conftest.er1
41269 ac_status=$?
41270 grep -v '^ *+' conftest.er1 >conftest.err
41271 rm -f conftest.er1
41272 cat conftest.err >&5
41273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41274 (exit $ac_status); } &&
bb9e79c0 41275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41277 (eval $ac_try) 2>&5
41278 ac_status=$?
41279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41280 (exit $ac_status); }; } &&
41281 { ac_try='test -s conftest.$ac_objext'
41282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41283 (eval $ac_try) 2>&5
41284 ac_status=$?
41285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41286 (exit $ac_status); }; }; then
41287 ac_cv_func_which_gethostbyname_r=six
41288else
41289 echo "$as_me: failed program was:" >&5
41290sed 's/^/| /' conftest.$ac_ext >&5
41291
41292fi
41293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41294
41295fi
41296
41297#
41298# FIVE ARGUMENTS
41299# (e.g. Solaris)
41300#
41301
41302if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41303
41304cat >conftest.$ac_ext <<_ACEOF
41305/* confdefs.h. */
41306_ACEOF
41307cat confdefs.h >>conftest.$ac_ext
41308cat >>conftest.$ac_ext <<_ACEOF
41309/* end confdefs.h. */
41310#include <netdb.h>
41311int
41312main ()
41313{
41314
41315 char *name = "www.gnu.org";
41316 struct hostent ret;
41317 char buf[1024];
41318 int buflen = 1024;
41319 int my_h_errno;
41320 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
41321
41322 ;
41323 return 0;
41324}
41325_ACEOF
41326rm -f conftest.$ac_objext
41327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41328 (eval $ac_compile) 2>conftest.er1
41329 ac_status=$?
41330 grep -v '^ *+' conftest.er1 >conftest.err
41331 rm -f conftest.er1
41332 cat conftest.err >&5
41333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41334 (exit $ac_status); } &&
bb9e79c0 41335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41337 (eval $ac_try) 2>&5
41338 ac_status=$?
41339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41340 (exit $ac_status); }; } &&
41341 { ac_try='test -s conftest.$ac_objext'
41342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41343 (eval $ac_try) 2>&5
41344 ac_status=$?
41345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41346 (exit $ac_status); }; }; then
41347 ac_cv_func_which_gethostbyname_r=five
41348else
41349 echo "$as_me: failed program was:" >&5
41350sed 's/^/| /' conftest.$ac_ext >&5
41351
41352fi
41353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41354
41355fi
41356
41357#
41358# THREE ARGUMENTS
41359# (e.g. AIX, HP-UX, Tru64)
41360#
41361
41362if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41363
41364cat >conftest.$ac_ext <<_ACEOF
41365/* confdefs.h. */
41366_ACEOF
41367cat confdefs.h >>conftest.$ac_ext
41368cat >>conftest.$ac_ext <<_ACEOF
41369/* end confdefs.h. */
41370#include <netdb.h>
41371int
41372main ()
41373{
41374
41375 char *name = "www.gnu.org";
41376 struct hostent ret;
41377 struct hostent_data data;
41378 (void)gethostbyname_r(name, &ret, &data) /* ; */
41379
41380 ;
41381 return 0;
41382}
41383_ACEOF
41384rm -f conftest.$ac_objext
41385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41386 (eval $ac_compile) 2>conftest.er1
41387 ac_status=$?
41388 grep -v '^ *+' conftest.er1 >conftest.err
41389 rm -f conftest.er1
41390 cat conftest.err >&5
41391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41392 (exit $ac_status); } &&
bb9e79c0 41393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41395 (eval $ac_try) 2>&5
41396 ac_status=$?
41397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41398 (exit $ac_status); }; } &&
41399 { ac_try='test -s conftest.$ac_objext'
41400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41401 (eval $ac_try) 2>&5
41402 ac_status=$?
41403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41404 (exit $ac_status); }; }; then
41405 ac_cv_func_which_gethostbyname_r=three
41406else
41407 echo "$as_me: failed program was:" >&5
41408sed 's/^/| /' conftest.$ac_ext >&5
41409
41410fi
41411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41412
41413fi
41414
2f6c5bb5 41415################################################################
004ee6da
RL
41416
41417
41418fi
41419
41420case "$ac_cv_func_which_gethostbyname_r" in
41421 three)
41422 echo "$as_me:$LINENO: result: three" >&5
41423echo "${ECHO_T}three" >&6
41424 cat >>confdefs.h <<\_ACEOF
41425#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
41426_ACEOF
41427
41428 ;;
41429
41430 five)
41431 echo "$as_me:$LINENO: result: five" >&5
41432echo "${ECHO_T}five" >&6
41433 cat >>confdefs.h <<\_ACEOF
41434#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
41435_ACEOF
41436
41437 ;;
41438
41439 six)
41440 echo "$as_me:$LINENO: result: six" >&5
41441echo "${ECHO_T}six" >&6
41442 cat >>confdefs.h <<\_ACEOF
41443#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
41444_ACEOF
41445
41446 ;;
41447
41448 no)
41449 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
41450echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
41451 ;;
41452
41453 unknown)
41454 echo "$as_me:$LINENO: result: can't tell" >&5
41455echo "${ECHO_T}can't tell" >&6
41456 ;;
41457
41458 *)
41459 { { echo "$as_me:$LINENO: error: internal error" >&5
41460echo "$as_me: error: internal error" >&2;}
41461 { (exit 1); exit 1; }; }
41462 ;;
41463esac
41464
5ec3bc43
JS
41465ac_ext=cc
41466ac_cpp='$CXXCPP $CPPFLAGS'
41467ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41468ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41469ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
004ee6da
RL
41470
41471
41472
41473 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
ec3edcc9 41474 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
004ee6da
RL
41475 echo "$as_me:$LINENO: checking for gethostbyname" >&5
41476echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
41477if test "${ac_cv_func_gethostbyname+set}" = set; then
41478 echo $ECHO_N "(cached) $ECHO_C" >&6
41479else
41480 cat >conftest.$ac_ext <<_ACEOF
41481/* confdefs.h. */
41482_ACEOF
41483cat confdefs.h >>conftest.$ac_ext
41484cat >>conftest.$ac_ext <<_ACEOF
41485/* end confdefs.h. */
41486/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
41487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41488#define gethostbyname innocuous_gethostbyname
41489
41490/* System header to define __stub macros and hopefully few prototypes,
41491 which can conflict with char gethostbyname (); below.
41492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41493 <limits.h> exists even on freestanding compilers. */
41494
41495#ifdef __STDC__
41496# include <limits.h>
41497#else
41498# include <assert.h>
41499#endif
41500
41501#undef gethostbyname
41502
41503/* Override any gcc2 internal prototype to avoid an error. */
41504#ifdef __cplusplus
41505extern "C"
41506{
41507#endif
41508/* We use char because int might match the return type of a gcc2
41509 builtin and then its argument prototype would still apply. */
41510char gethostbyname ();
41511/* The GNU C library defines this for functions which it implements
41512 to always fail with ENOSYS. Some functions are actually named
41513 something starting with __ and the normal name is an alias. */
41514#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
41515choke me
41516#else
41517char (*f) () = gethostbyname;
41518#endif
41519#ifdef __cplusplus
41520}
41521#endif
41522
41523int
41524main ()
41525{
41526return f != gethostbyname;
41527 ;
41528 return 0;
41529}
41530_ACEOF
41531rm -f conftest.$ac_objext conftest$ac_exeext
41532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41533 (eval $ac_link) 2>conftest.er1
41534 ac_status=$?
41535 grep -v '^ *+' conftest.er1 >conftest.err
41536 rm -f conftest.er1
41537 cat conftest.err >&5
41538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41539 (exit $ac_status); } &&
bb9e79c0 41540 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41542 (eval $ac_try) 2>&5
41543 ac_status=$?
41544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41545 (exit $ac_status); }; } &&
41546 { ac_try='test -s conftest$ac_exeext'
41547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41548 (eval $ac_try) 2>&5
41549 ac_status=$?
41550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41551 (exit $ac_status); }; }; then
41552 ac_cv_func_gethostbyname=yes
41553else
41554 echo "$as_me: failed program was:" >&5
41555sed 's/^/| /' conftest.$ac_ext >&5
41556
41557ac_cv_func_gethostbyname=no
41558fi
41559rm -f conftest.err conftest.$ac_objext \
41560 conftest$ac_exeext conftest.$ac_ext
41561fi
41562echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
41563echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
41564if test $ac_cv_func_gethostbyname = yes; then
41565 cat >>confdefs.h <<\_ACEOF
41566#define HAVE_GETHOSTBYNAME 1
41567_ACEOF
41568
41569fi
41570
41571 fi
3ecd9f92 41572
81c330c6
VZ
41573echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
41574echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6
41575if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
004ee6da
RL
41576 echo $ECHO_N "(cached) $ECHO_C" >&6
41577else
3ecd9f92
MW
41578
41579 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41580/* confdefs.h. */
41581_ACEOF
41582cat confdefs.h >>conftest.$ac_ext
41583cat >>conftest.$ac_ext <<_ACEOF
41584/* end confdefs.h. */
81c330c6 41585#include <netdb.h>
004ee6da
RL
41586int
41587main ()
41588{
41589
81c330c6
VZ
41590 char *name;
41591 char *proto;
41592 struct servent *se, *res;
41593 char buffer[2048];
41594 int buflen = 2048;
41595 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
004ee6da
RL
41596
41597 ;
41598 return 0;
41599}
41600_ACEOF
41601rm -f conftest.$ac_objext
41602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41603 (eval $ac_compile) 2>conftest.er1
41604 ac_status=$?
41605 grep -v '^ *+' conftest.er1 >conftest.err
41606 rm -f conftest.er1
41607 cat conftest.err >&5
41608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41609 (exit $ac_status); } &&
bb9e79c0 41610 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41612 (eval $ac_try) 2>&5
41613 ac_status=$?
41614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41615 (exit $ac_status); }; } &&
41616 { ac_try='test -s conftest.$ac_objext'
41617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41618 (eval $ac_try) 2>&5
41619 ac_status=$?
41620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41621 (exit $ac_status); }; }; then
81c330c6 41622 ac_cv_func_which_getservbyname_r=six
004ee6da
RL
41623else
41624 echo "$as_me: failed program was:" >&5
41625sed 's/^/| /' conftest.$ac_ext >&5
41626
3ecd9f92 41627
81c330c6 41628 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41629/* confdefs.h. */
41630_ACEOF
41631cat confdefs.h >>conftest.$ac_ext
41632cat >>conftest.$ac_ext <<_ACEOF
41633/* end confdefs.h. */
81c330c6 41634#include <netdb.h>
004ee6da
RL
41635int
41636main ()
41637{
41638
81c330c6
VZ
41639 char *name;
41640 char *proto;
41641 struct servent *se;
41642 char buffer[2048];
41643 int buflen = 2048;
41644 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
41645
41646 ;
41647 return 0;
41648}
41649_ACEOF
41650rm -f conftest.$ac_objext
41651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41652 (eval $ac_compile) 2>conftest.er1
41653 ac_status=$?
41654 grep -v '^ *+' conftest.er1 >conftest.err
41655 rm -f conftest.er1
41656 cat conftest.err >&5
41657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41658 (exit $ac_status); } &&
bb9e79c0 41659 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41661 (eval $ac_try) 2>&5
41662 ac_status=$?
41663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41664 (exit $ac_status); }; } &&
41665 { ac_try='test -s conftest.$ac_objext'
41666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41667 (eval $ac_try) 2>&5
41668 ac_status=$?
41669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41670 (exit $ac_status); }; }; then
81c330c6 41671 ac_cv_func_which_getservbyname_r=five
004ee6da
RL
41672else
41673 echo "$as_me: failed program was:" >&5
41674sed 's/^/| /' conftest.$ac_ext >&5
41675
3ecd9f92 41676
81c330c6 41677 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41678/* confdefs.h. */
41679_ACEOF
41680cat confdefs.h >>conftest.$ac_ext
41681cat >>conftest.$ac_ext <<_ACEOF
41682/* end confdefs.h. */
81c330c6 41683#include <netdb.h>
004ee6da
RL
41684int
41685main ()
41686{
41687
81c330c6
VZ
41688 char *name;
41689 char *proto;
41690 struct servent *se;
41691 struct servent_data data;
41692 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
41693
41694 ;
41695 return 0;
41696}
41697_ACEOF
41698rm -f conftest.$ac_objext
41699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41700 (eval $ac_compile) 2>conftest.er1
41701 ac_status=$?
41702 grep -v '^ *+' conftest.er1 >conftest.err
41703 rm -f conftest.er1
41704 cat conftest.err >&5
41705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41706 (exit $ac_status); } &&
bb9e79c0 41707 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41709 (eval $ac_try) 2>&5
41710 ac_status=$?
41711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41712 (exit $ac_status); }; } &&
41713 { ac_try='test -s conftest.$ac_objext'
41714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41715 (eval $ac_try) 2>&5
41716 ac_status=$?
41717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41718 (exit $ac_status); }; }; then
81c330c6 41719 ac_cv_func_which_getservbyname_r=four
004ee6da
RL
41720else
41721 echo "$as_me: failed program was:" >&5
41722sed 's/^/| /' conftest.$ac_ext >&5
41723
41724ac_cv_func_which_getservbyname_r=no
81c330c6 41725
004ee6da
RL
41726fi
41727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41728
3ecd9f92 41729
004ee6da
RL
41730fi
41731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41732
3ecd9f92 41733
004ee6da
RL
41734fi
41735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3ecd9f92 41736
004ee6da 41737
3ecd9f92
MW
41738fi
41739echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41740echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
004ee6da
RL
41741
41742if test $ac_cv_func_which_getservbyname_r = six; then
41743 cat >>confdefs.h <<\_ACEOF
41744#define HAVE_FUNC_GETSERVBYNAME_R_6 1
41745_ACEOF
41746
41747elif test $ac_cv_func_which_getservbyname_r = five; then
41748 cat >>confdefs.h <<\_ACEOF
41749#define HAVE_FUNC_GETSERVBYNAME_R_5 1
41750_ACEOF
41751
41752elif test $ac_cv_func_which_getservbyname_r = four; then
41753 cat >>confdefs.h <<\_ACEOF
41754#define HAVE_FUNC_GETSERVBYNAME_R_4 1
41755_ACEOF
41756
004ee6da
RL
41757fi
41758
41759
41760 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
ec3edcc9 41761 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
004ee6da
RL
41762
41763for ac_func in getservbyname
41764do
41765as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41766echo "$as_me:$LINENO: checking for $ac_func" >&5
41767echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41768if eval "test \"\${$as_ac_var+set}\" = set"; then
41769 echo $ECHO_N "(cached) $ECHO_C" >&6
41770else
41771 cat >conftest.$ac_ext <<_ACEOF
41772/* confdefs.h. */
41773_ACEOF
41774cat confdefs.h >>conftest.$ac_ext
41775cat >>conftest.$ac_ext <<_ACEOF
41776/* end confdefs.h. */
41777/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41779#define $ac_func innocuous_$ac_func
41780
41781/* System header to define __stub macros and hopefully few prototypes,
41782 which can conflict with char $ac_func (); below.
41783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41784 <limits.h> exists even on freestanding compilers. */
41785
41786#ifdef __STDC__
41787# include <limits.h>
41788#else
41789# include <assert.h>
41790#endif
41791
41792#undef $ac_func
41793
41794/* Override any gcc2 internal prototype to avoid an error. */
41795#ifdef __cplusplus
41796extern "C"
41797{
41798#endif
41799/* We use char because int might match the return type of a gcc2
41800 builtin and then its argument prototype would still apply. */
41801char $ac_func ();
41802/* The GNU C library defines this for functions which it implements
41803 to always fail with ENOSYS. Some functions are actually named
41804 something starting with __ and the normal name is an alias. */
41805#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41806choke me
41807#else
41808char (*f) () = $ac_func;
41809#endif
41810#ifdef __cplusplus
41811}
41812#endif
41813
41814int
41815main ()
41816{
41817return f != $ac_func;
41818 ;
41819 return 0;
41820}
41821_ACEOF
41822rm -f conftest.$ac_objext conftest$ac_exeext
41823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41824 (eval $ac_link) 2>conftest.er1
41825 ac_status=$?
41826 grep -v '^ *+' conftest.er1 >conftest.err
41827 rm -f conftest.er1
41828 cat conftest.err >&5
41829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41830 (exit $ac_status); } &&
bb9e79c0 41831 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41833 (eval $ac_try) 2>&5
41834 ac_status=$?
41835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41836 (exit $ac_status); }; } &&
41837 { ac_try='test -s conftest$ac_exeext'
41838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41839 (eval $ac_try) 2>&5
41840 ac_status=$?
41841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41842 (exit $ac_status); }; }; then
41843 eval "$as_ac_var=yes"
41844else
41845 echo "$as_me: failed program was:" >&5
41846sed 's/^/| /' conftest.$ac_ext >&5
41847
41848eval "$as_ac_var=no"
41849fi
41850rm -f conftest.err conftest.$ac_objext \
41851 conftest$ac_exeext conftest.$ac_ext
41852fi
41853echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41854echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41855if test `eval echo '${'$as_ac_var'}'` = yes; then
41856 cat >>confdefs.h <<_ACEOF
41857#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41858_ACEOF
41859 cat >>confdefs.h <<\_ACEOF
41860#define HAVE_GETSERVBYNAME 1
41861_ACEOF
41862
41863fi
41864done
41865
41866 fi
41867
004ee6da
RL
41868if test "$wxUSE_THREADS" = "yes"; then
41869 cat >>confdefs.h <<\_ACEOF
41870#define wxUSE_THREADS 1
41871_ACEOF
41872
41873
41874 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
41875else
56632e81 41876 if test "$wx_cv_func_strtok_r" = "yes"; then
004ee6da
RL
41877 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
41878echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
41879 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
41880 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
41881 echo "$as_me:$LINENO: result: yes" >&5
41882echo "${ECHO_T}yes" >&6
41883 else
41884 echo "$as_me:$LINENO: result: no" >&5
41885echo "${ECHO_T}no" >&6
41886 fi
41887 fi
41888fi
41889
41890if test "$WXGTK20" = 1 ; then
41891 cat >>confdefs.h <<_ACEOF
41892#define __WXGTK20__ $WXGTK20
41893_ACEOF
41894
41895 WXGTK12=1
41896fi
41897
41898if test "$WXGTK12" = 1 ; then
41899 cat >>confdefs.h <<_ACEOF
41900#define __WXGTK12__ $WXGTK12
41901_ACEOF
41902
41903fi
41904
41905if test "$WXGTK127" = 1 ; then
41906 cat >>confdefs.h <<_ACEOF
41907#define __WXGTK127__ $WXGTK127
41908_ACEOF
41909
41910fi
41911
41912if test "$WXGPE" = 1 ; then
41913 cat >>confdefs.h <<_ACEOF
41914#define __WXGPE__ $WXGPE
41915_ACEOF
41916
41917fi
41918
41919DEBUG_CFLAGS=
41920if test "$wxUSE_DEBUG_INFO" = "yes" ; then
41921 DEBUG_CFLAGS="-g"
41922 wxUSE_OPTIMISE=no
41923fi
41924
41925if test "$wxUSE_DEBUG_GDB" = "yes" ; then
41926 wxUSE_DEBUG_INFO=yes
41927 if test "$GCC" = yes; then
41928 DEBUG_CFLAGS="-ggdb"
41929 fi
41930fi
41931
41932if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
41933 cat >>confdefs.h <<\_ACEOF
41934#define WXDEBUG 1
41935_ACEOF
41936
41937 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
41938else
41939 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
41940 if test "x$wxGTK_VERSION" = "x1" ; then
41941 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
41942 fi
004ee6da
RL
41943 fi
41944fi
41945
41946if test "$wxUSE_MEM_TRACING" = "yes" ; then
41947 cat >>confdefs.h <<\_ACEOF
41948#define wxUSE_MEMORY_TRACING 1
41949_ACEOF
41950
41951 cat >>confdefs.h <<\_ACEOF
41952#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
41953_ACEOF
41954
41955 cat >>confdefs.h <<\_ACEOF
41956#define wxUSE_DEBUG_NEW_ALWAYS 1
41957_ACEOF
41958
41959 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
41960fi
41961
41962if test "$wxUSE_DMALLOC" = "yes" ; then
41963 DMALLOC_LIBS="-ldmallocthcxx"
41964fi
41965
41966PROFILE_FLAGS=
41967if test "$wxUSE_PROFILE" = "yes" ; then
41968 PROFILE_FLAGS=" -pg"
41969fi
41970
41971if test "$GCC" = "yes" ; then
41972 if test "$wxUSE_NO_RTTI" = "yes" ; then
41973 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
41974 fi
41975 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41976 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
41977 fi
41978 if test "$wxUSE_PERMISSIVE" = "yes" ; then
41979 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
41980 fi
41981
41982 case "${host}" in
41983 powerpc*-*-aix* )
41984 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
41985 ;;
41986 *-hppa* )
41987 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
41988 ;;
41989 esac
41990fi
41991
41992OPTIMISE_CFLAGS=
41993if test "$wxUSE_OPTIMISE" = "no" ; then
41994 if test "$GCC" = yes ; then
41995 OPTIMISE_CFLAGS="-O0"
41996 fi
41997else
41998 if test "$GCC" = yes ; then
e5efa97e
VZ
41999 case "${host}" in
42000 *-pc-os2_emx | *-pc-os2-emx )
42001 OPTIMISE_CFLAGS="-O2"
42002 ;;
42003 *)
42004 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
42005 ;;
42006 esac
004ee6da
RL
42007 else
42008 OPTIMISE_CFLAGS="-O"
42009 fi
42010fi
42011
42012
42013if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
42014 cat >>confdefs.h <<\_ACEOF
42015#define WXWIN_COMPATIBILITY_2_4 1
42016_ACEOF
42017
42018
42019 WXWIN_COMPATIBILITY_2_6="yes"
42020fi
42021
42022if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
42023 cat >>confdefs.h <<\_ACEOF
42024#define WXWIN_COMPATIBILITY_2_6 1
42025_ACEOF
42026
42027fi
42028
42029
42030if test "$wxUSE_GUI" = "yes"; then
42031 cat >>confdefs.h <<\_ACEOF
42032#define wxUSE_GUI 1
42033_ACEOF
42034
42035
42036 fi
42037
42038
42039if test "$wxUSE_UNIX" = "yes"; then
42040 cat >>confdefs.h <<\_ACEOF
42041#define wxUSE_UNIX 1
42042_ACEOF
42043
42044fi
42045
42046
42047if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
42048
42049 HAVE_DL_FUNCS=0
42050 HAVE_SHL_FUNCS=0
42051 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42052 if test "$USE_DARWIN" = 1; then
42053 HAVE_DL_FUNCS=1
42054 elif test "$USE_DOS" = 1; then
42055 HAVE_DL_FUNCS=0
42056 else
42057
42058for ac_func in dlopen
42059do
42060as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42061echo "$as_me:$LINENO: checking for $ac_func" >&5
42062echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42063if eval "test \"\${$as_ac_var+set}\" = set"; then
42064 echo $ECHO_N "(cached) $ECHO_C" >&6
42065else
42066 cat >conftest.$ac_ext <<_ACEOF
42067/* confdefs.h. */
42068_ACEOF
42069cat confdefs.h >>conftest.$ac_ext
42070cat >>conftest.$ac_ext <<_ACEOF
42071/* end confdefs.h. */
42072/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42074#define $ac_func innocuous_$ac_func
42075
42076/* System header to define __stub macros and hopefully few prototypes,
42077 which can conflict with char $ac_func (); below.
42078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42079 <limits.h> exists even on freestanding compilers. */
42080
42081#ifdef __STDC__
42082# include <limits.h>
42083#else
42084# include <assert.h>
42085#endif
42086
42087#undef $ac_func
42088
42089/* Override any gcc2 internal prototype to avoid an error. */
42090#ifdef __cplusplus
42091extern "C"
42092{
42093#endif
42094/* We use char because int might match the return type of a gcc2
42095 builtin and then its argument prototype would still apply. */
42096char $ac_func ();
42097/* The GNU C library defines this for functions which it implements
42098 to always fail with ENOSYS. Some functions are actually named
42099 something starting with __ and the normal name is an alias. */
42100#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42101choke me
42102#else
42103char (*f) () = $ac_func;
42104#endif
42105#ifdef __cplusplus
42106}
42107#endif
42108
42109int
42110main ()
42111{
42112return f != $ac_func;
a848cd7e
SC
42113 ;
42114 return 0;
42115}
42116_ACEOF
42117rm -f conftest.$ac_objext conftest$ac_exeext
42118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42119 (eval $ac_link) 2>conftest.er1
a848cd7e 42120 ac_status=$?
ac1cb8d3
VS
42121 grep -v '^ *+' conftest.er1 >conftest.err
42122 rm -f conftest.er1
42123 cat conftest.err >&5
a848cd7e
SC
42124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42125 (exit $ac_status); } &&
bb9e79c0 42126 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42128 (eval $ac_try) 2>&5
42129 ac_status=$?
42130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42131 (exit $ac_status); }; } &&
42132 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42134 (eval $ac_try) 2>&5
42135 ac_status=$?
42136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42137 (exit $ac_status); }; }; then
42138 eval "$as_ac_var=yes"
42139else
42140 echo "$as_me: failed program was:" >&5
42141sed 's/^/| /' conftest.$ac_ext >&5
42142
42143eval "$as_ac_var=no"
42144fi
ac1cb8d3
VS
42145rm -f conftest.err conftest.$ac_objext \
42146 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42147fi
42148echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42149echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42150if test `eval echo '${'$as_ac_var'}'` = yes; then
42151 cat >>confdefs.h <<_ACEOF
42152#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42153_ACEOF
42154
42155 cat >>confdefs.h <<\_ACEOF
42156#define HAVE_DLOPEN 1
42157_ACEOF
42158
42159 HAVE_DL_FUNCS=1
42160
42161else
42162
42163 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
42164echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
42165if test "${ac_cv_lib_dl_dlopen+set}" = set; then
42166 echo $ECHO_N "(cached) $ECHO_C" >&6
42167else
42168 ac_check_lib_save_LIBS=$LIBS
42169LIBS="-ldl $LIBS"
42170cat >conftest.$ac_ext <<_ACEOF
42171/* confdefs.h. */
42172_ACEOF
42173cat confdefs.h >>conftest.$ac_ext
42174cat >>conftest.$ac_ext <<_ACEOF
42175/* end confdefs.h. */
42176
42177/* Override any gcc2 internal prototype to avoid an error. */
42178#ifdef __cplusplus
42179extern "C"
42180#endif
42181/* We use char because int might match the return type of a gcc2
42182 builtin and then its argument prototype would still apply. */
42183char dlopen ();
42184int
42185main ()
42186{
42187dlopen ();
42188 ;
42189 return 0;
42190}
42191_ACEOF
42192rm -f conftest.$ac_objext conftest$ac_exeext
42193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42194 (eval $ac_link) 2>conftest.er1
a848cd7e 42195 ac_status=$?
ac1cb8d3
VS
42196 grep -v '^ *+' conftest.er1 >conftest.err
42197 rm -f conftest.er1
42198 cat conftest.err >&5
a848cd7e
SC
42199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42200 (exit $ac_status); } &&
bb9e79c0 42201 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42203 (eval $ac_try) 2>&5
42204 ac_status=$?
42205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42206 (exit $ac_status); }; } &&
42207 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42209 (eval $ac_try) 2>&5
42210 ac_status=$?
42211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42212 (exit $ac_status); }; }; then
42213 ac_cv_lib_dl_dlopen=yes
42214else
42215 echo "$as_me: failed program was:" >&5
42216sed 's/^/| /' conftest.$ac_ext >&5
42217
42218ac_cv_lib_dl_dlopen=no
42219fi
ac1cb8d3
VS
42220rm -f conftest.err conftest.$ac_objext \
42221 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42222LIBS=$ac_check_lib_save_LIBS
42223fi
42224echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
42225echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
42226if test $ac_cv_lib_dl_dlopen = yes; then
42227
42228 cat >>confdefs.h <<\_ACEOF
42229#define HAVE_DLOPEN 1
42230_ACEOF
42231
42232 HAVE_DL_FUNCS=1
42233 DL_LINK=" -ldl$DL_LINK"
42234
42235else
42236
42237
42238for ac_func in shl_load
42239do
42240as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42241echo "$as_me:$LINENO: checking for $ac_func" >&5
42242echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42243if eval "test \"\${$as_ac_var+set}\" = set"; then
42244 echo $ECHO_N "(cached) $ECHO_C" >&6
42245else
42246 cat >conftest.$ac_ext <<_ACEOF
42247/* confdefs.h. */
42248_ACEOF
42249cat confdefs.h >>conftest.$ac_ext
42250cat >>conftest.$ac_ext <<_ACEOF
42251/* end confdefs.h. */
ac1cb8d3
VS
42252/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42254#define $ac_func innocuous_$ac_func
42255
a848cd7e
SC
42256/* System header to define __stub macros and hopefully few prototypes,
42257 which can conflict with char $ac_func (); below.
42258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42259 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42260
a848cd7e
SC
42261#ifdef __STDC__
42262# include <limits.h>
42263#else
42264# include <assert.h>
42265#endif
ac1cb8d3
VS
42266
42267#undef $ac_func
42268
a848cd7e
SC
42269/* Override any gcc2 internal prototype to avoid an error. */
42270#ifdef __cplusplus
42271extern "C"
42272{
42273#endif
42274/* We use char because int might match the return type of a gcc2
42275 builtin and then its argument prototype would still apply. */
42276char $ac_func ();
42277/* The GNU C library defines this for functions which it implements
42278 to always fail with ENOSYS. Some functions are actually named
42279 something starting with __ and the normal name is an alias. */
42280#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42281choke me
42282#else
42283char (*f) () = $ac_func;
42284#endif
42285#ifdef __cplusplus
42286}
42287#endif
42288
42289int
42290main ()
42291{
42292return f != $ac_func;
42293 ;
42294 return 0;
42295}
42296_ACEOF
42297rm -f conftest.$ac_objext conftest$ac_exeext
42298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42299 (eval $ac_link) 2>conftest.er1
a848cd7e 42300 ac_status=$?
ac1cb8d3
VS
42301 grep -v '^ *+' conftest.er1 >conftest.err
42302 rm -f conftest.er1
42303 cat conftest.err >&5
a848cd7e
SC
42304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42305 (exit $ac_status); } &&
bb9e79c0 42306 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42308 (eval $ac_try) 2>&5
42309 ac_status=$?
42310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42311 (exit $ac_status); }; } &&
42312 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42314 (eval $ac_try) 2>&5
42315 ac_status=$?
42316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42317 (exit $ac_status); }; }; then
42318 eval "$as_ac_var=yes"
42319else
42320 echo "$as_me: failed program was:" >&5
42321sed 's/^/| /' conftest.$ac_ext >&5
42322
42323eval "$as_ac_var=no"
42324fi
ac1cb8d3
VS
42325rm -f conftest.err conftest.$ac_objext \
42326 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42327fi
42328echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42329echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42330if test `eval echo '${'$as_ac_var'}'` = yes; then
42331 cat >>confdefs.h <<_ACEOF
42332#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42333_ACEOF
42334
42335 cat >>confdefs.h <<\_ACEOF
42336#define HAVE_SHL_LOAD 1
42337_ACEOF
42338
42339 HAVE_SHL_FUNCS=1
42340
42341else
42342
42343 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
42344echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
42345if test "${ac_cv_lib_shl_load_dld+set}" = set; then
42346 echo $ECHO_N "(cached) $ECHO_C" >&6
42347else
42348 ac_check_lib_save_LIBS=$LIBS
42349LIBS="-lshl_load $LIBS"
42350cat >conftest.$ac_ext <<_ACEOF
42351/* confdefs.h. */
42352_ACEOF
42353cat confdefs.h >>conftest.$ac_ext
42354cat >>conftest.$ac_ext <<_ACEOF
42355/* end confdefs.h. */
42356
42357/* Override any gcc2 internal prototype to avoid an error. */
42358#ifdef __cplusplus
42359extern "C"
42360#endif
42361/* We use char because int might match the return type of a gcc2
42362 builtin and then its argument prototype would still apply. */
42363char dld ();
42364int
42365main ()
42366{
42367dld ();
42368 ;
42369 return 0;
42370}
42371_ACEOF
42372rm -f conftest.$ac_objext conftest$ac_exeext
42373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42374 (eval $ac_link) 2>conftest.er1
a848cd7e 42375 ac_status=$?
ac1cb8d3
VS
42376 grep -v '^ *+' conftest.er1 >conftest.err
42377 rm -f conftest.er1
42378 cat conftest.err >&5
a848cd7e
SC
42379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42380 (exit $ac_status); } &&
bb9e79c0 42381 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
42387 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42389 (eval $ac_try) 2>&5
42390 ac_status=$?
42391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42392 (exit $ac_status); }; }; then
42393 ac_cv_lib_shl_load_dld=yes
42394else
42395 echo "$as_me: failed program was:" >&5
42396sed 's/^/| /' conftest.$ac_ext >&5
42397
42398ac_cv_lib_shl_load_dld=no
42399fi
ac1cb8d3
VS
42400rm -f conftest.err conftest.$ac_objext \
42401 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42402LIBS=$ac_check_lib_save_LIBS
42403fi
42404echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
42405echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
42406if test $ac_cv_lib_shl_load_dld = yes; then
42407
42408 HAVE_SHL_FUNCS=1
42409 DL_LINK=" -ldld$DL_LINK"
42410
42411fi
42412
42413
42414fi
42415done
42416
42417
42418fi
42419
42420
42421fi
42422done
42423
42424
42425 if test "$HAVE_DL_FUNCS" = 1; then
42426
42427for ac_func in dlerror
42428do
42429as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42430echo "$as_me:$LINENO: checking for $ac_func" >&5
42431echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42432if eval "test \"\${$as_ac_var+set}\" = set"; then
42433 echo $ECHO_N "(cached) $ECHO_C" >&6
42434else
42435 cat >conftest.$ac_ext <<_ACEOF
42436/* confdefs.h. */
42437_ACEOF
42438cat confdefs.h >>conftest.$ac_ext
42439cat >>conftest.$ac_ext <<_ACEOF
42440/* end confdefs.h. */
ac1cb8d3
VS
42441/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42443#define $ac_func innocuous_$ac_func
42444
a848cd7e
SC
42445/* System header to define __stub macros and hopefully few prototypes,
42446 which can conflict with char $ac_func (); below.
42447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42448 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42449
a848cd7e
SC
42450#ifdef __STDC__
42451# include <limits.h>
42452#else
42453# include <assert.h>
42454#endif
ac1cb8d3
VS
42455
42456#undef $ac_func
42457
a848cd7e
SC
42458/* Override any gcc2 internal prototype to avoid an error. */
42459#ifdef __cplusplus
42460extern "C"
42461{
42462#endif
42463/* We use char because int might match the return type of a gcc2
42464 builtin and then its argument prototype would still apply. */
42465char $ac_func ();
42466/* The GNU C library defines this for functions which it implements
42467 to always fail with ENOSYS. Some functions are actually named
42468 something starting with __ and the normal name is an alias. */
42469#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42470choke me
42471#else
42472char (*f) () = $ac_func;
42473#endif
42474#ifdef __cplusplus
42475}
42476#endif
42477
42478int
42479main ()
42480{
42481return f != $ac_func;
42482 ;
42483 return 0;
42484}
42485_ACEOF
42486rm -f conftest.$ac_objext conftest$ac_exeext
42487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42488 (eval $ac_link) 2>conftest.er1
a848cd7e 42489 ac_status=$?
ac1cb8d3
VS
42490 grep -v '^ *+' conftest.er1 >conftest.err
42491 rm -f conftest.er1
42492 cat conftest.err >&5
a848cd7e
SC
42493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42494 (exit $ac_status); } &&
bb9e79c0 42495 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42497 (eval $ac_try) 2>&5
42498 ac_status=$?
42499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42500 (exit $ac_status); }; } &&
42501 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42503 (eval $ac_try) 2>&5
42504 ac_status=$?
42505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42506 (exit $ac_status); }; }; then
42507 eval "$as_ac_var=yes"
42508else
42509 echo "$as_me: failed program was:" >&5
42510sed 's/^/| /' conftest.$ac_ext >&5
42511
42512eval "$as_ac_var=no"
42513fi
ac1cb8d3
VS
42514rm -f conftest.err conftest.$ac_objext \
42515 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42516fi
42517echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42518echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42519if test `eval echo '${'$as_ac_var'}'` = yes; then
42520 cat >>confdefs.h <<_ACEOF
42521#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42522_ACEOF
42523 cat >>confdefs.h <<\_ACEOF
42524#define HAVE_DLERROR 1
42525_ACEOF
42526
42527else
42528
42529 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
42530echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
42531if test "${ac_cv_lib_dl_dlerror+set}" = set; then
42532 echo $ECHO_N "(cached) $ECHO_C" >&6
42533else
42534 ac_check_lib_save_LIBS=$LIBS
42535LIBS="-ldl $LIBS"
42536cat >conftest.$ac_ext <<_ACEOF
42537/* confdefs.h. */
42538_ACEOF
42539cat confdefs.h >>conftest.$ac_ext
42540cat >>conftest.$ac_ext <<_ACEOF
42541/* end confdefs.h. */
42542
42543/* Override any gcc2 internal prototype to avoid an error. */
42544#ifdef __cplusplus
42545extern "C"
42546#endif
42547/* We use char because int might match the return type of a gcc2
42548 builtin and then its argument prototype would still apply. */
42549char dlerror ();
42550int
42551main ()
42552{
42553dlerror ();
42554 ;
42555 return 0;
42556}
42557_ACEOF
42558rm -f conftest.$ac_objext conftest$ac_exeext
42559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42560 (eval $ac_link) 2>conftest.er1
a848cd7e 42561 ac_status=$?
ac1cb8d3
VS
42562 grep -v '^ *+' conftest.er1 >conftest.err
42563 rm -f conftest.er1
42564 cat conftest.err >&5
a848cd7e
SC
42565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42566 (exit $ac_status); } &&
bb9e79c0 42567 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42569 (eval $ac_try) 2>&5
42570 ac_status=$?
42571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42572 (exit $ac_status); }; } &&
42573 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42575 (eval $ac_try) 2>&5
42576 ac_status=$?
42577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42578 (exit $ac_status); }; }; then
42579 ac_cv_lib_dl_dlerror=yes
42580else
42581 echo "$as_me: failed program was:" >&5
42582sed 's/^/| /' conftest.$ac_ext >&5
42583
42584ac_cv_lib_dl_dlerror=no
42585fi
ac1cb8d3
VS
42586rm -f conftest.err conftest.$ac_objext \
42587 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42588LIBS=$ac_check_lib_save_LIBS
42589fi
42590echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
42591echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
42592if test $ac_cv_lib_dl_dlerror = yes; then
42593 cat >>confdefs.h <<\_ACEOF
42594#define HAVE_DLERROR 1
42595_ACEOF
42596
42597fi
42598
42599
42600
42601fi
42602done
42603
42604 fi
42605 fi
42606
42607 if test "$HAVE_DL_FUNCS" = 0; then
42608 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 42609 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
42610 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
42611echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
42612 wxUSE_DYNAMIC_LOADER=no
42613 wxUSE_DYNLIB_CLASS=no
42614 else
42615 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
42616echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
42617 fi
42618 fi
42619 fi
42620 fi
42621fi
42622
42623if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
42624 cat >>confdefs.h <<\_ACEOF
42625#define wxUSE_DYNAMIC_LOADER 1
42626_ACEOF
42627
42628fi
42629if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42630 cat >>confdefs.h <<\_ACEOF
42631#define wxUSE_DYNLIB_CLASS 1
42632_ACEOF
42633
42634fi
42635
42636
42637
42638if test "$wxUSE_PLUGINS" = "yes" ; then
42639 if test "$wxUSE_SHARED" = "no" ; then
42640 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
42641echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
42642 wxUSE_PLUGINS=no
42643 fi
42644 if test "$wxUSE_MONOLITHIC" = "yes" ; then
42645 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
42646echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
42647 wxUSE_PLUGINS=no
42648 fi
42649 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
42650 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
42651echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
42652 wxUSE_PLUGINS=no
42653 fi
42654 if test "$wxUSE_PLUGINS" = "yes" ; then
42655 cat >>confdefs.h <<\_ACEOF
42656#define wxUSE_PLUGINS 1
42657_ACEOF
42658
42659 fi
42660fi
42661
42662
42663if test "$wxUSE_STL" = "yes"; then
42664 cat >>confdefs.h <<\_ACEOF
42665#define wxUSE_STL 1
42666_ACEOF
42667
42668fi
42669
42670if test "$wxUSE_APPLE_IEEE" = "yes"; then
42671 cat >>confdefs.h <<\_ACEOF
42672#define wxUSE_APPLE_IEEE 1
42673_ACEOF
42674
42675fi
42676
42677if test "$wxUSE_TIMER" = "yes"; then
42678 cat >>confdefs.h <<\_ACEOF
42679#define wxUSE_TIMER 1
42680_ACEOF
42681
42682fi
42683
9c112555 42684if test "$USE_UNIX" = "1" ; then
31714590
VZ
42685 echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
42686echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
d12aef51 42687if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 42688 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 42689else
d12aef51
VZ
42690
42691 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42692/* confdefs.h. */
42693_ACEOF
42694cat confdefs.h >>conftest.$ac_ext
42695cat >>conftest.$ac_ext <<_ACEOF
42696/* end confdefs.h. */
d12aef51 42697
31714590 42698 #include <sys/ioctl.h>
d12aef51
VZ
42699 #include <sys/soundcard.h>
42700
42701int
42702main ()
42703{
42704
31714590 42705 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
42706
42707 ;
42708 return 0;
42709}
a848cd7e 42710_ACEOF
d12aef51
VZ
42711rm -f conftest.$ac_objext conftest$ac_exeext
42712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42713 (eval $ac_link) 2>conftest.er1
a848cd7e 42714 ac_status=$?
ac1cb8d3
VS
42715 grep -v '^ *+' conftest.er1 >conftest.err
42716 rm -f conftest.er1
42717 cat conftest.err >&5
a848cd7e
SC
42718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42719 (exit $ac_status); } &&
bb9e79c0 42720 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42722 (eval $ac_try) 2>&5
42723 ac_status=$?
42724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42725 (exit $ac_status); }; } &&
d12aef51 42726 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
d12aef51 42732 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
42733else
42734 echo "$as_me: failed program was:" >&5
42735sed 's/^/| /' conftest.$ac_ext >&5
42736
a848cd7e 42737
d12aef51
VZ
42738 saveLibs="$LIBS"
42739 LIBS="$saveLibs -lossaudio"
42740 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42741/* confdefs.h. */
42742_ACEOF
42743cat confdefs.h >>conftest.$ac_ext
42744cat >>conftest.$ac_ext <<_ACEOF
42745/* end confdefs.h. */
d12aef51 42746
31714590 42747 #include <sys/ioctl.h>
d12aef51
VZ
42748 #include <sys/soundcard.h>
42749
42750int
42751main ()
42752{
42753
31714590 42754 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
42755
42756 ;
42757 return 0;
42758}
a848cd7e 42759_ACEOF
d12aef51
VZ
42760rm -f conftest.$ac_objext conftest$ac_exeext
42761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42762 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
42763 ac_status=$?
42764 grep -v '^ *+' conftest.er1 >conftest.err
42765 rm -f conftest.er1
42766 cat conftest.err >&5
42767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 42768 (exit $ac_status); } &&
bb9e79c0 42769 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
42770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42771 (eval $ac_try) 2>&5
42772 ac_status=$?
42773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42774 (exit $ac_status); }; } &&
42775 { ac_try='test -s conftest$ac_exeext'
42776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42777 (eval $ac_try) 2>&5
42778 ac_status=$?
42779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42780 (exit $ac_status); }; }; then
42781 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
42782else
42783 echo "$as_me: failed program was:" >&5
42784sed 's/^/| /' conftest.$ac_ext >&5
42785
a848cd7e 42786
d12aef51
VZ
42787 LIBS="$saveLibs"
42788 ac_cv_header_sys_soundcard=no
42789
42790
a848cd7e 42791fi
d12aef51
VZ
42792rm -f conftest.err conftest.$ac_objext \
42793 conftest$ac_exeext conftest.$ac_ext
42794
a848cd7e
SC
42795
42796fi
d12aef51
VZ
42797rm -f conftest.err conftest.$ac_objext \
42798 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42799
42800fi
d12aef51
VZ
42801echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
42802echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 42803
d12aef51
VZ
42804 if test "$ac_cv_header_sys_soundcard" = "yes"; then
42805 cat >>confdefs.h <<\_ACEOF
42806#define HAVE_SYS_SOUNDCARD_H 1
42807_ACEOF
a848cd7e 42808
d12aef51
VZ
42809 else
42810 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
42811 fi
9c112555
MW
42812fi
42813WITH_PLUGIN_SDL=0
42814if test "$wxUSE_SOUND" = "yes"; then
42815 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
42816 if test "$wxUSE_LIBSDL" != "no"; then
42817
42818# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
42819if test "${with_sdl_prefix+set}" = set; then
42820 withval="$with_sdl_prefix"
42821 sdl_prefix="$withval"
42822else
42823 sdl_prefix=""
42824fi;
42825
42826# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
42827if test "${with_sdl_exec_prefix+set}" = set; then
42828 withval="$with_sdl_exec_prefix"
42829 sdl_exec_prefix="$withval"
42830else
42831 sdl_exec_prefix=""
42832fi;
42833# Check whether --enable-sdltest or --disable-sdltest was given.
42834if test "${enable_sdltest+set}" = set; then
42835 enableval="$enable_sdltest"
42836
42837else
42838 enable_sdltest=yes
42839fi;
42840
42841 if test x$sdl_exec_prefix != x ; then
3ecd9f92
MW
42842 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
42843 if test x${SDL_CONFIG+set} != xset ; then
42844 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
42845 fi
a848cd7e
SC
42846 fi
42847 if test x$sdl_prefix != x ; then
3ecd9f92
MW
42848 sdl_args="$sdl_args --prefix=$sdl_prefix"
42849 if test x${SDL_CONFIG+set} != xset ; then
42850 SDL_CONFIG=$sdl_prefix/bin/sdl-config
42851 fi
a848cd7e
SC
42852 fi
42853
3ecd9f92
MW
42854 if test "x$prefix" != xNONE; then
42855 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
42856 fi
a848cd7e
SC
42857 # Extract the first word of "sdl-config", so it can be a program name with args.
42858set dummy sdl-config; ac_word=$2
42859echo "$as_me:$LINENO: checking for $ac_word" >&5
42860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42861if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
42862 echo $ECHO_N "(cached) $ECHO_C" >&6
42863else
42864 case $SDL_CONFIG in
42865 [\\/]* | ?:[\\/]*)
42866 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
42867 ;;
42868 *)
42869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42870for as_dir in $PATH
42871do
42872 IFS=$as_save_IFS
42873 test -z "$as_dir" && as_dir=.
42874 for ac_exec_ext in '' $ac_executable_extensions; do
42875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42876 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42878 break 2
42879 fi
42880done
42881done
42882
42883 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
42884 ;;
42885esac
42886fi
42887SDL_CONFIG=$ac_cv_path_SDL_CONFIG
42888
42889if test -n "$SDL_CONFIG"; then
42890 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
42891echo "${ECHO_T}$SDL_CONFIG" >&6
42892else
42893 echo "$as_me:$LINENO: result: no" >&5
42894echo "${ECHO_T}no" >&6
42895fi
42896
42897 min_sdl_version=1.2.0
42898 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
42899echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
42900 no_sdl=""
42901 if test "$SDL_CONFIG" = "no" ; then
42902 no_sdl=yes
42903 else
42904 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
42905 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
42906
42907 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
42908 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42909 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
42910 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42911 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
42912 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42913 if test "x$enable_sdltest" = "xyes" ; then
42914 ac_save_CFLAGS="$CFLAGS"
94acd38e 42915 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
42916 ac_save_LIBS="$LIBS"
42917 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 42918 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
42919 LIBS="$LIBS $SDL_LIBS"
42920 rm -f conf.sdltest
42921 if test "$cross_compiling" = yes; then
42922 echo $ac_n "cross compiling; assumed OK... $ac_c"
42923else
42924 cat >conftest.$ac_ext <<_ACEOF
42925/* confdefs.h. */
42926_ACEOF
42927cat confdefs.h >>conftest.$ac_ext
42928cat >>conftest.$ac_ext <<_ACEOF
42929/* end confdefs.h. */
42930
42931#include <stdio.h>
42932#include <stdlib.h>
42933#include <string.h>
42934#include "SDL.h"
42935
42936char*
42937my_strdup (char *str)
42938{
42939 char *new_str;
42940
42941 if (str)
42942 {
42943 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
42944 strcpy (new_str, str);
42945 }
42946 else
42947 new_str = NULL;
42948
42949 return new_str;
42950}
42951
42952int main (int argc, char *argv[])
42953{
42954 int major, minor, micro;
42955 char *tmp_version;
42956
42957 /* This hangs on some systems (?)
42958 system ("touch conf.sdltest");
42959 */
42960 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
42961
42962 /* HP/UX 9 (%@#!) writes to sscanf strings */
42963 tmp_version = my_strdup("$min_sdl_version");
42964 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
42965 printf("%s, bad version string\n", "$min_sdl_version");
42966 exit(1);
42967 }
42968
42969 if (($sdl_major_version > major) ||
42970 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
42971 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
42972 {
42973 return 0;
42974 }
42975 else
42976 {
42977 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
42978 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
42979 printf("*** best to upgrade to the required version.\n");
42980 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
42981 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
42982 printf("*** config.cache before re-running configure\n");
42983 return 1;
42984 }
42985}
42986
42987
42988_ACEOF
42989rm -f conftest$ac_exeext
42990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42991 (eval $ac_link) 2>&5
42992 ac_status=$?
42993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42996 (eval $ac_try) 2>&5
42997 ac_status=$?
42998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42999 (exit $ac_status); }; }; then
43000 :
43001else
43002 echo "$as_me: program exited with status $ac_status" >&5
43003echo "$as_me: failed program was:" >&5
43004sed 's/^/| /' conftest.$ac_ext >&5
43005
43006( exit $ac_status )
43007no_sdl=yes
43008fi
ac1cb8d3 43009rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43010fi
43011 CFLAGS="$ac_save_CFLAGS"
94acd38e 43012 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
43013 LIBS="$ac_save_LIBS"
43014 fi
43015 fi
43016 if test "x$no_sdl" = x ; then
43017 echo "$as_me:$LINENO: result: yes" >&5
43018echo "${ECHO_T}yes" >&6
43019
43020 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 43021 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
43022 cat >>confdefs.h <<\_ACEOF
43023#define wxUSE_LIBSDL 1
43024_ACEOF
43025
43026
43027 else
43028 echo "$as_me:$LINENO: result: no" >&5
43029echo "${ECHO_T}no" >&6
43030 if test "$SDL_CONFIG" = "no" ; then
43031 echo "*** The sdl-config script installed by SDL could not be found"
43032 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
43033 echo "*** your path, or set the SDL_CONFIG environment variable to the"
43034 echo "*** full path to sdl-config."
43035 else
43036 if test -f conf.sdltest ; then
43037 :
43038 else
43039 echo "*** Could not run SDL test program, checking why..."
43040 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 43041 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
43042 LIBS="$LIBS $SDL_LIBS"
43043 cat >conftest.$ac_ext <<_ACEOF
43044/* confdefs.h. */
43045_ACEOF
43046cat confdefs.h >>conftest.$ac_ext
43047cat >>conftest.$ac_ext <<_ACEOF
43048/* end confdefs.h. */
43049
43050#include <stdio.h>
43051#include "SDL.h"
43052
43053int main(int argc, char *argv[])
43054{ return 0; }
43055#undef main
43056#define main K_and_R_C_main
43057
43058int
43059main ()
43060{
43061 return 0;
43062 ;
43063 return 0;
43064}
43065_ACEOF
43066rm -f conftest.$ac_objext conftest$ac_exeext
43067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43068 (eval $ac_link) 2>conftest.er1
a848cd7e 43069 ac_status=$?
ac1cb8d3
VS
43070 grep -v '^ *+' conftest.er1 >conftest.err
43071 rm -f conftest.er1
43072 cat conftest.err >&5
a848cd7e
SC
43073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43074 (exit $ac_status); } &&
bb9e79c0 43075 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43077 (eval $ac_try) 2>&5
43078 ac_status=$?
43079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43080 (exit $ac_status); }; } &&
43081 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43083 (eval $ac_try) 2>&5
43084 ac_status=$?
43085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43086 (exit $ac_status); }; }; then
43087 echo "*** The test program compiled, but did not run. This usually means"
43088 echo "*** that the run-time linker is not finding SDL or finding the wrong"
43089 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
43090 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
43091 echo "*** to the installed location Also, make sure you have run ldconfig if that"
43092 echo "*** is required on your system"
43093 echo "***"
43094 echo "*** If you have an old version installed, it is best to remove it, although"
43095 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
43096else
43097 echo "$as_me: failed program was:" >&5
43098sed 's/^/| /' conftest.$ac_ext >&5
43099
43100 echo "*** The test program failed to compile or link. See the file config.log for the"
43101 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
43102 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
43103 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
43104fi
ac1cb8d3
VS
43105rm -f conftest.err conftest.$ac_objext \
43106 conftest$ac_exeext conftest.$ac_ext
a848cd7e 43107 CFLAGS="$ac_save_CFLAGS"
94acd38e 43108 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
43109 LIBS="$ac_save_LIBS"
43110 fi
43111 fi
43112 SDL_CFLAGS=""
43113 SDL_LIBS=""
43114 wxUSE_LIBSDL="no"
43115 fi
43116
43117
43118 rm -f conf.sdltest
43119
43120 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
43121 WITH_PLUGIN_SDL=1
43122 fi
43123 fi
43124 fi
43125
43126 cat >>confdefs.h <<\_ACEOF
43127#define wxUSE_SOUND 1
43128_ACEOF
43129
43130 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
43131fi
43132
d1c38808 43133if test "$WXGTK20" = 1; then
d6fb5527
VZ
43134
43135
43136if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
43137 if test -n "$ac_tool_prefix"; then
43138 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
43139set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
43140echo "$as_me:$LINENO: checking for $ac_word" >&5
43141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43142if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
43143 echo $ECHO_N "(cached) $ECHO_C" >&6
43144else
43145 case $PKG_CONFIG in
43146 [\\/]* | ?:[\\/]*)
43147 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
43148 ;;
43149 *)
43150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43151for as_dir in $PATH
43152do
43153 IFS=$as_save_IFS
43154 test -z "$as_dir" && as_dir=.
43155 for ac_exec_ext in '' $ac_executable_extensions; do
43156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43157 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43159 break 2
43160 fi
43161done
43162done
43163
43164 ;;
43165esac
43166fi
43167PKG_CONFIG=$ac_cv_path_PKG_CONFIG
43168
43169if test -n "$PKG_CONFIG"; then
43170 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
43171echo "${ECHO_T}$PKG_CONFIG" >&6
43172else
43173 echo "$as_me:$LINENO: result: no" >&5
43174echo "${ECHO_T}no" >&6
43175fi
43176
43177fi
43178if test -z "$ac_cv_path_PKG_CONFIG"; then
43179 ac_pt_PKG_CONFIG=$PKG_CONFIG
43180 # Extract the first word of "pkg-config", so it can be a program name with args.
43181set dummy pkg-config; ac_word=$2
43182echo "$as_me:$LINENO: checking for $ac_word" >&5
43183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43184if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
43185 echo $ECHO_N "(cached) $ECHO_C" >&6
43186else
43187 case $ac_pt_PKG_CONFIG in
43188 [\\/]* | ?:[\\/]*)
43189 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
43190 ;;
43191 *)
43192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43193for as_dir in $PATH
43194do
43195 IFS=$as_save_IFS
43196 test -z "$as_dir" && as_dir=.
43197 for ac_exec_ext in '' $ac_executable_extensions; do
43198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43199 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43201 break 2
43202 fi
43203done
43204done
43205
43206 ;;
43207esac
43208fi
43209ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
43210
43211if test -n "$ac_pt_PKG_CONFIG"; then
43212 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
43213echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
43214else
43215 echo "$as_me:$LINENO: result: no" >&5
43216echo "${ECHO_T}no" >&6
43217fi
43218
43219 PKG_CONFIG=$ac_pt_PKG_CONFIG
43220else
43221 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
43222fi
43223
43224fi
43225if test -n "$PKG_CONFIG"; then
43226 _pkg_min_version=0.9.0
43227 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
43228echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
43229 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
43230 echo "$as_me:$LINENO: result: yes" >&5
43231echo "${ECHO_T}yes" >&6
43232 else
43233 echo "$as_me:$LINENO: result: no" >&5
43234echo "${ECHO_T}no" >&6
43235 PKG_CONFIG=""
43236 fi
43237
43238fi
43239
d1c38808
VZ
43240 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
43241 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
43242
43243
3ecd9f92
MW
43244pkg_failed=no
43245echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
43246echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6
d1c38808 43247
3ecd9f92
MW
43248if test -n "$PKG_CONFIG"; then
43249 if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
43250 pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
43251 else
43252 if test -n "$PKG_CONFIG" && \
43253 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
43254 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
43255 ac_status=$?
43256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43257 (exit $ac_status); }; then
43258 pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 43259else
3ecd9f92
MW
43260 pkg_failed=yes
43261fi
43262 fi
43263else
43264 pkg_failed=untried
d1c38808 43265fi
d1c38808 43266if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
43267 if test -n "$LIBGNOMEPRINTUI_LIBS"; then
43268 pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
43269 else
43270 if test -n "$PKG_CONFIG" && \
43271 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
43272 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
43273 ac_status=$?
43274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43275 (exit $ac_status); }; then
43276 pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 43277else
3ecd9f92
MW
43278 pkg_failed=yes
43279fi
43280 fi
43281else
43282 pkg_failed=untried
d1c38808
VZ
43283fi
43284
d1c38808 43285
d1c38808 43286
3ecd9f92 43287if test $pkg_failed = yes; then
d1c38808 43288
3ecd9f92
MW
43289if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43290 _pkg_short_errors_supported=yes
43291else
43292 _pkg_short_errors_supported=no
43293fi
43294 if test $_pkg_short_errors_supported = yes; then
43295 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
43296 else
43297 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808 43298 fi
3ecd9f92
MW
43299 # Put the nasty error message in config.log where it belongs
43300 echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
d1c38808
VZ
43301
43302
3ecd9f92
MW
43303 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
43304echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
43305 wxUSE_LIBGNOMEPRINT="no"
d1c38808
VZ
43306
43307
3ecd9f92 43308elif test $pkg_failed = untried; then
d1c38808
VZ
43309
43310 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
43311echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
43312 wxUSE_LIBGNOMEPRINT="no"
43313
43314
3ecd9f92
MW
43315else
43316 LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
43317 LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
43318 echo "$as_me:$LINENO: result: yes" >&5
43319echo "${ECHO_T}yes" >&6
d1c38808 43320
3ecd9f92
MW
43321 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
43322 cat >>confdefs.h <<\_ACEOF
43323#define wxUSE_LIBGNOMEPRINT 1
43324_ACEOF
43325
43326
43327fi
d1c38808
VZ
43328 fi
43329 fi
d1c38808 43330
2b850ae1
RR
43331 if test "$wxUSE_MIMETYPE" = "yes" ; then
43332 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
43333
43334
3ecd9f92
MW
43335pkg_failed=no
43336echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
43337echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6
2b850ae1 43338
3ecd9f92
MW
43339if test -n "$PKG_CONFIG"; then
43340 if test -n "$GNOMEVFS_CFLAGS"; then
43341 pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
43342 else
43343 if test -n "$PKG_CONFIG" && \
43344 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
43345 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43346 ac_status=$?
43347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43348 (exit $ac_status); }; then
43349 pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 43350else
3ecd9f92
MW
43351 pkg_failed=yes
43352fi
43353 fi
43354else
43355 pkg_failed=untried
2b850ae1 43356fi
2b850ae1 43357if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
43358 if test -n "$GNOMEVFS_LIBS"; then
43359 pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
43360 else
43361 if test -n "$PKG_CONFIG" && \
43362 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
43363 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43364 ac_status=$?
43365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43366 (exit $ac_status); }; then
43367 pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 43368else
3ecd9f92
MW
43369 pkg_failed=yes
43370fi
43371 fi
43372else
43373 pkg_failed=untried
2b850ae1
RR
43374fi
43375
2b850ae1 43376
2b850ae1 43377
3ecd9f92 43378if test $pkg_failed = yes; then
2b850ae1 43379
3ecd9f92
MW
43380if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43381 _pkg_short_errors_supported=yes
43382else
43383 _pkg_short_errors_supported=no
43384fi
43385 if test $_pkg_short_errors_supported = yes; then
43386 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
43387 else
43388 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
2b850ae1 43389 fi
3ecd9f92
MW
43390 # Put the nasty error message in config.log where it belongs
43391 echo "$GNOMEVFS_PKG_ERRORS" >&5
2b850ae1
RR
43392
43393
3ecd9f92
MW
43394 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43395echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43396 wxUSE_LIBGNOMEVFS="no"
2b850ae1
RR
43397
43398
3ecd9f92 43399elif test $pkg_failed = untried; then
2b850ae1
RR
43400
43401 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43402echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43403 wxUSE_LIBGNOMEVFS="no"
43404
43405
3ecd9f92
MW
43406else
43407 GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
43408 GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
43409 echo "$as_me:$LINENO: result: yes" >&5
43410echo "${ECHO_T}yes" >&6
2b850ae1 43411
3ecd9f92
MW
43412 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
43413 cat >>confdefs.h <<\_ACEOF
43414#define wxUSE_LIBGNOMEVFS 1
43415_ACEOF
43416
43417
43418fi
2b850ae1
RR
43419 fi
43420 fi
2b850ae1 43421
3565d135
RR
43422 if test "$wxUSE_LIBHILDON" = "yes" ; then
43423
3ecd9f92
MW
43424pkg_failed=no
43425echo "$as_me:$LINENO: checking for HILDON" >&5
43426echo $ECHO_N "checking for HILDON... $ECHO_C" >&6
3565d135 43427
3ecd9f92
MW
43428if test -n "$PKG_CONFIG"; then
43429 if test -n "$HILDON_CFLAGS"; then
43430 pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
43431 else
43432 if test -n "$PKG_CONFIG" && \
43433 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43434 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43435 ac_status=$?
43436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43437 (exit $ac_status); }; then
43438 pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 43439else
3ecd9f92
MW
43440 pkg_failed=yes
43441fi
43442 fi
43443else
43444 pkg_failed=untried
3565d135 43445fi
3565d135 43446if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
43447 if test -n "$HILDON_LIBS"; then
43448 pkg_cv_HILDON_LIBS="$HILDON_LIBS"
43449 else
43450 if test -n "$PKG_CONFIG" && \
43451 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43452 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43453 ac_status=$?
43454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43455 (exit $ac_status); }; then
43456 pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 43457else
3ecd9f92
MW
43458 pkg_failed=yes
43459fi
43460 fi
43461else
43462 pkg_failed=untried
3565d135
RR
43463fi
43464
3565d135 43465
3565d135 43466
3ecd9f92 43467if test $pkg_failed = yes; then
3565d135 43468
3ecd9f92
MW
43469if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43470 _pkg_short_errors_supported=yes
43471else
43472 _pkg_short_errors_supported=no
43473fi
43474 if test $_pkg_short_errors_supported = yes; then
43475 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43476 else
43477 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
3565d135 43478 fi
3ecd9f92
MW
43479 # Put the nasty error message in config.log where it belongs
43480 echo "$HILDON_PKG_ERRORS" >&5
3565d135
RR
43481
43482
3ecd9f92
MW
43483 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43484echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43485 wxUSE_LIBHILDON="no"
3565d135 43486
3565d135 43487
3ecd9f92
MW
43488elif test $pkg_failed = untried; then
43489
43490 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43491echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43492 wxUSE_LIBHILDON="no"
43493
43494
43495else
43496 HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
43497 HILDON_LIBS=$pkg_cv_HILDON_LIBS
43498 echo "$as_me:$LINENO: result: yes" >&5
43499echo "${ECHO_T}yes" >&6
3565d135
RR
43500
43501 EXTRALIBS_HILDON="$HILDON_LIBS"
43502 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
43503 cat >>confdefs.h <<\_ACEOF
43504#define wxUSE_LIBHILDON 1
43505_ACEOF
43506
43507
3ecd9f92 43508fi
3565d135
RR
43509 fi
43510fi
d1c38808 43511
a848cd7e
SC
43512if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
43513 cat >>confdefs.h <<\_ACEOF
43514#define wxUSE_CMDLINE_PARSER 1
43515_ACEOF
43516
43517fi
43518
43519if test "$wxUSE_STOPWATCH" = "yes"; then
43520 cat >>confdefs.h <<\_ACEOF
43521#define wxUSE_STOPWATCH 1
43522_ACEOF
43523
43524fi
43525
43526if test "$wxUSE_DATETIME" = "yes"; then
43527 cat >>confdefs.h <<\_ACEOF
43528#define wxUSE_DATETIME 1
43529_ACEOF
43530
43531fi
43532
43533if test "$wxUSE_FILE" = "yes"; then
43534 cat >>confdefs.h <<\_ACEOF
43535#define wxUSE_FILE 1
43536_ACEOF
43537
43538fi
43539
43540if test "$wxUSE_FFILE" = "yes"; then
43541 cat >>confdefs.h <<\_ACEOF
43542#define wxUSE_FFILE 1
43543_ACEOF
43544
43545fi
43546
9e8e867f 43547if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
26e422a9
MW
43548 if test "$wxUSE_STREAMS" != yes; then
43549 { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
43550echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
916af76f 43551 wxUSE_ARCHIVE_STREAMS=no
26e422a9
MW
43552 else
43553 cat >>confdefs.h <<\_ACEOF
9e8e867f 43554#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
43555_ACEOF
43556
26e422a9 43557 fi
81f90336
MW
43558fi
43559
43560if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 43561 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
43562 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
43563echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
43564 elif test "$wxUSE_ZLIB" = "no"; then
43565 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
43566echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
43567 else
43568 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43569#define wxUSE_ZIPSTREAM 1
43570_ACEOF
43571
81f90336 43572 fi
a848cd7e
SC
43573fi
43574
26e422a9
MW
43575if test "$wxUSE_TARSTREAM" = "yes"; then
43576 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43577 { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
43578echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
43579 else
43580 cat >>confdefs.h <<\_ACEOF
43581#define wxUSE_TARSTREAM 1
43582_ACEOF
43583
43584 fi
43585fi
43586
916af76f 43587if test "$wxUSE_FILESYSTEM" = "yes"; then
f8f6c91a 43588 if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
916af76f
MW
43589 { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
43590echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
43591 wxUSE_FILESYSTEM=no
f8f6c91a
MW
43592 else
43593 cat >>confdefs.h <<\_ACEOF
916af76f 43594#define wxUSE_FILESYSTEM 1
f8f6c91a
MW
43595_ACEOF
43596
43597 fi
43598fi
43599
26e422a9 43600if test "$wxUSE_FS_ARCHIVE" = "yes"; then
916af76f
MW
43601 if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
43602 { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
43603echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
26e422a9
MW
43604 else
43605 cat >>confdefs.h <<\_ACEOF
43606#define wxUSE_FS_ARCHIVE 1
43607_ACEOF
43608
43609 fi
43610fi
43611
916af76f
MW
43612if test "$wxUSE_FS_ZIP" = "yes"; then
43613 if test "$wxUSE_FS_ARCHIVE" != yes; then
43614 { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
43615echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
43616 else
43617 cat >>confdefs.h <<\_ACEOF
43618#define wxUSE_FS_ZIP 1
43619_ACEOF
43620
43621 fi
43622fi
43623
a848cd7e 43624if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
43625 if test "$USE_UNIX" != 1; then
43626 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
43627echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
43628 wxUSE_ON_FATAL_EXCEPTION=no
43629 else
43630 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43631#define wxUSE_ON_FATAL_EXCEPTION 1
43632_ACEOF
43633
18228ab4 43634 fi
a848cd7e
SC
43635fi
43636
eaff0f0d
VZ
43637if test "$wxUSE_STACKWALKER" = "yes"; then
43638 cat >>confdefs.h <<\_ACEOF
43639#define wxUSE_STACKWALKER 1
43640_ACEOF
43641
43642fi
43643
36b6448c 43644if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
43645 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
43646 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
43647echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
43648 wxUSE_DEBUGREPORT=no
43649 else
43650 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
43651#define wxUSE_DEBUGREPORT 1
43652_ACEOF
43653
21dfc162
MW
43654 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43655 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
43656 fi
dfe0c803 43657 fi
36b6448c
VZ
43658fi
43659
a848cd7e
SC
43660if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
43661 cat >>confdefs.h <<\_ACEOF
43662#define wxUSE_SNGLINST_CHECKER 1
43663_ACEOF
43664
43665fi
43666
43667if test "$wxUSE_BUSYINFO" = "yes"; then
43668 cat >>confdefs.h <<\_ACEOF
43669#define wxUSE_BUSYINFO 1
43670_ACEOF
43671
43672fi
43673
43674if test "$wxUSE_STD_IOSTREAM" = "yes"; then
43675 cat >>confdefs.h <<\_ACEOF
43676#define wxUSE_STD_IOSTREAM 1
43677_ACEOF
43678
43679fi
43680
59746b65
MW
43681if test "$wxUSE_STD_STRING" = "yes"; then
43682 cat >>confdefs.h <<\_ACEOF
43683#define wxUSE_STD_STRING 1
43684_ACEOF
43685
43686fi
43687
07158944
VZ
43688if test "$wxUSE_STDPATHS" = "yes"; then
43689 cat >>confdefs.h <<\_ACEOF
43690#define wxUSE_STDPATHS 1
43691_ACEOF
43692
43693fi
43694
a848cd7e
SC
43695if test "$wxUSE_TEXTBUFFER" = "yes"; then
43696 cat >>confdefs.h <<\_ACEOF
43697#define wxUSE_TEXTBUFFER 1
43698_ACEOF
43699
43700fi
43701
43702if test "$wxUSE_TEXTFILE" = "yes"; then
43703 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
43704 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
43705echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
43706 else
43707 cat >>confdefs.h <<\_ACEOF
43708#define wxUSE_TEXTFILE 1
43709_ACEOF
43710
43711 fi
43712fi
43713
43714if test "$wxUSE_CONFIG" = "yes" ; then
43715 if test "$wxUSE_TEXTFILE" != "yes"; then
43716 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
43717echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
43718 else
43719 cat >>confdefs.h <<\_ACEOF
43720#define wxUSE_CONFIG 1
89be85c2
VS
43721_ACEOF
43722
43723 cat >>confdefs.h <<\_ACEOF
43724#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
43725_ACEOF
43726
43727 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
43728 fi
43729fi
43730
43731if test "$wxUSE_INTL" = "yes" ; then
43732 if test "$wxUSE_FILE" != "yes"; then
43733 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
43734echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
43735 else
43736 cat >>confdefs.h <<\_ACEOF
43737#define wxUSE_INTL 1
43738_ACEOF
43739
43740 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
43741 GUIDIST="$GUIDIST INTL_DIST"
43742 fi
43743fi
43744
43745if test "$wxUSE_LOG" = "yes"; then
43746 cat >>confdefs.h <<\_ACEOF
43747#define wxUSE_LOG 1
43748_ACEOF
43749
43750
43751 if test "$wxUSE_LOGGUI" = "yes"; then
43752 cat >>confdefs.h <<\_ACEOF
43753#define wxUSE_LOGGUI 1
43754_ACEOF
43755
43756 fi
43757
43758 if test "$wxUSE_LOGWINDOW" = "yes"; then
43759 cat >>confdefs.h <<\_ACEOF
43760#define wxUSE_LOGWINDOW 1
43761_ACEOF
43762
43763 fi
43764
43765 if test "$wxUSE_LOGDIALOG" = "yes"; then
43766 cat >>confdefs.h <<\_ACEOF
43767#define wxUSE_LOG_DIALOG 1
43768_ACEOF
43769
43770 fi
0b78747f
MW
43771
43772 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
43773fi
43774
43775if test "$wxUSE_LONGLONG" = "yes"; then
43776 cat >>confdefs.h <<\_ACEOF
43777#define wxUSE_LONGLONG 1
43778_ACEOF
43779
43780fi
43781
43782if test "$wxUSE_GEOMETRY" = "yes"; then
43783 cat >>confdefs.h <<\_ACEOF
43784#define wxUSE_GEOMETRY 1
43785_ACEOF
43786
43787fi
43788
a848cd7e
SC
43789if test "$wxUSE_STREAMS" = "yes" ; then
43790 cat >>confdefs.h <<\_ACEOF
43791#define wxUSE_STREAMS 1
43792_ACEOF
43793
43794fi
43795
8b6682b9
JS
43796if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
43797 cat >>confdefs.h <<\_ACEOF
43798#define wxUSE_PRINTF_POS_PARAMS 1
43799_ACEOF
43800
43801fi
43802
43803
a848cd7e
SC
43804
43805if test "$wxUSE_DATETIME" = "yes"; then
43806
43807for ac_func in strptime
43808do
43809as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43810echo "$as_me:$LINENO: checking for $ac_func" >&5
43811echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43812if eval "test \"\${$as_ac_var+set}\" = set"; then
43813 echo $ECHO_N "(cached) $ECHO_C" >&6
43814else
43815 cat >conftest.$ac_ext <<_ACEOF
43816/* confdefs.h. */
43817_ACEOF
43818cat confdefs.h >>conftest.$ac_ext
43819cat >>conftest.$ac_ext <<_ACEOF
43820/* end confdefs.h. */
ac1cb8d3
VS
43821/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43823#define $ac_func innocuous_$ac_func
43824
a848cd7e
SC
43825/* System header to define __stub macros and hopefully few prototypes,
43826 which can conflict with char $ac_func (); below.
43827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43828 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43829
a848cd7e
SC
43830#ifdef __STDC__
43831# include <limits.h>
43832#else
43833# include <assert.h>
43834#endif
ac1cb8d3
VS
43835
43836#undef $ac_func
43837
a848cd7e
SC
43838/* Override any gcc2 internal prototype to avoid an error. */
43839#ifdef __cplusplus
43840extern "C"
43841{
43842#endif
43843/* We use char because int might match the return type of a gcc2
43844 builtin and then its argument prototype would still apply. */
43845char $ac_func ();
43846/* The GNU C library defines this for functions which it implements
43847 to always fail with ENOSYS. Some functions are actually named
43848 something starting with __ and the normal name is an alias. */
43849#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43850choke me
43851#else
43852char (*f) () = $ac_func;
43853#endif
43854#ifdef __cplusplus
43855}
43856#endif
43857
43858int
43859main ()
43860{
43861return f != $ac_func;
43862 ;
43863 return 0;
43864}
43865_ACEOF
43866rm -f conftest.$ac_objext conftest$ac_exeext
43867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43868 (eval $ac_link) 2>conftest.er1
a848cd7e 43869 ac_status=$?
ac1cb8d3
VS
43870 grep -v '^ *+' conftest.er1 >conftest.err
43871 rm -f conftest.er1
43872 cat conftest.err >&5
a848cd7e
SC
43873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43874 (exit $ac_status); } &&
bb9e79c0 43875 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43877 (eval $ac_try) 2>&5
43878 ac_status=$?
43879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43880 (exit $ac_status); }; } &&
43881 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43883 (eval $ac_try) 2>&5
43884 ac_status=$?
43885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43886 (exit $ac_status); }; }; then
43887 eval "$as_ac_var=yes"
43888else
43889 echo "$as_me: failed program was:" >&5
43890sed 's/^/| /' conftest.$ac_ext >&5
43891
43892eval "$as_ac_var=no"
43893fi
ac1cb8d3
VS
43894rm -f conftest.err conftest.$ac_objext \
43895 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43896fi
43897echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43898echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43899if test `eval echo '${'$as_ac_var'}'` = yes; then
43900 cat >>confdefs.h <<_ACEOF
43901#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43902_ACEOF
43903
43904fi
43905done
43906
f536f005
VZ
43907 if test "$ac_cv_func_strptime" = "yes"; then
43908 echo "$as_me:$LINENO: checking for strptime declaration" >&5
43909echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
43910if test "${wx_cv_func_strptime_decl+set}" = set; then
43911 echo $ECHO_N "(cached) $ECHO_C" >&6
43912else
43913
f536f005
VZ
43914 cat >conftest.$ac_ext <<_ACEOF
43915/* confdefs.h. */
43916_ACEOF
43917cat confdefs.h >>conftest.$ac_ext
43918cat >>conftest.$ac_ext <<_ACEOF
43919/* end confdefs.h. */
43920
43921 #include <time.h>
43922
43923int
43924main ()
43925{
43926
43927 struct tm t;
43928 strptime("foo", "bar", &t);
43929
43930 ;
43931 return 0;
43932}
43933_ACEOF
43934rm -f conftest.$ac_objext
43935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43936 (eval $ac_compile) 2>conftest.er1
43937 ac_status=$?
43938 grep -v '^ *+' conftest.er1 >conftest.err
43939 rm -f conftest.er1
43940 cat conftest.err >&5
43941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43942 (exit $ac_status); } &&
bb9e79c0 43943 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f536f005
VZ
43944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43945 (eval $ac_try) 2>&5
43946 ac_status=$?
43947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43948 (exit $ac_status); }; } &&
43949 { ac_try='test -s conftest.$ac_objext'
43950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43951 (eval $ac_try) 2>&5
43952 ac_status=$?
43953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43954 (exit $ac_status); }; }; then
43955 wx_cv_func_strptime_decl=yes
43956else
43957 echo "$as_me: failed program was:" >&5
43958sed 's/^/| /' conftest.$ac_ext >&5
43959
43960wx_cv_func_strptime_decl=no
43961
43962fi
43963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f536f005
VZ
43964
43965
43966fi
43967echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
43968echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
43969 fi
43970 if test "$wx_cv_func_strptime_decl" = "yes"; then
43971 cat >>confdefs.h <<\_ACEOF
43972#define HAVE_STRPTIME_DECL 1
43973_ACEOF
43974
43975 fi
a848cd7e
SC
43976
43977 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
43978echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
43979if test "${wx_cv_var_timezone+set}" = set; then
43980 echo $ECHO_N "(cached) $ECHO_C" >&6
43981else
43982
43983 cat >conftest.$ac_ext <<_ACEOF
43984/* confdefs.h. */
43985_ACEOF
43986cat confdefs.h >>conftest.$ac_ext
43987cat >>conftest.$ac_ext <<_ACEOF
43988/* end confdefs.h. */
43989
43990 #include <time.h>
43991
43992int
43993main ()
43994{
43995
43996 int tz;
43997 tz = timezone;
43998
43999 ;
44000 return 0;
44001}
44002_ACEOF
44003rm -f conftest.$ac_objext
44004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44005 (eval $ac_compile) 2>conftest.er1
a848cd7e 44006 ac_status=$?
ac1cb8d3
VS
44007 grep -v '^ *+' conftest.er1 >conftest.err
44008 rm -f conftest.er1
44009 cat conftest.err >&5
a848cd7e
SC
44010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44011 (exit $ac_status); } &&
bb9e79c0 44012 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44014 (eval $ac_try) 2>&5
44015 ac_status=$?
44016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44017 (exit $ac_status); }; } &&
44018 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44020 (eval $ac_try) 2>&5
44021 ac_status=$?
44022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44023 (exit $ac_status); }; }; then
44024
44025 wx_cv_var_timezone=timezone
44026
44027else
44028 echo "$as_me: failed program was:" >&5
44029sed 's/^/| /' conftest.$ac_ext >&5
44030
44031
44032 cat >conftest.$ac_ext <<_ACEOF
44033/* confdefs.h. */
44034_ACEOF
44035cat confdefs.h >>conftest.$ac_ext
44036cat >>conftest.$ac_ext <<_ACEOF
44037/* end confdefs.h. */
44038
44039 #include <time.h>
44040
44041int
44042main ()
44043{
44044
44045 int tz;
44046 tz = _timezone;
44047
44048 ;
44049 return 0;
44050}
44051_ACEOF
44052rm -f conftest.$ac_objext
44053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44054 (eval $ac_compile) 2>conftest.er1
a848cd7e 44055 ac_status=$?
ac1cb8d3
VS
44056 grep -v '^ *+' conftest.er1 >conftest.err
44057 rm -f conftest.er1
44058 cat conftest.err >&5
a848cd7e
SC
44059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44060 (exit $ac_status); } &&
bb9e79c0 44061 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44063 (eval $ac_try) 2>&5
44064 ac_status=$?
44065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44066 (exit $ac_status); }; } &&
44067 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44069 (eval $ac_try) 2>&5
44070 ac_status=$?
44071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44072 (exit $ac_status); }; }; then
44073
44074 wx_cv_var_timezone=_timezone
44075
44076else
44077 echo "$as_me: failed program was:" >&5
44078sed 's/^/| /' conftest.$ac_ext >&5
44079
44080
44081 cat >conftest.$ac_ext <<_ACEOF
44082/* confdefs.h. */
44083_ACEOF
44084cat confdefs.h >>conftest.$ac_ext
44085cat >>conftest.$ac_ext <<_ACEOF
44086/* end confdefs.h. */
44087
44088 #include <time.h>
44089
44090int
44091main ()
44092{
44093
44094 int tz;
44095 tz = __timezone;
44096
44097 ;
44098 return 0;
44099}
44100_ACEOF
44101rm -f conftest.$ac_objext
44102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44103 (eval $ac_compile) 2>conftest.er1
a848cd7e 44104 ac_status=$?
ac1cb8d3
VS
44105 grep -v '^ *+' conftest.er1 >conftest.err
44106 rm -f conftest.er1
44107 cat conftest.err >&5
a848cd7e
SC
44108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44109 (exit $ac_status); } &&
bb9e79c0 44110 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44112 (eval $ac_try) 2>&5
44113 ac_status=$?
44114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44115 (exit $ac_status); }; } &&
44116 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44118 (eval $ac_try) 2>&5
44119 ac_status=$?
44120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44121 (exit $ac_status); }; }; then
44122
44123 wx_cv_var_timezone=__timezone
44124
44125else
44126 echo "$as_me: failed program was:" >&5
44127sed 's/^/| /' conftest.$ac_ext >&5
44128
44129
44130 if test "$USE_DOS" = 0 ; then
44131 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
44132echo "$as_me: WARNING: no timezone variable" >&2;}
44133 fi
44134
44135
44136fi
ac1cb8d3 44137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44138
44139
44140fi
ac1cb8d3 44141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44142
44143
44144fi
ac1cb8d3 44145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44146
44147
44148fi
44149echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
44150echo "${ECHO_T}$wx_cv_var_timezone" >&6
44151
44152 if test "x$wx_cv_var_timezone" != x ; then
44153 cat >>confdefs.h <<_ACEOF
44154#define WX_TIMEZONE $wx_cv_var_timezone
44155_ACEOF
44156
44157 fi
44158
44159
44160for ac_func in localtime
44161do
44162as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44163echo "$as_me:$LINENO: checking for $ac_func" >&5
44164echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44165if eval "test \"\${$as_ac_var+set}\" = set"; then
44166 echo $ECHO_N "(cached) $ECHO_C" >&6
44167else
44168 cat >conftest.$ac_ext <<_ACEOF
44169/* confdefs.h. */
44170_ACEOF
44171cat confdefs.h >>conftest.$ac_ext
44172cat >>conftest.$ac_ext <<_ACEOF
44173/* end confdefs.h. */
ac1cb8d3
VS
44174/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44176#define $ac_func innocuous_$ac_func
44177
a848cd7e
SC
44178/* System header to define __stub macros and hopefully few prototypes,
44179 which can conflict with char $ac_func (); below.
44180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44181 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44182
a848cd7e
SC
44183#ifdef __STDC__
44184# include <limits.h>
44185#else
44186# include <assert.h>
44187#endif
ac1cb8d3
VS
44188
44189#undef $ac_func
44190
a848cd7e
SC
44191/* Override any gcc2 internal prototype to avoid an error. */
44192#ifdef __cplusplus
44193extern "C"
44194{
44195#endif
44196/* We use char because int might match the return type of a gcc2
44197 builtin and then its argument prototype would still apply. */
44198char $ac_func ();
44199/* The GNU C library defines this for functions which it implements
44200 to always fail with ENOSYS. Some functions are actually named
44201 something starting with __ and the normal name is an alias. */
44202#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44203choke me
44204#else
44205char (*f) () = $ac_func;
44206#endif
44207#ifdef __cplusplus
44208}
44209#endif
44210
44211int
44212main ()
44213{
44214return f != $ac_func;
44215 ;
44216 return 0;
44217}
44218_ACEOF
44219rm -f conftest.$ac_objext conftest$ac_exeext
44220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44221 (eval $ac_link) 2>conftest.er1
a848cd7e 44222 ac_status=$?
ac1cb8d3
VS
44223 grep -v '^ *+' conftest.er1 >conftest.err
44224 rm -f conftest.er1
44225 cat conftest.err >&5
a848cd7e
SC
44226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44227 (exit $ac_status); } &&
bb9e79c0 44228 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44230 (eval $ac_try) 2>&5
44231 ac_status=$?
44232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44233 (exit $ac_status); }; } &&
44234 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44236 (eval $ac_try) 2>&5
44237 ac_status=$?
44238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44239 (exit $ac_status); }; }; then
44240 eval "$as_ac_var=yes"
44241else
44242 echo "$as_me: failed program was:" >&5
44243sed 's/^/| /' conftest.$ac_ext >&5
44244
44245eval "$as_ac_var=no"
44246fi
ac1cb8d3
VS
44247rm -f conftest.err conftest.$ac_objext \
44248 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44249fi
44250echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44251echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44252if test `eval echo '${'$as_ac_var'}'` = yes; then
44253 cat >>confdefs.h <<_ACEOF
44254#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44255_ACEOF
44256
44257fi
44258done
44259
44260
44261 if test "$ac_cv_func_localtime" = "yes"; then
44262 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
44263echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
44264if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
44265 echo $ECHO_N "(cached) $ECHO_C" >&6
44266else
44267
44268 cat >conftest.$ac_ext <<_ACEOF
44269/* confdefs.h. */
44270_ACEOF
44271cat confdefs.h >>conftest.$ac_ext
44272cat >>conftest.$ac_ext <<_ACEOF
44273/* end confdefs.h. */
44274
44275 #include <time.h>
44276
44277int
44278main ()
44279{
44280
44281 struct tm tm;
44282 tm.tm_gmtoff++;
44283
44284 ;
44285 return 0;
44286}
44287_ACEOF
44288rm -f conftest.$ac_objext
44289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44290 (eval $ac_compile) 2>conftest.er1
a848cd7e 44291 ac_status=$?
ac1cb8d3
VS
44292 grep -v '^ *+' conftest.er1 >conftest.err
44293 rm -f conftest.er1
44294 cat conftest.err >&5
a848cd7e
SC
44295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44296 (exit $ac_status); } &&
bb9e79c0 44297 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44299 (eval $ac_try) 2>&5
44300 ac_status=$?
44301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44302 (exit $ac_status); }; } &&
44303 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44305 (eval $ac_try) 2>&5
44306 ac_status=$?
44307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44308 (exit $ac_status); }; }; then
44309
44310 wx_cv_struct_tm_has_gmtoff=yes
44311
44312else
44313 echo "$as_me: failed program was:" >&5
44314sed 's/^/| /' conftest.$ac_ext >&5
44315
44316wx_cv_struct_tm_has_gmtoff=no
44317
44318fi
ac1cb8d3 44319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44320
44321fi
44322echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
44323echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
44324 fi
44325
44326 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
44327 cat >>confdefs.h <<\_ACEOF
44328#define WX_GMTOFF_IN_TM 1
44329_ACEOF
44330
44331 fi
44332
44333
44334
44335for ac_func in gettimeofday ftime
44336do
44337as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44338echo "$as_me:$LINENO: checking for $ac_func" >&5
44339echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44340if eval "test \"\${$as_ac_var+set}\" = set"; then
44341 echo $ECHO_N "(cached) $ECHO_C" >&6
44342else
44343 cat >conftest.$ac_ext <<_ACEOF
44344/* confdefs.h. */
44345_ACEOF
44346cat confdefs.h >>conftest.$ac_ext
44347cat >>conftest.$ac_ext <<_ACEOF
44348/* end confdefs.h. */
ac1cb8d3
VS
44349/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44351#define $ac_func innocuous_$ac_func
44352
a848cd7e
SC
44353/* System header to define __stub macros and hopefully few prototypes,
44354 which can conflict with char $ac_func (); below.
44355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44356 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44357
a848cd7e
SC
44358#ifdef __STDC__
44359# include <limits.h>
44360#else
44361# include <assert.h>
44362#endif
ac1cb8d3
VS
44363
44364#undef $ac_func
44365
a848cd7e
SC
44366/* Override any gcc2 internal prototype to avoid an error. */
44367#ifdef __cplusplus
44368extern "C"
44369{
44370#endif
44371/* We use char because int might match the return type of a gcc2
44372 builtin and then its argument prototype would still apply. */
44373char $ac_func ();
44374/* The GNU C library defines this for functions which it implements
44375 to always fail with ENOSYS. Some functions are actually named
44376 something starting with __ and the normal name is an alias. */
44377#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44378choke me
44379#else
44380char (*f) () = $ac_func;
44381#endif
44382#ifdef __cplusplus
44383}
44384#endif
44385
44386int
44387main ()
44388{
44389return f != $ac_func;
44390 ;
44391 return 0;
44392}
44393_ACEOF
44394rm -f conftest.$ac_objext conftest$ac_exeext
44395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44396 (eval $ac_link) 2>conftest.er1
a848cd7e 44397 ac_status=$?
ac1cb8d3
VS
44398 grep -v '^ *+' conftest.er1 >conftest.err
44399 rm -f conftest.er1
44400 cat conftest.err >&5
a848cd7e
SC
44401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44402 (exit $ac_status); } &&
bb9e79c0 44403 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44405 (eval $ac_try) 2>&5
44406 ac_status=$?
44407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44408 (exit $ac_status); }; } &&
44409 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44411 (eval $ac_try) 2>&5
44412 ac_status=$?
44413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44414 (exit $ac_status); }; }; then
44415 eval "$as_ac_var=yes"
44416else
44417 echo "$as_me: failed program was:" >&5
44418sed 's/^/| /' conftest.$ac_ext >&5
44419
44420eval "$as_ac_var=no"
44421fi
ac1cb8d3
VS
44422rm -f conftest.err conftest.$ac_objext \
44423 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44424fi
44425echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44426echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44427if test `eval echo '${'$as_ac_var'}'` = yes; then
44428 cat >>confdefs.h <<_ACEOF
44429#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44430_ACEOF
44431 break
44432fi
44433done
44434
44435
44436 if test "$ac_cv_func_gettimeofday" = "yes"; then
44437 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
44438echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
44439if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
44440 echo $ECHO_N "(cached) $ECHO_C" >&6
44441else
44442
5d7b7554 44443 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
44444/* confdefs.h. */
44445_ACEOF
44446cat confdefs.h >>conftest.$ac_ext
44447cat >>conftest.$ac_ext <<_ACEOF
44448/* end confdefs.h. */
44449
44450 #include <sys/time.h>
44451 #include <unistd.h>
44452
44453int
44454main ()
44455{
44456
44457 struct timeval tv;
44458 gettimeofday(&tv, NULL);
44459
44460 ;
44461 return 0;
44462}
44463_ACEOF
44464rm -f conftest.$ac_objext
44465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44466 (eval $ac_compile) 2>conftest.er1
a848cd7e 44467 ac_status=$?
ac1cb8d3
VS
44468 grep -v '^ *+' conftest.er1 >conftest.err
44469 rm -f conftest.er1
44470 cat conftest.err >&5
a848cd7e
SC
44471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44472 (exit $ac_status); } &&
bb9e79c0 44473 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44475 (eval $ac_try) 2>&5
44476 ac_status=$?
44477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44478 (exit $ac_status); }; } &&
44479 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44481 (eval $ac_try) 2>&5
44482 ac_status=$?
44483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44484 (exit $ac_status); }; }; then
44485 wx_cv_func_gettimeofday_has_2_args=yes
44486else
44487 echo "$as_me: failed program was:" >&5
44488sed 's/^/| /' conftest.$ac_ext >&5
44489
44490cat >conftest.$ac_ext <<_ACEOF
44491/* confdefs.h. */
44492_ACEOF
44493cat confdefs.h >>conftest.$ac_ext
44494cat >>conftest.$ac_ext <<_ACEOF
44495/* end confdefs.h. */
44496
44497 #include <sys/time.h>
44498 #include <unistd.h>
44499
44500int
44501main ()
44502{
44503
44504 struct timeval tv;
44505 gettimeofday(&tv);
44506
44507 ;
44508 return 0;
44509}
44510_ACEOF
44511rm -f conftest.$ac_objext
44512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44513 (eval $ac_compile) 2>conftest.er1
a848cd7e 44514 ac_status=$?
ac1cb8d3
VS
44515 grep -v '^ *+' conftest.er1 >conftest.err
44516 rm -f conftest.er1
44517 cat conftest.err >&5
a848cd7e
SC
44518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44519 (exit $ac_status); } &&
bb9e79c0 44520 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44522 (eval $ac_try) 2>&5
44523 ac_status=$?
44524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44525 (exit $ac_status); }; } &&
44526 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44528 (eval $ac_try) 2>&5
44529 ac_status=$?
44530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44531 (exit $ac_status); }; }; then
44532 wx_cv_func_gettimeofday_has_2_args=no
44533else
44534 echo "$as_me: failed program was:" >&5
44535sed 's/^/| /' conftest.$ac_ext >&5
44536
44537
44538 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
44539echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
44540 wx_cv_func_gettimeofday_has_2_args=unknown
44541
44542
44543fi
ac1cb8d3 44544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44545
44546fi
ac1cb8d3 44547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44548
44549fi
44550echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
44551echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
44552
44553 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
44554 cat >>confdefs.h <<\_ACEOF
44555#define WX_GETTIMEOFDAY_NO_TZ 1
44556_ACEOF
44557
44558 fi
44559 fi
44560
44561 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
44562fi
44563
44564
44565if test "$wxUSE_SOCKETS" = "yes"; then
44566 if test "$wxUSE_MGL" = "1"; then
44567 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
44568echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
44569 wxUSE_SOCKETS="no"
44570 fi
44571fi
44572
44573if test "$wxUSE_SOCKETS" = "yes"; then
44574 if test "$TOOLKIT" != "MSW"; then
44575 echo "$as_me:$LINENO: checking for socket" >&5
44576echo $ECHO_N "checking for socket... $ECHO_C" >&6
44577if test "${ac_cv_func_socket+set}" = set; then
44578 echo $ECHO_N "(cached) $ECHO_C" >&6
44579else
44580 cat >conftest.$ac_ext <<_ACEOF
44581/* confdefs.h. */
44582_ACEOF
44583cat confdefs.h >>conftest.$ac_ext
44584cat >>conftest.$ac_ext <<_ACEOF
44585/* end confdefs.h. */
ac1cb8d3
VS
44586/* Define socket to an innocuous variant, in case <limits.h> declares socket.
44587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44588#define socket innocuous_socket
44589
a848cd7e
SC
44590/* System header to define __stub macros and hopefully few prototypes,
44591 which can conflict with char socket (); below.
44592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44593 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44594
a848cd7e
SC
44595#ifdef __STDC__
44596# include <limits.h>
44597#else
44598# include <assert.h>
44599#endif
ac1cb8d3
VS
44600
44601#undef socket
44602
a848cd7e
SC
44603/* Override any gcc2 internal prototype to avoid an error. */
44604#ifdef __cplusplus
44605extern "C"
44606{
44607#endif
44608/* We use char because int might match the return type of a gcc2
44609 builtin and then its argument prototype would still apply. */
44610char socket ();
44611/* The GNU C library defines this for functions which it implements
44612 to always fail with ENOSYS. Some functions are actually named
44613 something starting with __ and the normal name is an alias. */
44614#if defined (__stub_socket) || defined (__stub___socket)
44615choke me
44616#else
44617char (*f) () = socket;
44618#endif
44619#ifdef __cplusplus
44620}
44621#endif
44622
44623int
44624main ()
44625{
44626return f != socket;
44627 ;
44628 return 0;
44629}
44630_ACEOF
44631rm -f conftest.$ac_objext conftest$ac_exeext
44632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44633 (eval $ac_link) 2>conftest.er1
a848cd7e 44634 ac_status=$?
ac1cb8d3
VS
44635 grep -v '^ *+' conftest.er1 >conftest.err
44636 rm -f conftest.er1
44637 cat conftest.err >&5
a848cd7e
SC
44638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44639 (exit $ac_status); } &&
bb9e79c0 44640 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44642 (eval $ac_try) 2>&5
44643 ac_status=$?
44644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44645 (exit $ac_status); }; } &&
44646 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44648 (eval $ac_try) 2>&5
44649 ac_status=$?
44650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44651 (exit $ac_status); }; }; then
44652 ac_cv_func_socket=yes
44653else
44654 echo "$as_me: failed program was:" >&5
44655sed 's/^/| /' conftest.$ac_ext >&5
44656
44657ac_cv_func_socket=no
44658fi
ac1cb8d3
VS
44659rm -f conftest.err conftest.$ac_objext \
44660 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44661fi
44662echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
44663echo "${ECHO_T}$ac_cv_func_socket" >&6
44664if test $ac_cv_func_socket = yes; then
44665 :
44666else
44667
44668 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
44669echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
44670if test "${ac_cv_lib_socket_socket+set}" = set; then
44671 echo $ECHO_N "(cached) $ECHO_C" >&6
44672else
44673 ac_check_lib_save_LIBS=$LIBS
44674LIBS="-lsocket $LIBS"
44675cat >conftest.$ac_ext <<_ACEOF
44676/* confdefs.h. */
44677_ACEOF
44678cat confdefs.h >>conftest.$ac_ext
44679cat >>conftest.$ac_ext <<_ACEOF
44680/* end confdefs.h. */
44681
44682/* Override any gcc2 internal prototype to avoid an error. */
44683#ifdef __cplusplus
44684extern "C"
44685#endif
44686/* We use char because int might match the return type of a gcc2
44687 builtin and then its argument prototype would still apply. */
44688char socket ();
44689int
44690main ()
44691{
44692socket ();
44693 ;
44694 return 0;
44695}
44696_ACEOF
44697rm -f conftest.$ac_objext conftest$ac_exeext
44698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44699 (eval $ac_link) 2>conftest.er1
a848cd7e 44700 ac_status=$?
ac1cb8d3
VS
44701 grep -v '^ *+' conftest.er1 >conftest.err
44702 rm -f conftest.er1
44703 cat conftest.err >&5
a848cd7e
SC
44704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44705 (exit $ac_status); } &&
bb9e79c0 44706 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44708 (eval $ac_try) 2>&5
44709 ac_status=$?
44710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44711 (exit $ac_status); }; } &&
44712 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44714 (eval $ac_try) 2>&5
44715 ac_status=$?
44716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44717 (exit $ac_status); }; }; then
44718 ac_cv_lib_socket_socket=yes
44719else
44720 echo "$as_me: failed program was:" >&5
44721sed 's/^/| /' conftest.$ac_ext >&5
44722
44723ac_cv_lib_socket_socket=no
44724fi
ac1cb8d3
VS
44725rm -f conftest.err conftest.$ac_objext \
44726 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44727LIBS=$ac_check_lib_save_LIBS
44728fi
44729echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
44730echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
44731if test $ac_cv_lib_socket_socket = yes; then
44732 if test "$INET_LINK" != " -lsocket"; then
44733 INET_LINK="$INET_LINK -lsocket"
44734 fi
44735else
44736
44737 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
44738echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
44739 wxUSE_SOCKETS=no
44740
44741
44742fi
44743
44744
44745
44746fi
44747
44748 fi
44749fi
44750
44751if test "$wxUSE_SOCKETS" = "yes" ; then
44752 if test "$TOOLKIT" != "MSW"; then
5d7b7554 44753 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
44754echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
44755if test "${wx_cv_type_getsockname3+set}" = set; then
44756 echo $ECHO_N "(cached) $ECHO_C" >&6
44757else
44758
44759 cat >conftest.$ac_ext <<_ACEOF
44760/* confdefs.h. */
44761_ACEOF
44762cat confdefs.h >>conftest.$ac_ext
44763cat >>conftest.$ac_ext <<_ACEOF
44764/* end confdefs.h. */
44765
44766 #include <sys/types.h>
44767 #include <sys/socket.h>
44768
44769int
44770main ()
44771{
44772
44773 socklen_t len;
44774 getsockname(0, 0, &len);
44775
44776 ;
44777 return 0;
44778}
44779_ACEOF
44780rm -f conftest.$ac_objext
44781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44782 (eval $ac_compile) 2>conftest.er1
a848cd7e 44783 ac_status=$?
ac1cb8d3
VS
44784 grep -v '^ *+' conftest.er1 >conftest.err
44785 rm -f conftest.er1
44786 cat conftest.err >&5
a848cd7e
SC
44787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44788 (exit $ac_status); } &&
bb9e79c0 44789 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44791 (eval $ac_try) 2>&5
44792 ac_status=$?
44793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44794 (exit $ac_status); }; } &&
44795 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44797 (eval $ac_try) 2>&5
44798 ac_status=$?
44799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44800 (exit $ac_status); }; }; then
44801 wx_cv_type_getsockname3=socklen_t
44802else
44803 echo "$as_me: failed program was:" >&5
44804sed 's/^/| /' conftest.$ac_ext >&5
44805
44806
6459a506 44807 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 44808 if test "$GCC" = yes ; then
c92ad099 44809 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
44810 fi
44811
44812 cat >conftest.$ac_ext <<_ACEOF
44813/* confdefs.h. */
44814_ACEOF
44815cat confdefs.h >>conftest.$ac_ext
44816cat >>conftest.$ac_ext <<_ACEOF
44817/* end confdefs.h. */
44818
44819 #include <sys/types.h>
44820 #include <sys/socket.h>
44821
44822int
44823main ()
44824{
44825
44826 size_t len;
44827 getsockname(0, 0, &len);
44828
44829 ;
44830 return 0;
44831}
44832_ACEOF
44833rm -f conftest.$ac_objext
44834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44835 (eval $ac_compile) 2>conftest.er1
a848cd7e 44836 ac_status=$?
ac1cb8d3
VS
44837 grep -v '^ *+' conftest.er1 >conftest.err
44838 rm -f conftest.er1
44839 cat conftest.err >&5
a848cd7e
SC
44840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44841 (exit $ac_status); } &&
bb9e79c0 44842 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44844 (eval $ac_try) 2>&5
44845 ac_status=$?
44846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44847 (exit $ac_status); }; } &&
44848 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44850 (eval $ac_try) 2>&5
44851 ac_status=$?
44852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44853 (exit $ac_status); }; }; then
44854 wx_cv_type_getsockname3=size_t
44855else
44856 echo "$as_me: failed program was:" >&5
44857sed 's/^/| /' conftest.$ac_ext >&5
44858
44859cat >conftest.$ac_ext <<_ACEOF
44860/* confdefs.h. */
44861_ACEOF
44862cat confdefs.h >>conftest.$ac_ext
44863cat >>conftest.$ac_ext <<_ACEOF
44864/* end confdefs.h. */
44865
44866 #include <sys/types.h>
44867 #include <sys/socket.h>
44868
44869int
44870main ()
44871{
44872
44873 int len;
44874 getsockname(0, 0, &len);
44875
44876 ;
44877 return 0;
44878}
44879_ACEOF
44880rm -f conftest.$ac_objext
44881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44882 (eval $ac_compile) 2>conftest.er1
a848cd7e 44883 ac_status=$?
ac1cb8d3
VS
44884 grep -v '^ *+' conftest.er1 >conftest.err
44885 rm -f conftest.er1
44886 cat conftest.err >&5
a848cd7e
SC
44887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44888 (exit $ac_status); } &&
bb9e79c0 44889 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44891 (eval $ac_try) 2>&5
44892 ac_status=$?
44893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44894 (exit $ac_status); }; } &&
44895 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44897 (eval $ac_try) 2>&5
44898 ac_status=$?
44899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44900 (exit $ac_status); }; }; then
44901 wx_cv_type_getsockname3=int
44902else
44903 echo "$as_me: failed program was:" >&5
44904sed 's/^/| /' conftest.$ac_ext >&5
44905
44906wx_cv_type_getsockname3=unknown
44907
44908fi
ac1cb8d3 44909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44910
44911fi
ac1cb8d3 44912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 44913
6459a506 44914 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
44915
44916
44917fi
ac1cb8d3 44918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44919
44920fi
44921echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
44922echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
44923
44924 if test "$wx_cv_type_getsockname3" = "unknown"; then
44925 wxUSE_SOCKETS=no
44926 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44927echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44928 else
44929 cat >>confdefs.h <<_ACEOF
9e03e02d 44930#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
44931_ACEOF
44932
44933 fi
44934 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
44935echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
44936if test "${wx_cv_type_getsockopt5+set}" = set; then
44937 echo $ECHO_N "(cached) $ECHO_C" >&6
44938else
44939
44940 cat >conftest.$ac_ext <<_ACEOF
44941/* confdefs.h. */
44942_ACEOF
44943cat confdefs.h >>conftest.$ac_ext
44944cat >>conftest.$ac_ext <<_ACEOF
44945/* end confdefs.h. */
44946
44947 #include <sys/types.h>
44948 #include <sys/socket.h>
44949
44950int
44951main ()
44952{
44953
44954 socklen_t len;
44955 getsockopt(0, 0, 0, 0, &len);
44956
44957 ;
44958 return 0;
44959}
44960_ACEOF
44961rm -f conftest.$ac_objext
44962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44963 (eval $ac_compile) 2>conftest.er1
44964 ac_status=$?
44965 grep -v '^ *+' conftest.er1 >conftest.err
44966 rm -f conftest.er1
44967 cat conftest.err >&5
44968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44969 (exit $ac_status); } &&
bb9e79c0 44970 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
44971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44972 (eval $ac_try) 2>&5
44973 ac_status=$?
44974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44975 (exit $ac_status); }; } &&
44976 { ac_try='test -s conftest.$ac_objext'
44977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44978 (eval $ac_try) 2>&5
44979 ac_status=$?
44980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44981 (exit $ac_status); }; }; then
44982 wx_cv_type_getsockopt5=socklen_t
44983else
44984 echo "$as_me: failed program was:" >&5
44985sed 's/^/| /' conftest.$ac_ext >&5
44986
44987
6459a506 44988 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 44989 if test "$GCC" = yes ; then
c92ad099 44990 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
44991 fi
44992
44993 cat >conftest.$ac_ext <<_ACEOF
44994/* confdefs.h. */
44995_ACEOF
44996cat confdefs.h >>conftest.$ac_ext
44997cat >>conftest.$ac_ext <<_ACEOF
44998/* end confdefs.h. */
44999
45000 #include <sys/types.h>
45001 #include <sys/socket.h>
45002
45003int
45004main ()
45005{
45006
45007 size_t len;
45008 getsockopt(0, 0, 0, 0, &len);
45009
45010 ;
45011 return 0;
45012}
45013_ACEOF
45014rm -f conftest.$ac_objext
45015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45016 (eval $ac_compile) 2>conftest.er1
45017 ac_status=$?
45018 grep -v '^ *+' conftest.er1 >conftest.err
45019 rm -f conftest.er1
45020 cat conftest.err >&5
45021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45022 (exit $ac_status); } &&
bb9e79c0 45023 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
45024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45025 (eval $ac_try) 2>&5
45026 ac_status=$?
45027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45028 (exit $ac_status); }; } &&
45029 { ac_try='test -s conftest.$ac_objext'
45030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45031 (eval $ac_try) 2>&5
45032 ac_status=$?
45033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45034 (exit $ac_status); }; }; then
45035 wx_cv_type_getsockopt5=size_t
45036else
45037 echo "$as_me: failed program was:" >&5
45038sed 's/^/| /' conftest.$ac_ext >&5
45039
45040cat >conftest.$ac_ext <<_ACEOF
45041/* confdefs.h. */
45042_ACEOF
45043cat confdefs.h >>conftest.$ac_ext
45044cat >>conftest.$ac_ext <<_ACEOF
45045/* end confdefs.h. */
45046
45047 #include <sys/types.h>
45048 #include <sys/socket.h>
45049
45050int
45051main ()
45052{
45053
45054 int len;
45055 getsockopt(0, 0, 0, 0, &len);
45056
45057 ;
45058 return 0;
45059}
45060_ACEOF
45061rm -f conftest.$ac_objext
45062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45063 (eval $ac_compile) 2>conftest.er1
45064 ac_status=$?
45065 grep -v '^ *+' conftest.er1 >conftest.err
45066 rm -f conftest.er1
45067 cat conftest.err >&5
45068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45069 (exit $ac_status); } &&
bb9e79c0 45070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
45071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45072 (eval $ac_try) 2>&5
45073 ac_status=$?
45074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45075 (exit $ac_status); }; } &&
45076 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
45082 wx_cv_type_getsockopt5=int
45083else
45084 echo "$as_me: failed program was:" >&5
45085sed 's/^/| /' conftest.$ac_ext >&5
45086
45087wx_cv_type_getsockopt5=unknown
45088
45089fi
45090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45091
45092fi
45093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45094
6459a506 45095 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
45096
45097
45098fi
45099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45100
45101fi
45102echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
45103echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
45104
45105 if test "$wx_cv_type_getsockopt5" = "unknown"; then
45106 wxUSE_SOCKETS=no
45107 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
45108echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
45109 else
45110 cat >>confdefs.h <<_ACEOF
45111#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
45112_ACEOF
45113
45114 fi
45115 fi
45116fi
45117
45118if test "$wxUSE_SOCKETS" = "yes" ; then
45119 cat >>confdefs.h <<\_ACEOF
45120#define wxUSE_SOCKETS 1
45121_ACEOF
45122
45123 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
45124fi
45125
45126if test "$wxUSE_PROTOCOL" = "yes"; then
45127 if test "$wxUSE_SOCKETS" != "yes"; then
45128 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
45129echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
45130 wxUSE_PROTOCOL=no
45131 fi
45132fi
45133
45134if test "$wxUSE_PROTOCOL" = "yes"; then
45135 cat >>confdefs.h <<\_ACEOF
45136#define wxUSE_PROTOCOL 1
45137_ACEOF
45138
45139
45140 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
45141 cat >>confdefs.h <<\_ACEOF
45142#define wxUSE_PROTOCOL_HTTP 1
45143_ACEOF
45144
45145 fi
45146 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
45147 cat >>confdefs.h <<\_ACEOF
45148#define wxUSE_PROTOCOL_FTP 1
45149_ACEOF
45150
45151 fi
45152 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
45153 cat >>confdefs.h <<\_ACEOF
45154#define wxUSE_PROTOCOL_FILE 1
45155_ACEOF
45156
45157 fi
45158else
45159 if test "$wxUSE_FS_INET" = "yes"; then
45160 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
45161echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
45162 wxUSE_FS_INET="no"
45163 fi
45164fi
45165
45166if test "$wxUSE_URL" = "yes"; then
45167 if test "$wxUSE_PROTOCOL" != "yes"; then
45168 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
45169echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
45170 wxUSE_URL=no
45171 fi
45172 if test "$wxUSE_URL" = "yes"; then
45173 cat >>confdefs.h <<\_ACEOF
45174#define wxUSE_URL 1
45175_ACEOF
45176
45177 fi
45178fi
45179
ca5c6ac3
VZ
45180if test "$wxUSE_VARIANT" = "yes"; then
45181 cat >>confdefs.h <<\_ACEOF
45182#define wxUSE_VARIANT 1
45183_ACEOF
45184
45185fi
45186
a848cd7e
SC
45187if test "$wxUSE_FS_INET" = "yes"; then
45188 cat >>confdefs.h <<\_ACEOF
45189#define wxUSE_FS_INET 1
45190_ACEOF
45191
45192fi
45193
45194
ee45c548
MW
45195if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
45196 wxUSE_JOYSTICK=no
45197
45198 if test "$TOOLKIT" = "MSW"; then
45199 wxUSE_JOYSTICK=yes
45200
45201 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
45202 if test "$USE_DARWIN" = 1; then
45203 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
45204echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
ee45c548
MW
45205 cat >conftest.$ac_ext <<_ACEOF
45206/* confdefs.h. */
45207_ACEOF
45208cat confdefs.h >>conftest.$ac_ext
45209cat >>conftest.$ac_ext <<_ACEOF
45210/* end confdefs.h. */
45211 #include <IOKit/hid/IOHIDLib.h>
45212int
45213main ()
45214{
45215 IOHIDQueueInterface *qi = NULL;
45216 IOHIDCallbackFunction cb = NULL;
45217 qi->setEventCallout(NULL, cb, NULL, NULL);
45218 ;
45219 return 0;
45220}
45221_ACEOF
45222rm -f conftest.$ac_objext
45223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45224 (eval $ac_compile) 2>conftest.er1
45225 ac_status=$?
45226 grep -v '^ *+' conftest.er1 >conftest.err
45227 rm -f conftest.er1
45228 cat conftest.err >&5
45229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45230 (exit $ac_status); } &&
bb9e79c0 45231 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
45232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45233 (eval $ac_try) 2>&5
45234 ac_status=$?
45235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45236 (exit $ac_status); }; } &&
45237 { ac_try='test -s conftest.$ac_objext'
45238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45239 (eval $ac_try) 2>&5
45240 ac_status=$?
45241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45242 (exit $ac_status); }; }; then
45243 wxUSE_JOYSTICK=yes
a848cd7e 45244
ee45c548
MW
45245else
45246 echo "$as_me: failed program was:" >&5
45247sed 's/^/| /' conftest.$ac_ext >&5
45248
45249fi
45250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ee45c548
MW
45251 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
45252echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
45253 fi
45254
45255 else
a848cd7e
SC
45256
45257for ac_header in linux/joystick.h
45258do
45259as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45260if eval "test \"\${$as_ac_Header+set}\" = set"; then
45261 echo "$as_me:$LINENO: checking for $ac_header" >&5
45262echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45263if eval "test \"\${$as_ac_Header+set}\" = set"; then
45264 echo $ECHO_N "(cached) $ECHO_C" >&6
45265fi
45266echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45267echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45268else
45269 # Is the header compilable?
45270echo "$as_me:$LINENO: checking $ac_header usability" >&5
45271echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45272cat >conftest.$ac_ext <<_ACEOF
45273/* confdefs.h. */
45274_ACEOF
45275cat confdefs.h >>conftest.$ac_ext
45276cat >>conftest.$ac_ext <<_ACEOF
45277/* end confdefs.h. */
45278$ac_includes_default
45279#include <$ac_header>
45280_ACEOF
45281rm -f conftest.$ac_objext
45282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45283 (eval $ac_compile) 2>conftest.er1
a848cd7e 45284 ac_status=$?
ac1cb8d3
VS
45285 grep -v '^ *+' conftest.er1 >conftest.err
45286 rm -f conftest.er1
45287 cat conftest.err >&5
a848cd7e
SC
45288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45289 (exit $ac_status); } &&
bb9e79c0 45290 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45292 (eval $ac_try) 2>&5
45293 ac_status=$?
45294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45295 (exit $ac_status); }; } &&
45296 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45298 (eval $ac_try) 2>&5
45299 ac_status=$?
45300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45301 (exit $ac_status); }; }; then
45302 ac_header_compiler=yes
45303else
45304 echo "$as_me: failed program was:" >&5
45305sed 's/^/| /' conftest.$ac_ext >&5
45306
45307ac_header_compiler=no
45308fi
ac1cb8d3 45309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45310echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45311echo "${ECHO_T}$ac_header_compiler" >&6
45312
45313# Is the header present?
45314echo "$as_me:$LINENO: checking $ac_header presence" >&5
45315echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45316cat >conftest.$ac_ext <<_ACEOF
45317/* confdefs.h. */
45318_ACEOF
45319cat confdefs.h >>conftest.$ac_ext
45320cat >>conftest.$ac_ext <<_ACEOF
45321/* end confdefs.h. */
45322#include <$ac_header>
45323_ACEOF
45324if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45326 ac_status=$?
45327 grep -v '^ *+' conftest.er1 >conftest.err
45328 rm -f conftest.er1
45329 cat conftest.err >&5
45330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45331 (exit $ac_status); } >/dev/null; then
45332 if test -s conftest.err; then
5d7b7554
VZ
45333 ac_cpp_err=$ac_cxx_preproc_warn_flag
45334 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
45335 else
45336 ac_cpp_err=
45337 fi
45338else
45339 ac_cpp_err=yes
45340fi
45341if test -z "$ac_cpp_err"; then
45342 ac_header_preproc=yes
45343else
45344 echo "$as_me: failed program was:" >&5
45345sed 's/^/| /' conftest.$ac_ext >&5
45346
45347 ac_header_preproc=no
45348fi
45349rm -f conftest.err conftest.$ac_ext
45350echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45351echo "${ECHO_T}$ac_header_preproc" >&6
45352
45353# So? What about this header?
5d7b7554 45354case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 45355 yes:no: )
a848cd7e
SC
45356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45357echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
45358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45359echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45360 ac_header_preproc=yes
a848cd7e 45361 ;;
ac1cb8d3 45362 no:yes:* )
a848cd7e
SC
45363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45364echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
45365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45366echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45368echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45370echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
45371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45372echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
45373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45374echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
45375 (
45376 cat <<\_ASBOX
ac1cb8d3
VS
45377## ----------------------------------------- ##
45378## Report this to wx-dev@lists.wxwidgets.org ##
45379## ----------------------------------------- ##
a848cd7e
SC
45380_ASBOX
45381 ) |
45382 sed "s/^/$as_me: WARNING: /" >&2
45383 ;;
45384esac
45385echo "$as_me:$LINENO: checking for $ac_header" >&5
45386echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45387if eval "test \"\${$as_ac_Header+set}\" = set"; then
45388 echo $ECHO_N "(cached) $ECHO_C" >&6
45389else
ac1cb8d3 45390 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
45391fi
45392echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45393echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45394
45395fi
45396if test `eval echo '${'$as_ac_Header'}'` = yes; then
45397 cat >>confdefs.h <<_ACEOF
45398#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45399_ACEOF
ee45c548 45400 wxUSE_JOYSTICK=yes
a848cd7e
SC
45401fi
45402
45403done
45404
ee45c548 45405 fi
4cb1d3da 45406
ee45c548
MW
45407 if test "$wxUSE_JOYSTICK" = "yes"; then
45408 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45409#define wxUSE_JOYSTICK 1
45410_ACEOF
45411
ee45c548
MW
45412 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
45413 else
45414 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
45415echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
45416 fi
45417fi
45418
45419
45420
45421if test "$wxUSE_FONTMAP" = "yes" ; then
45422 cat >>confdefs.h <<\_ACEOF
45423#define wxUSE_FONTMAP 1
45424_ACEOF
45425
45426fi
45427
45428if test "$wxUSE_UNICODE" = "yes" ; then
45429 cat >>confdefs.h <<\_ACEOF
45430#define wxUSE_UNICODE 1
45431_ACEOF
45432
45433
45434 if test "$USE_WIN32" != 1; then
45435 wxUSE_UNICODE_MSLU=no
45436 fi
45437
45438 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
45439 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
45440echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
45441if test "${ac_cv_lib_unicows_main+set}" = set; then
45442 echo $ECHO_N "(cached) $ECHO_C" >&6
45443else
45444 ac_check_lib_save_LIBS=$LIBS
45445LIBS="-lunicows $LIBS"
45446cat >conftest.$ac_ext <<_ACEOF
45447/* confdefs.h. */
45448_ACEOF
45449cat confdefs.h >>conftest.$ac_ext
45450cat >>conftest.$ac_ext <<_ACEOF
45451/* end confdefs.h. */
45452
45453
45454int
45455main ()
45456{
45457main ();
45458 ;
45459 return 0;
45460}
45461_ACEOF
45462rm -f conftest.$ac_objext conftest$ac_exeext
45463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 45464 (eval $ac_link) 2>conftest.er1
a848cd7e 45465 ac_status=$?
ac1cb8d3
VS
45466 grep -v '^ *+' conftest.er1 >conftest.err
45467 rm -f conftest.er1
45468 cat conftest.err >&5
a848cd7e
SC
45469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45470 (exit $ac_status); } &&
bb9e79c0 45471 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45473 (eval $ac_try) 2>&5
45474 ac_status=$?
45475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45476 (exit $ac_status); }; } &&
45477 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
45478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45479 (eval $ac_try) 2>&5
45480 ac_status=$?
45481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45482 (exit $ac_status); }; }; then
45483 ac_cv_lib_unicows_main=yes
45484else
45485 echo "$as_me: failed program was:" >&5
45486sed 's/^/| /' conftest.$ac_ext >&5
45487
45488ac_cv_lib_unicows_main=no
45489fi
ac1cb8d3
VS
45490rm -f conftest.err conftest.$ac_objext \
45491 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
45492LIBS=$ac_check_lib_save_LIBS
45493fi
45494echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
45495echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
45496if test $ac_cv_lib_unicows_main = yes; then
45497
45498 cat >>confdefs.h <<\_ACEOF
45499#define wxUSE_UNICODE_MSLU 1
45500_ACEOF
45501
45502
45503else
45504
45505 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45506 Applications will only run on Windows NT/2000/XP!" >&5
45507echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45508 Applications will only run on Windows NT/2000/XP!" >&2;}
45509 wxUSE_UNICODE_MSLU=no
45510
45511fi
45512
45513 fi
45514fi
45515
45516if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
45517 cat >>confdefs.h <<\_ACEOF
45518#define wxUSE_EXPERIMENTAL_PRINTF 1
45519_ACEOF
45520
45521fi
45522
45523
45524if test "$wxUSE_POSTSCRIPT" = "yes" ; then
45525 cat >>confdefs.h <<\_ACEOF
45526#define wxUSE_POSTSCRIPT 1
45527_ACEOF
45528
45529fi
45530
45531cat >>confdefs.h <<\_ACEOF
45532#define wxUSE_AFM_FOR_POSTSCRIPT 1
45533_ACEOF
45534
45535
45536cat >>confdefs.h <<\_ACEOF
45537#define wxUSE_NORMALIZED_PS_FONTS 1
45538_ACEOF
45539
45540
45541
45542if test "$wxUSE_CONSTRAINTS" = "yes"; then
45543 cat >>confdefs.h <<\_ACEOF
45544#define wxUSE_CONSTRAINTS 1
45545_ACEOF
45546
45547 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
45548fi
45549
8a7b1113
VZ
45550if test "$wxUSE_MDI" = "yes"; then
45551 cat >>confdefs.h <<\_ACEOF
45552#define wxUSE_MDI 1
45553_ACEOF
45554
45555
45556 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45557 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45558#define wxUSE_MDI_ARCHITECTURE 1
45559_ACEOF
45560
8a7b1113
VZ
45561 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
45562 fi
a848cd7e
SC
45563fi
45564
45565if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
45566 cat >>confdefs.h <<\_ACEOF
45567#define wxUSE_DOC_VIEW_ARCHITECTURE 1
45568_ACEOF
45569
45570 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
45571 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45572 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
45573 fi
45574fi
45575
45576if test "$wxUSE_HELP" = "yes"; then
45577 cat >>confdefs.h <<\_ACEOF
45578#define wxUSE_HELP 1
45579_ACEOF
45580
45581 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
45582
45583 if test "$wxUSE_MSW" = 1; then
45584 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
45585 cat >>confdefs.h <<\_ACEOF
45586#define wxUSE_MS_HTML_HELP 1
45587_ACEOF
45588
45589 fi
45590 fi
45591
45592 if test "$wxUSE_WXHTML_HELP" = "yes"; then
45593 if test "$wxUSE_HTML" = "yes"; then
45594 cat >>confdefs.h <<\_ACEOF
45595#define wxUSE_WXHTML_HELP 1
45596_ACEOF
45597
45598 else
45599 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
45600echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
45601 wxUSE_WXHTML_HELP=no
45602 fi
45603 fi
45604fi
45605
45606if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45607 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45608 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
45609echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
45610 else
45611 cat >>confdefs.h <<\_ACEOF
45612#define wxUSE_PRINTING_ARCHITECTURE 1
45613_ACEOF
45614
45615 fi
45616 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
45617fi
45618
45619if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
45620 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
45621echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
45622 { (exit 1); exit 1; }; }
45623fi
45624
45625
efdf6afe
VZ
45626if test "$wxUSE_METAFILE" = "yes"; then
45627 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
45628 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
45629echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
45630 wxUSE_METAFILE=no
45631 fi
45632fi
45633
45634
a848cd7e
SC
45635if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
45636 -o "$wxUSE_CLIPBOARD" = "yes" \
45637 -o "$wxUSE_OLE" = "yes" \
45638 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
45639
45640for ac_header in ole2.h
45641do
45642as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45643if eval "test \"\${$as_ac_Header+set}\" = set"; then
45644 echo "$as_me:$LINENO: checking for $ac_header" >&5
45645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45646if eval "test \"\${$as_ac_Header+set}\" = set"; then
45647 echo $ECHO_N "(cached) $ECHO_C" >&6
45648fi
45649echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45650echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45651else
45652 # Is the header compilable?
45653echo "$as_me:$LINENO: checking $ac_header usability" >&5
45654echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45655cat >conftest.$ac_ext <<_ACEOF
45656/* confdefs.h. */
45657_ACEOF
45658cat confdefs.h >>conftest.$ac_ext
45659cat >>conftest.$ac_ext <<_ACEOF
45660/* end confdefs.h. */
45661$ac_includes_default
45662#include <$ac_header>
45663_ACEOF
45664rm -f conftest.$ac_objext
45665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45666 (eval $ac_compile) 2>conftest.er1
a848cd7e 45667 ac_status=$?
ac1cb8d3
VS
45668 grep -v '^ *+' conftest.er1 >conftest.err
45669 rm -f conftest.er1
45670 cat conftest.err >&5
a848cd7e
SC
45671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45672 (exit $ac_status); } &&
bb9e79c0 45673 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45675 (eval $ac_try) 2>&5
45676 ac_status=$?
45677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45678 (exit $ac_status); }; } &&
45679 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45681 (eval $ac_try) 2>&5
45682 ac_status=$?
45683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45684 (exit $ac_status); }; }; then
45685 ac_header_compiler=yes
45686else
45687 echo "$as_me: failed program was:" >&5
45688sed 's/^/| /' conftest.$ac_ext >&5
45689
45690ac_header_compiler=no
45691fi
ac1cb8d3 45692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45693echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45694echo "${ECHO_T}$ac_header_compiler" >&6
45695
45696# Is the header present?
45697echo "$as_me:$LINENO: checking $ac_header presence" >&5
45698echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45699cat >conftest.$ac_ext <<_ACEOF
45700/* confdefs.h. */
45701_ACEOF
45702cat confdefs.h >>conftest.$ac_ext
45703cat >>conftest.$ac_ext <<_ACEOF
45704/* end confdefs.h. */
45705#include <$ac_header>
45706_ACEOF
45707if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45709 ac_status=$?
45710 grep -v '^ *+' conftest.er1 >conftest.err
45711 rm -f conftest.er1
45712 cat conftest.err >&5
45713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45714 (exit $ac_status); } >/dev/null; then
45715 if test -s conftest.err; then
5d7b7554
VZ
45716 ac_cpp_err=$ac_cxx_preproc_warn_flag
45717 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
45718 else
45719 ac_cpp_err=
45720 fi
45721else
45722 ac_cpp_err=yes
45723fi
45724if test -z "$ac_cpp_err"; then
45725 ac_header_preproc=yes
45726else
45727 echo "$as_me: failed program was:" >&5
45728sed 's/^/| /' conftest.$ac_ext >&5
45729
45730 ac_header_preproc=no
45731fi
45732rm -f conftest.err conftest.$ac_ext
45733echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45734echo "${ECHO_T}$ac_header_preproc" >&6
45735
45736# So? What about this header?
5d7b7554 45737case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 45738 yes:no: )
a848cd7e
SC
45739 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45740echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
45741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45742echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45743 ac_header_preproc=yes
a848cd7e 45744 ;;
ac1cb8d3 45745 no:yes:* )
a848cd7e
SC
45746 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45747echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
45748 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45749echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45750 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45751echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45752 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45753echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
45754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45755echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
45756 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45757echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
45758 (
45759 cat <<\_ASBOX
ac1cb8d3
VS
45760## ----------------------------------------- ##
45761## Report this to wx-dev@lists.wxwidgets.org ##
45762## ----------------------------------------- ##
a848cd7e
SC
45763_ASBOX
45764 ) |
45765 sed "s/^/$as_me: WARNING: /" >&2
45766 ;;
45767esac
45768echo "$as_me:$LINENO: checking for $ac_header" >&5
45769echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45770if eval "test \"\${$as_ac_Header+set}\" = set"; then
45771 echo $ECHO_N "(cached) $ECHO_C" >&6
45772else
ac1cb8d3 45773 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
45774fi
45775echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45776echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45777
45778fi
45779if test `eval echo '${'$as_ac_Header'}'` = yes; then
45780 cat >>confdefs.h <<_ACEOF
45781#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45782_ACEOF
45783
45784fi
45785
45786done
45787
45788
45789 if test "$ac_cv_header_ole2_h" = "yes" ; then
45790 if test "$GCC" = yes ; then
a848cd7e
SC
45791 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
45792echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
45793 cat >conftest.$ac_ext <<_ACEOF
45794/* confdefs.h. */
45795_ACEOF
45796cat confdefs.h >>conftest.$ac_ext
45797cat >>conftest.$ac_ext <<_ACEOF
45798/* end confdefs.h. */
45799#include <windows.h>
45800 #include <ole2.h>
45801int
45802main ()
45803{
45804
45805 ;
45806 return 0;
45807}
45808_ACEOF
45809rm -f conftest.$ac_objext
45810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45811 (eval $ac_compile) 2>conftest.er1
a848cd7e 45812 ac_status=$?
ac1cb8d3
VS
45813 grep -v '^ *+' conftest.er1 >conftest.err
45814 rm -f conftest.er1
45815 cat conftest.err >&5
a848cd7e
SC
45816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45817 (exit $ac_status); } &&
bb9e79c0 45818 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45820 (eval $ac_try) 2>&5
45821 ac_status=$?
45822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45823 (exit $ac_status); }; } &&
45824 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45826 (eval $ac_try) 2>&5
45827 ac_status=$?
45828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45829 (exit $ac_status); }; }; then
45830 echo "$as_me:$LINENO: result: no" >&5
45831echo "${ECHO_T}no" >&6
45832else
45833 echo "$as_me: failed program was:" >&5
45834sed 's/^/| /' conftest.$ac_ext >&5
45835
45836echo "$as_me:$LINENO: result: yes" >&5
45837echo "${ECHO_T}yes" >&6
5ff751d6 45838 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 45839fi
ac1cb8d3 45840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45841 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
45842 if test "$wxUSE_OLE" = "yes" ; then
45843 cat >>confdefs.h <<\_ACEOF
45844#define wxUSE_OLE 1
f43426c1
RD
45845_ACEOF
45846
45847 cat >>confdefs.h <<\_ACEOF
45848#define wxUSE_OLE_AUTOMATION 1
45849_ACEOF
45850
45851 cat >>confdefs.h <<\_ACEOF
45852#define wxUSE_OLE_ACTIVEX 1
a848cd7e
SC
45853_ACEOF
45854
0b78747f 45855 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
45856 fi
45857 fi
45858
45859 if test "$wxUSE_DATAOBJ" = "yes" ; then
45860 cat >>confdefs.h <<\_ACEOF
45861#define wxUSE_DATAOBJ 1
45862_ACEOF
45863
45864 fi
45865 else
45866 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
45867echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
45868
45869 wxUSE_CLIPBOARD=no
45870 wxUSE_DRAG_AND_DROP=no
45871 wxUSE_DATAOBJ=no
45872 wxUSE_OLE=no
45873 fi
45874
45875 if test "$wxUSE_METAFILE" = "yes"; then
45876 cat >>confdefs.h <<\_ACEOF
45877#define wxUSE_METAFILE 1
45878_ACEOF
45879
45880
45881 cat >>confdefs.h <<\_ACEOF
45882#define wxUSE_ENH_METAFILE 1
45883_ACEOF
45884
45885 fi
45886fi
45887
45888if test "$wxUSE_IPC" = "yes"; then
0b78747f 45889 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
45890 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
45891echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 45892 wxUSE_IPC=no
a848cd7e
SC
45893 fi
45894
0b78747f
MW
45895 if test "$wxUSE_IPC" = "yes"; then
45896 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45897#define wxUSE_IPC 1
45898_ACEOF
45899
0b78747f
MW
45900 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
45901 fi
a848cd7e
SC
45902fi
45903
eb730a0c 45904if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
45905 if test "$wxUSE_MGL" = 1; then
45906 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
45907echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
45908 wxUSE_DATAOBJ=no
45909 else
45910 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
45911#define wxUSE_DATAOBJ 1
45912_ACEOF
45913
2113bc77 45914 fi
eb730a0c
JS
45915else
45916 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
45917echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
45918 wxUSE_CLIPBOARD=no
45919 wxUSE_DRAG_AND_DROP=no
45920fi
45921
a848cd7e
SC
45922if test "$wxUSE_CLIPBOARD" = "yes"; then
45923 if test "$wxUSE_MGL" = 1; then
45924 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
45925echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
45926 wxUSE_CLIPBOARD=no
45927 fi
45928
45929 if test "$wxUSE_CLIPBOARD" = "yes"; then
45930 cat >>confdefs.h <<\_ACEOF
45931#define wxUSE_CLIPBOARD 1
45932_ACEOF
45933
a848cd7e
SC
45934 fi
45935fi
45936
45937if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
45938 if test "$wxUSE_GTK" = 1; then
45939 if test "$WXGTK12" != 1; then
45940 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
45941echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
45942 wxUSE_DRAG_AND_DROP=no
45943 fi
45944 fi
45945
45946 if test "$wxUSE_MOTIF" = 1; then
45947 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
45948echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
45949 wxUSE_DRAG_AND_DROP=no
45950 fi
45951
45952 if test "$wxUSE_X11" = 1; then
45953 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
45954echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
45955 wxUSE_DRAG_AND_DROP=no
45956 fi
45957
45958 if test "$wxUSE_MGL" = 1; then
45959 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
45960echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
45961 wxUSE_DRAG_AND_DROP=no
45962 fi
45963
45964 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
45965 cat >>confdefs.h <<\_ACEOF
45966#define wxUSE_DRAG_AND_DROP 1
45967_ACEOF
45968
45969 fi
45970
45971fi
45972
45973if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
45974 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
45975fi
45976
45977if test "$wxUSE_SPLINES" = "yes" ; then
45978 cat >>confdefs.h <<\_ACEOF
45979#define wxUSE_SPLINES 1
45980_ACEOF
45981
45982fi
45983
fbe2ca43
SN
45984if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
45985 cat >>confdefs.h <<\_ACEOF
45986#define wxUSE_MOUSEWHEEL 1
45987_ACEOF
45988
45989fi
45990
a848cd7e
SC
45991
45992USES_CONTROLS=0
45993if test "$wxUSE_CONTROLS" = "yes"; then
45994 USES_CONTROLS=1
45995fi
45996
45997if test "$wxUSE_ACCEL" = "yes"; then
45998 cat >>confdefs.h <<\_ACEOF
45999#define wxUSE_ACCEL 1
46000_ACEOF
46001
46002 USES_CONTROLS=1
46003fi
46004
7067783d 46005if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
3ea50042
VZ
46006 cat >>confdefs.h <<\_ACEOF
46007#define wxUSE_ANIMATIONCTRL 1
46008_ACEOF
46009
46010 USES_CONTROLS=1
46011 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
46012fi
46013
a848cd7e
SC
46014if test "$wxUSE_BUTTON" = "yes"; then
46015 cat >>confdefs.h <<\_ACEOF
46016#define wxUSE_BUTTON 1
46017_ACEOF
46018
46019 USES_CONTROLS=1
46020fi
46021
46022if test "$wxUSE_BMPBUTTON" = "yes"; then
46023 cat >>confdefs.h <<\_ACEOF
46024#define wxUSE_BMPBUTTON 1
46025_ACEOF
46026
46027 USES_CONTROLS=1
46028fi
46029
46030if test "$wxUSE_CALCTRL" = "yes"; then
46031 cat >>confdefs.h <<\_ACEOF
46032#define wxUSE_CALENDARCTRL 1
46033_ACEOF
46034
46035 USES_CONTROLS=1
46036 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
46037fi
46038
46039if test "$wxUSE_CARET" = "yes"; then
46040 cat >>confdefs.h <<\_ACEOF
46041#define wxUSE_CARET 1
46042_ACEOF
46043
46044 USES_CONTROLS=1
46045 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
46046fi
46047
bd915ace
RR
46048if test "$wxUSE_COLLPANE" = "yes"; then
46049 cat >>confdefs.h <<\_ACEOF
46050#define wxUSE_COLLPANE 1
46051_ACEOF
46052
46053 USES_CONTROLS=1
46054 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
46055fi
46056
a848cd7e
SC
46057if test "$wxUSE_COMBOBOX" = "yes"; then
46058 cat >>confdefs.h <<\_ACEOF
46059#define wxUSE_COMBOBOX 1
46060_ACEOF
46061
46062 USES_CONTROLS=1
46063fi
46064
a57d600f 46065if test "$wxUSE_COMBOCTRL" = "yes"; then
642bcba9 46066 cat >>confdefs.h <<\_ACEOF
a57d600f 46067#define wxUSE_COMBOCTRL 1
642bcba9
VZ
46068_ACEOF
46069
46070 USES_CONTROLS=1
46071fi
46072
a848cd7e
SC
46073if test "$wxUSE_CHOICE" = "yes"; then
46074 cat >>confdefs.h <<\_ACEOF
46075#define wxUSE_CHOICE 1
46076_ACEOF
46077
46078 USES_CONTROLS=1
46079fi
46080
92bbdbcd
WS
46081if test "$wxUSE_CHOICEBOOK" = "yes"; then
46082 cat >>confdefs.h <<\_ACEOF
46083#define wxUSE_CHOICEBOOK 1
46084_ACEOF
46085
46086 USES_CONTROLS=1
46087fi
46088
a848cd7e
SC
46089if test "$wxUSE_CHECKBOX" = "yes"; then
46090 cat >>confdefs.h <<\_ACEOF
46091#define wxUSE_CHECKBOX 1
46092_ACEOF
46093
46094 USES_CONTROLS=1
46095fi
46096
46097if test "$wxUSE_CHECKLST" = "yes"; then
46098 cat >>confdefs.h <<\_ACEOF
46099#define wxUSE_CHECKLISTBOX 1
46100_ACEOF
46101
46102 USES_CONTROLS=1
46103 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
46104fi
46105
e9263684
VZ
46106if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
46107 cat >>confdefs.h <<\_ACEOF
46108#define wxUSE_COLOURPICKERCTRL 1
46109_ACEOF
46110
46111 USES_CONTROLS=1
46112fi
46113
da98e9be
VZ
46114if test "$wxUSE_DATEPICKCTRL" = "yes"; then
46115 cat >>confdefs.h <<\_ACEOF
46116#define wxUSE_DATEPICKCTRL 1
46117_ACEOF
46118
46119 USES_CONTROLS=1
46120fi
46121
e9263684
VZ
46122if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
46123 cat >>confdefs.h <<\_ACEOF
46124#define wxUSE_DIRPICKERCTRL 1
46125_ACEOF
46126
46127 USES_CONTROLS=1
46128fi
46129
46130if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
46131 cat >>confdefs.h <<\_ACEOF
46132#define wxUSE_FILEPICKERCTRL 1
46133_ACEOF
46134
46135 USES_CONTROLS=1
46136fi
46137
46138if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
46139 cat >>confdefs.h <<\_ACEOF
46140#define wxUSE_FONTPICKERCTRL 1
46141_ACEOF
46142
46143 USES_CONTROLS=1
46144fi
46145
a848cd7e
SC
46146if test "$wxUSE_DISPLAY" = "yes"; then
46147 cat >>confdefs.h <<\_ACEOF
46148#define wxUSE_DISPLAY 1
46149_ACEOF
46150
0b78747f 46151 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
46152fi
46153
88bbc332
RR
46154if test "$wxUSE_DETECT_SM" = "yes"; then
46155 cat >>confdefs.h <<\_ACEOF
46156#define wxUSE_DETECT_SM 1
46157_ACEOF
46158
46159fi
46160
a848cd7e
SC
46161if test "$wxUSE_GAUGE" = "yes"; then
46162 cat >>confdefs.h <<\_ACEOF
46163#define wxUSE_GAUGE 1
46164_ACEOF
46165
46166 USES_CONTROLS=1
46167fi
46168
46169if test "$wxUSE_GRID" = "yes"; then
46170 cat >>confdefs.h <<\_ACEOF
46171#define wxUSE_GRID 1
46172_ACEOF
46173
46174 USES_CONTROLS=1
46175 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
46176fi
46177
6954625c
VZ
46178if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
46179 cat >>confdefs.h <<\_ACEOF
46180#define wxUSE_HYPERLINKCTRL 1
46181_ACEOF
46182
46183 USES_CONTROLS=1
46184fi
46185
95a46303
RR
46186if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
46187 cat >>confdefs.h <<\_ACEOF
46188#define wxUSE_BITMAPCOMBOBOX 1
46189_ACEOF
46190
46191 USES_CONTROLS=1
46192fi
46193
20e34ecc
RR
46194if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
46195 cat >>confdefs.h <<\_ACEOF
46196#define wxUSE_DATAVIEWCTRL 1
46197_ACEOF
46198
46199 USES_CONTROLS=1
46200 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
46201fi
46202
a848cd7e
SC
46203if test "$wxUSE_IMAGLIST" = "yes"; then
46204 cat >>confdefs.h <<\_ACEOF
46205#define wxUSE_IMAGLIST 1
46206_ACEOF
46207
46208fi
46209
46210if test "$wxUSE_LISTBOOK" = "yes"; then
46211 cat >>confdefs.h <<\_ACEOF
46212#define wxUSE_LISTBOOK 1
46213_ACEOF
46214
46215 USES_CONTROLS=1
46216fi
46217
46218if test "$wxUSE_LISTBOX" = "yes"; then
46219 cat >>confdefs.h <<\_ACEOF
46220#define wxUSE_LISTBOX 1
46221_ACEOF
46222
46223 USES_CONTROLS=1
0b78747f 46224 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
46225fi
46226
46227if test "$wxUSE_LISTCTRL" = "yes"; then
46228 if test "$wxUSE_IMAGLIST" = "yes"; then
46229 cat >>confdefs.h <<\_ACEOF
46230#define wxUSE_LISTCTRL 1
46231_ACEOF
46232
46233 USES_CONTROLS=1
46234 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
46235 else
46236 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
46237echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
46238 fi
46239fi
46240
46241if test "$wxUSE_NOTEBOOK" = "yes"; then
46242 cat >>confdefs.h <<\_ACEOF
46243#define wxUSE_NOTEBOOK 1
46244_ACEOF
46245
46246 USES_CONTROLS=1
46247 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
46248fi
46249
a57d600f 46250if test "$wxUSE_ODCOMBOBOX" = "yes"; then
642bcba9 46251 cat >>confdefs.h <<\_ACEOF
a57d600f 46252#define wxUSE_ODCOMBOBOX 1
642bcba9
VZ
46253_ACEOF
46254
46255 USES_CONTROLS=1
46256 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
46257fi
46258
a848cd7e
SC
46259
46260if test "$wxUSE_RADIOBOX" = "yes"; then
46261 cat >>confdefs.h <<\_ACEOF
46262#define wxUSE_RADIOBOX 1
46263_ACEOF
46264
46265 USES_CONTROLS=1
46266fi
46267
46268if test "$wxUSE_RADIOBTN" = "yes"; then
46269 cat >>confdefs.h <<\_ACEOF
46270#define wxUSE_RADIOBTN 1
46271_ACEOF
46272
46273 USES_CONTROLS=1
46274fi
46275
46276if test "$wxUSE_SASH" = "yes"; then
46277 cat >>confdefs.h <<\_ACEOF
46278#define wxUSE_SASH 1
46279_ACEOF
46280
46281 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
46282fi
46283
46284if test "$wxUSE_SCROLLBAR" = "yes"; then
46285 cat >>confdefs.h <<\_ACEOF
46286#define wxUSE_SCROLLBAR 1
46287_ACEOF
46288
46289 USES_CONTROLS=1
46290 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
46291fi
46292
46293if test "$wxUSE_SLIDER" = "yes"; then
46294 cat >>confdefs.h <<\_ACEOF
46295#define wxUSE_SLIDER 1
46296_ACEOF
46297
46298 USES_CONTROLS=1
46299fi
46300
46301if test "$wxUSE_SPINBTN" = "yes"; then
46302 cat >>confdefs.h <<\_ACEOF
46303#define wxUSE_SPINBTN 1
46304_ACEOF
46305
46306 USES_CONTROLS=1
46307fi
46308
46309if test "$wxUSE_SPINCTRL" = "yes"; then
46310 cat >>confdefs.h <<\_ACEOF
46311#define wxUSE_SPINCTRL 1
46312_ACEOF
46313
46314 USES_CONTROLS=1
46315fi
46316
46317if test "$wxUSE_SPLITTER" = "yes"; then
46318 cat >>confdefs.h <<\_ACEOF
46319#define wxUSE_SPLITTER 1
46320_ACEOF
46321
46322 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
46323fi
46324
46325if test "$wxUSE_STATBMP" = "yes"; then
46326 cat >>confdefs.h <<\_ACEOF
46327#define wxUSE_STATBMP 1
46328_ACEOF
46329
46330 USES_CONTROLS=1
46331fi
46332
46333if test "$wxUSE_STATBOX" = "yes"; then
46334 cat >>confdefs.h <<\_ACEOF
46335#define wxUSE_STATBOX 1
46336_ACEOF
46337
46338 USES_CONTROLS=1
46339fi
46340
46341if test "$wxUSE_STATTEXT" = "yes"; then
46342 cat >>confdefs.h <<\_ACEOF
46343#define wxUSE_STATTEXT 1
46344_ACEOF
46345
46346 USES_CONTROLS=1
46347fi
46348
46349if test "$wxUSE_STATLINE" = "yes"; then
46350 cat >>confdefs.h <<\_ACEOF
46351#define wxUSE_STATLINE 1
46352_ACEOF
46353
46354 USES_CONTROLS=1
46355fi
46356
46357if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
46358 cat >>confdefs.h <<\_ACEOF
46359#define wxUSE_NATIVE_STATUSBAR 1
46360_ACEOF
46361
a848cd7e
SC
46362 cat >>confdefs.h <<\_ACEOF
46363#define wxUSE_STATUSBAR 1
46364_ACEOF
46365
46366 USES_CONTROLS=1
46367
46368 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
46369fi
46370
f10e38c4 46371if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
46372 cat >>confdefs.h <<\_ACEOF
46373#define wxUSE_TAB_DIALOG 1
46374_ACEOF
46375
a848cd7e
SC
46376fi
46377
46378if test "$wxUSE_TEXTCTRL" = "yes"; then
46379 cat >>confdefs.h <<\_ACEOF
46380#define wxUSE_TEXTCTRL 1
46381_ACEOF
46382
46383 USES_CONTROLS=1
46384 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
46385fi
46386
46387if test "$wxUSE_TOGGLEBTN" = "yes"; then
46388 if test "$wxUSE_COCOA" = 1 ; then
46389 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
46390echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
46391 wxUSE_TOGGLEBTN=no
46392 fi
a848cd7e
SC
46393
46394 if test "$wxUSE_TOGGLEBTN" = "yes"; then
46395 cat >>confdefs.h <<\_ACEOF
46396#define wxUSE_TOGGLEBTN 1
46397_ACEOF
46398
46399 USES_CONTROLS=1
46400 fi
46401fi
46402
a848cd7e
SC
46403if test "$wxUSE_TOOLBAR" = "yes"; then
46404 cat >>confdefs.h <<\_ACEOF
46405#define wxUSE_TOOLBAR 1
46406_ACEOF
46407
46408 USES_CONTROLS=1
46409
452b6243
VS
46410 if test "$wxUSE_UNIVERSAL" = "yes"; then
46411 wxUSE_TOOLBAR_NATIVE="no"
46412 else
46413 wxUSE_TOOLBAR_NATIVE="yes"
a848cd7e
SC
46414 cat >>confdefs.h <<\_ACEOF
46415#define wxUSE_TOOLBAR_NATIVE 1
46416_ACEOF
46417
a848cd7e
SC
46418 fi
46419
46420 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
46421fi
46422
46423if test "$wxUSE_TOOLTIPS" = "yes"; then
46424 if test "$wxUSE_MOTIF" = 1; then
46425 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
46426echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
46427 else
46428 if test "$wxUSE_UNIVERSAL" = "yes"; then
46429 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
46430echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
46431 else
46432 cat >>confdefs.h <<\_ACEOF
46433#define wxUSE_TOOLTIPS 1
46434_ACEOF
46435
46436 fi
46437 fi
46438fi
46439
0093c2fc
VZ
46440if test "$wxUSE_TREEBOOK" = "yes"; then
46441 cat >>confdefs.h <<\_ACEOF
46442#define wxUSE_TREEBOOK 1
46443_ACEOF
46444
46445 USES_CONTROLS=1
46446fi
46447
5ec3bc43
JS
46448if test "$wxUSE_TOOLBOOK" = "yes"; then
46449 cat >>confdefs.h <<\_ACEOF
46450#define wxUSE_TOOLBOOK 1
46451_ACEOF
46452
46453 USES_CONTROLS=1
46454fi
46455
a848cd7e
SC
46456if test "$wxUSE_TREECTRL" = "yes"; then
46457 if test "$wxUSE_IMAGLIST" = "yes"; then
46458 cat >>confdefs.h <<\_ACEOF
46459#define wxUSE_TREECTRL 1
46460_ACEOF
46461
46462 USES_CONTROLS=1
46463 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
46464 else
46465 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
46466echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
46467 fi
46468fi
46469
46470if test "$wxUSE_POPUPWIN" = "yes"; then
46471 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
46472 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
46473echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
46474 else
46475 if test "$wxUSE_PM" = 1; then
46476 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
46477echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
46478 else
46479 cat >>confdefs.h <<\_ACEOF
46480#define wxUSE_POPUPWIN 1
46481_ACEOF
46482
0b78747f 46483 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
46484
46485 USES_CONTROLS=1
46486 fi
46487 fi
46488fi
46489
0dcd06dd 46490if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
46491 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
46492 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
46493echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
46494 else
46495 cat >>confdefs.h <<\_ACEOF
46496#define wxUSE_DIALUP_MANAGER 1
46497_ACEOF
46498
46499 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
46500 fi
46501fi
46502
a848cd7e
SC
46503if test "$wxUSE_TIPWINDOW" = "yes"; then
46504 if test "$wxUSE_PM" = 1; then
46505 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
46506echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
46507 else
46508 cat >>confdefs.h <<\_ACEOF
46509#define wxUSE_TIPWINDOW 1
46510_ACEOF
46511
46512 fi
46513fi
46514
46515if test "$USES_CONTROLS" = 1; then
46516 cat >>confdefs.h <<\_ACEOF
46517#define wxUSE_CONTROLS 1
46518_ACEOF
46519
46520fi
46521
46522
46523if test "$wxUSE_ACCESSIBILITY" = "yes"; then
46524 cat >>confdefs.h <<\_ACEOF
46525#define wxUSE_ACCESSIBILITY 1
46526_ACEOF
46527
46528 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
46529fi
46530
38b4a946
VZ
46531if test "$wxUSE_DC_CACHEING" = "yes"; then
46532 cat >>confdefs.h <<\_ACEOF
46533#define wxUSE_DC_CACHEING 1
46534_ACEOF
46535
46536fi
46537
a848cd7e
SC
46538if test "$wxUSE_DRAGIMAGE" = "yes"; then
46539 cat >>confdefs.h <<\_ACEOF
46540#define wxUSE_DRAGIMAGE 1
46541_ACEOF
46542
46543 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
46544fi
46545
46546if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
46547 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
46548 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
46549echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
46550 else
46551 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
46552#define wxUSE_EXCEPTIONS 1
46553_ACEOF
46554
07bea8f0
VS
46555 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
46556 fi
a848cd7e
SC
46557fi
46558
46559USE_HTML=0
46560if test "$wxUSE_HTML" = "yes"; then
46561 cat >>confdefs.h <<\_ACEOF
46562#define wxUSE_HTML 1
46563_ACEOF
46564
46565 USE_HTML=1
46566 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
46567 if test "$wxUSE_MAC" = 1; then
46568 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
46569 fi
a848cd7e 46570fi
646b6ec1 46571if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 46572 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 46573 old_CPPFLAGS="$CPPFLAGS"
c92ad099 46574 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
46575 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
46576echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
46577if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
46578 echo $ECHO_N "(cached) $ECHO_C" >&6
46579else
46580 cat >conftest.$ac_ext <<_ACEOF
46581/* confdefs.h. */
46582_ACEOF
46583cat confdefs.h >>conftest.$ac_ext
46584cat >>conftest.$ac_ext <<_ACEOF
46585/* end confdefs.h. */
46586#include <Carbon/Carbon.h>
46587
46588#include <WebKit/HIWebView.h>
46589_ACEOF
46590rm -f conftest.$ac_objext
46591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46592 (eval $ac_compile) 2>conftest.er1
46593 ac_status=$?
46594 grep -v '^ *+' conftest.er1 >conftest.err
46595 rm -f conftest.er1
46596 cat conftest.err >&5
46597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46598 (exit $ac_status); } &&
bb9e79c0 46599 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
46600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46601 (eval $ac_try) 2>&5
46602 ac_status=$?
46603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46604 (exit $ac_status); }; } &&
46605 { ac_try='test -s conftest.$ac_objext'
46606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46607 (eval $ac_try) 2>&5
46608 ac_status=$?
46609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46610 (exit $ac_status); }; }; then
46611 ac_cv_header_WebKit_HIWebView_h=yes
46612else
46613 echo "$as_me: failed program was:" >&5
46614sed 's/^/| /' conftest.$ac_ext >&5
46615
46616ac_cv_header_WebKit_HIWebView_h=no
46617fi
46618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46619fi
46620echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
46621echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
46622if test $ac_cv_header_WebKit_HIWebView_h = yes; then
46623
46624 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
46625#define wxUSE_WEBKIT 1
46626_ACEOF
46627
07bea8f0
VS
46628 WEBKIT_LINK="-framework WebKit"
46629
46630else
46631
46632 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
46633echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
46634 wxUSE_WEBKIT=no
46635
646b6ec1
VS
46636fi
46637
07bea8f0
VS
46638
46639 CPPFLAGS="$old_CPPFLAGS"
46640 elif test "$wxUSE_COCOA" = 1; then
46641 cat >>confdefs.h <<\_ACEOF
46642#define wxUSE_WEBKIT 1
46643_ACEOF
46644
46645 else
46646 wxUSE_WEBKIT=no
46647 fi
46648fi
46649
9a8f0513
VS
46650USE_XRC=0
46651if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
46652 if test "$wxUSE_XML" != "yes"; then
46653 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
46654echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
46655 wxUSE_XRC=no
46656 else
46657 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
46658#define wxUSE_XRC 1
46659_ACEOF
46660
d2ebf0b7
VS
46661 USE_XRC=1
46662 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
46663 fi
9a8f0513 46664fi
07bea8f0 46665
3f60522a
JS
46666USE_AUI=0
46667if test "$wxUSE_AUI" = "yes"; then
46668 cat >>confdefs.h <<\_ACEOF
46669#define wxUSE_AUI 1
46670_ACEOF
46671
46672 USE_AUI=1
46673 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
46674fi
46675
a848cd7e
SC
46676if test "$wxUSE_MENUS" = "yes"; then
46677 cat >>confdefs.h <<\_ACEOF
46678#define wxUSE_MENUS 1
46679_ACEOF
46680
46681 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
46682fi
46683
46684if test "$wxUSE_METAFILE" = "yes"; then
46685 cat >>confdefs.h <<\_ACEOF
46686#define wxUSE_METAFILE 1
46687_ACEOF
46688
46689fi
46690
46691if test "$wxUSE_MIMETYPE" = "yes"; then
46692 cat >>confdefs.h <<\_ACEOF
46693#define wxUSE_MIMETYPE 1
46694_ACEOF
46695
46696fi
46697
46698if test "$wxUSE_MINIFRAME" = "yes"; then
46699 cat >>confdefs.h <<\_ACEOF
46700#define wxUSE_MINIFRAME 1
46701_ACEOF
46702
46703 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
46704fi
46705
46706if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
46707 cat >>confdefs.h <<\_ACEOF
46708#define wxUSE_SYSTEM_OPTIONS 1
46709_ACEOF
46710
46711 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 46712 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
46713 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
46714 fi
46715fi
46716
46717
46718if test "$wxUSE_VALIDATORS" = "yes"; then
46719 cat >>confdefs.h <<\_ACEOF
46720#define wxUSE_VALIDATORS 1
46721_ACEOF
46722
46723 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
46724fi
46725
46726if test "$wxUSE_PALETTE" = "yes" ; then
46727 cat >>confdefs.h <<\_ACEOF
46728#define wxUSE_PALETTE 1
46729_ACEOF
46730
46731fi
46732
46733if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
46734 LIBS=" -lunicows $LIBS"
46735fi
46736
91dea314
MW
46737USE_RICHTEXT=0
46738if test "$wxUSE_RICHTEXT" = "yes"; then
46739 cat >>confdefs.h <<\_ACEOF
46740#define wxUSE_RICHTEXT 1
46741_ACEOF
46742
46743 USE_RICHTEXT=1
46744 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
46745fi
46746
a848cd7e
SC
46747
46748if test "$wxUSE_IMAGE" = "yes" ; then
46749 cat >>confdefs.h <<\_ACEOF
46750#define wxUSE_IMAGE 1
46751_ACEOF
46752
46753
46754 if test "$wxUSE_GIF" = "yes" ; then
46755 cat >>confdefs.h <<\_ACEOF
46756#define wxUSE_GIF 1
46757_ACEOF
46758
46759 fi
46760
46761 if test "$wxUSE_PCX" = "yes" ; then
46762 cat >>confdefs.h <<\_ACEOF
46763#define wxUSE_PCX 1
46764_ACEOF
46765
46766 fi
46767
bb9e79c0
VZ
46768 if test "$wxUSE_TGA" = "yes" ; then
46769 cat >>confdefs.h <<\_ACEOF
46770#define wxUSE_TGA 1
46771_ACEOF
46772
46773 fi
46774
a848cd7e
SC
46775 if test "$wxUSE_IFF" = "yes" ; then
46776 cat >>confdefs.h <<\_ACEOF
46777#define wxUSE_IFF 1
46778_ACEOF
46779
46780 fi
46781
46782 if test "$wxUSE_PNM" = "yes" ; then
46783 cat >>confdefs.h <<\_ACEOF
46784#define wxUSE_PNM 1
46785_ACEOF
46786
46787 fi
46788
46789 if test "$wxUSE_XPM" = "yes" ; then
46790 cat >>confdefs.h <<\_ACEOF
46791#define wxUSE_XPM 1
46792_ACEOF
46793
46794 fi
46795
46796 if test "$wxUSE_ICO_CUR" = "yes" ; then
46797 cat >>confdefs.h <<\_ACEOF
46798#define wxUSE_ICO_CUR 1
46799_ACEOF
46800
46801 fi
46802fi
46803
46804
319c5ed4
VZ
46805if test "$wxUSE_ABOUTDLG" = "yes"; then
46806 cat >>confdefs.h <<\_ACEOF
46807#define wxUSE_ABOUTDLG 1
46808_ACEOF
46809
46810fi
46811
a848cd7e
SC
46812if test "$wxUSE_CHOICEDLG" = "yes"; then
46813 cat >>confdefs.h <<\_ACEOF
46814#define wxUSE_CHOICEDLG 1
46815_ACEOF
46816
46817fi
46818
46819if test "$wxUSE_COLOURDLG" = "yes"; then
46820 cat >>confdefs.h <<\_ACEOF
46821#define wxUSE_COLOURDLG 1
46822_ACEOF
46823
46824fi
46825
46826if test "$wxUSE_FILEDLG" = "yes"; then
46827 cat >>confdefs.h <<\_ACEOF
46828#define wxUSE_FILEDLG 1
46829_ACEOF
46830
46831fi
46832
46833if test "$wxUSE_FINDREPLDLG" = "yes"; then
46834 cat >>confdefs.h <<\_ACEOF
46835#define wxUSE_FINDREPLDLG 1
46836_ACEOF
46837
46838fi
46839
46840if test "$wxUSE_FONTDLG" = "yes"; then
46841 cat >>confdefs.h <<\_ACEOF
46842#define wxUSE_FONTDLG 1
46843_ACEOF
46844
46845fi
46846
46847if test "$wxUSE_DIRDLG" = "yes"; then
46848 if test "$wxUSE_TREECTRL" != "yes"; then
46849 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
46850echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
46851 else
46852 cat >>confdefs.h <<\_ACEOF
46853#define wxUSE_DIRDLG 1
46854_ACEOF
46855
46856 fi
46857fi
46858
46859if test "$wxUSE_MSGDLG" = "yes"; then
46860 cat >>confdefs.h <<\_ACEOF
46861#define wxUSE_MSGDLG 1
46862_ACEOF
46863
46864fi
46865
46866if test "$wxUSE_NUMBERDLG" = "yes"; then
46867 cat >>confdefs.h <<\_ACEOF
46868#define wxUSE_NUMBERDLG 1
46869_ACEOF
46870
46871fi
46872
46873if test "$wxUSE_PROGRESSDLG" = "yes"; then
46874 if test "$wxUSE_CONSTRAINTS" != "yes"; then
46875 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
46876echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
46877 else
46878 cat >>confdefs.h <<\_ACEOF
46879#define wxUSE_PROGRESSDLG 1
46880_ACEOF
46881
46882 fi
46883fi
46884
46885if test "$wxUSE_SPLASH" = "yes"; then
46886 cat >>confdefs.h <<\_ACEOF
46887#define wxUSE_SPLASH 1
46888_ACEOF
46889
2057db16 46890 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
46891fi
46892
46893if test "$wxUSE_STARTUP_TIPS" = "yes"; then
46894 if test "$wxUSE_CONSTRAINTS" != "yes"; then
46895 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
46896echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
46897 else
46898 cat >>confdefs.h <<\_ACEOF
46899#define wxUSE_STARTUP_TIPS 1
46900_ACEOF
46901
46902 fi
46903fi
46904
46905if test "$wxUSE_TEXTDLG" = "yes"; then
46906 cat >>confdefs.h <<\_ACEOF
46907#define wxUSE_TEXTDLG 1
46908_ACEOF
46909
46910fi
46911
46912if test "$wxUSE_WIZARDDLG" = "yes"; then
46913 cat >>confdefs.h <<\_ACEOF
46914#define wxUSE_WIZARDDLG 1
46915_ACEOF
46916
46917 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
46918fi
46919
46920
64b75e64
RD
46921if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
46922 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
46923 cat >>confdefs.h <<\_ACEOF
46924#define wxUSE_GRAPHICS_CONTEXT 1
46925_ACEOF
46926
46927 elif test "$wxUSE_GTK" != 1; then
46928 cat >>confdefs.h <<\_ACEOF
46929#define wxUSE_GRAPHICS_CONTEXT 1
46930_ACEOF
46931
46932 else
46933
46934pkg_failed=no
46935echo "$as_me:$LINENO: checking for CAIRO" >&5
46936echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6
46937
46938if test -n "$PKG_CONFIG"; then
46939 if test -n "$CAIRO_CFLAGS"; then
46940 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
46941 else
46942 if test -n "$PKG_CONFIG" && \
46943 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46944 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46945 ac_status=$?
46946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46947 (exit $ac_status); }; then
46948 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
46949else
46950 pkg_failed=yes
46951fi
46952 fi
46953else
46954 pkg_failed=untried
46955fi
46956if test -n "$PKG_CONFIG"; then
46957 if test -n "$CAIRO_LIBS"; then
46958 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
46959 else
46960 if test -n "$PKG_CONFIG" && \
46961 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46962 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46963 ac_status=$?
46964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46965 (exit $ac_status); }; then
46966 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
46967else
46968 pkg_failed=yes
46969fi
46970 fi
46971else
46972 pkg_failed=untried
46973fi
46974
46975
46976
46977if test $pkg_failed = yes; then
46978
46979if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46980 _pkg_short_errors_supported=yes
46981else
46982 _pkg_short_errors_supported=no
46983fi
46984 if test $_pkg_short_errors_supported = yes; then
46985 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
46986 else
46987 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
46988 fi
46989 # Put the nasty error message in config.log where it belongs
46990 echo "$CAIRO_PKG_ERRORS" >&5
46991
ec3edcc9 46992 { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
64b75e64
RD
46993echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46994
64b75e64 46995elif test $pkg_failed = untried; then
ec3edcc9 46996 { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
64b75e64
RD
46997echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46998
64b75e64
RD
46999else
47000 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
47001 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
47002 echo "$as_me:$LINENO: result: yes" >&5
47003echo "${ECHO_T}yes" >&6
ec3edcc9 47004 cat >>confdefs.h <<\_ACEOF
64b75e64
RD
47005#define wxUSE_GRAPHICS_CONTEXT 1
47006_ACEOF
47007
64b75e64
RD
47008fi
47009 fi
47010fi
47011
47012
f10e38c4
VZ
47013USE_MEDIA=0
47014
ce756cb0 47015if test "$wxUSE_MEDIACTRL" = "yes"; then
2f6c5bb5
VZ
47016 USE_MEDIA=1
47017
ce756cb0 47018 if test "$wxUSE_GTK" = 1; then
c9a66001 47019 wxUSE_GSTREAMER="no"
ce756cb0 47020
f10e38c4
VZ
47021 GST_VERSION_MAJOR=0
47022 GST_VERSION_MINOR=10
2f6c5bb5 47023 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
f10e38c4
VZ
47024
47025 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 47026
3ecd9f92
MW
47027pkg_failed=no
47028echo "$as_me:$LINENO: checking for GST" >&5
47029echo $ECHO_N "checking for GST... $ECHO_C" >&6
ce756cb0 47030
3ecd9f92
MW
47031if test -n "$PKG_CONFIG"; then
47032 if test -n "$GST_CFLAGS"; then
47033 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
47034 else
47035 if test -n "$PKG_CONFIG" && \
47036 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
47037 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
47038 ac_status=$?
47039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47040 (exit $ac_status); }; then
47041 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 47042else
3ecd9f92
MW
47043 pkg_failed=yes
47044fi
47045 fi
47046else
47047 pkg_failed=untried
dae87f93 47048fi
dae87f93 47049if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
47050 if test -n "$GST_LIBS"; then
47051 pkg_cv_GST_LIBS="$GST_LIBS"
47052 else
47053 if test -n "$PKG_CONFIG" && \
47054 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
47055 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
47056 ac_status=$?
47057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47058 (exit $ac_status); }; then
47059 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 47060else
3ecd9f92
MW
47061 pkg_failed=yes
47062fi
47063 fi
47064else
47065 pkg_failed=untried
dae87f93
RN
47066fi
47067
dae87f93 47068
2f6c5bb5 47069
3ecd9f92 47070if test $pkg_failed = yes; then
ce756cb0 47071
3ecd9f92
MW
47072if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47073 _pkg_short_errors_supported=yes
47074else
47075 _pkg_short_errors_supported=no
47076fi
47077 if test $_pkg_short_errors_supported = yes; then
47078 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
47079 else
47080 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
dae87f93 47081 fi
3ecd9f92
MW
47082 # Put the nasty error message in config.log where it belongs
47083 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
47084
47085
3ecd9f92
MW
47086 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
47087echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
47088 GST_VERSION_MINOR=8
dae87f93 47089
ce756cb0 47090
3ecd9f92 47091elif test $pkg_failed = untried; then
dae87f93 47092
2f6c5bb5
VZ
47093 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
47094echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
f10e38c4 47095 GST_VERSION_MINOR=8
dae87f93 47096
2f6c5bb5 47097
3ecd9f92
MW
47098else
47099 GST_CFLAGS=$pkg_cv_GST_CFLAGS
47100 GST_LIBS=$pkg_cv_GST_LIBS
47101 echo "$as_me:$LINENO: result: yes" >&5
47102echo "${ECHO_T}yes" >&6
47103
47104 wxUSE_GSTREAMER="yes"
47105 GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
dae87f93 47106
3ecd9f92 47107fi
2f6c5bb5
VZ
47108 else
47109 GST_VERSION_MINOR=8
f10e38c4 47110 fi
dae87f93 47111
2f6c5bb5
VZ
47112 if test $GST_VERSION_MINOR = "8"; then
47113 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 47114
3ecd9f92
MW
47115pkg_failed=no
47116echo "$as_me:$LINENO: checking for GST" >&5
47117echo $ECHO_N "checking for GST... $ECHO_C" >&6
dae87f93 47118
3ecd9f92
MW
47119if test -n "$PKG_CONFIG"; then
47120 if test -n "$GST_CFLAGS"; then
47121 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
47122 else
47123 if test -n "$PKG_CONFIG" && \
47124 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
47125 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
47126 ac_status=$?
47127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47128 (exit $ac_status); }; then
47129 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 47130else
3ecd9f92
MW
47131 pkg_failed=yes
47132fi
47133 fi
47134else
47135 pkg_failed=untried
dae87f93 47136fi
f10e38c4 47137if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
47138 if test -n "$GST_LIBS"; then
47139 pkg_cv_GST_LIBS="$GST_LIBS"
47140 else
47141 if test -n "$PKG_CONFIG" && \
47142 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
47143 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
47144 ac_status=$?
47145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47146 (exit $ac_status); }; then
47147 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 47148else
3ecd9f92
MW
47149 pkg_failed=yes
47150fi
47151 fi
47152else
47153 pkg_failed=untried
dae87f93
RN
47154fi
47155
ce756cb0 47156
2f6c5bb5 47157
3ecd9f92 47158if test $pkg_failed = yes; then
dae87f93 47159
3ecd9f92
MW
47160if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47161 _pkg_short_errors_supported=yes
47162else
47163 _pkg_short_errors_supported=no
47164fi
47165 if test $_pkg_short_errors_supported = yes; then
47166 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
47167 else
47168 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
dae87f93 47169 fi
3ecd9f92
MW
47170 # Put the nasty error message in config.log where it belongs
47171 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
47172
47173
3ecd9f92
MW
47174 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
47175echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 47176
3ecd9f92 47177elif test $pkg_failed = untried; then
ce756cb0 47178
2f6c5bb5
VZ
47179 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
47180echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 47181
3ecd9f92
MW
47182else
47183 GST_CFLAGS=$pkg_cv_GST_CFLAGS
47184 GST_LIBS=$pkg_cv_GST_LIBS
47185 echo "$as_me:$LINENO: result: yes" >&5
47186echo "${ECHO_T}yes" >&6
47187 wxUSE_GSTREAMER="yes"
47188fi
dae87f93 47189 fi
ce756cb0 47190
f10e38c4 47191
dae87f93 47192 if test "$wxUSE_GSTREAMER" = "yes"; then
c9a66001
VZ
47193 case "${host}" in
47194 *-*-solaris2* )
47195 if "$GCC" = yes; then
47196 GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
47197 GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
47198 fi
47199 esac
47200
47201 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
47202 LIBS="$GST_LIBS $LIBS"
47203
dae87f93 47204 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
47205#define wxUSE_GSTREAMER 1
47206_ACEOF
47207
2f6c5bb5
VZ
47208 else
47209 USE_MEDIA=0
ce756cb0
RN
47210 fi
47211 fi
2f6c5bb5
VZ
47212
47213 if test $USE_MEDIA = 1; then
47214 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
47215 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
47216#define wxUSE_MEDIACTRL 1
47217_ACEOF
47218
2f6c5bb5 47219 fi
ce756cb0
RN
47220fi
47221
47222
a848cd7e
SC
47223if test "$cross_compiling" = "yes"; then
47224 OSINFO="\"$host\""
47225else
47226 OSINFO=`uname -s -r -m`
47227 OSINFO="\"$OSINFO\""
47228fi
47229
47230cat >>confdefs.h <<_ACEOF
47231#define WXWIN_OS_DESCRIPTION $OSINFO
47232_ACEOF
47233
47234
47235
47236if test "x$prefix" != "xNONE"; then
47237 wxPREFIX=$prefix
47238else
47239 wxPREFIX=$ac_default_prefix
47240fi
47241
47242cat >>confdefs.h <<_ACEOF
47243#define wxINSTALL_PREFIX "$wxPREFIX"
47244_ACEOF
47245
47246
a848cd7e
SC
47247
47248
47249CORE_BASE_LIBS="net base"
47250CORE_GUI_LIBS="adv core"
47251
47252if test "$wxUSE_XML" = "yes" ; then
47253 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
47254fi
47255if test "$wxUSE_ODBC" != "no" ; then
47256 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
47257 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
47258fi
47259if test "$wxUSE_HTML" = "yes" ; then
47260 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
47261fi
61639efb
VZ
47262if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47263 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
47264fi
9a8f0513
VS
47265if test "$wxUSE_XRC" = "yes" ; then
47266 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
47267fi
3f60522a
JS
47268if test "$wxUSE_AUI" = "yes" ; then
47269 CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
47270fi
a848cd7e
SC
47271
47272if test "$wxUSE_GUI" != "yes"; then
47273 CORE_GUI_LIBS=""
47274fi
47275
47276
47277
47278
47279
5d7b7554
VZ
47280ac_ext=c
47281ac_cpp='$CPP $CPPFLAGS'
47282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47284ac_compiler_gnu=$ac_cv_c_compiler_gnu
47285
a848cd7e
SC
47286
47287
a848cd7e 47288if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 47289 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
47290 if test "$USE_DARWIN" = 1; then
47291 LDFLAGS="$LDFLAGS -framework QuickTime"
47292 else
47293 LDFLAGS="$LDFLAGS -lQuickTimeLib"
47294 fi
07bea8f0 47295 fi
5dcf30a0 47296 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
47297 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
47298 else
47299 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 47300 fi
a848cd7e
SC
47301fi
47302if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 47303 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
47304 if test "$wxUSE_MEDIACTRL" = "yes"; then
47305 LDFLAGS="$LDFLAGS -framework QuickTime"
47306 fi
a848cd7e 47307fi
19b27e78
MW
47308if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
47309 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
47310fi
a848cd7e 47311
a848cd7e
SC
47312LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
47313
a848cd7e
SC
47314if test "$wxUSE_GUI" = "yes"; then
47315
47316
8bce5cda
MW
47317 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
47318 dynamic erase event exec font image minimal mobile \
47319 mobile/wxedit mobile/styles propsize render \
9e39d889 47320 rotate shaped vscroll widgets"
a848cd7e
SC
47321
47322 if test "$wxUSE_MONOLITHIC" != "yes"; then
47323 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
47324 fi
0b78747f 47325 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
47326 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
47327 if test "$wxUSE_UNIVERSAL" != "yes"; then
47328 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
47329 fi
47330 fi
47331 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
47332 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 47333 fi
a848cd7e
SC
47334else
47335 SAMPLES_SUBDIRS="console"
47336fi
47337
47338
48f625bc 47339if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
47340 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
47341elif test "$GCC" = yes ; then
47342 CWARNINGS="-Wall -Wundef"
47343fi
47344
48f625bc 47345if test "x$INTELCXX" = "xyes" ; then
7f47faf4 47346 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
47347elif test "$GXX" = yes ; then
47348 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 47349fi
a848cd7e 47350
a848cd7e 47351
5ff751d6
VZ
47352WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
47353WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
47354
47355
c92ad099 47356CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 47357 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
47358 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
47359 $CPPFLAGS `
5ff751d6 47360
8aeeb05c 47361C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 47362CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 47363CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
47364
47365WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
47366
a848cd7e 47367
95986553
DE
47368if test "x$MWCC" = "xyes"; then
47369
47370 CC="$CC -cwd source -I-"
47371 CXX="$CXX -cwd source -I-"
47372fi
47373
a848cd7e 47374
0c3c69fc 47375LIBS=`echo $LIBS`
a848cd7e
SC
47376EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
47377EXTRALIBS_XML="$EXPAT_LINK"
47378EXTRALIBS_HTML="$MSPACK_LINK"
47379EXTRALIBS_ODBC="$ODBC_LINK"
47380if test "$wxUSE_GUI" = "yes"; then
2b850ae1 47381 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
47382fi
47383if test "$wxUSE_OPENGL" = "yes"; then
47384 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
47385fi
47386
8aeeb05c 47387LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 47388
5ff751d6 47389WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
47390
47391if test "$wxUSE_REGEX" = "builtin" ; then
74802184 47392 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
47393fi
47394if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 47395 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
47396fi
47397if test "$wxUSE_ODBC" = "builtin" ; then
74802184 47398 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
47399fi
47400if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 47401 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
47402fi
47403if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 47404 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
47405fi
47406if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 47407 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
47408fi
47409if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 47410 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
47411fi
47412
47413for i in $wxconfig_3rdparty ; do
5ff751d6 47414 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
47415done
47416
47417
47418if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
47419 WXUNIV=1
4353a8df
VZ
47420
47421 case "$wxUNIV_THEMES" in
47422 ''|all)
47423 cat >>confdefs.h <<\_ACEOF
47424#define wxUSE_ALL_THEMES 1
47425_ACEOF
47426
47427 ;;
47428
47429 *)
47430 for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
47431 cat >>confdefs.h <<_ACEOF
47432#define wxUSE_THEME_$t 1
47433_ACEOF
47434
47435 done
47436 esac
a848cd7e
SC
47437else
47438 WXUNIV=0
47439fi
47440
47441
47442
47443
47444
47445
47446
47447
47448
47449if test $wxUSE_MONOLITHIC = "yes" ; then
47450 MONOLITHIC=1
47451else
47452 MONOLITHIC=0
47453fi
47454
47455if test $wxUSE_PLUGINS = "yes" ; then
47456 USE_PLUGINS=1
47457else
47458 USE_PLUGINS=0
47459fi
47460
47461if test $wxUSE_ODBC != "no" ; then
47462 USE_ODBC=1
47463else
47464 USE_ODBC=0
47465fi
47466
16358932
VZ
47467if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47468 USE_QA=1
47469else
47470 USE_QA=0
47471fi
47472
a848cd7e
SC
47473if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
47474 OFFICIAL_BUILD=1
47475else
47476 OFFICIAL_BUILD=0
47477fi
47478
47479
47480
47481
47482
47483
47484
47485
47486
47487
47488
47489
47490
47491
47492
47493
47494
47495
47496
ceec2216 47497
d1c38808 47498
3565d135 47499
2b850ae1 47500
a848cd7e
SC
47501
47502
47503TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
47504
47505
47506
47507
47508
47509
47510
47511
4d4ff94c
VZ
47512case "$TOOLKIT" in
47513 GTK)
c2e9ada4 47514 TOOLKIT_DESC="GTK+"
4d4ff94c 47515 if test "$WXGTK20" = 1; then
c2e9ada4
VZ
47516 TOOLKIT_DESC="$TOOLKIT_DESC 2"
47517 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
47518 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
47519 fi
47520 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
47521 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
47522 fi
47523 if test "$wxUSE_LIBHILDON" = "yes"; then
47524 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
47525 fi
47526
47527 if test "$TOOLKIT_EXTRA" != ""; then
47528 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
47529 fi
4d4ff94c 47530 fi
9a8f0513 47531 ;;
4d4ff94c 47532
c2e9ada4
VZ
47533 ?*)
47534 TOOLKIT_DESC=$TOOLKIT_LOWERCASE
47535 ;;
47536
4d4ff94c 47537 *)
c2e9ada4 47538 TOOLKIT_DESC="base only"
9a8f0513 47539 ;;
4d4ff94c 47540esac
a848cd7e 47541
fb00f58d
JS
47542if test "$wxUSE_WINE" = "yes"; then
47543 BAKEFILE_FORCE_PLATFORM=win32
47544fi
47545
7afc46ab 47546if test "$wxUSE_MAC" = 1 ; then
95768535
MW
47547 if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
47548 if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
47549 OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
47550 else
47551 OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
47552 fi
47553 OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
47554 CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
47555 CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
47556 LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
7afc46ab
KO
47557 bk_use_pch=no
47558 fi
47559 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
47560 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
7afc46ab
KO
47561fi
47562
a81d5bb6
MW
47563if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
47564then
47565 echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
47566echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6
47567if test "${wx_cv_gcc_pch_bug+set}" = set; then
47568 echo $ECHO_N "(cached) $ECHO_C" >&6
47569else
47570
6d952fd7
MW
47571 echo '#include <stdio.h>
47572 const wchar_t test_var[] = L"awidetest";' > conftest.h
47573
47574 echo '#include "conftest.h"
47575 int main()
47576 {
be49c6ec 47577 printf("%ls", test_var);
6d952fd7
MW
47578 return 0;
47579 }' > conftest.cpp
47580
47581 wx_cv_gcc_pch_bug="pch not supported"
a81d5bb6 47582
b2983f42 47583 if $CXX conftest.h >/dev/null 2>&1
a81d5bb6 47584 then
6d952fd7 47585 wx_cv_gcc_pch_bug=
a81d5bb6 47586
6c7f5e56 47587 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
a81d5bb6 47588 then
6c7f5e56
MW
47589 if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
47590 grep awidetest >/dev/null
6d952fd7
MW
47591 then
47592 wx_cv_gcc_pch_bug=no
47593 else
a81d5bb6 47594 wx_cv_gcc_pch_bug=yes
6d952fd7 47595 fi
a81d5bb6
MW
47596 fi
47597 fi
47598
6c7f5e56 47599 rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
a81d5bb6
MW
47600
47601fi
47602echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
47603echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6
47604
47605 if test "$wx_cv_gcc_pch_bug" = yes; then
47606 bk_use_pch=no
47607 fi
47608fi
47609
9a8f0513 47610
1e9e8aba
DE
47611
47612
a848cd7e 47613 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
47614 if test "x${host}" = "x" ; then
47615 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
47616echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
47617 { (exit 1); exit 1; }; }
47618 fi
47619
a848cd7e
SC
47620 BAKEFILE_HOST="${host}"
47621 fi
47622
47623 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
47624
47625 if test -n "$ac_tool_prefix"; then
47626 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
47627set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47628echo "$as_me:$LINENO: checking for $ac_word" >&5
47629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47630if test "${ac_cv_prog_RANLIB+set}" = set; then
47631 echo $ECHO_N "(cached) $ECHO_C" >&6
47632else
47633 if test -n "$RANLIB"; then
47634 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
47635else
47636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47637for as_dir in $PATH
47638do
47639 IFS=$as_save_IFS
47640 test -z "$as_dir" && as_dir=.
47641 for ac_exec_ext in '' $ac_executable_extensions; do
47642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47643 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
47644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47645 break 2
47646 fi
47647done
47648done
47649
47650fi
47651fi
47652RANLIB=$ac_cv_prog_RANLIB
47653if test -n "$RANLIB"; then
47654 echo "$as_me:$LINENO: result: $RANLIB" >&5
47655echo "${ECHO_T}$RANLIB" >&6
47656else
47657 echo "$as_me:$LINENO: result: no" >&5
47658echo "${ECHO_T}no" >&6
47659fi
47660
47661fi
47662if test -z "$ac_cv_prog_RANLIB"; then
47663 ac_ct_RANLIB=$RANLIB
47664 # Extract the first word of "ranlib", so it can be a program name with args.
47665set dummy ranlib; ac_word=$2
47666echo "$as_me:$LINENO: checking for $ac_word" >&5
47667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47668if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
47669 echo $ECHO_N "(cached) $ECHO_C" >&6
47670else
47671 if test -n "$ac_ct_RANLIB"; then
47672 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
47673else
47674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47675for as_dir in $PATH
47676do
47677 IFS=$as_save_IFS
47678 test -z "$as_dir" && as_dir=.
47679 for ac_exec_ext in '' $ac_executable_extensions; do
47680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47681 ac_cv_prog_ac_ct_RANLIB="ranlib"
47682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47683 break 2
47684 fi
47685done
47686done
47687
47688 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
47689fi
47690fi
47691ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
47692if test -n "$ac_ct_RANLIB"; then
47693 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
47694echo "${ECHO_T}$ac_ct_RANLIB" >&6
47695else
47696 echo "$as_me:$LINENO: result: no" >&5
47697echo "${ECHO_T}no" >&6
47698fi
47699
47700 RANLIB=$ac_ct_RANLIB
47701else
47702 RANLIB="$ac_cv_prog_RANLIB"
47703fi
47704
47705 # Find a good install program. We prefer a C program (faster),
47706# so one script is as good as another. But avoid the broken or
47707# incompatible versions:
47708# SysV /etc/install, /usr/sbin/install
47709# SunOS /usr/etc/install
47710# IRIX /sbin/install
47711# AIX /bin/install
47712# AmigaOS /C/install, which installs bootblocks on floppy discs
47713# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
47714# AFS /usr/afsws/bin/install, which mishandles nonexistent args
47715# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 47716# OS/2's system install, which has a completely different semantic
a848cd7e
SC
47717# ./install, which can be erroneously created by make from ./install.sh.
47718echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
47719echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
47720if test -z "$INSTALL"; then
47721if test "${ac_cv_path_install+set}" = set; then
47722 echo $ECHO_N "(cached) $ECHO_C" >&6
47723else
47724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47725for as_dir in $PATH
47726do
47727 IFS=$as_save_IFS
47728 test -z "$as_dir" && as_dir=.
47729 # Account for people who put trailing slashes in PATH elements.
47730case $as_dir/ in
47731 ./ | .// | /cC/* | \
47732 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 47733 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
47734 /usr/ucb/* ) ;;
47735 *)
47736 # OSF1 and SCO ODT 3.0 have their own names for install.
47737 # Don't use installbsd from OSF since it installs stuff as root
47738 # by default.
47739 for ac_prog in ginstall scoinst install; do
47740 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
47741 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
47742 if test $ac_prog = install &&
47743 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47744 # AIX install. It has an incompatible calling convention.
47745 :
47746 elif test $ac_prog = install &&
47747 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47748 # program-specific install script used by HP pwplus--don't use.
47749 :
47750 else
47751 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
47752 break 3
47753 fi
47754 fi
a848cd7e
SC
47755 done
47756 done
47757 ;;
47758esac
47759done
47760
47761
47762fi
47763 if test "${ac_cv_path_install+set}" = set; then
47764 INSTALL=$ac_cv_path_install
47765 else
47766 # As a last resort, use the slow shell script. We don't cache a
47767 # path for INSTALL within a source directory, because that will
47768 # break other packages using the cache if that directory is
47769 # removed, or if the path is relative.
47770 INSTALL=$ac_install_sh
47771 fi
47772fi
47773echo "$as_me:$LINENO: result: $INSTALL" >&5
47774echo "${ECHO_T}$INSTALL" >&6
47775
47776# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
47777# It thinks the first close brace ends the variable substitution.
47778test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
47779
47780test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
47781
47782test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
47783
47784 echo "$as_me:$LINENO: checking whether ln -s works" >&5
47785echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
47786LN_S=$as_ln_s
47787if test "$LN_S" = "ln -s"; then
47788 echo "$as_me:$LINENO: result: yes" >&5
47789echo "${ECHO_T}yes" >&6
47790else
47791 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
47792echo "${ECHO_T}no, using $LN_S" >&6
47793fi
47794
47795
47796 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47797echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 47798set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
47799if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
47800 echo $ECHO_N "(cached) $ECHO_C" >&6
47801else
47802 cat >conftest.make <<\_ACEOF
47803all:
47804 @echo 'ac_maketemp="$(MAKE)"'
47805_ACEOF
47806# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47807eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
47808if test -n "$ac_maketemp"; then
47809 eval ac_cv_prog_make_${ac_make}_set=yes
47810else
47811 eval ac_cv_prog_make_${ac_make}_set=no
47812fi
47813rm -f conftest.make
47814fi
47815if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
47816 echo "$as_me:$LINENO: result: yes" >&5
47817echo "${ECHO_T}yes" >&6
47818 SET_MAKE=
47819else
47820 echo "$as_me:$LINENO: result: no" >&5
47821echo "${ECHO_T}no" >&6
47822 SET_MAKE="MAKE=${MAKE-make}"
47823fi
47824
47825
47826
47827 if test -n "$ac_tool_prefix"; then
47828 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
47829set dummy ${ac_tool_prefix}ar; ac_word=$2
47830echo "$as_me:$LINENO: checking for $ac_word" >&5
47831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47832if test "${ac_cv_prog_AR+set}" = set; then
47833 echo $ECHO_N "(cached) $ECHO_C" >&6
47834else
47835 if test -n "$AR"; then
47836 ac_cv_prog_AR="$AR" # Let the user override the test.
47837else
47838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47839for as_dir in $PATH
47840do
47841 IFS=$as_save_IFS
47842 test -z "$as_dir" && as_dir=.
47843 for ac_exec_ext in '' $ac_executable_extensions; do
47844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47845 ac_cv_prog_AR="${ac_tool_prefix}ar"
47846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47847 break 2
47848 fi
47849done
47850done
47851
47852fi
47853fi
47854AR=$ac_cv_prog_AR
47855if test -n "$AR"; then
47856 echo "$as_me:$LINENO: result: $AR" >&5
47857echo "${ECHO_T}$AR" >&6
47858else
47859 echo "$as_me:$LINENO: result: no" >&5
47860echo "${ECHO_T}no" >&6
47861fi
47862
47863fi
47864if test -z "$ac_cv_prog_AR"; then
47865 ac_ct_AR=$AR
47866 # Extract the first word of "ar", so it can be a program name with args.
47867set dummy ar; ac_word=$2
47868echo "$as_me:$LINENO: checking for $ac_word" >&5
47869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47870if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
47871 echo $ECHO_N "(cached) $ECHO_C" >&6
47872else
47873 if test -n "$ac_ct_AR"; then
47874 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
47875else
47876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47877for as_dir in $PATH
47878do
47879 IFS=$as_save_IFS
47880 test -z "$as_dir" && as_dir=.
47881 for ac_exec_ext in '' $ac_executable_extensions; do
47882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47883 ac_cv_prog_ac_ct_AR="ar"
47884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47885 break 2
47886 fi
47887done
47888done
47889
47890 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
47891fi
47892fi
47893ac_ct_AR=$ac_cv_prog_ac_ct_AR
47894if test -n "$ac_ct_AR"; then
47895 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
47896echo "${ECHO_T}$ac_ct_AR" >&6
47897else
47898 echo "$as_me:$LINENO: result: no" >&5
47899echo "${ECHO_T}no" >&6
47900fi
47901
47902 AR=$ac_ct_AR
47903else
47904 AR="$ac_cv_prog_AR"
47905fi
47906
47907 if test -n "$ac_tool_prefix"; then
47908 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
47909set dummy ${ac_tool_prefix}strip; ac_word=$2
47910echo "$as_me:$LINENO: checking for $ac_word" >&5
47911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47912if test "${ac_cv_prog_STRIP+set}" = set; then
47913 echo $ECHO_N "(cached) $ECHO_C" >&6
47914else
47915 if test -n "$STRIP"; then
47916 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
47917else
47918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47919for as_dir in $PATH
47920do
47921 IFS=$as_save_IFS
47922 test -z "$as_dir" && as_dir=.
47923 for ac_exec_ext in '' $ac_executable_extensions; do
47924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47925 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
47926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47927 break 2
47928 fi
47929done
47930done
47931
47932fi
47933fi
47934STRIP=$ac_cv_prog_STRIP
47935if test -n "$STRIP"; then
47936 echo "$as_me:$LINENO: result: $STRIP" >&5
47937echo "${ECHO_T}$STRIP" >&6
47938else
47939 echo "$as_me:$LINENO: result: no" >&5
47940echo "${ECHO_T}no" >&6
47941fi
47942
47943fi
47944if test -z "$ac_cv_prog_STRIP"; then
47945 ac_ct_STRIP=$STRIP
47946 # Extract the first word of "strip", so it can be a program name with args.
47947set dummy strip; ac_word=$2
47948echo "$as_me:$LINENO: checking for $ac_word" >&5
47949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47950if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
47951 echo $ECHO_N "(cached) $ECHO_C" >&6
47952else
47953 if test -n "$ac_ct_STRIP"; then
47954 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
47955else
47956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47957for as_dir in $PATH
47958do
47959 IFS=$as_save_IFS
47960 test -z "$as_dir" && as_dir=.
47961 for ac_exec_ext in '' $ac_executable_extensions; do
47962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47963 ac_cv_prog_ac_ct_STRIP="strip"
47964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47965 break 2
47966 fi
47967done
47968done
47969
47970 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
47971fi
47972fi
47973ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
47974if test -n "$ac_ct_STRIP"; then
47975 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
47976echo "${ECHO_T}$ac_ct_STRIP" >&6
47977else
47978 echo "$as_me:$LINENO: result: no" >&5
47979echo "${ECHO_T}no" >&6
47980fi
47981
47982 STRIP=$ac_ct_STRIP
47983else
47984 STRIP="$ac_cv_prog_STRIP"
47985fi
47986
47987 if test -n "$ac_tool_prefix"; then
47988 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
47989set dummy ${ac_tool_prefix}nm; ac_word=$2
47990echo "$as_me:$LINENO: checking for $ac_word" >&5
47991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47992if test "${ac_cv_prog_NM+set}" = set; then
47993 echo $ECHO_N "(cached) $ECHO_C" >&6
47994else
47995 if test -n "$NM"; then
47996 ac_cv_prog_NM="$NM" # Let the user override the test.
47997else
47998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47999for as_dir in $PATH
48000do
48001 IFS=$as_save_IFS
48002 test -z "$as_dir" && as_dir=.
48003 for ac_exec_ext in '' $ac_executable_extensions; do
48004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48005 ac_cv_prog_NM="${ac_tool_prefix}nm"
48006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48007 break 2
48008 fi
48009done
48010done
48011
48012fi
48013fi
48014NM=$ac_cv_prog_NM
48015if test -n "$NM"; then
48016 echo "$as_me:$LINENO: result: $NM" >&5
48017echo "${ECHO_T}$NM" >&6
48018else
48019 echo "$as_me:$LINENO: result: no" >&5
48020echo "${ECHO_T}no" >&6
48021fi
48022
48023fi
48024if test -z "$ac_cv_prog_NM"; then
48025 ac_ct_NM=$NM
48026 # Extract the first word of "nm", so it can be a program name with args.
48027set dummy nm; ac_word=$2
48028echo "$as_me:$LINENO: checking for $ac_word" >&5
48029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48030if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
48031 echo $ECHO_N "(cached) $ECHO_C" >&6
48032else
48033 if test -n "$ac_ct_NM"; then
48034 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
48035else
48036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48037for as_dir in $PATH
48038do
48039 IFS=$as_save_IFS
48040 test -z "$as_dir" && as_dir=.
48041 for ac_exec_ext in '' $ac_executable_extensions; do
48042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48043 ac_cv_prog_ac_ct_NM="nm"
48044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48045 break 2
48046 fi
48047done
48048done
48049
48050 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
48051fi
48052fi
48053ac_ct_NM=$ac_cv_prog_ac_ct_NM
48054if test -n "$ac_ct_NM"; then
48055 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
48056echo "${ECHO_T}$ac_ct_NM" >&6
48057else
48058 echo "$as_me:$LINENO: result: no" >&5
48059echo "${ECHO_T}no" >&6
48060fi
48061
48062 NM=$ac_ct_NM
48063else
48064 NM="$ac_cv_prog_NM"
48065fi
48066
48067
48068 case ${BAKEFILE_HOST} in
48069 *-hp-hpux* )
1e9e8aba 48070 INSTALL_DIR="mkdir -p"
a848cd7e
SC
48071 ;;
48072 *) INSTALL_DIR="$INSTALL -d"
48073 ;;
48074 esac
48075
48076
48077 LDFLAGS_GUI=
48078 case ${BAKEFILE_HOST} in
48079 *-*-cygwin* | *-*-mingw32* )
48080 LDFLAGS_GUI="-mwindows"
48081 esac
48082
48083
48084 fi
48085
48086 echo "$as_me:$LINENO: checking if make is GNU make" >&5
48087echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
48088if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
48089 echo $ECHO_N "(cached) $ECHO_C" >&6
48090else
48091
48092 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
48093 egrep -s GNU > /dev/null); then
48094 bakefile_cv_prog_makeisgnu="yes"
48095 else
48096 bakefile_cv_prog_makeisgnu="no"
48097 fi
48098
48099fi
48100echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
48101echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
48102
48103 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
48104 IF_GNU_MAKE=""
48105 else
48106 IF_GNU_MAKE="#"
48107 fi
48108
48109
48110
48111 PLATFORM_UNIX=0
48112 PLATFORM_WIN32=0
48113 PLATFORM_MSDOS=0
48114 PLATFORM_MAC=0
1e9e8aba 48115 PLATFORM_MACOS=0
a848cd7e
SC
48116 PLATFORM_MACOSX=0
48117 PLATFORM_OS2=0
1e9e8aba 48118 PLATFORM_BEOS=0
a848cd7e
SC
48119
48120 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
48121 case "${BAKEFILE_HOST}" in
810b94f0 48122 *-*-mingw32* )
a848cd7e
SC
48123 PLATFORM_WIN32=1
48124 ;;
48125 *-pc-msdosdjgpp )
48126 PLATFORM_MSDOS=1
48127 ;;
48128 *-pc-os2_emx | *-pc-os2-emx )
48129 PLATFORM_OS2=1
48130 ;;
47bd5406 48131 *-*-darwin* )
a848cd7e
SC
48132 PLATFORM_MAC=1
48133 PLATFORM_MACOSX=1
48134 ;;
1e9e8aba
DE
48135 *-*-beos* )
48136 PLATFORM_BEOS=1
48137 ;;
48138 powerpc-apple-macos* )
48139 PLATFORM_MAC=1
48140 PLATFORM_MACOS=1
48141 ;;
a848cd7e
SC
48142 * )
48143 PLATFORM_UNIX=1
48144 ;;
48145 esac
48146 else
48147 case "$BAKEFILE_FORCE_PLATFORM" in
48148 win32 )
48149 PLATFORM_WIN32=1
48150 ;;
48151 msdos )
48152 PLATFORM_MSDOS=1
48153 ;;
48154 os2 )
48155 PLATFORM_OS2=1
48156 ;;
48157 darwin )
48158 PLATFORM_MAC=1
48159 PLATFORM_MACOSX=1
48160 ;;
48161 unix )
48162 PLATFORM_UNIX=1
48163 ;;
1e9e8aba
DE
48164 beos )
48165 PLATFORM_BEOS=1
48166 ;;
a848cd7e
SC
48167 * )
48168 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
48169echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
48170 { (exit 1); exit 1; }; }
48171 ;;
48172 esac
48173 fi
48174
48175
48176
48177
48178
48179
48180
48181
48182
1e9e8aba
DE
48183
48184
a848cd7e
SC
48185 # Check whether --enable-omf or --disable-omf was given.
48186if test "${enable_omf+set}" = set; then
48187 enableval="$enable_omf"
48188 bk_os2_use_omf="$enableval"
48189fi;
48190
48191 case "${BAKEFILE_HOST}" in
48192 *-*-darwin* )
47bd5406
VZ
48193 if test "x$GCC" = "xyes"; then
48194 CFLAGS="$CFLAGS -fno-common"
48195 CXXFLAGS="$CXXFLAGS -fno-common"
48196 fi
48197 if test "x$XLCC" = "xyes"; then
48198 CFLAGS="$CFLAGS -qnocommon"
48199 CXXFLAGS="$CXXFLAGS -qnocommon"
48200 fi
a848cd7e
SC
48201 ;;
48202
48203 *-pc-os2_emx | *-pc-os2-emx )
48204 if test "x$bk_os2_use_omf" = "xyes" ; then
48205 AR=emxomfar
48206 RANLIB=:
48207 LDFLAGS="-Zomf $LDFLAGS"
48208 CFLAGS="-Zomf $CFLAGS"
48209 CXXFLAGS="-Zomf $CXXFLAGS"
48210 OS2_LIBEXT="lib"
48211 else
48212 OS2_LIBEXT="a"
48213 fi
48214 ;;
1e9e8aba
DE
48215
48216 i*86-*-beos* )
48217 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
48218 ;;
a848cd7e
SC
48219 esac
48220
48221
48222 SO_SUFFIX="so"
48223 SO_SUFFIX_MODULE="so"
48224 EXEEXT=""
48225 LIBPREFIX="lib"
48226 LIBEXT=".a"
48227 DLLPREFIX="lib"
48228 DLLPREFIX_MODULE=""
48229 DLLIMP_SUFFIX=""
810b94f0 48230 dlldir="$libdir"
a848cd7e
SC
48231
48232 case "${BAKEFILE_HOST}" in
48233 *-hp-hpux* )
48234 SO_SUFFIX="sl"
48235 SO_SUFFIX_MODULE="sl"
48236 ;;
48237 *-*-aix* )
48238 SO_SUFFIX="a"
48239 SO_SUFFIX_MODULE="a"
48240 ;;
810b94f0
MW
48241 *-*-cygwin* )
48242 SO_SUFFIX="dll"
48243 SO_SUFFIX_MODULE="dll"
48244 DLLIMP_SUFFIX="dll.a"
48245 EXEEXT=".exe"
48246 DLLPREFIX="cyg"
48247 dlldir="$bindir"
48248 ;;
48249 *-*-mingw32* )
a848cd7e
SC
48250 SO_SUFFIX="dll"
48251 SO_SUFFIX_MODULE="dll"
48252 DLLIMP_SUFFIX="dll.a"
48253 EXEEXT=".exe"
48254 DLLPREFIX=""
810b94f0 48255 dlldir="$bindir"
a848cd7e
SC
48256 ;;
48257 *-pc-msdosdjgpp )
48258 EXEEXT=".exe"
48259 DLLPREFIX=""
810b94f0 48260 dlldir="$bindir"
a848cd7e
SC
48261 ;;
48262 *-pc-os2_emx | *-pc-os2-emx )
48263 SO_SUFFIX="dll"
48264 SO_SUFFIX_MODULE="dll"
48265 DLLIMP_SUFFIX=$OS2_LIBEXT
48266 EXEEXT=".exe"
48267 DLLPREFIX=""
48268 LIBPREFIX=""
48269 LIBEXT=".$OS2_LIBEXT"
810b94f0 48270 dlldir="$bindir"
a848cd7e 48271 ;;
47bd5406 48272 *-*-darwin* )
a848cd7e
SC
48273 SO_SUFFIX="dylib"
48274 SO_SUFFIX_MODULE="bundle"
48275 ;;
48276 esac
48277
48278 if test "x$DLLIMP_SUFFIX" = "x" ; then
48279 DLLIMP_SUFFIX="$SO_SUFFIX"
48280 fi
48281
48282
48283
48284
48285
48286
48287
48288
48289
48290
48291
810b94f0 48292
1e9e8aba
DE
48293 PIC_FLAG=""
48294 if test "x$GCC" = "xyes"; then
a848cd7e
SC
48295 PIC_FLAG="-fPIC"
48296 fi
48297
1e9e8aba
DE
48298 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
48299 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 48300 WINDOWS_IMPLIB=0
1e9e8aba 48301
a848cd7e
SC
48302 case "${BAKEFILE_HOST}" in
48303 *-hp-hpux* )
1e9e8aba 48304 if test "x$GCC" != "xyes"; then
a848cd7e
SC
48305 LDFLAGS="$LDFLAGS -L/usr/lib"
48306
48307 SHARED_LD_CC="${CC} -b -o"
48308 SHARED_LD_CXX="${CXX} -b -o"
48309 PIC_FLAG="+Z"
48310 fi
48311 ;;
48312
48313 *-*-linux* )
48314 if test "x$GCC" != "xyes"; then
48315 echo "$as_me:$LINENO: checking for Intel compiler" >&5
48316echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
48317if test "${bakefile_cv_prog_icc+set}" = set; then
48318 echo $ECHO_N "(cached) $ECHO_C" >&6
48319else
48320
48321 cat >conftest.$ac_ext <<_ACEOF
48322/* confdefs.h. */
48323_ACEOF
48324cat confdefs.h >>conftest.$ac_ext
48325cat >>conftest.$ac_ext <<_ACEOF
48326/* end confdefs.h. */
48327
48328int
48329main ()
48330{
48331
48332 #ifndef __INTEL_COMPILER
e5efa97e 48333 This is not ICC
a848cd7e
SC
48334 #endif
48335
48336 ;
48337 return 0;
48338}
48339_ACEOF
48340rm -f conftest.$ac_objext
48341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 48342 (eval $ac_compile) 2>conftest.er1
a848cd7e 48343 ac_status=$?
ac1cb8d3
VS
48344 grep -v '^ *+' conftest.er1 >conftest.err
48345 rm -f conftest.er1
48346 cat conftest.err >&5
a848cd7e
SC
48347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48348 (exit $ac_status); } &&
bb9e79c0 48349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
48350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48351 (eval $ac_try) 2>&5
48352 ac_status=$?
48353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48354 (exit $ac_status); }; } &&
48355 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
48356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48357 (eval $ac_try) 2>&5
48358 ac_status=$?
48359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48360 (exit $ac_status); }; }; then
48361 bakefile_cv_prog_icc=yes
48362else
48363 echo "$as_me: failed program was:" >&5
48364sed 's/^/| /' conftest.$ac_ext >&5
48365
48366bakefile_cv_prog_icc=no
48367
48368fi
ac1cb8d3 48369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
48370
48371fi
48372echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
48373echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
48374 if test "$bakefile_cv_prog_icc" = "yes"; then
48375 PIC_FLAG="-KPIC"
48376 fi
48377 fi
48378 ;;
48379
48380 *-*-solaris2* )
48381 if test "x$GCC" != xyes ; then
48382 SHARED_LD_CC="${CC} -G -o"
48383 SHARED_LD_CXX="${CXX} -G -o"
48384 PIC_FLAG="-KPIC"
48385 fi
48386 ;;
48387
48388 *-*-darwin* )
48389
473276a9
VS
48390D='$'
48391cat <<EOF >shared-ld-sh
a848cd7e
SC
48392#!/bin/sh
48393#-----------------------------------------------------------------------------
48394#-- Name: distrib/mac/shared-ld-sh
48395#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
48396#-- Author: Gilles Depeyrot
48397#-- Copyright: (c) 2002 Gilles Depeyrot
48398#-- Licence: any use permitted
48399#-----------------------------------------------------------------------------
48400
48401verbose=0
48402args=""
48403objects=""
48404linking_flag="-dynamiclib"
810b94f0 48405ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 48406
473276a9
VS
48407while test ${D}# -gt 0; do
48408 case ${D}1 in
a848cd7e
SC
48409
48410 -v)
48411 verbose=1
48412 ;;
48413
48414 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
48415 # collect these options and values
473276a9 48416 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
48417 shift
48418 ;;
48419
810b94f0
MW
48420 -s|-Wl,*)
48421 # collect these load args
48422 ldargs="${D}{ldargs} ${D}1"
2113bc77 48423 ;;
810b94f0
MW
48424
48425 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 48426 # collect these options
473276a9 48427 args="${D}{args} ${D}1"
a848cd7e
SC
48428 ;;
48429
48430 -dynamiclib|-bundle)
473276a9 48431 linking_flag="${D}1"
a848cd7e
SC
48432 ;;
48433
48434 -*)
473276a9 48435 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
48436 exit 1
48437 ;;
48438
48439 *.o | *.a | *.dylib)
48440 # collect object files
473276a9 48441 objects="${D}{objects} ${D}1"
a848cd7e
SC
48442 ;;
48443
48444 *)
473276a9 48445 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
48446 exit 1
48447 ;;
48448
48449 esac
48450 shift
48451done
48452
810b94f0
MW
48453status=0
48454
a848cd7e
SC
48455#
48456# Link one module containing all the others
48457#
473276a9 48458if test ${D}{verbose} = 1; then
810b94f0 48459 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 48460fi
810b94f0 48461c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 48462status=${D}?
a848cd7e
SC
48463
48464#
810b94f0
MW
48465# Link the shared library from the single module created, but only if the
48466# previous command didn't fail:
a848cd7e 48467#
810b94f0
MW
48468if test ${D}{status} = 0; then
48469 if test ${D}{verbose} = 1; then
48470 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
48471 fi
48472 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
48473 status=${D}?
a848cd7e
SC
48474fi
48475
48476#
48477# Remove intermediate module
48478#
473276a9 48479rm -f master.${D}${D}.o
a848cd7e 48480
810b94f0 48481exit ${D}status
a848cd7e 48482EOF
473276a9 48483
583d6b4b
VZ
48484 chmod +x shared-ld-sh
48485
48486 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
48487 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
48488
48489
48490 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
48491echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
48492if test "${bakefile_cv_gcc31+set}" = set; then
48493 echo $ECHO_N "(cached) $ECHO_C" >&6
48494else
48495
48496 cat >conftest.$ac_ext <<_ACEOF
48497/* confdefs.h. */
48498_ACEOF
48499cat confdefs.h >>conftest.$ac_ext
48500cat >>conftest.$ac_ext <<_ACEOF
48501/* end confdefs.h. */
48502
48503int
48504main ()
48505{
48506
48507 #if (__GNUC__ < 3) || \
48508 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 48509 This is old gcc
583d6b4b 48510 #endif
a848cd7e 48511
583d6b4b
VZ
48512 ;
48513 return 0;
48514}
48515_ACEOF
48516rm -f conftest.$ac_objext
48517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48518 (eval $ac_compile) 2>conftest.er1
48519 ac_status=$?
48520 grep -v '^ *+' conftest.er1 >conftest.err
48521 rm -f conftest.er1
48522 cat conftest.err >&5
48523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48524 (exit $ac_status); } &&
bb9e79c0 48525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
583d6b4b
VZ
48526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48527 (eval $ac_try) 2>&5
48528 ac_status=$?
48529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48530 (exit $ac_status); }; } &&
48531 { ac_try='test -s conftest.$ac_objext'
48532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48533 (eval $ac_try) 2>&5
48534 ac_status=$?
48535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48536 (exit $ac_status); }; }; then
48537
48538 bakefile_cv_gcc31=yes
48539
48540else
48541 echo "$as_me: failed program was:" >&5
48542sed 's/^/| /' conftest.$ac_ext >&5
48543
48544
48545 bakefile_cv_gcc31=no
48546
48547
48548fi
48549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48550
48551fi
48552echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
48553echo "${ECHO_T}$bakefile_cv_gcc31" >&6
48554 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 48555 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 48556 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
48557 else
48558 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 48559 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
48560 fi
48561
47bd5406
VZ
48562 if test "x$GCC" == "xyes"; then
48563 PIC_FLAG="-dynamic -fPIC"
48564 fi
48565 if test "x$XLCC" = "xyes"; then
48566 PIC_FLAG="-dynamic -DPIC"
48567 fi
a848cd7e
SC
48568 ;;
48569
48570 *-*-aix* )
f6b50c59 48571 if test "x$GCC" = "xyes"; then
583d6b4b 48572 PIC_FLAG=""
f6b50c59 48573
583d6b4b
VZ
48574 case "${BAKEFILE_HOST}" in
48575 *-*-aix5* )
48576 LD_EXPFULL="-Wl,-bexpfull"
48577 ;;
48578 esac
f6b50c59 48579
583d6b4b
VZ
48580 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
48581 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
48582 else
48583 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
48584set dummy makeC++SharedLib; ac_word=$2
48585echo "$as_me:$LINENO: checking for $ac_word" >&5
48586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48587if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
48588 echo $ECHO_N "(cached) $ECHO_C" >&6
48589else
48590 if test -n "$AIX_CXX_LD"; then
48591 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
48592else
48593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48594for as_dir in $PATH
48595do
48596 IFS=$as_save_IFS
48597 test -z "$as_dir" && as_dir=.
48598 for ac_exec_ext in '' $ac_executable_extensions; do
48599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48600 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
48601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48602 break 2
48603 fi
48604done
48605done
48606
48607 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
48608fi
48609fi
48610AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
48611if test -n "$AIX_CXX_LD"; then
48612 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
48613echo "${ECHO_T}$AIX_CXX_LD" >&6
48614else
48615 echo "$as_me:$LINENO: result: no" >&5
48616echo "${ECHO_T}no" >&6
48617fi
48618
f6b50c59 48619 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
48620 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
48621 fi
48622 ;;
48623
48624 *-*-beos* )
1e9e8aba
DE
48625 SHARED_LD_CC="${LD} -nostart -o"
48626 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
48627 ;;
48628
48629 *-*-irix* )
48630 if test "x$GCC" != "xyes"; then
48631 PIC_FLAG="-KPIC"
48632 fi
48633 ;;
48634
48635 *-*-cygwin* | *-*-mingw32* )
48636 PIC_FLAG=""
1e9e8aba
DE
48637 SHARED_LD_CC="\$(CC) -shared -o"
48638 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 48639 WINDOWS_IMPLIB=1
a848cd7e
SC
48640 ;;
48641
48642 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
48643 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48644 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 48645 PIC_FLAG=""
473276a9
VS
48646
48647D='$'
48648cat <<EOF >dllar.sh
48649#!/bin/sh
48650#
48651# dllar - a tool to build both a .dll and an .a file
48652# from a set of object (.o) files for EMX/OS2.
48653#
48654# Written by Andrew Zabolotny, bit@freya.etu.ru
48655# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
48656#
48657# This script will accept a set of files on the command line.
48658# All the public symbols from the .o files will be exported into
48659# a .DEF file, then linker will be run (through gcc) against them to
48660# build a shared library consisting of all given .o files. All libraries
48661# (.a) will be first decompressed into component .o files then act as
48662# described above. You can optionally give a description (-d "description")
48663# which will be put into .DLL. To see the list of accepted options (as well
48664# as command-line format) simply run this program without options. The .DLL
48665# is built to be imported by name (there is no guarantee that new versions
48666# of the library you build will have same ordinals for same symbols).
48667#
48668# dllar is free software; you can redistribute it and/or modify
48669# it under the terms of the GNU General Public License as published by
48670# the Free Software Foundation; either version 2, or (at your option)
48671# any later version.
48672#
48673# dllar is distributed in the hope that it will be useful,
48674# but WITHOUT ANY WARRANTY; without even the implied warranty of
48675# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48676# GNU General Public License for more details.
48677#
48678# You should have received a copy of the GNU General Public License
48679# along with dllar; see the file COPYING. If not, write to the Free
48680# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
48681# 02111-1307, USA.
48682
48683# To successfuly run this program you will need:
48684# - Current drive should have LFN support (HPFS, ext2, network, etc)
48685# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
48686# - gcc
48687# (used to build the .dll)
48688# - emxexp
48689# (used to create .def file from .o files)
48690# - emximp
48691# (used to create .a file from .def file)
48692# - GNU text utilites (cat, sort, uniq)
48693# used to process emxexp output
48694# - GNU file utilities (mv, rm)
48695# - GNU sed
48696# - lxlite (optional, see flag below)
48697# (used for general .dll cleanup)
48698#
48699
48700flag_USE_LXLITE=1;
48701
48702#
48703# helper functions
48704# basnam, variant of basename, which does _not_ remove the path, _iff_
48705# second argument (suffix to remove) is given
48706basnam(){
48707 case ${D}# in
48708 1)
1e9e8aba 48709 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
48710 ;;
48711 2)
48712 echo ${D}1 | sed 's/'${D}2'${D}//'
48713 ;;
48714 *)
48715 echo "error in basnam ${D}*"
48716 exit 8
48717 ;;
48718 esac
48719}
48720
48721# Cleanup temporary files and output
48722CleanUp() {
48723 cd ${D}curDir
48724 for i in ${D}inputFiles ; do
48725 case ${D}i in
48726 *!)
48727 rm -rf \`basnam ${D}i !\`
48728 ;;
48729 *)
48730 ;;
48731 esac
48732 done
48733
48734 # Kill result in case of failure as there is just to many stupid make/nmake
48735 # things out there which doesn't do this.
1e9e8aba 48736 if [ ${D}# -eq 0 ]; then
473276a9
VS
48737 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
48738 fi
48739}
48740
48741# Print usage and exit script with rc=1.
48742PrintHelp() {
b1d22ded
DE
48743 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
48744 echo ' [-name-mangler-script script.sh]'
48745 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
48746 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
48747 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 48748 echo ' [*.o] [*.a]'
473276a9
VS
48749 echo '*> "output_file" should have no extension.'
48750 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
48751 echo ' The import library name is derived from this and is set to "name".a,'
48752 echo ' unless overridden by -import'
48753 echo '*> "importlib_name" should have no extension.'
48754 echo ' If it has the .o, or .a extension, it is automatically removed.'
48755 echo ' This name is used as the import library name and may be longer and'
48756 echo ' more descriptive than the DLL name which has to follow the old '
48757 echo ' 8.3 convention of FAT.'
b1d22ded
DE
48758 echo '*> "script.sh may be given to override the output_file name by a'
48759 echo ' different name. It is mainly useful if the regular make process'
48760 echo ' of some package does not take into account OS/2 restriction of'
48761 echo ' DLL name lengths. It takes the importlib name as input and is'
48762 echo ' supposed to procude a shorter name as output. The script should'
48763 echo ' expect to get importlib_name without extension and should produce'
48764 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
48765 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
48766 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
48767 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
48768 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
48769 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
48770 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
48771 echo ' If the last character of a symbol is "*", all symbols beginning'
48772 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 48773 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 48774 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 48775 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 48776 echo ' C runtime DLLs.'
b1d22ded 48777 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
48778 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
48779 echo ' unchanged to GCC at the end of command line.'
48780 echo '*> If you create a DLL from a library and you do not specify -o,'
48781 echo ' the basename for DLL and import library will be set to library name,'
48782 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
48783 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
48784 echo ' library will be renamed into gcc_s.a.'
48785 echo '--------'
48786 echo 'Example:'
48787 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
48788 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
48789 CleanUp
48790 exit 1
48791}
48792
48793# Execute a command.
48794# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
48795# @Uses Whatever CleanUp() uses.
48796doCommand() {
48797 echo "${D}*"
48798 eval ${D}*
48799 rcCmd=${D}?
48800
1e9e8aba 48801 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
48802 echo "command failed, exit code="${D}rcCmd
48803 CleanUp
48804 exit ${D}rcCmd
48805 fi
48806}
48807
48808# main routine
48809# setup globals
48810cmdLine=${D}*
48811outFile=""
48812outimpFile=""
48813inputFiles=""
b1d22ded 48814renameScript=""
473276a9
VS
48815description=""
48816CC=gcc.exe
48817CFLAGS="-s -Zcrtdll"
48818EXTRA_CFLAGS=""
48819EXPORT_BY_ORDINALS=0
48820exclude_symbols=""
48821library_flags=""
48822curDir=\`pwd\`
48823curDirS=curDir
48824case ${D}curDirS in
48825*/)
48826 ;;
48827*)
48828 curDirS=${D}{curDirS}"/"
48829 ;;
48830esac
48831# Parse commandline
48832libsToLink=0
b1d22ded 48833omfLinking=0
1e9e8aba 48834while [ ${D}1 ]; do
473276a9
VS
48835 case ${D}1 in
48836 -ord*)
48837 EXPORT_BY_ORDINALS=1;
48838 ;;
48839 -o*)
48840 shift
48841 outFile=${D}1
48842 ;;
48843 -i*)
48844 shift
48845 outimpFile=${D}1
48846 ;;
b1d22ded
DE
48847 -name-mangler-script)
48848 shift
48849 renameScript=${D}1
48850 ;;
473276a9
VS
48851 -d*)
48852 shift
48853 description=${D}1
48854 ;;
48855 -f*)
48856 shift
48857 CFLAGS=${D}1
48858 ;;
48859 -c*)
48860 shift
48861 CC=${D}1
48862 ;;
48863 -h*)
48864 PrintHelp
48865 ;;
48866 -ex*)
48867 shift
48868 exclude_symbols=${D}{exclude_symbols}${D}1" "
48869 ;;
48870 -libf*)
48871 shift
48872 library_flags=${D}{library_flags}${D}1" "
48873 ;;
48874 -nocrt*)
48875 CFLAGS="-s"
48876 ;;
48877 -nolxl*)
48878 flag_USE_LXLITE=0
48879 ;;
48880 -* | /*)
48881 case ${D}1 in
48882 -L* | -l*)
48883 libsToLink=1
48884 ;;
b1d22ded
DE
48885 -Zomf)
48886 omfLinking=1
48887 ;;
473276a9
VS
48888 *)
48889 ;;
48890 esac
48891 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48892 ;;
b1d22ded
DE
48893 *.dll)
48894 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
48895 if [ ${D}omfLinking -eq 1 ]; then
48896 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
48897 else
48898 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
48899 fi
48900 ;;
473276a9
VS
48901 *)
48902 found=0;
1e9e8aba 48903 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
48904 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48905 else
48906 for file in ${D}1 ; do
1e9e8aba 48907 if [ -f ${D}file ]; then
473276a9
VS
48908 inputFiles="${D}{inputFiles} ${D}file"
48909 found=1
48910 fi
48911 done
1e9e8aba 48912 if [ ${D}found -eq 0 ]; then
473276a9
VS
48913 echo "ERROR: No file(s) found: "${D}1
48914 exit 8
48915 fi
48916 fi
48917 ;;
48918 esac
48919 shift
48920done # iterate cmdline words
48921
48922#
1e9e8aba 48923if [ -z "${D}inputFiles" ]; then
473276a9
VS
48924 echo "dllar: no input files"
48925 PrintHelp
48926fi
48927
48928# Now extract all .o files from .a files
48929newInputFiles=""
48930for file in ${D}inputFiles ; do
48931 case ${D}file in
48932 *.a | *.lib)
48933 case ${D}file in
48934 *.a)
48935 suffix=".a"
48936 AR="ar"
48937 ;;
48938 *.lib)
48939 suffix=".lib"
48940 AR="emxomfar"
48941 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
48942 ;;
48943 *)
48944 ;;
48945 esac
48946 dirname=\`basnam ${D}file ${D}suffix\`"_%"
48947 mkdir ${D}dirname
1e9e8aba 48948 if [ ${D}? -ne 0 ]; then
473276a9
VS
48949 echo "Failed to create subdirectory ./${D}dirname"
48950 CleanUp
48951 exit 8;
48952 fi
48953 # Append '!' to indicate archive
48954 newInputFiles="${D}newInputFiles ${D}{dirname}!"
48955 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
48956 cd ${D}curDir
48957 found=0;
48958 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 48959 if [ -f ${D}subfile ]; then
473276a9 48960 found=1
1e9e8aba 48961 if [ -s ${D}subfile ]; then
473276a9
VS
48962 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
48963 newInputFiles="${D}newInputFiles ${D}subfile"
48964 fi
48965 fi
48966 done
1e9e8aba
DE
48967 if [ ${D}found -eq 0 ]; then
48968 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
48969 fi
48970 ;;
48971 *)
48972 newInputFiles="${D}{newInputFiles} ${D}file"
48973 ;;
48974 esac
48975done
48976inputFiles="${D}newInputFiles"
48977
48978# Output filename(s).
48979do_backup=0;
1e9e8aba 48980if [ -z ${D}outFile ]; then
473276a9
VS
48981 do_backup=1;
48982 set outFile ${D}inputFiles; outFile=${D}2
48983fi
48984
48985# If it is an archive, remove the '!' and the '_%' suffixes
48986case ${D}outFile in
48987*_%!)
48988 outFile=\`basnam ${D}outFile _%!\`
48989 ;;
48990*)
48991 ;;
48992esac
48993case ${D}outFile in
48994*.dll)
48995 outFile=\`basnam ${D}outFile .dll\`
48996 ;;
48997*.DLL)
48998 outFile=\`basnam ${D}outFile .DLL\`
48999 ;;
49000*.o)
49001 outFile=\`basnam ${D}outFile .o\`
49002 ;;
49003*.obj)
49004 outFile=\`basnam ${D}outFile .obj\`
49005 ;;
49006*.a)
49007 outFile=\`basnam ${D}outFile .a\`
49008 ;;
49009*.lib)
49010 outFile=\`basnam ${D}outFile .lib\`
49011 ;;
49012*)
49013 ;;
49014esac
49015case ${D}outimpFile in
49016*.a)
49017 outimpFile=\`basnam ${D}outimpFile .a\`
49018 ;;
49019*.lib)
49020 outimpFile=\`basnam ${D}outimpFile .lib\`
49021 ;;
49022*)
49023 ;;
49024esac
1e9e8aba 49025if [ -z ${D}outimpFile ]; then
473276a9
VS
49026 outimpFile=${D}outFile
49027fi
49028defFile="${D}{outFile}.def"
49029arcFile="${D}{outimpFile}.a"
49030arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
49031
49032#create ${D}dllFile as something matching 8.3 restrictions,
49033if [ -z ${D}renameScript ] ; then
49034 dllFile="${D}outFile"
49035else
49036 dllFile=\`${D}renameScript ${D}outimpFile\`
49037fi
473276a9 49038
1e9e8aba
DE
49039if [ ${D}do_backup -ne 0 ] ; then
49040 if [ -f ${D}arcFile ] ; then
473276a9
VS
49041 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
49042 fi
1e9e8aba 49043 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
49044 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
49045 fi
49046fi
49047
49048# Extract public symbols from all the object files.
49049tmpdefFile=${D}{defFile}_%
49050rm -f ${D}tmpdefFile
49051for file in ${D}inputFiles ; do
49052 case ${D}file in
49053 *!)
49054 ;;
49055 *)
49056 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
49057 ;;
49058 esac
49059done
49060
49061# Create the def file.
49062rm -f ${D}defFile
49063echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
49064dllFile="${D}{dllFile}.dll"
49065if [ ! -z ${D}description ]; then
1e9e8aba 49066 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
49067fi
49068echo "EXPORTS" >> ${D}defFile
49069
49070doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
49071grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
49072
49073# Checks if the export is ok or not.
49074for word in ${D}exclude_symbols; do
49075 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
49076 mv ${D}{tmpdefFile}% ${D}tmpdefFile
49077done
49078
49079
1e9e8aba
DE
49080if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
49081 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
49082 sed '
49083 N
49084 : loop
1e9e8aba 49085 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
49086 t loop
49087 ' > ${D}{tmpdefFile}%
49088 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
49089else
49090 rm -f ${D}{tmpdefFile}%
49091fi
49092cat ${D}tmpdefFile >> ${D}defFile
49093rm -f ${D}tmpdefFile
49094
49095# Do linking, create implib, and apply lxlite.
49096gccCmdl="";
49097for file in ${D}inputFiles ; do
49098 case ${D}file in
49099 *!)
49100 ;;
49101 *)
49102 gccCmdl="${D}gccCmdl ${D}file"
49103 ;;
49104 esac
49105done
49106doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
49107touch "${D}{outFile}.dll"
49108
49109doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 49110if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 49111 add_flags="";
1e9e8aba 49112 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
49113 add_flags="-ynd"
49114 fi
49115 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
49116fi
49117doCommand "emxomf -s -l ${D}arcFile"
49118
49119# Successful exit.
49120CleanUp 1
49121exit 0
49122EOF
49123
49124 chmod +x dllar.sh
a848cd7e
SC
49125 ;;
49126
1e9e8aba 49127 powerpc-apple-macos* | \
0ad5d837 49128 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
49129 *-*-sunos4* | \
49130 *-*-osf* | \
49131 *-*-dgux5* | \
47a7e797
MW
49132 *-*-sysv5* | \
49133 *-pc-msdosdjgpp )
a848cd7e
SC
49134 ;;
49135
49136 *)
3ecd9f92 49137 esac
a848cd7e 49138
2057db16
VS
49139 if test "x$PIC_FLAG" != "x" ; then
49140 PIC_FLAG="$PIC_FLAG -DPIC"
49141 fi
49142
a848cd7e
SC
49143 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
49144 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
49145 fi
49146 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
49147 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
49148 fi
49149
49150
49151
49152
49153
49154
49155
49156
810b94f0 49157
a848cd7e
SC
49158 USE_SOVERSION=0
49159 USE_SOVERLINUX=0
49160 USE_SOVERSOLARIS=0
810b94f0 49161 USE_SOVERCYGWIN=0
a848cd7e
SC
49162 USE_SOSYMLINKS=0
49163 USE_MACVERSION=0
49164 SONAME_FLAG=
49165
49166 case "${BAKEFILE_HOST}" in
0ad5d837 49167 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
49168 SONAME_FLAG="-Wl,-soname,"
49169 USE_SOVERSION=1
49170 USE_SOVERLINUX=1
49171 USE_SOSYMLINKS=1
49172 ;;
49173
a848cd7e
SC
49174 *-*-solaris2* )
49175 SONAME_FLAG="-h "
49176 USE_SOVERSION=1
49177 USE_SOVERSOLARIS=1
49178 USE_SOSYMLINKS=1
49179 ;;
49180
49181 *-*-darwin* )
49182 USE_MACVERSION=1
49183 USE_SOVERSION=1
49184 USE_SOSYMLINKS=1
49185 ;;
810b94f0
MW
49186
49187 *-*-cygwin* )
49188 USE_SOVERSION=1
49189 USE_SOVERCYGWIN=1
49190 ;;
a848cd7e
SC
49191 esac
49192
49193
49194
49195
49196
49197
49198
49199
49200
810b94f0 49201
f10e38c4
VZ
49202 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
49203if test "${enable_dependency_tracking+set}" = set; then
49204 enableval="$enable_dependency_tracking"
49205 bk_use_trackdeps="$enableval"
49206fi;
49207
a848cd7e
SC
49208 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
49209echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 49210
f10e38c4
VZ
49211 if test "x$bk_use_trackdeps" = "xno" ; then
49212 DEPS_TRACKING=0
49213 echo "$as_me:$LINENO: result: disabled" >&5
49214echo "${ECHO_T}disabled" >&6
49215 else
49216 DEPS_TRACKING=1
49217
49218 if test "x$GCC" = "xyes"; then
49219 DEPSMODE=gcc
49220 case "${BAKEFILE_HOST}" in
49221 *-*-darwin* )
49222 DEPSFLAG="-no-cpp-precomp -MMD"
49223 ;;
49224 * )
49225 DEPSFLAG="-MMD"
49226 ;;
49227 esac
49228 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 49229echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
49230 elif test "x$MWCC" = "xyes"; then
49231 DEPSMODE=mwcc
49232 DEPSFLAG="-MM"
49233 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 49234echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
49235 elif test "x$SUNCC" = "xyes"; then
49236 DEPSMODE=unixcc
49237 DEPSFLAG="-xM1"
49238 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 49239echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
49240 elif test "x$SGICC" = "xyes"; then
49241 DEPSMODE=unixcc
49242 DEPSFLAG="-M"
49243 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 49244echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
49245 elif test "x$HPCC" = "xyes"; then
49246 DEPSMODE=unixcc
49247 DEPSFLAG="+make"
49248 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 49249echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
49250 elif test "x$COMPAQCC" = "xyes"; then
49251 DEPSMODE=gcc
49252 DEPSFLAG="-MD"
49253 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 49254echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
49255 else
49256 DEPS_TRACKING=0
49257 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 49258echo "${ECHO_T}none" >&6
f10e38c4 49259 fi
a848cd7e 49260
f10e38c4 49261 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
49262
49263D='$'
49264cat <<EOF >bk-deps
a848cd7e
SC
49265#!/bin/sh
49266
49267# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
49268# script. It is used to track C/C++ files dependencies in portable way.
49269#
49270# Permission is given to use this file in any way.
49271
473276a9 49272DEPSMODE=${DEPSMODE}
a848cd7e 49273DEPSDIR=.deps
0ad5d837 49274DEPSFLAG="${DEPSFLAG}"
a848cd7e 49275
473276a9 49276mkdir -p ${D}DEPSDIR
a848cd7e 49277
473276a9 49278if test ${D}DEPSMODE = gcc ; then
0ad5d837 49279 ${D}* ${D}{DEPSFLAG}
473276a9
VS
49280 status=${D}?
49281 if test ${D}{status} != 0 ; then
49282 exit ${D}{status}
a848cd7e
SC
49283 fi
49284 # move created file to the location we want it in:
473276a9
VS
49285 while test ${D}# -gt 0; do
49286 case "${D}1" in
a848cd7e
SC
49287 -o )
49288 shift
473276a9 49289 objfile=${D}1
a848cd7e
SC
49290 ;;
49291 -* )
49292 ;;
49293 * )
473276a9 49294 srcfile=${D}1
a848cd7e
SC
49295 ;;
49296 esac
49297 shift
49298 done
1e9e8aba
DE
49299 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
49300 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
49301 if test -f ${D}depfile ; then
49302 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
49303 rm -f ${D}depfile
a848cd7e 49304 else
a1aa0349 49305 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 49306 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
49307 if test ! -f ${D}depfile ; then
49308 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
49309 depfile="${D}objfile.d"
49310 fi
473276a9
VS
49311 if test -f ${D}depfile ; then
49312 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
49313 rm -f ${D}depfile
a848cd7e
SC
49314 fi
49315 fi
49316 exit 0
81f90336 49317elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 49318 ${D}* || exit ${D}?
81f90336
MW
49319 # Run mwcc again with -MM and redirect into the dep file we want
49320 # NOTE: We can't use shift here because we need ${D}* to be valid
49321 prevarg=
49322 for arg in ${D}* ; do
49323 if test "${D}prevarg" = "-o"; then
49324 objfile=${D}arg
49325 else
49326 case "${D}arg" in
49327 -* )
49328 ;;
49329 * )
49330 srcfile=${D}arg
49331 ;;
49332 esac
49333 fi
49334 prevarg="${D}arg"
49335 done
0ad5d837 49336 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 49337 exit 0
0ad5d837 49338elif test ${D}DEPSMODE = unixcc; then
f6b50c59 49339 ${D}* || exit ${D}?
a9e5b1f0
MW
49340 # Run compiler again with deps flag and redirect into the dep file.
49341 # It doesn't work if the '-o FILE' option is used, but without it the
49342 # dependency file will contain the wrong name for the object. So it is
49343 # removed from the command line, and the dep file is fixed with sed.
49344 cmd=""
49345 while test ${D}# -gt 0; do
49346 case "${D}1" in
49347 -o )
49348 shift
49349 objfile=${D}1
49350 ;;
49351 * )
49352 eval arg${D}#=\\${D}1
49353 cmd="${D}cmd \\${D}arg${D}#"
49354 ;;
49355 esac
49356 shift
49357 done
0ad5d837 49358 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 49359 exit 0
a848cd7e 49360else
473276a9
VS
49361 ${D}*
49362 exit ${D}?
a848cd7e
SC
49363fi
49364EOF
473276a9 49365
f10e38c4
VZ
49366 chmod +x bk-deps
49367 fi
a848cd7e
SC
49368 fi
49369
49370
49371
49372
a848cd7e
SC
49373 case ${BAKEFILE_HOST} in
49374 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
49375 if test -n "$ac_tool_prefix"; then
49376 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
49377set dummy ${ac_tool_prefix}windres; ac_word=$2
49378echo "$as_me:$LINENO: checking for $ac_word" >&5
49379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49380if test "${ac_cv_prog_WINDRES+set}" = set; then
49381 echo $ECHO_N "(cached) $ECHO_C" >&6
49382else
49383 if test -n "$WINDRES"; then
49384 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
49385else
49386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49387for as_dir in $PATH
49388do
49389 IFS=$as_save_IFS
49390 test -z "$as_dir" && as_dir=.
49391 for ac_exec_ext in '' $ac_executable_extensions; do
49392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49393 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
49394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49395 break 2
49396 fi
49397done
49398done
49399
49400fi
49401fi
49402WINDRES=$ac_cv_prog_WINDRES
49403if test -n "$WINDRES"; then
49404 echo "$as_me:$LINENO: result: $WINDRES" >&5
49405echo "${ECHO_T}$WINDRES" >&6
49406else
49407 echo "$as_me:$LINENO: result: no" >&5
49408echo "${ECHO_T}no" >&6
49409fi
49410
49411fi
49412if test -z "$ac_cv_prog_WINDRES"; then
49413 ac_ct_WINDRES=$WINDRES
49414 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
49415set dummy windres; ac_word=$2
49416echo "$as_me:$LINENO: checking for $ac_word" >&5
49417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 49418if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
49419 echo $ECHO_N "(cached) $ECHO_C" >&6
49420else
8ced02f6
DE
49421 if test -n "$ac_ct_WINDRES"; then
49422 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
49423else
49424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49425for as_dir in $PATH
49426do
49427 IFS=$as_save_IFS
49428 test -z "$as_dir" && as_dir=.
49429 for ac_exec_ext in '' $ac_executable_extensions; do
49430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 49431 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
49432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49433 break 2
49434 fi
49435done
49436done
49437
a848cd7e
SC
49438fi
49439fi
8ced02f6
DE
49440ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
49441if test -n "$ac_ct_WINDRES"; then
49442 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
49443echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
49444else
49445 echo "$as_me:$LINENO: result: no" >&5
49446echo "${ECHO_T}no" >&6
49447fi
49448
8ced02f6
DE
49449 WINDRES=$ac_ct_WINDRES
49450else
49451 WINDRES="$ac_cv_prog_WINDRES"
49452fi
49453
a848cd7e
SC
49454 ;;
49455
1e9e8aba 49456 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
49457 # Extract the first word of "Rez", so it can be a program name with args.
49458set dummy Rez; ac_word=$2
49459echo "$as_me:$LINENO: checking for $ac_word" >&5
49460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 49461if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
49462 echo $ECHO_N "(cached) $ECHO_C" >&6
49463else
8ced02f6
DE
49464 if test -n "$REZ"; then
49465 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
49466else
49467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49468for as_dir in $PATH
49469do
49470 IFS=$as_save_IFS
49471 test -z "$as_dir" && as_dir=.
49472 for ac_exec_ext in '' $ac_executable_extensions; do
49473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 49474 ac_cv_prog_REZ="Rez"
a848cd7e
SC
49475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49476 break 2
49477 fi
49478done
49479done
49480
8ced02f6 49481 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
49482fi
49483fi
8ced02f6
DE
49484REZ=$ac_cv_prog_REZ
49485if test -n "$REZ"; then
49486 echo "$as_me:$LINENO: result: $REZ" >&5
49487echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
49488else
49489 echo "$as_me:$LINENO: result: no" >&5
49490echo "${ECHO_T}no" >&6
49491fi
49492
49493 # Extract the first word of "SetFile", so it can be a program name with args.
49494set dummy SetFile; ac_word=$2
49495echo "$as_me:$LINENO: checking for $ac_word" >&5
49496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49497if test "${ac_cv_prog_SETFILE+set}" = set; then
49498 echo $ECHO_N "(cached) $ECHO_C" >&6
49499else
49500 if test -n "$SETFILE"; then
49501 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
49502else
49503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49504for as_dir in $PATH
49505do
49506 IFS=$as_save_IFS
49507 test -z "$as_dir" && as_dir=.
49508 for ac_exec_ext in '' $ac_executable_extensions; do
49509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49510 ac_cv_prog_SETFILE="SetFile"
49511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49512 break 2
49513 fi
49514done
49515done
49516
49517 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
49518fi
49519fi
49520SETFILE=$ac_cv_prog_SETFILE
49521if test -n "$SETFILE"; then
49522 echo "$as_me:$LINENO: result: $SETFILE" >&5
49523echo "${ECHO_T}$SETFILE" >&6
49524else
49525 echo "$as_me:$LINENO: result: no" >&5
49526echo "${ECHO_T}no" >&6
49527fi
49528
49529 ;;
49530 esac
49531
49532
49533
49534
49535
8ced02f6 49536
f10e38c4 49537 BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
a848cd7e 49538
dcc1b6ad 49539
f10e38c4 49540BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
a848cd7e 49541
646b6ec1 49542
74b84332 49543
a848cd7e
SC
49544 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
49545if test "${enable_precomp_headers+set}" = set; then
49546 enableval="$enable_precomp_headers"
49547 bk_use_pch="$enableval"
49548fi;
49549
49550 GCC_PCH=0
f10e38c4
VZ
49551 ICC_PCH=0
49552 USE_PCH=0
a848cd7e 49553
5c60e845
MW
49554 case ${BAKEFILE_HOST} in
49555 *-*-cygwin* )
49556 bk_use_pch="no"
49557 ;;
49558 esac
49559
a848cd7e
SC
49560 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
49561 if test "x$GCC" = "xyes"; then
49562 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
49563echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
49564 cat >conftest.$ac_ext <<_ACEOF
49565/* confdefs.h. */
49566_ACEOF
49567cat confdefs.h >>conftest.$ac_ext
49568cat >>conftest.$ac_ext <<_ACEOF
49569/* end confdefs.h. */
49570
49571int
49572main ()
49573{
49574
49575 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 49576 There is no PCH support
a848cd7e
SC
49577 #endif
49578 #if (__GNUC__ < 3)
e5efa97e 49579 There is no PCH support
a848cd7e
SC
49580 #endif
49581 #if (__GNUC__ == 3) && \
49582 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
49583 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
49584 ( defined(__INTEL_COMPILER) )
e5efa97e 49585 There is no PCH support
a848cd7e
SC
49586 #endif
49587
49588 ;
49589 return 0;
49590}
49591_ACEOF
49592rm -f conftest.$ac_objext
49593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 49594 (eval $ac_compile) 2>conftest.er1
a848cd7e 49595 ac_status=$?
ac1cb8d3
VS
49596 grep -v '^ *+' conftest.er1 >conftest.err
49597 rm -f conftest.er1
49598 cat conftest.err >&5
a848cd7e
SC
49599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49600 (exit $ac_status); } &&
bb9e79c0 49601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
49602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49603 (eval $ac_try) 2>&5
49604 ac_status=$?
49605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49606 (exit $ac_status); }; } &&
49607 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
49608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49609 (eval $ac_try) 2>&5
49610 ac_status=$?
49611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49612 (exit $ac_status); }; }; then
49613
49614 echo "$as_me:$LINENO: result: yes" >&5
49615echo "${ECHO_T}yes" >&6
a848cd7e
SC
49616 GCC_PCH=1
49617
49618else
49619 echo "$as_me: failed program was:" >&5
49620sed 's/^/| /' conftest.$ac_ext >&5
49621
49622
f10e38c4
VZ
49623 cat >conftest.$ac_ext <<_ACEOF
49624/* confdefs.h. */
49625_ACEOF
49626cat confdefs.h >>conftest.$ac_ext
49627cat >>conftest.$ac_ext <<_ACEOF
49628/* end confdefs.h. */
49629
49630int
49631main ()
49632{
49633
49634 #if !defined(__INTEL_COMPILER) || \
49635 (__INTEL_COMPILER < 800)
e5efa97e 49636 There is no PCH support
f10e38c4
VZ
49637 #endif
49638
49639 ;
49640 return 0;
49641}
49642_ACEOF
49643rm -f conftest.$ac_objext
49644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49645 (eval $ac_compile) 2>conftest.er1
49646 ac_status=$?
49647 grep -v '^ *+' conftest.er1 >conftest.err
49648 rm -f conftest.er1
49649 cat conftest.err >&5
49650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49651 (exit $ac_status); } &&
bb9e79c0 49652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f10e38c4
VZ
49653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49654 (eval $ac_try) 2>&5
49655 ac_status=$?
49656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49657 (exit $ac_status); }; } &&
49658 { ac_try='test -s conftest.$ac_objext'
49659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49660 (eval $ac_try) 2>&5
49661 ac_status=$?
49662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49663 (exit $ac_status); }; }; then
49664
49665 echo "$as_me:$LINENO: result: yes" >&5
49666echo "${ECHO_T}yes" >&6
49667 ICC_PCH=1
49668
49669else
49670 echo "$as_me: failed program was:" >&5
49671sed 's/^/| /' conftest.$ac_ext >&5
49672
49673
49674 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
49675echo "${ECHO_T}no" >&6
49676
49677fi
ac1cb8d3 49678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
49679
49680fi
49681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49682 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
49683 USE_PCH=1
1e9e8aba
DE
49684
49685D='$'
49686cat <<EOF >bk-make-pch
a848cd7e
SC
49687#!/bin/sh
49688
49689# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
49690# script. It is used to generated precompiled headers.
49691#
49692# Permission is given to use this file in any way.
49693
1e9e8aba
DE
49694outfile="${D}{1}"
49695header="${D}{2}"
a848cd7e
SC
49696shift
49697shift
49698
f10e38c4
VZ
49699compiler=""
49700headerfile=""
49701
1e9e8aba 49702while test ${D}{#} -gt 0; do
f10e38c4 49703 add_to_cmdline=1
1e9e8aba 49704 case "${D}{1}" in
a848cd7e 49705 -I* )
1e9e8aba
DE
49706 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
49707 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
49708 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
49709 fi
49710 ;;
f10e38c4
VZ
49711 -use-pch|-use_pch )
49712 shift
49713 add_to_cmdline=0
49714 ;;
a848cd7e 49715 esac
f10e38c4
VZ
49716 if test ${D}add_to_cmdline = 1 ; then
49717 compiler="${D}{compiler} ${D}{1}"
49718 fi
a848cd7e
SC
49719 shift
49720done
49721
1e9e8aba 49722if test "x${D}{headerfile}" = "x" ; then
f10e38c4 49723 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 49724else
1e9e8aba
DE
49725 if test -f ${D}{outfile} ; then
49726 rm -f ${D}{outfile}
a848cd7e 49727 else
1e9e8aba 49728 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 49729 fi
1e9e8aba 49730 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 49731 mkdir -p .deps
f10e38c4
VZ
49732 if test "x${GCC_PCH}" = "x1" ; then
49733 # can do this because gcc is >= 3.4:
49734 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
49735 elif test "x${ICC_PCH}" = "x1" ; then
49736 filename=pch_gen-${D}${D}
49737 file=${D}{filename}.c
49738 dfile=${D}{filename}.d
49739 cat > ${D}file <<EOT
49740#include "${D}header"
49741EOT
49742 # using -MF icc complains about differing command lines in creation/use
49743 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
49744 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
49745 rm -f ${D}file ${D}dfile ${D}{filename}.o
49746 fi
1e9e8aba 49747 exit ${D}{?}
a848cd7e
SC
49748fi
49749EOF
1e9e8aba 49750
a848cd7e
SC
49751 chmod +x bk-make-pch
49752 fi
49753 fi
49754 fi
49755
49756
49757
f10e38c4 49758
a848cd7e
SC
49759 COND_BUILD_DEBUG="#"
49760 if test "x$BUILD" = "xdebug" ; then
49761 COND_BUILD_DEBUG=""
49762 fi
49763
49764 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
49765 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49766 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
49767 fi
49768
49769 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
49770 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49771 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
49772 fi
49773
49774 COND_BUILD_DEBUG_UNICODE_0="#"
49775 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49776 COND_BUILD_DEBUG_UNICODE_0=""
49777 fi
49778
49779 COND_BUILD_DEBUG_UNICODE_1="#"
49780 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49781 COND_BUILD_DEBUG_UNICODE_1=""
49782 fi
49783
49784 COND_BUILD_RELEASE="#"
49785 if test "x$BUILD" = "xrelease" ; then
49786 COND_BUILD_RELEASE=""
49787 fi
49788
49789 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
49790 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49791 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
49792 fi
49793
49794 COND_BUILD_RELEASE_UNICODE_0="#"
49795 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49796 COND_BUILD_RELEASE_UNICODE_0=""
49797 fi
49798
49799 COND_BUILD_RELEASE_UNICODE_1="#"
49800 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49801 COND_BUILD_RELEASE_UNICODE_1=""
49802 fi
49803
49804 COND_DEBUG_FLAG_1="#"
49805 if test "x$DEBUG_FLAG" = "x1" ; then
49806 COND_DEBUG_FLAG_1=""
49807 fi
49808
49809 COND_DEBUG_INFO_0="#"
49810 if test "x$DEBUG_INFO" = "x0" ; then
49811 COND_DEBUG_INFO_0=""
49812 fi
49813
49814 COND_DEBUG_INFO_1="#"
49815 if test "x$DEBUG_INFO" = "x1" ; then
49816 COND_DEBUG_INFO_1=""
49817 fi
49818
49819 COND_DEPS_TRACKING_0="#"
49820 if test "x$DEPS_TRACKING" = "x0" ; then
49821 COND_DEPS_TRACKING_0=""
49822 fi
49823
49824 COND_DEPS_TRACKING_1="#"
49825 if test "x$DEPS_TRACKING" = "x1" ; then
49826 COND_DEPS_TRACKING_1=""
49827 fi
49828
49829 COND_GCC_PCH_1="#"
49830 if test "x$GCC_PCH" = "x1" ; then
49831 COND_GCC_PCH_1=""
49832 fi
49833
f10e38c4
VZ
49834 COND_ICC_PCH_1="#"
49835 if test "x$ICC_PCH" = "x1" ; then
49836 COND_ICC_PCH_1=""
49837 fi
49838
a848cd7e
SC
49839 COND_MONOLITHIC_0="#"
49840 if test "x$MONOLITHIC" = "x0" ; then
49841 COND_MONOLITHIC_0=""
49842 fi
49843
49844 COND_MONOLITHIC_0_SHARED_0="#"
49845 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
49846 COND_MONOLITHIC_0_SHARED_0=""
49847 fi
49848
3f60522a
JS
49849 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
49850 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
49851 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
49852 fi
49853
a848cd7e
SC
49854 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
49855 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
49856 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
49857 fi
49858
90970d69
DE
49859 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
49860 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49861 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
49862 fi
49863
f10e38c4
VZ
49864 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
49865 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49866 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
49867 fi
49868
a848cd7e
SC
49869 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
49870 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
49871 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
49872 fi
49873
6671c68b
VZ
49874 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
49875 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49876 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
49877 fi
49878
a848cd7e
SC
49879 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
49880 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
49881 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
49882 fi
49883
8b6682b9
JS
49884 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
49885 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49886 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
49887 fi
49888
ceec2216
RL
49889 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
49890 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49891 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
49892 fi
49893
a848cd7e
SC
49894 COND_MONOLITHIC_0_SHARED_1="#"
49895 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
49896 COND_MONOLITHIC_0_SHARED_1=""
49897 fi
49898
3f60522a
JS
49899 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
49900 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
49901 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
49902 fi
49903
a848cd7e
SC
49904 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
49905 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
49906 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
49907 fi
49908
90970d69
DE
49909 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
49910 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49911 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
49912 fi
49913
f10e38c4
VZ
49914 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
49915 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49916 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
49917 fi
49918
a848cd7e
SC
49919 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
49920 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
49921 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
49922 fi
49923
6671c68b
VZ
49924 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
49925 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49926 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
49927 fi
49928
a848cd7e
SC
49929 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
49930 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
49931 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
49932 fi
49933
8b6682b9
JS
49934 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
49935 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
49936 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
49937 fi
49938
ceec2216
RL
49939 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
49940 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49941 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
49942 fi
49943
e5efa97e
VZ
49944 COND_MONOLITHIC_0_USE_MEDIA_1="#"
49945 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
49946 COND_MONOLITHIC_0_USE_MEDIA_1=""
49947 fi
49948
a848cd7e
SC
49949 COND_MONOLITHIC_0_USE_ODBC_1="#"
49950 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
49951 COND_MONOLITHIC_0_USE_ODBC_1=""
49952 fi
49953
49954 COND_MONOLITHIC_1="#"
49955 if test "x$MONOLITHIC" = "x1" ; then
49956 COND_MONOLITHIC_1=""
49957 fi
49958
49959 COND_MONOLITHIC_1_SHARED_0="#"
49960 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
49961 COND_MONOLITHIC_1_SHARED_0=""
49962 fi
49963
49964 COND_MONOLITHIC_1_SHARED_1="#"
49965 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
49966 COND_MONOLITHIC_1_SHARED_1=""
49967 fi
49968
49969 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
49970 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
49971 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
49972 fi
49973
49974 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
49975 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
49976 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
49977 fi
49978
eb730a0c
JS
49979 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
49980 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49981 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
49982 fi
49983
a848cd7e
SC
49984 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
49985 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49986 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
49987 fi
49988
49989 COND_PLATFORM_MACOSX_1="#"
49990 if test "x$PLATFORM_MACOSX" = "x1" ; then
49991 COND_PLATFORM_MACOSX_1=""
49992 fi
49993
a30f955f
VS
49994 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
49995 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
49996 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
49997 fi
49998
a848cd7e
SC
49999 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
50000 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
50001 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
50002 fi
50003
50004 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
50005 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
50006 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
50007 fi
50008
50009 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
50010 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
50011 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
50012 fi
50013
fc480dc1
DE
50014 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
50015 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
50016 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
50017 fi
50018
1e9e8aba
DE
50019 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
50020 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50021 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
50022 fi
50023
ebee3cd0
VS
50024 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
50025 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
50026 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
50027 fi
50028
50029 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
50030 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
50031 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
50032 fi
50033
a848cd7e
SC
50034 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
50035 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
50036 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
50037 fi
50038
50039 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
50040 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50041 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
50042 fi
50043
b48a2016
DE
50044 COND_PLATFORM_MACOS_1="#"
50045 if test "x$PLATFORM_MACOS" = "x1" ; then
50046 COND_PLATFORM_MACOS_1=""
50047 fi
50048
083508af
MW
50049 COND_PLATFORM_MAC_1="#"
50050 if test "x$PLATFORM_MAC" = "x1" ; then
50051 COND_PLATFORM_MAC_1=""
50052 fi
50053
e5efa97e
VZ
50054 COND_PLATFORM_MSDOS_0="#"
50055 if test "x$PLATFORM_MSDOS" = "x0" ; then
50056 COND_PLATFORM_MSDOS_0=""
50057 fi
50058
83d8eb47
MW
50059 COND_PLATFORM_MSDOS_1="#"
50060 if test "x$PLATFORM_MSDOS" = "x1" ; then
50061 COND_PLATFORM_MSDOS_1=""
50062 fi
50063
a848cd7e
SC
50064 COND_PLATFORM_OS2_1="#"
50065 if test "x$PLATFORM_OS2" = "x1" ; then
50066 COND_PLATFORM_OS2_1=""
50067 fi
50068
50069 COND_PLATFORM_UNIX_0="#"
50070 if test "x$PLATFORM_UNIX" = "x0" ; then
50071 COND_PLATFORM_UNIX_0=""
50072 fi
50073
50074 COND_PLATFORM_UNIX_1="#"
50075 if test "x$PLATFORM_UNIX" = "x1" ; then
50076 COND_PLATFORM_UNIX_1=""
50077 fi
50078
50079 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
50080 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
50081 COND_PLATFORM_UNIX_1_USE_GUI_1=""
50082 fi
50083
50084 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
50085 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
50086 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
50087 fi
50088
50089 COND_PLATFORM_WIN32_0="#"
50090 if test "x$PLATFORM_WIN32" = "x0" ; then
50091 COND_PLATFORM_WIN32_0=""
50092 fi
50093
50094 COND_PLATFORM_WIN32_1="#"
50095 if test "x$PLATFORM_WIN32" = "x1" ; then
50096 COND_PLATFORM_WIN32_1=""
50097 fi
50098
50099 COND_SHARED_0="#"
50100 if test "x$SHARED" = "x0" ; then
50101 COND_SHARED_0=""
50102 fi
50103
083508af
MW
50104 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
50105 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
50106 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
50107 fi
50108
50109 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
50110 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
50111 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
50112 fi
50113
50114 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
50115 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
50116 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
50117 fi
50118
a848cd7e
SC
50119 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
50120 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50121 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
50122 fi
50123
50124 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
50125 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50126 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
50127 fi
50128
50129 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
50130 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50131 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
50132 fi
50133
50134 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
50135 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50136 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
50137 fi
50138
083508af
MW
50139 COND_SHARED_0_USE_XRC_1="#"
50140 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
50141 COND_SHARED_0_USE_XRC_1=""
50142 fi
50143
a848cd7e
SC
50144 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
50145 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
50146 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
50147 fi
50148
50149 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
50150 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
50151 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
50152 fi
50153
50154 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
50155 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
50156 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
50157 fi
50158
50159 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
50160 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
50161 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
50162 fi
50163
50164 COND_SHARED_1="#"
50165 if test "x$SHARED" = "x1" ; then
50166 COND_SHARED_1=""
50167 fi
50168
50169 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
50170 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50171 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
50172 fi
50173
083508af
MW
50174 COND_SHARED_1_USE_XRC_1="#"
50175 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
50176 COND_SHARED_1_USE_XRC_1=""
50177 fi
50178
a30f955f
VS
50179 COND_TOOLKIT_="#"
50180 if test "x$TOOLKIT" = "x" ; then
50181 COND_TOOLKIT_=""
50182 fi
50183
a848cd7e
SC
50184 COND_TOOLKIT_COCOA="#"
50185 if test "x$TOOLKIT" = "xCOCOA" ; then
50186 COND_TOOLKIT_COCOA=""
50187 fi
50188
a49baeab
DE
50189 COND_TOOLKIT_COCOA_USE_GUI_1="#"
50190 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
50191 COND_TOOLKIT_COCOA_USE_GUI_1=""
50192 fi
50193
a848cd7e
SC
50194 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
50195 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50196 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
50197 fi
50198
b3c86150
VS
50199 COND_TOOLKIT_DFB="#"
50200 if test "x$TOOLKIT" = "xDFB" ; then
50201 COND_TOOLKIT_DFB=""
50202 fi
50203
50204 COND_TOOLKIT_DFB_USE_GUI_1="#"
50205 if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
50206 COND_TOOLKIT_DFB_USE_GUI_1=""
50207 fi
50208
a848cd7e
SC
50209 COND_TOOLKIT_GTK="#"
50210 if test "x$TOOLKIT" = "xGTK" ; then
50211 COND_TOOLKIT_GTK=""
50212 fi
50213
d044deea
MW
50214 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
50215 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
50216 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
50217 fi
50218
50219 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
50220 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
50221 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
50222 fi
50223
50224 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
50225 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
50226 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
50227 fi
50228
50229 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
50230 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50231 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
50232 fi
50233
50234 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
50235 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
50236 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
50237 fi
50238
50239 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
50240 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50241 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
50242 fi
50243
a848cd7e
SC
50244 COND_TOOLKIT_GTK_USE_GUI_1="#"
50245 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
50246 COND_TOOLKIT_GTK_USE_GUI_1=""
50247 fi
50248
a848cd7e
SC
50249 COND_TOOLKIT_MAC="#"
50250 if test "x$TOOLKIT" = "xMAC" ; then
50251 COND_TOOLKIT_MAC=""
50252 fi
50253
50254 COND_TOOLKIT_MAC_USE_GUI_1="#"
50255 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
50256 COND_TOOLKIT_MAC_USE_GUI_1=""
50257 fi
50258
50259 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
50260 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50261 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
50262 fi
50263
50264 COND_TOOLKIT_MGL="#"
50265 if test "x$TOOLKIT" = "xMGL" ; then
50266 COND_TOOLKIT_MGL=""
50267 fi
50268
50269 COND_TOOLKIT_MGL_USE_GUI_1="#"
50270 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
50271 COND_TOOLKIT_MGL_USE_GUI_1=""
50272 fi
50273
50274 COND_TOOLKIT_MOTIF="#"
50275 if test "x$TOOLKIT" = "xMOTIF" ; then
50276 COND_TOOLKIT_MOTIF=""
50277 fi
50278
50279 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
50280 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
50281 COND_TOOLKIT_MOTIF_USE_GUI_1=""
50282 fi
50283
50284 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
50285 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50286 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
50287 fi
50288
50289 COND_TOOLKIT_MSW="#"
50290 if test "x$TOOLKIT" = "xMSW" ; then
50291 COND_TOOLKIT_MSW=""
50292 fi
50293
50294 COND_TOOLKIT_MSW_USE_GUI_1="#"
50295 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
50296 COND_TOOLKIT_MSW_USE_GUI_1=""
50297 fi
50298
50299 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
50300 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50301 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
50302 fi
50303
0ee4059d
DE
50304 COND_TOOLKIT_MSW_WXUNIV_0="#"
50305 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
50306 COND_TOOLKIT_MSW_WXUNIV_0=""
50307 fi
50308
a848cd7e
SC
50309 COND_TOOLKIT_PM="#"
50310 if test "x$TOOLKIT" = "xPM" ; then
50311 COND_TOOLKIT_PM=""
50312 fi
50313
50314 COND_TOOLKIT_PM_USE_GUI_1="#"
50315 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
50316 COND_TOOLKIT_PM_USE_GUI_1=""
50317 fi
50318
50319 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
50320 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50321 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
50322 fi
50323
3fd9c298
DE
50324 COND_TOOLKIT_WINCE="#"
50325 if test "x$TOOLKIT" = "xWINCE" ; then
50326 COND_TOOLKIT_WINCE=""
50327 fi
50328
50329 COND_TOOLKIT_WINCE_USE_GUI_1="#"
50330 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
50331 COND_TOOLKIT_WINCE_USE_GUI_1=""
50332 fi
50333
50334 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
50335 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50336 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
50337 fi
50338
0ee4059d
DE
50339 COND_TOOLKIT_WINCE_WXUNIV_0="#"
50340 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
50341 COND_TOOLKIT_WINCE_WXUNIV_0=""
50342 fi
50343
a848cd7e
SC
50344 COND_TOOLKIT_X11="#"
50345 if test "x$TOOLKIT" = "xX11" ; then
50346 COND_TOOLKIT_X11=""
50347 fi
50348
50349 COND_TOOLKIT_X11_USE_GUI_1="#"
50350 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
50351 COND_TOOLKIT_X11_USE_GUI_1=""
50352 fi
50353
50354 COND_UNICODE_1="#"
50355 if test "x$UNICODE" = "x1" ; then
50356 COND_UNICODE_1=""
50357 fi
50358
50359 COND_USE_EXCEPTIONS_0="#"
50360 if test "x$USE_EXCEPTIONS" = "x0" ; then
50361 COND_USE_EXCEPTIONS_0=""
50362 fi
50363
50364 COND_USE_EXCEPTIONS_1="#"
50365 if test "x$USE_EXCEPTIONS" = "x1" ; then
50366 COND_USE_EXCEPTIONS_1=""
50367 fi
50368
50369 COND_USE_GUI_0="#"
50370 if test "x$USE_GUI" = "x0" ; then
50371 COND_USE_GUI_0=""
50372 fi
50373
50374 COND_USE_GUI_1="#"
50375 if test "x$USE_GUI" = "x1" ; then
50376 COND_USE_GUI_1=""
50377 fi
50378
50379 COND_USE_GUI_1_WXUNIV_0="#"
50380 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50381 COND_USE_GUI_1_WXUNIV_0=""
50382 fi
50383
50384 COND_USE_GUI_1_WXUNIV_1="#"
50385 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
50386 COND_USE_GUI_1_WXUNIV_1=""
50387 fi
50388
50389 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
50390 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50391 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
50392 fi
50393
50394 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
50395 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50396 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
50397 fi
50398
50399 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
50400 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50401 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
50402 fi
50403
083508af
MW
50404 COND_USE_ODBC_1="#"
50405 if test "x$USE_ODBC" = "x1" ; then
50406 COND_USE_ODBC_1=""
50407 fi
50408
50409 COND_USE_OPENGL_1="#"
50410 if test "x$USE_OPENGL" = "x1" ; then
50411 COND_USE_OPENGL_1=""
50412 fi
50413
f10e38c4
VZ
50414 COND_USE_PCH_1="#"
50415 if test "x$USE_PCH" = "x1" ; then
50416 COND_USE_PCH_1=""
50417 fi
50418
a848cd7e
SC
50419 COND_USE_PLUGINS_0="#"
50420 if test "x$USE_PLUGINS" = "x0" ; then
50421 COND_USE_PLUGINS_0=""
50422 fi
50423
0b78747f
MW
50424 COND_USE_RTTI_0="#"
50425 if test "x$USE_RTTI" = "x0" ; then
50426 COND_USE_RTTI_0=""
50427 fi
50428
50429 COND_USE_RTTI_1="#"
50430 if test "x$USE_RTTI" = "x1" ; then
50431 COND_USE_RTTI_1=""
50432 fi
50433
a848cd7e
SC
50434 COND_USE_SOSYMLINKS_1="#"
50435 if test "x$USE_SOSYMLINKS" = "x1" ; then
50436 COND_USE_SOSYMLINKS_1=""
50437 fi
50438
eb730a0c
JS
50439 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
50440 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50441 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
50442 fi
50443
a848cd7e
SC
50444 COND_USE_SOVERLINUX_1="#"
50445 if test "x$USE_SOVERLINUX" = "x1" ; then
50446 COND_USE_SOVERLINUX_1=""
50447 fi
50448
50449 COND_USE_SOVERSION_0="#"
50450 if test "x$USE_SOVERSION" = "x0" ; then
50451 COND_USE_SOVERSION_0=""
50452 fi
50453
50454 COND_USE_SOVERSOLARIS_1="#"
50455 if test "x$USE_SOVERSOLARIS" = "x1" ; then
50456 COND_USE_SOVERSOLARIS_1=""
50457 fi
50458
0b78747f
MW
50459 COND_USE_THREADS_0="#"
50460 if test "x$USE_THREADS" = "x0" ; then
50461 COND_USE_THREADS_0=""
50462 fi
50463
50464 COND_USE_THREADS_1="#"
50465 if test "x$USE_THREADS" = "x1" ; then
50466 COND_USE_THREADS_1=""
50467 fi
50468
a13a7f89
RL
50469 COND_USE_XRC_1="#"
50470 if test "x$USE_XRC" = "x1" ; then
50471 COND_USE_XRC_1=""
50472 fi
50473
eb730a0c
JS
50474 COND_WINDOWS_IMPLIB_1="#"
50475 if test "x$WINDOWS_IMPLIB" = "x1" ; then
50476 COND_WINDOWS_IMPLIB_1=""
50477 fi
50478
a848cd7e
SC
50479 COND_WITH_PLUGIN_SDL_1="#"
50480 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
50481 COND_WITH_PLUGIN_SDL_1=""
50482 fi
50483
1e6eb025
VZ
50484 COND_WXUNIV_0="#"
50485 if test "x$WXUNIV" = "x0" ; then
50486 COND_WXUNIV_0=""
50487 fi
50488
a848cd7e
SC
50489 COND_WXUNIV_1="#"
50490 if test "x$WXUNIV" = "x1" ; then
50491 COND_WXUNIV_1=""
50492 fi
50493
50494 COND_WXUSE_EXPAT_BUILTIN="#"
50495 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50496 COND_WXUSE_EXPAT_BUILTIN=""
50497 fi
50498
50499 COND_WXUSE_LIBJPEG_BUILTIN="#"
50500 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50501 COND_WXUSE_LIBJPEG_BUILTIN=""
50502 fi
50503
50504 COND_WXUSE_LIBPNG_BUILTIN="#"
50505 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50506 COND_WXUSE_LIBPNG_BUILTIN=""
50507 fi
50508
50509 COND_WXUSE_LIBTIFF_BUILTIN="#"
50510 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50511 COND_WXUSE_LIBTIFF_BUILTIN=""
50512 fi
50513
50514 COND_WXUSE_ODBC_BUILTIN="#"
50515 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
50516 COND_WXUSE_ODBC_BUILTIN=""
50517 fi
50518
50519 COND_WXUSE_REGEX_BUILTIN="#"
50520 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50521 COND_WXUSE_REGEX_BUILTIN=""
50522 fi
50523
50524 COND_WXUSE_ZLIB_BUILTIN="#"
50525 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50526 COND_WXUSE_ZLIB_BUILTIN=""
50527 fi
50528
50529
50530
810b94f0
MW
50531 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
50532 { { 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
50533echo "$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;}
50534 { (exit 1); exit 1; }; }
50535 fi
50536
2057db16
VS
50537 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
50538 { { 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
50539echo "$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;}
50540 { (exit 1); exit 1; }; }
50541 fi
50542
a848cd7e 50543
a81d5bb6
MW
50544if test $GCC_PCH = 1
50545then
50546 if test "$wx_cv_gcc_pch_bug" = yes; then
50547 { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
50548echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
50549 { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
50550echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
50551 { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
50552echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
50553 fi
50554
50555 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
50556fi
50557
7afc46ab
KO
50558
50559if test "$wxUSE_MAC" = 1 ; then
95768535 50560 if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
7afc46ab
KO
50561 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
50562 mv temp bk-deps
50563 chmod +x bk-deps
50564 fi
50565fi
50566
ceec2216
RL
50567if test "$wxUSE_SHARED" = "yes"; then
50568
50569 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
50570 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
50571
5b674b9d
DE
50572 case "${host}" in
50573 *-pc-os2_emx | *-pc-os2-emx )
50574 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50575 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
ec3edcc9
VZ
50576 cp -p ${srcdir}/src/os2/dllnames.sh .
50577 cp -p ${srcdir}/src/os2/dllar.sh .
5b674b9d
DE
50578 ;;
50579 esac
ceec2216
RL
50580else
50581
50582 EXE_LINKER="$CXX -o"
50583
50584fi
69120ee4
VZ
50585if test "$wxUSE_OMF" = "yes"; then
50586 case "${host}" in
50587 *-pc-os2_emx | *-pc-os2-emx )
50588 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
50589 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50590 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50591 ;;
50592 esac
50593fi
a848cd7e 50594
5ff751d6 50595WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
50596
50597SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
50598
50599
50600
50601
50602
50603
50604
50605
50606
50607
50608
50609
50610
50611
50612
50613
50614
50615
50616
50617
50618
50619
50620
50621
50622
50623
50624
50625
50626
50627
50628
50629
50630
50631
50632
50633
50634
50635
50636
50637
50638
50639
a848cd7e
SC
50640
50641
50642
50643
50644
50645
50646
50647
50648
50649
50650
50651
a848cd7e
SC
50652
50653
ddd14b14 50654
370d2fd7 50655
8ced02f6 50656
a848cd7e
SC
50657
50658
50659echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50660echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 50661set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
50662if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
50663 echo $ECHO_N "(cached) $ECHO_C" >&6
50664else
50665 cat >conftest.make <<\_ACEOF
50666all:
50667 @echo 'ac_maketemp="$(MAKE)"'
50668_ACEOF
50669# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
50670eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
50671if test -n "$ac_maketemp"; then
50672 eval ac_cv_prog_make_${ac_make}_set=yes
50673else
50674 eval ac_cv_prog_make_${ac_make}_set=no
50675fi
50676rm -f conftest.make
50677fi
50678if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
50679 echo "$as_me:$LINENO: result: yes" >&5
50680echo "${ECHO_T}yes" >&6
50681 SET_MAKE=
50682else
50683 echo "$as_me:$LINENO: result: no" >&5
50684echo "${ECHO_T}no" >&6
50685 SET_MAKE="MAKE=${MAKE-make}"
50686fi
50687
50688
a848cd7e 50689
ceec2216
RL
50690 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
50691
a848cd7e 50692
5c60e845
MW
50693if test "$USE_WIN32" = 1; then
50694 ac_config_commands="$ac_config_commands
50695 rcdefs.h
50696 "
50697
50698fi
50699
ceec2216 50700 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 50701
a848cd7e 50702
ceec2216 50703 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 50704
ceec2216
RL
50705
50706 ac_config_files="$ac_config_files version-script Makefile"
50707
50708
5c60e845 50709 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
50710
50711
9103d280 50712
1c14217d 50713if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
50714if test "$wxUSE_GUI" = "yes"; then
50715 SUBDIRS="samples demos utils contrib"
50716else SUBDIRS="samples utils"
50717fi
50718
50719
50720
50721# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
50722if test "${with_cppunit_prefix+set}" = set; then
50723 withval="$with_cppunit_prefix"
50724 cppunit_config_prefix="$withval"
50725else
50726 cppunit_config_prefix=""
50727fi;
50728
50729# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
50730if test "${with_cppunit_exec_prefix+set}" = set; then
50731 withval="$with_cppunit_exec_prefix"
50732 cppunit_config_exec_prefix="$withval"
50733else
50734 cppunit_config_exec_prefix=""
50735fi;
50736
50737 if test x$cppunit_config_exec_prefix != x ; then
50738 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
50739 if test x${CPPUNIT_CONFIG+set} != xset ; then
50740 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
50741 fi
50742 fi
50743 if test x$cppunit_config_prefix != x ; then
50744 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
50745 if test x${CPPUNIT_CONFIG+set} != xset ; then
50746 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
50747 fi
50748 fi
50749
50750 # Extract the first word of "cppunit-config", so it can be a program name with args.
50751set dummy cppunit-config; ac_word=$2
50752echo "$as_me:$LINENO: checking for $ac_word" >&5
50753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
50754if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
50755 echo $ECHO_N "(cached) $ECHO_C" >&6
50756else
50757 case $CPPUNIT_CONFIG in
50758 [\\/]* | ?:[\\/]*)
50759 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
50760 ;;
50761 *)
50762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50763for as_dir in $PATH
50764do
50765 IFS=$as_save_IFS
50766 test -z "$as_dir" && as_dir=.
50767 for ac_exec_ext in '' $ac_executable_extensions; do
50768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
50769 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
50770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50771 break 2
50772 fi
50773done
50774done
50775
50776 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
50777 ;;
50778esac
50779fi
50780CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
50781
50782if test -n "$CPPUNIT_CONFIG"; then
50783 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
50784echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
50785else
50786 echo "$as_me:$LINENO: result: no" >&5
50787echo "${ECHO_T}no" >&6
50788fi
50789
50790 cppunit_version_min=1.8.0
50791
50792 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
50793echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
50794 no_cppunit=""
50795 if test "$CPPUNIT_CONFIG" = "no" ; then
3ecd9f92
MW
50796 echo "$as_me:$LINENO: result: no" >&5
50797echo "${ECHO_T}no" >&6
a848cd7e
SC
50798 no_cppunit=yes
50799 else
50800 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
50801 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
50802 cppunit_version=`$CPPUNIT_CONFIG --version`
50803
50804 cppunit_major_version=`echo $cppunit_version | \
50805 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50806 cppunit_minor_version=`echo $cppunit_version | \
50807 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50808 cppunit_micro_version=`echo $cppunit_version | \
50809 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50810
50811 cppunit_major_min=`echo $cppunit_version_min | \
50812 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50813 cppunit_minor_min=`echo $cppunit_version_min | \
50814 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50815 cppunit_micro_min=`echo $cppunit_version_min | \
50816 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50817
50818 cppunit_version_proper=`expr \
50819 $cppunit_major_version \> $cppunit_major_min \| \
50820 $cppunit_major_version \= $cppunit_major_min \& \
50821 $cppunit_minor_version \> $cppunit_minor_min \| \
50822 $cppunit_major_version \= $cppunit_major_min \& \
50823 $cppunit_minor_version \= $cppunit_minor_min \& \
50824 $cppunit_micro_version \>= $cppunit_micro_min `
50825
50826 if test "$cppunit_version_proper" = "1" ; then
50827 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
50828echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
50829 else
50830 echo "$as_me:$LINENO: result: no" >&5
50831echo "${ECHO_T}no" >&6
50832 no_cppunit=yes
50833 fi
50834 fi
50835
50836 if test "x$no_cppunit" = x ; then
c2218763 50837 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
50838 else
50839 CPPUNIT_CFLAGS=""
50840 CPPUNIT_LIBS=""
c2218763 50841 :
a848cd7e
SC
50842 fi
50843
50844
50845
50846
50847
50848for subdir in `echo $SUBDIRS`; do
50849 if test -d ${srcdir}/${subdir} ; then
50850 if test "$wxUSE_GUI" = "yes"; then
50851 if test ${subdir} = "samples"; then
50852 makefiles="samples/Makefile.in $makefiles"
50853 for sample in `echo $SAMPLES_SUBDIRS`; do
50854 if test -d $srcdir/samples/$sample; then
50855 makefiles="samples/$sample/Makefile.in $makefiles"
50856 fi
50857 done
9c112555
MW
50858 else
50859 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
50860 eval "disabled=\$$disabled_var"
50861 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
50862 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
50863 fi
50864 else if test ${subdir} = "samples"; then
50865 makefiles="samples/Makefile.in samples/console/Makefile.in"
50866 elif test ${subdir} = "utils"; then
6537ccf8
VS
50867 makefiles=""
50868 for util in HelpGen tex2rtf ; do
50869 if test -d $srcdir/utils/$util ; then
50870 makefiles="utils/$util/Makefile.in \
50871 utils/$util/src/Makefile.in \
50872 $makefiles"
50873 fi
50874 done
a848cd7e
SC
50875 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
50876 fi
50877 fi
50878
50879 for mkin in $makefiles ; do
50880 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
50881 ac_config_files="$ac_config_files $mk"
50882
50883 done
50884 fi
50885done
1c14217d 50886fi
a848cd7e
SC
50887cat >confcache <<\_ACEOF
50888# This file is a shell script that caches the results of configure
50889# tests run on this system so they can be shared between configure
50890# scripts and configure runs, see configure's option --config-cache.
50891# It is not useful on other systems. If it contains results you don't
50892# want to keep, you may remove or edit it.
50893#
50894# config.status only pays attention to the cache file if you give it
50895# the --recheck option to rerun configure.
50896#
50897# `ac_cv_env_foo' variables (set or unset) will be overridden when
50898# loading this file, other *unset* `ac_cv_foo' will be assigned the
50899# following values.
50900
50901_ACEOF
50902
50903# The following way of writing the cache mishandles newlines in values,
50904# but we know of no workaround that is simple, portable, and efficient.
50905# So, don't put newlines in cache variables' values.
50906# Ultrix sh set writes to stderr and can't be redirected directly,
50907# and sets the high bit in the cache file unless we assign to the vars.
50908{
50909 (set) 2>&1 |
50910 case `(ac_space=' '; set | grep ac_space) 2>&1` in
50911 *ac_space=\ *)
50912 # `set' does not quote correctly, so add quotes (double-quote
50913 # substitution turns \\\\ into \\, and sed turns \\ into \).
50914 sed -n \
ac1cb8d3
VS
50915 "s/'/'\\\\''/g;
50916 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
50917 ;;
50918 *)
50919 # `set' quotes correctly as required by POSIX, so do not add quotes.
50920 sed -n \
ac1cb8d3 50921 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
50922 ;;
50923 esac;
50924} |
50925 sed '
50926 t clear
50927 : clear
50928 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
50929 t end
50930 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
50931 : end' >>confcache
50932if diff $cache_file confcache >/dev/null 2>&1; then :; else
50933 if test -w $cache_file; then
50934 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
50935 cat confcache >$cache_file
50936 else
50937 echo "not updating unwritable cache $cache_file"
50938 fi
50939fi
50940rm -f confcache
50941
50942test "x$prefix" = xNONE && prefix=$ac_default_prefix
50943# Let make expand exec_prefix.
50944test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
50945
50946# VPATH may cause trouble with some makes, so we remove $(srcdir),
50947# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
50948# trailing colons and then remove the whole line if VPATH becomes empty
50949# (actually we leave an empty line to preserve line numbers).
50950if test "x$srcdir" = x.; then
ac1cb8d3 50951 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
50952s/:*\$(srcdir):*/:/;
50953s/:*\${srcdir}:*/:/;
50954s/:*@srcdir@:*/:/;
ac1cb8d3 50955s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 50956s/:*$//;
ac1cb8d3 50957s/^[^=]*=[ ]*$//;
a848cd7e
SC
50958}'
50959fi
50960
50961DEFS=-DHAVE_CONFIG_H
50962
50963ac_libobjs=
50964ac_ltlibobjs=
50965for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
50966 # 1. Remove the extension, and $U if already installed.
50967 ac_i=`echo "$ac_i" |
ac1cb8d3 50968 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
50969 # 2. Add them.
50970 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
50971 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
50972done
50973LIBOBJS=$ac_libobjs
50974
50975LTLIBOBJS=$ac_ltlibobjs
50976
50977
50978
50979: ${CONFIG_STATUS=./config.status}
50980ac_clean_files_save=$ac_clean_files
50981ac_clean_files="$ac_clean_files $CONFIG_STATUS"
50982{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
50983echo "$as_me: creating $CONFIG_STATUS" >&6;}
50984cat >$CONFIG_STATUS <<_ACEOF
50985#! $SHELL
50986# Generated by $as_me.
50987# Run this file to recreate the current configuration.
50988# Compiler output produced by configure, useful for debugging
50989# configure, is in config.log if it exists.
50990
50991debug=false
50992ac_cs_recheck=false
50993ac_cs_silent=false
50994SHELL=\${CONFIG_SHELL-$SHELL}
50995_ACEOF
50996
50997cat >>$CONFIG_STATUS <<\_ACEOF
50998## --------------------- ##
50999## M4sh Initialization. ##
51000## --------------------- ##
51001
51002# Be Bourne compatible
51003if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51004 emulate sh
51005 NULLCMD=:
51006 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
51007 # is contrary to our usage. Disable this feature.
51008 alias -g '${1+"$@"}'='"$@"'
51009elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
51010 set -o posix
51011fi
ac1cb8d3 51012DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
51013
51014# Support unset when possible.
ac1cb8d3 51015if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
51016 as_unset=unset
51017else
51018 as_unset=false
51019fi
51020
51021
51022# Work around bugs in pre-3.0 UWIN ksh.
51023$as_unset ENV MAIL MAILPATH
51024PS1='$ '
51025PS2='> '
51026PS4='+ '
51027
51028# NLS nuisances.
51029for as_var in \
51030 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
51031 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51032 LC_TELEPHONE LC_TIME
51033do
ac1cb8d3 51034 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
51035 eval $as_var=C; export $as_var
51036 else
51037 $as_unset $as_var
51038 fi
51039done
51040
51041# Required to use basename.
51042if expr a : '\(a\)' >/dev/null 2>&1; then
51043 as_expr=expr
51044else
51045 as_expr=false
51046fi
51047
51048if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
51049 as_basename=basename
51050else
51051 as_basename=false
51052fi
51053
51054
51055# Name of the executable.
51056as_me=`$as_basename "$0" ||
51057$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51058 X"$0" : 'X\(//\)$' \| \
51059 X"$0" : 'X\(/\)$' \| \
51060 . : '\(.\)' 2>/dev/null ||
51061echo X/"$0" |
51062 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
51063 /^X\/\(\/\/\)$/{ s//\1/; q; }
51064 /^X\/\(\/\).*/{ s//\1/; q; }
51065 s/.*/./; q'`
51066
51067
51068# PATH needs CR, and LINENO needs CR and PATH.
51069# Avoid depending upon Character Ranges.
51070as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51071as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51072as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51073as_cr_digits='0123456789'
51074as_cr_alnum=$as_cr_Letters$as_cr_digits
51075
51076# The user is always right.
51077if test "${PATH_SEPARATOR+set}" != set; then
51078 echo "#! /bin/sh" >conf$$.sh
51079 echo "exit 0" >>conf$$.sh
51080 chmod +x conf$$.sh
51081 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51082 PATH_SEPARATOR=';'
51083 else
51084 PATH_SEPARATOR=:
51085 fi
51086 rm -f conf$$.sh
51087fi
51088
51089
51090 as_lineno_1=$LINENO
51091 as_lineno_2=$LINENO
51092 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51093 test "x$as_lineno_1" != "x$as_lineno_2" &&
51094 test "x$as_lineno_3" = "x$as_lineno_2" || {
51095 # Find who we are. Look in the path if we contain no path at all
51096 # relative or not.
51097 case $0 in
51098 *[\\/]* ) as_myself=$0 ;;
51099 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51100for as_dir in $PATH
51101do
51102 IFS=$as_save_IFS
51103 test -z "$as_dir" && as_dir=.
51104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51105done
51106
51107 ;;
51108 esac
51109 # We did not find ourselves, most probably we were run as `sh COMMAND'
51110 # in which case we are not to be found in the path.
51111 if test "x$as_myself" = x; then
51112 as_myself=$0
51113 fi
51114 if test ! -f "$as_myself"; then
51115 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
51116echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
51117 { (exit 1); exit 1; }; }
51118 fi
51119 case $CONFIG_SHELL in
51120 '')
51121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51122for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
51123do
51124 IFS=$as_save_IFS
51125 test -z "$as_dir" && as_dir=.
51126 for as_base in sh bash ksh sh5; do
51127 case $as_dir in
51128 /*)
51129 if ("$as_dir/$as_base" -c '
51130 as_lineno_1=$LINENO
51131 as_lineno_2=$LINENO
51132 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51133 test "x$as_lineno_1" != "x$as_lineno_2" &&
51134 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
51135 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
51136 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
51137 CONFIG_SHELL=$as_dir/$as_base
51138 export CONFIG_SHELL
51139 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
51140 fi;;
51141 esac
51142 done
51143done
51144;;
51145 esac
51146
51147 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51148 # uniformly replaced by the line number. The first 'sed' inserts a
51149 # line-number line before each line; the second 'sed' does the real
51150 # work. The second script uses 'N' to pair each line-number line
51151 # with the numbered line, and appends trailing '-' during
51152 # substitution so that $LINENO is not a special case at line end.
51153 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51154 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
51155 sed '=' <$as_myself |
51156 sed '
51157 N
51158 s,$,-,
51159 : loop
51160 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
51161 t loop
51162 s,-$,,
51163 s,^['$as_cr_digits']*\n,,
51164 ' >$as_me.lineno &&
51165 chmod +x $as_me.lineno ||
51166 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
51167echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
51168 { (exit 1); exit 1; }; }
51169
51170 # Don't try to exec as it changes $[0], causing all sort of problems
51171 # (the dirname of $[0] is not the place where we might find the
51172 # original and so on. Autoconf is especially sensible to this).
51173 . ./$as_me.lineno
51174 # Exit status is that of the last command.
51175 exit
51176}
51177
51178
51179case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
51180 *c*,-n*) ECHO_N= ECHO_C='
51181' ECHO_T=' ' ;;
51182 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
51183 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
51184esac
51185
51186if expr a : '\(a\)' >/dev/null 2>&1; then
51187 as_expr=expr
51188else
51189 as_expr=false
51190fi
51191
51192rm -f conf$$ conf$$.exe conf$$.file
51193echo >conf$$.file
51194if ln -s conf$$.file conf$$ 2>/dev/null; then
51195 # We could just check for DJGPP; but this test a) works b) is more generic
51196 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
51197 if test -f conf$$.exe; then
51198 # Don't use ln at all; we don't have any links
51199 as_ln_s='cp -p'
51200 else
51201 as_ln_s='ln -s'
51202 fi
51203elif ln conf$$.file conf$$ 2>/dev/null; then
51204 as_ln_s=ln
51205else
51206 as_ln_s='cp -p'
51207fi
51208rm -f conf$$ conf$$.exe conf$$.file
51209
51210if mkdir -p . 2>/dev/null; then
51211 as_mkdir_p=:
51212else
ac1cb8d3 51213 test -d ./-p && rmdir ./-p
a848cd7e
SC
51214 as_mkdir_p=false
51215fi
51216
51217as_executable_p="test -f"
51218
51219# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 51220as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
51221
51222# Sed expression to map a string onto a valid variable name.
ac1cb8d3 51223as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
51224
51225
51226# IFS
51227# We need space, tab and new line, in precisely that order.
51228as_nl='
51229'
51230IFS=" $as_nl"
51231
51232# CDPATH.
51233$as_unset CDPATH
51234
51235exec 6>&1
51236
51237# Open the log real soon, to keep \$[0] and so on meaningful, and to
51238# report actual input values of CONFIG_FILES etc. instead of their
51239# values after options handling. Logging --version etc. is OK.
51240exec 5>>config.log
51241{
51242 echo
51243 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51244## Running $as_me. ##
51245_ASBOX
51246} >&5
51247cat >&5 <<_CSEOF
51248
f1e3914f 51249This file was extended by wxWidgets $as_me 2.7.1, which was
ac1cb8d3 51250generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
51251
51252 CONFIG_FILES = $CONFIG_FILES
51253 CONFIG_HEADERS = $CONFIG_HEADERS
51254 CONFIG_LINKS = $CONFIG_LINKS
51255 CONFIG_COMMANDS = $CONFIG_COMMANDS
51256 $ $0 $@
51257
51258_CSEOF
51259echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
51260echo >&5
51261_ACEOF
51262
51263# Files that config.status was made for.
51264if test -n "$ac_config_files"; then
51265 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
51266fi
51267
51268if test -n "$ac_config_headers"; then
51269 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
51270fi
51271
51272if test -n "$ac_config_links"; then
51273 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
51274fi
51275
51276if test -n "$ac_config_commands"; then
51277 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
51278fi
51279
51280cat >>$CONFIG_STATUS <<\_ACEOF
51281
51282ac_cs_usage="\
51283\`$as_me' instantiates files from templates according to the
51284current configuration.
51285
51286Usage: $0 [OPTIONS] [FILE]...
51287
51288 -h, --help print this help, then exit
51289 -V, --version print version number, then exit
51290 -q, --quiet do not print progress messages
51291 -d, --debug don't remove temporary files
51292 --recheck update $as_me by reconfiguring in the same conditions
51293 --file=FILE[:TEMPLATE]
ac1cb8d3 51294 instantiate the configuration file FILE
a848cd7e 51295 --header=FILE[:TEMPLATE]
ac1cb8d3 51296 instantiate the configuration header FILE
a848cd7e
SC
51297
51298Configuration files:
51299$config_files
51300
51301Configuration headers:
51302$config_headers
51303
51304Configuration commands:
51305$config_commands
51306
51307Report bugs to <bug-autoconf@gnu.org>."
51308_ACEOF
51309
51310cat >>$CONFIG_STATUS <<_ACEOF
51311ac_cs_version="\\
f1e3914f 51312wxWidgets config.status 2.7.1
ac1cb8d3 51313configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
51314 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
51315
ac1cb8d3 51316Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
51317This config.status script is free software; the Free Software Foundation
51318gives unlimited permission to copy, distribute and modify it."
51319srcdir=$srcdir
51320INSTALL="$INSTALL"
51321_ACEOF
51322
51323cat >>$CONFIG_STATUS <<\_ACEOF
51324# If no file are specified by the user, then we need to provide default
51325# value. By we need to know if files were specified by the user.
51326ac_need_defaults=:
51327while test $# != 0
51328do
51329 case $1 in
51330 --*=*)
51331 ac_option=`expr "x$1" : 'x\([^=]*\)='`
51332 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
51333 ac_shift=:
51334 ;;
51335 -*)
51336 ac_option=$1
51337 ac_optarg=$2
51338 ac_shift=shift
51339 ;;
51340 *) # This is not an option, so the user has probably given explicit
51341 # arguments.
51342 ac_option=$1
51343 ac_need_defaults=false;;
51344 esac
51345
51346 case $ac_option in
51347 # Handling of the options.
51348_ACEOF
51349cat >>$CONFIG_STATUS <<\_ACEOF
51350 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51351 ac_cs_recheck=: ;;
51352 --version | --vers* | -V )
51353 echo "$ac_cs_version"; exit 0 ;;
51354 --he | --h)
51355 # Conflict between --help and --header
51356 { { echo "$as_me:$LINENO: error: ambiguous option: $1
51357Try \`$0 --help' for more information." >&5
51358echo "$as_me: error: ambiguous option: $1
51359Try \`$0 --help' for more information." >&2;}
51360 { (exit 1); exit 1; }; };;
51361 --help | --hel | -h )
51362 echo "$ac_cs_usage"; exit 0 ;;
51363 --debug | --d* | -d )
51364 debug=: ;;
51365 --file | --fil | --fi | --f )
51366 $ac_shift
51367 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51368 ac_need_defaults=false;;
51369 --header | --heade | --head | --hea )
51370 $ac_shift
51371 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51372 ac_need_defaults=false;;
51373 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51374 | -silent | --silent | --silen | --sile | --sil | --si | --s)
51375 ac_cs_silent=: ;;
51376
51377 # This is an error.
51378 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
51379Try \`$0 --help' for more information." >&5
51380echo "$as_me: error: unrecognized option: $1
51381Try \`$0 --help' for more information." >&2;}
51382 { (exit 1); exit 1; }; } ;;
51383
51384 *) ac_config_targets="$ac_config_targets $1" ;;
51385
51386 esac
51387 shift
51388done
51389
51390ac_configure_extra_args=
51391
51392if $ac_cs_silent; then
51393 exec 6>/dev/null
51394 ac_configure_extra_args="$ac_configure_extra_args --silent"
51395fi
51396
51397_ACEOF
51398cat >>$CONFIG_STATUS <<_ACEOF
51399if \$ac_cs_recheck; then
51400 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51401 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51402fi
51403
51404_ACEOF
51405
51406cat >>$CONFIG_STATUS <<_ACEOF
51407#
51408# INIT-COMMANDS section.
51409#
51410
5c60e845
MW
51411
51412 CPP="$CPP"
51413 infile="$srcdir/include/wx/msw/genrcdefs.h"
51414 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
51415
51416
ceec2216
RL
51417 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51418 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51419 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51420 LN_S="${LN_S}"
a848cd7e
SC
51421
51422
51423_ACEOF
51424
51425
51426
51427cat >>$CONFIG_STATUS <<\_ACEOF
51428for ac_config_target in $ac_config_targets
51429do
51430 case "$ac_config_target" in
51431 # Handling of arguments.
ceec2216
RL
51432 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
51433 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
51434 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
51435 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
51436 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 51437 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
51438 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
51439 "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
51440 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51441echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51442 { (exit 1); exit 1; }; };;
51443 esac
51444done
51445
51446# If the user did not use the arguments to specify the items to instantiate,
51447# then the envvar interface is used. Set only those that are not.
51448# We use the long form for the default assignment because of an extremely
51449# bizarre bug on SunOS 4.1.3.
51450if $ac_need_defaults; then
51451 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51452 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51453 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51454fi
51455
51456# Have a temporary directory for convenience. Make it in the build tree
51457# simply because there is no reason to put it here, and in addition,
51458# creating and moving files from /tmp can sometimes cause problems.
51459# Create a temporary directory, and hook for its removal unless debugging.
51460$debug ||
51461{
51462 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
51463 trap '{ (exit 1); exit 1; }' 1 2 13 15
51464}
51465
51466# Create a (secure) tmp directory for tmp files.
51467
51468{
51469 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
51470 test -n "$tmp" && test -d "$tmp"
51471} ||
51472{
51473 tmp=./confstat$$-$RANDOM
51474 (umask 077 && mkdir $tmp)
51475} ||
51476{
51477 echo "$me: cannot create a temporary directory in ." >&2
51478 { (exit 1); exit 1; }
51479}
51480
51481_ACEOF
51482
51483cat >>$CONFIG_STATUS <<_ACEOF
51484
51485#
51486# CONFIG_FILES section.
51487#
51488
51489# No need to generate the scripts if there are no CONFIG_FILES.
51490# This happens for instance when ./config.status config.h
51491if test -n "\$CONFIG_FILES"; then
51492 # Protect against being on the right side of a sed subst in config.status.
51493 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
51494 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
51495s,@SHELL@,$SHELL,;t t
51496s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
51497s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
51498s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
51499s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
51500s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
51501s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
51502s,@exec_prefix@,$exec_prefix,;t t
51503s,@prefix@,$prefix,;t t
51504s,@program_transform_name@,$program_transform_name,;t t
51505s,@bindir@,$bindir,;t t
51506s,@sbindir@,$sbindir,;t t
51507s,@libexecdir@,$libexecdir,;t t
51508s,@datadir@,$datadir,;t t
51509s,@sysconfdir@,$sysconfdir,;t t
51510s,@sharedstatedir@,$sharedstatedir,;t t
51511s,@localstatedir@,$localstatedir,;t t
51512s,@libdir@,$libdir,;t t
51513s,@includedir@,$includedir,;t t
51514s,@oldincludedir@,$oldincludedir,;t t
51515s,@infodir@,$infodir,;t t
51516s,@mandir@,$mandir,;t t
51517s,@build_alias@,$build_alias,;t t
51518s,@host_alias@,$host_alias,;t t
51519s,@target_alias@,$target_alias,;t t
51520s,@DEFS@,$DEFS,;t t
51521s,@ECHO_C@,$ECHO_C,;t t
51522s,@ECHO_N@,$ECHO_N,;t t
51523s,@ECHO_T@,$ECHO_T,;t t
51524s,@LIBS@,$LIBS,;t t
51525s,@build@,$build,;t t
51526s,@build_cpu@,$build_cpu,;t t
51527s,@build_vendor@,$build_vendor,;t t
51528s,@build_os@,$build_os,;t t
51529s,@host@,$host,;t t
51530s,@host_cpu@,$host_cpu,;t t
51531s,@host_vendor@,$host_vendor,;t t
51532s,@host_os@,$host_os,;t t
51533s,@target@,$target,;t t
51534s,@target_cpu@,$target_cpu,;t t
51535s,@target_vendor@,$target_vendor,;t t
51536s,@target_os@,$target_os,;t t
51537s,@CC@,$CC,;t t
51538s,@CFLAGS@,$CFLAGS,;t t
51539s,@LDFLAGS@,$LDFLAGS,;t t
51540s,@CPPFLAGS@,$CPPFLAGS,;t t
51541s,@ac_ct_CC@,$ac_ct_CC,;t t
51542s,@EXEEXT@,$EXEEXT,;t t
51543s,@OBJEXT@,$OBJEXT,;t t
51544s,@CPP@,$CPP,;t t
51545s,@EGREP@,$EGREP,;t t
51546s,@CXX@,$CXX,;t t
51547s,@CXXFLAGS@,$CXXFLAGS,;t t
51548s,@ac_ct_CXX@,$ac_ct_CXX,;t t
51549s,@RANLIB@,$RANLIB,;t t
51550s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
51551s,@AR@,$AR,;t t
8c80d384 51552s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
51553s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
51554s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
51555s,@INSTALL_DATA@,$INSTALL_DATA,;t t
51556s,@STRIP@,$STRIP,;t t
8c80d384 51557s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
51558s,@WINDRES@,$WINDRES,;t t
51559s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
51560s,@DLLTOOL@,$DLLTOOL,;t t
51561s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
51562s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
51563s,@LN_S@,$LN_S,;t t
51564s,@CXXCPP@,$CXXCPP,;t t
51565s,@subdirs@,$subdirs,;t t
51566s,@PKG_CONFIG@,$PKG_CONFIG,;t t
51567s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
51568s,@GTK_LIBS@,$GTK_LIBS,;t t
51569s,@GTK_CONFIG@,$GTK_CONFIG,;t t
b3c86150
VS
51570s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
51571s,@DIRECTFB_CFLAGS@,$DIRECTFB_CFLAGS,;t t
51572s,@DIRECTFB_LIBS@,$DIRECTFB_LIBS,;t t
a848cd7e
SC
51573s,@X_CFLAGS@,$X_CFLAGS,;t t
51574s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
51575s,@X_LIBS@,$X_LIBS,;t t
51576s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
51577s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
51578s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
51579s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
51580s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
51581s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
51582s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 51583s,@REZ@,$REZ,;t t
a848cd7e
SC
51584s,@DEREZ@,$DEREZ,;t t
51585s,@SETFILE@,$SETFILE,;t t
51586s,@LIBICONV@,$LIBICONV,;t t
51587s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
51588s,@SDL_CONFIG@,$SDL_CONFIG,;t t
51589s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
51590s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
51591s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
51592s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
2b850ae1
RR
51593s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
51594s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
3565d135
RR
51595s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
51596s,@HILDON_LIBS@,$HILDON_LIBS,;t t
64b75e64
RD
51597s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
51598s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
f10e38c4
VZ
51599s,@GST_CFLAGS@,$GST_CFLAGS,;t t
51600s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
51601s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
51602s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
51603s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
51604s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
51605s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
51606s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
51607s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
51608s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
51609s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
51610s,@VENDOR@,$VENDOR,;t t
51611s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
51612s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
51613s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
51614s,@WXUNIV@,$WXUNIV,;t t
51615s,@MONOLITHIC@,$MONOLITHIC,;t t
51616s,@USE_PLUGINS@,$USE_PLUGINS,;t t
51617s,@EXTRALIBS@,$EXTRALIBS,;t t
51618s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
51619s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
51620s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
51621s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
51622s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
51623s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
51624s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 51625s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
2b850ae1 51626s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
3565d135 51627s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
51628s,@UNICODE@,$UNICODE,;t t
51629s,@BUILD@,$BUILD,;t t
51630s,@DEBUG_INFO@,$DEBUG_INFO,;t t
51631s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
51632s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
51633s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
51634s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
51635s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
51636s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
51637s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
51638s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
51639s,@SET_MAKE@,$SET_MAKE,;t t
51640s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
51641s,@NM@,$NM,;t t
51642s,@ac_ct_NM@,$ac_ct_NM,;t t
51643s,@INSTALL_DIR@,$INSTALL_DIR,;t t
51644s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
51645s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
51646s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
51647s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
51648s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 51649s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
51650s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
51651s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 51652s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
51653s,@SO_SUFFIX@,$SO_SUFFIX,;t t
51654s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
51655s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
51656s,@LIBPREFIX@,$LIBPREFIX,;t t
51657s,@LIBEXT@,$LIBEXT,;t t
51658s,@DLLPREFIX@,$DLLPREFIX,;t t
51659s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 51660s,@dlldir@,$dlldir,;t t
a848cd7e
SC
51661s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
51662s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
51663s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
51664s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
51665s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
51666s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 51667s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
51668s,@USE_SOVERSION@,$USE_SOVERSION,;t t
51669s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
51670s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 51671s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
51672s,@USE_MACVERSION@,$USE_MACVERSION,;t t
51673s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
51674s,@SONAME_FLAG@,$SONAME_FLAG,;t t
51675s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
51676s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 51677s,@ICC_PCH@,$ICC_PCH,;t t
a848cd7e
SC
51678s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
51679s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
51680s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
51681s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
51682s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
51683s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
51684s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
51685s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
51686s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
51687s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
51688s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
51689s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
51690s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
51691s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
51692s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 51693s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
51694s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
51695s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
3f60522a 51696s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
a848cd7e 51697s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 51698s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t
f10e38c4 51699s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1,;t t
a848cd7e 51700s,@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 51701s,@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 51702s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8b6682b9 51703s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
ceec2216 51704s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e 51705s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
3f60522a 51706s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
a848cd7e 51707s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 51708s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t
f10e38c4 51709s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1,;t t
a848cd7e 51710s,@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 51711s,@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 51712s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
8b6682b9 51713s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
ceec2216 51714s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 51715s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
51716s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
51717s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
51718s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
51719s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
51720s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
51721s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 51722s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
51723s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
51724s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 51725s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
51726s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
51727s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
51728s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 51729s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 51730s,@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
51731s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
51732s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
51733s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
51734s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 51735s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 51736s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 51737s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 51738s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
51739s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
51740s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
51741s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
51742s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
51743s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
51744s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
51745s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
51746s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
51747s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
51748s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
51749s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
51750s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
51751s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
51752s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
51753s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 51754s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
51755s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
51756s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
51757s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
51758s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
51759s,@COND_SHARED_1@,$COND_SHARED_1,;t t
51760s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 51761s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 51762s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 51763s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 51764s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e 51765s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
b3c86150
VS
51766s,@COND_TOOLKIT_DFB@,$COND_TOOLKIT_DFB,;t t
51767s,@COND_TOOLKIT_DFB_USE_GUI_1@,$COND_TOOLKIT_DFB_USE_GUI_1,;t t
a848cd7e 51768s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
51769s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
51770s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
51771s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
51772s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
51773s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
51774s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 51775s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
51776s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
51777s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
51778s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
51779s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
51780s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
51781s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
51782s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
51783s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
51784s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
51785s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
51786s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 51787s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
51788s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
51789s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
51790s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
51791s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
51792s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
51793s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 51794s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
51795s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
51796s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
51797s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
51798s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
51799s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
51800s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
51801s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
51802s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
51803s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
51804s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
51805s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
51806s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
51807s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
51808s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 51809s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 51810s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
51811s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
51812s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 51813s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 51814s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
51815s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
51816s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
51817s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
51818s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
51819s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 51820s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 51821s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 51822s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 51823s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
51824s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
51825s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
51826s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
51827s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
51828s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
51829s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
51830s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
51831s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 51832s,@SHARED@,$SHARED,;t t
a848cd7e
SC
51833s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
51834s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
51835s,@USE_GUI@,$USE_GUI,;t t
51836s,@AFMINSTALL@,$AFMINSTALL,;t t
51837s,@WIN32INSTALL@,$WIN32INSTALL,;t t
51838s,@TOOLKIT@,$TOOLKIT,;t t
51839s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 51840s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 51841s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 51842s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
51843s,@WIDGET_SET@,$WIDGET_SET,;t t
51844s,@WX_RELEASE@,$WX_RELEASE,;t t
51845s,@WX_VERSION@,$WX_VERSION,;t t
51846s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
51847s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
51848s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
51849s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
51850s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
51851s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
51852s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
51853s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
51854s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 51855s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 51856s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 51857s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
51858s,@DISTDIR@,$DISTDIR,;t t
51859s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
51860s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
51861s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
51862s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
51863s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 51864s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
51865s,@RESFLAGS@,$RESFLAGS,;t t
51866s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
51867s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
51868s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
51869s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 51870s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 51871s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 51872s,@GCC@,$GCC,;t t
a848cd7e
SC
51873s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
51874s,@LIBOBJS@,$LIBOBJS,;t t
51875s,@LTLIBOBJS@,$LTLIBOBJS,;t t
51876CEOF
51877
51878_ACEOF
51879
51880 cat >>$CONFIG_STATUS <<\_ACEOF
51881 # Split the substitutions into bite-sized pieces for seds with
51882 # small command number limits, like on Digital OSF/1 and HP-UX.
51883 ac_max_sed_lines=48
51884 ac_sed_frag=1 # Number of current file.
51885 ac_beg=1 # First line for current file.
51886 ac_end=$ac_max_sed_lines # Line after last line for current file.
51887 ac_more_lines=:
51888 ac_sed_cmds=
51889 while $ac_more_lines; do
51890 if test $ac_beg -gt 1; then
51891 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51892 else
51893 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51894 fi
51895 if test ! -s $tmp/subs.frag; then
51896 ac_more_lines=false
51897 else
51898 # The purpose of the label and of the branching condition is to
51899 # speed up the sed processing (if there are no `@' at all, there
51900 # is no need to browse any of the substitutions).
51901 # These are the two extra sed commands mentioned above.
51902 (echo ':t
51903 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
51904 if test -z "$ac_sed_cmds"; then
ac1cb8d3 51905 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 51906 else
ac1cb8d3 51907 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
51908 fi
51909 ac_sed_frag=`expr $ac_sed_frag + 1`
51910 ac_beg=$ac_end
51911 ac_end=`expr $ac_end + $ac_max_sed_lines`
51912 fi
51913 done
51914 if test -z "$ac_sed_cmds"; then
51915 ac_sed_cmds=cat
51916 fi
51917fi # test -n "$CONFIG_FILES"
51918
51919_ACEOF
51920cat >>$CONFIG_STATUS <<\_ACEOF
51921for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
51922 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51923 case $ac_file in
51924 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
51925 cat >$tmp/stdin
51926 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51927 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 51928 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 51929 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
51930 * ) ac_file_in=$ac_file.in ;;
51931 esac
51932
51933 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
51934 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51935$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51936 X"$ac_file" : 'X\(//\)[^/]' \| \
51937 X"$ac_file" : 'X\(//\)$' \| \
51938 X"$ac_file" : 'X\(/\)' \| \
51939 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51940echo X"$ac_file" |
51941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51942 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51943 /^X\(\/\/\)$/{ s//\1/; q; }
51944 /^X\(\/\).*/{ s//\1/; q; }
51945 s/.*/./; q'`
51946 { if $as_mkdir_p; then
51947 mkdir -p "$ac_dir"
51948 else
51949 as_dir="$ac_dir"
51950 as_dirs=
51951 while test ! -d "$as_dir"; do
51952 as_dirs="$as_dir $as_dirs"
51953 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51954$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51955 X"$as_dir" : 'X\(//\)[^/]' \| \
51956 X"$as_dir" : 'X\(//\)$' \| \
51957 X"$as_dir" : 'X\(/\)' \| \
51958 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51959echo X"$as_dir" |
51960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51961 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51962 /^X\(\/\/\)$/{ s//\1/; q; }
51963 /^X\(\/\).*/{ s//\1/; q; }
51964 s/.*/./; q'`
51965 done
51966 test ! -n "$as_dirs" || mkdir $as_dirs
51967 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51968echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51969 { (exit 1); exit 1; }; }; }
51970
51971 ac_builddir=.
51972
51973if test "$ac_dir" != .; then
51974 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51975 # A "../" for each directory in $ac_dir_suffix.
51976 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51977else
51978 ac_dir_suffix= ac_top_builddir=
51979fi
51980
51981case $srcdir in
51982 .) # No --srcdir option. We are building in place.
51983 ac_srcdir=.
51984 if test -z "$ac_top_builddir"; then
51985 ac_top_srcdir=.
51986 else
51987 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51988 fi ;;
51989 [\\/]* | ?:[\\/]* ) # Absolute path.
51990 ac_srcdir=$srcdir$ac_dir_suffix;
51991 ac_top_srcdir=$srcdir ;;
51992 *) # Relative path.
51993 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51994 ac_top_srcdir=$ac_top_builddir$srcdir ;;
51995esac
ac1cb8d3
VS
51996
51997# Do not use `cd foo && pwd` to compute absolute paths, because
51998# the directories may not exist.
51999case `pwd` in
52000.) ac_abs_builddir="$ac_dir";;
52001*)
52002 case "$ac_dir" in
52003 .) ac_abs_builddir=`pwd`;;
52004 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52005 *) ac_abs_builddir=`pwd`/"$ac_dir";;
52006 esac;;
52007esac
52008case $ac_abs_builddir in
52009.) ac_abs_top_builddir=${ac_top_builddir}.;;
52010*)
52011 case ${ac_top_builddir}. in
52012 .) ac_abs_top_builddir=$ac_abs_builddir;;
52013 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52014 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52015 esac;;
52016esac
52017case $ac_abs_builddir in
52018.) ac_abs_srcdir=$ac_srcdir;;
52019*)
52020 case $ac_srcdir in
52021 .) ac_abs_srcdir=$ac_abs_builddir;;
52022 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52023 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52024 esac;;
52025esac
52026case $ac_abs_builddir in
52027.) ac_abs_top_srcdir=$ac_top_srcdir;;
52028*)
52029 case $ac_top_srcdir in
52030 .) ac_abs_top_srcdir=$ac_abs_builddir;;
52031 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52032 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52033 esac;;
52034esac
a848cd7e
SC
52035
52036
52037 case $INSTALL in
52038 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
52039 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
52040 esac
52041
a848cd7e
SC
52042 # Let's still pretend it is `configure' which instantiates (i.e., don't
52043 # use $as_me), people would be surprised to read:
52044 # /* config.h. Generated by config.status. */
52045 if test x"$ac_file" = x-; then
52046 configure_input=
52047 else
52048 configure_input="$ac_file. "
52049 fi
52050 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 52051 sed 's,.*/,,'` by configure."
a848cd7e
SC
52052
52053 # First look for the input files in the build tree, otherwise in the
52054 # src tree.
52055 ac_file_inputs=`IFS=:
52056 for f in $ac_file_in; do
52057 case $f in
52058 -) echo $tmp/stdin ;;
52059 [\\/$]*)
ac1cb8d3
VS
52060 # Absolute (can't be DOS-style, as IFS=:)
52061 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
52062echo "$as_me: error: cannot find input file: $f" >&2;}
52063 { (exit 1); exit 1; }; }
ac1cb8d3 52064 echo "$f";;
a848cd7e 52065 *) # Relative
ac1cb8d3
VS
52066 if test -f "$f"; then
52067 # Build tree
52068 echo "$f"
52069 elif test -f "$srcdir/$f"; then
52070 # Source tree
52071 echo "$srcdir/$f"
52072 else
52073 # /dev/null tree
52074 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
52075echo "$as_me: error: cannot find input file: $f" >&2;}
52076 { (exit 1); exit 1; }; }
ac1cb8d3 52077 fi;;
a848cd7e
SC
52078 esac
52079 done` || { (exit 1); exit 1; }
bb9e79c0
VZ
52080
52081 if test x"$ac_file" != x-; then
52082 { echo "$as_me:$LINENO: creating $ac_file" >&5
52083echo "$as_me: creating $ac_file" >&6;}
52084 rm -f "$ac_file"
52085 fi
a848cd7e
SC
52086_ACEOF
52087cat >>$CONFIG_STATUS <<_ACEOF
52088 sed "$ac_vpsub
52089$extrasub
52090_ACEOF
52091cat >>$CONFIG_STATUS <<\_ACEOF
52092:t
52093/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52094s,@configure_input@,$configure_input,;t t
52095s,@srcdir@,$ac_srcdir,;t t
52096s,@abs_srcdir@,$ac_abs_srcdir,;t t
52097s,@top_srcdir@,$ac_top_srcdir,;t t
52098s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
52099s,@builddir@,$ac_builddir,;t t
52100s,@abs_builddir@,$ac_abs_builddir,;t t
52101s,@top_builddir@,$ac_top_builddir,;t t
52102s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
52103s,@INSTALL@,$ac_INSTALL,;t t
52104" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
52105 rm -f $tmp/stdin
52106 if test x"$ac_file" != x-; then
52107 mv $tmp/out $ac_file
52108 else
52109 cat $tmp/out
52110 rm -f $tmp/out
52111 fi
52112
ceec2216
RL
52113 # Run the commands associated with the file.
52114 case $ac_file in
52115 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
52116 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
52117 esac
a848cd7e
SC
52118done
52119_ACEOF
52120cat >>$CONFIG_STATUS <<\_ACEOF
52121
52122#
52123# CONFIG_HEADER section.
52124#
52125
52126# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
52127# NAME is the cpp macro being defined and VALUE is the value it is being given.
52128#
52129# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
52130ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
52131ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
52132ac_dC=' '
52133ac_dD=',;t'
52134# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 52135ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
52136ac_uB='$,\1#\2define\3'
52137ac_uC=' '
52138ac_uD=',;t'
52139
52140for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
52141 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
52142 case $ac_file in
52143 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
52144 cat >$tmp/stdin
52145 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52146 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 52147 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 52148 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
52149 * ) ac_file_in=$ac_file.in ;;
52150 esac
52151
52152 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
52153echo "$as_me: creating $ac_file" >&6;}
52154
52155 # First look for the input files in the build tree, otherwise in the
52156 # src tree.
52157 ac_file_inputs=`IFS=:
52158 for f in $ac_file_in; do
52159 case $f in
52160 -) echo $tmp/stdin ;;
52161 [\\/$]*)
ac1cb8d3
VS
52162 # Absolute (can't be DOS-style, as IFS=:)
52163 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
52164echo "$as_me: error: cannot find input file: $f" >&2;}
52165 { (exit 1); exit 1; }; }
ac1cb8d3
VS
52166 # Do quote $f, to prevent DOS paths from being IFS'd.
52167 echo "$f";;
a848cd7e 52168 *) # Relative
ac1cb8d3
VS
52169 if test -f "$f"; then
52170 # Build tree
52171 echo "$f"
52172 elif test -f "$srcdir/$f"; then
52173 # Source tree
52174 echo "$srcdir/$f"
52175 else
52176 # /dev/null tree
52177 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
52178echo "$as_me: error: cannot find input file: $f" >&2;}
52179 { (exit 1); exit 1; }; }
ac1cb8d3 52180 fi;;
a848cd7e
SC
52181 esac
52182 done` || { (exit 1); exit 1; }
52183 # Remove the trailing spaces.
ac1cb8d3 52184 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
52185
52186_ACEOF
52187
52188# Transform confdefs.h into two sed scripts, `conftest.defines' and
52189# `conftest.undefs', that substitutes the proper values into
52190# config.h.in to produce config.h. The first handles `#define'
52191# templates, and the second `#undef' templates.
52192# And first: Protect against being on the right side of a sed subst in
52193# config.status. Protect against being in an unquoted here document
52194# in config.status.
52195rm -f conftest.defines conftest.undefs
52196# Using a here document instead of a string reduces the quoting nightmare.
52197# Putting comments in sed scripts is not portable.
52198#
52199# `end' is used to avoid that the second main sed command (meant for
52200# 0-ary CPP macros) applies to n-ary macro definitions.
52201# See the Autoconf documentation for `clear'.
52202cat >confdef2sed.sed <<\_ACEOF
52203s/[\\&,]/\\&/g
52204s,[\\$`],\\&,g
52205t clear
52206: clear
ac1cb8d3 52207s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 52208t end
ac1cb8d3 52209s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
52210: end
52211_ACEOF
52212# If some macros were called several times there might be several times
52213# the same #defines, which is useless. Nevertheless, we may not want to
52214# sort them, since we want the *last* AC-DEFINE to be honored.
52215uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
52216sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
52217rm -f confdef2sed.sed
52218
52219# This sed command replaces #undef with comments. This is necessary, for
52220# example, in the case of _POSIX_SOURCE, which is predefined and required
52221# on some systems where configure will not decide to define it.
52222cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 52223s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
52224_ACEOF
52225
52226# Break up conftest.defines because some shells have a limit on the size
52227# of here documents, and old seds have small limits too (100 cmds).
52228echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 52229echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
52230echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
52231echo ' :' >>$CONFIG_STATUS
52232rm -f conftest.tail
52233while grep . conftest.defines >/dev/null
52234do
52235 # Write a limited-size here document to $tmp/defines.sed.
52236 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
52237 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 52238 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
52239 # Work around the forget-to-reset-the-flag bug.
52240 echo 't clr' >>$CONFIG_STATUS
52241 echo ': clr' >>$CONFIG_STATUS
52242 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
52243 echo 'CEOF
52244 sed -f $tmp/defines.sed $tmp/in >$tmp/out
52245 rm -f $tmp/in
52246 mv $tmp/out $tmp/in
52247' >>$CONFIG_STATUS
52248 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
52249 rm -f conftest.defines
52250 mv conftest.tail conftest.defines
52251done
52252rm -f conftest.defines
52253echo ' fi # grep' >>$CONFIG_STATUS
52254echo >>$CONFIG_STATUS
52255
52256# Break up conftest.undefs because some shells have a limit on the size
52257# of here documents, and old seds have small limits too (100 cmds).
52258echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
52259rm -f conftest.tail
52260while grep . conftest.undefs >/dev/null
52261do
52262 # Write a limited-size here document to $tmp/undefs.sed.
52263 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
52264 # Speed up: don't consider the non `#undef'
ac1cb8d3 52265 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
52266 # Work around the forget-to-reset-the-flag bug.
52267 echo 't clr' >>$CONFIG_STATUS
52268 echo ': clr' >>$CONFIG_STATUS
52269 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
52270 echo 'CEOF
52271 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
52272 rm -f $tmp/in
52273 mv $tmp/out $tmp/in
52274' >>$CONFIG_STATUS
52275 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
52276 rm -f conftest.undefs
52277 mv conftest.tail conftest.undefs
52278done
52279rm -f conftest.undefs
52280
52281cat >>$CONFIG_STATUS <<\_ACEOF
52282 # Let's still pretend it is `configure' which instantiates (i.e., don't
52283 # use $as_me), people would be surprised to read:
52284 # /* config.h. Generated by config.status. */
52285 if test x"$ac_file" = x-; then
52286 echo "/* Generated by configure. */" >$tmp/config.h
52287 else
52288 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
52289 fi
52290 cat $tmp/in >>$tmp/config.h
52291 rm -f $tmp/in
52292 if test x"$ac_file" != x-; then
52293 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
52294 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52295echo "$as_me: $ac_file is unchanged" >&6;}
52296 else
52297 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52298$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52299 X"$ac_file" : 'X\(//\)[^/]' \| \
52300 X"$ac_file" : 'X\(//\)$' \| \
52301 X"$ac_file" : 'X\(/\)' \| \
52302 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
52303echo X"$ac_file" |
52304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52305 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52306 /^X\(\/\/\)$/{ s//\1/; q; }
52307 /^X\(\/\).*/{ s//\1/; q; }
52308 s/.*/./; q'`
52309 { if $as_mkdir_p; then
52310 mkdir -p "$ac_dir"
52311 else
52312 as_dir="$ac_dir"
52313 as_dirs=
52314 while test ! -d "$as_dir"; do
52315 as_dirs="$as_dir $as_dirs"
52316 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52317$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52318 X"$as_dir" : 'X\(//\)[^/]' \| \
52319 X"$as_dir" : 'X\(//\)$' \| \
52320 X"$as_dir" : 'X\(/\)' \| \
52321 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
52322echo X"$as_dir" |
52323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52324 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52325 /^X\(\/\/\)$/{ s//\1/; q; }
52326 /^X\(\/\).*/{ s//\1/; q; }
52327 s/.*/./; q'`
52328 done
52329 test ! -n "$as_dirs" || mkdir $as_dirs
52330 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52331echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52332 { (exit 1); exit 1; }; }; }
52333
52334 rm -f $ac_file
52335 mv $tmp/config.h $ac_file
52336 fi
52337 else
52338 cat $tmp/config.h
52339 rm -f $tmp/config.h
52340 fi
52341done
52342_ACEOF
52343cat >>$CONFIG_STATUS <<\_ACEOF
52344
52345#
52346# CONFIG_COMMANDS section.
52347#
52348for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
52349 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
52350 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
52351 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
52352$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52353 X"$ac_dest" : 'X\(//\)[^/]' \| \
52354 X"$ac_dest" : 'X\(//\)$' \| \
52355 X"$ac_dest" : 'X\(/\)' \| \
52356 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
52357echo X"$ac_dest" |
52358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52359 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52360 /^X\(\/\/\)$/{ s//\1/; q; }
52361 /^X\(\/\).*/{ s//\1/; q; }
52362 s/.*/./; q'`
ac1cb8d3
VS
52363 { if $as_mkdir_p; then
52364 mkdir -p "$ac_dir"
52365 else
52366 as_dir="$ac_dir"
52367 as_dirs=
52368 while test ! -d "$as_dir"; do
52369 as_dirs="$as_dir $as_dirs"
52370 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52371$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52372 X"$as_dir" : 'X\(//\)[^/]' \| \
52373 X"$as_dir" : 'X\(//\)$' \| \
52374 X"$as_dir" : 'X\(/\)' \| \
52375 . : '\(.\)' 2>/dev/null ||
52376echo X"$as_dir" |
52377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52378 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52379 /^X\(\/\/\)$/{ s//\1/; q; }
52380 /^X\(\/\).*/{ s//\1/; q; }
52381 s/.*/./; q'`
52382 done
52383 test ! -n "$as_dirs" || mkdir $as_dirs
52384 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52385echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52386 { (exit 1); exit 1; }; }; }
52387
a848cd7e
SC
52388 ac_builddir=.
52389
52390if test "$ac_dir" != .; then
52391 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52392 # A "../" for each directory in $ac_dir_suffix.
52393 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52394else
52395 ac_dir_suffix= ac_top_builddir=
52396fi
52397
52398case $srcdir in
52399 .) # No --srcdir option. We are building in place.
52400 ac_srcdir=.
52401 if test -z "$ac_top_builddir"; then
52402 ac_top_srcdir=.
52403 else
52404 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52405 fi ;;
52406 [\\/]* | ?:[\\/]* ) # Absolute path.
52407 ac_srcdir=$srcdir$ac_dir_suffix;
52408 ac_top_srcdir=$srcdir ;;
52409 *) # Relative path.
52410 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52411 ac_top_srcdir=$ac_top_builddir$srcdir ;;
52412esac
ac1cb8d3
VS
52413
52414# Do not use `cd foo && pwd` to compute absolute paths, because
52415# the directories may not exist.
52416case `pwd` in
52417.) ac_abs_builddir="$ac_dir";;
52418*)
52419 case "$ac_dir" in
52420 .) ac_abs_builddir=`pwd`;;
52421 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52422 *) ac_abs_builddir=`pwd`/"$ac_dir";;
52423 esac;;
52424esac
52425case $ac_abs_builddir in
52426.) ac_abs_top_builddir=${ac_top_builddir}.;;
52427*)
52428 case ${ac_top_builddir}. in
52429 .) ac_abs_top_builddir=$ac_abs_builddir;;
52430 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52431 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52432 esac;;
52433esac
52434case $ac_abs_builddir in
52435.) ac_abs_srcdir=$ac_srcdir;;
52436*)
52437 case $ac_srcdir in
52438 .) ac_abs_srcdir=$ac_abs_builddir;;
52439 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52440 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52441 esac;;
52442esac
52443case $ac_abs_builddir in
52444.) ac_abs_top_srcdir=$ac_top_srcdir;;
52445*)
52446 case $ac_top_srcdir in
52447 .) ac_abs_top_srcdir=$ac_abs_builddir;;
52448 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52449 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52450 esac;;
52451esac
a848cd7e
SC
52452
52453
52454 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
52455echo "$as_me: executing $ac_dest commands" >&6;}
52456 case $ac_dest in
5c60e845
MW
52457 rcdefs.h )
52458 mkdir -p $outdir &&
52459 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
52460 ;;
ceec2216
RL
52461 wx-config ) rm -f wx-config
52462 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
52463 ;;
a848cd7e
SC
52464 esac
52465done
52466_ACEOF
52467
52468cat >>$CONFIG_STATUS <<\_ACEOF
52469
52470{ (exit 0); exit 0; }
52471_ACEOF
52472chmod +x $CONFIG_STATUS
52473ac_clean_files=$ac_clean_files_save
52474
52475
52476# configure is writing to config.log, and then calls config.status.
52477# config.status does its own redirection, appending to config.log.
52478# Unfortunately, on DOS this fails, as config.log is still kept open
52479# by configure, so config.status won't be able to write to it; its
52480# output is simply discarded. So we exec the FD to /dev/null,
52481# effectively closing config.log, so it can be properly (re)opened and
52482# appended to by config.status. When coming back to configure, we
52483# need to make the FD available again.
52484if test "$no_create" != yes; then
52485 ac_cs_success=:
52486 ac_config_status_args=
52487 test "$silent" = yes &&
52488 ac_config_status_args="$ac_config_status_args --quiet"
52489 exec 5>/dev/null
52490 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52491 exec 5>>config.log
52492 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52493 # would make configure fail if this is the last instruction.
52494 $ac_cs_success || { (exit 1); exit 1; }
52495fi
52496
52497#
52498# CONFIG_SUBDIRS section.
52499#
52500if test "$no_recursion" != yes; then
52501
52502 # Remove --cache-file and --srcdir arguments so they do not pile up.
52503 ac_sub_configure_args=
52504 ac_prev=
52505 for ac_arg in $ac_configure_args; do
52506 if test -n "$ac_prev"; then
52507 ac_prev=
52508 continue
52509 fi
52510 case $ac_arg in
52511 -cache-file | --cache-file | --cache-fil | --cache-fi \
52512 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
52513 ac_prev=cache_file ;;
52514 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
52515 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
52516 | --c=*)
52517 ;;
52518 --config-cache | -C)
52519 ;;
52520 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
52521 ac_prev=srcdir ;;
52522 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
52523 ;;
52524 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
52525 ac_prev=prefix ;;
52526 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
52527 ;;
52528 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
52529 esac
52530 done
52531
52532 # Always prepend --prefix to ensure using the same prefix
52533 # in subdir configurations.
52534 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
52535
52536 ac_popdir=`pwd`
52537 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
52538
52539 # Do not complain, so a configure script can configure whichever
52540 # parts of a large source tree are present.
52541 test -d $srcdir/$ac_dir || continue
52542
52543 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
52544echo "$as_me: configuring in $ac_dir" >&6;}
52545 { if $as_mkdir_p; then
52546 mkdir -p "$ac_dir"
52547 else
52548 as_dir="$ac_dir"
52549 as_dirs=
52550 while test ! -d "$as_dir"; do
52551 as_dirs="$as_dir $as_dirs"
52552 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52553$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52554 X"$as_dir" : 'X\(//\)[^/]' \| \
52555 X"$as_dir" : 'X\(//\)$' \| \
52556 X"$as_dir" : 'X\(/\)' \| \
52557 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
52558echo X"$as_dir" |
52559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52560 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52561 /^X\(\/\/\)$/{ s//\1/; q; }
52562 /^X\(\/\).*/{ s//\1/; q; }
52563 s/.*/./; q'`
52564 done
52565 test ! -n "$as_dirs" || mkdir $as_dirs
52566 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52567echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52568 { (exit 1); exit 1; }; }; }
52569
52570 ac_builddir=.
52571
52572if test "$ac_dir" != .; then
52573 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52574 # A "../" for each directory in $ac_dir_suffix.
52575 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52576else
52577 ac_dir_suffix= ac_top_builddir=
52578fi
52579
52580case $srcdir in
52581 .) # No --srcdir option. We are building in place.
52582 ac_srcdir=.
52583 if test -z "$ac_top_builddir"; then
52584 ac_top_srcdir=.
52585 else
52586 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52587 fi ;;
52588 [\\/]* | ?:[\\/]* ) # Absolute path.
52589 ac_srcdir=$srcdir$ac_dir_suffix;
52590 ac_top_srcdir=$srcdir ;;
52591 *) # Relative path.
52592 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52593 ac_top_srcdir=$ac_top_builddir$srcdir ;;
52594esac
ac1cb8d3
VS
52595
52596# Do not use `cd foo && pwd` to compute absolute paths, because
52597# the directories may not exist.
52598case `pwd` in
52599.) ac_abs_builddir="$ac_dir";;
52600*)
52601 case "$ac_dir" in
52602 .) ac_abs_builddir=`pwd`;;
52603 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52604 *) ac_abs_builddir=`pwd`/"$ac_dir";;
52605 esac;;
52606esac
52607case $ac_abs_builddir in
52608.) ac_abs_top_builddir=${ac_top_builddir}.;;
52609*)
52610 case ${ac_top_builddir}. in
52611 .) ac_abs_top_builddir=$ac_abs_builddir;;
52612 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52613 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52614 esac;;
52615esac
52616case $ac_abs_builddir in
52617.) ac_abs_srcdir=$ac_srcdir;;
52618*)
52619 case $ac_srcdir in
52620 .) ac_abs_srcdir=$ac_abs_builddir;;
52621 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52622 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52623 esac;;
52624esac
52625case $ac_abs_builddir in
52626.) ac_abs_top_srcdir=$ac_top_srcdir;;
52627*)
52628 case $ac_top_srcdir in
52629 .) ac_abs_top_srcdir=$ac_abs_builddir;;
52630 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52631 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52632 esac;;
52633esac
a848cd7e
SC
52634
52635
52636 cd $ac_dir
52637
52638 # Check for guested configure; otherwise get Cygnus style configure.
52639 if test -f $ac_srcdir/configure.gnu; then
52640 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
52641 elif test -f $ac_srcdir/configure; then
52642 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
52643 elif test -f $ac_srcdir/configure.in; then
52644 ac_sub_configure=$ac_configure
52645 else
52646 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
52647echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
52648 ac_sub_configure=
52649 fi
52650
52651 # The recursion is here.
52652 if test -n "$ac_sub_configure"; then
52653 # Make the cache file name correct relative to the subdirectory.
52654 case $cache_file in
52655 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
52656 *) # Relative path.
ac1cb8d3 52657 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
52658 esac
52659
52660 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
52661echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
52662 # The eval makes quoting arguments work.
52663 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
52664 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
52665 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
52666echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
52667 { (exit 1); exit 1; }; }
52668 fi
52669
bb9e79c0 52670 cd "$ac_popdir"
a848cd7e
SC
52671 done
52672fi
52673
52674
52675echo
77ffb593 52676echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 52677echo ""
c2e9ada4 52678echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_DESC}"
77ffb593 52679echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 52680
77ffb593
JS
52681echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
52682echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
52683echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 52684
77ffb593 52685echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
52686echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
52687echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 52688
77ffb593 52689echo " Which libraries should wxWidgets use?"
a848cd7e
SC
52690echo " jpeg ${wxUSE_LIBJPEG-none}"
52691echo " png ${wxUSE_LIBPNG-none}"
52692echo " regex ${wxUSE_REGEX}"
52693echo " tiff ${wxUSE_LIBTIFF-none}"
52694if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
52695echo " xpm ${wxUSE_LIBXPM-none}"
52696fi
52697echo " zlib ${wxUSE_ZLIB}"
52698echo " odbc ${wxUSE_ODBC}"
52699echo " expat ${wxUSE_EXPAT}"
52700echo " libmspack ${wxUSE_LIBMSPACK}"
52701echo " sdl ${wxUSE_LIBSDL}"
52702
52703echo ""
52704