]> git.saurik.com Git - wxWidgets.git/blame - configure
wxAUI's wxFrameManager::SetFrame() now takes a wxWindow ptr instead of a wxFrame...
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
dd8df4fc 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.7.0.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
dd8df4fc
VZ
273PACKAGE_VERSION='2.7.0'
274PACKAGE_STRING='wxWidgets 2.7.0'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
8b6682b9 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_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_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
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
dd8df4fc 797\`configure' configures wxWidgets 2.7.0 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
dd8df4fc 863 short | recursive ) echo "Configuration of wxWidgets 2.7.0:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
f34ca037 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
7afc46ab 892 --enable-universal_binary create Mac PowerPC and Intel Universal binary (not yet working)
dee1a63f
MB
893 --enable-compat24 enable wxWidgets 2.4 compatibility
894 --disable-compat26 disable wxWidgets 2.6 compatibility
ffa0583f 895 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
896 --enable-intl use internationalization system
897 --enable-config use wxConfig (and derived) classes
898 --enable-protocols use wxProtocol and derived classes
899 --enable-ftp use wxFTP (requires wxProtocol
900 --enable-http use wxHTTP (requires wxProtocol
901 --enable-fileproto use wxFileProto class (requires wxProtocol
902 --enable-sockets use socket/network classes
903 --enable-ole use OLE classes (Win32 only)
904 --enable-dataobj use data object classes
905 --enable-ipc use interprocess communication (wxSocket etc.)
906 --enable-apple_ieee use the Apple IEEE codec
81f90336 907 --enable-arcstream use wxArchive streams
eaff0f0d 908 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 909 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
910 --enable-cmdline use wxCmdLineParser class
911 --enable-datetime use wxDateTime class
36b6448c 912 --enable-debugreport use wxDebugReport class
a848cd7e
SC
913 --enable-dialupman use dialup network classes
914 --enable-dynlib use wxLibrary class for DLL loading
915 --enable-dynamicloader use (new) wxDynamicLibrary class
916 --enable-exceptions build exception-safe library
917 --enable-ffile use wxFFile class
918 --enable-file use wxFile class
919 --enable-filesystem use virtual file systems classes
920 --enable-fontmap use font encodings conversion classes
921 --enable-fs_inet use virtual HTTP/FTP filesystems
922 --enable-fs_zip use virtual ZIP filesystems
923 --enable-geometry use geometry class
924 --enable-log use logging system
925 --enable-longlong use wxLongLong class
926 --enable-mimetype use wxMimeTypesManager
927 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
928 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 929 --enable-std_iostreams use standard C++ stream classes
59746b65 930 --enable-std_string use standard C++ string classes
07158944 931 --enable-stdpaths use wxStandardPaths class
a848cd7e 932 --enable-stopwatch use wxStopWatch class
07158944 933 --enable-streams use wxStream etc classes
a848cd7e
SC
934 --enable-sysoptions use wxSystemOptions
935 --enable-textbuf use wxTextBuffer class
936 --enable-textfile use wxTextFile class
937 --enable-timer use wxTimer class
938 --enable-unicode compile wxString with Unicode support
939 --enable-sound use wxSound class
3b57de8b 940 --enable-mediactrl use wxMediaCtrl class
f10e38c4 941 --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
8b6682b9 942 --enable-printfposparam use wxVsnprintf() which supports positional parameters
81f90336 943 --enable-zipstream use wxZip streams
a848cd7e
SC
944 --enable-url use wxURL class
945 --enable-protocol use wxProtocol class
946 --enable-protocol-http HTTP support in wxProtocol
947 --enable-protocol-ftp FTP support in wxProtocol
948 --enable-protocol-file FILE support in wxProtocol
949 --enable-threads use threads
950 --enable-docview use document view architecture
951 --enable-help use help subsystem
952 --enable-mshtmlhelp use MS HTML Help (win32)
953 --enable-html use wxHTML sub-library
954 --enable-htmlhelp use wxHTML-based help
9a8f0513 955 --enable-xrc use XRC resources sub-library
3f60522a 956 --enable-aui use AUI docking library
a848cd7e
SC
957 --enable-constraints use layout-constraints system
958 --enable-printarch use printing architecture
959 --enable-mdi use multiple document interface architecture
8a7b1113 960 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
961 --enable-loggui use standard GUI logger
962 --enable-logwin use wxLogWindow
963 --enable-logdialog use wxLogDialog
646b6ec1 964 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 965 --enable-richtext use wxRichTextCtrl
a848cd7e
SC
966 --enable-postscript use wxPostscriptDC device context (default for gtk+)
967 --enable-prologio not available; see contrib
968 --enable-resources not available; see contrib
969 --enable-clipboard use wxClipboard class
970 --enable-dnd use Drag'n'Drop classes
971 --enable-metafile use win32 metafiles
972 --enable-controls use all usual controls
973 --enable-accel use accelerators
974 --enable-button use wxButton class
975 --enable-bmpbutton use wxBitmapButton class
976 --enable-calendar use wxCalendarCtrl class
977 --enable-caret use wxCaret class
978 --enable-checkbox use wxCheckBox class
979 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
980 --enable-choice use wxChoice class
92bbdbcd 981 --enable-choicebook use wxChoicebook class
e9263684 982 --enable-colourpicker use wxColourPickerCtrl class
a848cd7e 983 --enable-combobox use wxComboBox class
a57d600f 984 --enable-comboctrl use wxComboCtrl class
da98e9be 985 --enable-datepick use wxDatePickerCtrl class
e9263684 986 --enable-dirpicker use wxDirPickerCtrl class
a848cd7e 987 --enable-display use wxDisplay class
e9263684
VZ
988 --enable-filepicker use wxFilePickerCtrl class
989 --enable-fontpicker use wxFontPickerCtrl class
a848cd7e
SC
990 --enable-gauge use wxGauge class
991 --enable-grid use wxGrid class
20e34ecc 992 --enable-dataviewctrl, use wxDataViewCtrl class
6954625c 993 --enable-hyperlink use wxHyperlinkCtrl class
a848cd7e
SC
994 --enable-imaglist use wxImageList class
995 --enable-listbook use wxListbook class
996 --enable-listbox use wxListBox class
997 --enable-listctrl use wxListCtrl class
998 --enable-notebook use wxNotebook class
a57d600f 999 --enable-odcombobox use wxOwnerDrawnComboBox class
a848cd7e
SC
1000 --enable-radiobox use wxRadioBox class
1001 --enable-radiobtn use wxRadioButton class
1002 --enable-sash use wxSashWindow class
1003 --enable-scrollbar use wxScrollBar class and scrollable windows
1004 --enable-slider use wxSlider class
1005 --enable-spinbtn use wxSpinButton class
1006 --enable-spinctrl use wxSpinCtrl class
1007 --enable-splitter use wxSplitterWindow class
1008 --enable-statbmp use wxStaticBitmap class
1009 --enable-statbox use wxStaticBox class
1010 --enable-statline use wxStaticLine class
1011 --enable-stattext use wxStaticText class
1012 --enable-statusbar use wxStatusBar class
1013 --enable-tabdialog use wxTabControl class
1014 --enable-textctrl use wxTextCtrl class
1015 --enable-togglebtn use wxToggleButton class
1016 --enable-toolbar use wxToolBar class
1017 --enable-tbarnative use native wxToolBar class
1018 --enable-tbarsmpl use wxToolBarSimple class
0093c2fc 1019 --enable-treebook use wxTreebook class
5ec3bc43 1020 --enable-toolbook use wxToolbook class
a848cd7e
SC
1021 --enable-treectrl use wxTreeCtrl class
1022 --enable-tipwindow use wxTipWindow class
1023 --enable-popupwin use wxPopUpWindow class
1024 --enable-commondlg use all common dialogs
1025 --enable-choicedlg use wxChoiceDialog
1026 --enable-coldlg use wxColourDialog
1027 --enable-filedlg use wxFileDialog
1028 --enable-finddlg use wxFindReplaceDialog
1029 --enable-fontdlg use wxFontDialog
1030 --enable-dirdlg use wxDirDialog
1031 --enable-msgdlg use wxMessageDialog
1032 --enable-numberdlg use wxNumberEntryDialog
1033 --enable-splash use wxSplashScreen
1034 --enable-textdlg use wxTextDialog
1035 --enable-tipdlg use startup tips
1036 --enable-progressdlg use wxProgressDialog
1037 --enable-wizarddlg use wxWizard
1038 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1039 --enable-miniframe use wxMiniFrame class
1040 --enable-tooltips use wxToolTip class
1041 --enable-splines use spline drawing code
fbe2ca43 1042 --enable-mousewheel use mousewheel
a848cd7e
SC
1043 --enable-validators use wxValidator and derived classes
1044 --enable-busyinfo use wxBusyInfo
4cb1d3da 1045 --enable-joystick use wxJoystick
38b4a946 1046 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1047 --enable-dragimage use wxDragImage
1048 --enable-accessibility enable accessibility support
38b4a946 1049 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1050 --enable-palette use wxPalette class
1051 --enable-image use wxImage class
1052 --enable-gif use gif images (GIF file format)
1053 --enable-pcx use pcx images (PCX file format)
1054 --enable-iff use iff images (IFF file format)
1055 --enable-pnm use pnm images (PNM file format)
1056 --enable-xpm use xpm images (XPM file format)
1057 --enable-icocur use Windows ICO and CUR formats
77ffb593 1058 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1059 --enable-vendor=VENDOR vendor name (win32 DLL only)
1060 --disable-largefile omit support for large files
1061 --disable-gtktest do not try to compile and run a test GTK+ program
1062 --disable-gtktest Do not try to compile and run a test GTK program
1063 --disable-sdltest Do not try to compile and run a test SDL program
1064 --enable-omf use OMF object format (OS/2)
f10e38c4
VZ
1065 --disable-dependency-tracking
1066 don't use dependency tracking even if the compiler
1067 can
ebee3cd0
VS
1068 --disable-precomp-headers
1069 don't use precompiled headers even if compiler can
a848cd7e
SC
1070
1071Optional Packages:
1072 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1073 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1074 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1075 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1076 --with-motif use Motif/Lesstif
1077 --with-mac use Mac OS X
1078 --with-cocoa use Cocoa
1079 --with-wine use Wine
1080 --with-msw use MS-Windows
1081 --with-pm use OS/2 Presentation Manager
1082 --with-mgl use SciTech MGL
1083 --with-microwin use MicroWindows
1084 --with-x11 use X11
1085 --with-libpng use libpng (PNG image format)
1086 --with-libjpeg use libjpeg (JPEG file format)
1087 --with-libtiff use libtiff (TIFF file format)
1088 --with-libxpm use libxpm (XPM file format)
1089 --with-libmspack use libmspack (CHM help files loading)
1090 --with-sdl use SDL for audio on Unix
2b850ae1
RR
1091 --with-gnomeprint use GNOME print for printing under GNOME
1092 --with-gnomevfs use GNOME VFS for associating MIME types
3565d135 1093 --with-hildon use Hildon framework for Nokia 770
a848cd7e
SC
1094 --with-opengl use OpenGL (or Mesa)
1095 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1096 --with-regex enable support for wxRegEx class
1097 --with-zlib use zlib for LZW compression
1098 --with-odbc use the IODBC and wxODBC classes
1099 --with-expat enable XML support using expat parser
ceec2216 1100 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1101 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1102 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1103 --with-x use the X Window System
1104 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1105 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1106 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1107 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1108 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1109
1110Some influential environment variables:
dcc1b6ad
VS
1111 CC C compiler command
1112 CFLAGS C compiler flags
1113 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1114 nonstandard directory <lib dir>
1115 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1116 headers in a nonstandard directory <include dir>
1117 CPP C preprocessor
1118 CXX C++ compiler command
1119 CXXFLAGS C++ compiler flags
1120 CXXCPP C++ preprocessor
a848cd7e
SC
1121
1122Use these variables to override the choices made by `configure' or to help
1123it to find libraries and programs with nonstandard names/locations.
1124
77ffb593 1125Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1126_ACEOF
1127fi
1128
1129if test "$ac_init_help" = "recursive"; then
1130 # If there are subdirs, report their specific --help.
1131 ac_popdir=`pwd`
1132 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1133 test -d $ac_dir || continue
1134 ac_builddir=.
1135
1136if test "$ac_dir" != .; then
1137 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1138 # A "../" for each directory in $ac_dir_suffix.
1139 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1140else
1141 ac_dir_suffix= ac_top_builddir=
1142fi
1143
1144case $srcdir in
1145 .) # No --srcdir option. We are building in place.
1146 ac_srcdir=.
1147 if test -z "$ac_top_builddir"; then
1148 ac_top_srcdir=.
1149 else
1150 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1151 fi ;;
1152 [\\/]* | ?:[\\/]* ) # Absolute path.
1153 ac_srcdir=$srcdir$ac_dir_suffix;
1154 ac_top_srcdir=$srcdir ;;
1155 *) # Relative path.
1156 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1157 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1158esac
ac1cb8d3
VS
1159
1160# Do not use `cd foo && pwd` to compute absolute paths, because
1161# the directories may not exist.
1162case `pwd` in
1163.) ac_abs_builddir="$ac_dir";;
1164*)
1165 case "$ac_dir" in
1166 .) ac_abs_builddir=`pwd`;;
1167 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1168 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1169 esac;;
1170esac
1171case $ac_abs_builddir in
1172.) ac_abs_top_builddir=${ac_top_builddir}.;;
1173*)
1174 case ${ac_top_builddir}. in
1175 .) ac_abs_top_builddir=$ac_abs_builddir;;
1176 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1177 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1178 esac;;
1179esac
1180case $ac_abs_builddir in
1181.) ac_abs_srcdir=$ac_srcdir;;
1182*)
1183 case $ac_srcdir in
1184 .) ac_abs_srcdir=$ac_abs_builddir;;
1185 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1186 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1187 esac;;
1188esac
1189case $ac_abs_builddir in
1190.) ac_abs_top_srcdir=$ac_top_srcdir;;
1191*)
1192 case $ac_top_srcdir in
1193 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1194 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1195 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1196 esac;;
1197esac
a848cd7e
SC
1198
1199 cd $ac_dir
1200 # Check for guested configure; otherwise get Cygnus style configure.
1201 if test -f $ac_srcdir/configure.gnu; then
1202 echo
1203 $SHELL $ac_srcdir/configure.gnu --help=recursive
1204 elif test -f $ac_srcdir/configure; then
1205 echo
1206 $SHELL $ac_srcdir/configure --help=recursive
1207 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1208 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1209 echo
1210 $ac_configure --help
1211 else
1212 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1213 fi
3f60522a 1214 cd $ac_popdir
a848cd7e
SC
1215 done
1216fi
1217
1218test -n "$ac_init_help" && exit 0
1219if $ac_init_version; then
1220 cat <<\_ACEOF
dd8df4fc 1221wxWidgets configure 2.7.0
ac1cb8d3 1222generated by GNU Autoconf 2.59
a848cd7e 1223
ac1cb8d3 1224Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1225This configure script is free software; the Free Software Foundation
1226gives unlimited permission to copy, distribute and modify it.
1227_ACEOF
1228 exit 0
1229fi
1230exec 5>config.log
1231cat >&5 <<_ACEOF
1232This file contains any messages produced by compilers while
1233running configure, to aid debugging if configure makes a mistake.
1234
dd8df4fc 1235It was created by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 1236generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1237
1238 $ $0 $@
1239
1240_ACEOF
1241{
1242cat <<_ASUNAME
1243## --------- ##
1244## Platform. ##
1245## --------- ##
1246
1247hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1248uname -m = `(uname -m) 2>/dev/null || echo unknown`
1249uname -r = `(uname -r) 2>/dev/null || echo unknown`
1250uname -s = `(uname -s) 2>/dev/null || echo unknown`
1251uname -v = `(uname -v) 2>/dev/null || echo unknown`
1252
1253/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1254/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1255
1256/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1257/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1258/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1259hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1260/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1261/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1262/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1263
1264_ASUNAME
1265
1266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1267for as_dir in $PATH
1268do
1269 IFS=$as_save_IFS
1270 test -z "$as_dir" && as_dir=.
1271 echo "PATH: $as_dir"
1272done
1273
1274} >&5
1275
1276cat >&5 <<_ACEOF
1277
1278
1279## ----------- ##
1280## Core tests. ##
1281## ----------- ##
1282
1283_ACEOF
1284
1285
1286# Keep a trace of the command line.
1287# Strip out --no-create and --no-recursion so they do not pile up.
1288# Strip out --silent because we don't want to record it for future runs.
1289# Also quote any args containing shell meta-characters.
1290# Make two passes to allow for proper duplicate-argument suppression.
1291ac_configure_args=
1292ac_configure_args0=
1293ac_configure_args1=
1294ac_sep=
1295ac_must_keep_next=false
1296for ac_pass in 1 2
1297do
1298 for ac_arg
1299 do
1300 case $ac_arg in
1301 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1303 | -silent | --silent | --silen | --sile | --sil)
1304 continue ;;
1305 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1306 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1307 esac
1308 case $ac_pass in
1309 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1310 2)
1311 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1312 if test $ac_must_keep_next = true; then
ac1cb8d3 1313 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1314 else
ac1cb8d3
VS
1315 case $ac_arg in
1316 *=* | --config-cache | -C | -disable-* | --disable-* \
1317 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1318 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1319 | -with-* | --with-* | -without-* | --without-* | --x)
1320 case "$ac_configure_args0 " in
1321 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1322 esac
1323 ;;
1324 -* ) ac_must_keep_next=true ;;
1325 esac
a848cd7e
SC
1326 fi
1327 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1328 # Get rid of the leading space.
1329 ac_sep=" "
1330 ;;
1331 esac
1332 done
1333done
1334$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1335$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1336
1337# When interrupted or exit'd, cleanup temporary files, and complete
1338# config.log. We remove comments because anyway the quotes in there
1339# would cause problems or look ugly.
1340# WARNING: Be sure not to use single quotes in there, as some shells,
1341# such as our DU 5.0 friend, will then `close' the trap.
1342trap 'exit_status=$?
1343 # Save into config.log some information that might help in debugging.
1344 {
1345 echo
1346
1347 cat <<\_ASBOX
1348## ---------------- ##
1349## Cache variables. ##
1350## ---------------- ##
1351_ASBOX
1352 echo
1353 # The following way of writing the cache mishandles newlines in values,
1354{
1355 (set) 2>&1 |
1356 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1357 *ac_space=\ *)
1358 sed -n \
ac1cb8d3
VS
1359 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1360 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1361 ;;
1362 *)
1363 sed -n \
ac1cb8d3 1364 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1365 ;;
1366 esac;
1367}
1368 echo
1369
1370 cat <<\_ASBOX
1371## ----------------- ##
1372## Output variables. ##
1373## ----------------- ##
1374_ASBOX
1375 echo
1376 for ac_var in $ac_subst_vars
1377 do
1378 eval ac_val=$`echo $ac_var`
1379 echo "$ac_var='"'"'$ac_val'"'"'"
1380 done | sort
1381 echo
1382
1383 if test -n "$ac_subst_files"; then
1384 cat <<\_ASBOX
1385## ------------- ##
1386## Output files. ##
1387## ------------- ##
1388_ASBOX
1389 echo
1390 for ac_var in $ac_subst_files
1391 do
1392 eval ac_val=$`echo $ac_var`
ac1cb8d3 1393 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1394 done | sort
1395 echo
1396 fi
1397
1398 if test -s confdefs.h; then
1399 cat <<\_ASBOX
1400## ----------- ##
1401## confdefs.h. ##
1402## ----------- ##
1403_ASBOX
1404 echo
1405 sed "/^$/d" confdefs.h | sort
1406 echo
1407 fi
1408 test "$ac_signal" != 0 &&
1409 echo "$as_me: caught signal $ac_signal"
1410 echo "$as_me: exit $exit_status"
1411 } >&5
ac1cb8d3 1412 rm -f core *.core &&
a848cd7e
SC
1413 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1414 exit $exit_status
1415 ' 0
1416for ac_signal in 1 2 13 15; do
1417 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1418done
1419ac_signal=0
1420
1421# confdefs.h avoids OS command line length limits that DEFS can exceed.
1422rm -rf conftest* confdefs.h
1423# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1424echo >confdefs.h
1425
1426# Predefined preprocessor variables.
1427
1428cat >>confdefs.h <<_ACEOF
1429#define PACKAGE_NAME "$PACKAGE_NAME"
1430_ACEOF
1431
1432
1433cat >>confdefs.h <<_ACEOF
1434#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1435_ACEOF
1436
1437
1438cat >>confdefs.h <<_ACEOF
1439#define PACKAGE_VERSION "$PACKAGE_VERSION"
1440_ACEOF
1441
1442
1443cat >>confdefs.h <<_ACEOF
1444#define PACKAGE_STRING "$PACKAGE_STRING"
1445_ACEOF
1446
1447
1448cat >>confdefs.h <<_ACEOF
1449#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1450_ACEOF
1451
1452
1453# Let the site file select an alternate cache file if it wants to.
1454# Prefer explicitly selected file to automatically selected ones.
1455if test -z "$CONFIG_SITE"; then
1456 if test "x$prefix" != xNONE; then
1457 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1458 else
1459 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1460 fi
1461fi
1462for ac_site_file in $CONFIG_SITE; do
1463 if test -r "$ac_site_file"; then
1464 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1465echo "$as_me: loading site script $ac_site_file" >&6;}
1466 sed 's/^/| /' "$ac_site_file" >&5
1467 . "$ac_site_file"
1468 fi
1469done
1470
1471if test -r "$cache_file"; then
1472 # Some versions of bash will fail to source /dev/null (special
1473 # files actually), so we avoid doing that.
1474 if test -f "$cache_file"; then
1475 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1476echo "$as_me: loading cache $cache_file" >&6;}
1477 case $cache_file in
1478 [\\/]* | ?:[\\/]* ) . $cache_file;;
1479 *) . ./$cache_file;;
1480 esac
1481 fi
1482else
1483 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1484echo "$as_me: creating cache $cache_file" >&6;}
1485 >$cache_file
1486fi
1487
1488# Check that the precious variables saved in the cache have kept the same
1489# value.
1490ac_cache_corrupted=false
1491for ac_var in `(set) 2>&1 |
ac1cb8d3 1492 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1493 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1494 eval ac_new_set=\$ac_env_${ac_var}_set
1495 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1496 eval ac_new_val="\$ac_env_${ac_var}_value"
1497 case $ac_old_set,$ac_new_set in
1498 set,)
1499 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1500echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1501 ac_cache_corrupted=: ;;
1502 ,set)
1503 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1504echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1505 ac_cache_corrupted=: ;;
1506 ,);;
1507 *)
1508 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1509 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1510echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1511 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1512echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1513 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1514echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1515 ac_cache_corrupted=:
a848cd7e
SC
1516 fi;;
1517 esac
1518 # Pass precious variables to config.status.
1519 if test "$ac_new_set" = set; then
1520 case $ac_new_val in
1521 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1522 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1523 *) ac_arg=$ac_var=$ac_new_val ;;
1524 esac
1525 case " $ac_configure_args " in
1526 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1527 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1528 esac
1529 fi
1530done
1531if $ac_cache_corrupted; then
1532 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1533echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1534 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1535echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1536 { (exit 1); exit 1; }; }
1537fi
1538
1539ac_ext=c
1540ac_cpp='$CPP $CPPFLAGS'
1541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1543ac_compiler_gnu=$ac_cv_c_compiler_gnu
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574ac_aux_dir=
1575for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1576 if test -f $ac_dir/install-sh; then
1577 ac_aux_dir=$ac_dir
1578 ac_install_sh="$ac_aux_dir/install-sh -c"
1579 break
1580 elif test -f $ac_dir/install.sh; then
1581 ac_aux_dir=$ac_dir
1582 ac_install_sh="$ac_aux_dir/install.sh -c"
1583 break
1584 elif test -f $ac_dir/shtool; then
1585 ac_aux_dir=$ac_dir
1586 ac_install_sh="$ac_aux_dir/shtool install -c"
1587 break
1588 fi
1589done
1590if test -z "$ac_aux_dir"; then
1591 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1592echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1593 { (exit 1); exit 1; }; }
1594fi
1595ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1596ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1597ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1598
1599# Make sure we can run config.sub.
1600$ac_config_sub sun4 >/dev/null 2>&1 ||
1601 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1602echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1603 { (exit 1); exit 1; }; }
1604
1605echo "$as_me:$LINENO: checking build system type" >&5
1606echo $ECHO_N "checking build system type... $ECHO_C" >&6
1607if test "${ac_cv_build+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
1609else
1610 ac_cv_build_alias=$build_alias
1611test -z "$ac_cv_build_alias" &&
1612 ac_cv_build_alias=`$ac_config_guess`
1613test -z "$ac_cv_build_alias" &&
1614 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1615echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1616 { (exit 1); exit 1; }; }
1617ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1618 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1619echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1620 { (exit 1); exit 1; }; }
1621
1622fi
1623echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1624echo "${ECHO_T}$ac_cv_build" >&6
1625build=$ac_cv_build
1626build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1627build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1628build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1629
1630
1631echo "$as_me:$LINENO: checking host system type" >&5
1632echo $ECHO_N "checking host system type... $ECHO_C" >&6
1633if test "${ac_cv_host+set}" = set; then
1634 echo $ECHO_N "(cached) $ECHO_C" >&6
1635else
1636 ac_cv_host_alias=$host_alias
1637test -z "$ac_cv_host_alias" &&
1638 ac_cv_host_alias=$ac_cv_build_alias
1639ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1640 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1641echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1642 { (exit 1); exit 1; }; }
1643
1644fi
1645echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1646echo "${ECHO_T}$ac_cv_host" >&6
1647host=$ac_cv_host
1648host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1649host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1650host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1651
1652
1653echo "$as_me:$LINENO: checking target system type" >&5
1654echo $ECHO_N "checking target system type... $ECHO_C" >&6
1655if test "${ac_cv_target+set}" = set; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1657else
1658 ac_cv_target_alias=$target_alias
1659test "x$ac_cv_target_alias" = "x" &&
1660 ac_cv_target_alias=$ac_cv_host_alias
1661ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1662 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1663echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1664 { (exit 1); exit 1; }; }
1665
1666fi
1667echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1668echo "${ECHO_T}$ac_cv_target" >&6
1669target=$ac_cv_target
1670target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1671target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1672target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1673
1674
1675# The aliases save the names the user supplied, while $host etc.
1676# will get canonicalized.
1677test -n "$target_alias" &&
1678 test "$program_prefix$program_suffix$program_transform_name" = \
1679 NONENONEs,x,x, &&
1680 program_prefix=${target_alias}-
1681
1682
1683
ceec2216 1684wx_major_version_number=2
dd8df4fc
VZ
1685wx_minor_version_number=7
1686wx_release_number=0
1687wx_subrelease_number=0
a848cd7e 1688
ceec2216
RL
1689WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1690WX_VERSION=$WX_RELEASE.$wx_release_number
1691WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1692
ceec2216 1693WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1694
a848cd7e
SC
1695
1696
1697
1698USE_UNIX=1
1699USE_OS2=0
1700USE_WIN32=0
1701USE_DOS=0
1702USE_BEOS=0
1703USE_MAC=0
1704
1705USE_AIX=
1706USE_BSD= USE_DARWIN= USE_FREEBSD=
1707USE_GNU= USE_HPUX=
1708USE_LINUX=
1709USE_NETBSD=
1710USE_OPENBSD=
1711USE_OSF= USE_SGI=
1712USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1713USE_ULTRIX=
1714USE_UNIXWARE=
1715
1716USE_ALPHA=
1717
1718NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1719
1720ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1721
1722DEFAULT_wxUSE_COCOA=0
1723DEFAULT_wxUSE_GTK=0
1724DEFAULT_wxUSE_MAC=0
1725DEFAULT_wxUSE_MGL=0
1726DEFAULT_wxUSE_MICROWIN=0
1727DEFAULT_wxUSE_MOTIF=0
1728DEFAULT_wxUSE_MSW=0
1729DEFAULT_wxUSE_PM=0
1730DEFAULT_wxUSE_X11=0
1731
1732DEFAULT_DEFAULT_wxUSE_COCOA=0
1733DEFAULT_DEFAULT_wxUSE_GTK=0
1734DEFAULT_DEFAULT_wxUSE_MAC=0
1735DEFAULT_DEFAULT_wxUSE_MGL=0
1736DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1737DEFAULT_DEFAULT_wxUSE_MOTIF=0
1738DEFAULT_DEFAULT_wxUSE_MSW=0
1739DEFAULT_DEFAULT_wxUSE_PM=0
1740DEFAULT_DEFAULT_wxUSE_X11=0
1741
1742PROGRAM_EXT=
1743SO_SUFFIX=so
1744SAMPLES_RPATH_FLAG=
1745SAMPLES_RPATH_POSTLINK=
1746
a03b8b04
RD
1747DEFAULT_STD_FLAG=yes
1748
a848cd7e
SC
1749case "${host}" in
1750 *-hp-hpux* )
1751 USE_HPUX=1
1752 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1753 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1754 SO_SUFFIX=sl
1755 cat >>confdefs.h <<\_ACEOF
1756#define __HPUX__ 1
1757_ACEOF
1758
2eef8513 1759
c92ad099 1760 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1761 ;;
1762 *-*-linux* )
1763 USE_LINUX=1
1764 cat >>confdefs.h <<\_ACEOF
1765#define __LINUX__ 1
1766_ACEOF
1767
1768 TMP=`uname -m`
1769 if test "x$TMP" = "xalpha"; then
1770 USE_ALPHA=1
1771 cat >>confdefs.h <<\_ACEOF
1772#define __ALPHA__ 1
1773_ACEOF
1774
1775 fi
1776 DEFAULT_DEFAULT_wxUSE_GTK=1
1777 ;;
1778 *-*-gnu* | *-*-k*bsd*-gnu )
1779 USE_GNU=1
1780 TMP=`uname -m`
1781 if test "x$TMP" = "xalpha"; then
1782 USE_ALPHA=1
1783 cat >>confdefs.h <<\_ACEOF
1784#define __ALPHA__ 1
1785_ACEOF
1786
1787 fi
1788 DEFAULT_DEFAULT_wxUSE_GTK=1
1789 ;;
1790 *-*-irix5* | *-*-irix6* )
1791 USE_SGI=1
1792 USE_SVR4=1
1793 cat >>confdefs.h <<\_ACEOF
1794#define __SGI__ 1
1795_ACEOF
1796
1797 cat >>confdefs.h <<\_ACEOF
1798#define __SVR4__ 1
1799_ACEOF
1800
1801 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1802 ;;
1803 *-*-solaris2* )
1804 USE_SUN=1
1805 USE_SOLARIS=1
1806 USE_SVR4=1
1807 cat >>confdefs.h <<\_ACEOF
1808#define __SUN__ 1
1809_ACEOF
1810
1811 cat >>confdefs.h <<\_ACEOF
1812#define __SOLARIS__ 1
1813_ACEOF
1814
1815 cat >>confdefs.h <<\_ACEOF
1816#define __SVR4__ 1
1817_ACEOF
1818
1819 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1820 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1821 ;;
1822 *-*-sunos4* )
1823 USE_SUN=1
1824 USE_SUNOS=1
1825 USE_BSD=1
1826 cat >>confdefs.h <<\_ACEOF
1827#define __SUN__ 1
1828_ACEOF
1829
1830 cat >>confdefs.h <<\_ACEOF
1831#define __SUNOS__ 1
1832_ACEOF
1833
1834 cat >>confdefs.h <<\_ACEOF
1835#define __BSD__ 1
1836_ACEOF
1837
1838 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1839 ;;
1840 *-*-freebsd*)
1841 USE_BSD=1
1842 USE_FREEBSD=1
1843 cat >>confdefs.h <<\_ACEOF
1844#define __FREEBSD__ 1
1845_ACEOF
1846
1847 cat >>confdefs.h <<\_ACEOF
1848#define __BSD__ 1
1849_ACEOF
1850
1851 DEFAULT_DEFAULT_wxUSE_GTK=1
1852 ;;
1853 *-*-openbsd*)
1854 USE_BSD=1
1855 USE_OPENBSD=1
1856 cat >>confdefs.h <<\_ACEOF
1857#define __OPENBSD__ 1
1858_ACEOF
1859
1860 cat >>confdefs.h <<\_ACEOF
1861#define __BSD__ 1
1862_ACEOF
1863
1864 DEFAULT_DEFAULT_wxUSE_GTK=1
1865 ;;
1866 *-*-netbsd*)
1867 USE_BSD=1
1868 USE_NETBSD=1
1869 cat >>confdefs.h <<\_ACEOF
1870#define __NETBSD__ 1
1871_ACEOF
1872
1873 cat >>confdefs.h <<\_ACEOF
1874#define __BSD__ 1
1875_ACEOF
1876
1877 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 1878 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 1879
def7c04a 1880 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
1881 ;;
1882 *-*-osf* )
1883 USE_ALPHA=1
1884 USE_OSF=1
1885 cat >>confdefs.h <<\_ACEOF
1886#define __ALPHA__ 1
1887_ACEOF
1888
1889 cat >>confdefs.h <<\_ACEOF
1890#define __OSF__ 1
1891_ACEOF
1892
1893 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1894 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1895 ;;
1896 *-*-dgux5* )
1897 USE_ALPHA=1
1898 USE_SVR4=1
1899 cat >>confdefs.h <<\_ACEOF
1900#define __ALPHA__ 1
1901_ACEOF
1902
1903 cat >>confdefs.h <<\_ACEOF
1904#define __SVR4__ 1
1905_ACEOF
1906
1907 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1908 ;;
1909 *-*-sysv5* )
1910 USE_SYSV=1
1911 USE_SVR4=1
1912 cat >>confdefs.h <<\_ACEOF
1913#define __SYSV__ 1
1914_ACEOF
1915
1916 cat >>confdefs.h <<\_ACEOF
1917#define __SVR4__ 1
1918_ACEOF
1919
1920 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1921 ;;
1922 *-*-aix* )
1923 USE_AIX=1
1924 USE_SYSV=1
1925 USE_SVR4=1
1926 SO_SUFFIX=a
1927 cat >>confdefs.h <<\_ACEOF
1928#define __AIX__ 1
1929_ACEOF
1930
1931 cat >>confdefs.h <<\_ACEOF
1932#define __SYSV__ 1
1933_ACEOF
1934
1935 cat >>confdefs.h <<\_ACEOF
1936#define __SVR4__ 1
1937_ACEOF
1938
1939 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1940 ;;
1941
1942 *-*-*UnixWare*)
1943 USE_SYSV=1
1944 USE_SVR4=1
1945 USE_UNIXWARE=1
1946 cat >>confdefs.h <<\_ACEOF
1947#define __UNIXWARE__ 1
1948_ACEOF
1949
1950 ;;
1951
1952 *-*-cygwin* | *-*-mingw32* )
1953 SO_SUFFIX=dll
1954 PROGRAM_EXT=".exe"
a848cd7e 1955 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1956 DEFAULT_STD_FLAG=no
a848cd7e
SC
1957 ;;
1958
1959 *-pc-msdosdjgpp )
1960 USE_UNIX=0
1961 USE_DOS=1
1962 cat >>confdefs.h <<\_ACEOF
1963#define __DOS__ 1
1964_ACEOF
1965
1966 PROGRAM_EXT=".exe"
1967 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1968 ;;
1969
1970 *-pc-os2_emx | *-pc-os2-emx )
1971 cat >>confdefs.h <<\_ACEOF
1972#define __EMX__ 1
1973_ACEOF
1974
1975 USE_OS2=1
1976 cat >>confdefs.h <<\_ACEOF
1977#define __OS2__ 1
1978_ACEOF
1979
1980 PROGRAM_EXT=".exe"
1981 DEFAULT_DEFAULT_wxUSE_PM=1
1982 CXX=gcc
1983 LDFLAGS="$LDFLAGS -Zcrtdll"
1984 ac_executable_extensions=".exe"
1985 export ac_executable_extensions
1986 ac_save_IFS="$IFS"
1987 IFS='\\'
1988 ac_TEMP_PATH=
1989 for ac_dir in $PATH; do
1990 IFS=$ac_save_IFS
1991 if test -z "$ac_TEMP_PATH"; then
1992 ac_TEMP_PATH="$ac_dir"
1993 else
1994 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1995 fi
1996 done
1997 export PATH="$ac_TEMP_PATH"
1998 unset ac_TEMP_PATH
a03b8b04 1999 DEFAULT_STD_FLAG=no
a848cd7e
SC
2000 ;;
2001
cfda0ea8 2002 *-*-darwin* )
a848cd7e
SC
2003 USE_BSD=1
2004 USE_DARWIN=1
2005 SO_SUFFIX=dylib
2006 cat >>confdefs.h <<\_ACEOF
2007#define __BSD__ 1
2008_ACEOF
2009
2010 cat >>confdefs.h <<\_ACEOF
2011#define __DARWIN__ 1
a848cd7e
SC
2012_ACEOF
2013
2014 cat >>confdefs.h <<\_ACEOF
2015#define TARGET_CARBON 1
2016_ACEOF
2017
2018 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2019 DEFAULT_STD_FLAG=no
a848cd7e 2020 ;;
1e9e8aba
DE
2021 powerpc-apple-macos* )
2022 USE_UNIX=0
2023 ac_cv_c_bigendian=yes
2024 SO_SUFFIX=shlib
2025 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2026 DEFAULT_STD_FLAG=no
1e9e8aba 2027 ;;
a848cd7e
SC
2028
2029 *-*-beos* )
2030 USE_BEOS=1
2031 cat >>confdefs.h <<\_ACEOF
2032#define __BEOS__ 1
2033_ACEOF
2034
2035 ;;
2036
2037 *)
2038 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2039echo "$as_me: error: unknown system type ${host}." >&2;}
2040 { (exit 1); exit 1; }; }
2041esac
2042
2043
2044
2045
2046 wx_arg_cache_file="configarg.cache"
2047 echo "loading argument cache $wx_arg_cache_file"
2048 rm -f ${wx_arg_cache_file}.tmp
2049 touch ${wx_arg_cache_file}.tmp
2050 touch ${wx_arg_cache_file}
2051
2052
2053DEBUG_CONFIGURE=0
2054if test $DEBUG_CONFIGURE = 1; then
2055 DEFAULT_wxUSE_UNIVERSAL=no
2056 DEFAULT_wxUSE_STL=no
2057
2058 DEFAULT_wxUSE_NANOX=no
2059
2060 DEFAULT_wxUSE_THREADS=yes
2061
2062 DEFAULT_wxUSE_SHARED=yes
2063 DEFAULT_wxUSE_OPTIMISE=no
2064 DEFAULT_wxUSE_PROFILE=no
2065 DEFAULT_wxUSE_NO_DEPS=no
2066 DEFAULT_wxUSE_NO_RTTI=no
2067 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2068 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2069 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2070 DEFAULT_wxUSE_PERMISSIVE=no
2071 DEFAULT_wxUSE_DEBUG_FLAG=yes
2072 DEFAULT_wxUSE_DEBUG_INFO=yes
2073 DEFAULT_wxUSE_DEBUG_GDB=yes
2074 DEFAULT_wxUSE_MEM_TRACING=no
2075 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2076 DEFAULT_wxUSE_DMALLOC=no
2077 DEFAULT_wxUSE_APPLE_IEEE=no
2078
2079 DEFAULT_wxUSE_EXCEPTIONS=no
2080 DEFAULT_wxUSE_LOG=yes
2081 DEFAULT_wxUSE_LOGWINDOW=no
2082 DEFAULT_wxUSE_LOGGUI=no
2083 DEFAULT_wxUSE_LOGDIALOG=no
2084
2085 DEFAULT_wxUSE_GUI=yes
2086 DEFAULT_wxUSE_CONTROLS=no
2087
2088 DEFAULT_wxUSE_REGEX=no
2089 DEFAULT_wxUSE_XML=no
2090 DEFAULT_wxUSE_EXPAT=no
2091 DEFAULT_wxUSE_ZLIB=no
2092 DEFAULT_wxUSE_LIBPNG=no
2093 DEFAULT_wxUSE_LIBJPEG=no
2094 DEFAULT_wxUSE_LIBTIFF=no
2095 DEFAULT_wxUSE_LIBXPM=no
2096 DEFAULT_wxUSE_LIBMSPACK=no
2097 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2098 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2099 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2100 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2101 DEFAULT_wxUSE_ODBC=no
2102 DEFAULT_wxUSE_OPENGL=no
2103
2104 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2105 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2106 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2107 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2108 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2109 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2110 DEFAULT_wxUSE_CMDLINE_PARSER=no
2111 DEFAULT_wxUSE_DATETIME=no
2112 DEFAULT_wxUSE_TIMER=no
2113 DEFAULT_wxUSE_STOPWATCH=no
2114 DEFAULT_wxUSE_FILE=no
2115 DEFAULT_wxUSE_FFILE=no
07158944 2116 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2117 DEFAULT_wxUSE_TEXTBUFFER=no
2118 DEFAULT_wxUSE_TEXTFILE=no
2119 DEFAULT_wxUSE_SOUND=no
3b57de8b 2120 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2121 DEFAULT_wxUSE_GSTREAMER8=no
8b6682b9 2122 DEFAULT_wxUSE_PRINTF_POS_PARAM=no
a848cd7e
SC
2123 DEFAULT_wxUSE_INTL=no
2124 DEFAULT_wxUSE_CONFIG=no
2125 DEFAULT_wxUSE_FONTMAP=no
2126 DEFAULT_wxUSE_STREAMS=no
2127 DEFAULT_wxUSE_SOCKETS=no
2128 DEFAULT_wxUSE_OLE=no
2129 DEFAULT_wxUSE_DATAOBJ=no
2130 DEFAULT_wxUSE_DIALUP_MANAGER=no
2131 DEFAULT_wxUSE_JOYSTICK=no
2132 DEFAULT_wxUSE_DYNLIB_CLASS=no
2133 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2134 DEFAULT_wxUSE_LONGLONG=no
2135 DEFAULT_wxUSE_GEOMETRY=no
2136
2137 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2138 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2139 DEFAULT_wxUSE_POSTSCRIPT=no
2140
2141 DEFAULT_wxUSE_CLIPBOARD=no
2142 DEFAULT_wxUSE_TOOLTIPS=no
2143 DEFAULT_wxUSE_DRAG_AND_DROP=no
2144 DEFAULT_wxUSE_DRAGIMAGE=no
2145 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2146 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2147
8a7b1113 2148 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2149 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2150 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2151 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2152
2153 DEFAULT_wxUSE_RESOURCES=no
2154 DEFAULT_wxUSE_CONSTRAINTS=no
2155 DEFAULT_wxUSE_IPC=no
2156 DEFAULT_wxUSE_HELP=no
2157 DEFAULT_wxUSE_MS_HTML_HELP=no
2158 DEFAULT_wxUSE_WXHTML_HELP=no
2159 DEFAULT_wxUSE_TREELAYOUT=no
2160 DEFAULT_wxUSE_METAFILE=no
2161 DEFAULT_wxUSE_MIMETYPE=no
2162 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2163 DEFAULT_wxUSE_PROTOCOL=no
2164 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2165 DEFAULT_wxUSE_PROTOCOL_FTP=no
2166 DEFAULT_wxUSE_PROTOCOL_FILE=no
2167 DEFAULT_wxUSE_URL=no
2168
2169 DEFAULT_wxUSE_COMMONDLGS=no
2170 DEFAULT_wxUSE_CHOICEDLG=no
2171 DEFAULT_wxUSE_COLOURDLG=no
2172 DEFAULT_wxUSE_DIRDLG=no
2173 DEFAULT_wxUSE_FILEDLG=no
2174 DEFAULT_wxUSE_FINDREPLDLG=no
2175 DEFAULT_wxUSE_FONTDLG=no
2176 DEFAULT_wxUSE_MSGDLG=no
2177 DEFAULT_wxUSE_NUMBERDLG=no
2178 DEFAULT_wxUSE_TEXTDLG=no
2179 DEFAULT_wxUSE_SPLASH=no
2180 DEFAULT_wxUSE_STARTUP_TIPS=no
2181 DEFAULT_wxUSE_PROGRESSDLG=no
2182 DEFAULT_wxUSE_WIZARDDLG=no
2183
2184 DEFAULT_wxUSE_MENUS=no
2185 DEFAULT_wxUSE_MINIFRAME=no
2186 DEFAULT_wxUSE_HTML=no
91dea314 2187 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2188 DEFAULT_wxUSE_XRC=no
3f60522a 2189 DEFAULT_wxUSE_AUI=no
646b6ec1 2190 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2191 DEFAULT_wxUSE_FILESYSTEM=no
2192 DEFAULT_wxUSE_FS_INET=no
2193 DEFAULT_wxUSE_FS_ZIP=no
2194 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2195 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2196 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2197 DEFAULT_wxUSE_VALIDATORS=no
2198
2199 DEFAULT_wxUSE_ACCEL=no
2200 DEFAULT_wxUSE_BUTTON=no
2201 DEFAULT_wxUSE_BMPBUTTON=no
2202 DEFAULT_wxUSE_CALCTRL=no
2203 DEFAULT_wxUSE_CARET=no
2204 DEFAULT_wxUSE_CHECKBOX=no
2205 DEFAULT_wxUSE_CHECKLST=no
2206 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2207 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684 2208 DEFAULT_wxUSE_COLOURPICKERCTRL=no
a848cd7e 2209 DEFAULT_wxUSE_COMBOBOX=no
a57d600f 2210 DEFAULT_wxUSE_COMBOCTRL=no
da98e9be 2211 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e 2212 DEFAULT_wxUSE_DISPLAY=no
e9263684
VZ
2213 DEFAULT_wxUSE_DIRPICKERCTRL=no
2214 DEFAULT_wxUSE_FILEPICKERCTRL=no
2215 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
2216 DEFAULT_wxUSE_GAUGE=no
2217 DEFAULT_wxUSE_GRID=no
6954625c 2218 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 2219 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2220 DEFAULT_wxUSE_IMAGLIST=no
2221 DEFAULT_wxUSE_LISTBOOK=no
2222 DEFAULT_wxUSE_LISTBOX=no
2223 DEFAULT_wxUSE_LISTCTRL=no
2224 DEFAULT_wxUSE_NOTEBOOK=no
a57d600f 2225 DEFAULT_wxUSE_ODCOMBOBOX=no
a848cd7e
SC
2226 DEFAULT_wxUSE_RADIOBOX=no
2227 DEFAULT_wxUSE_RADIOBTN=no
2228 DEFAULT_wxUSE_SASH=no
2229 DEFAULT_wxUSE_SCROLLBAR=no
2230 DEFAULT_wxUSE_SLIDER=no
2231 DEFAULT_wxUSE_SPINBTN=no
2232 DEFAULT_wxUSE_SPINCTRL=no
2233 DEFAULT_wxUSE_SPLITTER=no
2234 DEFAULT_wxUSE_STATBMP=no
2235 DEFAULT_wxUSE_STATBOX=no
2236 DEFAULT_wxUSE_STATLINE=no
2237 DEFAULT_wxUSE_STATTEXT=no
2238 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2239 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2240 DEFAULT_wxUSE_TEXTCTRL=no
2241 DEFAULT_wxUSE_TOGGLEBTN=no
2242 DEFAULT_wxUSE_TOOLBAR=no
2243 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2244 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
0093c2fc 2245 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 2246 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
2247 DEFAULT_wxUSE_TREECTRL=no
2248 DEFAULT_wxUSE_POPUPWIN=no
2249 DEFAULT_wxUSE_TIPWINDOW=no
2250
2251 DEFAULT_wxUSE_UNICODE=no
2252 DEFAULT_wxUSE_UNICODE_MSLU=no
2253 DEFAULT_wxUSE_WCSRTOMBS=no
2254
2255 DEFAULT_wxUSE_PALETTE=no
2256 DEFAULT_wxUSE_IMAGE=no
2257 DEFAULT_wxUSE_GIF=no
2258 DEFAULT_wxUSE_PCX=no
2259 DEFAULT_wxUSE_PNM=no
2260 DEFAULT_wxUSE_IFF=no
2261 DEFAULT_wxUSE_XPM=no
2262 DEFAULT_wxUSE_ICO_CUR=no
2263 DEFAULT_wxUSE_ACCESSIBILITY=no
2264
2265 DEFAULT_wxUSE_MONOLITHIC=no
2266 DEFAULT_wxUSE_PLUGINS=no
2267 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2268else
2269 DEFAULT_wxUSE_UNIVERSAL=no
2270 DEFAULT_wxUSE_STL=no
2271
2272 DEFAULT_wxUSE_NANOX=no
2273
2274 DEFAULT_wxUSE_THREADS=yes
2275
2276 DEFAULT_wxUSE_SHARED=yes
2277 DEFAULT_wxUSE_OPTIMISE=yes
2278 DEFAULT_wxUSE_PROFILE=no
2279 DEFAULT_wxUSE_NO_DEPS=no
2280 DEFAULT_wxUSE_NO_RTTI=no
2281 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2282 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2283 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2284 DEFAULT_wxUSE_PERMISSIVE=no
2285 DEFAULT_wxUSE_DEBUG_FLAG=no
2286 DEFAULT_wxUSE_DEBUG_INFO=no
2287 DEFAULT_wxUSE_DEBUG_GDB=no
2288 DEFAULT_wxUSE_MEM_TRACING=no
2289 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2290 DEFAULT_wxUSE_DMALLOC=no
2291 DEFAULT_wxUSE_APPLE_IEEE=yes
2292
2293 DEFAULT_wxUSE_EXCEPTIONS=yes
2294 DEFAULT_wxUSE_LOG=yes
2295 DEFAULT_wxUSE_LOGWINDOW=yes
2296 DEFAULT_wxUSE_LOGGUI=yes
2297 DEFAULT_wxUSE_LOGDIALOG=yes
2298
2299 DEFAULT_wxUSE_GUI=yes
2300
2301 DEFAULT_wxUSE_REGEX=yes
2302 DEFAULT_wxUSE_XML=yes
2303 DEFAULT_wxUSE_EXPAT=yes
2304 DEFAULT_wxUSE_ZLIB=yes
2305 DEFAULT_wxUSE_LIBPNG=yes
2306 DEFAULT_wxUSE_LIBJPEG=yes
2307 DEFAULT_wxUSE_LIBTIFF=yes
2308 DEFAULT_wxUSE_LIBXPM=yes
2309 DEFAULT_wxUSE_LIBMSPACK=yes
2310 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2311 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2312 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2313 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2314 DEFAULT_wxUSE_ODBC=no
52cb607e 2315 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2316
2317 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2318 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2319 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2320 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2321 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2322 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2323 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2324 DEFAULT_wxUSE_DATETIME=yes
2325 DEFAULT_wxUSE_TIMER=yes
2326 DEFAULT_wxUSE_STOPWATCH=yes
2327 DEFAULT_wxUSE_FILE=yes
2328 DEFAULT_wxUSE_FFILE=yes
07158944 2329 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2330 DEFAULT_wxUSE_TEXTBUFFER=yes
2331 DEFAULT_wxUSE_TEXTFILE=yes
2332 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2333 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2334 DEFAULT_wxUSE_GSTREAMER8=no
8b6682b9 2335 DEFAULT_wxUSE_PRINTF_POS_PARAM=yes
a848cd7e
SC
2336 DEFAULT_wxUSE_INTL=yes
2337 DEFAULT_wxUSE_CONFIG=yes
2338 DEFAULT_wxUSE_FONTMAP=yes
2339 DEFAULT_wxUSE_STREAMS=yes
2340 DEFAULT_wxUSE_SOCKETS=yes
2341 DEFAULT_wxUSE_OLE=yes
2342 DEFAULT_wxUSE_DATAOBJ=yes
2343 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2344 DEFAULT_wxUSE_JOYSTICK=yes
2345 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2346 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2347 DEFAULT_wxUSE_LONGLONG=yes
2348 DEFAULT_wxUSE_GEOMETRY=yes
2349
2350 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2351 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2352 DEFAULT_wxUSE_POSTSCRIPT=yes
2353
2354 DEFAULT_wxUSE_CLIPBOARD=yes
2355 DEFAULT_wxUSE_TOOLTIPS=yes
2356 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2357 DEFAULT_wxUSE_DRAGIMAGE=yes
2358 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2359 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2360
8a7b1113 2361 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2362 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2363 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2364 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2365
2366 DEFAULT_wxUSE_RESOURCES=no
2367 DEFAULT_wxUSE_CONSTRAINTS=yes
2368 DEFAULT_wxUSE_IPC=yes
2369 DEFAULT_wxUSE_HELP=yes
2370 DEFAULT_wxUSE_MS_HTML_HELP=yes
2371 DEFAULT_wxUSE_WXHTML_HELP=yes
2372 DEFAULT_wxUSE_TREELAYOUT=yes
2373 DEFAULT_wxUSE_METAFILE=yes
2374 DEFAULT_wxUSE_MIMETYPE=yes
2375 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2376 DEFAULT_wxUSE_PROTOCOL=yes
2377 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2378 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2379 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2380 DEFAULT_wxUSE_URL=yes
2381
2382 DEFAULT_wxUSE_COMMONDLGS=yes
2383 DEFAULT_wxUSE_CHOICEDLG=yes
2384 DEFAULT_wxUSE_COLOURDLG=yes
2385 DEFAULT_wxUSE_DIRDLG=yes
2386 DEFAULT_wxUSE_FILEDLG=yes
2387 DEFAULT_wxUSE_FINDREPLDLG=yes
2388 DEFAULT_wxUSE_FONTDLG=yes
2389 DEFAULT_wxUSE_MSGDLG=yes
2390 DEFAULT_wxUSE_NUMBERDLG=yes
2391 DEFAULT_wxUSE_TEXTDLG=yes
2392 DEFAULT_wxUSE_SPLASH=yes
2393 DEFAULT_wxUSE_STARTUP_TIPS=yes
2394 DEFAULT_wxUSE_PROGRESSDLG=yes
2395 DEFAULT_wxUSE_WIZARDDLG=yes
2396
2397 DEFAULT_wxUSE_MENUS=yes
2398 DEFAULT_wxUSE_MINIFRAME=yes
2399 DEFAULT_wxUSE_HTML=yes
91dea314 2400 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2401 DEFAULT_wxUSE_XRC=yes
3f60522a 2402 DEFAULT_wxUSE_AUI=yes
646b6ec1 2403 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2404 DEFAULT_wxUSE_FILESYSTEM=yes
2405 DEFAULT_wxUSE_FS_INET=yes
2406 DEFAULT_wxUSE_FS_ZIP=yes
2407 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2408 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2409 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2410 DEFAULT_wxUSE_VALIDATORS=yes
2411
2412 DEFAULT_wxUSE_ACCEL=yes
2413 DEFAULT_wxUSE_BUTTON=yes
2414 DEFAULT_wxUSE_BMPBUTTON=yes
2415 DEFAULT_wxUSE_CALCTRL=yes
2416 DEFAULT_wxUSE_CARET=yes
2417 DEFAULT_wxUSE_CHECKBOX=yes
2418 DEFAULT_wxUSE_CHECKLST=yes
2419 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2420 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684 2421 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
a848cd7e 2422 DEFAULT_wxUSE_COMBOBOX=yes
a57d600f 2423 DEFAULT_wxUSE_COMBOCTRL=yes
da98e9be 2424 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e 2425 DEFAULT_wxUSE_DISPLAY=yes
e9263684
VZ
2426 DEFAULT_wxUSE_DIRPICKERCTRL=yes
2427 DEFAULT_wxUSE_FILEPICKERCTRL=yes
2428 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
2429 DEFAULT_wxUSE_GAUGE=yes
2430 DEFAULT_wxUSE_GRID=yes
6954625c 2431 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 2432 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2433 DEFAULT_wxUSE_IMAGLIST=yes
2434 DEFAULT_wxUSE_LISTBOOK=yes
2435 DEFAULT_wxUSE_LISTBOX=yes
2436 DEFAULT_wxUSE_LISTCTRL=yes
2437 DEFAULT_wxUSE_NOTEBOOK=yes
a57d600f 2438 DEFAULT_wxUSE_ODCOMBOBOX=yes
a848cd7e
SC
2439 DEFAULT_wxUSE_RADIOBOX=yes
2440 DEFAULT_wxUSE_RADIOBTN=yes
2441 DEFAULT_wxUSE_SASH=yes
2442 DEFAULT_wxUSE_SCROLLBAR=yes
2443 DEFAULT_wxUSE_SLIDER=yes
2444 DEFAULT_wxUSE_SPINBTN=yes
2445 DEFAULT_wxUSE_SPINCTRL=yes
2446 DEFAULT_wxUSE_SPLITTER=yes
2447 DEFAULT_wxUSE_STATBMP=yes
2448 DEFAULT_wxUSE_STATBOX=yes
2449 DEFAULT_wxUSE_STATLINE=yes
2450 DEFAULT_wxUSE_STATTEXT=yes
2451 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2452 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2453 DEFAULT_wxUSE_TEXTCTRL=yes
2454 DEFAULT_wxUSE_TOGGLEBTN=yes
2455 DEFAULT_wxUSE_TOOLBAR=yes
2456 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2457 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
0093c2fc 2458 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 2459 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
2460 DEFAULT_wxUSE_TREECTRL=yes
2461 DEFAULT_wxUSE_POPUPWIN=yes
2462 DEFAULT_wxUSE_TIPWINDOW=yes
2463
78de529b 2464 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2465 DEFAULT_wxUSE_UNICODE_MSLU=yes
2466 DEFAULT_wxUSE_WCSRTOMBS=no
2467
2468 DEFAULT_wxUSE_PALETTE=yes
2469 DEFAULT_wxUSE_IMAGE=yes
2470 DEFAULT_wxUSE_GIF=yes
2471 DEFAULT_wxUSE_PCX=yes
2472 DEFAULT_wxUSE_IFF=no
2473 DEFAULT_wxUSE_PNM=yes
2474 DEFAULT_wxUSE_XPM=yes
2475 DEFAULT_wxUSE_ICO_CUR=yes
2476 DEFAULT_wxUSE_ACCESSIBILITY=no
2477
2478 DEFAULT_wxUSE_MONOLITHIC=no
2479 DEFAULT_wxUSE_PLUGINS=no
2480 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2481
f34ca037 2482 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2483fi
2484
2485
2486
f34ca037 2487
a848cd7e
SC
2488for toolkit in `echo $ALL_TOOLKITS`; do
2489 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2490 if test "x$LINE" != "x" ; then
2491 has_toolkit_in_cache=1
2492 eval "DEFAULT_$LINE"
2493 eval "CACHE_$toolkit=1"
f34ca037
MW
2494
2495 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2496 if test "x$LINE" != "x" ; then
2497 eval "DEFAULT_$LINE"
2498 fi
a848cd7e
SC
2499 fi
2500done
2501
2502
2503
2504 enablestring=
2505 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2506echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2507 no_cache=0
2508 # Check whether --enable-gui or --disable-gui was given.
2509if test "${enable_gui+set}" = set; then
2510 enableval="$enable_gui"
2511
2512 if test "$enableval" = yes; then
2513 ac_cv_use_gui='wxUSE_GUI=yes'
2514 else
2515 ac_cv_use_gui='wxUSE_GUI=no'
2516 fi
2517
2518else
2519
2520 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2521 if test "x$LINE" != x ; then
2522 eval "DEFAULT_$LINE"
2523 else
2524 no_cache=1
2525 fi
2526
2527 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2528
2529fi;
2530
2531 eval "$ac_cv_use_gui"
2532 if test "$no_cache" != 1; then
2533 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2534 fi
2535
2536 if test "$wxUSE_GUI" = yes; then
2537 echo "$as_me:$LINENO: result: yes" >&5
2538echo "${ECHO_T}yes" >&6
2539 else
2540 echo "$as_me:$LINENO: result: no" >&5
2541echo "${ECHO_T}no" >&6
2542 fi
2543
2544
2545 enablestring=
2546 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2547echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2548 no_cache=0
2549 # Check whether --enable-monolithic or --disable-monolithic was given.
2550if test "${enable_monolithic+set}" = set; then
2551 enableval="$enable_monolithic"
2552
2553 if test "$enableval" = yes; then
2554 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2555 else
2556 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2557 fi
2558
2559else
2560
2561 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2562 if test "x$LINE" != x ; then
2563 eval "DEFAULT_$LINE"
2564 else
2565 no_cache=1
2566 fi
2567
2568 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2569
2570fi;
2571
2572 eval "$ac_cv_use_monolithic"
2573 if test "$no_cache" != 1; then
2574 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2575 fi
2576
2577 if test "$wxUSE_MONOLITHIC" = yes; then
2578 echo "$as_me:$LINENO: result: yes" >&5
2579echo "${ECHO_T}yes" >&6
2580 else
2581 echo "$as_me:$LINENO: result: no" >&5
2582echo "${ECHO_T}no" >&6
2583 fi
2584
2585
2586 enablestring=
2587 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2588echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2589 no_cache=0
2590 # Check whether --enable-plugins or --disable-plugins was given.
2591if test "${enable_plugins+set}" = set; then
2592 enableval="$enable_plugins"
2593
2594 if test "$enableval" = yes; then
2595 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2596 else
2597 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2598 fi
2599
2600else
2601
2602 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2603 if test "x$LINE" != x ; then
2604 eval "DEFAULT_$LINE"
2605 else
2606 no_cache=1
2607 fi
2608
2609 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2610
2611fi;
2612
2613 eval "$ac_cv_use_plugins"
2614 if test "$no_cache" != 1; then
2615 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2616 fi
2617
2618 if test "$wxUSE_PLUGINS" = yes; then
2619 echo "$as_me:$LINENO: result: yes" >&5
2620echo "${ECHO_T}yes" >&6
2621 else
2622 echo "$as_me:$LINENO: result: no" >&5
2623echo "${ECHO_T}no" >&6
2624 fi
2625
2626
1c14217d
VZ
2627 withstring=without
2628 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2629echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2630 no_cache=0
2631
2632# Check whether --with-subdirs or --without-subdirs was given.
2633if test "${with_subdirs+set}" = set; then
2634 withval="$with_subdirs"
2635
2636 if test "$withval" = yes; then
2637 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2638 else
2639 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2640 fi
2641
2642else
2643
2644 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2645 if test "x$LINE" != x ; then
2646 eval "DEFAULT_$LINE"
2647 else
2648 no_cache=1
2649 fi
2650
2651 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2652
2653fi;
2654
2655 eval "$ac_cv_use_subdirs"
2656 if test "$no_cache" != 1; then
2657 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2658 fi
2659
2660 if test "$wxWITH_SUBDIRS" = yes; then
2661 echo "$as_me:$LINENO: result: yes" >&5
2662echo "${ECHO_T}yes" >&6
2663 else
2664 echo "$as_me:$LINENO: result: no" >&5
2665echo "${ECHO_T}no" >&6
2666 fi
2667
2668
a848cd7e
SC
2669if test "$wxUSE_GUI" = "yes"; then
2670
2671
2672 enablestring=
2673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2674echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2675 no_cache=0
2676 # Check whether --enable-universal or --disable-universal was given.
2677if test "${enable_universal+set}" = set; then
2678 enableval="$enable_universal"
2679
2680 if test "$enableval" = yes; then
2681 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2682 else
2683 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2684 fi
2685
2686else
2687
2688 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2689 if test "x$LINE" != x ; then
2690 eval "DEFAULT_$LINE"
2691 else
2692 no_cache=1
2693 fi
2694
2695 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2696
2697fi;
2698
2699 eval "$ac_cv_use_universal"
2700 if test "$no_cache" != 1; then
2701 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2702 fi
2703
2704 if test "$wxUSE_UNIVERSAL" = yes; then
2705 echo "$as_me:$LINENO: result: yes" >&5
2706echo "${ECHO_T}yes" >&6
2707 else
2708 echo "$as_me:$LINENO: result: no" >&5
2709echo "${ECHO_T}no" >&6
2710 fi
2711
2712
2713# Check whether --with-gtk or --without-gtk was given.
2714if test "${with_gtk+set}" = set; then
2715 withval="$with_gtk"
2716 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2717fi;
2718
2719# Check whether --with-motif or --without-motif was given.
2720if test "${with_motif+set}" = set; then
2721 withval="$with_motif"
2722 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2723fi;
2724
2725# Check whether --with-mac or --without-mac was given.
2726if test "${with_mac+set}" = set; then
2727 withval="$with_mac"
c228d3a4 2728 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2729fi;
2730
2731# Check whether --with-cocoa or --without-cocoa was given.
2732if test "${with_cocoa+set}" = set; then
2733 withval="$with_cocoa"
c228d3a4 2734 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2735fi;
2736
2737# Check whether --with-wine or --without-wine was given.
2738if test "${with_wine+set}" = set; then
2739 withval="$with_wine"
2740 wxUSE_WINE="$withval" CACHE_WINE=1
2741fi;
2742
2743# Check whether --with-msw or --without-msw was given.
2744if test "${with_msw+set}" = set; then
2745 withval="$with_msw"
2746 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2747fi;
2748
2749# Check whether --with-pm or --without-pm was given.
2750if test "${with_pm+set}" = set; then
2751 withval="$with_pm"
2752 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2753fi;
2754
2755# Check whether --with-mgl or --without-mgl was given.
2756if test "${with_mgl+set}" = set; then
2757 withval="$with_mgl"
2758 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2759fi;
2760
2761# Check whether --with-microwin or --without-microwin was given.
2762if test "${with_microwin+set}" = set; then
2763 withval="$with_microwin"
2764 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2765fi;
2766
2767# Check whether --with-x11 or --without-x11 was given.
2768if test "${with_x11+set}" = set; then
2769 withval="$with_x11"
2770 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2771fi;
2772
2773 enablestring=
2774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2775echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2776 no_cache=0
2777 # Check whether --enable-nanox or --disable-nanox was given.
2778if test "${enable_nanox+set}" = set; then
2779 enableval="$enable_nanox"
2780
2781 if test "$enableval" = yes; then
2782 ac_cv_use_nanox='wxUSE_NANOX=yes'
2783 else
2784 ac_cv_use_nanox='wxUSE_NANOX=no'
2785 fi
2786
2787else
2788
2789 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2790 if test "x$LINE" != x ; then
2791 eval "DEFAULT_$LINE"
2792 else
2793 no_cache=1
2794 fi
2795
2796 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2797
2798fi;
2799
2800 eval "$ac_cv_use_nanox"
2801 if test "$no_cache" != 1; then
2802 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2803 fi
2804
2805 if test "$wxUSE_NANOX" = yes; then
2806 echo "$as_me:$LINENO: result: yes" >&5
2807echo "${ECHO_T}yes" >&6
2808 else
2809 echo "$as_me:$LINENO: result: no" >&5
2810echo "${ECHO_T}no" >&6
2811 fi
2812
2813
f34ca037
MW
2814# Check whether --enable-gtk2 or --disable-gtk2 was given.
2815if test "${enable_gtk2+set}" = set; then
2816 enableval="$enable_gtk2"
2817 wxUSE_GTK2="$enableval"
2818fi;
a848cd7e 2819
a848cd7e
SC
2820 enablestring=
2821 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2822echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2823 no_cache=0
2824 # Check whether --enable-gpe or --disable-gpe was given.
2825if test "${enable_gpe+set}" = set; then
2826 enableval="$enable_gpe"
2827
2828 if test "$enableval" = yes; then
2829 ac_cv_use_gpe='wxUSE_GPE=yes'
2830 else
2831 ac_cv_use_gpe='wxUSE_GPE=no'
2832 fi
2833
2834else
2835
2836 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2837 if test "x$LINE" != x ; then
2838 eval "DEFAULT_$LINE"
2839 else
2840 no_cache=1
2841 fi
2842
2843 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2844
2845fi;
2846
2847 eval "$ac_cv_use_gpe"
2848 if test "$no_cache" != 1; then
2849 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2850 fi
2851
2852 if test "$wxUSE_GPE" = yes; then
2853 echo "$as_me:$LINENO: result: yes" >&5
2854echo "${ECHO_T}yes" >&6
2855 else
2856 echo "$as_me:$LINENO: result: no" >&5
2857echo "${ECHO_T}no" >&6
2858 fi
2859
2860
2861
2862 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2863echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2864 no_cache=0
2865
2866# Check whether --with-libpng or --without-libpng was given.
2867if test "${with_libpng+set}" = set; then
2868 withval="$with_libpng"
2869
2870 if test "$withval" = yes; then
2871 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2872 elif test "$withval" = no; then
2873 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2874 elif test "$withval" = sys; then
2875 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2876 elif test "$withval" = builtin; then
2877 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2878 else
2879 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2880echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2881 { (exit 1); exit 1; }; }
2882 fi
2883
2884else
2885
2886 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2887 if test "x$LINE" != x ; then
2888 eval "DEFAULT_$LINE"
2889 else
2890 no_cache=1
2891 fi
2892
2893 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2894
2895fi;
2896
2897 eval "$ac_cv_use_libpng"
2898 if test "$no_cache" != 1; then
2899 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2900 fi
2901
2902 if test "$wxUSE_LIBPNG" = yes; then
2903 echo "$as_me:$LINENO: result: yes" >&5
2904echo "${ECHO_T}yes" >&6
2905 elif test "$wxUSE_LIBPNG" = no; then
2906 echo "$as_me:$LINENO: result: no" >&5
2907echo "${ECHO_T}no" >&6
2908 elif test "$wxUSE_LIBPNG" = sys; then
2909 echo "$as_me:$LINENO: result: system version" >&5
2910echo "${ECHO_T}system version" >&6
2911 elif test "$wxUSE_LIBPNG" = builtin; then
2912 echo "$as_me:$LINENO: result: builtin version" >&5
2913echo "${ECHO_T}builtin version" >&6
2914 else
2915 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2916echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2917 { (exit 1); exit 1; }; }
2918 fi
2919
2920
2921 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2922echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2923 no_cache=0
2924
2925# Check whether --with-libjpeg or --without-libjpeg was given.
2926if test "${with_libjpeg+set}" = set; then
2927 withval="$with_libjpeg"
2928
2929 if test "$withval" = yes; then
2930 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2931 elif test "$withval" = no; then
2932 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2933 elif test "$withval" = sys; then
2934 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2935 elif test "$withval" = builtin; then
2936 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2937 else
2938 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2939echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2940 { (exit 1); exit 1; }; }
2941 fi
2942
2943else
2944
2945 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2946 if test "x$LINE" != x ; then
2947 eval "DEFAULT_$LINE"
2948 else
2949 no_cache=1
2950 fi
2951
2952 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2953
2954fi;
2955
2956 eval "$ac_cv_use_libjpeg"
2957 if test "$no_cache" != 1; then
2958 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2959 fi
2960
2961 if test "$wxUSE_LIBJPEG" = yes; then
2962 echo "$as_me:$LINENO: result: yes" >&5
2963echo "${ECHO_T}yes" >&6
2964 elif test "$wxUSE_LIBJPEG" = no; then
2965 echo "$as_me:$LINENO: result: no" >&5
2966echo "${ECHO_T}no" >&6
2967 elif test "$wxUSE_LIBJPEG" = sys; then
2968 echo "$as_me:$LINENO: result: system version" >&5
2969echo "${ECHO_T}system version" >&6
2970 elif test "$wxUSE_LIBJPEG" = builtin; then
2971 echo "$as_me:$LINENO: result: builtin version" >&5
2972echo "${ECHO_T}builtin version" >&6
2973 else
2974 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2975echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2976 { (exit 1); exit 1; }; }
2977 fi
2978
2979
2980 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2981echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2982 no_cache=0
2983
2984# Check whether --with-libtiff or --without-libtiff was given.
2985if test "${with_libtiff+set}" = set; then
2986 withval="$with_libtiff"
2987
2988 if test "$withval" = yes; then
2989 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2990 elif test "$withval" = no; then
2991 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2992 elif test "$withval" = sys; then
2993 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2994 elif test "$withval" = builtin; then
2995 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2996 else
2997 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2998echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2999 { (exit 1); exit 1; }; }
3000 fi
3001
3002else
3003
3004 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3005 if test "x$LINE" != x ; then
3006 eval "DEFAULT_$LINE"
3007 else
3008 no_cache=1
3009 fi
3010
3011 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3012
3013fi;
3014
3015 eval "$ac_cv_use_libtiff"
3016 if test "$no_cache" != 1; then
3017 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3018 fi
3019
3020 if test "$wxUSE_LIBTIFF" = yes; then
3021 echo "$as_me:$LINENO: result: yes" >&5
3022echo "${ECHO_T}yes" >&6
3023 elif test "$wxUSE_LIBTIFF" = no; then
3024 echo "$as_me:$LINENO: result: no" >&5
3025echo "${ECHO_T}no" >&6
3026 elif test "$wxUSE_LIBTIFF" = sys; then
3027 echo "$as_me:$LINENO: result: system version" >&5
3028echo "${ECHO_T}system version" >&6
3029 elif test "$wxUSE_LIBTIFF" = builtin; then
3030 echo "$as_me:$LINENO: result: builtin version" >&5
3031echo "${ECHO_T}builtin version" >&6
3032 else
3033 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3034echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3035 { (exit 1); exit 1; }; }
3036 fi
3037
3038
3039 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3040echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3041 no_cache=0
3042
3043# Check whether --with-libxpm or --without-libxpm was given.
3044if test "${with_libxpm+set}" = set; then
3045 withval="$with_libxpm"
3046
3047 if test "$withval" = yes; then
3048 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3049 elif test "$withval" = no; then
3050 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3051 elif test "$withval" = sys; then
3052 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3053 elif test "$withval" = builtin; then
3054 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3055 else
3056 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3057echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3058 { (exit 1); exit 1; }; }
3059 fi
3060
3061else
3062
3063 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3064 if test "x$LINE" != x ; then
3065 eval "DEFAULT_$LINE"
3066 else
3067 no_cache=1
3068 fi
3069
3070 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3071
3072fi;
3073
3074 eval "$ac_cv_use_libxpm"
3075 if test "$no_cache" != 1; then
3076 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3077 fi
3078
3079 if test "$wxUSE_LIBXPM" = yes; then
3080 echo "$as_me:$LINENO: result: yes" >&5
3081echo "${ECHO_T}yes" >&6
3082 elif test "$wxUSE_LIBXPM" = no; then
3083 echo "$as_me:$LINENO: result: no" >&5
3084echo "${ECHO_T}no" >&6
3085 elif test "$wxUSE_LIBXPM" = sys; then
3086 echo "$as_me:$LINENO: result: system version" >&5
3087echo "${ECHO_T}system version" >&6
3088 elif test "$wxUSE_LIBXPM" = builtin; then
3089 echo "$as_me:$LINENO: result: builtin version" >&5
3090echo "${ECHO_T}builtin version" >&6
3091 else
3092 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3093echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3094 { (exit 1); exit 1; }; }
3095 fi
3096
3097
1c14217d
VZ
3098 withstring=
3099 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3100echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3101 no_cache=0
3102
3103# Check whether --with-libmspack or --without-libmspack was given.
3104if test "${with_libmspack+set}" = set; then
3105 withval="$with_libmspack"
3106
3107 if test "$withval" = yes; then
3108 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3109 else
3110 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3111 fi
3112
3113else
3114
3115 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3116 if test "x$LINE" != x ; then
3117 eval "DEFAULT_$LINE"
3118 else
3119 no_cache=1
3120 fi
3121
3122 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3123
3124fi;
3125
3126 eval "$ac_cv_use_libmspack"
3127 if test "$no_cache" != 1; then
3128 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3129 fi
3130
3131 if test "$wxUSE_LIBMSPACK" = yes; then
3132 echo "$as_me:$LINENO: result: yes" >&5
3133echo "${ECHO_T}yes" >&6
3134 else
3135 echo "$as_me:$LINENO: result: no" >&5
3136echo "${ECHO_T}no" >&6
3137 fi
3138
3139
1c14217d
VZ
3140 withstring=
3141 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3142echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3143 no_cache=0
3144
3145# Check whether --with-sdl or --without-sdl was given.
3146if test "${with_sdl+set}" = set; then
3147 withval="$with_sdl"
3148
3149 if test "$withval" = yes; then
3150 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3151 else
3152 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3153 fi
3154
3155else
3156
3157 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3158 if test "x$LINE" != x ; then
3159 eval "DEFAULT_$LINE"
3160 else
3161 no_cache=1
3162 fi
3163
3164 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3165
3166fi;
3167
3168 eval "$ac_cv_use_sdl"
3169 if test "$no_cache" != 1; then
3170 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3171 fi
3172
3173 if test "$wxUSE_LIBSDL" = yes; then
3174 echo "$as_me:$LINENO: result: yes" >&5
3175echo "${ECHO_T}yes" >&6
3176 else
3177 echo "$as_me:$LINENO: result: no" >&5
3178echo "${ECHO_T}no" >&6
3179 fi
3180
3181
1c14217d
VZ
3182 withstring=
3183 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3184echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3185 no_cache=0
3186
3187# Check whether --with-gnomeprint or --without-gnomeprint was given.
3188if test "${with_gnomeprint+set}" = set; then
3189 withval="$with_gnomeprint"
3190
3191 if test "$withval" = yes; then
3192 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3193 else
3194 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3195 fi
3196
3197else
3198
3199 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3200 if test "x$LINE" != x ; then
3201 eval "DEFAULT_$LINE"
3202 else
3203 no_cache=1
3204 fi
3205
3206 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3207
3208fi;
3209
3210 eval "$ac_cv_use_gnomeprint"
3211 if test "$no_cache" != 1; then
3212 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3213 fi
3214
3215 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3216 echo "$as_me:$LINENO: result: yes" >&5
3217echo "${ECHO_T}yes" >&6
3218 else
3219 echo "$as_me:$LINENO: result: no" >&5
3220echo "${ECHO_T}no" >&6
3221 fi
3222
3223
2b850ae1
RR
3224 withstring=
3225 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3226echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3227 no_cache=0
3228
3229# Check whether --with-gnomevfs or --without-gnomevfs was given.
3230if test "${with_gnomevfs+set}" = set; then
3231 withval="$with_gnomevfs"
3232
3233 if test "$withval" = yes; then
3234 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3235 else
3236 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3237 fi
3238
3239else
3240
3241 LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3242 if test "x$LINE" != x ; then
3243 eval "DEFAULT_$LINE"
3244 else
3245 no_cache=1
3246 fi
3247
3248 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3249
3250fi;
3251
3252 eval "$ac_cv_use_gnomevfs"
3253 if test "$no_cache" != 1; then
3254 echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3255 fi
3256
3257 if test "$wxUSE_LIBGNOMEVFS" = yes; then
3258 echo "$as_me:$LINENO: result: yes" >&5
3259echo "${ECHO_T}yes" >&6
3260 else
3261 echo "$as_me:$LINENO: result: no" >&5
3262echo "${ECHO_T}no" >&6
3263 fi
3264
3265
3565d135
RR
3266 withstring=
3267 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3268echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3269 no_cache=0
3270
3271# Check whether --with-hildon or --without-hildon was given.
3272if test "${with_hildon+set}" = set; then
3273 withval="$with_hildon"
3274
3275 if test "$withval" = yes; then
3276 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3277 else
3278 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3279 fi
3280
3281else
3282
3283 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3284 if test "x$LINE" != x ; then
3285 eval "DEFAULT_$LINE"
3286 else
3287 no_cache=1
3288 fi
3289
3290 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3291
3292fi;
3293
3294 eval "$ac_cv_use_hildon"
3295 if test "$no_cache" != 1; then
3296 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3297 fi
3298
3299 if test "$wxUSE_LIBHILDON" = yes; then
3300 echo "$as_me:$LINENO: result: yes" >&5
3301echo "${ECHO_T}yes" >&6
3302 else
3303 echo "$as_me:$LINENO: result: no" >&5
3304echo "${ECHO_T}no" >&6
3305 fi
3306
3307
1c14217d
VZ
3308 withstring=
3309 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3310echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3311 no_cache=0
3312
3313# Check whether --with-opengl or --without-opengl was given.
3314if test "${with_opengl+set}" = set; then
3315 withval="$with_opengl"
3316
3317 if test "$withval" = yes; then
3318 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3319 else
3320 ac_cv_use_opengl='wxUSE_OPENGL=no'
3321 fi
3322
3323else
3324
3325 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3326 if test "x$LINE" != x ; then
3327 eval "DEFAULT_$LINE"
3328 else
3329 no_cache=1
3330 fi
3331
3332 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3333
3334fi;
3335
3336 eval "$ac_cv_use_opengl"
3337 if test "$no_cache" != 1; then
3338 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3339 fi
3340
3341 if test "$wxUSE_OPENGL" = yes; then
3342 echo "$as_me:$LINENO: result: yes" >&5
3343echo "${ECHO_T}yes" >&6
3344 else
3345 echo "$as_me:$LINENO: result: no" >&5
3346echo "${ECHO_T}no" >&6
3347 fi
3348
3349
3350fi
3351
3352
1c14217d
VZ
3353 withstring=
3354 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3355echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3356 no_cache=0
3357
3358# Check whether --with-dmalloc or --without-dmalloc was given.
3359if test "${with_dmalloc+set}" = set; then
3360 withval="$with_dmalloc"
3361
3362 if test "$withval" = yes; then
3363 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3364 else
3365 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3366 fi
3367
3368else
3369
3370 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3371 if test "x$LINE" != x ; then
3372 eval "DEFAULT_$LINE"
3373 else
3374 no_cache=1
3375 fi
3376
3377 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3378
3379fi;
3380
3381 eval "$ac_cv_use_dmalloc"
3382 if test "$no_cache" != 1; then
3383 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3384 fi
3385
3386 if test "$wxUSE_DMALLOC" = yes; then
3387 echo "$as_me:$LINENO: result: yes" >&5
3388echo "${ECHO_T}yes" >&6
3389 else
3390 echo "$as_me:$LINENO: result: no" >&5
3391echo "${ECHO_T}no" >&6
3392 fi
3393
3394
3395 echo "$as_me:$LINENO: checking for --with-regex" >&5
3396echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3397 no_cache=0
3398
3399# Check whether --with-regex or --without-regex was given.
3400if test "${with_regex+set}" = set; then
3401 withval="$with_regex"
3402
3403 if test "$withval" = yes; then
3404 ac_cv_use_regex='wxUSE_REGEX=yes'
3405 elif test "$withval" = no; then
3406 ac_cv_use_regex='wxUSE_REGEX=no'
3407 elif test "$withval" = sys; then
3408 ac_cv_use_regex='wxUSE_REGEX=sys'
3409 elif test "$withval" = builtin; then
3410 ac_cv_use_regex='wxUSE_REGEX=builtin'
3411 else
3412 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3413echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3414 { (exit 1); exit 1; }; }
3415 fi
3416
3417else
3418
3419 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3420 if test "x$LINE" != x ; then
3421 eval "DEFAULT_$LINE"
3422 else
3423 no_cache=1
3424 fi
3425
3426 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3427
3428fi;
3429
3430 eval "$ac_cv_use_regex"
3431 if test "$no_cache" != 1; then
3432 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3433 fi
3434
3435 if test "$wxUSE_REGEX" = yes; then
3436 echo "$as_me:$LINENO: result: yes" >&5
3437echo "${ECHO_T}yes" >&6
3438 elif test "$wxUSE_REGEX" = no; then
3439 echo "$as_me:$LINENO: result: no" >&5
3440echo "${ECHO_T}no" >&6
3441 elif test "$wxUSE_REGEX" = sys; then
3442 echo "$as_me:$LINENO: result: system version" >&5
3443echo "${ECHO_T}system version" >&6
3444 elif test "$wxUSE_REGEX" = builtin; then
3445 echo "$as_me:$LINENO: result: builtin version" >&5
3446echo "${ECHO_T}builtin version" >&6
3447 else
3448 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3449echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3450 { (exit 1); exit 1; }; }
3451 fi
3452
3453
3454 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3455echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3456 no_cache=0
3457
3458# Check whether --with-zlib or --without-zlib was given.
3459if test "${with_zlib+set}" = set; then
3460 withval="$with_zlib"
3461
3462 if test "$withval" = yes; then
3463 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3464 elif test "$withval" = no; then
3465 ac_cv_use_zlib='wxUSE_ZLIB=no'
3466 elif test "$withval" = sys; then
3467 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3468 elif test "$withval" = builtin; then
3469 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3470 else
3471 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3472echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3473 { (exit 1); exit 1; }; }
3474 fi
3475
3476else
3477
3478 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3479 if test "x$LINE" != x ; then
3480 eval "DEFAULT_$LINE"
3481 else
3482 no_cache=1
3483 fi
3484
3485 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3486
3487fi;
3488
3489 eval "$ac_cv_use_zlib"
3490 if test "$no_cache" != 1; then
3491 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3492 fi
3493
3494 if test "$wxUSE_ZLIB" = yes; then
3495 echo "$as_me:$LINENO: result: yes" >&5
3496echo "${ECHO_T}yes" >&6
3497 elif test "$wxUSE_ZLIB" = no; then
3498 echo "$as_me:$LINENO: result: no" >&5
3499echo "${ECHO_T}no" >&6
3500 elif test "$wxUSE_ZLIB" = sys; then
3501 echo "$as_me:$LINENO: result: system version" >&5
3502echo "${ECHO_T}system version" >&6
3503 elif test "$wxUSE_ZLIB" = builtin; then
3504 echo "$as_me:$LINENO: result: builtin version" >&5
3505echo "${ECHO_T}builtin version" >&6
3506 else
3507 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3508echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3509 { (exit 1); exit 1; }; }
3510 fi
3511
3512
3513 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3514echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3515 no_cache=0
3516
3517# Check whether --with-odbc or --without-odbc was given.
3518if test "${with_odbc+set}" = set; then
3519 withval="$with_odbc"
3520
3521 if test "$withval" = yes; then
3522 ac_cv_use_odbc='wxUSE_ODBC=yes'
3523 elif test "$withval" = no; then
3524 ac_cv_use_odbc='wxUSE_ODBC=no'
3525 elif test "$withval" = sys; then
3526 ac_cv_use_odbc='wxUSE_ODBC=sys'
3527 elif test "$withval" = builtin; then
3528 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3529 else
3530 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3531echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3532 { (exit 1); exit 1; }; }
3533 fi
3534
3535else
3536
3537 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3538 if test "x$LINE" != x ; then
3539 eval "DEFAULT_$LINE"
3540 else
3541 no_cache=1
3542 fi
3543
3544 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3545
3546fi;
3547
3548 eval "$ac_cv_use_odbc"
3549 if test "$no_cache" != 1; then
3550 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3551 fi
3552
3553 if test "$wxUSE_ODBC" = yes; then
3554 echo "$as_me:$LINENO: result: yes" >&5
3555echo "${ECHO_T}yes" >&6
3556 elif test "$wxUSE_ODBC" = no; then
3557 echo "$as_me:$LINENO: result: no" >&5
3558echo "${ECHO_T}no" >&6
3559 elif test "$wxUSE_ODBC" = sys; then
3560 echo "$as_me:$LINENO: result: system version" >&5
3561echo "${ECHO_T}system version" >&6
3562 elif test "$wxUSE_ODBC" = builtin; then
3563 echo "$as_me:$LINENO: result: builtin version" >&5
3564echo "${ECHO_T}builtin version" >&6
3565 else
3566 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3567echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3568 { (exit 1); exit 1; }; }
3569 fi
3570
3571
3572 echo "$as_me:$LINENO: checking for --with-expat" >&5
3573echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3574 no_cache=0
3575
3576# Check whether --with-expat or --without-expat was given.
3577if test "${with_expat+set}" = set; then
3578 withval="$with_expat"
3579
3580 if test "$withval" = yes; then
3581 ac_cv_use_expat='wxUSE_EXPAT=yes'
3582 elif test "$withval" = no; then
3583 ac_cv_use_expat='wxUSE_EXPAT=no'
3584 elif test "$withval" = sys; then
3585 ac_cv_use_expat='wxUSE_EXPAT=sys'
3586 elif test "$withval" = builtin; then
3587 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3588 else
3589 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3590echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3591 { (exit 1); exit 1; }; }
3592 fi
3593
3594else
3595
3596 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3597 if test "x$LINE" != x ; then
3598 eval "DEFAULT_$LINE"
3599 else
3600 no_cache=1
3601 fi
3602
3603 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3604
3605fi;
3606
3607 eval "$ac_cv_use_expat"
3608 if test "$no_cache" != 1; then
3609 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3610 fi
3611
3612 if test "$wxUSE_EXPAT" = yes; then
3613 echo "$as_me:$LINENO: result: yes" >&5
3614echo "${ECHO_T}yes" >&6
3615 elif test "$wxUSE_EXPAT" = no; then
3616 echo "$as_me:$LINENO: result: no" >&5
3617echo "${ECHO_T}no" >&6
3618 elif test "$wxUSE_EXPAT" = sys; then
3619 echo "$as_me:$LINENO: result: system version" >&5
3620echo "${ECHO_T}system version" >&6
3621 elif test "$wxUSE_EXPAT" = builtin; then
3622 echo "$as_me:$LINENO: result: builtin version" >&5
3623echo "${ECHO_T}builtin version" >&6
3624 else
3625 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3626echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3627 { (exit 1); exit 1; }; }
3628 fi
3629
3630
3631
3632
3633 enablestring=
3634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3635echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3636 no_cache=0
3637 # Check whether --enable-shared or --disable-shared was given.
3638if test "${enable_shared+set}" = set; then
3639 enableval="$enable_shared"
3640
3641 if test "$enableval" = yes; then
3642 ac_cv_use_shared='wxUSE_SHARED=yes'
3643 else
3644 ac_cv_use_shared='wxUSE_SHARED=no'
3645 fi
3646
3647else
3648
3649 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3650 if test "x$LINE" != x ; then
3651 eval "DEFAULT_$LINE"
3652 else
3653 no_cache=1
3654 fi
3655
3656 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3657
3658fi;
3659
3660 eval "$ac_cv_use_shared"
3661 if test "$no_cache" != 1; then
3662 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3663 fi
3664
3665 if test "$wxUSE_SHARED" = yes; then
3666 echo "$as_me:$LINENO: result: yes" >&5
3667echo "${ECHO_T}yes" >&6
3668 else
3669 echo "$as_me:$LINENO: result: no" >&5
3670echo "${ECHO_T}no" >&6
3671 fi
3672
3673
3674 enablestring=
3675 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3676echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3677 no_cache=0
3678 # Check whether --enable-optimise or --disable-optimise was given.
3679if test "${enable_optimise+set}" = set; then
3680 enableval="$enable_optimise"
3681
3682 if test "$enableval" = yes; then
3683 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3684 else
3685 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3686 fi
3687
3688else
3689
3690 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3691 if test "x$LINE" != x ; then
3692 eval "DEFAULT_$LINE"
3693 else
3694 no_cache=1
3695 fi
3696
3697 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3698
3699fi;
3700
3701 eval "$ac_cv_use_optimise"
3702 if test "$no_cache" != 1; then
3703 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3704 fi
3705
3706 if test "$wxUSE_OPTIMISE" = yes; then
3707 echo "$as_me:$LINENO: result: yes" >&5
3708echo "${ECHO_T}yes" >&6
3709 else
3710 echo "$as_me:$LINENO: result: no" >&5
3711echo "${ECHO_T}no" >&6
3712 fi
3713
3714
3715 enablestring=
3716 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3717echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3718 no_cache=0
3719 # Check whether --enable-debug or --disable-debug was given.
3720if test "${enable_debug+set}" = set; then
3721 enableval="$enable_debug"
3722
3723 if test "$enableval" = yes; then
3724 ac_cv_use_debug='wxUSE_DEBUG=yes'
3725 else
3726 ac_cv_use_debug='wxUSE_DEBUG=no'
3727 fi
3728
3729else
3730
3731 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3732 if test "x$LINE" != x ; then
3733 eval "DEFAULT_$LINE"
3734 else
3735 no_cache=1
3736 fi
3737
3738 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3739
3740fi;
3741
3742 eval "$ac_cv_use_debug"
3743 if test "$no_cache" != 1; then
3744 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3745 fi
3746
3747 if test "$wxUSE_DEBUG" = yes; then
3748 echo "$as_me:$LINENO: result: yes" >&5
3749echo "${ECHO_T}yes" >&6
3750 else
3751 echo "$as_me:$LINENO: result: no" >&5
3752echo "${ECHO_T}no" >&6
3753 fi
3754
3755
3756 enablestring=
3757 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3758echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3759 no_cache=0
3760 # Check whether --enable-stl or --disable-stl was given.
3761if test "${enable_stl+set}" = set; then
3762 enableval="$enable_stl"
3763
3764 if test "$enableval" = yes; then
3765 ac_cv_use_stl='wxUSE_STL=yes'
3766 else
3767 ac_cv_use_stl='wxUSE_STL=no'
3768 fi
3769
3770else
3771
3772 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3773 if test "x$LINE" != x ; then
3774 eval "DEFAULT_$LINE"
3775 else
3776 no_cache=1
3777 fi
3778
3779 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3780
3781fi;
3782
3783 eval "$ac_cv_use_stl"
3784 if test "$no_cache" != 1; then
3785 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3786 fi
3787
3788 if test "$wxUSE_STL" = yes; then
3789 echo "$as_me:$LINENO: result: yes" >&5
3790echo "${ECHO_T}yes" >&6
3791 else
3792 echo "$as_me:$LINENO: result: no" >&5
3793echo "${ECHO_T}no" >&6
3794 fi
3795
3796if test "$USE_OS2" = "1"; then
69120ee4 3797 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3798
3799 enablestring=
3800 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3801echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3802 no_cache=0
3803 # Check whether --enable-omf or --disable-omf was given.
3804if test "${enable_omf+set}" = set; then
3805 enableval="$enable_omf"
3806
3807 if test "$enableval" = yes; then
3808 ac_cv_use_omf='wxUSE_OMF=yes'
3809 else
3810 ac_cv_use_omf='wxUSE_OMF=no'
3811 fi
3812
3813else
3814
3815 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3816 if test "x$LINE" != x ; then
3817 eval "DEFAULT_$LINE"
3818 else
3819 no_cache=1
3820 fi
3821
3822 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3823
3824fi;
3825
3826 eval "$ac_cv_use_omf"
3827 if test "$no_cache" != 1; then
3828 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3829 fi
3830
3831 if test "$wxUSE_OMF" = yes; then
3832 echo "$as_me:$LINENO: result: yes" >&5
3833echo "${ECHO_T}yes" >&6
3834 else
3835 echo "$as_me:$LINENO: result: no" >&5
3836echo "${ECHO_T}no" >&6
3837 fi
3838
3839fi
3840
3841if test "$wxUSE_DEBUG" = "yes"; then
3842 DEFAULT_wxUSE_DEBUG_FLAG=yes
3843 DEFAULT_wxUSE_DEBUG_INFO=yes
3844 BUILD=debug
3845elif test "$wxUSE_DEBUG" = "no"; then
3846 DEFAULT_wxUSE_DEBUG_FLAG=no
3847 DEFAULT_wxUSE_DEBUG_INFO=no
3848 BUILD=release
3849fi
3850
3851
3852 enablestring=
3853 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3854echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3855 no_cache=0
3856 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3857if test "${enable_debug_flag+set}" = set; then
3858 enableval="$enable_debug_flag"
3859
3860 if test "$enableval" = yes; then
3861 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3862 else
3863 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3864 fi
3865
3866else
3867
3868 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3869 if test "x$LINE" != x ; then
3870 eval "DEFAULT_$LINE"
3871 else
3872 no_cache=1
3873 fi
3874
3875 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3876
3877fi;
3878
3879 eval "$ac_cv_use_debug_flag"
3880 if test "$no_cache" != 1; then
3881 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3882 fi
3883
3884 if test "$wxUSE_DEBUG_FLAG" = yes; then
3885 echo "$as_me:$LINENO: result: yes" >&5
3886echo "${ECHO_T}yes" >&6
3887 else
3888 echo "$as_me:$LINENO: result: no" >&5
3889echo "${ECHO_T}no" >&6
3890 fi
3891
3892
3893 enablestring=
3894 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3895echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3896 no_cache=0
3897 # Check whether --enable-debug_info or --disable-debug_info was given.
3898if test "${enable_debug_info+set}" = set; then
3899 enableval="$enable_debug_info"
3900
3901 if test "$enableval" = yes; then
3902 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3903 else
3904 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3905 fi
3906
3907else
3908
3909 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3910 if test "x$LINE" != x ; then
3911 eval "DEFAULT_$LINE"
3912 else
3913 no_cache=1
3914 fi
3915
3916 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3917
3918fi;
3919
3920 eval "$ac_cv_use_debug_info"
3921 if test "$no_cache" != 1; then
3922 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3923 fi
3924
3925 if test "$wxUSE_DEBUG_INFO" = yes; then
3926 echo "$as_me:$LINENO: result: yes" >&5
3927echo "${ECHO_T}yes" >&6
3928 else
3929 echo "$as_me:$LINENO: result: no" >&5
3930echo "${ECHO_T}no" >&6
3931 fi
3932
3933
3934 enablestring=
3935 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3936echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3937 no_cache=0
3938 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3939if test "${enable_debug_gdb+set}" = set; then
3940 enableval="$enable_debug_gdb"
3941
3942 if test "$enableval" = yes; then
3943 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3944 else
3945 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3946 fi
3947
3948else
3949
3950 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3951 if test "x$LINE" != x ; then
3952 eval "DEFAULT_$LINE"
3953 else
3954 no_cache=1
3955 fi
3956
3957 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3958
3959fi;
3960
3961 eval "$ac_cv_use_debug_gdb"
3962 if test "$no_cache" != 1; then
3963 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3964 fi
3965
3966 if test "$wxUSE_DEBUG_GDB" = yes; then
3967 echo "$as_me:$LINENO: result: yes" >&5
3968echo "${ECHO_T}yes" >&6
3969 else
3970 echo "$as_me:$LINENO: result: no" >&5
3971echo "${ECHO_T}no" >&6
3972 fi
3973
3974
3975 enablestring=
3976 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3977echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3978 no_cache=0
3979 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3980if test "${enable_debug_cntxt+set}" = set; then
3981 enableval="$enable_debug_cntxt"
3982
3983 if test "$enableval" = yes; then
3984 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3985 else
3986 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3987 fi
3988
3989else
3990
3991 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3992 if test "x$LINE" != x ; then
3993 eval "DEFAULT_$LINE"
3994 else
3995 no_cache=1
3996 fi
3997
3998 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3999
4000fi;
4001
4002 eval "$ac_cv_use_debug_cntxt"
4003 if test "$no_cache" != 1; then
4004 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4005 fi
4006
4007 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4008 echo "$as_me:$LINENO: result: yes" >&5
4009echo "${ECHO_T}yes" >&6
4010 else
4011 echo "$as_me:$LINENO: result: no" >&5
4012echo "${ECHO_T}no" >&6
4013 fi
4014
4015
4016 enablestring=
4017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4018echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4019 no_cache=0
4020 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4021if test "${enable_mem_tracing+set}" = set; then
4022 enableval="$enable_mem_tracing"
4023
4024 if test "$enableval" = yes; then
4025 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4026 else
4027 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4028 fi
4029
4030else
4031
4032 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4033 if test "x$LINE" != x ; then
4034 eval "DEFAULT_$LINE"
4035 else
4036 no_cache=1
4037 fi
4038
4039 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4040
4041fi;
4042
4043 eval "$ac_cv_use_mem_tracing"
4044 if test "$no_cache" != 1; then
4045 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4046 fi
4047
4048 if test "$wxUSE_MEM_TRACING" = yes; then
4049 echo "$as_me:$LINENO: result: yes" >&5
4050echo "${ECHO_T}yes" >&6
4051 else
4052 echo "$as_me:$LINENO: result: no" >&5
4053echo "${ECHO_T}no" >&6
4054 fi
4055
4056
4057 enablestring=
4058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4059echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4060 no_cache=0
4061 # Check whether --enable-profile or --disable-profile was given.
4062if test "${enable_profile+set}" = set; then
4063 enableval="$enable_profile"
4064
4065 if test "$enableval" = yes; then
4066 ac_cv_use_profile='wxUSE_PROFILE=yes'
4067 else
4068 ac_cv_use_profile='wxUSE_PROFILE=no'
4069 fi
4070
4071else
4072
4073 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4074 if test "x$LINE" != x ; then
4075 eval "DEFAULT_$LINE"
4076 else
4077 no_cache=1
4078 fi
4079
4080 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4081
4082fi;
4083
4084 eval "$ac_cv_use_profile"
4085 if test "$no_cache" != 1; then
4086 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4087 fi
4088
4089 if test "$wxUSE_PROFILE" = yes; then
4090 echo "$as_me:$LINENO: result: yes" >&5
4091echo "${ECHO_T}yes" >&6
4092 else
4093 echo "$as_me:$LINENO: result: no" >&5
4094echo "${ECHO_T}no" >&6
4095 fi
4096
4097
4098 enablestring=
4099 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4100echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4101 no_cache=0
4102 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4103if test "${enable_no_rtti+set}" = set; then
4104 enableval="$enable_no_rtti"
4105
4106 if test "$enableval" = yes; then
4107 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4108 else
4109 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4110 fi
4111
4112else
4113
4114 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4115 if test "x$LINE" != x ; then
4116 eval "DEFAULT_$LINE"
4117 else
4118 no_cache=1
4119 fi
4120
4121 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4122
4123fi;
4124
4125 eval "$ac_cv_use_no_rtti"
4126 if test "$no_cache" != 1; then
4127 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4128 fi
4129
4130 if test "$wxUSE_NO_RTTI" = yes; then
4131 echo "$as_me:$LINENO: result: yes" >&5
4132echo "${ECHO_T}yes" >&6
4133 else
4134 echo "$as_me:$LINENO: result: no" >&5
4135echo "${ECHO_T}no" >&6
4136 fi
4137
4138
4139 enablestring=
4140 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4141echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4142 no_cache=0
4143 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4144if test "${enable_no_exceptions+set}" = set; then
4145 enableval="$enable_no_exceptions"
4146
4147 if test "$enableval" = yes; then
4148 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4149 else
4150 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4151 fi
4152
4153else
4154
4155 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4156 if test "x$LINE" != x ; then
4157 eval "DEFAULT_$LINE"
4158 else
4159 no_cache=1
4160 fi
4161
4162 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4163
4164fi;
4165
4166 eval "$ac_cv_use_no_exceptions"
4167 if test "$no_cache" != 1; then
4168 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4169 fi
4170
4171 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4172 echo "$as_me:$LINENO: result: yes" >&5
4173echo "${ECHO_T}yes" >&6
4174 else
4175 echo "$as_me:$LINENO: result: no" >&5
4176echo "${ECHO_T}no" >&6
4177 fi
4178
4179
4180 enablestring=
4181 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4182echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4183 no_cache=0
4184 # Check whether --enable-permissive or --disable-permissive was given.
4185if test "${enable_permissive+set}" = set; then
4186 enableval="$enable_permissive"
4187
4188 if test "$enableval" = yes; then
4189 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4190 else
4191 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4192 fi
4193
4194else
4195
4196 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4197 if test "x$LINE" != x ; then
4198 eval "DEFAULT_$LINE"
4199 else
4200 no_cache=1
4201 fi
4202
4203 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4204
4205fi;
4206
4207 eval "$ac_cv_use_permissive"
4208 if test "$no_cache" != 1; then
4209 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4210 fi
4211
4212 if test "$wxUSE_PERMISSIVE" = yes; then
4213 echo "$as_me:$LINENO: result: yes" >&5
4214echo "${ECHO_T}yes" >&6
4215 else
4216 echo "$as_me:$LINENO: result: no" >&5
4217echo "${ECHO_T}no" >&6
4218 fi
4219
4220
4221 enablestring=
4222 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4223echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4224 no_cache=0
4225 # Check whether --enable-no_deps or --disable-no_deps was given.
4226if test "${enable_no_deps+set}" = set; then
4227 enableval="$enable_no_deps"
4228
4229 if test "$enableval" = yes; then
4230 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4231 else
4232 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4233 fi
4234
4235else
4236
4237 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4238 if test "x$LINE" != x ; then
4239 eval "DEFAULT_$LINE"
4240 else
4241 no_cache=1
4242 fi
4243
4244 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4245
4246fi;
4247
4248 eval "$ac_cv_use_no_deps"
4249 if test "$no_cache" != 1; then
4250 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4251 fi
4252
4253 if test "$wxUSE_NO_DEPS" = yes; then
4254 echo "$as_me:$LINENO: result: yes" >&5
4255echo "${ECHO_T}yes" >&6
4256 else
4257 echo "$as_me:$LINENO: result: no" >&5
4258echo "${ECHO_T}no" >&6
4259 fi
4260
4261
7afc46ab
KO
4262 enablestring=
4263 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4264echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4265 no_cache=0
4266 # Check whether --enable-universal_binary or --disable-universal_binary was given.
4267if test "${enable_universal_binary+set}" = set; then
4268 enableval="$enable_universal_binary"
4269
4270 if test "$enableval" = yes; then
4271 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=yes'
4272 else
4273 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=no'
4274 fi
4275
4276else
4277
4278 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4279 if test "x$LINE" != x ; then
4280 eval "DEFAULT_$LINE"
4281 else
4282 no_cache=1
4283 fi
4284
4285 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
4286
4287fi;
4288
4289 eval "$ac_cv_use_universal_binary"
4290 if test "$no_cache" != 1; then
4291 echo $ac_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
4292 fi
4293
4294 if test "$wxUSE_UNIVERSAL_BINARY" = yes; then
4295 echo "$as_me:$LINENO: result: yes" >&5
4296echo "${ECHO_T}yes" >&6
4297 else
4298 echo "$as_me:$LINENO: result: no" >&5
4299echo "${ECHO_T}no" >&6
4300 fi
4301
4302
a848cd7e 4303
dee1a63f
MB
4304 enablestring=enable
4305 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4306echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4307 no_cache=0
dee1a63f
MB
4308 # Check whether --enable-compat24 or --disable-compat24 was given.
4309if test "${enable_compat24+set}" = set; then
4310 enableval="$enable_compat24"
a848cd7e
SC
4311
4312 if test "$enableval" = yes; then
dee1a63f 4313 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4314 else
dee1a63f 4315 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4316 fi
4317
4318else
4319
dee1a63f 4320 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4321 if test "x$LINE" != x ; then
4322 eval "DEFAULT_$LINE"
4323 else
4324 no_cache=1
4325 fi
4326
dee1a63f 4327 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4328
4329fi;
4330
dee1a63f 4331 eval "$ac_cv_use_compat24"
a848cd7e 4332 if test "$no_cache" != 1; then
dee1a63f 4333 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4334 fi
4335
dee1a63f 4336 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4337 echo "$as_me:$LINENO: result: yes" >&5
4338echo "${ECHO_T}yes" >&6
4339 else
4340 echo "$as_me:$LINENO: result: no" >&5
4341echo "${ECHO_T}no" >&6
4342 fi
4343
4344
4345 enablestring=disable
dee1a63f
MB
4346 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4347echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4348 no_cache=0
dee1a63f
MB
4349 # Check whether --enable-compat26 or --disable-compat26 was given.
4350if test "${enable_compat26+set}" = set; then
4351 enableval="$enable_compat26"
a848cd7e
SC
4352
4353 if test "$enableval" = yes; then
dee1a63f 4354 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4355 else
dee1a63f 4356 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4357 fi
4358
4359else
4360
dee1a63f 4361 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4362 if test "x$LINE" != x ; then
4363 eval "DEFAULT_$LINE"
4364 else
4365 no_cache=1
4366 fi
4367
dee1a63f 4368 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4369
4370fi;
4371
dee1a63f 4372 eval "$ac_cv_use_compat26"
a848cd7e 4373 if test "$no_cache" != 1; then
dee1a63f 4374 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4375 fi
4376
dee1a63f 4377 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4378 echo "$as_me:$LINENO: result: yes" >&5
4379echo "${ECHO_T}yes" >&6
4380 else
4381 echo "$as_me:$LINENO: result: no" >&5
4382echo "${ECHO_T}no" >&6
4383 fi
4384
4385
ffa0583f
RL
4386
4387 enablestring=
4388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4389echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4390 no_cache=0
4391 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4392if test "${enable_rpath+set}" = set; then
4393 enableval="$enable_rpath"
ffa0583f
RL
4394
4395 if test "$enableval" = yes; then
4396 ac_cv_use_rpath='wxUSE_RPATH=yes'
4397 else
4398 ac_cv_use_rpath='wxUSE_RPATH=no'
4399 fi
4400
4401else
4402
4403 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4404 if test "x$LINE" != x ; then
4405 eval "DEFAULT_$LINE"
4406 else
4407 no_cache=1
4408 fi
4409
4410 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4411
a848cd7e
SC
4412fi;
4413
ffa0583f
RL
4414 eval "$ac_cv_use_rpath"
4415 if test "$no_cache" != 1; then
4416 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4417 fi
4418
4419 if test "$wxUSE_RPATH" = yes; then
4420 echo "$as_me:$LINENO: result: yes" >&5
4421echo "${ECHO_T}yes" >&6
4422 else
4423 echo "$as_me:$LINENO: result: no" >&5
4424echo "${ECHO_T}no" >&6
4425 fi
4426
a848cd7e
SC
4427
4428
4429
4430
4431 enablestring=
4432 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4433echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4434 no_cache=0
4435 # Check whether --enable-intl or --disable-intl was given.
4436if test "${enable_intl+set}" = set; then
4437 enableval="$enable_intl"
4438
4439 if test "$enableval" = yes; then
4440 ac_cv_use_intl='wxUSE_INTL=yes'
4441 else
4442 ac_cv_use_intl='wxUSE_INTL=no'
4443 fi
4444
4445else
4446
4447 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4448 if test "x$LINE" != x ; then
4449 eval "DEFAULT_$LINE"
4450 else
4451 no_cache=1
4452 fi
4453
4454 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4455
4456fi;
4457
4458 eval "$ac_cv_use_intl"
4459 if test "$no_cache" != 1; then
4460 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4461 fi
4462
4463 if test "$wxUSE_INTL" = yes; then
4464 echo "$as_me:$LINENO: result: yes" >&5
4465echo "${ECHO_T}yes" >&6
4466 else
4467 echo "$as_me:$LINENO: result: no" >&5
4468echo "${ECHO_T}no" >&6
4469 fi
4470
4471
4472 enablestring=
4473 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4474echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4475 no_cache=0
4476 # Check whether --enable-config or --disable-config was given.
4477if test "${enable_config+set}" = set; then
4478 enableval="$enable_config"
4479
4480 if test "$enableval" = yes; then
4481 ac_cv_use_config='wxUSE_CONFIG=yes'
4482 else
4483 ac_cv_use_config='wxUSE_CONFIG=no'
4484 fi
4485
4486else
4487
4488 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4489 if test "x$LINE" != x ; then
4490 eval "DEFAULT_$LINE"
4491 else
4492 no_cache=1
4493 fi
4494
4495 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4496
4497fi;
4498
4499 eval "$ac_cv_use_config"
4500 if test "$no_cache" != 1; then
4501 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4502 fi
4503
4504 if test "$wxUSE_CONFIG" = yes; then
4505 echo "$as_me:$LINENO: result: yes" >&5
4506echo "${ECHO_T}yes" >&6
4507 else
4508 echo "$as_me:$LINENO: result: no" >&5
4509echo "${ECHO_T}no" >&6
4510 fi
4511
4512
4513
4514 enablestring=
4515 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4516echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4517 no_cache=0
4518 # Check whether --enable-protocols or --disable-protocols was given.
4519if test "${enable_protocols+set}" = set; then
4520 enableval="$enable_protocols"
4521
4522 if test "$enableval" = yes; then
4523 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4524 else
4525 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4526 fi
4527
4528else
4529
4530 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4531 if test "x$LINE" != x ; then
4532 eval "DEFAULT_$LINE"
4533 else
4534 no_cache=1
4535 fi
4536
4537 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4538
4539fi;
4540
4541 eval "$ac_cv_use_protocols"
4542 if test "$no_cache" != 1; then
4543 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4544 fi
4545
4546 if test "$wxUSE_PROTOCOL" = yes; then
4547 echo "$as_me:$LINENO: result: yes" >&5
4548echo "${ECHO_T}yes" >&6
4549 else
4550 echo "$as_me:$LINENO: result: no" >&5
4551echo "${ECHO_T}no" >&6
4552 fi
4553
4554
4555 enablestring=
4556 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4557echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4558 no_cache=0
4559 # Check whether --enable-ftp or --disable-ftp was given.
4560if test "${enable_ftp+set}" = set; then
4561 enableval="$enable_ftp"
4562
4563 if test "$enableval" = yes; then
4564 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4565 else
4566 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4567 fi
4568
4569else
4570
4571 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4572 if test "x$LINE" != x ; then
4573 eval "DEFAULT_$LINE"
4574 else
4575 no_cache=1
4576 fi
4577
4578 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4579
4580fi;
4581
4582 eval "$ac_cv_use_ftp"
4583 if test "$no_cache" != 1; then
4584 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4585 fi
4586
4587 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4588 echo "$as_me:$LINENO: result: yes" >&5
4589echo "${ECHO_T}yes" >&6
4590 else
4591 echo "$as_me:$LINENO: result: no" >&5
4592echo "${ECHO_T}no" >&6
4593 fi
4594
4595
4596 enablestring=
4597 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4598echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4599 no_cache=0
4600 # Check whether --enable-http or --disable-http was given.
4601if test "${enable_http+set}" = set; then
4602 enableval="$enable_http"
4603
4604 if test "$enableval" = yes; then
4605 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4606 else
4607 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4608 fi
4609
4610else
4611
4612 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4613 if test "x$LINE" != x ; then
4614 eval "DEFAULT_$LINE"
4615 else
4616 no_cache=1
4617 fi
4618
4619 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4620
4621fi;
4622
4623 eval "$ac_cv_use_http"
4624 if test "$no_cache" != 1; then
4625 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4626 fi
4627
4628 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4629 echo "$as_me:$LINENO: result: yes" >&5
4630echo "${ECHO_T}yes" >&6
4631 else
4632 echo "$as_me:$LINENO: result: no" >&5
4633echo "${ECHO_T}no" >&6
4634 fi
4635
4636
4637 enablestring=
4638 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4639echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4640 no_cache=0
4641 # Check whether --enable-fileproto or --disable-fileproto was given.
4642if test "${enable_fileproto+set}" = set; then
4643 enableval="$enable_fileproto"
4644
4645 if test "$enableval" = yes; then
4646 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4647 else
4648 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4649 fi
4650
4651else
4652
4653 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4654 if test "x$LINE" != x ; then
4655 eval "DEFAULT_$LINE"
4656 else
4657 no_cache=1
4658 fi
4659
4660 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4661
4662fi;
4663
4664 eval "$ac_cv_use_fileproto"
4665 if test "$no_cache" != 1; then
4666 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4667 fi
4668
4669 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4670 echo "$as_me:$LINENO: result: yes" >&5
4671echo "${ECHO_T}yes" >&6
4672 else
4673 echo "$as_me:$LINENO: result: no" >&5
4674echo "${ECHO_T}no" >&6
4675 fi
4676
4677
4678 enablestring=
4679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4680echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4681 no_cache=0
4682 # Check whether --enable-sockets or --disable-sockets was given.
4683if test "${enable_sockets+set}" = set; then
4684 enableval="$enable_sockets"
4685
4686 if test "$enableval" = yes; then
4687 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4688 else
4689 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4690 fi
4691
4692else
4693
4694 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4695 if test "x$LINE" != x ; then
4696 eval "DEFAULT_$LINE"
4697 else
4698 no_cache=1
4699 fi
4700
4701 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4702
4703fi;
4704
4705 eval "$ac_cv_use_sockets"
4706 if test "$no_cache" != 1; then
4707 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4708 fi
4709
4710 if test "$wxUSE_SOCKETS" = yes; then
4711 echo "$as_me:$LINENO: result: yes" >&5
4712echo "${ECHO_T}yes" >&6
4713 else
4714 echo "$as_me:$LINENO: result: no" >&5
4715echo "${ECHO_T}no" >&6
4716 fi
4717
4718
4719 enablestring=
4720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4721echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4722 no_cache=0
4723 # Check whether --enable-ole or --disable-ole was given.
4724if test "${enable_ole+set}" = set; then
4725 enableval="$enable_ole"
4726
4727 if test "$enableval" = yes; then
4728 ac_cv_use_ole='wxUSE_OLE=yes'
4729 else
4730 ac_cv_use_ole='wxUSE_OLE=no'
4731 fi
4732
4733else
4734
4735 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4736 if test "x$LINE" != x ; then
4737 eval "DEFAULT_$LINE"
4738 else
4739 no_cache=1
4740 fi
4741
4742 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4743
4744fi;
4745
4746 eval "$ac_cv_use_ole"
4747 if test "$no_cache" != 1; then
4748 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4749 fi
4750
4751 if test "$wxUSE_OLE" = yes; then
4752 echo "$as_me:$LINENO: result: yes" >&5
4753echo "${ECHO_T}yes" >&6
4754 else
4755 echo "$as_me:$LINENO: result: no" >&5
4756echo "${ECHO_T}no" >&6
4757 fi
4758
4759
4760 enablestring=
4761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4762echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4763 no_cache=0
4764 # Check whether --enable-dataobj or --disable-dataobj was given.
4765if test "${enable_dataobj+set}" = set; then
4766 enableval="$enable_dataobj"
4767
4768 if test "$enableval" = yes; then
4769 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4770 else
4771 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4772 fi
4773
4774else
4775
4776 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4777 if test "x$LINE" != x ; then
4778 eval "DEFAULT_$LINE"
4779 else
4780 no_cache=1
4781 fi
4782
4783 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4784
4785fi;
4786
4787 eval "$ac_cv_use_dataobj"
4788 if test "$no_cache" != 1; then
4789 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4790 fi
4791
4792 if test "$wxUSE_DATAOBJ" = yes; then
4793 echo "$as_me:$LINENO: result: yes" >&5
4794echo "${ECHO_T}yes" >&6
4795 else
4796 echo "$as_me:$LINENO: result: no" >&5
4797echo "${ECHO_T}no" >&6
4798 fi
4799
4800
4801
4802 enablestring=
4803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4804echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4805 no_cache=0
4806 # Check whether --enable-ipc or --disable-ipc was given.
4807if test "${enable_ipc+set}" = set; then
4808 enableval="$enable_ipc"
4809
4810 if test "$enableval" = yes; then
4811 ac_cv_use_ipc='wxUSE_IPC=yes'
4812 else
4813 ac_cv_use_ipc='wxUSE_IPC=no'
4814 fi
4815
4816else
4817
4818 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4819 if test "x$LINE" != x ; then
4820 eval "DEFAULT_$LINE"
4821 else
4822 no_cache=1
4823 fi
4824
4825 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4826
4827fi;
4828
4829 eval "$ac_cv_use_ipc"
4830 if test "$no_cache" != 1; then
4831 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4832 fi
4833
4834 if test "$wxUSE_IPC" = yes; then
4835 echo "$as_me:$LINENO: result: yes" >&5
4836echo "${ECHO_T}yes" >&6
4837 else
4838 echo "$as_me:$LINENO: result: no" >&5
4839echo "${ECHO_T}no" >&6
4840 fi
4841
4842
4843
4844 enablestring=
4845 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4846echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4847 no_cache=0
4848 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4849if test "${enable_apple_ieee+set}" = set; then
4850 enableval="$enable_apple_ieee"
4851
4852 if test "$enableval" = yes; then
4853 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4854 else
4855 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4856 fi
4857
4858else
4859
4860 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4861 if test "x$LINE" != x ; then
4862 eval "DEFAULT_$LINE"
4863 else
4864 no_cache=1
4865 fi
4866
4867 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4868
4869fi;
4870
4871 eval "$ac_cv_use_apple_ieee"
4872 if test "$no_cache" != 1; then
4873 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4874 fi
4875
4876 if test "$wxUSE_APPLE_IEEE" = yes; then
4877 echo "$as_me:$LINENO: result: yes" >&5
4878echo "${ECHO_T}yes" >&6
4879 else
4880 echo "$as_me:$LINENO: result: no" >&5
4881echo "${ECHO_T}no" >&6
4882 fi
4883
4884
81f90336
MW
4885 enablestring=
4886 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4887echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4888 no_cache=0
4889 # Check whether --enable-arcstream or --disable-arcstream was given.
4890if test "${enable_arcstream+set}" = set; then
4891 enableval="$enable_arcstream"
4892
4893 if test "$enableval" = yes; then
9e8e867f 4894 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4895 else
9e8e867f 4896 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4897 fi
4898
4899else
4900
9e8e867f 4901 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4902 if test "x$LINE" != x ; then
4903 eval "DEFAULT_$LINE"
4904 else
4905 no_cache=1
4906 fi
4907
9e8e867f 4908 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4909
4910fi;
4911
4912 eval "$ac_cv_use_arcstream"
4913 if test "$no_cache" != 1; then
4914 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4915 fi
4916
9e8e867f 4917 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4918 echo "$as_me:$LINENO: result: yes" >&5
4919echo "${ECHO_T}yes" >&6
4920 else
4921 echo "$as_me:$LINENO: result: no" >&5
4922echo "${ECHO_T}no" >&6
4923 fi
4924
4925
a848cd7e 4926 enablestring=
36b6448c
VZ
4927 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4928echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4929 no_cache=0
36b6448c
VZ
4930 # Check whether --enable-backtrace or --disable-backtrace was given.
4931if test "${enable_backtrace+set}" = set; then
4932 enableval="$enable_backtrace"
a848cd7e
SC
4933
4934 if test "$enableval" = yes; then
36b6448c 4935 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4936 else
36b6448c 4937 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4938 fi
4939
4940else
4941
36b6448c 4942 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4943 if test "x$LINE" != x ; then
4944 eval "DEFAULT_$LINE"
4945 else
4946 no_cache=1
4947 fi
4948
36b6448c 4949 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4950
4951fi;
4952
36b6448c 4953 eval "$ac_cv_use_backtrace"
a848cd7e 4954 if test "$no_cache" != 1; then
36b6448c 4955 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4956 fi
4957
36b6448c 4958 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4959 echo "$as_me:$LINENO: result: yes" >&5
4960echo "${ECHO_T}yes" >&6
4961 else
4962 echo "$as_me:$LINENO: result: no" >&5
4963echo "${ECHO_T}no" >&6
4964 fi
4965
4966
eaff0f0d 4967 enablestring=
36b6448c
VZ
4968 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4969echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4970 no_cache=0
36b6448c
VZ
4971 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4972if test "${enable_catch_segvs+set}" = set; then
4973 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4974
4975 if test "$enableval" = yes; then
36b6448c 4976 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4977 else
36b6448c 4978 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4979 fi
4980
4981else
4982
36b6448c 4983 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4984 if test "x$LINE" != x ; then
4985 eval "DEFAULT_$LINE"
4986 else
4987 no_cache=1
4988 fi
4989
36b6448c 4990 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4991
4992fi;
4993
36b6448c 4994 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4995 if test "$no_cache" != 1; then
36b6448c 4996 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4997 fi
4998
36b6448c 4999 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
5000 echo "$as_me:$LINENO: result: yes" >&5
5001echo "${ECHO_T}yes" >&6
5002 else
5003 echo "$as_me:$LINENO: result: no" >&5
5004echo "${ECHO_T}no" >&6
5005 fi
5006
5007
a848cd7e
SC
5008 enablestring=
5009 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5010echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5011 no_cache=0
5012 # Check whether --enable-cmdline or --disable-cmdline was given.
5013if test "${enable_cmdline+set}" = set; then
5014 enableval="$enable_cmdline"
5015
5016 if test "$enableval" = yes; then
5017 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5018 else
5019 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5020 fi
5021
5022else
5023
5024 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5025 if test "x$LINE" != x ; then
5026 eval "DEFAULT_$LINE"
5027 else
5028 no_cache=1
5029 fi
5030
5031 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5032
5033fi;
5034
5035 eval "$ac_cv_use_cmdline"
5036 if test "$no_cache" != 1; then
5037 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5038 fi
5039
5040 if test "$wxUSE_CMDLINE_PARSER" = yes; then
5041 echo "$as_me:$LINENO: result: yes" >&5
5042echo "${ECHO_T}yes" >&6
5043 else
5044 echo "$as_me:$LINENO: result: no" >&5
5045echo "${ECHO_T}no" >&6
5046 fi
5047
5048
5049 enablestring=
5050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5051echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5052 no_cache=0
5053 # Check whether --enable-datetime or --disable-datetime was given.
5054if test "${enable_datetime+set}" = set; then
5055 enableval="$enable_datetime"
5056
5057 if test "$enableval" = yes; then
5058 ac_cv_use_datetime='wxUSE_DATETIME=yes'
5059 else
5060 ac_cv_use_datetime='wxUSE_DATETIME=no'
5061 fi
5062
5063else
5064
5065 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5066 if test "x$LINE" != x ; then
5067 eval "DEFAULT_$LINE"
5068 else
5069 no_cache=1
5070 fi
5071
5072 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5073
5074fi;
5075
5076 eval "$ac_cv_use_datetime"
5077 if test "$no_cache" != 1; then
5078 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5079 fi
5080
5081 if test "$wxUSE_DATETIME" = yes; then
5082 echo "$as_me:$LINENO: result: yes" >&5
5083echo "${ECHO_T}yes" >&6
5084 else
5085 echo "$as_me:$LINENO: result: no" >&5
5086echo "${ECHO_T}no" >&6
5087 fi
5088
5089
36b6448c
VZ
5090 enablestring=
5091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5092echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5093 no_cache=0
5094 # Check whether --enable-debugreport or --disable-debugreport was given.
5095if test "${enable_debugreport+set}" = set; then
5096 enableval="$enable_debugreport"
5097
5098 if test "$enableval" = yes; then
5099 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5100 else
5101 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5102 fi
5103
5104else
5105
5106 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5107 if test "x$LINE" != x ; then
5108 eval "DEFAULT_$LINE"
5109 else
5110 no_cache=1
5111 fi
5112
5113 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5114
5115fi;
5116
5117 eval "$ac_cv_use_debugreport"
5118 if test "$no_cache" != 1; then
5119 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5120 fi
5121
5122 if test "$wxUSE_DEBUGREPORT" = yes; then
5123 echo "$as_me:$LINENO: result: yes" >&5
5124echo "${ECHO_T}yes" >&6
5125 else
5126 echo "$as_me:$LINENO: result: no" >&5
5127echo "${ECHO_T}no" >&6
5128 fi
5129
5130
a848cd7e
SC
5131 enablestring=
5132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5133echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5134 no_cache=0
5135 # Check whether --enable-dialupman or --disable-dialupman was given.
5136if test "${enable_dialupman+set}" = set; then
5137 enableval="$enable_dialupman"
5138
5139 if test "$enableval" = yes; then
5140 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5141 else
5142 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5143 fi
5144
5145else
5146
5147 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5148 if test "x$LINE" != x ; then
5149 eval "DEFAULT_$LINE"
5150 else
5151 no_cache=1
5152 fi
5153
5154 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5155
5156fi;
5157
5158 eval "$ac_cv_use_dialupman"
5159 if test "$no_cache" != 1; then
5160 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5161 fi
5162
5163 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5164 echo "$as_me:$LINENO: result: yes" >&5
5165echo "${ECHO_T}yes" >&6
5166 else
5167 echo "$as_me:$LINENO: result: no" >&5
5168echo "${ECHO_T}no" >&6
5169 fi
5170
5171
5172 enablestring=
5173 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5174echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5175 no_cache=0
5176 # Check whether --enable-dynlib or --disable-dynlib was given.
5177if test "${enable_dynlib+set}" = set; then
5178 enableval="$enable_dynlib"
5179
5180 if test "$enableval" = yes; then
5181 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5182 else
5183 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5184 fi
5185
5186else
5187
5188 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5189 if test "x$LINE" != x ; then
5190 eval "DEFAULT_$LINE"
5191 else
5192 no_cache=1
5193 fi
5194
5195 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5196
5197fi;
5198
5199 eval "$ac_cv_use_dynlib"
5200 if test "$no_cache" != 1; then
5201 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5202 fi
5203
5204 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5205 echo "$as_me:$LINENO: result: yes" >&5
5206echo "${ECHO_T}yes" >&6
5207 else
5208 echo "$as_me:$LINENO: result: no" >&5
5209echo "${ECHO_T}no" >&6
5210 fi
5211
5212
5213 enablestring=
5214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5215echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5216 no_cache=0
5217 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5218if test "${enable_dynamicloader+set}" = set; then
5219 enableval="$enable_dynamicloader"
5220
5221 if test "$enableval" = yes; then
5222 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5223 else
5224 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5225 fi
5226
5227else
5228
5229 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5230 if test "x$LINE" != x ; then
5231 eval "DEFAULT_$LINE"
5232 else
5233 no_cache=1
5234 fi
5235
5236 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5237
5238fi;
5239
5240 eval "$ac_cv_use_dynamicloader"
5241 if test "$no_cache" != 1; then
5242 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5243 fi
5244
5245 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5246 echo "$as_me:$LINENO: result: yes" >&5
5247echo "${ECHO_T}yes" >&6
5248 else
5249 echo "$as_me:$LINENO: result: no" >&5
5250echo "${ECHO_T}no" >&6
5251 fi
5252
5253
5254 enablestring=
5255 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5256echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5257 no_cache=0
5258 # Check whether --enable-exceptions or --disable-exceptions was given.
5259if test "${enable_exceptions+set}" = set; then
5260 enableval="$enable_exceptions"
5261
5262 if test "$enableval" = yes; then
5263 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5264 else
5265 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5266 fi
5267
5268else
5269
5270 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5271 if test "x$LINE" != x ; then
5272 eval "DEFAULT_$LINE"
5273 else
5274 no_cache=1
5275 fi
5276
5277 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5278
5279fi;
5280
5281 eval "$ac_cv_use_exceptions"
5282 if test "$no_cache" != 1; then
5283 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5284 fi
5285
5286 if test "$wxUSE_EXCEPTIONS" = yes; then
5287 echo "$as_me:$LINENO: result: yes" >&5
5288echo "${ECHO_T}yes" >&6
5289 else
5290 echo "$as_me:$LINENO: result: no" >&5
5291echo "${ECHO_T}no" >&6
5292 fi
5293
5294
5295 enablestring=
5296 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5297echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5298 no_cache=0
5299 # Check whether --enable-ffile or --disable-ffile was given.
5300if test "${enable_ffile+set}" = set; then
5301 enableval="$enable_ffile"
5302
5303 if test "$enableval" = yes; then
5304 ac_cv_use_ffile='wxUSE_FFILE=yes'
5305 else
5306 ac_cv_use_ffile='wxUSE_FFILE=no'
5307 fi
5308
5309else
5310
5311 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5312 if test "x$LINE" != x ; then
5313 eval "DEFAULT_$LINE"
5314 else
5315 no_cache=1
5316 fi
5317
5318 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5319
5320fi;
5321
5322 eval "$ac_cv_use_ffile"
5323 if test "$no_cache" != 1; then
5324 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5325 fi
5326
5327 if test "$wxUSE_FFILE" = yes; then
5328 echo "$as_me:$LINENO: result: yes" >&5
5329echo "${ECHO_T}yes" >&6
5330 else
5331 echo "$as_me:$LINENO: result: no" >&5
5332echo "${ECHO_T}no" >&6
5333 fi
5334
5335
5336 enablestring=
5337 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5338echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5339 no_cache=0
5340 # Check whether --enable-file or --disable-file was given.
5341if test "${enable_file+set}" = set; then
5342 enableval="$enable_file"
5343
5344 if test "$enableval" = yes; then
5345 ac_cv_use_file='wxUSE_FILE=yes'
5346 else
5347 ac_cv_use_file='wxUSE_FILE=no'
5348 fi
5349
5350else
5351
5352 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5353 if test "x$LINE" != x ; then
5354 eval "DEFAULT_$LINE"
5355 else
5356 no_cache=1
5357 fi
5358
5359 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5360
5361fi;
5362
5363 eval "$ac_cv_use_file"
5364 if test "$no_cache" != 1; then
5365 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5366 fi
5367
5368 if test "$wxUSE_FILE" = yes; then
5369 echo "$as_me:$LINENO: result: yes" >&5
5370echo "${ECHO_T}yes" >&6
5371 else
5372 echo "$as_me:$LINENO: result: no" >&5
5373echo "${ECHO_T}no" >&6
5374 fi
5375
5376
5377 enablestring=
5378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5379echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5380 no_cache=0
5381 # Check whether --enable-filesystem or --disable-filesystem was given.
5382if test "${enable_filesystem+set}" = set; then
5383 enableval="$enable_filesystem"
5384
5385 if test "$enableval" = yes; then
5386 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5387 else
5388 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5389 fi
5390
5391else
5392
5393 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5394 if test "x$LINE" != x ; then
5395 eval "DEFAULT_$LINE"
5396 else
5397 no_cache=1
5398 fi
5399
5400 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5401
5402fi;
5403
5404 eval "$ac_cv_use_filesystem"
5405 if test "$no_cache" != 1; then
5406 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5407 fi
5408
5409 if test "$wxUSE_FILESYSTEM" = yes; then
5410 echo "$as_me:$LINENO: result: yes" >&5
5411echo "${ECHO_T}yes" >&6
5412 else
5413 echo "$as_me:$LINENO: result: no" >&5
5414echo "${ECHO_T}no" >&6
5415 fi
5416
5417
5418 enablestring=
5419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5420echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5421 no_cache=0
5422 # Check whether --enable-fontmap or --disable-fontmap was given.
5423if test "${enable_fontmap+set}" = set; then
5424 enableval="$enable_fontmap"
5425
5426 if test "$enableval" = yes; then
5427 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5428 else
5429 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5430 fi
5431
5432else
5433
5434 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5435 if test "x$LINE" != x ; then
5436 eval "DEFAULT_$LINE"
5437 else
5438 no_cache=1
5439 fi
5440
5441 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5442
5443fi;
5444
5445 eval "$ac_cv_use_fontmap"
5446 if test "$no_cache" != 1; then
5447 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5448 fi
5449
5450 if test "$wxUSE_FONTMAP" = yes; then
5451 echo "$as_me:$LINENO: result: yes" >&5
5452echo "${ECHO_T}yes" >&6
5453 else
5454 echo "$as_me:$LINENO: result: no" >&5
5455echo "${ECHO_T}no" >&6
5456 fi
5457
5458
5459 enablestring=
5460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5461echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5462 no_cache=0
5463 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5464if test "${enable_fs_inet+set}" = set; then
5465 enableval="$enable_fs_inet"
5466
5467 if test "$enableval" = yes; then
5468 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5469 else
5470 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5471 fi
5472
5473else
5474
5475 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5476 if test "x$LINE" != x ; then
5477 eval "DEFAULT_$LINE"
5478 else
5479 no_cache=1
5480 fi
5481
5482 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5483
5484fi;
5485
5486 eval "$ac_cv_use_fs_inet"
5487 if test "$no_cache" != 1; then
5488 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5489 fi
5490
5491 if test "$wxUSE_FS_INET" = yes; then
5492 echo "$as_me:$LINENO: result: yes" >&5
5493echo "${ECHO_T}yes" >&6
5494 else
5495 echo "$as_me:$LINENO: result: no" >&5
5496echo "${ECHO_T}no" >&6
5497 fi
5498
5499
5500 enablestring=
5501 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5502echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5503 no_cache=0
5504 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5505if test "${enable_fs_zip+set}" = set; then
5506 enableval="$enable_fs_zip"
5507
5508 if test "$enableval" = yes; then
5509 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5510 else
5511 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5512 fi
5513
5514else
5515
5516 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5517 if test "x$LINE" != x ; then
5518 eval "DEFAULT_$LINE"
5519 else
5520 no_cache=1
5521 fi
5522
5523 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5524
5525fi;
5526
5527 eval "$ac_cv_use_fs_zip"
5528 if test "$no_cache" != 1; then
5529 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5530 fi
5531
5532 if test "$wxUSE_FS_ZIP" = yes; then
5533 echo "$as_me:$LINENO: result: yes" >&5
5534echo "${ECHO_T}yes" >&6
5535 else
5536 echo "$as_me:$LINENO: result: no" >&5
5537echo "${ECHO_T}no" >&6
5538 fi
5539
5540
5541 enablestring=
5542 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5543echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5544 no_cache=0
5545 # Check whether --enable-geometry or --disable-geometry was given.
5546if test "${enable_geometry+set}" = set; then
5547 enableval="$enable_geometry"
5548
5549 if test "$enableval" = yes; then
5550 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5551 else
5552 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5553 fi
5554
5555else
5556
5557 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5558 if test "x$LINE" != x ; then
5559 eval "DEFAULT_$LINE"
5560 else
5561 no_cache=1
5562 fi
5563
5564 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5565
5566fi;
5567
5568 eval "$ac_cv_use_geometry"
5569 if test "$no_cache" != 1; then
5570 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5571 fi
5572
5573 if test "$wxUSE_GEOMETRY" = yes; then
5574 echo "$as_me:$LINENO: result: yes" >&5
5575echo "${ECHO_T}yes" >&6
5576 else
5577 echo "$as_me:$LINENO: result: no" >&5
5578echo "${ECHO_T}no" >&6
5579 fi
5580
5581
5582 enablestring=
5583 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5584echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5585 no_cache=0
5586 # Check whether --enable-log or --disable-log was given.
5587if test "${enable_log+set}" = set; then
5588 enableval="$enable_log"
5589
5590 if test "$enableval" = yes; then
5591 ac_cv_use_log='wxUSE_LOG=yes'
5592 else
5593 ac_cv_use_log='wxUSE_LOG=no'
5594 fi
5595
5596else
5597
5598 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5599 if test "x$LINE" != x ; then
5600 eval "DEFAULT_$LINE"
5601 else
5602 no_cache=1
5603 fi
5604
5605 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5606
5607fi;
5608
5609 eval "$ac_cv_use_log"
5610 if test "$no_cache" != 1; then
5611 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5612 fi
5613
5614 if test "$wxUSE_LOG" = yes; then
5615 echo "$as_me:$LINENO: result: yes" >&5
5616echo "${ECHO_T}yes" >&6
5617 else
5618 echo "$as_me:$LINENO: result: no" >&5
5619echo "${ECHO_T}no" >&6
5620 fi
5621
5622
5623 enablestring=
5624 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5625echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5626 no_cache=0
5627 # Check whether --enable-longlong or --disable-longlong was given.
5628if test "${enable_longlong+set}" = set; then
5629 enableval="$enable_longlong"
5630
5631 if test "$enableval" = yes; then
5632 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5633 else
5634 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5635 fi
5636
5637else
5638
5639 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5640 if test "x$LINE" != x ; then
5641 eval "DEFAULT_$LINE"
5642 else
5643 no_cache=1
5644 fi
5645
5646 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5647
5648fi;
5649
5650 eval "$ac_cv_use_longlong"
5651 if test "$no_cache" != 1; then
5652 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5653 fi
5654
5655 if test "$wxUSE_LONGLONG" = yes; then
5656 echo "$as_me:$LINENO: result: yes" >&5
5657echo "${ECHO_T}yes" >&6
5658 else
5659 echo "$as_me:$LINENO: result: no" >&5
5660echo "${ECHO_T}no" >&6
5661 fi
5662
5663
5664 enablestring=
5665 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5666echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5667 no_cache=0
5668 # Check whether --enable-mimetype or --disable-mimetype was given.
5669if test "${enable_mimetype+set}" = set; then
5670 enableval="$enable_mimetype"
5671
5672 if test "$enableval" = yes; then
5673 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5674 else
5675 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5676 fi
5677
5678else
5679
5680 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5681 if test "x$LINE" != x ; then
5682 eval "DEFAULT_$LINE"
5683 else
5684 no_cache=1
5685 fi
5686
5687 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5688
5689fi;
5690
5691 eval "$ac_cv_use_mimetype"
5692 if test "$no_cache" != 1; then
5693 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5694 fi
5695
5696 if test "$wxUSE_MIMETYPE" = yes; then
5697 echo "$as_me:$LINENO: result: yes" >&5
5698echo "${ECHO_T}yes" >&6
5699 else
5700 echo "$as_me:$LINENO: result: no" >&5
5701echo "${ECHO_T}no" >&6
5702 fi
5703
5704
5705 enablestring=
5706 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5707echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5708 no_cache=0
5709 # Check whether --enable-mslu or --disable-mslu was given.
5710if test "${enable_mslu+set}" = set; then
5711 enableval="$enable_mslu"
5712
5713 if test "$enableval" = yes; then
5714 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5715 else
5716 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5717 fi
5718
5719else
5720
5721 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5722 if test "x$LINE" != x ; then
5723 eval "DEFAULT_$LINE"
5724 else
5725 no_cache=1
5726 fi
5727
5728 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5729
5730fi;
5731
5732 eval "$ac_cv_use_mslu"
5733 if test "$no_cache" != 1; then
5734 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5735 fi
5736
5737 if test "$wxUSE_UNICODE_MSLU" = yes; then
5738 echo "$as_me:$LINENO: result: yes" >&5
5739echo "${ECHO_T}yes" >&6
5740 else
5741 echo "$as_me:$LINENO: result: no" >&5
5742echo "${ECHO_T}no" >&6
5743 fi
5744
5745
5746 enablestring=
5747 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5748echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5749 no_cache=0
5750 # Check whether --enable-snglinst or --disable-snglinst was given.
5751if test "${enable_snglinst+set}" = set; then
5752 enableval="$enable_snglinst"
5753
5754 if test "$enableval" = yes; then
5755 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5756 else
5757 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5758 fi
5759
5760else
5761
5762 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5763 if test "x$LINE" != x ; then
5764 eval "DEFAULT_$LINE"
5765 else
5766 no_cache=1
5767 fi
5768
5769 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5770
5771fi;
5772
5773 eval "$ac_cv_use_snglinst"
5774 if test "$no_cache" != 1; then
5775 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5776 fi
5777
5778 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5779 echo "$as_me:$LINENO: result: yes" >&5
5780echo "${ECHO_T}yes" >&6
5781 else
5782 echo "$as_me:$LINENO: result: no" >&5
5783echo "${ECHO_T}no" >&6
5784 fi
5785
5786
5787 enablestring=
07158944
VZ
5788 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5789echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5790 no_cache=0
07158944
VZ
5791 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5792if test "${enable_std_iostreams+set}" = set; then
5793 enableval="$enable_std_iostreams"
a848cd7e
SC
5794
5795 if test "$enableval" = yes; then
07158944 5796 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5797 else
07158944 5798 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5799 fi
5800
5801else
5802
07158944 5803 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5804 if test "x$LINE" != x ; then
5805 eval "DEFAULT_$LINE"
5806 else
5807 no_cache=1
5808 fi
5809
07158944 5810 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5811
5812fi;
5813
07158944 5814 eval "$ac_cv_use_std_iostreams"
a848cd7e 5815 if test "$no_cache" != 1; then
07158944 5816 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5817 fi
5818
07158944 5819 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5820 echo "$as_me:$LINENO: result: yes" >&5
5821echo "${ECHO_T}yes" >&6
5822 else
5823 echo "$as_me:$LINENO: result: no" >&5
5824echo "${ECHO_T}no" >&6
5825 fi
5826
5827
59746b65
MW
5828 enablestring=
5829 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5830echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5831 no_cache=0
5832 # Check whether --enable-std_string or --disable-std_string was given.
5833if test "${enable_std_string+set}" = set; then
5834 enableval="$enable_std_string"
5835
5836 if test "$enableval" = yes; then
5837 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5838 else
5839 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5840 fi
5841
5842else
5843
5844 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5845 if test "x$LINE" != x ; then
5846 eval "DEFAULT_$LINE"
5847 else
5848 no_cache=1
5849 fi
5850
5851 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5852
5853fi;
5854
5855 eval "$ac_cv_use_std_string"
5856 if test "$no_cache" != 1; then
5857 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5858 fi
5859
5860 if test "$wxUSE_STD_STRING" = yes; then
5861 echo "$as_me:$LINENO: result: yes" >&5
5862echo "${ECHO_T}yes" >&6
5863 else
5864 echo "$as_me:$LINENO: result: no" >&5
5865echo "${ECHO_T}no" >&6
5866 fi
5867
5868
a848cd7e 5869 enablestring=
07158944
VZ
5870 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5871echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5872 no_cache=0
07158944
VZ
5873 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5874if test "${enable_stdpaths+set}" = set; then
5875 enableval="$enable_stdpaths"
a848cd7e
SC
5876
5877 if test "$enableval" = yes; then
07158944 5878 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5879 else
07158944 5880 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5881 fi
5882
5883else
5884
07158944 5885 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5886 if test "x$LINE" != x ; then
5887 eval "DEFAULT_$LINE"
5888 else
5889 no_cache=1
5890 fi
5891
07158944 5892 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5893
5894fi;
5895
07158944 5896 eval "$ac_cv_use_stdpaths"
a848cd7e 5897 if test "$no_cache" != 1; then
07158944 5898 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5899 fi
5900
07158944 5901 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5902 echo "$as_me:$LINENO: result: yes" >&5
5903echo "${ECHO_T}yes" >&6
5904 else
5905 echo "$as_me:$LINENO: result: no" >&5
5906echo "${ECHO_T}no" >&6
5907 fi
5908
5909
5910 enablestring=
5911 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5912echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5913 no_cache=0
5914 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5915if test "${enable_stopwatch+set}" = set; then
5916 enableval="$enable_stopwatch"
5917
5918 if test "$enableval" = yes; then
5919 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5920 else
5921 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5922 fi
5923
5924else
5925
5926 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5927 if test "x$LINE" != x ; then
5928 eval "DEFAULT_$LINE"
5929 else
5930 no_cache=1
5931 fi
5932
5933 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5934
5935fi;
5936
5937 eval "$ac_cv_use_stopwatch"
5938 if test "$no_cache" != 1; then
5939 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5940 fi
5941
5942 if test "$wxUSE_STOPWATCH" = yes; then
5943 echo "$as_me:$LINENO: result: yes" >&5
5944echo "${ECHO_T}yes" >&6
5945 else
5946 echo "$as_me:$LINENO: result: no" >&5
5947echo "${ECHO_T}no" >&6
5948 fi
5949
5950
07158944
VZ
5951 enablestring=
5952 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5953echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5954 no_cache=0
5955 # Check whether --enable-streams or --disable-streams was given.
5956if test "${enable_streams+set}" = set; then
5957 enableval="$enable_streams"
5958
5959 if test "$enableval" = yes; then
5960 ac_cv_use_streams='wxUSE_STREAMS=yes'
5961 else
5962 ac_cv_use_streams='wxUSE_STREAMS=no'
5963 fi
5964
5965else
5966
5967 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5968 if test "x$LINE" != x ; then
5969 eval "DEFAULT_$LINE"
5970 else
5971 no_cache=1
5972 fi
5973
5974 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5975
5976fi;
5977
5978 eval "$ac_cv_use_streams"
5979 if test "$no_cache" != 1; then
5980 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5981 fi
5982
5983 if test "$wxUSE_STREAMS" = yes; then
5984 echo "$as_me:$LINENO: result: yes" >&5
5985echo "${ECHO_T}yes" >&6
5986 else
5987 echo "$as_me:$LINENO: result: no" >&5
5988echo "${ECHO_T}no" >&6
5989 fi
5990
5991
a848cd7e
SC
5992 enablestring=
5993 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5994echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5995 no_cache=0
5996 # Check whether --enable-system_options or --disable-system_options was given.
5997if test "${enable_system_options+set}" = set; then
5998 enableval="$enable_system_options"
5999
6000 if test "$enableval" = yes; then
6001 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6002 else
6003 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6004 fi
6005
6006else
6007
6008 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6009 if test "x$LINE" != x ; then
6010 eval "DEFAULT_$LINE"
6011 else
6012 no_cache=1
6013 fi
6014
6015 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6016
6017fi;
6018
6019 eval "$ac_cv_use_system_options"
6020 if test "$no_cache" != 1; then
6021 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6022 fi
6023
6024 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6025 echo "$as_me:$LINENO: result: yes" >&5
6026echo "${ECHO_T}yes" >&6
6027 else
6028 echo "$as_me:$LINENO: result: no" >&5
6029echo "${ECHO_T}no" >&6
6030 fi
6031
6032
6033 enablestring=
6034 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6035echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6036 no_cache=0
6037 # Check whether --enable-textbuf or --disable-textbuf was given.
6038if test "${enable_textbuf+set}" = set; then
6039 enableval="$enable_textbuf"
6040
6041 if test "$enableval" = yes; then
6042 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6043 else
6044 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6045 fi
6046
6047else
6048
6049 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6050 if test "x$LINE" != x ; then
6051 eval "DEFAULT_$LINE"
6052 else
6053 no_cache=1
6054 fi
6055
6056 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6057
6058fi;
6059
6060 eval "$ac_cv_use_textbuf"
6061 if test "$no_cache" != 1; then
6062 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6063 fi
6064
6065 if test "$wxUSE_TEXTBUFFER" = yes; then
6066 echo "$as_me:$LINENO: result: yes" >&5
6067echo "${ECHO_T}yes" >&6
6068 else
6069 echo "$as_me:$LINENO: result: no" >&5
6070echo "${ECHO_T}no" >&6
6071 fi
6072
6073
6074 enablestring=
6075 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6076echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6077 no_cache=0
6078 # Check whether --enable-textfile or --disable-textfile was given.
6079if test "${enable_textfile+set}" = set; then
6080 enableval="$enable_textfile"
6081
6082 if test "$enableval" = yes; then
6083 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6084 else
6085 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6086 fi
6087
6088else
6089
6090 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6091 if test "x$LINE" != x ; then
6092 eval "DEFAULT_$LINE"
6093 else
6094 no_cache=1
6095 fi
6096
6097 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6098
6099fi;
6100
6101 eval "$ac_cv_use_textfile"
6102 if test "$no_cache" != 1; then
6103 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6104 fi
6105
6106 if test "$wxUSE_TEXTFILE" = yes; then
6107 echo "$as_me:$LINENO: result: yes" >&5
6108echo "${ECHO_T}yes" >&6
6109 else
6110 echo "$as_me:$LINENO: result: no" >&5
6111echo "${ECHO_T}no" >&6
6112 fi
6113
6114
6115 enablestring=
6116 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6117echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6118 no_cache=0
6119 # Check whether --enable-timer or --disable-timer was given.
6120if test "${enable_timer+set}" = set; then
6121 enableval="$enable_timer"
6122
6123 if test "$enableval" = yes; then
6124 ac_cv_use_timer='wxUSE_TIMER=yes'
6125 else
6126 ac_cv_use_timer='wxUSE_TIMER=no'
6127 fi
6128
6129else
6130
6131 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6132 if test "x$LINE" != x ; then
6133 eval "DEFAULT_$LINE"
6134 else
6135 no_cache=1
6136 fi
6137
6138 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6139
6140fi;
6141
6142 eval "$ac_cv_use_timer"
6143 if test "$no_cache" != 1; then
6144 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6145 fi
6146
6147 if test "$wxUSE_TIMER" = yes; then
6148 echo "$as_me:$LINENO: result: yes" >&5
6149echo "${ECHO_T}yes" >&6
6150 else
6151 echo "$as_me:$LINENO: result: no" >&5
6152echo "${ECHO_T}no" >&6
6153 fi
6154
6155
6156 enablestring=
6157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6158echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6159 no_cache=0
6160 # Check whether --enable-unicode or --disable-unicode was given.
6161if test "${enable_unicode+set}" = set; then
6162 enableval="$enable_unicode"
6163
6164 if test "$enableval" = yes; then
6165 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6166 else
6167 ac_cv_use_unicode='wxUSE_UNICODE=no'
6168 fi
6169
6170else
6171
6172 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6173 if test "x$LINE" != x ; then
6174 eval "DEFAULT_$LINE"
6175 else
6176 no_cache=1
6177 fi
6178
6179 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6180
6181fi;
6182
6183 eval "$ac_cv_use_unicode"
6184 if test "$no_cache" != 1; then
6185 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6186 fi
6187
6188 if test "$wxUSE_UNICODE" = yes; then
6189 echo "$as_me:$LINENO: result: yes" >&5
6190echo "${ECHO_T}yes" >&6
6191 else
6192 echo "$as_me:$LINENO: result: no" >&5
6193echo "${ECHO_T}no" >&6
6194 fi
6195
6196
6197 enablestring=
6198 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6199echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6200 no_cache=0
6201 # Check whether --enable-sound or --disable-sound was given.
6202if test "${enable_sound+set}" = set; then
6203 enableval="$enable_sound"
6204
6205 if test "$enableval" = yes; then
6206 ac_cv_use_sound='wxUSE_SOUND=yes'
6207 else
6208 ac_cv_use_sound='wxUSE_SOUND=no'
6209 fi
6210
6211else
6212
6213 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6214 if test "x$LINE" != x ; then
6215 eval "DEFAULT_$LINE"
6216 else
6217 no_cache=1
6218 fi
6219
6220 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6221
6222fi;
6223
6224 eval "$ac_cv_use_sound"
6225 if test "$no_cache" != 1; then
6226 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6227 fi
6228
6229 if test "$wxUSE_SOUND" = yes; then
6230 echo "$as_me:$LINENO: result: yes" >&5
6231echo "${ECHO_T}yes" >&6
6232 else
6233 echo "$as_me:$LINENO: result: no" >&5
6234echo "${ECHO_T}no" >&6
6235 fi
6236
6237
3b57de8b
RL
6238 enablestring=
6239 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6240echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6241 no_cache=0
6242 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6243if test "${enable_mediactrl+set}" = set; then
6244 enableval="$enable_mediactrl"
6245
6246 if test "$enableval" = yes; then
6247 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6248 else
6249 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6250 fi
6251
6252else
6253
6254 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6255 if test "x$LINE" != x ; then
6256 eval "DEFAULT_$LINE"
6257 else
6258 no_cache=1
6259 fi
6260
6261 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6262
6263fi;
6264
6265 eval "$ac_cv_use_mediactrl"
6266 if test "$no_cache" != 1; then
6267 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6268 fi
6269
6270 if test "$wxUSE_MEDIACTRL" = yes; then
6271 echo "$as_me:$LINENO: result: yes" >&5
6272echo "${ECHO_T}yes" >&6
6273 else
6274 echo "$as_me:$LINENO: result: no" >&5
6275echo "${ECHO_T}no" >&6
6276 fi
6277
6278
f10e38c4
VZ
6279 enablestring=
6280 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6281echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6282 no_cache=0
6283 # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6284if test "${enable_gstreamer8+set}" = set; then
6285 enableval="$enable_gstreamer8"
6286
6287 if test "$enableval" = yes; then
6288 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6289 else
6290 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6291 fi
6292
6293else
6294
6295 LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6296 if test "x$LINE" != x ; then
6297 eval "DEFAULT_$LINE"
6298 else
6299 no_cache=1
6300 fi
6301
6302 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6303
6304fi;
6305
6306 eval "$ac_cv_use_gstreamer8"
6307 if test "$no_cache" != 1; then
6308 echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6309 fi
6310
6311 if test "$wxUSE_GSTREAMER8" = yes; then
6312 echo "$as_me:$LINENO: result: yes" >&5
6313echo "${ECHO_T}yes" >&6
6314 else
6315 echo "$as_me:$LINENO: result: no" >&5
6316echo "${ECHO_T}no" >&6
6317 fi
6318
6319
a848cd7e 6320 enablestring=
8b6682b9
JS
6321 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6322echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
a848cd7e 6323 no_cache=0
8b6682b9
JS
6324 # Check whether --enable-printfposparam or --disable-printfposparam was given.
6325if test "${enable_printfposparam+set}" = set; then
6326 enableval="$enable_printfposparam"
a848cd7e
SC
6327
6328 if test "$enableval" = yes; then
8b6682b9 6329 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
a848cd7e 6330 else
8b6682b9 6331 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
a848cd7e
SC
6332 fi
6333
6334else
6335
8b6682b9 6336 LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
a848cd7e
SC
6337 if test "x$LINE" != x ; then
6338 eval "DEFAULT_$LINE"
6339 else
6340 no_cache=1
6341 fi
6342
8b6682b9 6343 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
a848cd7e
SC
6344
6345fi;
6346
8b6682b9 6347 eval "$ac_cv_use_printfposparam"
a848cd7e 6348 if test "$no_cache" != 1; then
8b6682b9 6349 echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6350 fi
6351
8b6682b9 6352 if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
a848cd7e
SC
6353 echo "$as_me:$LINENO: result: yes" >&5
6354echo "${ECHO_T}yes" >&6
6355 else
6356 echo "$as_me:$LINENO: result: no" >&5
6357echo "${ECHO_T}no" >&6
6358 fi
6359
6360
6361 enablestring=
6362 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6363echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6364 no_cache=0
6365 # Check whether --enable-zipstream or --disable-zipstream was given.
6366if test "${enable_zipstream+set}" = set; then
6367 enableval="$enable_zipstream"
6368
6369 if test "$enableval" = yes; then
6370 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6371 else
6372 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6373 fi
6374
6375else
6376
6377 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6378 if test "x$LINE" != x ; then
6379 eval "DEFAULT_$LINE"
6380 else
6381 no_cache=1
6382 fi
6383
6384 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6385
6386fi;
6387
6388 eval "$ac_cv_use_zipstream"
6389 if test "$no_cache" != 1; then
6390 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6391 fi
6392
6393 if test "$wxUSE_ZIPSTREAM" = yes; then
6394 echo "$as_me:$LINENO: result: yes" >&5
6395echo "${ECHO_T}yes" >&6
6396 else
6397 echo "$as_me:$LINENO: result: no" >&5
6398echo "${ECHO_T}no" >&6
6399 fi
6400
6401
a848cd7e
SC
6402
6403 enablestring=
6404 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6405echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6406 no_cache=0
6407 # Check whether --enable-url or --disable-url was given.
6408if test "${enable_url+set}" = set; then
6409 enableval="$enable_url"
6410
6411 if test "$enableval" = yes; then
6412 ac_cv_use_url='wxUSE_URL=yes'
6413 else
6414 ac_cv_use_url='wxUSE_URL=no'
6415 fi
6416
6417else
6418
6419 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6420 if test "x$LINE" != x ; then
6421 eval "DEFAULT_$LINE"
6422 else
6423 no_cache=1
6424 fi
6425
6426 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6427
6428fi;
6429
6430 eval "$ac_cv_use_url"
6431 if test "$no_cache" != 1; then
6432 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6433 fi
6434
6435 if test "$wxUSE_URL" = yes; then
6436 echo "$as_me:$LINENO: result: yes" >&5
6437echo "${ECHO_T}yes" >&6
6438 else
6439 echo "$as_me:$LINENO: result: no" >&5
6440echo "${ECHO_T}no" >&6
6441 fi
6442
6443
6444 enablestring=
6445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6446echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6447 no_cache=0
6448 # Check whether --enable-protocol or --disable-protocol was given.
6449if test "${enable_protocol+set}" = set; then
6450 enableval="$enable_protocol"
6451
6452 if test "$enableval" = yes; then
6453 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6454 else
6455 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6456 fi
6457
6458else
6459
6460 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6461 if test "x$LINE" != x ; then
6462 eval "DEFAULT_$LINE"
6463 else
6464 no_cache=1
6465 fi
6466
6467 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6468
6469fi;
6470
6471 eval "$ac_cv_use_protocol"
6472 if test "$no_cache" != 1; then
6473 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6474 fi
6475
6476 if test "$wxUSE_PROTOCOL" = yes; then
6477 echo "$as_me:$LINENO: result: yes" >&5
6478echo "${ECHO_T}yes" >&6
6479 else
6480 echo "$as_me:$LINENO: result: no" >&5
6481echo "${ECHO_T}no" >&6
6482 fi
6483
6484
6485 enablestring=
6486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6487echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6488 no_cache=0
6489 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6490if test "${enable_protocol_http+set}" = set; then
6491 enableval="$enable_protocol_http"
6492
6493 if test "$enableval" = yes; then
6494 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6495 else
6496 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6497 fi
6498
6499else
6500
6501 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6502 if test "x$LINE" != x ; then
6503 eval "DEFAULT_$LINE"
6504 else
6505 no_cache=1
6506 fi
6507
6508 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6509
6510fi;
6511
6512 eval "$ac_cv_use_protocol_http"
6513 if test "$no_cache" != 1; then
6514 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6515 fi
6516
6517 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6518 echo "$as_me:$LINENO: result: yes" >&5
6519echo "${ECHO_T}yes" >&6
6520 else
6521 echo "$as_me:$LINENO: result: no" >&5
6522echo "${ECHO_T}no" >&6
6523 fi
6524
6525
6526 enablestring=
6527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6528echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6529 no_cache=0
6530 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6531if test "${enable_protocol_ftp+set}" = set; then
6532 enableval="$enable_protocol_ftp"
6533
6534 if test "$enableval" = yes; then
6535 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6536 else
6537 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6538 fi
6539
6540else
6541
6542 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6543 if test "x$LINE" != x ; then
6544 eval "DEFAULT_$LINE"
6545 else
6546 no_cache=1
6547 fi
6548
6549 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6550
6551fi;
6552
6553 eval "$ac_cv_use_protocol_ftp"
6554 if test "$no_cache" != 1; then
6555 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6556 fi
6557
6558 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6559 echo "$as_me:$LINENO: result: yes" >&5
6560echo "${ECHO_T}yes" >&6
6561 else
6562 echo "$as_me:$LINENO: result: no" >&5
6563echo "${ECHO_T}no" >&6
6564 fi
6565
6566
6567 enablestring=
6568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6569echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6570 no_cache=0
6571 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6572if test "${enable_protocol_file+set}" = set; then
6573 enableval="$enable_protocol_file"
6574
6575 if test "$enableval" = yes; then
6576 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6577 else
6578 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6579 fi
6580
6581else
6582
6583 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6584 if test "x$LINE" != x ; then
6585 eval "DEFAULT_$LINE"
6586 else
6587 no_cache=1
6588 fi
6589
6590 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6591
6592fi;
6593
6594 eval "$ac_cv_use_protocol_file"
6595 if test "$no_cache" != 1; then
6596 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6597 fi
6598
6599 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6600 echo "$as_me:$LINENO: result: yes" >&5
6601echo "${ECHO_T}yes" >&6
6602 else
6603 echo "$as_me:$LINENO: result: no" >&5
6604echo "${ECHO_T}no" >&6
6605 fi
6606
6607
6608
6609
6610
6611 enablestring=
6612 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6613echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6614 no_cache=0
6615 # Check whether --enable-threads or --disable-threads was given.
6616if test "${enable_threads+set}" = set; then
6617 enableval="$enable_threads"
6618
6619 if test "$enableval" = yes; then
6620 ac_cv_use_threads='wxUSE_THREADS=yes'
6621 else
6622 ac_cv_use_threads='wxUSE_THREADS=no'
6623 fi
6624
6625else
6626
6627 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6628 if test "x$LINE" != x ; then
6629 eval "DEFAULT_$LINE"
6630 else
6631 no_cache=1
6632 fi
6633
6634 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6635
6636fi;
6637
6638 eval "$ac_cv_use_threads"
6639 if test "$no_cache" != 1; then
6640 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6641 fi
6642
6643 if test "$wxUSE_THREADS" = yes; then
6644 echo "$as_me:$LINENO: result: yes" >&5
6645echo "${ECHO_T}yes" >&6
6646 else
6647 echo "$as_me:$LINENO: result: no" >&5
6648echo "${ECHO_T}no" >&6
6649 fi
6650
6651
6652if test "$wxUSE_GUI" = "yes"; then
6653
6654
6655
6656 enablestring=
6657 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6658echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6659 no_cache=0
6660 # Check whether --enable-docview or --disable-docview was given.
6661if test "${enable_docview+set}" = set; then
6662 enableval="$enable_docview"
6663
6664 if test "$enableval" = yes; then
6665 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6666 else
6667 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6668 fi
6669
6670else
6671
6672 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6673 if test "x$LINE" != x ; then
6674 eval "DEFAULT_$LINE"
6675 else
6676 no_cache=1
6677 fi
6678
6679 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6680
6681fi;
6682
6683 eval "$ac_cv_use_docview"
6684 if test "$no_cache" != 1; then
6685 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6686 fi
6687
6688 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6689 echo "$as_me:$LINENO: result: yes" >&5
6690echo "${ECHO_T}yes" >&6
6691 else
6692 echo "$as_me:$LINENO: result: no" >&5
6693echo "${ECHO_T}no" >&6
6694 fi
6695
6696
6697 enablestring=
6698 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6699echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6700 no_cache=0
6701 # Check whether --enable-help or --disable-help was given.
6702if test "${enable_help+set}" = set; then
6703 enableval="$enable_help"
6704
6705 if test "$enableval" = yes; then
6706 ac_cv_use_help='wxUSE_HELP=yes'
6707 else
6708 ac_cv_use_help='wxUSE_HELP=no'
6709 fi
6710
6711else
6712
6713 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6714 if test "x$LINE" != x ; then
6715 eval "DEFAULT_$LINE"
6716 else
6717 no_cache=1
6718 fi
6719
6720 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6721
6722fi;
6723
6724 eval "$ac_cv_use_help"
6725 if test "$no_cache" != 1; then
6726 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6727 fi
6728
6729 if test "$wxUSE_HELP" = yes; then
6730 echo "$as_me:$LINENO: result: yes" >&5
6731echo "${ECHO_T}yes" >&6
6732 else
6733 echo "$as_me:$LINENO: result: no" >&5
6734echo "${ECHO_T}no" >&6
6735 fi
6736
6737
6738 enablestring=
6739 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6740echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6741 no_cache=0
6742 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6743if test "${enable_mshtmlhelp+set}" = set; then
6744 enableval="$enable_mshtmlhelp"
6745
6746 if test "$enableval" = yes; then
6747 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6748 else
6749 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6750 fi
6751
6752else
6753
6754 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6755 if test "x$LINE" != x ; then
6756 eval "DEFAULT_$LINE"
6757 else
6758 no_cache=1
6759 fi
6760
6761 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6762
6763fi;
6764
6765 eval "$ac_cv_use_mshtmlhelp"
6766 if test "$no_cache" != 1; then
6767 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6768 fi
6769
6770 if test "$wxUSE_MS_HTML_HELP" = yes; then
6771 echo "$as_me:$LINENO: result: yes" >&5
6772echo "${ECHO_T}yes" >&6
6773 else
6774 echo "$as_me:$LINENO: result: no" >&5
6775echo "${ECHO_T}no" >&6
6776 fi
6777
6778
6779 enablestring=
6780 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6781echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6782 no_cache=0
6783 # Check whether --enable-html or --disable-html was given.
6784if test "${enable_html+set}" = set; then
6785 enableval="$enable_html"
6786
6787 if test "$enableval" = yes; then
6788 ac_cv_use_html='wxUSE_HTML=yes'
6789 else
6790 ac_cv_use_html='wxUSE_HTML=no'
6791 fi
6792
6793else
6794
6795 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6796 if test "x$LINE" != x ; then
6797 eval "DEFAULT_$LINE"
6798 else
6799 no_cache=1
6800 fi
6801
6802 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6803
6804fi;
6805
6806 eval "$ac_cv_use_html"
6807 if test "$no_cache" != 1; then
6808 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6809 fi
6810
6811 if test "$wxUSE_HTML" = yes; then
6812 echo "$as_me:$LINENO: result: yes" >&5
6813echo "${ECHO_T}yes" >&6
6814 else
6815 echo "$as_me:$LINENO: result: no" >&5
6816echo "${ECHO_T}no" >&6
6817 fi
6818
6819
6820 enablestring=
6821 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6822echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6823 no_cache=0
6824 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6825if test "${enable_htmlhelp+set}" = set; then
6826 enableval="$enable_htmlhelp"
6827
6828 if test "$enableval" = yes; then
6829 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6830 else
6831 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6832 fi
6833
6834else
6835
6836 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6837 if test "x$LINE" != x ; then
6838 eval "DEFAULT_$LINE"
6839 else
6840 no_cache=1
6841 fi
6842
6843 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6844
6845fi;
6846
6847 eval "$ac_cv_use_htmlhelp"
6848 if test "$no_cache" != 1; then
6849 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6850 fi
6851
6852 if test "$wxUSE_WXHTML_HELP" = yes; then
6853 echo "$as_me:$LINENO: result: yes" >&5
6854echo "${ECHO_T}yes" >&6
6855 else
6856 echo "$as_me:$LINENO: result: no" >&5
6857echo "${ECHO_T}no" >&6
6858 fi
6859
6860
9a8f0513
VS
6861 enablestring=
6862 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6863echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6864 no_cache=0
6865 # Check whether --enable-xrc or --disable-xrc was given.
6866if test "${enable_xrc+set}" = set; then
6867 enableval="$enable_xrc"
6868
6869 if test "$enableval" = yes; then
6870 ac_cv_use_xrc='wxUSE_XRC=yes'
6871 else
6872 ac_cv_use_xrc='wxUSE_XRC=no'
6873 fi
6874
6875else
6876
6877 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6878 if test "x$LINE" != x ; then
6879 eval "DEFAULT_$LINE"
6880 else
6881 no_cache=1
6882 fi
6883
6884 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6885
6886fi;
6887
6888 eval "$ac_cv_use_xrc"
6889 if test "$no_cache" != 1; then
6890 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6891 fi
6892
6893 if test "$wxUSE_XRC" = yes; then
6894 echo "$as_me:$LINENO: result: yes" >&5
6895echo "${ECHO_T}yes" >&6
6896 else
6897 echo "$as_me:$LINENO: result: no" >&5
6898echo "${ECHO_T}no" >&6
6899 fi
6900
6901
3f60522a
JS
6902 enablestring=
6903 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
6904echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
6905 no_cache=0
6906 # Check whether --enable-aui or --disable-aui was given.
6907if test "${enable_aui+set}" = set; then
6908 enableval="$enable_aui"
6909
6910 if test "$enableval" = yes; then
6911 ac_cv_use_aui='wxUSE_AUI=yes'
6912 else
6913 ac_cv_use_aui='wxUSE_AUI=no'
6914 fi
6915
6916else
6917
6918 LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
6919 if test "x$LINE" != x ; then
6920 eval "DEFAULT_$LINE"
6921 else
6922 no_cache=1
6923 fi
6924
6925 ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
6926
6927fi;
6928
6929 eval "$ac_cv_use_aui"
6930 if test "$no_cache" != 1; then
6931 echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
6932 fi
6933
6934 if test "$wxUSE_AUI" = yes; then
6935 echo "$as_me:$LINENO: result: yes" >&5
6936echo "${ECHO_T}yes" >&6
6937 else
6938 echo "$as_me:$LINENO: result: no" >&5
6939echo "${ECHO_T}no" >&6
6940 fi
6941
6942
a848cd7e
SC
6943 enablestring=
6944 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6945echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6946 no_cache=0
6947 # Check whether --enable-constraints or --disable-constraints was given.
6948if test "${enable_constraints+set}" = set; then
6949 enableval="$enable_constraints"
6950
6951 if test "$enableval" = yes; then
6952 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6953 else
6954 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6955 fi
6956
6957else
6958
6959 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6960 if test "x$LINE" != x ; then
6961 eval "DEFAULT_$LINE"
6962 else
6963 no_cache=1
6964 fi
6965
6966 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6967
6968fi;
6969
6970 eval "$ac_cv_use_constraints"
6971 if test "$no_cache" != 1; then
6972 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6973 fi
6974
6975 if test "$wxUSE_CONSTRAINTS" = yes; then
6976 echo "$as_me:$LINENO: result: yes" >&5
6977echo "${ECHO_T}yes" >&6
6978 else
6979 echo "$as_me:$LINENO: result: no" >&5
6980echo "${ECHO_T}no" >&6
6981 fi
6982
6983
6984 enablestring=
6985 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6986echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6987 no_cache=0
6988 # Check whether --enable-printarch or --disable-printarch was given.
6989if test "${enable_printarch+set}" = set; then
6990 enableval="$enable_printarch"
6991
6992 if test "$enableval" = yes; then
6993 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6994 else
6995 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6996 fi
6997
6998else
6999
7000 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
7001 if test "x$LINE" != x ; then
7002 eval "DEFAULT_$LINE"
7003 else
7004 no_cache=1
7005 fi
7006
7007 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7008
7009fi;
7010
7011 eval "$ac_cv_use_printarch"
7012 if test "$no_cache" != 1; then
7013 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7014 fi
7015
7016 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7017 echo "$as_me:$LINENO: result: yes" >&5
7018echo "${ECHO_T}yes" >&6
7019 else
7020 echo "$as_me:$LINENO: result: no" >&5
7021echo "${ECHO_T}no" >&6
7022 fi
7023
7024
7025 enablestring=
7026 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7027echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7028 no_cache=0
7029 # Check whether --enable-mdi or --disable-mdi was given.
7030if test "${enable_mdi+set}" = set; then
7031 enableval="$enable_mdi"
7032
7033 if test "$enableval" = yes; then
8a7b1113 7034 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 7035 else
8a7b1113 7036 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
7037 fi
7038
7039else
7040
8a7b1113 7041 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
7042 if test "x$LINE" != x ; then
7043 eval "DEFAULT_$LINE"
7044 else
7045 no_cache=1
7046 fi
7047
8a7b1113 7048 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
7049
7050fi;
7051
7052 eval "$ac_cv_use_mdi"
7053 if test "$no_cache" != 1; then
7054 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7055 fi
7056
8a7b1113
VZ
7057 if test "$wxUSE_MDI" = yes; then
7058 echo "$as_me:$LINENO: result: yes" >&5
7059echo "${ECHO_T}yes" >&6
7060 else
7061 echo "$as_me:$LINENO: result: no" >&5
7062echo "${ECHO_T}no" >&6
7063 fi
7064
7065
7066 enablestring=
7067 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7068echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7069 no_cache=0
7070 # Check whether --enable-mdidoc or --disable-mdidoc was given.
7071if test "${enable_mdidoc+set}" = set; then
7072 enableval="$enable_mdidoc"
7073
7074 if test "$enableval" = yes; then
7075 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7076 else
7077 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7078 fi
7079
7080else
7081
7082 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7083 if test "x$LINE" != x ; then
7084 eval "DEFAULT_$LINE"
7085 else
7086 no_cache=1
7087 fi
7088
7089 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7090
7091fi;
7092
7093 eval "$ac_cv_use_mdidoc"
7094 if test "$no_cache" != 1; then
7095 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7096 fi
7097
a848cd7e
SC
7098 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7099 echo "$as_me:$LINENO: result: yes" >&5
7100echo "${ECHO_T}yes" >&6
7101 else
7102 echo "$as_me:$LINENO: result: no" >&5
7103echo "${ECHO_T}no" >&6
7104 fi
7105
7106
7107 enablestring=
7108 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7109echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7110 no_cache=0
7111 # Check whether --enable-loggui or --disable-loggui was given.
7112if test "${enable_loggui+set}" = set; then
7113 enableval="$enable_loggui"
7114
7115 if test "$enableval" = yes; then
7116 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7117 else
7118 ac_cv_use_loggui='wxUSE_LOGGUI=no'
7119 fi
7120
7121else
7122
7123 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7124 if test "x$LINE" != x ; then
7125 eval "DEFAULT_$LINE"
7126 else
7127 no_cache=1
7128 fi
7129
7130 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7131
7132fi;
7133
7134 eval "$ac_cv_use_loggui"
7135 if test "$no_cache" != 1; then
7136 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7137 fi
7138
7139 if test "$wxUSE_LOGGUI" = yes; then
7140 echo "$as_me:$LINENO: result: yes" >&5
7141echo "${ECHO_T}yes" >&6
7142 else
7143 echo "$as_me:$LINENO: result: no" >&5
7144echo "${ECHO_T}no" >&6
7145 fi
7146
7147
7148 enablestring=
7149 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7150echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7151 no_cache=0
7152 # Check whether --enable-logwin or --disable-logwin was given.
7153if test "${enable_logwin+set}" = set; then
7154 enableval="$enable_logwin"
7155
7156 if test "$enableval" = yes; then
7157 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7158 else
7159 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7160 fi
7161
7162else
7163
7164 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7165 if test "x$LINE" != x ; then
7166 eval "DEFAULT_$LINE"
7167 else
7168 no_cache=1
7169 fi
7170
7171 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7172
7173fi;
7174
7175 eval "$ac_cv_use_logwin"
7176 if test "$no_cache" != 1; then
7177 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7178 fi
7179
7180 if test "$wxUSE_LOGWINDOW" = yes; then
7181 echo "$as_me:$LINENO: result: yes" >&5
7182echo "${ECHO_T}yes" >&6
7183 else
7184 echo "$as_me:$LINENO: result: no" >&5
7185echo "${ECHO_T}no" >&6
7186 fi
7187
7188
7189 enablestring=
7190 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7191echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7192 no_cache=0
7193 # Check whether --enable-logdialog or --disable-logdialog was given.
7194if test "${enable_logdialog+set}" = set; then
7195 enableval="$enable_logdialog"
7196
7197 if test "$enableval" = yes; then
7198 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7199 else
7200 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7201 fi
7202
7203else
7204
7205 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7206 if test "x$LINE" != x ; then
7207 eval "DEFAULT_$LINE"
7208 else
7209 no_cache=1
7210 fi
7211
7212 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7213
7214fi;
7215
7216 eval "$ac_cv_use_logdialog"
7217 if test "$no_cache" != 1; then
7218 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7219 fi
7220
7221 if test "$wxUSE_LOGDIALOG" = yes; then
7222 echo "$as_me:$LINENO: result: yes" >&5
7223echo "${ECHO_T}yes" >&6
7224 else
7225 echo "$as_me:$LINENO: result: no" >&5
7226echo "${ECHO_T}no" >&6
7227 fi
7228
7229
646b6ec1
VS
7230 enablestring=
7231 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7232echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7233 no_cache=0
7234 # Check whether --enable-webkit or --disable-webkit was given.
7235if test "${enable_webkit+set}" = set; then
7236 enableval="$enable_webkit"
7237
7238 if test "$enableval" = yes; then
7239 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7240 else
7241 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7242 fi
7243
7244else
7245
7246 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7247 if test "x$LINE" != x ; then
7248 eval "DEFAULT_$LINE"
7249 else
7250 no_cache=1
7251 fi
7252
7253 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7254
7255fi;
7256
7257 eval "$ac_cv_use_webkit"
7258 if test "$no_cache" != 1; then
7259 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7260 fi
7261
7262 if test "$wxUSE_WEBKIT" = yes; then
7263 echo "$as_me:$LINENO: result: yes" >&5
7264echo "${ECHO_T}yes" >&6
7265 else
7266 echo "$as_me:$LINENO: result: no" >&5
7267echo "${ECHO_T}no" >&6
7268 fi
7269
7270
91dea314
MW
7271 enablestring=
7272 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7273echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7274 no_cache=0
7275 # Check whether --enable-html or --disable-html was given.
7276if test "${enable_html+set}" = set; then
7277 enableval="$enable_html"
7278
7279 if test "$enableval" = yes; then
7280 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7281 else
7282 ac_cv_use_html='wxUSE_RICHTEXT=no'
7283 fi
7284
7285else
7286
7287 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7288 if test "x$LINE" != x ; then
7289 eval "DEFAULT_$LINE"
7290 else
7291 no_cache=1
7292 fi
7293
7294 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7295
7296fi;
7297
7298 eval "$ac_cv_use_html"
7299 if test "$no_cache" != 1; then
7300 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7301 fi
7302
7303 if test "$wxUSE_RICHTEXT" = yes; then
7304 echo "$as_me:$LINENO: result: yes" >&5
7305echo "${ECHO_T}yes" >&6
7306 else
7307 echo "$as_me:$LINENO: result: no" >&5
7308echo "${ECHO_T}no" >&6
7309 fi
7310
7311
a848cd7e
SC
7312
7313 enablestring=
7314 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7315echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7316 no_cache=0
7317 # Check whether --enable-postscript or --disable-postscript was given.
7318if test "${enable_postscript+set}" = set; then
7319 enableval="$enable_postscript"
7320
7321 if test "$enableval" = yes; then
7322 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7323 else
7324 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7325 fi
7326
7327else
7328
7329 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7330 if test "x$LINE" != x ; then
7331 eval "DEFAULT_$LINE"
7332 else
7333 no_cache=1
7334 fi
7335
7336 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7337
7338fi;
7339
7340 eval "$ac_cv_use_postscript"
7341 if test "$no_cache" != 1; then
7342 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7343 fi
7344
7345 if test "$wxUSE_POSTSCRIPT" = yes; then
7346 echo "$as_me:$LINENO: result: yes" >&5
7347echo "${ECHO_T}yes" >&6
7348 else
7349 echo "$as_me:$LINENO: result: no" >&5
7350echo "${ECHO_T}no" >&6
7351 fi
7352
7353
7354
7355
7356
7357 enablestring=
7358 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7359echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7360 no_cache=0
7361 # Check whether --enable-prologio or --disable-prologio was given.
7362if test "${enable_prologio+set}" = set; then
7363 enableval="$enable_prologio"
7364
7365 if test "$enableval" = yes; then
7366 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7367 else
7368 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7369 fi
7370
7371else
7372
7373 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7374 if test "x$LINE" != x ; then
7375 eval "DEFAULT_$LINE"
7376 else
7377 no_cache=1
7378 fi
7379
7380 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7381
7382fi;
7383
7384 eval "$ac_cv_use_prologio"
7385 if test "$no_cache" != 1; then
7386 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7387 fi
7388
7389 if test "$wxUSE_PROLOGIO" = yes; then
7390 echo "$as_me:$LINENO: result: yes" >&5
7391echo "${ECHO_T}yes" >&6
7392 else
7393 echo "$as_me:$LINENO: result: no" >&5
7394echo "${ECHO_T}no" >&6
7395 fi
7396
7397
7398 enablestring=
7399 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7400echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7401 no_cache=0
7402 # Check whether --enable-resources or --disable-resources was given.
7403if test "${enable_resources+set}" = set; then
7404 enableval="$enable_resources"
7405
7406 if test "$enableval" = yes; then
7407 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7408 else
7409 ac_cv_use_resources='wxUSE_RESOURCES=no'
7410 fi
7411
7412else
7413
7414 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7415 if test "x$LINE" != x ; then
7416 eval "DEFAULT_$LINE"
7417 else
7418 no_cache=1
7419 fi
7420
7421 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7422
7423fi;
7424
7425 eval "$ac_cv_use_resources"
7426 if test "$no_cache" != 1; then
7427 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7428 fi
7429
7430 if test "$wxUSE_RESOURCES" = yes; then
7431 echo "$as_me:$LINENO: result: yes" >&5
7432echo "${ECHO_T}yes" >&6
7433 else
7434 echo "$as_me:$LINENO: result: no" >&5
7435echo "${ECHO_T}no" >&6
7436 fi
7437
7438
7439
7440
7441 enablestring=
7442 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7443echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7444 no_cache=0
7445 # Check whether --enable-clipboard or --disable-clipboard was given.
7446if test "${enable_clipboard+set}" = set; then
7447 enableval="$enable_clipboard"
7448
7449 if test "$enableval" = yes; then
7450 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7451 else
7452 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7453 fi
7454
7455else
7456
7457 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7458 if test "x$LINE" != x ; then
7459 eval "DEFAULT_$LINE"
7460 else
7461 no_cache=1
7462 fi
7463
7464 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7465
7466fi;
7467
7468 eval "$ac_cv_use_clipboard"
7469 if test "$no_cache" != 1; then
7470 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7471 fi
7472
7473 if test "$wxUSE_CLIPBOARD" = yes; then
7474 echo "$as_me:$LINENO: result: yes" >&5
7475echo "${ECHO_T}yes" >&6
7476 else
7477 echo "$as_me:$LINENO: result: no" >&5
7478echo "${ECHO_T}no" >&6
7479 fi
7480
7481
7482 enablestring=
7483 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7484echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7485 no_cache=0
7486 # Check whether --enable-dnd or --disable-dnd was given.
7487if test "${enable_dnd+set}" = set; then
7488 enableval="$enable_dnd"
7489
7490 if test "$enableval" = yes; then
7491 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7492 else
7493 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7494 fi
7495
7496else
7497
7498 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7499 if test "x$LINE" != x ; then
7500 eval "DEFAULT_$LINE"
7501 else
7502 no_cache=1
7503 fi
7504
7505 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7506
7507fi;
7508
7509 eval "$ac_cv_use_dnd"
7510 if test "$no_cache" != 1; then
7511 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7512 fi
7513
7514 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7515 echo "$as_me:$LINENO: result: yes" >&5
7516echo "${ECHO_T}yes" >&6
7517 else
7518 echo "$as_me:$LINENO: result: no" >&5
7519echo "${ECHO_T}no" >&6
7520 fi
7521
7522
7523 enablestring=
7524 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7525echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7526 no_cache=0
7527 # Check whether --enable-metafile or --disable-metafile was given.
7528if test "${enable_metafile+set}" = set; then
7529 enableval="$enable_metafile"
7530
7531 if test "$enableval" = yes; then
7532 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7533 else
7534 ac_cv_use_metafile='wxUSE_METAFILE=no'
7535 fi
7536
7537else
7538
7539 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7540 if test "x$LINE" != x ; then
7541 eval "DEFAULT_$LINE"
7542 else
7543 no_cache=1
7544 fi
7545
7546 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7547
7548fi;
7549
7550 eval "$ac_cv_use_metafile"
7551 if test "$no_cache" != 1; then
7552 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7553 fi
7554
7555 if test "$wxUSE_METAFILE" = yes; then
7556 echo "$as_me:$LINENO: result: yes" >&5
7557echo "${ECHO_T}yes" >&6
7558 else
7559 echo "$as_me:$LINENO: result: no" >&5
7560echo "${ECHO_T}no" >&6
7561 fi
7562
7563
7564
7565
7566
7567 enablestring=
7568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7569echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7570 no_cache=0
7571 # Check whether --enable-controls or --disable-controls was given.
7572if test "${enable_controls+set}" = set; then
7573 enableval="$enable_controls"
7574
7575 if test "$enableval" = yes; then
7576 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7577 else
7578 ac_cv_use_controls='wxUSE_CONTROLS=no'
7579 fi
7580
7581else
7582
7583 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7584 if test "x$LINE" != x ; then
7585 eval "DEFAULT_$LINE"
7586 else
7587 no_cache=1
7588 fi
7589
7590 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7591
7592fi;
7593
7594 eval "$ac_cv_use_controls"
7595 if test "$no_cache" != 1; then
7596 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7597 fi
7598
7599 if test "$wxUSE_CONTROLS" = yes; then
7600 echo "$as_me:$LINENO: result: yes" >&5
7601echo "${ECHO_T}yes" >&6
7602 else
7603 echo "$as_me:$LINENO: result: no" >&5
7604echo "${ECHO_T}no" >&6
7605 fi
7606
7607
7608if test "$wxUSE_CONTROLS" = "yes"; then
7609 DEFAULT_wxUSE_ACCEL=yes
7610 DEFAULT_wxUSE_BMPBUTTON=yes
7611 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7612 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7613 DEFAULT_wxUSE_CARET=yes
7614 DEFAULT_wxUSE_COMBOBOX=yes
7615 DEFAULT_wxUSE_CHECKBOX=yes
7616 DEFAULT_wxUSE_CHECKLISTBOX=yes
7617 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7618 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684
VZ
7619 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7620 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 7621 DEFAULT_wxUSE_DATEPICKCTRL=yes
e9263684
VZ
7622 DEFAULT_wxUSE_DISPLAY=yes
7623 DEFAULT_wxUSE_DIRPICKERCTRL=yes
7624 DEFAULT_wxUSE_FILEPICKERCTRL=yes
7625 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
7626 DEFAULT_wxUSE_GAUGE=yes
7627 DEFAULT_wxUSE_GRID=yes
6954625c 7628 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 7629 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7630 DEFAULT_wxUSE_IMAGLIST=yes
7631 DEFAULT_wxUSE_LISTBOOK=yes
7632 DEFAULT_wxUSE_LISTBOX=yes
7633 DEFAULT_wxUSE_LISTCTRL=yes
7634 DEFAULT_wxUSE_NOTEBOOK=yes
7635 DEFAULT_wxUSE_RADIOBOX=yes
7636 DEFAULT_wxUSE_RADIOBTN=yes
7637 DEFAULT_wxUSE_SASH=yes
7638 DEFAULT_wxUSE_SCROLLBAR=yes
7639 DEFAULT_wxUSE_SLIDER=yes
7640 DEFAULT_wxUSE_SPINBTN=yes
7641 DEFAULT_wxUSE_SPINCTRL=yes
7642 DEFAULT_wxUSE_SPLITTER=yes
7643 DEFAULT_wxUSE_STATBMP=yes
7644 DEFAULT_wxUSE_STATBOX=yes
7645 DEFAULT_wxUSE_STATLINE=yes
7646 DEFAULT_wxUSE_STATUSBAR=yes
7647 DEFAULT_wxUSE_TAB_DIALOG=yes
7648 DEFAULT_wxUSE_TOGGLEBTN=yes
7649 DEFAULT_wxUSE_TOOLBAR=yes
7650 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7651 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7652 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7653 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 7654 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
7655 DEFAULT_wxUSE_TREECTRL=yes
7656 DEFAULT_wxUSE_POPUPWIN=yes
7657 DEFAULT_wxUSE_TIPWINDOW=yes
7658elif test "$wxUSE_CONTROLS" = "no"; then
7659 DEFAULT_wxUSE_ACCEL=no
7660 DEFAULT_wxUSE_BMPBUTTON=no
7661 DEFAULT_wxUSE_BUTTON=no
7662 DEFAULT_wxUSE_CALCTRL=no
7663 DEFAULT_wxUSE_CARET=no
7664 DEFAULT_wxUSE_COMBOBOX=no
7665 DEFAULT_wxUSE_CHECKBOX=no
7666 DEFAULT_wxUSE_CHECKLISTBOX=no
7667 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7668 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684
VZ
7669 DEFAULT_wxUSE_COLOURPICKERCTRL=no
7670 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 7671 DEFAULT_wxUSE_DATEPICKCTRL=no
e9263684
VZ
7672 DEFAULT_wxUSE_DISPLAY=no
7673 DEFAULT_wxUSE_DIRPICKERCTRL=no
7674 DEFAULT_wxUSE_FILEPICKERCTRL=no
7675 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
7676 DEFAULT_wxUSE_GAUGE=no
7677 DEFAULT_wxUSE_GRID=no
6954625c 7678 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 7679 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7680 DEFAULT_wxUSE_IMAGLIST=no
7681 DEFAULT_wxUSE_LISTBOOK=no
7682 DEFAULT_wxUSE_LISTBOX=no
7683 DEFAULT_wxUSE_LISTCTRL=no
7684 DEFAULT_wxUSE_NOTEBOOK=no
7685 DEFAULT_wxUSE_RADIOBOX=no
7686 DEFAULT_wxUSE_RADIOBTN=no
7687 DEFAULT_wxUSE_SASH=no
7688 DEFAULT_wxUSE_SCROLLBAR=no
7689 DEFAULT_wxUSE_SLIDER=no
7690 DEFAULT_wxUSE_SPINBTN=no
7691 DEFAULT_wxUSE_SPINCTRL=no
7692 DEFAULT_wxUSE_SPLITTER=no
7693 DEFAULT_wxUSE_STATBMP=no
7694 DEFAULT_wxUSE_STATBOX=no
7695 DEFAULT_wxUSE_STATLINE=no
7696 DEFAULT_wxUSE_STATUSBAR=no
7697 DEFAULT_wxUSE_TAB_DIALOG=no
7698 DEFAULT_wxUSE_TOGGLEBTN=no
7699 DEFAULT_wxUSE_TOOLBAR=no
7700 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7701 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7702 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7703 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 7704 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
7705 DEFAULT_wxUSE_TREECTRL=no
7706 DEFAULT_wxUSE_POPUPWIN=no
7707 DEFAULT_wxUSE_TIPWINDOW=no
7708fi
7709
a848cd7e
SC
7710
7711 enablestring=
7712 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7713echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7714 no_cache=0
7715 # Check whether --enable-accel or --disable-accel was given.
7716if test "${enable_accel+set}" = set; then
7717 enableval="$enable_accel"
7718
7719 if test "$enableval" = yes; then
7720 ac_cv_use_accel='wxUSE_ACCEL=yes'
7721 else
7722 ac_cv_use_accel='wxUSE_ACCEL=no'
7723 fi
7724
7725else
7726
7727 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7728 if test "x$LINE" != x ; then
7729 eval "DEFAULT_$LINE"
7730 else
7731 no_cache=1
7732 fi
7733
7734 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7735
7736fi;
7737
7738 eval "$ac_cv_use_accel"
7739 if test "$no_cache" != 1; then
7740 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7741 fi
7742
7743 if test "$wxUSE_ACCEL" = yes; then
7744 echo "$as_me:$LINENO: result: yes" >&5
7745echo "${ECHO_T}yes" >&6
7746 else
7747 echo "$as_me:$LINENO: result: no" >&5
7748echo "${ECHO_T}no" >&6
7749 fi
7750
7751
7752 enablestring=
7753 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7754echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7755 no_cache=0
7756 # Check whether --enable-button or --disable-button was given.
7757if test "${enable_button+set}" = set; then
7758 enableval="$enable_button"
7759
7760 if test "$enableval" = yes; then
7761 ac_cv_use_button='wxUSE_BUTTON=yes'
7762 else
7763 ac_cv_use_button='wxUSE_BUTTON=no'
7764 fi
7765
7766else
7767
7768 LINE=`grep "wxUSE_BUTTON" ${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_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7776
7777fi;
7778
7779 eval "$ac_cv_use_button"
7780 if test "$no_cache" != 1; then
7781 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7782 fi
7783
7784 if test "$wxUSE_BUTTON" = 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}-bmpbutton" >&5
7795echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7796 no_cache=0
7797 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7798if test "${enable_bmpbutton+set}" = set; then
7799 enableval="$enable_bmpbutton"
7800
7801 if test "$enableval" = yes; then
7802 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7803 else
7804 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7805 fi
7806
7807else
7808
7809 LINE=`grep "wxUSE_BMPBUTTON" ${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_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7817
7818fi;
7819
7820 eval "$ac_cv_use_bmpbutton"
7821 if test "$no_cache" != 1; then
7822 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7823 fi
7824
7825 if test "$wxUSE_BMPBUTTON" = 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}-calendar" >&5
7836echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7837 no_cache=0
7838 # Check whether --enable-calendar or --disable-calendar was given.
7839if test "${enable_calendar+set}" = set; then
7840 enableval="$enable_calendar"
7841
7842 if test "$enableval" = yes; then
7843 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7844 else
7845 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7846 fi
7847
7848else
7849
7850 LINE=`grep "wxUSE_CALCTRL" ${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_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7858
7859fi;
7860
7861 eval "$ac_cv_use_calendar"
7862 if test "$no_cache" != 1; then
7863 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7864 fi
7865
7866 if test "$wxUSE_CALCTRL" = 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 enablestring=
7876 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7877echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7878 no_cache=0
7879 # Check whether --enable-caret or --disable-caret was given.
7880if test "${enable_caret+set}" = set; then
7881 enableval="$enable_caret"
7882
7883 if test "$enableval" = yes; then
7884 ac_cv_use_caret='wxUSE_CARET=yes'
7885 else
7886 ac_cv_use_caret='wxUSE_CARET=no'
7887 fi
7888
7889else
7890
7891 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7892 if test "x$LINE" != x ; then
7893 eval "DEFAULT_$LINE"
7894 else
7895 no_cache=1
7896 fi
7897
7898 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7899
7900fi;
7901
7902 eval "$ac_cv_use_caret"
7903 if test "$no_cache" != 1; then
7904 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7905 fi
7906
7907 if test "$wxUSE_CARET" = yes; then
7908 echo "$as_me:$LINENO: result: yes" >&5
7909echo "${ECHO_T}yes" >&6
7910 else
7911 echo "$as_me:$LINENO: result: no" >&5
7912echo "${ECHO_T}no" >&6
7913 fi
7914
7915
7916 enablestring=
7917 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7918echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7919 no_cache=0
7920 # Check whether --enable-checkbox or --disable-checkbox was given.
7921if test "${enable_checkbox+set}" = set; then
7922 enableval="$enable_checkbox"
7923
7924 if test "$enableval" = yes; then
7925 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7926 else
7927 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7928 fi
7929
7930else
7931
7932 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7933 if test "x$LINE" != x ; then
7934 eval "DEFAULT_$LINE"
7935 else
7936 no_cache=1
7937 fi
7938
7939 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7940
7941fi;
7942
7943 eval "$ac_cv_use_checkbox"
7944 if test "$no_cache" != 1; then
7945 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7946 fi
7947
7948 if test "$wxUSE_CHECKBOX" = yes; then
7949 echo "$as_me:$LINENO: result: yes" >&5
7950echo "${ECHO_T}yes" >&6
7951 else
7952 echo "$as_me:$LINENO: result: no" >&5
7953echo "${ECHO_T}no" >&6
7954 fi
7955
7956
7957 enablestring=
7958 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7959echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7960 no_cache=0
7961 # Check whether --enable-checklst or --disable-checklst was given.
7962if test "${enable_checklst+set}" = set; then
7963 enableval="$enable_checklst"
7964
7965 if test "$enableval" = yes; then
7966 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7967 else
7968 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7969 fi
7970
7971else
7972
7973 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7974 if test "x$LINE" != x ; then
7975 eval "DEFAULT_$LINE"
7976 else
7977 no_cache=1
7978 fi
7979
7980 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7981
7982fi;
7983
7984 eval "$ac_cv_use_checklst"
7985 if test "$no_cache" != 1; then
7986 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7987 fi
7988
7989 if test "$wxUSE_CHECKLST" = yes; then
7990 echo "$as_me:$LINENO: result: yes" >&5
7991echo "${ECHO_T}yes" >&6
7992 else
7993 echo "$as_me:$LINENO: result: no" >&5
7994echo "${ECHO_T}no" >&6
7995 fi
7996
7997
7998 enablestring=
7999 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8000echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
8001 no_cache=0
8002 # Check whether --enable-choice or --disable-choice was given.
8003if test "${enable_choice+set}" = set; then
8004 enableval="$enable_choice"
8005
8006 if test "$enableval" = yes; then
8007 ac_cv_use_choice='wxUSE_CHOICE=yes'
8008 else
8009 ac_cv_use_choice='wxUSE_CHOICE=no'
8010 fi
8011
8012else
8013
8014 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8015 if test "x$LINE" != x ; then
8016 eval "DEFAULT_$LINE"
8017 else
8018 no_cache=1
8019 fi
8020
8021 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8022
8023fi;
8024
8025 eval "$ac_cv_use_choice"
8026 if test "$no_cache" != 1; then
8027 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8028 fi
8029
8030 if test "$wxUSE_CHOICE" = yes; then
8031 echo "$as_me:$LINENO: result: yes" >&5
8032echo "${ECHO_T}yes" >&6
8033 else
8034 echo "$as_me:$LINENO: result: no" >&5
8035echo "${ECHO_T}no" >&6
8036 fi
8037
8038
92bbdbcd
WS
8039 enablestring=
8040 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8041echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8042 no_cache=0
8043 # Check whether --enable-choicebook or --disable-choicebook was given.
8044if test "${enable_choicebook+set}" = set; then
8045 enableval="$enable_choicebook"
8046
8047 if test "$enableval" = yes; then
8048 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8049 else
8050 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8051 fi
8052
8053else
8054
8055 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8056 if test "x$LINE" != x ; then
8057 eval "DEFAULT_$LINE"
8058 else
8059 no_cache=1
8060 fi
8061
8062 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8063
8064fi;
8065
8066 eval "$ac_cv_use_choicebook"
8067 if test "$no_cache" != 1; then
8068 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8069 fi
8070
8071 if test "$wxUSE_CHOICEBOOK" = yes; then
8072 echo "$as_me:$LINENO: result: yes" >&5
8073echo "${ECHO_T}yes" >&6
8074 else
8075 echo "$as_me:$LINENO: result: no" >&5
8076echo "${ECHO_T}no" >&6
8077 fi
8078
8079
e9263684
VZ
8080 enablestring=
8081 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8082echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8083 no_cache=0
8084 # Check whether --enable-colourpicker or --disable-colourpicker was given.
8085if test "${enable_colourpicker+set}" = set; then
8086 enableval="$enable_colourpicker"
8087
8088 if test "$enableval" = yes; then
8089 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8090 else
8091 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8092 fi
8093
8094else
8095
8096 LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8097 if test "x$LINE" != x ; then
8098 eval "DEFAULT_$LINE"
8099 else
8100 no_cache=1
8101 fi
8102
8103 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8104
8105fi;
8106
8107 eval "$ac_cv_use_colourpicker"
8108 if test "$no_cache" != 1; then
8109 echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8110 fi
8111
8112 if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8113 echo "$as_me:$LINENO: result: yes" >&5
8114echo "${ECHO_T}yes" >&6
8115 else
8116 echo "$as_me:$LINENO: result: no" >&5
8117echo "${ECHO_T}no" >&6
8118 fi
8119
8120
a848cd7e
SC
8121 enablestring=
8122 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8123echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8124 no_cache=0
8125 # Check whether --enable-combobox or --disable-combobox was given.
8126if test "${enable_combobox+set}" = set; then
8127 enableval="$enable_combobox"
8128
8129 if test "$enableval" = yes; then
8130 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8131 else
8132 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8133 fi
8134
8135else
8136
8137 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8138 if test "x$LINE" != x ; then
8139 eval "DEFAULT_$LINE"
8140 else
8141 no_cache=1
8142 fi
8143
8144 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8145
8146fi;
8147
8148 eval "$ac_cv_use_combobox"
8149 if test "$no_cache" != 1; then
8150 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8151 fi
8152
8153 if test "$wxUSE_COMBOBOX" = yes; then
8154 echo "$as_me:$LINENO: result: yes" >&5
8155echo "${ECHO_T}yes" >&6
8156 else
8157 echo "$as_me:$LINENO: result: no" >&5
8158echo "${ECHO_T}no" >&6
8159 fi
8160
8161
642bcba9 8162 enablestring=
a57d600f
VZ
8163 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8164echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
642bcba9 8165 no_cache=0
a57d600f
VZ
8166 # Check whether --enable-comboctrl or --disable-comboctrl was given.
8167if test "${enable_comboctrl+set}" = set; then
8168 enableval="$enable_comboctrl"
642bcba9
VZ
8169
8170 if test "$enableval" = yes; then
a57d600f 8171 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
642bcba9 8172 else
a57d600f 8173 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
642bcba9
VZ
8174 fi
8175
8176else
8177
a57d600f 8178 LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
642bcba9
VZ
8179 if test "x$LINE" != x ; then
8180 eval "DEFAULT_$LINE"
8181 else
8182 no_cache=1
8183 fi
8184
a57d600f 8185 ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
642bcba9
VZ
8186
8187fi;
8188
a57d600f 8189 eval "$ac_cv_use_comboctrl"
642bcba9 8190 if test "$no_cache" != 1; then
a57d600f 8191 echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8192 fi
8193
a57d600f 8194 if test "$wxUSE_COMBOCTRL" = yes; then
642bcba9
VZ
8195 echo "$as_me:$LINENO: result: yes" >&5
8196echo "${ECHO_T}yes" >&6
8197 else
8198 echo "$as_me:$LINENO: result: no" >&5
8199echo "${ECHO_T}no" >&6
8200 fi
8201
8202
da98e9be
VZ
8203 enablestring=
8204 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8205echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8206 no_cache=0
8207 # Check whether --enable-datepick or --disable-datepick was given.
8208if test "${enable_datepick+set}" = set; then
8209 enableval="$enable_datepick"
8210
8211 if test "$enableval" = yes; then
8212 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8213 else
8214 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8215 fi
8216
8217else
8218
8219 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8220 if test "x$LINE" != x ; then
8221 eval "DEFAULT_$LINE"
8222 else
8223 no_cache=1
8224 fi
8225
8226 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8227
8228fi;
8229
8230 eval "$ac_cv_use_datepick"
8231 if test "$no_cache" != 1; then
8232 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8233 fi
8234
8235 if test "$wxUSE_DATEPICKCTRL" = yes; then
8236 echo "$as_me:$LINENO: result: yes" >&5
8237echo "${ECHO_T}yes" >&6
8238 else
8239 echo "$as_me:$LINENO: result: no" >&5
8240echo "${ECHO_T}no" >&6
8241 fi
8242
8243
e9263684
VZ
8244 enablestring=
8245 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8246echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8247 no_cache=0
8248 # Check whether --enable-dirpicker or --disable-dirpicker was given.
8249if test "${enable_dirpicker+set}" = set; then
8250 enableval="$enable_dirpicker"
8251
8252 if test "$enableval" = yes; then
8253 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8254 else
8255 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8256 fi
8257
8258else
8259
8260 LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8261 if test "x$LINE" != x ; then
8262 eval "DEFAULT_$LINE"
8263 else
8264 no_cache=1
8265 fi
8266
8267 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8268
8269fi;
8270
8271 eval "$ac_cv_use_dirpicker"
8272 if test "$no_cache" != 1; then
8273 echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8274 fi
8275
8276 if test "$wxUSE_DIRPICKERCTRL" = yes; then
8277 echo "$as_me:$LINENO: result: yes" >&5
8278echo "${ECHO_T}yes" >&6
8279 else
8280 echo "$as_me:$LINENO: result: no" >&5
8281echo "${ECHO_T}no" >&6
8282 fi
8283
8284
a848cd7e
SC
8285 enablestring=
8286 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8287echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8288 no_cache=0
8289 # Check whether --enable-display or --disable-display was given.
8290if test "${enable_display+set}" = set; then
8291 enableval="$enable_display"
8292
8293 if test "$enableval" = yes; then
8294 ac_cv_use_display='wxUSE_DISPLAY=yes'
8295 else
8296 ac_cv_use_display='wxUSE_DISPLAY=no'
8297 fi
8298
8299else
8300
8301 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8302 if test "x$LINE" != x ; then
8303 eval "DEFAULT_$LINE"
8304 else
8305 no_cache=1
8306 fi
8307
8308 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8309
8310fi;
8311
8312 eval "$ac_cv_use_display"
8313 if test "$no_cache" != 1; then
8314 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8315 fi
8316
8317 if test "$wxUSE_DISPLAY" = yes; then
8318 echo "$as_me:$LINENO: result: yes" >&5
8319echo "${ECHO_T}yes" >&6
8320 else
8321 echo "$as_me:$LINENO: result: no" >&5
8322echo "${ECHO_T}no" >&6
8323 fi
8324
8325
e9263684
VZ
8326 enablestring=
8327 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8328echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8329 no_cache=0
8330 # Check whether --enable-filepicker or --disable-filepicker was given.
8331if test "${enable_filepicker+set}" = set; then
8332 enableval="$enable_filepicker"
8333
8334 if test "$enableval" = yes; then
8335 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8336 else
8337 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8338 fi
8339
8340else
8341
8342 LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8343 if test "x$LINE" != x ; then
8344 eval "DEFAULT_$LINE"
8345 else
8346 no_cache=1
8347 fi
8348
8349 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8350
8351fi;
8352
8353 eval "$ac_cv_use_filepicker"
8354 if test "$no_cache" != 1; then
8355 echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8356 fi
8357
8358 if test "$wxUSE_FILEPICKERCTRL" = yes; then
8359 echo "$as_me:$LINENO: result: yes" >&5
8360echo "${ECHO_T}yes" >&6
8361 else
8362 echo "$as_me:$LINENO: result: no" >&5
8363echo "${ECHO_T}no" >&6
8364 fi
8365
8366
8367 enablestring=
8368 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8369echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8370 no_cache=0
8371 # Check whether --enable-fontpicker or --disable-fontpicker was given.
8372if test "${enable_fontpicker+set}" = set; then
8373 enableval="$enable_fontpicker"
8374
8375 if test "$enableval" = yes; then
8376 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8377 else
8378 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8379 fi
8380
8381else
8382
8383 LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8384 if test "x$LINE" != x ; then
8385 eval "DEFAULT_$LINE"
8386 else
8387 no_cache=1
8388 fi
8389
8390 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8391
8392fi;
8393
8394 eval "$ac_cv_use_fontpicker"
8395 if test "$no_cache" != 1; then
8396 echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8397 fi
8398
8399 if test "$wxUSE_FONTPICKERCTRL" = yes; then
8400 echo "$as_me:$LINENO: result: yes" >&5
8401echo "${ECHO_T}yes" >&6
8402 else
8403 echo "$as_me:$LINENO: result: no" >&5
8404echo "${ECHO_T}no" >&6
8405 fi
8406
8407
a848cd7e
SC
8408 enablestring=
8409 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8410echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8411 no_cache=0
8412 # Check whether --enable-gauge or --disable-gauge was given.
8413if test "${enable_gauge+set}" = set; then
8414 enableval="$enable_gauge"
8415
8416 if test "$enableval" = yes; then
8417 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8418 else
8419 ac_cv_use_gauge='wxUSE_GAUGE=no'
8420 fi
8421
8422else
8423
8424 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8425 if test "x$LINE" != x ; then
8426 eval "DEFAULT_$LINE"
8427 else
8428 no_cache=1
8429 fi
8430
8431 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8432
8433fi;
8434
8435 eval "$ac_cv_use_gauge"
8436 if test "$no_cache" != 1; then
8437 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8438 fi
8439
8440 if test "$wxUSE_GAUGE" = yes; then
8441 echo "$as_me:$LINENO: result: yes" >&5
8442echo "${ECHO_T}yes" >&6
8443 else
8444 echo "$as_me:$LINENO: result: no" >&5
8445echo "${ECHO_T}no" >&6
8446 fi
8447
8448
8449 enablestring=
8450 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8451echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8452 no_cache=0
8453 # Check whether --enable-grid or --disable-grid was given.
8454if test "${enable_grid+set}" = set; then
8455 enableval="$enable_grid"
8456
8457 if test "$enableval" = yes; then
8458 ac_cv_use_grid='wxUSE_GRID=yes'
8459 else
8460 ac_cv_use_grid='wxUSE_GRID=no'
8461 fi
8462
8463else
8464
8465 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8466 if test "x$LINE" != x ; then
8467 eval "DEFAULT_$LINE"
8468 else
8469 no_cache=1
8470 fi
8471
8472 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8473
8474fi;
8475
8476 eval "$ac_cv_use_grid"
8477 if test "$no_cache" != 1; then
8478 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8479 fi
8480
8481 if test "$wxUSE_GRID" = yes; then
8482 echo "$as_me:$LINENO: result: yes" >&5
8483echo "${ECHO_T}yes" >&6
8484 else
8485 echo "$as_me:$LINENO: result: no" >&5
8486echo "${ECHO_T}no" >&6
8487 fi
8488
8489
20e34ecc
RR
8490 enablestring=
8491 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8492echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8493 no_cache=0
8494 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8495if test "${enable_dataviewctrl+set}" = set; then
8496 enableval="$enable_dataviewctrl"
8497
8498 if test "$enableval" = yes; then
8499 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8500 else
8501 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8502 fi
8503
8504else
8505
8506 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8507 if test "x$LINE" != x ; then
8508 eval "DEFAULT_$LINE"
8509 else
8510 no_cache=1
8511 fi
8512
8513 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8514
8515fi;
8516
8517 eval "$ac_cv_use_dataviewctrl"
8518 if test "$no_cache" != 1; then
8519 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8520 fi
8521
8522 if test "$wxUSE_DATAVIEWCTRL" = yes; then
8523 echo "$as_me:$LINENO: result: yes" >&5
8524echo "${ECHO_T}yes" >&6
8525 else
8526 echo "$as_me:$LINENO: result: no" >&5
8527echo "${ECHO_T}no" >&6
8528 fi
8529
8530
6954625c
VZ
8531 enablestring=
8532 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
8533echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
8534 no_cache=0
8535 # Check whether --enable-hyperlink or --disable-hyperlink was given.
8536if test "${enable_hyperlink+set}" = set; then
8537 enableval="$enable_hyperlink"
8538
8539 if test "$enableval" = yes; then
8540 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
8541 else
8542 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
8543 fi
8544
8545else
8546
8547 LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
8548 if test "x$LINE" != x ; then
8549 eval "DEFAULT_$LINE"
8550 else
8551 no_cache=1
8552 fi
8553
8554 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
8555
8556fi;
8557
8558 eval "$ac_cv_use_hyperlink"
8559 if test "$no_cache" != 1; then
8560 echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
8561 fi
8562
8563 if test "$wxUSE_HYPERLINKCTRL" = yes; then
8564 echo "$as_me:$LINENO: result: yes" >&5
8565echo "${ECHO_T}yes" >&6
8566 else
8567 echo "$as_me:$LINENO: result: no" >&5
8568echo "${ECHO_T}no" >&6
8569 fi
8570
8571
a848cd7e
SC
8572 enablestring=
8573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8574echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8575 no_cache=0
8576 # Check whether --enable-imaglist or --disable-imaglist was given.
8577if test "${enable_imaglist+set}" = set; then
8578 enableval="$enable_imaglist"
8579
8580 if test "$enableval" = yes; then
8581 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8582 else
8583 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8584 fi
8585
8586else
8587
8588 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8589 if test "x$LINE" != x ; then
8590 eval "DEFAULT_$LINE"
8591 else
8592 no_cache=1
8593 fi
8594
8595 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8596
8597fi;
8598
8599 eval "$ac_cv_use_imaglist"
8600 if test "$no_cache" != 1; then
8601 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8602 fi
8603
8604 if test "$wxUSE_IMAGLIST" = yes; then
8605 echo "$as_me:$LINENO: result: yes" >&5
8606echo "${ECHO_T}yes" >&6
8607 else
8608 echo "$as_me:$LINENO: result: no" >&5
8609echo "${ECHO_T}no" >&6
8610 fi
8611
8612
8613 enablestring=
8614 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8615echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8616 no_cache=0
8617 # Check whether --enable-listbook or --disable-listbook was given.
8618if test "${enable_listbook+set}" = set; then
8619 enableval="$enable_listbook"
8620
8621 if test "$enableval" = yes; then
8622 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8623 else
8624 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8625 fi
8626
8627else
8628
8629 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8630 if test "x$LINE" != x ; then
8631 eval "DEFAULT_$LINE"
8632 else
8633 no_cache=1
8634 fi
8635
8636 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8637
8638fi;
8639
8640 eval "$ac_cv_use_listbook"
8641 if test "$no_cache" != 1; then
8642 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8643 fi
8644
8645 if test "$wxUSE_LISTBOOK" = yes; then
8646 echo "$as_me:$LINENO: result: yes" >&5
8647echo "${ECHO_T}yes" >&6
8648 else
8649 echo "$as_me:$LINENO: result: no" >&5
8650echo "${ECHO_T}no" >&6
8651 fi
8652
8653
8654 enablestring=
8655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8656echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8657 no_cache=0
8658 # Check whether --enable-listbox or --disable-listbox was given.
8659if test "${enable_listbox+set}" = set; then
8660 enableval="$enable_listbox"
8661
8662 if test "$enableval" = yes; then
8663 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8664 else
8665 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8666 fi
8667
8668else
8669
8670 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8671 if test "x$LINE" != x ; then
8672 eval "DEFAULT_$LINE"
8673 else
8674 no_cache=1
8675 fi
8676
8677 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8678
8679fi;
8680
8681 eval "$ac_cv_use_listbox"
8682 if test "$no_cache" != 1; then
8683 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8684 fi
8685
8686 if test "$wxUSE_LISTBOX" = yes; then
8687 echo "$as_me:$LINENO: result: yes" >&5
8688echo "${ECHO_T}yes" >&6
8689 else
8690 echo "$as_me:$LINENO: result: no" >&5
8691echo "${ECHO_T}no" >&6
8692 fi
8693
8694
8695 enablestring=
8696 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8697echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8698 no_cache=0
8699 # Check whether --enable-listctrl or --disable-listctrl was given.
8700if test "${enable_listctrl+set}" = set; then
8701 enableval="$enable_listctrl"
8702
8703 if test "$enableval" = yes; then
8704 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8705 else
8706 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8707 fi
8708
8709else
8710
8711 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8712 if test "x$LINE" != x ; then
8713 eval "DEFAULT_$LINE"
8714 else
8715 no_cache=1
8716 fi
8717
8718 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8719
8720fi;
8721
8722 eval "$ac_cv_use_listctrl"
8723 if test "$no_cache" != 1; then
8724 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8725 fi
8726
8727 if test "$wxUSE_LISTCTRL" = yes; then
8728 echo "$as_me:$LINENO: result: yes" >&5
8729echo "${ECHO_T}yes" >&6
8730 else
8731 echo "$as_me:$LINENO: result: no" >&5
8732echo "${ECHO_T}no" >&6
8733 fi
8734
8735
8736 enablestring=
8737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8738echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8739 no_cache=0
8740 # Check whether --enable-notebook or --disable-notebook was given.
8741if test "${enable_notebook+set}" = set; then
8742 enableval="$enable_notebook"
8743
8744 if test "$enableval" = yes; then
8745 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8746 else
8747 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8748 fi
8749
8750else
8751
8752 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8753 if test "x$LINE" != x ; then
8754 eval "DEFAULT_$LINE"
8755 else
8756 no_cache=1
8757 fi
8758
8759 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8760
8761fi;
8762
8763 eval "$ac_cv_use_notebook"
8764 if test "$no_cache" != 1; then
8765 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8766 fi
8767
8768 if test "$wxUSE_NOTEBOOK" = yes; then
8769 echo "$as_me:$LINENO: result: yes" >&5
8770echo "${ECHO_T}yes" >&6
8771 else
8772 echo "$as_me:$LINENO: result: no" >&5
8773echo "${ECHO_T}no" >&6
8774 fi
8775
8776
642bcba9 8777 enablestring=
a57d600f
VZ
8778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
8779echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
642bcba9 8780 no_cache=0
a57d600f
VZ
8781 # Check whether --enable-odcombobox or --disable-odcombobox was given.
8782if test "${enable_odcombobox+set}" = set; then
8783 enableval="$enable_odcombobox"
642bcba9
VZ
8784
8785 if test "$enableval" = yes; then
a57d600f 8786 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
642bcba9 8787 else
a57d600f 8788 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
642bcba9
VZ
8789 fi
8790
8791else
8792
a57d600f 8793 LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
642bcba9
VZ
8794 if test "x$LINE" != x ; then
8795 eval "DEFAULT_$LINE"
8796 else
8797 no_cache=1
8798 fi
8799
a57d600f 8800 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
642bcba9
VZ
8801
8802fi;
8803
a57d600f 8804 eval "$ac_cv_use_odcombobox"
642bcba9 8805 if test "$no_cache" != 1; then
a57d600f 8806 echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8807 fi
8808
a57d600f 8809 if test "$wxUSE_ODCOMBOBOX" = yes; then
642bcba9
VZ
8810 echo "$as_me:$LINENO: result: yes" >&5
8811echo "${ECHO_T}yes" >&6
8812 else
8813 echo "$as_me:$LINENO: result: no" >&5
8814echo "${ECHO_T}no" >&6
8815 fi
8816
8817
a848cd7e
SC
8818 enablestring=
8819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8820echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8821 no_cache=0
8822 # Check whether --enable-radiobox or --disable-radiobox was given.
8823if test "${enable_radiobox+set}" = set; then
8824 enableval="$enable_radiobox"
8825
8826 if test "$enableval" = yes; then
8827 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8828 else
8829 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8830 fi
8831
8832else
8833
8834 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8835 if test "x$LINE" != x ; then
8836 eval "DEFAULT_$LINE"
8837 else
8838 no_cache=1
8839 fi
8840
8841 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8842
8843fi;
8844
8845 eval "$ac_cv_use_radiobox"
8846 if test "$no_cache" != 1; then
8847 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8848 fi
8849
8850 if test "$wxUSE_RADIOBOX" = yes; then
8851 echo "$as_me:$LINENO: result: yes" >&5
8852echo "${ECHO_T}yes" >&6
8853 else
8854 echo "$as_me:$LINENO: result: no" >&5
8855echo "${ECHO_T}no" >&6
8856 fi
8857
8858
8859 enablestring=
8860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8861echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8862 no_cache=0
8863 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8864if test "${enable_radiobtn+set}" = set; then
8865 enableval="$enable_radiobtn"
8866
8867 if test "$enableval" = yes; then
8868 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8869 else
8870 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8871 fi
8872
8873else
8874
8875 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8876 if test "x$LINE" != x ; then
8877 eval "DEFAULT_$LINE"
8878 else
8879 no_cache=1
8880 fi
8881
8882 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8883
8884fi;
8885
8886 eval "$ac_cv_use_radiobtn"
8887 if test "$no_cache" != 1; then
8888 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8889 fi
8890
8891 if test "$wxUSE_RADIOBTN" = yes; then
8892 echo "$as_me:$LINENO: result: yes" >&5
8893echo "${ECHO_T}yes" >&6
8894 else
8895 echo "$as_me:$LINENO: result: no" >&5
8896echo "${ECHO_T}no" >&6
8897 fi
8898
8899
8900 enablestring=
8901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8902echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8903 no_cache=0
8904 # Check whether --enable-sash or --disable-sash was given.
8905if test "${enable_sash+set}" = set; then
8906 enableval="$enable_sash"
8907
8908 if test "$enableval" = yes; then
8909 ac_cv_use_sash='wxUSE_SASH=yes'
8910 else
8911 ac_cv_use_sash='wxUSE_SASH=no'
8912 fi
8913
8914else
8915
8916 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8917 if test "x$LINE" != x ; then
8918 eval "DEFAULT_$LINE"
8919 else
8920 no_cache=1
8921 fi
8922
8923 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8924
8925fi;
8926
8927 eval "$ac_cv_use_sash"
8928 if test "$no_cache" != 1; then
8929 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8930 fi
8931
8932 if test "$wxUSE_SASH" = yes; then
8933 echo "$as_me:$LINENO: result: yes" >&5
8934echo "${ECHO_T}yes" >&6
8935 else
8936 echo "$as_me:$LINENO: result: no" >&5
8937echo "${ECHO_T}no" >&6
8938 fi
8939
8940
8941 enablestring=
8942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8943echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8944 no_cache=0
8945 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8946if test "${enable_scrollbar+set}" = set; then
8947 enableval="$enable_scrollbar"
8948
8949 if test "$enableval" = yes; then
8950 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8951 else
8952 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8953 fi
8954
8955else
8956
8957 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8958 if test "x$LINE" != x ; then
8959 eval "DEFAULT_$LINE"
8960 else
8961 no_cache=1
8962 fi
8963
8964 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8965
8966fi;
8967
8968 eval "$ac_cv_use_scrollbar"
8969 if test "$no_cache" != 1; then
8970 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8971 fi
8972
8973 if test "$wxUSE_SCROLLBAR" = yes; then
8974 echo "$as_me:$LINENO: result: yes" >&5
8975echo "${ECHO_T}yes" >&6
8976 else
8977 echo "$as_me:$LINENO: result: no" >&5
8978echo "${ECHO_T}no" >&6
8979 fi
8980
8981
8982 enablestring=
8983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8984echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8985 no_cache=0
8986 # Check whether --enable-slider or --disable-slider was given.
8987if test "${enable_slider+set}" = set; then
8988 enableval="$enable_slider"
8989
8990 if test "$enableval" = yes; then
8991 ac_cv_use_slider='wxUSE_SLIDER=yes'
8992 else
8993 ac_cv_use_slider='wxUSE_SLIDER=no'
8994 fi
8995
8996else
8997
8998 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8999 if test "x$LINE" != x ; then
9000 eval "DEFAULT_$LINE"
9001 else
9002 no_cache=1
9003 fi
9004
9005 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9006
9007fi;
9008
9009 eval "$ac_cv_use_slider"
9010 if test "$no_cache" != 1; then
9011 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9012 fi
9013
9014 if test "$wxUSE_SLIDER" = yes; then
9015 echo "$as_me:$LINENO: result: yes" >&5
9016echo "${ECHO_T}yes" >&6
9017 else
9018 echo "$as_me:$LINENO: result: no" >&5
9019echo "${ECHO_T}no" >&6
9020 fi
9021
9022
9023 enablestring=
9024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9025echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9026 no_cache=0
9027 # Check whether --enable-spinbtn or --disable-spinbtn was given.
9028if test "${enable_spinbtn+set}" = set; then
9029 enableval="$enable_spinbtn"
9030
9031 if test "$enableval" = yes; then
9032 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9033 else
9034 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9035 fi
9036
9037else
9038
9039 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9040 if test "x$LINE" != x ; then
9041 eval "DEFAULT_$LINE"
9042 else
9043 no_cache=1
9044 fi
9045
9046 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9047
9048fi;
9049
9050 eval "$ac_cv_use_spinbtn"
9051 if test "$no_cache" != 1; then
9052 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9053 fi
9054
9055 if test "$wxUSE_SPINBTN" = yes; then
9056 echo "$as_me:$LINENO: result: yes" >&5
9057echo "${ECHO_T}yes" >&6
9058 else
9059 echo "$as_me:$LINENO: result: no" >&5
9060echo "${ECHO_T}no" >&6
9061 fi
9062
9063
9064 enablestring=
9065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9066echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9067 no_cache=0
9068 # Check whether --enable-spinctrl or --disable-spinctrl was given.
9069if test "${enable_spinctrl+set}" = set; then
9070 enableval="$enable_spinctrl"
9071
9072 if test "$enableval" = yes; then
9073 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9074 else
9075 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9076 fi
9077
9078else
9079
9080 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9081 if test "x$LINE" != x ; then
9082 eval "DEFAULT_$LINE"
9083 else
9084 no_cache=1
9085 fi
9086
9087 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9088
9089fi;
9090
9091 eval "$ac_cv_use_spinctrl"
9092 if test "$no_cache" != 1; then
9093 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9094 fi
9095
9096 if test "$wxUSE_SPINCTRL" = yes; then
9097 echo "$as_me:$LINENO: result: yes" >&5
9098echo "${ECHO_T}yes" >&6
9099 else
9100 echo "$as_me:$LINENO: result: no" >&5
9101echo "${ECHO_T}no" >&6
9102 fi
9103
9104
9105 enablestring=
9106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9107echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9108 no_cache=0
9109 # Check whether --enable-splitter or --disable-splitter was given.
9110if test "${enable_splitter+set}" = set; then
9111 enableval="$enable_splitter"
9112
9113 if test "$enableval" = yes; then
9114 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9115 else
9116 ac_cv_use_splitter='wxUSE_SPLITTER=no'
9117 fi
9118
9119else
9120
9121 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9122 if test "x$LINE" != x ; then
9123 eval "DEFAULT_$LINE"
9124 else
9125 no_cache=1
9126 fi
9127
9128 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9129
9130fi;
9131
9132 eval "$ac_cv_use_splitter"
9133 if test "$no_cache" != 1; then
9134 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9135 fi
9136
9137 if test "$wxUSE_SPLITTER" = yes; then
9138 echo "$as_me:$LINENO: result: yes" >&5
9139echo "${ECHO_T}yes" >&6
9140 else
9141 echo "$as_me:$LINENO: result: no" >&5
9142echo "${ECHO_T}no" >&6
9143 fi
9144
9145
9146 enablestring=
9147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9148echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9149 no_cache=0
9150 # Check whether --enable-statbmp or --disable-statbmp was given.
9151if test "${enable_statbmp+set}" = set; then
9152 enableval="$enable_statbmp"
9153
9154 if test "$enableval" = yes; then
9155 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9156 else
9157 ac_cv_use_statbmp='wxUSE_STATBMP=no'
9158 fi
9159
9160else
9161
9162 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9163 if test "x$LINE" != x ; then
9164 eval "DEFAULT_$LINE"
9165 else
9166 no_cache=1
9167 fi
9168
9169 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9170
9171fi;
9172
9173 eval "$ac_cv_use_statbmp"
9174 if test "$no_cache" != 1; then
9175 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9176 fi
9177
9178 if test "$wxUSE_STATBMP" = yes; then
9179 echo "$as_me:$LINENO: result: yes" >&5
9180echo "${ECHO_T}yes" >&6
9181 else
9182 echo "$as_me:$LINENO: result: no" >&5
9183echo "${ECHO_T}no" >&6
9184 fi
9185
9186
9187 enablestring=
9188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9189echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9190 no_cache=0
9191 # Check whether --enable-statbox or --disable-statbox was given.
9192if test "${enable_statbox+set}" = set; then
9193 enableval="$enable_statbox"
9194
9195 if test "$enableval" = yes; then
9196 ac_cv_use_statbox='wxUSE_STATBOX=yes'
9197 else
9198 ac_cv_use_statbox='wxUSE_STATBOX=no'
9199 fi
9200
9201else
9202
9203 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9204 if test "x$LINE" != x ; then
9205 eval "DEFAULT_$LINE"
9206 else
9207 no_cache=1
9208 fi
9209
9210 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9211
9212fi;
9213
9214 eval "$ac_cv_use_statbox"
9215 if test "$no_cache" != 1; then
9216 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9217 fi
9218
9219 if test "$wxUSE_STATBOX" = yes; then
9220 echo "$as_me:$LINENO: result: yes" >&5
9221echo "${ECHO_T}yes" >&6
9222 else
9223 echo "$as_me:$LINENO: result: no" >&5
9224echo "${ECHO_T}no" >&6
9225 fi
9226
9227
9228 enablestring=
9229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9230echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9231 no_cache=0
9232 # Check whether --enable-statline or --disable-statline was given.
9233if test "${enable_statline+set}" = set; then
9234 enableval="$enable_statline"
9235
9236 if test "$enableval" = yes; then
9237 ac_cv_use_statline='wxUSE_STATLINE=yes'
9238 else
9239 ac_cv_use_statline='wxUSE_STATLINE=no'
9240 fi
9241
9242else
9243
9244 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9245 if test "x$LINE" != x ; then
9246 eval "DEFAULT_$LINE"
9247 else
9248 no_cache=1
9249 fi
9250
9251 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9252
9253fi;
9254
9255 eval "$ac_cv_use_statline"
9256 if test "$no_cache" != 1; then
9257 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9258 fi
9259
9260 if test "$wxUSE_STATLINE" = yes; then
9261 echo "$as_me:$LINENO: result: yes" >&5
9262echo "${ECHO_T}yes" >&6
9263 else
9264 echo "$as_me:$LINENO: result: no" >&5
9265echo "${ECHO_T}no" >&6
9266 fi
9267
9268
9269 enablestring=
9270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9271echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9272 no_cache=0
9273 # Check whether --enable-stattext or --disable-stattext was given.
9274if test "${enable_stattext+set}" = set; then
9275 enableval="$enable_stattext"
9276
9277 if test "$enableval" = yes; then
9278 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9279 else
9280 ac_cv_use_stattext='wxUSE_STATTEXT=no'
9281 fi
9282
9283else
9284
9285 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9286 if test "x$LINE" != x ; then
9287 eval "DEFAULT_$LINE"
9288 else
9289 no_cache=1
9290 fi
9291
9292 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9293
9294fi;
9295
9296 eval "$ac_cv_use_stattext"
9297 if test "$no_cache" != 1; then
9298 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9299 fi
9300
9301 if test "$wxUSE_STATTEXT" = yes; then
9302 echo "$as_me:$LINENO: result: yes" >&5
9303echo "${ECHO_T}yes" >&6
9304 else
9305 echo "$as_me:$LINENO: result: no" >&5
9306echo "${ECHO_T}no" >&6
9307 fi
9308
9309
9310 enablestring=
9311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9312echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9313 no_cache=0
9314 # Check whether --enable-statusbar or --disable-statusbar was given.
9315if test "${enable_statusbar+set}" = set; then
9316 enableval="$enable_statusbar"
9317
9318 if test "$enableval" = yes; then
9319 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9320 else
9321 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9322 fi
9323
9324else
9325
9326 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9327 if test "x$LINE" != x ; then
9328 eval "DEFAULT_$LINE"
9329 else
9330 no_cache=1
9331 fi
9332
9333 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9334
9335fi;
9336
9337 eval "$ac_cv_use_statusbar"
9338 if test "$no_cache" != 1; then
9339 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9340 fi
9341
9342 if test "$wxUSE_STATUSBAR" = yes; then
9343 echo "$as_me:$LINENO: result: yes" >&5
9344echo "${ECHO_T}yes" >&6
9345 else
9346 echo "$as_me:$LINENO: result: no" >&5
9347echo "${ECHO_T}no" >&6
9348 fi
9349
9350
9351 enablestring=
9352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9353echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9354 no_cache=0
9355 # Check whether --enable-tabdialog or --disable-tabdialog was given.
9356if test "${enable_tabdialog+set}" = set; then
9357 enableval="$enable_tabdialog"
9358
9359 if test "$enableval" = yes; then
f10e38c4 9360 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 9361 else
f10e38c4 9362 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e
SC
9363 fi
9364
9365else
9366
f10e38c4 9367 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
a848cd7e
SC
9368 if test "x$LINE" != x ; then
9369 eval "DEFAULT_$LINE"
9370 else
9371 no_cache=1
9372 fi
9373
f10e38c4 9374 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
a848cd7e
SC
9375
9376fi;
9377
9378 eval "$ac_cv_use_tabdialog"
9379 if test "$no_cache" != 1; then
9380 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9381 fi
9382
f10e38c4 9383 if test "$wxUSE_TAB_DIALOG" = yes; then
a848cd7e
SC
9384 echo "$as_me:$LINENO: result: yes" >&5
9385echo "${ECHO_T}yes" >&6
9386 else
9387 echo "$as_me:$LINENO: result: no" >&5
9388echo "${ECHO_T}no" >&6
9389 fi
9390
9391
9392 enablestring=
9393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9394echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9395 no_cache=0
9396 # Check whether --enable-textctrl or --disable-textctrl was given.
9397if test "${enable_textctrl+set}" = set; then
9398 enableval="$enable_textctrl"
9399
9400 if test "$enableval" = yes; then
9401 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9402 else
9403 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9404 fi
9405
9406else
9407
9408 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9409 if test "x$LINE" != x ; then
9410 eval "DEFAULT_$LINE"
9411 else
9412 no_cache=1
9413 fi
9414
9415 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9416
9417fi;
9418
9419 eval "$ac_cv_use_textctrl"
9420 if test "$no_cache" != 1; then
9421 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9422 fi
9423
9424 if test "$wxUSE_TEXTCTRL" = yes; then
9425 echo "$as_me:$LINENO: result: yes" >&5
9426echo "${ECHO_T}yes" >&6
9427 else
9428 echo "$as_me:$LINENO: result: no" >&5
9429echo "${ECHO_T}no" >&6
9430 fi
9431
9432
9433 enablestring=
9434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9435echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9436 no_cache=0
9437 # Check whether --enable-togglebtn or --disable-togglebtn was given.
9438if test "${enable_togglebtn+set}" = set; then
9439 enableval="$enable_togglebtn"
9440
9441 if test "$enableval" = yes; then
9442 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9443 else
9444 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9445 fi
9446
9447else
9448
9449 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9450 if test "x$LINE" != x ; then
9451 eval "DEFAULT_$LINE"
9452 else
9453 no_cache=1
9454 fi
9455
9456 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9457
9458fi;
9459
9460 eval "$ac_cv_use_togglebtn"
9461 if test "$no_cache" != 1; then
9462 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9463 fi
9464
9465 if test "$wxUSE_TOGGLEBTN" = yes; then
9466 echo "$as_me:$LINENO: result: yes" >&5
9467echo "${ECHO_T}yes" >&6
9468 else
9469 echo "$as_me:$LINENO: result: no" >&5
9470echo "${ECHO_T}no" >&6
9471 fi
9472
9473
9474 enablestring=
9475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9476echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9477 no_cache=0
9478 # Check whether --enable-toolbar or --disable-toolbar was given.
9479if test "${enable_toolbar+set}" = set; then
9480 enableval="$enable_toolbar"
9481
9482 if test "$enableval" = yes; then
9483 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9484 else
9485 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9486 fi
9487
9488else
9489
9490 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9491 if test "x$LINE" != x ; then
9492 eval "DEFAULT_$LINE"
9493 else
9494 no_cache=1
9495 fi
9496
9497 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9498
9499fi;
9500
9501 eval "$ac_cv_use_toolbar"
9502 if test "$no_cache" != 1; then
9503 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9504 fi
9505
9506 if test "$wxUSE_TOOLBAR" = yes; then
9507 echo "$as_me:$LINENO: result: yes" >&5
9508echo "${ECHO_T}yes" >&6
9509 else
9510 echo "$as_me:$LINENO: result: no" >&5
9511echo "${ECHO_T}no" >&6
9512 fi
9513
9514
9515 enablestring=
9516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9517echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9518 no_cache=0
9519 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9520if test "${enable_tbarnative+set}" = set; then
9521 enableval="$enable_tbarnative"
9522
9523 if test "$enableval" = yes; then
9524 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9525 else
9526 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9527 fi
9528
9529else
9530
9531 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9532 if test "x$LINE" != x ; then
9533 eval "DEFAULT_$LINE"
9534 else
9535 no_cache=1
9536 fi
9537
9538 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9539
9540fi;
9541
9542 eval "$ac_cv_use_tbarnative"
9543 if test "$no_cache" != 1; then
9544 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9545 fi
9546
9547 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9548 echo "$as_me:$LINENO: result: yes" >&5
9549echo "${ECHO_T}yes" >&6
9550 else
9551 echo "$as_me:$LINENO: result: no" >&5
9552echo "${ECHO_T}no" >&6
9553 fi
9554
9555
9556 enablestring=
9557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
9558echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
9559 no_cache=0
9560 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
9561if test "${enable_tbarsmpl+set}" = set; then
9562 enableval="$enable_tbarsmpl"
9563
9564 if test "$enableval" = yes; then
9565 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
9566 else
9567 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
9568 fi
9569
9570else
9571
9572 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
9573 if test "x$LINE" != x ; then
9574 eval "DEFAULT_$LINE"
9575 else
9576 no_cache=1
9577 fi
9578
9579 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
9580
9581fi;
9582
9583 eval "$ac_cv_use_tbarsmpl"
9584 if test "$no_cache" != 1; then
9585 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
9586 fi
9587
9588 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
9589 echo "$as_me:$LINENO: result: yes" >&5
9590echo "${ECHO_T}yes" >&6
9591 else
9592 echo "$as_me:$LINENO: result: no" >&5
9593echo "${ECHO_T}no" >&6
9594 fi
9595
9596
0093c2fc
VZ
9597 enablestring=
9598 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9599echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9600 no_cache=0
9601 # Check whether --enable-treebook or --disable-treebook was given.
9602if test "${enable_treebook+set}" = set; then
9603 enableval="$enable_treebook"
9604
9605 if test "$enableval" = yes; then
9606 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9607 else
9608 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9609 fi
9610
9611else
9612
9613 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9614 if test "x$LINE" != x ; then
9615 eval "DEFAULT_$LINE"
9616 else
9617 no_cache=1
9618 fi
9619
9620 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9621
9622fi;
9623
9624 eval "$ac_cv_use_treebook"
9625 if test "$no_cache" != 1; then
9626 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9627 fi
9628
9629 if test "$wxUSE_TREEBOOK" = yes; then
9630 echo "$as_me:$LINENO: result: yes" >&5
9631echo "${ECHO_T}yes" >&6
9632 else
9633 echo "$as_me:$LINENO: result: no" >&5
9634echo "${ECHO_T}no" >&6
9635 fi
9636
9637
5ec3bc43
JS
9638 enablestring=
9639 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9640echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9641 no_cache=0
9642 # Check whether --enable-toolbook or --disable-toolbook was given.
9643if test "${enable_toolbook+set}" = set; then
9644 enableval="$enable_toolbook"
9645
9646 if test "$enableval" = yes; then
9647 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9648 else
9649 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9650 fi
9651
9652else
9653
9654 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9655 if test "x$LINE" != x ; then
9656 eval "DEFAULT_$LINE"
9657 else
9658 no_cache=1
9659 fi
9660
9661 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9662
9663fi;
9664
9665 eval "$ac_cv_use_toolbook"
9666 if test "$no_cache" != 1; then
9667 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9668 fi
9669
9670 if test "$wxUSE_TOOLBOOK" = yes; then
9671 echo "$as_me:$LINENO: result: yes" >&5
9672echo "${ECHO_T}yes" >&6
9673 else
9674 echo "$as_me:$LINENO: result: no" >&5
9675echo "${ECHO_T}no" >&6
9676 fi
9677
9678
a848cd7e
SC
9679 enablestring=
9680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9681echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9682 no_cache=0
9683 # Check whether --enable-treectrl or --disable-treectrl was given.
9684if test "${enable_treectrl+set}" = set; then
9685 enableval="$enable_treectrl"
9686
9687 if test "$enableval" = yes; then
9688 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9689 else
9690 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9691 fi
9692
9693else
9694
9695 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9696 if test "x$LINE" != x ; then
9697 eval "DEFAULT_$LINE"
9698 else
9699 no_cache=1
9700 fi
9701
9702 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9703
9704fi;
9705
9706 eval "$ac_cv_use_treectrl"
9707 if test "$no_cache" != 1; then
9708 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9709 fi
9710
9711 if test "$wxUSE_TREECTRL" = yes; then
9712 echo "$as_me:$LINENO: result: yes" >&5
9713echo "${ECHO_T}yes" >&6
9714 else
9715 echo "$as_me:$LINENO: result: no" >&5
9716echo "${ECHO_T}no" >&6
9717 fi
9718
9719
9720 enablestring=
9721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9722echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9723 no_cache=0
9724 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9725if test "${enable_tipwindow+set}" = set; then
9726 enableval="$enable_tipwindow"
9727
9728 if test "$enableval" = yes; then
9729 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9730 else
9731 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9732 fi
9733
9734else
9735
9736 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9737 if test "x$LINE" != x ; then
9738 eval "DEFAULT_$LINE"
9739 else
9740 no_cache=1
9741 fi
9742
9743 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9744
9745fi;
9746
9747 eval "$ac_cv_use_tipwindow"
9748 if test "$no_cache" != 1; then
9749 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9750 fi
9751
9752 if test "$wxUSE_TIPWINDOW" = yes; then
9753 echo "$as_me:$LINENO: result: yes" >&5
9754echo "${ECHO_T}yes" >&6
9755 else
9756 echo "$as_me:$LINENO: result: no" >&5
9757echo "${ECHO_T}no" >&6
9758 fi
9759
9760
9761 enablestring=
9762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9763echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9764 no_cache=0
9765 # Check whether --enable-popupwin or --disable-popupwin was given.
9766if test "${enable_popupwin+set}" = set; then
9767 enableval="$enable_popupwin"
9768
9769 if test "$enableval" = yes; then
9770 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9771 else
9772 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9773 fi
9774
9775else
9776
9777 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9778 if test "x$LINE" != x ; then
9779 eval "DEFAULT_$LINE"
9780 else
9781 no_cache=1
9782 fi
9783
9784 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9785
9786fi;
9787
9788 eval "$ac_cv_use_popupwin"
9789 if test "$no_cache" != 1; then
9790 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9791 fi
9792
9793 if test "$wxUSE_POPUPWIN" = yes; then
9794 echo "$as_me:$LINENO: result: yes" >&5
9795echo "${ECHO_T}yes" >&6
9796 else
9797 echo "$as_me:$LINENO: result: no" >&5
9798echo "${ECHO_T}no" >&6
9799 fi
9800
9801
9802
9803
9804 enablestring=
9805 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9806echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9807 no_cache=0
9808 # Check whether --enable-commondlg or --disable-commondlg was given.
9809if test "${enable_commondlg+set}" = set; then
9810 enableval="$enable_commondlg"
9811
9812 if test "$enableval" = yes; then
9813 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9814 else
9815 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9816 fi
9817
9818else
9819
9820 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9821 if test "x$LINE" != x ; then
9822 eval "DEFAULT_$LINE"
9823 else
9824 no_cache=1
9825 fi
9826
9827 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9828
9829fi;
9830
9831 eval "$ac_cv_use_commondlg"
9832 if test "$no_cache" != 1; then
9833 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9834 fi
9835
9836 if test "$wxUSE_COMMONDLGS" = yes; then
9837 echo "$as_me:$LINENO: result: yes" >&5
9838echo "${ECHO_T}yes" >&6
9839 else
9840 echo "$as_me:$LINENO: result: no" >&5
9841echo "${ECHO_T}no" >&6
9842 fi
9843
9844
9845 enablestring=
9846 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9847echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9848 no_cache=0
9849 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9850if test "${enable_choicedlg+set}" = set; then
9851 enableval="$enable_choicedlg"
9852
9853 if test "$enableval" = yes; then
9854 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9855 else
9856 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9857 fi
9858
9859else
9860
9861 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9862 if test "x$LINE" != x ; then
9863 eval "DEFAULT_$LINE"
9864 else
9865 no_cache=1
9866 fi
9867
9868 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9869
9870fi;
9871
9872 eval "$ac_cv_use_choicedlg"
9873 if test "$no_cache" != 1; then
9874 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9875 fi
9876
9877 if test "$wxUSE_CHOICEDLG" = yes; then
9878 echo "$as_me:$LINENO: result: yes" >&5
9879echo "${ECHO_T}yes" >&6
9880 else
9881 echo "$as_me:$LINENO: result: no" >&5
9882echo "${ECHO_T}no" >&6
9883 fi
9884
9885
9886 enablestring=
9887 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9888echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9889 no_cache=0
9890 # Check whether --enable-coldlg or --disable-coldlg was given.
9891if test "${enable_coldlg+set}" = set; then
9892 enableval="$enable_coldlg"
9893
9894 if test "$enableval" = yes; then
9895 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9896 else
9897 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9898 fi
9899
9900else
9901
9902 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9903 if test "x$LINE" != x ; then
9904 eval "DEFAULT_$LINE"
9905 else
9906 no_cache=1
9907 fi
9908
9909 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9910
9911fi;
9912
9913 eval "$ac_cv_use_coldlg"
9914 if test "$no_cache" != 1; then
9915 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9916 fi
9917
9918 if test "$wxUSE_COLOURDLG" = yes; then
9919 echo "$as_me:$LINENO: result: yes" >&5
9920echo "${ECHO_T}yes" >&6
9921 else
9922 echo "$as_me:$LINENO: result: no" >&5
9923echo "${ECHO_T}no" >&6
9924 fi
9925
9926
9927 enablestring=
9928 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9929echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9930 no_cache=0
9931 # Check whether --enable-filedlg or --disable-filedlg was given.
9932if test "${enable_filedlg+set}" = set; then
9933 enableval="$enable_filedlg"
9934
9935 if test "$enableval" = yes; then
9936 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9937 else
9938 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9939 fi
9940
9941else
9942
9943 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9944 if test "x$LINE" != x ; then
9945 eval "DEFAULT_$LINE"
9946 else
9947 no_cache=1
9948 fi
9949
9950 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9951
9952fi;
9953
9954 eval "$ac_cv_use_filedlg"
9955 if test "$no_cache" != 1; then
9956 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9957 fi
9958
9959 if test "$wxUSE_FILEDLG" = yes; then
9960 echo "$as_me:$LINENO: result: yes" >&5
9961echo "${ECHO_T}yes" >&6
9962 else
9963 echo "$as_me:$LINENO: result: no" >&5
9964echo "${ECHO_T}no" >&6
9965 fi
9966
9967
9968 enablestring=
9969 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9970echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9971 no_cache=0
9972 # Check whether --enable-finddlg or --disable-finddlg was given.
9973if test "${enable_finddlg+set}" = set; then
9974 enableval="$enable_finddlg"
9975
9976 if test "$enableval" = yes; then
9977 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9978 else
9979 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9980 fi
9981
9982else
9983
9984 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9985 if test "x$LINE" != x ; then
9986 eval "DEFAULT_$LINE"
9987 else
9988 no_cache=1
9989 fi
9990
9991 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9992
9993fi;
9994
9995 eval "$ac_cv_use_finddlg"
9996 if test "$no_cache" != 1; then
9997 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9998 fi
9999
10000 if test "$wxUSE_FINDREPLDLG" = yes; then
10001 echo "$as_me:$LINENO: result: yes" >&5
10002echo "${ECHO_T}yes" >&6
10003 else
10004 echo "$as_me:$LINENO: result: no" >&5
10005echo "${ECHO_T}no" >&6
10006 fi
10007
10008
10009 enablestring=
10010 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10011echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10012 no_cache=0
10013 # Check whether --enable-fontdlg or --disable-fontdlg was given.
10014if test "${enable_fontdlg+set}" = set; then
10015 enableval="$enable_fontdlg"
10016
10017 if test "$enableval" = yes; then
10018 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10019 else
10020 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10021 fi
10022
10023else
10024
10025 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10026 if test "x$LINE" != x ; then
10027 eval "DEFAULT_$LINE"
10028 else
10029 no_cache=1
10030 fi
10031
10032 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10033
10034fi;
10035
10036 eval "$ac_cv_use_fontdlg"
10037 if test "$no_cache" != 1; then
10038 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10039 fi
10040
10041 if test "$wxUSE_FONTDLG" = yes; then
10042 echo "$as_me:$LINENO: result: yes" >&5
10043echo "${ECHO_T}yes" >&6
10044 else
10045 echo "$as_me:$LINENO: result: no" >&5
10046echo "${ECHO_T}no" >&6
10047 fi
10048
10049
10050 enablestring=
10051 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10052echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10053 no_cache=0
10054 # Check whether --enable-dirdlg or --disable-dirdlg was given.
10055if test "${enable_dirdlg+set}" = set; then
10056 enableval="$enable_dirdlg"
10057
10058 if test "$enableval" = yes; then
10059 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10060 else
10061 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10062 fi
10063
10064else
10065
10066 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10067 if test "x$LINE" != x ; then
10068 eval "DEFAULT_$LINE"
10069 else
10070 no_cache=1
10071 fi
10072
10073 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10074
10075fi;
10076
10077 eval "$ac_cv_use_dirdlg"
10078 if test "$no_cache" != 1; then
10079 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10080 fi
10081
10082 if test "$wxUSE_DIRDLG" = yes; then
10083 echo "$as_me:$LINENO: result: yes" >&5
10084echo "${ECHO_T}yes" >&6
10085 else
10086 echo "$as_me:$LINENO: result: no" >&5
10087echo "${ECHO_T}no" >&6
10088 fi
10089
10090
10091 enablestring=
10092 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10093echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10094 no_cache=0
10095 # Check whether --enable-msgdlg or --disable-msgdlg was given.
10096if test "${enable_msgdlg+set}" = set; then
10097 enableval="$enable_msgdlg"
10098
10099 if test "$enableval" = yes; then
10100 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10101 else
10102 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10103 fi
10104
10105else
10106
10107 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10108 if test "x$LINE" != x ; then
10109 eval "DEFAULT_$LINE"
10110 else
10111 no_cache=1
10112 fi
10113
10114 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10115
10116fi;
10117
10118 eval "$ac_cv_use_msgdlg"
10119 if test "$no_cache" != 1; then
10120 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10121 fi
10122
10123 if test "$wxUSE_MSGDLG" = yes; then
10124 echo "$as_me:$LINENO: result: yes" >&5
10125echo "${ECHO_T}yes" >&6
10126 else
10127 echo "$as_me:$LINENO: result: no" >&5
10128echo "${ECHO_T}no" >&6
10129 fi
10130
10131
10132 enablestring=
10133 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10134echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10135 no_cache=0
10136 # Check whether --enable-numberdlg or --disable-numberdlg was given.
10137if test "${enable_numberdlg+set}" = set; then
10138 enableval="$enable_numberdlg"
10139
10140 if test "$enableval" = yes; then
10141 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10142 else
10143 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10144 fi
10145
10146else
10147
10148 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10149 if test "x$LINE" != x ; then
10150 eval "DEFAULT_$LINE"
10151 else
10152 no_cache=1
10153 fi
10154
10155 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10156
10157fi;
10158
10159 eval "$ac_cv_use_numberdlg"
10160 if test "$no_cache" != 1; then
10161 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10162 fi
10163
10164 if test "$wxUSE_NUMBERDLG" = yes; then
10165 echo "$as_me:$LINENO: result: yes" >&5
10166echo "${ECHO_T}yes" >&6
10167 else
10168 echo "$as_me:$LINENO: result: no" >&5
10169echo "${ECHO_T}no" >&6
10170 fi
10171
10172
10173 enablestring=
10174 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10175echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10176 no_cache=0
10177 # Check whether --enable-splash or --disable-splash was given.
10178if test "${enable_splash+set}" = set; then
10179 enableval="$enable_splash"
10180
10181 if test "$enableval" = yes; then
10182 ac_cv_use_splash='wxUSE_SPLASH=yes'
10183 else
10184 ac_cv_use_splash='wxUSE_SPLASH=no'
10185 fi
10186
10187else
10188
10189 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10190 if test "x$LINE" != x ; then
10191 eval "DEFAULT_$LINE"
10192 else
10193 no_cache=1
10194 fi
10195
10196 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10197
10198fi;
10199
10200 eval "$ac_cv_use_splash"
10201 if test "$no_cache" != 1; then
10202 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10203 fi
10204
10205 if test "$wxUSE_SPLASH" = yes; then
10206 echo "$as_me:$LINENO: result: yes" >&5
10207echo "${ECHO_T}yes" >&6
10208 else
10209 echo "$as_me:$LINENO: result: no" >&5
10210echo "${ECHO_T}no" >&6
10211 fi
10212
10213
10214 enablestring=
10215 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10216echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10217 no_cache=0
10218 # Check whether --enable-textdlg or --disable-textdlg was given.
10219if test "${enable_textdlg+set}" = set; then
10220 enableval="$enable_textdlg"
10221
10222 if test "$enableval" = yes; then
10223 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10224 else
10225 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10226 fi
10227
10228else
10229
10230 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10231 if test "x$LINE" != x ; then
10232 eval "DEFAULT_$LINE"
10233 else
10234 no_cache=1
10235 fi
10236
10237 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10238
10239fi;
10240
10241 eval "$ac_cv_use_textdlg"
10242 if test "$no_cache" != 1; then
10243 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10244 fi
10245
10246 if test "$wxUSE_TEXTDLG" = yes; then
10247 echo "$as_me:$LINENO: result: yes" >&5
10248echo "${ECHO_T}yes" >&6
10249 else
10250 echo "$as_me:$LINENO: result: no" >&5
10251echo "${ECHO_T}no" >&6
10252 fi
10253
10254
10255 enablestring=
10256 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10257echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10258 no_cache=0
10259 # Check whether --enable-tipdlg or --disable-tipdlg was given.
10260if test "${enable_tipdlg+set}" = set; then
10261 enableval="$enable_tipdlg"
10262
10263 if test "$enableval" = yes; then
10264 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10265 else
10266 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10267 fi
10268
10269else
10270
10271 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10272 if test "x$LINE" != x ; then
10273 eval "DEFAULT_$LINE"
10274 else
10275 no_cache=1
10276 fi
10277
10278 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10279
10280fi;
10281
10282 eval "$ac_cv_use_tipdlg"
10283 if test "$no_cache" != 1; then
10284 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10285 fi
10286
10287 if test "$wxUSE_STARTUP_TIPS" = yes; then
10288 echo "$as_me:$LINENO: result: yes" >&5
10289echo "${ECHO_T}yes" >&6
10290 else
10291 echo "$as_me:$LINENO: result: no" >&5
10292echo "${ECHO_T}no" >&6
10293 fi
10294
10295
10296 enablestring=
10297 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10298echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10299 no_cache=0
10300 # Check whether --enable-progressdlg or --disable-progressdlg was given.
10301if test "${enable_progressdlg+set}" = set; then
10302 enableval="$enable_progressdlg"
10303
10304 if test "$enableval" = yes; then
10305 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10306 else
10307 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10308 fi
10309
10310else
10311
10312 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10313 if test "x$LINE" != x ; then
10314 eval "DEFAULT_$LINE"
10315 else
10316 no_cache=1
10317 fi
10318
10319 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10320
10321fi;
10322
10323 eval "$ac_cv_use_progressdlg"
10324 if test "$no_cache" != 1; then
10325 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10326 fi
10327
10328 if test "$wxUSE_PROGRESSDLG" = yes; then
10329 echo "$as_me:$LINENO: result: yes" >&5
10330echo "${ECHO_T}yes" >&6
10331 else
10332 echo "$as_me:$LINENO: result: no" >&5
10333echo "${ECHO_T}no" >&6
10334 fi
10335
10336
10337 enablestring=
10338 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10339echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10340 no_cache=0
10341 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10342if test "${enable_wizarddlg+set}" = set; then
10343 enableval="$enable_wizarddlg"
10344
10345 if test "$enableval" = yes; then
10346 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10347 else
10348 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10349 fi
10350
10351else
10352
10353 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10354 if test "x$LINE" != x ; then
10355 eval "DEFAULT_$LINE"
10356 else
10357 no_cache=1
10358 fi
10359
10360 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10361
10362fi;
10363
10364 eval "$ac_cv_use_wizarddlg"
10365 if test "$no_cache" != 1; then
10366 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10367 fi
10368
10369 if test "$wxUSE_WIZARDDLG" = yes; then
10370 echo "$as_me:$LINENO: result: yes" >&5
10371echo "${ECHO_T}yes" >&6
10372 else
10373 echo "$as_me:$LINENO: result: no" >&5
10374echo "${ECHO_T}no" >&6
10375 fi
10376
10377
10378
10379
10380 enablestring=
10381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10382echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10383 no_cache=0
10384 # Check whether --enable-menus or --disable-menus was given.
10385if test "${enable_menus+set}" = set; then
10386 enableval="$enable_menus"
10387
10388 if test "$enableval" = yes; then
10389 ac_cv_use_menus='wxUSE_MENUS=yes'
10390 else
10391 ac_cv_use_menus='wxUSE_MENUS=no'
10392 fi
10393
10394else
10395
10396 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10397 if test "x$LINE" != x ; then
10398 eval "DEFAULT_$LINE"
10399 else
10400 no_cache=1
10401 fi
10402
10403 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10404
10405fi;
10406
10407 eval "$ac_cv_use_menus"
10408 if test "$no_cache" != 1; then
10409 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10410 fi
10411
10412 if test "$wxUSE_MENUS" = yes; then
10413 echo "$as_me:$LINENO: result: yes" >&5
10414echo "${ECHO_T}yes" >&6
10415 else
10416 echo "$as_me:$LINENO: result: no" >&5
10417echo "${ECHO_T}no" >&6
10418 fi
10419
10420
10421 enablestring=
10422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10423echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10424 no_cache=0
10425 # Check whether --enable-miniframe or --disable-miniframe was given.
10426if test "${enable_miniframe+set}" = set; then
10427 enableval="$enable_miniframe"
10428
10429 if test "$enableval" = yes; then
10430 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10431 else
10432 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10433 fi
10434
10435else
10436
10437 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10438 if test "x$LINE" != x ; then
10439 eval "DEFAULT_$LINE"
10440 else
10441 no_cache=1
10442 fi
10443
10444 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10445
10446fi;
10447
10448 eval "$ac_cv_use_miniframe"
10449 if test "$no_cache" != 1; then
10450 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10451 fi
10452
10453 if test "$wxUSE_MINIFRAME" = yes; then
10454 echo "$as_me:$LINENO: result: yes" >&5
10455echo "${ECHO_T}yes" >&6
10456 else
10457 echo "$as_me:$LINENO: result: no" >&5
10458echo "${ECHO_T}no" >&6
10459 fi
10460
10461
10462 enablestring=
10463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10464echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10465 no_cache=0
10466 # Check whether --enable-tooltips or --disable-tooltips was given.
10467if test "${enable_tooltips+set}" = set; then
10468 enableval="$enable_tooltips"
10469
10470 if test "$enableval" = yes; then
10471 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10472 else
10473 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10474 fi
10475
10476else
10477
10478 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10479 if test "x$LINE" != x ; then
10480 eval "DEFAULT_$LINE"
10481 else
10482 no_cache=1
10483 fi
10484
10485 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10486
10487fi;
10488
10489 eval "$ac_cv_use_tooltips"
10490 if test "$no_cache" != 1; then
10491 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10492 fi
10493
10494 if test "$wxUSE_TOOLTIPS" = yes; then
10495 echo "$as_me:$LINENO: result: yes" >&5
10496echo "${ECHO_T}yes" >&6
10497 else
10498 echo "$as_me:$LINENO: result: no" >&5
10499echo "${ECHO_T}no" >&6
10500 fi
10501
10502
10503 enablestring=
10504 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10505echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10506 no_cache=0
10507 # Check whether --enable-splines or --disable-splines was given.
10508if test "${enable_splines+set}" = set; then
10509 enableval="$enable_splines"
10510
10511 if test "$enableval" = yes; then
10512 ac_cv_use_splines='wxUSE_SPLINES=yes'
10513 else
10514 ac_cv_use_splines='wxUSE_SPLINES=no'
10515 fi
10516
10517else
10518
10519 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10520 if test "x$LINE" != x ; then
10521 eval "DEFAULT_$LINE"
10522 else
10523 no_cache=1
10524 fi
10525
10526 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10527
10528fi;
10529
10530 eval "$ac_cv_use_splines"
10531 if test "$no_cache" != 1; then
10532 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10533 fi
10534
10535 if test "$wxUSE_SPLINES" = yes; then
10536 echo "$as_me:$LINENO: result: yes" >&5
10537echo "${ECHO_T}yes" >&6
10538 else
10539 echo "$as_me:$LINENO: result: no" >&5
10540echo "${ECHO_T}no" >&6
10541 fi
10542
10543
fbe2ca43
SN
10544 enablestring=
10545 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10546echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10547 no_cache=0
10548 # Check whether --enable-mousewheel or --disable-mousewheel was given.
10549if test "${enable_mousewheel+set}" = set; then
10550 enableval="$enable_mousewheel"
10551
10552 if test "$enableval" = yes; then
10553 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10554 else
10555 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10556 fi
10557
10558else
10559
10560 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10561 if test "x$LINE" != x ; then
10562 eval "DEFAULT_$LINE"
10563 else
10564 no_cache=1
10565 fi
10566
10567 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10568
10569fi;
10570
10571 eval "$ac_cv_use_mousewheel"
10572 if test "$no_cache" != 1; then
10573 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10574 fi
10575
10576 if test "$wxUSE_MOUSEWHEEL" = yes; then
10577 echo "$as_me:$LINENO: result: yes" >&5
10578echo "${ECHO_T}yes" >&6
10579 else
10580 echo "$as_me:$LINENO: result: no" >&5
10581echo "${ECHO_T}no" >&6
10582 fi
10583
10584
a848cd7e
SC
10585 enablestring=
10586 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10587echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10588 no_cache=0
10589 # Check whether --enable-validators or --disable-validators was given.
10590if test "${enable_validators+set}" = set; then
10591 enableval="$enable_validators"
10592
10593 if test "$enableval" = yes; then
10594 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10595 else
10596 ac_cv_use_validators='wxUSE_VALIDATORS=no'
10597 fi
10598
10599else
10600
10601 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10602 if test "x$LINE" != x ; then
10603 eval "DEFAULT_$LINE"
10604 else
10605 no_cache=1
10606 fi
10607
10608 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10609
10610fi;
10611
10612 eval "$ac_cv_use_validators"
10613 if test "$no_cache" != 1; then
10614 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10615 fi
10616
10617 if test "$wxUSE_VALIDATORS" = yes; then
10618 echo "$as_me:$LINENO: result: yes" >&5
10619echo "${ECHO_T}yes" >&6
10620 else
10621 echo "$as_me:$LINENO: result: no" >&5
10622echo "${ECHO_T}no" >&6
10623 fi
10624
10625
10626 enablestring=
10627 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10628echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10629 no_cache=0
10630 # Check whether --enable-busyinfo or --disable-busyinfo was given.
10631if test "${enable_busyinfo+set}" = set; then
10632 enableval="$enable_busyinfo"
10633
10634 if test "$enableval" = yes; then
10635 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10636 else
10637 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10638 fi
10639
10640else
10641
10642 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10643 if test "x$LINE" != x ; then
10644 eval "DEFAULT_$LINE"
10645 else
10646 no_cache=1
10647 fi
10648
10649 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10650
10651fi;
10652
10653 eval "$ac_cv_use_busyinfo"
10654 if test "$no_cache" != 1; then
10655 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10656 fi
10657
10658 if test "$wxUSE_BUSYINFO" = yes; then
10659 echo "$as_me:$LINENO: result: yes" >&5
10660echo "${ECHO_T}yes" >&6
10661 else
10662 echo "$as_me:$LINENO: result: no" >&5
10663echo "${ECHO_T}no" >&6
10664 fi
10665
10666
10667 enablestring=
10668 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10669echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10670 no_cache=0
10671 # Check whether --enable-joystick or --disable-joystick was given.
10672if test "${enable_joystick+set}" = set; then
10673 enableval="$enable_joystick"
10674
10675 if test "$enableval" = yes; then
10676 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10677 else
10678 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10679 fi
10680
10681else
10682
10683 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10684 if test "x$LINE" != x ; then
10685 eval "DEFAULT_$LINE"
10686 else
10687 no_cache=1
10688 fi
10689
10690 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10691
10692fi;
10693
10694 eval "$ac_cv_use_joystick"
10695 if test "$no_cache" != 1; then
10696 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10697 fi
10698
10699 if test "$wxUSE_JOYSTICK" = yes; then
10700 echo "$as_me:$LINENO: result: yes" >&5
10701echo "${ECHO_T}yes" >&6
10702 else
10703 echo "$as_me:$LINENO: result: no" >&5
10704echo "${ECHO_T}no" >&6
10705 fi
10706
10707
10708 enablestring=
10709 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10710echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10711 no_cache=0
10712 # Check whether --enable-metafile or --disable-metafile was given.
10713if test "${enable_metafile+set}" = set; then
10714 enableval="$enable_metafile"
10715
10716 if test "$enableval" = yes; then
10717 ac_cv_use_metafile='wxUSE_METAFILE=yes'
10718 else
10719 ac_cv_use_metafile='wxUSE_METAFILE=no'
10720 fi
10721
10722else
10723
10724 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10725 if test "x$LINE" != x ; then
10726 eval "DEFAULT_$LINE"
10727 else
10728 no_cache=1
10729 fi
10730
10731 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10732
10733fi;
10734
10735 eval "$ac_cv_use_metafile"
10736 if test "$no_cache" != 1; then
10737 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10738 fi
10739
10740 if test "$wxUSE_METAFILE" = yes; then
10741 echo "$as_me:$LINENO: result: yes" >&5
10742echo "${ECHO_T}yes" >&6
10743 else
10744 echo "$as_me:$LINENO: result: no" >&5
10745echo "${ECHO_T}no" >&6
10746 fi
10747
10748
10749 enablestring=
10750 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10751echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10752 no_cache=0
10753 # Check whether --enable-dragimage or --disable-dragimage was given.
10754if test "${enable_dragimage+set}" = set; then
10755 enableval="$enable_dragimage"
10756
10757 if test "$enableval" = yes; then
10758 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10759 else
10760 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10761 fi
10762
10763else
10764
10765 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10766 if test "x$LINE" != x ; then
10767 eval "DEFAULT_$LINE"
10768 else
10769 no_cache=1
10770 fi
10771
10772 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10773
10774fi;
10775
10776 eval "$ac_cv_use_dragimage"
10777 if test "$no_cache" != 1; then
10778 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10779 fi
10780
10781 if test "$wxUSE_DRAGIMAGE" = yes; then
10782 echo "$as_me:$LINENO: result: yes" >&5
10783echo "${ECHO_T}yes" >&6
10784 else
10785 echo "$as_me:$LINENO: result: no" >&5
10786echo "${ECHO_T}no" >&6
10787 fi
10788
10789
10790 enablestring=
10791 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10792echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10793 no_cache=0
10794 # Check whether --enable-accessibility or --disable-accessibility was given.
10795if test "${enable_accessibility+set}" = set; then
10796 enableval="$enable_accessibility"
10797
10798 if test "$enableval" = yes; then
10799 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10800 else
10801 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10802 fi
10803
10804else
10805
10806 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10807 if test "x$LINE" != x ; then
10808 eval "DEFAULT_$LINE"
10809 else
10810 no_cache=1
10811 fi
10812
10813 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10814
10815fi;
10816
10817 eval "$ac_cv_use_accessibility"
10818 if test "$no_cache" != 1; then
10819 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10820 fi
10821
10822 if test "$wxUSE_ACCESSIBILITY" = yes; then
10823 echo "$as_me:$LINENO: result: yes" >&5
10824echo "${ECHO_T}yes" >&6
10825 else
10826 echo "$as_me:$LINENO: result: no" >&5
10827echo "${ECHO_T}no" >&6
10828 fi
10829
10830
38b4a946
VZ
10831if test "$wxUSE_MSW" = "1"; then
10832
10833 enablestring=
10834 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10835echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10836 no_cache=0
10837 # Check whether --enable-dccache or --disable-dccache was given.
10838if test "${enable_dccache+set}" = set; then
10839 enableval="$enable_dccache"
10840
10841 if test "$enableval" = yes; then
10842 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10843 else
10844 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10845 fi
10846
10847else
10848
10849 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10850 if test "x$LINE" != x ; then
10851 eval "DEFAULT_$LINE"
10852 else
10853 no_cache=1
10854 fi
10855
10856 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10857
10858fi;
10859
10860 eval "$ac_cv_use_dccache"
10861 if test "$no_cache" != 1; then
10862 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10863 fi
10864
10865 if test "$wxUSE_DC_CACHEING" = yes; then
10866 echo "$as_me:$LINENO: result: yes" >&5
10867echo "${ECHO_T}yes" >&6
10868 else
10869 echo "$as_me:$LINENO: result: no" >&5
10870echo "${ECHO_T}no" >&6
10871 fi
10872
10873fi
10874
a848cd7e
SC
10875
10876
10877 enablestring=
10878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10879echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10880 no_cache=0
10881 # Check whether --enable-palette or --disable-palette was given.
10882if test "${enable_palette+set}" = set; then
10883 enableval="$enable_palette"
10884
10885 if test "$enableval" = yes; then
10886 ac_cv_use_palette='wxUSE_PALETTE=yes'
10887 else
10888 ac_cv_use_palette='wxUSE_PALETTE=no'
10889 fi
10890
10891else
10892
10893 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10894 if test "x$LINE" != x ; then
10895 eval "DEFAULT_$LINE"
10896 else
10897 no_cache=1
10898 fi
10899
10900 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10901
10902fi;
10903
10904 eval "$ac_cv_use_palette"
10905 if test "$no_cache" != 1; then
10906 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10907 fi
10908
10909 if test "$wxUSE_PALETTE" = yes; then
10910 echo "$as_me:$LINENO: result: yes" >&5
10911echo "${ECHO_T}yes" >&6
10912 else
10913 echo "$as_me:$LINENO: result: no" >&5
10914echo "${ECHO_T}no" >&6
10915 fi
10916
10917
10918 enablestring=
10919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10920echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10921 no_cache=0
10922 # Check whether --enable-image or --disable-image was given.
10923if test "${enable_image+set}" = set; then
10924 enableval="$enable_image"
10925
10926 if test "$enableval" = yes; then
10927 ac_cv_use_image='wxUSE_IMAGE=yes'
10928 else
10929 ac_cv_use_image='wxUSE_IMAGE=no'
10930 fi
10931
10932else
10933
10934 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10935 if test "x$LINE" != x ; then
10936 eval "DEFAULT_$LINE"
10937 else
10938 no_cache=1
10939 fi
10940
10941 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10942
10943fi;
10944
10945 eval "$ac_cv_use_image"
10946 if test "$no_cache" != 1; then
10947 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10948 fi
10949
10950 if test "$wxUSE_IMAGE" = yes; then
10951 echo "$as_me:$LINENO: result: yes" >&5
10952echo "${ECHO_T}yes" >&6
10953 else
10954 echo "$as_me:$LINENO: result: no" >&5
10955echo "${ECHO_T}no" >&6
10956 fi
10957
10958
10959 enablestring=
10960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10961echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10962 no_cache=0
10963 # Check whether --enable-gif or --disable-gif was given.
10964if test "${enable_gif+set}" = set; then
10965 enableval="$enable_gif"
10966
10967 if test "$enableval" = yes; then
10968 ac_cv_use_gif='wxUSE_GIF=yes'
10969 else
10970 ac_cv_use_gif='wxUSE_GIF=no'
10971 fi
10972
10973else
10974
10975 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10976 if test "x$LINE" != x ; then
10977 eval "DEFAULT_$LINE"
10978 else
10979 no_cache=1
10980 fi
10981
10982 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10983
10984fi;
10985
10986 eval "$ac_cv_use_gif"
10987 if test "$no_cache" != 1; then
10988 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10989 fi
10990
10991 if test "$wxUSE_GIF" = yes; then
10992 echo "$as_me:$LINENO: result: yes" >&5
10993echo "${ECHO_T}yes" >&6
10994 else
10995 echo "$as_me:$LINENO: result: no" >&5
10996echo "${ECHO_T}no" >&6
10997 fi
10998
10999
11000 enablestring=
11001 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11002echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11003 no_cache=0
11004 # Check whether --enable-pcx or --disable-pcx was given.
11005if test "${enable_pcx+set}" = set; then
11006 enableval="$enable_pcx"
11007
11008 if test "$enableval" = yes; then
11009 ac_cv_use_pcx='wxUSE_PCX=yes'
11010 else
11011 ac_cv_use_pcx='wxUSE_PCX=no'
11012 fi
11013
11014else
11015
11016 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11017 if test "x$LINE" != x ; then
11018 eval "DEFAULT_$LINE"
11019 else
11020 no_cache=1
11021 fi
11022
11023 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11024
11025fi;
11026
11027 eval "$ac_cv_use_pcx"
11028 if test "$no_cache" != 1; then
11029 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11030 fi
11031
11032 if test "$wxUSE_PCX" = yes; then
11033 echo "$as_me:$LINENO: result: yes" >&5
11034echo "${ECHO_T}yes" >&6
11035 else
11036 echo "$as_me:$LINENO: result: no" >&5
11037echo "${ECHO_T}no" >&6
11038 fi
11039
11040
11041 enablestring=
11042 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11043echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11044 no_cache=0
11045 # Check whether --enable-iff or --disable-iff was given.
11046if test "${enable_iff+set}" = set; then
11047 enableval="$enable_iff"
11048
11049 if test "$enableval" = yes; then
11050 ac_cv_use_iff='wxUSE_IFF=yes'
11051 else
11052 ac_cv_use_iff='wxUSE_IFF=no'
11053 fi
11054
11055else
11056
11057 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11058 if test "x$LINE" != x ; then
11059 eval "DEFAULT_$LINE"
11060 else
11061 no_cache=1
11062 fi
11063
11064 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11065
11066fi;
11067
11068 eval "$ac_cv_use_iff"
11069 if test "$no_cache" != 1; then
11070 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11071 fi
11072
11073 if test "$wxUSE_IFF" = yes; then
11074 echo "$as_me:$LINENO: result: yes" >&5
11075echo "${ECHO_T}yes" >&6
11076 else
11077 echo "$as_me:$LINENO: result: no" >&5
11078echo "${ECHO_T}no" >&6
11079 fi
11080
11081
11082 enablestring=
11083 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11084echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11085 no_cache=0
11086 # Check whether --enable-pnm or --disable-pnm was given.
11087if test "${enable_pnm+set}" = set; then
11088 enableval="$enable_pnm"
11089
11090 if test "$enableval" = yes; then
11091 ac_cv_use_pnm='wxUSE_PNM=yes'
11092 else
11093 ac_cv_use_pnm='wxUSE_PNM=no'
11094 fi
11095
11096else
11097
11098 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11099 if test "x$LINE" != x ; then
11100 eval "DEFAULT_$LINE"
11101 else
11102 no_cache=1
11103 fi
11104
11105 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11106
11107fi;
11108
11109 eval "$ac_cv_use_pnm"
11110 if test "$no_cache" != 1; then
11111 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11112 fi
11113
11114 if test "$wxUSE_PNM" = yes; then
11115 echo "$as_me:$LINENO: result: yes" >&5
11116echo "${ECHO_T}yes" >&6
11117 else
11118 echo "$as_me:$LINENO: result: no" >&5
11119echo "${ECHO_T}no" >&6
11120 fi
11121
11122
11123 enablestring=
11124 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11125echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11126 no_cache=0
11127 # Check whether --enable-xpm or --disable-xpm was given.
11128if test "${enable_xpm+set}" = set; then
11129 enableval="$enable_xpm"
11130
11131 if test "$enableval" = yes; then
11132 ac_cv_use_xpm='wxUSE_XPM=yes'
11133 else
11134 ac_cv_use_xpm='wxUSE_XPM=no'
11135 fi
11136
11137else
11138
11139 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11140 if test "x$LINE" != x ; then
11141 eval "DEFAULT_$LINE"
11142 else
11143 no_cache=1
11144 fi
11145
11146 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11147
11148fi;
11149
11150 eval "$ac_cv_use_xpm"
11151 if test "$no_cache" != 1; then
11152 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11153 fi
11154
11155 if test "$wxUSE_XPM" = yes; then
11156 echo "$as_me:$LINENO: result: yes" >&5
11157echo "${ECHO_T}yes" >&6
11158 else
11159 echo "$as_me:$LINENO: result: no" >&5
11160echo "${ECHO_T}no" >&6
11161 fi
11162
11163
11164 enablestring=
11165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11166echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11167 no_cache=0
11168 # Check whether --enable-ico_cur or --disable-ico_cur was given.
11169if test "${enable_ico_cur+set}" = set; then
11170 enableval="$enable_ico_cur"
11171
11172 if test "$enableval" = yes; then
11173 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11174 else
11175 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11176 fi
11177
11178else
11179
11180 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11181 if test "x$LINE" != x ; then
11182 eval "DEFAULT_$LINE"
11183 else
11184 no_cache=1
11185 fi
11186
11187 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11188
11189fi;
11190
11191 eval "$ac_cv_use_ico_cur"
11192 if test "$no_cache" != 1; then
11193 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11194 fi
11195
11196 if test "$wxUSE_ICO_CUR" = yes; then
11197 echo "$as_me:$LINENO: result: yes" >&5
11198echo "${ECHO_T}yes" >&6
11199 else
11200 echo "$as_me:$LINENO: result: no" >&5
11201echo "${ECHO_T}no" >&6
11202 fi
11203
11204
11205fi
11206
11207
11208
ceec2216
RL
11209# Check whether --with-flavour or --without-flavour was given.
11210if test "${with_flavour+set}" = set; then
11211 withval="$with_flavour"
11212 WX_FLAVOUR="$withval"
11213fi;
11214
11215
11216
a848cd7e
SC
11217 enablestring=
11218 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11219echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11220 no_cache=0
11221 # Check whether --enable-official_build or --disable-official_build was given.
11222if test "${enable_official_build+set}" = set; then
11223 enableval="$enable_official_build"
11224
11225 if test "$enableval" = yes; then
11226 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11227 else
11228 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11229 fi
11230
11231else
11232
11233 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11234 if test "x$LINE" != x ; then
11235 eval "DEFAULT_$LINE"
11236 else
11237 no_cache=1
11238 fi
11239
11240 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11241
11242fi;
11243
11244 eval "$ac_cv_use_official_build"
11245 if test "$no_cache" != 1; then
11246 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11247 fi
11248
11249 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11250 echo "$as_me:$LINENO: result: yes" >&5
11251echo "${ECHO_T}yes" >&6
11252 else
11253 echo "$as_me:$LINENO: result: no" >&5
11254echo "${ECHO_T}no" >&6
11255 fi
11256
11257# Check whether --enable-vendor or --disable-vendor was given.
11258if test "${enable_vendor+set}" = set; then
11259 enableval="$enable_vendor"
11260 VENDOR="$enableval"
11261fi;
11262if test "x$VENDOR" = "x"; then
11263 VENDOR="custom"
11264fi
11265
a848cd7e
SC
11266
11267
11268
11269 echo "saving argument cache $wx_arg_cache_file"
11270 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11271
11272
11273
11274echo "$as_me:$LINENO: checking for toolkit" >&5
11275echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11276
11277# In Wine, we need to default to MSW, not GTK or MOTIF
11278if test "$wxUSE_WINE" = "yes"; then
11279 DEFAULT_DEFAULT_wxUSE_GTK=0
11280 DEFAULT_DEFAULT_wxUSE_MOTIF=0
11281 DEFAULT_DEFAULT_wxUSE_MSW=1
11282 wxUSE_SHARED=no
11283fi
11284
f597b41c 11285
a848cd7e
SC
11286if test "$wxUSE_GUI" = "yes"; then
11287
11288 if test "$USE_BEOS" = 1; then
11289 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11290echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11291 { (exit 1); exit 1; }; }
11292 fi
11293
11294 if test "$TOOLKIT_GIVEN" = 1; then
11295 for toolkit in `echo $ALL_TOOLKITS`; do
11296 var=wxUSE_$toolkit
11297 eval "value=\$${var}"
f34ca037
MW
11298 if test "x$value" = "xno"; then
11299 eval "$var=0"
11300 elif test "x$value" != "x"; then
11301 eval "$var=1"
11302 fi
11303
11304 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11305 eval "wx${toolkit}_VERSION=$value"
11306 fi
a848cd7e
SC
11307 done
11308 else
11309 for toolkit in `echo $ALL_TOOLKITS`; do
11310 if test "$has_toolkit_in_cache" != 1; then
11311 var=DEFAULT_DEFAULT_wxUSE_$toolkit
11312 else
11313 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
11314
11315 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11316 if test "x$version" != "x"; then
11317 eval "wx${toolkit}_VERSION=$version"
11318 fi
a848cd7e
SC
11319 fi
11320 eval "wxUSE_$toolkit=\$${var}"
11321 done
11322 fi
11323
11324 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
11325 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
11326 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11327
11328 case "${host}" in
11329 *-pc-os2_emx | *-pc-os2-emx )
11330 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11331 esac
11332
11333 case "$NUM_TOOLKITS" in
11334 1)
11335 ;;
11336 0)
11337 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11338echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11339 { (exit 1); exit 1; }; }
11340 ;;
11341 *)
11342 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11343echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11344 { (exit 1); exit 1; }; }
11345 esac
11346
f34ca037
MW
11347 # to be removed when --disable-gtk2 isn't needed
11348 if test "x$wxUSE_GTK2" = "xyes"; then
11349 wxGTK_VERSION=2
11350 elif test "x$wxUSE_GTK2" = "xno"; then
11351 wxGTK_VERSION=1
11352 fi
11353
a848cd7e
SC
11354 for toolkit in `echo $ALL_TOOLKITS`; do
11355 var=wxUSE_$toolkit
11356 eval "value=\$${var}"
11357 if test "x$value" != x; then
11358 cache_var=CACHE_$toolkit
11359 eval "cache=\$${cache_var}"
11360 if test "$cache" = 1; then
11361 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
11362 eval "version=\$wx${toolkit}_VERSION"
11363 if test "x$version" != "x"; then
11364 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11365 fi
a848cd7e
SC
11366 fi
11367 if test "$value" = 1; then
11368 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11369 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11370echo "${ECHO_T}$toolkit_echo" >&6
11371 fi
11372 fi
11373 done
11374else
11375 if test "x$host_alias" != "x"; then
11376 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11377echo "${ECHO_T}base ($host_alias hosted) only" >&6
11378 else
11379 echo "$as_me:$LINENO: result: base only" >&5
11380echo "${ECHO_T}base only" >&6
11381 fi
11382fi
11383
11384wants_win32=0
11385doesnt_want_win32=0
11386case "${host}" in
11387 *-*-cygwin*)
11388 if test "$wxUSE_MSW" = 1 ; then
11389 wants_win32=1
7275146d 11390 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
11391 else
11392 doesnt_want_win32=1
11393 fi
11394 ;;
11395 *-*-mingw*)
11396 wants_win32=1
11397 ;;
11398esac
11399
11400if test "$wxUSE_WINE" = "yes"; then
11401 wants_win32=1
11402 CC=winegcc
11403 CXX=wineg++
a848cd7e
SC
11404 LDFLAGS_GUI="-mwindows"
11405fi
11406
11407if test "$wants_win32" = 1 ; then
11408 USE_UNIX=0
11409 USE_WIN32=1
11410 cat >>confdefs.h <<\_ACEOF
11411#define __WIN32__ 1
11412_ACEOF
11413
11414 cat >>confdefs.h <<\_ACEOF
11415#define __WIN95__ 1
11416_ACEOF
11417
11418 cat >>confdefs.h <<\_ACEOF
11419#define __WINDOWS__ 1
11420_ACEOF
11421
11422 cat >>confdefs.h <<\_ACEOF
11423#define __GNUWIN32__ 1
11424_ACEOF
11425
11426 cat >>confdefs.h <<\_ACEOF
11427#define STRICT 1
11428_ACEOF
11429
11430 cat >>confdefs.h <<\_ACEOF
11431#define WINVER 0x0400
11432_ACEOF
11433
11434fi
11435if test "$doesnt_want_win32" = 1 ; then
11436 USE_UNIX=1
11437 USE_WIN32=0
11438fi
11439
11440if test "$USE_UNIX" = 1 ; then
11441 wxUSE_UNIX=yes
11442 cat >>confdefs.h <<\_ACEOF
11443#define __UNIX__ 1
11444_ACEOF
11445
11446fi
11447
11448
11449cat >confcache <<\_ACEOF
11450# This file is a shell script that caches the results of configure
11451# tests run on this system so they can be shared between configure
11452# scripts and configure runs, see configure's option --config-cache.
11453# It is not useful on other systems. If it contains results you don't
11454# want to keep, you may remove or edit it.
11455#
11456# config.status only pays attention to the cache file if you give it
11457# the --recheck option to rerun configure.
11458#
11459# `ac_cv_env_foo' variables (set or unset) will be overridden when
11460# loading this file, other *unset* `ac_cv_foo' will be assigned the
11461# following values.
11462
11463_ACEOF
11464
11465# The following way of writing the cache mishandles newlines in values,
11466# but we know of no workaround that is simple, portable, and efficient.
11467# So, don't put newlines in cache variables' values.
11468# Ultrix sh set writes to stderr and can't be redirected directly,
11469# and sets the high bit in the cache file unless we assign to the vars.
11470{
11471 (set) 2>&1 |
11472 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11473 *ac_space=\ *)
11474 # `set' does not quote correctly, so add quotes (double-quote
11475 # substitution turns \\\\ into \\, and sed turns \\ into \).
11476 sed -n \
ac1cb8d3
VS
11477 "s/'/'\\\\''/g;
11478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
11479 ;;
11480 *)
11481 # `set' quotes correctly as required by POSIX, so do not add quotes.
11482 sed -n \
ac1cb8d3 11483 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
11484 ;;
11485 esac;
11486} |
11487 sed '
11488 t clear
11489 : clear
11490 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11491 t end
11492 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11493 : end' >>confcache
11494if diff $cache_file confcache >/dev/null 2>&1; then :; else
11495 if test -w $cache_file; then
11496 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11497 cat confcache >$cache_file
11498 else
11499 echo "not updating unwritable cache $cache_file"
11500 fi
11501fi
11502rm -f confcache
11503
a848cd7e 11504CFLAGS=${CFLAGS:=}
6dcfc289
DE
11505
11506
3006edc0 11507
6dcfc289 11508 ac_ext=c
a848cd7e
SC
11509ac_cpp='$CPP $CPPFLAGS'
11510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11512ac_compiler_gnu=$ac_cv_c_compiler_gnu
11513if test -n "$ac_tool_prefix"; then
11514 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11515set dummy ${ac_tool_prefix}gcc; ac_word=$2
11516echo "$as_me:$LINENO: checking for $ac_word" >&5
11517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11518if test "${ac_cv_prog_CC+set}" = set; then
11519 echo $ECHO_N "(cached) $ECHO_C" >&6
11520else
11521 if test -n "$CC"; then
11522 ac_cv_prog_CC="$CC" # Let the user override the test.
11523else
11524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11525for as_dir in $PATH
11526do
11527 IFS=$as_save_IFS
11528 test -z "$as_dir" && as_dir=.
11529 for ac_exec_ext in '' $ac_executable_extensions; do
11530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11531 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11533 break 2
11534 fi
11535done
11536done
11537
11538fi
11539fi
11540CC=$ac_cv_prog_CC
11541if test -n "$CC"; then
11542 echo "$as_me:$LINENO: result: $CC" >&5
11543echo "${ECHO_T}$CC" >&6
11544else
11545 echo "$as_me:$LINENO: result: no" >&5
11546echo "${ECHO_T}no" >&6
11547fi
11548
11549fi
11550if test -z "$ac_cv_prog_CC"; then
11551 ac_ct_CC=$CC
11552 # Extract the first word of "gcc", so it can be a program name with args.
11553set dummy gcc; ac_word=$2
11554echo "$as_me:$LINENO: checking for $ac_word" >&5
11555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11556if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
11558else
11559 if test -n "$ac_ct_CC"; then
11560 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11561else
11562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11563for as_dir in $PATH
11564do
11565 IFS=$as_save_IFS
11566 test -z "$as_dir" && as_dir=.
11567 for ac_exec_ext in '' $ac_executable_extensions; do
11568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11569 ac_cv_prog_ac_ct_CC="gcc"
11570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11571 break 2
11572 fi
11573done
11574done
11575
11576fi
11577fi
11578ac_ct_CC=$ac_cv_prog_ac_ct_CC
11579if test -n "$ac_ct_CC"; then
11580 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11581echo "${ECHO_T}$ac_ct_CC" >&6
11582else
11583 echo "$as_me:$LINENO: result: no" >&5
11584echo "${ECHO_T}no" >&6
11585fi
11586
11587 CC=$ac_ct_CC
11588else
11589 CC="$ac_cv_prog_CC"
11590fi
11591
11592if test -z "$CC"; then
11593 if test -n "$ac_tool_prefix"; then
11594 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11595set dummy ${ac_tool_prefix}cc; ac_word=$2
11596echo "$as_me:$LINENO: checking for $ac_word" >&5
11597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11598if test "${ac_cv_prog_CC+set}" = set; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11600else
11601 if test -n "$CC"; then
11602 ac_cv_prog_CC="$CC" # Let the user override the test.
11603else
11604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11605for as_dir in $PATH
11606do
11607 IFS=$as_save_IFS
11608 test -z "$as_dir" && as_dir=.
11609 for ac_exec_ext in '' $ac_executable_extensions; do
11610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11611 ac_cv_prog_CC="${ac_tool_prefix}cc"
11612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11613 break 2
11614 fi
11615done
11616done
11617
11618fi
11619fi
11620CC=$ac_cv_prog_CC
11621if test -n "$CC"; then
11622 echo "$as_me:$LINENO: result: $CC" >&5
11623echo "${ECHO_T}$CC" >&6
11624else
11625 echo "$as_me:$LINENO: result: no" >&5
11626echo "${ECHO_T}no" >&6
11627fi
11628
11629fi
11630if test -z "$ac_cv_prog_CC"; then
11631 ac_ct_CC=$CC
11632 # Extract the first word of "cc", so it can be a program name with args.
11633set dummy cc; ac_word=$2
11634echo "$as_me:$LINENO: checking for $ac_word" >&5
11635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11636if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11637 echo $ECHO_N "(cached) $ECHO_C" >&6
11638else
11639 if test -n "$ac_ct_CC"; then
11640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11641else
11642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11643for as_dir in $PATH
11644do
11645 IFS=$as_save_IFS
11646 test -z "$as_dir" && as_dir=.
11647 for ac_exec_ext in '' $ac_executable_extensions; do
11648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11649 ac_cv_prog_ac_ct_CC="cc"
11650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11651 break 2
11652 fi
11653done
11654done
11655
11656fi
11657fi
11658ac_ct_CC=$ac_cv_prog_ac_ct_CC
11659if test -n "$ac_ct_CC"; then
11660 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11661echo "${ECHO_T}$ac_ct_CC" >&6
11662else
11663 echo "$as_me:$LINENO: result: no" >&5
11664echo "${ECHO_T}no" >&6
11665fi
11666
11667 CC=$ac_ct_CC
11668else
11669 CC="$ac_cv_prog_CC"
11670fi
11671
11672fi
11673if test -z "$CC"; then
11674 # Extract the first word of "cc", so it can be a program name with args.
11675set dummy cc; ac_word=$2
11676echo "$as_me:$LINENO: checking for $ac_word" >&5
11677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11678if test "${ac_cv_prog_CC+set}" = set; then
11679 echo $ECHO_N "(cached) $ECHO_C" >&6
11680else
11681 if test -n "$CC"; then
11682 ac_cv_prog_CC="$CC" # Let the user override the test.
11683else
11684 ac_prog_rejected=no
11685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686for as_dir in $PATH
11687do
11688 IFS=$as_save_IFS
11689 test -z "$as_dir" && as_dir=.
11690 for ac_exec_ext in '' $ac_executable_extensions; do
11691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11692 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11693 ac_prog_rejected=yes
11694 continue
11695 fi
11696 ac_cv_prog_CC="cc"
11697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11698 break 2
11699 fi
11700done
11701done
11702
11703if test $ac_prog_rejected = yes; then
11704 # We found a bogon in the path, so make sure we never use it.
11705 set dummy $ac_cv_prog_CC
11706 shift
11707 if test $# != 0; then
11708 # We chose a different compiler from the bogus one.
11709 # However, it has the same basename, so the bogon will be chosen
11710 # first if we set CC to just the basename; use the full file name.
11711 shift
11712 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11713 fi
11714fi
11715fi
11716fi
11717CC=$ac_cv_prog_CC
11718if test -n "$CC"; then
11719 echo "$as_me:$LINENO: result: $CC" >&5
11720echo "${ECHO_T}$CC" >&6
11721else
11722 echo "$as_me:$LINENO: result: no" >&5
11723echo "${ECHO_T}no" >&6
11724fi
11725
11726fi
11727if test -z "$CC"; then
11728 if test -n "$ac_tool_prefix"; then
11729 for ac_prog in cl
11730 do
11731 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11732set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11733echo "$as_me:$LINENO: checking for $ac_word" >&5
11734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11735if test "${ac_cv_prog_CC+set}" = set; then
11736 echo $ECHO_N "(cached) $ECHO_C" >&6
11737else
11738 if test -n "$CC"; then
11739 ac_cv_prog_CC="$CC" # Let the user override the test.
11740else
11741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11742for as_dir in $PATH
11743do
11744 IFS=$as_save_IFS
11745 test -z "$as_dir" && as_dir=.
11746 for ac_exec_ext in '' $ac_executable_extensions; do
11747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11748 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11750 break 2
11751 fi
11752done
11753done
11754
11755fi
11756fi
11757CC=$ac_cv_prog_CC
11758if test -n "$CC"; then
11759 echo "$as_me:$LINENO: result: $CC" >&5
11760echo "${ECHO_T}$CC" >&6
11761else
11762 echo "$as_me:$LINENO: result: no" >&5
11763echo "${ECHO_T}no" >&6
11764fi
11765
11766 test -n "$CC" && break
11767 done
11768fi
11769if test -z "$CC"; then
11770 ac_ct_CC=$CC
11771 for ac_prog in cl
11772do
11773 # Extract the first word of "$ac_prog", so it can be a program name with args.
11774set dummy $ac_prog; ac_word=$2
11775echo "$as_me:$LINENO: checking for $ac_word" >&5
11776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11777if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11778 echo $ECHO_N "(cached) $ECHO_C" >&6
11779else
11780 if test -n "$ac_ct_CC"; then
11781 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11782else
11783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11784for as_dir in $PATH
11785do
11786 IFS=$as_save_IFS
11787 test -z "$as_dir" && as_dir=.
11788 for ac_exec_ext in '' $ac_executable_extensions; do
11789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11790 ac_cv_prog_ac_ct_CC="$ac_prog"
11791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11792 break 2
11793 fi
11794done
11795done
11796
11797fi
11798fi
11799ac_ct_CC=$ac_cv_prog_ac_ct_CC
11800if test -n "$ac_ct_CC"; then
11801 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11802echo "${ECHO_T}$ac_ct_CC" >&6
11803else
11804 echo "$as_me:$LINENO: result: no" >&5
11805echo "${ECHO_T}no" >&6
11806fi
11807
11808 test -n "$ac_ct_CC" && break
11809done
11810
11811 CC=$ac_ct_CC
11812fi
11813
11814fi
11815
11816
11817test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11818See \`config.log' for more details." >&5
11819echo "$as_me: error: no acceptable C compiler found in \$PATH
11820See \`config.log' for more details." >&2;}
11821 { (exit 1); exit 1; }; }
11822
11823# Provide some information about the compiler.
11824echo "$as_me:$LINENO:" \
11825 "checking for C compiler version" >&5
11826ac_compiler=`set X $ac_compile; echo $2`
11827{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11828 (eval $ac_compiler --version </dev/null >&5) 2>&5
11829 ac_status=$?
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); }
11832{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11833 (eval $ac_compiler -v </dev/null >&5) 2>&5
11834 ac_status=$?
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); }
11837{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11838 (eval $ac_compiler -V </dev/null >&5) 2>&5
11839 ac_status=$?
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }
11842
11843cat >conftest.$ac_ext <<_ACEOF
11844/* confdefs.h. */
11845_ACEOF
11846cat confdefs.h >>conftest.$ac_ext
11847cat >>conftest.$ac_ext <<_ACEOF
11848/* end confdefs.h. */
11849
11850int
11851main ()
11852{
11853
11854 ;
11855 return 0;
11856}
11857_ACEOF
11858ac_clean_files_save=$ac_clean_files
11859ac_clean_files="$ac_clean_files a.out a.exe b.out"
11860# Try to create an executable without -o first, disregard a.out.
11861# It will help us diagnose broken compilers, and finding out an intuition
11862# of exeext.
ac1cb8d3
VS
11863echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11864echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11865ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11866if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11867 (eval $ac_link_default) 2>&5
11868 ac_status=$?
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); }; then
11871 # Find the output, starting from the most likely. This scheme is
11872# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11873# resort.
11874
11875# Be careful to initialize this variable, since it used to be cached.
11876# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11877ac_cv_exeext=
11878# b.out is created by i960 compilers.
11879for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11880do
11881 test -f "$ac_file" || continue
11882 case $ac_file in
11883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11884 ;;
a848cd7e 11885 conftest.$ac_ext )
ac1cb8d3
VS
11886 # This is the source file.
11887 ;;
a848cd7e 11888 [ab].out )
ac1cb8d3
VS
11889 # We found the default executable, but exeext='' is most
11890 # certainly right.
11891 break;;
a848cd7e 11892 *.* )
ac1cb8d3
VS
11893 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11894 # FIXME: I believe we export ac_cv_exeext for Libtool,
11895 # but it would be cool to find out if it's true. Does anybody
11896 # maintain Libtool? --akim.
11897 export ac_cv_exeext
11898 break;;
a848cd7e 11899 * )
ac1cb8d3 11900 break;;
a848cd7e
SC
11901 esac
11902done
11903else
11904 echo "$as_me: failed program was:" >&5
11905sed 's/^/| /' conftest.$ac_ext >&5
11906
11907{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11908See \`config.log' for more details." >&5
11909echo "$as_me: error: C compiler cannot create executables
11910See \`config.log' for more details." >&2;}
11911 { (exit 77); exit 77; }; }
11912fi
11913
11914ac_exeext=$ac_cv_exeext
11915echo "$as_me:$LINENO: result: $ac_file" >&5
11916echo "${ECHO_T}$ac_file" >&6
11917
11918# Check the compiler produces executables we can run. If not, either
11919# the compiler is broken, or we cross compile.
11920echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11921echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11922# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11923# If not cross compiling, check that we can run a simple program.
11924if test "$cross_compiling" != yes; then
11925 if { ac_try='./$ac_file'
11926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927 (eval $ac_try) 2>&5
11928 ac_status=$?
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; }; then
11931 cross_compiling=no
11932 else
11933 if test "$cross_compiling" = maybe; then
11934 cross_compiling=yes
11935 else
11936 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11937If you meant to cross compile, use \`--host'.
11938See \`config.log' for more details." >&5
11939echo "$as_me: error: cannot run C compiled programs.
11940If you meant to cross compile, use \`--host'.
11941See \`config.log' for more details." >&2;}
11942 { (exit 1); exit 1; }; }
11943 fi
11944 fi
11945fi
11946echo "$as_me:$LINENO: result: yes" >&5
11947echo "${ECHO_T}yes" >&6
11948
11949rm -f a.out a.exe conftest$ac_cv_exeext b.out
11950ac_clean_files=$ac_clean_files_save
11951# Check the compiler produces executables we can run. If not, either
11952# the compiler is broken, or we cross compile.
11953echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11954echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11955echo "$as_me:$LINENO: result: $cross_compiling" >&5
11956echo "${ECHO_T}$cross_compiling" >&6
11957
11958echo "$as_me:$LINENO: checking for suffix of executables" >&5
11959echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11961 (eval $ac_link) 2>&5
11962 ac_status=$?
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); }; then
11965 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11966# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11967# work properly (i.e., refer to `conftest.exe'), while it won't with
11968# `rm'.
11969for ac_file in conftest.exe conftest conftest.*; do
11970 test -f "$ac_file" || continue
11971 case $ac_file in
11972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11973 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11974 export ac_cv_exeext
11975 break;;
a848cd7e
SC
11976 * ) break;;
11977 esac
11978done
11979else
11980 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11981See \`config.log' for more details." >&5
11982echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11983See \`config.log' for more details." >&2;}
11984 { (exit 1); exit 1; }; }
11985fi
11986
11987rm -f conftest$ac_cv_exeext
11988echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11989echo "${ECHO_T}$ac_cv_exeext" >&6
11990
11991rm -f conftest.$ac_ext
11992EXEEXT=$ac_cv_exeext
11993ac_exeext=$EXEEXT
11994echo "$as_me:$LINENO: checking for suffix of object files" >&5
11995echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11996if test "${ac_cv_objext+set}" = set; then
11997 echo $ECHO_N "(cached) $ECHO_C" >&6
11998else
11999 cat >conftest.$ac_ext <<_ACEOF
12000/* confdefs.h. */
12001_ACEOF
12002cat confdefs.h >>conftest.$ac_ext
12003cat >>conftest.$ac_ext <<_ACEOF
12004/* end confdefs.h. */
12005
12006int
12007main ()
12008{
12009
12010 ;
12011 return 0;
12012}
12013_ACEOF
12014rm -f conftest.o conftest.obj
12015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12016 (eval $ac_compile) 2>&5
12017 ac_status=$?
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; then
12020 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12021 case $ac_file in
12022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12023 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12024 break;;
12025 esac
12026done
12027else
12028 echo "$as_me: failed program was:" >&5
12029sed 's/^/| /' conftest.$ac_ext >&5
12030
12031{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12032See \`config.log' for more details." >&5
12033echo "$as_me: error: cannot compute suffix of object files: cannot compile
12034See \`config.log' for more details." >&2;}
12035 { (exit 1); exit 1; }; }
12036fi
12037
12038rm -f conftest.$ac_cv_objext conftest.$ac_ext
12039fi
12040echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12041echo "${ECHO_T}$ac_cv_objext" >&6
12042OBJEXT=$ac_cv_objext
12043ac_objext=$OBJEXT
12044echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12045echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12046if test "${ac_cv_c_compiler_gnu+set}" = set; then
12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12048else
12049 cat >conftest.$ac_ext <<_ACEOF
12050/* confdefs.h. */
12051_ACEOF
12052cat confdefs.h >>conftest.$ac_ext
12053cat >>conftest.$ac_ext <<_ACEOF
12054/* end confdefs.h. */
12055
12056int
12057main ()
12058{
12059#ifndef __GNUC__
12060 choke me
12061#endif
12062
12063 ;
12064 return 0;
12065}
12066_ACEOF
12067rm -f conftest.$ac_objext
12068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12069 (eval $ac_compile) 2>conftest.er1
a848cd7e 12070 ac_status=$?
ac1cb8d3
VS
12071 grep -v '^ *+' conftest.er1 >conftest.err
12072 rm -f conftest.er1
12073 cat conftest.err >&5
a848cd7e
SC
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } &&
3f60522a
JS
12076 { ac_try='test -z "$ac_c_werror_flag"
12077 || test ! -s conftest.err'
ac1cb8d3
VS
12078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079 (eval $ac_try) 2>&5
12080 ac_status=$?
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; } &&
12083 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085 (eval $ac_try) 2>&5
12086 ac_status=$?
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; }; then
12089 ac_compiler_gnu=yes
12090else
12091 echo "$as_me: failed program was:" >&5
12092sed 's/^/| /' conftest.$ac_ext >&5
12093
12094ac_compiler_gnu=no
12095fi
ac1cb8d3 12096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12097ac_cv_c_compiler_gnu=$ac_compiler_gnu
12098
12099fi
12100echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12101echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12102GCC=`test $ac_compiler_gnu = yes && echo yes`
12103ac_test_CFLAGS=${CFLAGS+set}
12104ac_save_CFLAGS=$CFLAGS
8aeeb05c 12105CFLAGS="-g"
a848cd7e
SC
12106echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12107echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12108if test "${ac_cv_prog_cc_g+set}" = set; then
12109 echo $ECHO_N "(cached) $ECHO_C" >&6
12110else
12111 cat >conftest.$ac_ext <<_ACEOF
12112/* confdefs.h. */
12113_ACEOF
12114cat confdefs.h >>conftest.$ac_ext
12115cat >>conftest.$ac_ext <<_ACEOF
12116/* end confdefs.h. */
12117
12118int
12119main ()
12120{
12121
12122 ;
12123 return 0;
12124}
12125_ACEOF
12126rm -f conftest.$ac_objext
12127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12128 (eval $ac_compile) 2>conftest.er1
a848cd7e 12129 ac_status=$?
ac1cb8d3
VS
12130 grep -v '^ *+' conftest.er1 >conftest.err
12131 rm -f conftest.er1
12132 cat conftest.err >&5
a848cd7e
SC
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } &&
3f60522a
JS
12135 { ac_try='test -z "$ac_c_werror_flag"
12136 || test ! -s conftest.err'
ac1cb8d3
VS
12137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12138 (eval $ac_try) 2>&5
12139 ac_status=$?
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); }; } &&
12142 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144 (eval $ac_try) 2>&5
12145 ac_status=$?
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; }; then
12148 ac_cv_prog_cc_g=yes
12149else
12150 echo "$as_me: failed program was:" >&5
12151sed 's/^/| /' conftest.$ac_ext >&5
12152
12153ac_cv_prog_cc_g=no
12154fi
ac1cb8d3 12155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12156fi
12157echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12158echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12159if test "$ac_test_CFLAGS" = set; then
12160 CFLAGS=$ac_save_CFLAGS
12161elif test $ac_cv_prog_cc_g = yes; then
12162 if test "$GCC" = yes; then
12163 CFLAGS="-g -O2"
12164 else
12165 CFLAGS="-g"
12166 fi
12167else
12168 if test "$GCC" = yes; then
12169 CFLAGS="-O2"
12170 else
12171 CFLAGS=
12172 fi
12173fi
12174echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12175echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12176if test "${ac_cv_prog_cc_stdc+set}" = set; then
12177 echo $ECHO_N "(cached) $ECHO_C" >&6
12178else
12179 ac_cv_prog_cc_stdc=no
12180ac_save_CC=$CC
12181cat >conftest.$ac_ext <<_ACEOF
12182/* confdefs.h. */
12183_ACEOF
12184cat confdefs.h >>conftest.$ac_ext
12185cat >>conftest.$ac_ext <<_ACEOF
12186/* end confdefs.h. */
12187#include <stdarg.h>
12188#include <stdio.h>
12189#include <sys/types.h>
12190#include <sys/stat.h>
12191/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12192struct buf { int x; };
12193FILE * (*rcsopen) (struct buf *, struct stat *, int);
12194static char *e (p, i)
12195 char **p;
12196 int i;
12197{
12198 return p[i];
12199}
12200static char *f (char * (*g) (char **, int), char **p, ...)
12201{
12202 char *s;
12203 va_list v;
12204 va_start (v,p);
12205 s = g (p, va_arg (v,int));
12206 va_end (v);
12207 return s;
12208}
ac1cb8d3
VS
12209
12210/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12211 function prototypes and stuff, but not '\xHH' hex character constants.
12212 These don't provoke an error unfortunately, instead are silently treated
12213 as 'x'. The following induces an error, until -std1 is added to get
12214 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12215 array size at least. It's necessary to write '\x00'==0 to get something
12216 that's true only with -std1. */
12217int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12218
a848cd7e
SC
12219int test (int i, double x);
12220struct s1 {int (*f) (int a);};
12221struct s2 {int (*f) (double a);};
12222int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12223int argc;
12224char **argv;
12225int
12226main ()
12227{
12228return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12229 ;
12230 return 0;
12231}
12232_ACEOF
12233# Don't try gcc -ansi; that turns off useful extensions and
12234# breaks some systems' header files.
12235# AIX -qlanglvl=ansi
12236# Ultrix and OSF/1 -std1
12237# HP-UX 10.20 and later -Ae
12238# HP-UX older versions -Aa -D_HPUX_SOURCE
12239# SVR4 -Xc -D__EXTENSIONS__
12240for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12241do
12242 CC="$ac_save_CC $ac_arg"
12243 rm -f conftest.$ac_objext
12244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12245 (eval $ac_compile) 2>conftest.er1
a848cd7e 12246 ac_status=$?
ac1cb8d3
VS
12247 grep -v '^ *+' conftest.er1 >conftest.err
12248 rm -f conftest.er1
12249 cat conftest.err >&5
a848cd7e
SC
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); } &&
3f60522a
JS
12252 { ac_try='test -z "$ac_c_werror_flag"
12253 || test ! -s conftest.err'
ac1cb8d3
VS
12254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12255 (eval $ac_try) 2>&5
12256 ac_status=$?
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); }; } &&
12259 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12261 (eval $ac_try) 2>&5
12262 ac_status=$?
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); }; }; then
12265 ac_cv_prog_cc_stdc=$ac_arg
12266break
12267else
12268 echo "$as_me: failed program was:" >&5
12269sed 's/^/| /' conftest.$ac_ext >&5
12270
12271fi
ac1cb8d3 12272rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
12273done
12274rm -f conftest.$ac_ext conftest.$ac_objext
12275CC=$ac_save_CC
12276
12277fi
12278
12279case "x$ac_cv_prog_cc_stdc" in
12280 x|xno)
12281 echo "$as_me:$LINENO: result: none needed" >&5
12282echo "${ECHO_T}none needed" >&6 ;;
12283 *)
12284 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12285echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12286 CC="$CC $ac_cv_prog_cc_stdc" ;;
12287esac
12288
12289# Some people use a C++ compiler to compile C. Since we use `exit',
12290# in C++ we need to declare it. In case someone uses the same compiler
12291# for both compiling C and C++ we need to have the C++ compiler decide
12292# the declaration of exit, since it's the most demanding environment.
12293cat >conftest.$ac_ext <<_ACEOF
12294#ifndef __cplusplus
12295 choke me
12296#endif
12297_ACEOF
12298rm -f conftest.$ac_objext
12299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12300 (eval $ac_compile) 2>conftest.er1
a848cd7e 12301 ac_status=$?
ac1cb8d3
VS
12302 grep -v '^ *+' conftest.er1 >conftest.err
12303 rm -f conftest.er1
12304 cat conftest.err >&5
a848cd7e
SC
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } &&
3f60522a
JS
12307 { ac_try='test -z "$ac_c_werror_flag"
12308 || test ! -s conftest.err'
ac1cb8d3
VS
12309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12310 (eval $ac_try) 2>&5
12311 ac_status=$?
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); }; } &&
12314 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316 (eval $ac_try) 2>&5
12317 ac_status=$?
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; }; then
12320 for ac_declaration in \
ac1cb8d3 12321 '' \
a848cd7e
SC
12322 'extern "C" void std::exit (int) throw (); using std::exit;' \
12323 'extern "C" void std::exit (int); using std::exit;' \
12324 'extern "C" void exit (int) throw ();' \
12325 'extern "C" void exit (int);' \
12326 'void exit (int);'
12327do
12328 cat >conftest.$ac_ext <<_ACEOF
12329/* confdefs.h. */
12330_ACEOF
12331cat confdefs.h >>conftest.$ac_ext
12332cat >>conftest.$ac_ext <<_ACEOF
12333/* end confdefs.h. */
de59c161 12334$ac_declaration
ac1cb8d3 12335#include <stdlib.h>
a848cd7e
SC
12336int
12337main ()
12338{
12339exit (42);
12340 ;
12341 return 0;
12342}
12343_ACEOF
12344rm -f conftest.$ac_objext
12345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12346 (eval $ac_compile) 2>conftest.er1
a848cd7e 12347 ac_status=$?
ac1cb8d3
VS
12348 grep -v '^ *+' conftest.er1 >conftest.err
12349 rm -f conftest.er1
12350 cat conftest.err >&5
a848cd7e
SC
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); } &&
3f60522a
JS
12353 { ac_try='test -z "$ac_c_werror_flag"
12354 || test ! -s conftest.err'
ac1cb8d3
VS
12355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356 (eval $ac_try) 2>&5
12357 ac_status=$?
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); }; } &&
12360 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12362 (eval $ac_try) 2>&5
12363 ac_status=$?
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); }; }; then
12366 :
12367else
12368 echo "$as_me: failed program was:" >&5
12369sed 's/^/| /' conftest.$ac_ext >&5
12370
12371continue
12372fi
ac1cb8d3 12373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12374 cat >conftest.$ac_ext <<_ACEOF
12375/* confdefs.h. */
12376_ACEOF
12377cat confdefs.h >>conftest.$ac_ext
12378cat >>conftest.$ac_ext <<_ACEOF
12379/* end confdefs.h. */
12380$ac_declaration
12381int
12382main ()
12383{
12384exit (42);
12385 ;
12386 return 0;
12387}
12388_ACEOF
12389rm -f conftest.$ac_objext
12390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12391 (eval $ac_compile) 2>conftest.er1
a848cd7e 12392 ac_status=$?
ac1cb8d3
VS
12393 grep -v '^ *+' conftest.er1 >conftest.err
12394 rm -f conftest.er1
12395 cat conftest.err >&5
a848cd7e
SC
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); } &&
3f60522a
JS
12398 { ac_try='test -z "$ac_c_werror_flag"
12399 || test ! -s conftest.err'
ac1cb8d3
VS
12400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12401 (eval $ac_try) 2>&5
12402 ac_status=$?
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); }; } &&
12405 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12408 ac_status=$?
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; }; then
12411 break
12412else
12413 echo "$as_me: failed program was:" >&5
12414sed 's/^/| /' conftest.$ac_ext >&5
12415
12416fi
ac1cb8d3 12417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12418done
12419rm -f conftest*
12420if test -n "$ac_declaration"; then
12421 echo '#ifdef __cplusplus' >>confdefs.h
12422 echo $ac_declaration >>confdefs.h
12423 echo '#endif' >>confdefs.h
12424fi
12425
12426else
12427 echo "$as_me: failed program was:" >&5
12428sed 's/^/| /' conftest.$ac_ext >&5
12429
12430fi
ac1cb8d3 12431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12432ac_ext=c
12433ac_cpp='$CPP $CPPFLAGS'
12434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12436ac_compiler_gnu=$ac_cv_c_compiler_gnu
12437
ab0ad5f1
VZ
12438
12439
12440 ac_ext=c
12441ac_cpp='$CPP $CPPFLAGS'
12442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12444ac_compiler_gnu=$ac_cv_c_compiler_gnu
12445
12446 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12447echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12448if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12449 echo $ECHO_N "(cached) $ECHO_C" >&6
12450else
12451 cat >conftest.$ac_ext <<_ACEOF
12452/* confdefs.h. */
12453_ACEOF
12454cat confdefs.h >>conftest.$ac_ext
12455cat >>conftest.$ac_ext <<_ACEOF
12456/* end confdefs.h. */
12457
12458int
12459main ()
12460{
12461
12462 #ifndef __INTEL_COMPILER
12463 choke me
12464 #endif
12465
12466 ;
12467 return 0;
12468}
12469_ACEOF
12470rm -f conftest.$ac_objext
12471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12472 (eval $ac_compile) 2>conftest.er1
12473 ac_status=$?
12474 grep -v '^ *+' conftest.er1 >conftest.err
12475 rm -f conftest.er1
12476 cat conftest.err >&5
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); } &&
3f60522a
JS
12479 { ac_try='test -z "$ac_c_werror_flag"
12480 || test ! -s conftest.err'
ab0ad5f1
VZ
12481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482 (eval $ac_try) 2>&5
12483 ac_status=$?
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; } &&
12486 { ac_try='test -s conftest.$ac_objext'
12487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12488 (eval $ac_try) 2>&5
12489 ac_status=$?
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); }; }; then
12492 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12493else
12494 echo "$as_me: failed program was:" >&5
12495sed 's/^/| /' conftest.$ac_ext >&5
12496
12497bakefile_cv_c_compiler___INTEL_COMPILER=no
12498
12499fi
12500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12501
12502
12503fi
12504echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12505echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12506 ac_ext=c
12507ac_cpp='$CPP $CPPFLAGS'
12508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12510ac_compiler_gnu=$ac_cv_c_compiler_gnu
12511
12512 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12513 :; INTELCC=yes
12514 else
12515 :;
12516 fi
12517
12518
12519 if test "x$GCC" != "xyes"; then
3006edc0
VZ
12520 if test "xCC" = "xC"; then
12521 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 12522echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 12523if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
12525else
12526 cat >conftest.$ac_ext <<_ACEOF
12527/* confdefs.h. */
12528_ACEOF
12529cat confdefs.h >>conftest.$ac_ext
12530cat >>conftest.$ac_ext <<_ACEOF
12531/* end confdefs.h. */
12532
12533int
12534main ()
12535{
12536
12537 ;
12538 return 0;
12539}
12540_ACEOF
12541rm -f conftest.$ac_objext conftest.$ac_ext.o
12542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12543 (eval $ac_compile) 2>&5
12544 ac_status=$?
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; then
12547 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12548 case $ac_file in
12549 conftest.$ac_ext.o)
0093c2fc 12550 bakefile_cv_c_exto="-ext o"
480ccd21
DE
12551 ;;
12552 *)
12553 ;;
12554 esac
12555done
12556else
12557 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12558See \`config.log' for more details." >&5
12559echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12560See \`config.log' for more details." >&2;}
12561 { (exit 1); exit 1; }; }
12562
12563fi
12564
12565rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12566
12567fi
0093c2fc
VZ
12568echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12569echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12570if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 12571 if test "c" = "c"; then
0093c2fc 12572 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
12573 fi
12574 if test "c" = "cxx"; then
0093c2fc 12575 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
12576 fi
12577fi
12578
0093c2fc 12579 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
12580 unset ac_cv_prog_cc_g
12581 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 12582ac_save_CFLAGS=$CFLAGS
8aeeb05c 12583CFLAGS="-g"
480ccd21
DE
12584echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12585echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12586if test "${ac_cv_prog_cc_g+set}" = set; then
12587 echo $ECHO_N "(cached) $ECHO_C" >&6
12588else
12589 cat >conftest.$ac_ext <<_ACEOF
12590/* confdefs.h. */
12591_ACEOF
12592cat confdefs.h >>conftest.$ac_ext
12593cat >>conftest.$ac_ext <<_ACEOF
12594/* end confdefs.h. */
12595
12596int
12597main ()
12598{
12599
12600 ;
12601 return 0;
12602}
12603_ACEOF
12604rm -f conftest.$ac_objext
12605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12606 (eval $ac_compile) 2>conftest.er1
12607 ac_status=$?
12608 grep -v '^ *+' conftest.er1 >conftest.err
12609 rm -f conftest.er1
12610 cat conftest.err >&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } &&
3f60522a
JS
12613 { ac_try='test -z "$ac_c_werror_flag"
12614 || test ! -s conftest.err'
480ccd21
DE
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12617 ac_status=$?
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; } &&
12620 { ac_try='test -s conftest.$ac_objext'
12621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622 (eval $ac_try) 2>&5
12623 ac_status=$?
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; }; then
12626 ac_cv_prog_cc_g=yes
12627else
12628 echo "$as_me: failed program was:" >&5
12629sed 's/^/| /' conftest.$ac_ext >&5
12630
12631ac_cv_prog_cc_g=no
12632fi
12633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12634fi
12635echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12636echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12637if test "$ac_test_CFLAGS" = set; then
12638 CFLAGS=$ac_save_CFLAGS
12639elif test $ac_cv_prog_cc_g = yes; then
12640 if test "$GCC" = yes; then
12641 CFLAGS="-g -O2"
12642 else
12643 CFLAGS="-g"
12644 fi
12645else
12646 if test "$GCC" = yes; then
12647 CFLAGS="-O2"
12648 else
12649 CFLAGS=
12650 fi
12651fi
3006edc0 12652 fi
ab0ad5f1 12653 fi
3006edc0
VZ
12654
12655 case `uname -s` in
12656 AIX*)
12657 ac_ext=c
12658ac_cpp='$CPP $CPPFLAGS'
12659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12661ac_compiler_gnu=$ac_cv_c_compiler_gnu
12662
12663echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12664echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12665if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12666 echo $ECHO_N "(cached) $ECHO_C" >&6
12667else
12668 cat >conftest.$ac_ext <<_ACEOF
12669/* confdefs.h. */
12670_ACEOF
12671cat confdefs.h >>conftest.$ac_ext
12672cat >>conftest.$ac_ext <<_ACEOF
12673/* end confdefs.h. */
12674
12675int
12676main ()
12677{
12678#ifndef __xlC__
12679 choke me
12680#endif
12681
12682 ;
12683 return 0;
12684}
12685_ACEOF
12686rm -f conftest.$ac_objext
12687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12688 (eval $ac_compile) 2>conftest.er1
12689 ac_status=$?
12690 grep -v '^ *+' conftest.er1 >conftest.err
12691 rm -f conftest.er1
12692 cat conftest.err >&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); } &&
3f60522a
JS
12695 { ac_try='test -z "$ac_c_werror_flag"
12696 || test ! -s conftest.err'
3006edc0
VZ
12697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12698 (eval $ac_try) 2>&5
12699 ac_status=$?
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); }; } &&
12702 { ac_try='test -s conftest.$ac_objext'
12703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12704 (eval $ac_try) 2>&5
12705 ac_status=$?
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; }; then
0093c2fc 12708 bakefile_compiler_xlc=yes
3006edc0
VZ
12709else
12710 echo "$as_me: failed program was:" >&5
12711sed 's/^/| /' conftest.$ac_ext >&5
12712
0093c2fc 12713bakefile_compiler_xlc=no
3006edc0
VZ
12714fi
12715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12716 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
12717
12718fi
0093c2fc
VZ
12719echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12720echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 12721
0093c2fc 12722XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
12723ac_ext=c
12724ac_cpp='$CPP $CPPFLAGS'
12725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12727ac_compiler_gnu=$ac_cv_c_compiler_gnu
12728
12729
12730 ;;
12731
12732 Darwin)
12733 ac_ext=c
95986553
DE
12734ac_cpp='$CPP $CPPFLAGS'
12735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12737ac_compiler_gnu=$ac_cv_c_compiler_gnu
12738
12739echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12740echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12741if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12742 echo $ECHO_N "(cached) $ECHO_C" >&6
12743else
12744 cat >conftest.$ac_ext <<_ACEOF
12745/* confdefs.h. */
12746_ACEOF
12747cat confdefs.h >>conftest.$ac_ext
12748cat >>conftest.$ac_ext <<_ACEOF
12749/* end confdefs.h. */
12750
12751int
12752main ()
12753{
12754#ifndef __MWERKS__
12755 choke me
12756#endif
12757
12758 ;
12759 return 0;
12760}
12761_ACEOF
12762rm -f conftest.$ac_objext
12763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12764 (eval $ac_compile) 2>conftest.er1
12765 ac_status=$?
12766 grep -v '^ *+' conftest.er1 >conftest.err
12767 rm -f conftest.er1
12768 cat conftest.err >&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); } &&
3f60522a
JS
12771 { ac_try='test -z "$ac_c_werror_flag"
12772 || test ! -s conftest.err'
95986553
DE
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); }; } &&
12778 { ac_try='test -s conftest.$ac_objext'
12779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780 (eval $ac_try) 2>&5
12781 ac_status=$?
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; }; then
12784 bakefile_compiler_mwerks=yes
12785else
12786 echo "$as_me: failed program was:" >&5
12787sed 's/^/| /' conftest.$ac_ext >&5
12788
12789bakefile_compiler_mwerks=no
12790fi
12791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12792 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12793
12794fi
12795echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12796echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12797
0e6fa1d9 12798MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12799ac_ext=c
12800ac_cpp='$CPP $CPPFLAGS'
12801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12803ac_compiler_gnu=$ac_cv_c_compiler_gnu
12804
12805
3006edc0 12806 ac_ext=c
9273ffba
DE
12807ac_cpp='$CPP $CPPFLAGS'
12808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12810ac_compiler_gnu=$ac_cv_c_compiler_gnu
12811
12812echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12813echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12814if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
12816else
12817 cat >conftest.$ac_ext <<_ACEOF
12818/* confdefs.h. */
12819_ACEOF
12820cat confdefs.h >>conftest.$ac_ext
12821cat >>conftest.$ac_ext <<_ACEOF
12822/* end confdefs.h. */
12823
12824int
12825main ()
12826{
12827#ifndef __xlC__
12828 choke me
12829#endif
12830
12831 ;
12832 return 0;
12833}
12834_ACEOF
12835rm -f conftest.$ac_objext
12836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12837 (eval $ac_compile) 2>conftest.er1
12838 ac_status=$?
12839 grep -v '^ *+' conftest.er1 >conftest.err
12840 rm -f conftest.er1
12841 cat conftest.err >&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); } &&
3f60522a
JS
12844 { ac_try='test -z "$ac_c_werror_flag"
12845 || test ! -s conftest.err'
9273ffba
DE
12846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12847 (eval $ac_try) 2>&5
12848 ac_status=$?
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; } &&
12851 { ac_try='test -s conftest.$ac_objext'
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12854 ac_status=$?
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; }; then
0093c2fc 12857 bakefile_compiler_xlc=yes
9273ffba
DE
12858else
12859 echo "$as_me: failed program was:" >&5
12860sed 's/^/| /' conftest.$ac_ext >&5
12861
0093c2fc 12862bakefile_compiler_xlc=no
9273ffba
DE
12863fi
12864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12865 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
12866
12867fi
0093c2fc
VZ
12868echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12869echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 12870
0093c2fc 12871XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
12872ac_ext=c
12873ac_cpp='$CPP $CPPFLAGS'
12874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12876ac_compiler_gnu=$ac_cv_c_compiler_gnu
12877
12878
3006edc0
VZ
12879 ;;
12880
12881 IRIX*)
a848cd7e 12882
6dcfc289 12883
0ad5d837
VZ
12884 ac_ext=c
12885ac_cpp='$CPP $CPPFLAGS'
12886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12888ac_compiler_gnu=$ac_cv_c_compiler_gnu
12889
12890 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12891echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12892if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12893 echo $ECHO_N "(cached) $ECHO_C" >&6
12894else
12895 cat >conftest.$ac_ext <<_ACEOF
12896/* confdefs.h. */
12897_ACEOF
12898cat confdefs.h >>conftest.$ac_ext
12899cat >>conftest.$ac_ext <<_ACEOF
12900/* end confdefs.h. */
12901
12902int
12903main ()
12904{
12905
12906 #ifndef _SGI_COMPILER_VERSION
12907 choke me
12908 #endif
12909
12910 ;
12911 return 0;
12912}
12913_ACEOF
12914rm -f conftest.$ac_objext
12915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12916 (eval $ac_compile) 2>conftest.er1
12917 ac_status=$?
12918 grep -v '^ *+' conftest.er1 >conftest.err
12919 rm -f conftest.er1
12920 cat conftest.err >&5
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); } &&
3f60522a
JS
12923 { ac_try='test -z "$ac_c_werror_flag"
12924 || test ! -s conftest.err'
0ad5d837
VZ
12925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12926 (eval $ac_try) 2>&5
12927 ac_status=$?
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); }; } &&
12930 { ac_try='test -s conftest.$ac_objext'
12931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12932 (eval $ac_try) 2>&5
12933 ac_status=$?
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); }; }; then
12936 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12937else
12938 echo "$as_me: failed program was:" >&5
12939sed 's/^/| /' conftest.$ac_ext >&5
12940
12941bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12942
12943fi
12944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12945
12946
12947fi
12948echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12949echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
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 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12957 :; SGICC=yes
12958 else
12959 :;
12960 fi
12961
12962
3006edc0
VZ
12963 ;;
12964
0093c2fc 12965 HP-UX*)
3006edc0
VZ
12966
12967
12968 ac_ext=c
12969ac_cpp='$CPP $CPPFLAGS'
12970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12972ac_compiler_gnu=$ac_cv_c_compiler_gnu
12973
0093c2fc
VZ
12974 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
12975echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
12976if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
12977 echo $ECHO_N "(cached) $ECHO_C" >&6
12978else
12979 cat >conftest.$ac_ext <<_ACEOF
12980/* confdefs.h. */
12981_ACEOF
12982cat confdefs.h >>conftest.$ac_ext
12983cat >>conftest.$ac_ext <<_ACEOF
12984/* end confdefs.h. */
12985
12986int
12987main ()
12988{
12989
0093c2fc 12990 #ifndef __HP_cc
3006edc0
VZ
12991 choke me
12992 #endif
12993
12994 ;
12995 return 0;
12996}
12997_ACEOF
12998rm -f conftest.$ac_objext
12999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13000 (eval $ac_compile) 2>conftest.er1
13001 ac_status=$?
13002 grep -v '^ *+' conftest.er1 >conftest.err
13003 rm -f conftest.er1
13004 cat conftest.err >&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); } &&
3f60522a
JS
13007 { ac_try='test -z "$ac_c_werror_flag"
13008 || test ! -s conftest.err'
3006edc0
VZ
13009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13010 (eval $ac_try) 2>&5
13011 ac_status=$?
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; } &&
13014 { ac_try='test -s conftest.$ac_objext'
13015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016 (eval $ac_try) 2>&5
13017 ac_status=$?
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; }; then
0093c2fc 13020 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
13021else
13022 echo "$as_me: failed program was:" >&5
13023sed 's/^/| /' conftest.$ac_ext >&5
13024
0093c2fc 13025bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
13026
13027fi
13028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13029
13030
13031fi
0093c2fc
VZ
13032echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13033echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
13034 ac_ext=c
13035ac_cpp='$CPP $CPPFLAGS'
13036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13038ac_compiler_gnu=$ac_cv_c_compiler_gnu
13039
0093c2fc
VZ
13040 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13041 :; HPCC=yes
a1aa0349
VZ
13042 else
13043 :;
13044 fi
13045
13046
13047 ;;
13048
0093c2fc 13049 OSF1)
a1aa0349
VZ
13050
13051
13052 ac_ext=c
13053ac_cpp='$CPP $CPPFLAGS'
13054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13056ac_compiler_gnu=$ac_cv_c_compiler_gnu
13057
0093c2fc
VZ
13058 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13059echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13060if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
13061 echo $ECHO_N "(cached) $ECHO_C" >&6
13062else
13063 cat >conftest.$ac_ext <<_ACEOF
13064/* confdefs.h. */
13065_ACEOF
13066cat confdefs.h >>conftest.$ac_ext
13067cat >>conftest.$ac_ext <<_ACEOF
13068/* end confdefs.h. */
13069
13070int
13071main ()
13072{
13073
0093c2fc 13074 #ifndef __DECC
a1aa0349
VZ
13075 choke me
13076 #endif
13077
13078 ;
13079 return 0;
13080}
13081_ACEOF
13082rm -f conftest.$ac_objext
13083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13084 (eval $ac_compile) 2>conftest.er1
13085 ac_status=$?
13086 grep -v '^ *+' conftest.er1 >conftest.err
13087 rm -f conftest.er1
13088 cat conftest.err >&5
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); } &&
3f60522a
JS
13091 { ac_try='test -z "$ac_c_werror_flag"
13092 || test ! -s conftest.err'
a1aa0349
VZ
13093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13094 (eval $ac_try) 2>&5
13095 ac_status=$?
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); }; } &&
13098 { ac_try='test -s conftest.$ac_objext'
13099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13100 (eval $ac_try) 2>&5
13101 ac_status=$?
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); }; }; then
0093c2fc 13104 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
13105else
13106 echo "$as_me: failed program was:" >&5
13107sed 's/^/| /' conftest.$ac_ext >&5
13108
0093c2fc 13109bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
13110
13111fi
13112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13113
13114
13115fi
0093c2fc
VZ
13116echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13117echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
13118 ac_ext=c
13119ac_cpp='$CPP $CPPFLAGS'
13120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13122ac_compiler_gnu=$ac_cv_c_compiler_gnu
13123
0093c2fc
VZ
13124 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13125 :; COMPAQCC=yes
13126 else
13127 :;
13128 fi
13129
13130
13131 ;;
13132
13133 SunOS)
13134
13135
13136 ac_ext=c
13137ac_cpp='$CPP $CPPFLAGS'
13138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13140ac_compiler_gnu=$ac_cv_c_compiler_gnu
13141
13142 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13143echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13144if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13145 echo $ECHO_N "(cached) $ECHO_C" >&6
13146else
13147 cat >conftest.$ac_ext <<_ACEOF
13148/* confdefs.h. */
13149_ACEOF
13150cat confdefs.h >>conftest.$ac_ext
13151cat >>conftest.$ac_ext <<_ACEOF
13152/* end confdefs.h. */
13153
13154int
13155main ()
13156{
13157
13158 #ifndef __SUNPRO_C
13159 choke me
13160 #endif
13161
13162 ;
13163 return 0;
13164}
13165_ACEOF
13166rm -f conftest.$ac_objext
13167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13168 (eval $ac_compile) 2>conftest.er1
13169 ac_status=$?
13170 grep -v '^ *+' conftest.er1 >conftest.err
13171 rm -f conftest.er1
13172 cat conftest.err >&5
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); } &&
3f60522a
JS
13175 { ac_try='test -z "$ac_c_werror_flag"
13176 || test ! -s conftest.err'
0093c2fc
VZ
13177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13178 (eval $ac_try) 2>&5
13179 ac_status=$?
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); }; } &&
13182 { ac_try='test -s conftest.$ac_objext'
13183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13184 (eval $ac_try) 2>&5
13185 ac_status=$?
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); }; }; then
13188 bakefile_cv_c_compiler___SUNPRO_C=yes
13189else
13190 echo "$as_me: failed program was:" >&5
13191sed 's/^/| /' conftest.$ac_ext >&5
13192
13193bakefile_cv_c_compiler___SUNPRO_C=no
13194
13195fi
13196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13197
13198
13199fi
13200echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13201echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13202 ac_ext=c
13203ac_cpp='$CPP $CPPFLAGS'
13204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13206ac_compiler_gnu=$ac_cv_c_compiler_gnu
13207
13208 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13209 :; SUNCC=yes
3006edc0
VZ
13210 else
13211 :;
13212 fi
13213
13214
13215 ;;
13216 esac
ab0ad5f1 13217 fi
a9e5b1f0
MW
13218
13219
3006edc0 13220
a848cd7e
SC
13221ac_ext=c
13222ac_cpp='$CPP $CPPFLAGS'
13223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13225ac_compiler_gnu=$ac_cv_c_compiler_gnu
13226echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13227echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13228# On Suns, sometimes $CPP names a directory.
13229if test -n "$CPP" && test -d "$CPP"; then
13230 CPP=
13231fi
13232if test -z "$CPP"; then
13233 if test "${ac_cv_prog_CPP+set}" = set; then
13234 echo $ECHO_N "(cached) $ECHO_C" >&6
13235else
13236 # Double quotes because CPP needs to be expanded
13237 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13238 do
13239 ac_preproc_ok=false
13240for ac_c_preproc_warn_flag in '' yes
13241do
13242 # Use a header file that comes with gcc, so configuring glibc
13243 # with a fresh cross-compiler works.
13244 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13245 # <limits.h> exists even on freestanding compilers.
13246 # On the NeXT, cc -E runs the code through the compiler's parser,
13247 # not just through cpp. "Syntax error" is here to catch this case.
13248 cat >conftest.$ac_ext <<_ACEOF
13249/* confdefs.h. */
13250_ACEOF
13251cat confdefs.h >>conftest.$ac_ext
13252cat >>conftest.$ac_ext <<_ACEOF
13253/* end confdefs.h. */
13254#ifdef __STDC__
13255# include <limits.h>
13256#else
13257# include <assert.h>
13258#endif
ac1cb8d3 13259 Syntax error
a848cd7e
SC
13260_ACEOF
13261if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13263 ac_status=$?
13264 grep -v '^ *+' conftest.er1 >conftest.err
13265 rm -f conftest.er1
13266 cat conftest.err >&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); } >/dev/null; then
13269 if test -s conftest.err; then
13270 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13272 else
13273 ac_cpp_err=
13274 fi
13275else
13276 ac_cpp_err=yes
13277fi
13278if test -z "$ac_cpp_err"; then
13279 :
13280else
13281 echo "$as_me: failed program was:" >&5
13282sed 's/^/| /' conftest.$ac_ext >&5
13283
13284 # Broken: fails on valid input.
13285continue
13286fi
13287rm -f conftest.err conftest.$ac_ext
13288
13289 # OK, works on sane cases. Now check whether non-existent headers
13290 # can be detected and how.
13291 cat >conftest.$ac_ext <<_ACEOF
13292/* confdefs.h. */
13293_ACEOF
13294cat confdefs.h >>conftest.$ac_ext
13295cat >>conftest.$ac_ext <<_ACEOF
13296/* end confdefs.h. */
13297#include <ac_nonexistent.h>
13298_ACEOF
13299if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13301 ac_status=$?
13302 grep -v '^ *+' conftest.er1 >conftest.err
13303 rm -f conftest.er1
13304 cat conftest.err >&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); } >/dev/null; then
13307 if test -s conftest.err; then
13308 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13310 else
13311 ac_cpp_err=
13312 fi
13313else
13314 ac_cpp_err=yes
13315fi
13316if test -z "$ac_cpp_err"; then
13317 # Broken: success on invalid input.
13318continue
13319else
13320 echo "$as_me: failed program was:" >&5
13321sed 's/^/| /' conftest.$ac_ext >&5
13322
13323 # Passes both tests.
13324ac_preproc_ok=:
13325break
13326fi
13327rm -f conftest.err conftest.$ac_ext
13328
13329done
13330# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13331rm -f conftest.err conftest.$ac_ext
13332if $ac_preproc_ok; then
13333 break
13334fi
13335
13336 done
13337 ac_cv_prog_CPP=$CPP
13338
13339fi
13340 CPP=$ac_cv_prog_CPP
13341else
13342 ac_cv_prog_CPP=$CPP
13343fi
13344echo "$as_me:$LINENO: result: $CPP" >&5
13345echo "${ECHO_T}$CPP" >&6
13346ac_preproc_ok=false
13347for ac_c_preproc_warn_flag in '' yes
13348do
13349 # Use a header file that comes with gcc, so configuring glibc
13350 # with a fresh cross-compiler works.
13351 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13352 # <limits.h> exists even on freestanding compilers.
13353 # On the NeXT, cc -E runs the code through the compiler's parser,
13354 # not just through cpp. "Syntax error" is here to catch this case.
13355 cat >conftest.$ac_ext <<_ACEOF
13356/* confdefs.h. */
13357_ACEOF
13358cat confdefs.h >>conftest.$ac_ext
13359cat >>conftest.$ac_ext <<_ACEOF
13360/* end confdefs.h. */
13361#ifdef __STDC__
13362# include <limits.h>
13363#else
13364# include <assert.h>
13365#endif
ac1cb8d3 13366 Syntax error
a848cd7e
SC
13367_ACEOF
13368if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13370 ac_status=$?
13371 grep -v '^ *+' conftest.er1 >conftest.err
13372 rm -f conftest.er1
13373 cat conftest.err >&5
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); } >/dev/null; then
13376 if test -s conftest.err; then
13377 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13379 else
13380 ac_cpp_err=
13381 fi
13382else
13383 ac_cpp_err=yes
13384fi
13385if test -z "$ac_cpp_err"; then
13386 :
13387else
13388 echo "$as_me: failed program was:" >&5
13389sed 's/^/| /' conftest.$ac_ext >&5
13390
13391 # Broken: fails on valid input.
13392continue
13393fi
13394rm -f conftest.err conftest.$ac_ext
13395
13396 # OK, works on sane cases. Now check whether non-existent headers
13397 # can be detected and how.
13398 cat >conftest.$ac_ext <<_ACEOF
13399/* confdefs.h. */
13400_ACEOF
13401cat confdefs.h >>conftest.$ac_ext
13402cat >>conftest.$ac_ext <<_ACEOF
13403/* end confdefs.h. */
13404#include <ac_nonexistent.h>
13405_ACEOF
13406if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13408 ac_status=$?
13409 grep -v '^ *+' conftest.er1 >conftest.err
13410 rm -f conftest.er1
13411 cat conftest.err >&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } >/dev/null; then
13414 if test -s conftest.err; then
13415 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13417 else
13418 ac_cpp_err=
13419 fi
13420else
13421 ac_cpp_err=yes
13422fi
13423if test -z "$ac_cpp_err"; then
13424 # Broken: success on invalid input.
13425continue
13426else
13427 echo "$as_me: failed program was:" >&5
13428sed 's/^/| /' conftest.$ac_ext >&5
13429
13430 # Passes both tests.
13431ac_preproc_ok=:
13432break
13433fi
13434rm -f conftest.err conftest.$ac_ext
13435
13436done
13437# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13438rm -f conftest.err conftest.$ac_ext
13439if $ac_preproc_ok; then
13440 :
13441else
13442 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13443See \`config.log' for more details." >&5
13444echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13445See \`config.log' for more details." >&2;}
13446 { (exit 1); exit 1; }; }
13447fi
13448
13449ac_ext=c
13450ac_cpp='$CPP $CPPFLAGS'
13451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13453ac_compiler_gnu=$ac_cv_c_compiler_gnu
13454
13455
13456echo "$as_me:$LINENO: checking for egrep" >&5
13457echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13458if test "${ac_cv_prog_egrep+set}" = set; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13460else
13461 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13462 then ac_cv_prog_egrep='grep -E'
13463 else ac_cv_prog_egrep='egrep'
13464 fi
13465fi
13466echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13467echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13468 EGREP=$ac_cv_prog_egrep
13469
13470
13471if test $ac_cv_c_compiler_gnu = yes; then
13472 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13473echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13474if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13475 echo $ECHO_N "(cached) $ECHO_C" >&6
13476else
13477 ac_pattern="Autoconf.*'x'"
13478 cat >conftest.$ac_ext <<_ACEOF
13479/* confdefs.h. */
13480_ACEOF
13481cat confdefs.h >>conftest.$ac_ext
13482cat >>conftest.$ac_ext <<_ACEOF
13483/* end confdefs.h. */
13484#include <sgtty.h>
13485Autoconf TIOCGETP
13486_ACEOF
13487if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13488 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13489 ac_cv_prog_gcc_traditional=yes
13490else
13491 ac_cv_prog_gcc_traditional=no
13492fi
13493rm -f conftest*
13494
13495
13496 if test $ac_cv_prog_gcc_traditional = no; then
13497 cat >conftest.$ac_ext <<_ACEOF
13498/* confdefs.h. */
13499_ACEOF
13500cat confdefs.h >>conftest.$ac_ext
13501cat >>conftest.$ac_ext <<_ACEOF
13502/* end confdefs.h. */
13503#include <termio.h>
13504Autoconf TCGETA
13505_ACEOF
13506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13507 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13508 ac_cv_prog_gcc_traditional=yes
13509fi
13510rm -f conftest*
13511
13512 fi
13513fi
13514echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13515echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13516 if test $ac_cv_prog_gcc_traditional = yes; then
13517 CC="$CC -traditional"
13518 fi
13519fi
13520
13521
a848cd7e
SC
13522ac_ext=cc
13523ac_cpp='$CXXCPP $CPPFLAGS'
13524ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13525ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13526ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13527
13528
13529CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
13530
13531
3006edc0 13532
6dcfc289 13533 ac_ext=cc
a848cd7e
SC
13534ac_cpp='$CXXCPP $CPPFLAGS'
13535ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13536ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13537ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13538if test -n "$ac_tool_prefix"; then
13539 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13540 do
13541 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13542set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13543echo "$as_me:$LINENO: checking for $ac_word" >&5
13544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13545if test "${ac_cv_prog_CXX+set}" = set; then
13546 echo $ECHO_N "(cached) $ECHO_C" >&6
13547else
13548 if test -n "$CXX"; then
13549 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13550else
13551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13552for as_dir in $PATH
13553do
13554 IFS=$as_save_IFS
13555 test -z "$as_dir" && as_dir=.
13556 for ac_exec_ext in '' $ac_executable_extensions; do
13557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13558 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13560 break 2
13561 fi
13562done
13563done
13564
13565fi
13566fi
13567CXX=$ac_cv_prog_CXX
13568if test -n "$CXX"; then
13569 echo "$as_me:$LINENO: result: $CXX" >&5
13570echo "${ECHO_T}$CXX" >&6
13571else
13572 echo "$as_me:$LINENO: result: no" >&5
13573echo "${ECHO_T}no" >&6
13574fi
13575
13576 test -n "$CXX" && break
13577 done
13578fi
13579if test -z "$CXX"; then
13580 ac_ct_CXX=$CXX
13581 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13582do
13583 # Extract the first word of "$ac_prog", so it can be a program name with args.
13584set dummy $ac_prog; ac_word=$2
13585echo "$as_me:$LINENO: checking for $ac_word" >&5
13586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13587if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13589else
13590 if test -n "$ac_ct_CXX"; then
13591 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13592else
13593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13594for as_dir in $PATH
13595do
13596 IFS=$as_save_IFS
13597 test -z "$as_dir" && as_dir=.
13598 for ac_exec_ext in '' $ac_executable_extensions; do
13599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13600 ac_cv_prog_ac_ct_CXX="$ac_prog"
13601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13602 break 2
13603 fi
13604done
13605done
13606
13607fi
13608fi
13609ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13610if test -n "$ac_ct_CXX"; then
13611 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13612echo "${ECHO_T}$ac_ct_CXX" >&6
13613else
13614 echo "$as_me:$LINENO: result: no" >&5
13615echo "${ECHO_T}no" >&6
13616fi
13617
13618 test -n "$ac_ct_CXX" && break
13619done
13620test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13621
13622 CXX=$ac_ct_CXX
13623fi
13624
13625
13626# Provide some information about the compiler.
13627echo "$as_me:$LINENO:" \
13628 "checking for C++ compiler version" >&5
13629ac_compiler=`set X $ac_compile; echo $2`
13630{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13631 (eval $ac_compiler --version </dev/null >&5) 2>&5
13632 ac_status=$?
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); }
13635{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13636 (eval $ac_compiler -v </dev/null >&5) 2>&5
13637 ac_status=$?
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }
13640{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13641 (eval $ac_compiler -V </dev/null >&5) 2>&5
13642 ac_status=$?
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); }
13645
13646echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13647echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13648if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13649 echo $ECHO_N "(cached) $ECHO_C" >&6
13650else
13651 cat >conftest.$ac_ext <<_ACEOF
13652/* confdefs.h. */
13653_ACEOF
13654cat confdefs.h >>conftest.$ac_ext
13655cat >>conftest.$ac_ext <<_ACEOF
13656/* end confdefs.h. */
13657
13658int
13659main ()
13660{
13661#ifndef __GNUC__
13662 choke me
13663#endif
13664
13665 ;
13666 return 0;
13667}
13668_ACEOF
13669rm -f conftest.$ac_objext
13670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13671 (eval $ac_compile) 2>conftest.er1
a848cd7e 13672 ac_status=$?
ac1cb8d3
VS
13673 grep -v '^ *+' conftest.er1 >conftest.err
13674 rm -f conftest.er1
13675 cat conftest.err >&5
a848cd7e
SC
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); } &&
3f60522a
JS
13678 { ac_try='test -z "$ac_cxx_werror_flag"
13679 || test ! -s conftest.err'
ac1cb8d3
VS
13680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13681 (eval $ac_try) 2>&5
13682 ac_status=$?
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); }; } &&
13685 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13687 (eval $ac_try) 2>&5
13688 ac_status=$?
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); }; }; then
13691 ac_compiler_gnu=yes
13692else
13693 echo "$as_me: failed program was:" >&5
13694sed 's/^/| /' conftest.$ac_ext >&5
13695
13696ac_compiler_gnu=no
13697fi
ac1cb8d3 13698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13699ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13700
13701fi
13702echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13703echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13704GXX=`test $ac_compiler_gnu = yes && echo yes`
13705ac_test_CXXFLAGS=${CXXFLAGS+set}
13706ac_save_CXXFLAGS=$CXXFLAGS
13707CXXFLAGS="-g"
13708echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13709echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13710if test "${ac_cv_prog_cxx_g+set}" = set; then
13711 echo $ECHO_N "(cached) $ECHO_C" >&6
13712else
13713 cat >conftest.$ac_ext <<_ACEOF
13714/* confdefs.h. */
13715_ACEOF
13716cat confdefs.h >>conftest.$ac_ext
13717cat >>conftest.$ac_ext <<_ACEOF
13718/* end confdefs.h. */
13719
13720int
13721main ()
13722{
13723
13724 ;
13725 return 0;
13726}
13727_ACEOF
13728rm -f conftest.$ac_objext
13729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13730 (eval $ac_compile) 2>conftest.er1
a848cd7e 13731 ac_status=$?
ac1cb8d3
VS
13732 grep -v '^ *+' conftest.er1 >conftest.err
13733 rm -f conftest.er1
13734 cat conftest.err >&5
a848cd7e
SC
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } &&
3f60522a
JS
13737 { ac_try='test -z "$ac_cxx_werror_flag"
13738 || test ! -s conftest.err'
ac1cb8d3
VS
13739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740 (eval $ac_try) 2>&5
13741 ac_status=$?
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; } &&
13744 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746 (eval $ac_try) 2>&5
13747 ac_status=$?
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }; }; then
13750 ac_cv_prog_cxx_g=yes
13751else
13752 echo "$as_me: failed program was:" >&5
13753sed 's/^/| /' conftest.$ac_ext >&5
13754
13755ac_cv_prog_cxx_g=no
13756fi
ac1cb8d3 13757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13758fi
13759echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13760echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13761if test "$ac_test_CXXFLAGS" = set; then
13762 CXXFLAGS=$ac_save_CXXFLAGS
13763elif test $ac_cv_prog_cxx_g = yes; then
13764 if test "$GXX" = yes; then
8aeeb05c 13765 CXXFLAGS="-g -O2"
a848cd7e 13766 else
8aeeb05c 13767 CXXFLAGS="-g"
a848cd7e
SC
13768 fi
13769else
13770 if test "$GXX" = yes; then
13771 CXXFLAGS="-O2"
13772 else
13773 CXXFLAGS=
13774 fi
13775fi
13776for ac_declaration in \
ac1cb8d3 13777 '' \
a848cd7e
SC
13778 'extern "C" void std::exit (int) throw (); using std::exit;' \
13779 'extern "C" void std::exit (int); using std::exit;' \
13780 'extern "C" void exit (int) throw ();' \
13781 'extern "C" void exit (int);' \
13782 'void exit (int);'
13783do
13784 cat >conftest.$ac_ext <<_ACEOF
13785/* confdefs.h. */
13786_ACEOF
13787cat confdefs.h >>conftest.$ac_ext
13788cat >>conftest.$ac_ext <<_ACEOF
13789/* end confdefs.h. */
de59c161 13790$ac_declaration
ac1cb8d3 13791#include <stdlib.h>
a848cd7e
SC
13792int
13793main ()
13794{
13795exit (42);
13796 ;
13797 return 0;
13798}
13799_ACEOF
13800rm -f conftest.$ac_objext
13801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13802 (eval $ac_compile) 2>conftest.er1
a848cd7e 13803 ac_status=$?
ac1cb8d3
VS
13804 grep -v '^ *+' conftest.er1 >conftest.err
13805 rm -f conftest.er1
13806 cat conftest.err >&5
a848cd7e
SC
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); } &&
3f60522a
JS
13809 { ac_try='test -z "$ac_cxx_werror_flag"
13810 || test ! -s conftest.err'
ac1cb8d3
VS
13811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13812 (eval $ac_try) 2>&5
13813 ac_status=$?
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); }; } &&
13816 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818 (eval $ac_try) 2>&5
13819 ac_status=$?
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; }; then
13822 :
13823else
13824 echo "$as_me: failed program was:" >&5
13825sed 's/^/| /' conftest.$ac_ext >&5
13826
13827continue
13828fi
ac1cb8d3 13829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13830 cat >conftest.$ac_ext <<_ACEOF
13831/* confdefs.h. */
13832_ACEOF
13833cat confdefs.h >>conftest.$ac_ext
13834cat >>conftest.$ac_ext <<_ACEOF
13835/* end confdefs.h. */
13836$ac_declaration
13837int
13838main ()
13839{
13840exit (42);
13841 ;
13842 return 0;
13843}
13844_ACEOF
13845rm -f conftest.$ac_objext
13846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13847 (eval $ac_compile) 2>conftest.er1
a848cd7e 13848 ac_status=$?
ac1cb8d3
VS
13849 grep -v '^ *+' conftest.er1 >conftest.err
13850 rm -f conftest.er1
13851 cat conftest.err >&5
a848cd7e
SC
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } &&
3f60522a
JS
13854 { ac_try='test -z "$ac_cxx_werror_flag"
13855 || test ! -s conftest.err'
ac1cb8d3
VS
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13858 ac_status=$?
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; } &&
13861 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13863 (eval $ac_try) 2>&5
13864 ac_status=$?
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); }; }; then
13867 break
13868else
13869 echo "$as_me: failed program was:" >&5
13870sed 's/^/| /' conftest.$ac_ext >&5
13871
13872fi
ac1cb8d3 13873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13874done
13875rm -f conftest*
13876if test -n "$ac_declaration"; then
13877 echo '#ifdef __cplusplus' >>confdefs.h
13878 echo $ac_declaration >>confdefs.h
13879 echo '#endif' >>confdefs.h
13880fi
13881
13882ac_ext=cc
13883ac_cpp='$CXXCPP $CPPFLAGS'
13884ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13885ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13886ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13887
ab0ad5f1
VZ
13888
13889
13890 ac_ext=cc
13891ac_cpp='$CXXCPP $CPPFLAGS'
13892ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13893ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13894ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13895
13896 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13897echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13898if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13899 echo $ECHO_N "(cached) $ECHO_C" >&6
13900else
13901 cat >conftest.$ac_ext <<_ACEOF
13902/* confdefs.h. */
13903_ACEOF
13904cat confdefs.h >>conftest.$ac_ext
13905cat >>conftest.$ac_ext <<_ACEOF
13906/* end confdefs.h. */
13907
13908int
13909main ()
13910{
13911
13912 #ifndef __INTEL_COMPILER
13913 choke me
13914 #endif
13915
13916 ;
13917 return 0;
13918}
13919_ACEOF
13920rm -f conftest.$ac_objext
13921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13922 (eval $ac_compile) 2>conftest.er1
13923 ac_status=$?
13924 grep -v '^ *+' conftest.er1 >conftest.err
13925 rm -f conftest.er1
13926 cat conftest.err >&5
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); } &&
3f60522a
JS
13929 { ac_try='test -z "$ac_cxx_werror_flag"
13930 || test ! -s conftest.err'
ab0ad5f1
VZ
13931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13932 (eval $ac_try) 2>&5
13933 ac_status=$?
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); }; } &&
13936 { ac_try='test -s conftest.$ac_objext'
13937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938 (eval $ac_try) 2>&5
13939 ac_status=$?
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; }; then
13942 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13943else
13944 echo "$as_me: failed program was:" >&5
13945sed 's/^/| /' conftest.$ac_ext >&5
13946
13947bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13948
13949fi
13950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13951
13952
13953fi
13954echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13955echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13956 ac_ext=cc
13957ac_cpp='$CXXCPP $CPPFLAGS'
13958ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13959ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13960ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13961
13962 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13963 :; INTELCXX=yes
13964 else
13965 :;
13966 fi
13967
13968
3006edc0
VZ
13969 if test "x$GCXX" != "xyes"; then
13970 if test "xCXX" = "xC"; then
13971 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 13972echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 13973if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
13974 echo $ECHO_N "(cached) $ECHO_C" >&6
13975else
13976 cat >conftest.$ac_ext <<_ACEOF
13977/* confdefs.h. */
13978_ACEOF
13979cat confdefs.h >>conftest.$ac_ext
13980cat >>conftest.$ac_ext <<_ACEOF
13981/* end confdefs.h. */
13982
13983int
13984main ()
13985{
13986
13987 ;
13988 return 0;
13989}
13990_ACEOF
13991rm -f conftest.$ac_objext conftest.$ac_ext.o
13992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13993 (eval $ac_compile) 2>&5
13994 ac_status=$?
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); }; then
13997 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13998 case $ac_file in
13999 conftest.$ac_ext.o)
0093c2fc 14000 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
14001 ;;
14002 *)
14003 ;;
14004 esac
14005done
14006else
14007 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14008See \`config.log' for more details." >&5
14009echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14010See \`config.log' for more details." >&2;}
14011 { (exit 1); exit 1; }; }
14012
14013fi
14014
14015rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14016
14017fi
0093c2fc
VZ
14018echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
14019echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
14020if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 14021 if test "cxx" = "c"; then
0093c2fc 14022 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
14023 fi
14024 if test "cxx" = "cxx"; then
0093c2fc 14025 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
14026 fi
14027fi
14028
0093c2fc 14029 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
14030 unset ac_cv_prog_cc_g
14031 ac_test_CFLAGS=${CFLAGS+set}
14032ac_save_CFLAGS=$CFLAGS
8aeeb05c 14033CFLAGS="-g"
3006edc0
VZ
14034echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14035echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14036if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
14037 echo $ECHO_N "(cached) $ECHO_C" >&6
14038else
14039 cat >conftest.$ac_ext <<_ACEOF
14040/* confdefs.h. */
14041_ACEOF
14042cat confdefs.h >>conftest.$ac_ext
14043cat >>conftest.$ac_ext <<_ACEOF
14044/* end confdefs.h. */
14045
14046int
14047main ()
14048{
14049
14050 ;
14051 return 0;
14052}
14053_ACEOF
14054rm -f conftest.$ac_objext
14055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14056 (eval $ac_compile) 2>conftest.er1
14057 ac_status=$?
14058 grep -v '^ *+' conftest.er1 >conftest.err
14059 rm -f conftest.er1
14060 cat conftest.err >&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); } &&
3f60522a
JS
14063 { ac_try='test -z "$ac_cxx_werror_flag"
14064 || test ! -s conftest.err'
480ccd21
DE
14065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14066 (eval $ac_try) 2>&5
14067 ac_status=$?
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); }; } &&
14070 { ac_try='test -s conftest.$ac_objext'
14071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14072 (eval $ac_try) 2>&5
14073 ac_status=$?
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); }; }; then
3006edc0 14076 ac_cv_prog_cc_g=yes
480ccd21
DE
14077else
14078 echo "$as_me: failed program was:" >&5
14079sed 's/^/| /' conftest.$ac_ext >&5
14080
3006edc0 14081ac_cv_prog_cc_g=no
480ccd21
DE
14082fi
14083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14084fi
3006edc0
VZ
14085echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14086echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14087if test "$ac_test_CFLAGS" = set; then
14088 CFLAGS=$ac_save_CFLAGS
14089elif test $ac_cv_prog_cc_g = yes; then
14090 if test "$GCC" = yes; then
14091 CFLAGS="-g -O2"
480ccd21 14092 else
3006edc0 14093 CFLAGS="-g"
480ccd21
DE
14094 fi
14095else
3006edc0
VZ
14096 if test "$GCC" = yes; then
14097 CFLAGS="-O2"
480ccd21 14098 else
3006edc0 14099 CFLAGS=
480ccd21
DE
14100 fi
14101fi
3006edc0 14102 fi
ab0ad5f1 14103 fi
3006edc0
VZ
14104
14105 case `uname -s` in
14106 AIX*)
14107 ac_ext=cc
14108ac_cpp='$CXXCPP $CPPFLAGS'
14109ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14110ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14111ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14112
14113echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14114echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14115if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
14116 echo $ECHO_N "(cached) $ECHO_C" >&6
14117else
14118 cat >conftest.$ac_ext <<_ACEOF
14119/* confdefs.h. */
14120_ACEOF
14121cat confdefs.h >>conftest.$ac_ext
14122cat >>conftest.$ac_ext <<_ACEOF
14123/* end confdefs.h. */
14124
14125int
14126main ()
14127{
14128#ifndef __xlC__
14129 choke me
14130#endif
14131
14132 ;
14133 return 0;
14134}
14135_ACEOF
14136rm -f conftest.$ac_objext
14137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14138 (eval $ac_compile) 2>conftest.er1
14139 ac_status=$?
14140 grep -v '^ *+' conftest.er1 >conftest.err
14141 rm -f conftest.er1
14142 cat conftest.err >&5
14143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 (exit $ac_status); } &&
3f60522a
JS
14145 { ac_try='test -z "$ac_cxx_werror_flag"
14146 || test ! -s conftest.err'
3006edc0
VZ
14147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14148 (eval $ac_try) 2>&5
14149 ac_status=$?
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); }; } &&
14152 { ac_try='test -s conftest.$ac_objext'
14153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14154 (eval $ac_try) 2>&5
14155 ac_status=$?
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); }; }; then
0093c2fc 14158 bakefile_compiler_xlc=yes
3006edc0
VZ
14159else
14160 echo "$as_me: failed program was:" >&5
14161sed 's/^/| /' conftest.$ac_ext >&5
14162
0093c2fc 14163bakefile_compiler_xlc=no
3006edc0
VZ
14164fi
14165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14166 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
14167
14168fi
0093c2fc
VZ
14169echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14170echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 14171
0093c2fc 14172XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
14173ac_ext=cc
14174ac_cpp='$CXXCPP $CPPFLAGS'
14175ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14176ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14177ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14178
14179
14180 ;;
14181
14182 Darwin)
14183 ac_ext=cc
95986553
DE
14184ac_cpp='$CXXCPP $CPPFLAGS'
14185ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14186ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14187ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14188
14189echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14190echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14191if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14192 echo $ECHO_N "(cached) $ECHO_C" >&6
14193else
14194 cat >conftest.$ac_ext <<_ACEOF
14195/* confdefs.h. */
14196_ACEOF
14197cat confdefs.h >>conftest.$ac_ext
14198cat >>conftest.$ac_ext <<_ACEOF
14199/* end confdefs.h. */
14200
14201int
14202main ()
14203{
14204#ifndef __MWERKS__
14205 choke me
14206#endif
14207
14208 ;
14209 return 0;
14210}
14211_ACEOF
14212rm -f conftest.$ac_objext
14213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14214 (eval $ac_compile) 2>conftest.er1
14215 ac_status=$?
14216 grep -v '^ *+' conftest.er1 >conftest.err
14217 rm -f conftest.er1
14218 cat conftest.err >&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); } &&
3f60522a
JS
14221 { ac_try='test -z "$ac_cxx_werror_flag"
14222 || test ! -s conftest.err'
95986553
DE
14223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14224 (eval $ac_try) 2>&5
14225 ac_status=$?
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; } &&
14228 { ac_try='test -s conftest.$ac_objext'
14229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14230 (eval $ac_try) 2>&5
14231 ac_status=$?
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); }; }; then
14234 bakefile_compiler_mwerks=yes
14235else
14236 echo "$as_me: failed program was:" >&5
14237sed 's/^/| /' conftest.$ac_ext >&5
14238
14239bakefile_compiler_mwerks=no
14240fi
14241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14242 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14243
14244fi
14245echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14246echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14247
0e6fa1d9 14248MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
14249ac_ext=cc
14250ac_cpp='$CXXCPP $CPPFLAGS'
14251ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14252ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14253ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14254
14255
3006edc0 14256 ac_ext=cc
9273ffba
DE
14257ac_cpp='$CXXCPP $CPPFLAGS'
14258ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14259ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14260ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14261
14262echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14263echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14264if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
14265 echo $ECHO_N "(cached) $ECHO_C" >&6
14266else
14267 cat >conftest.$ac_ext <<_ACEOF
14268/* confdefs.h. */
14269_ACEOF
14270cat confdefs.h >>conftest.$ac_ext
14271cat >>conftest.$ac_ext <<_ACEOF
14272/* end confdefs.h. */
14273
14274int
14275main ()
14276{
14277#ifndef __xlC__
14278 choke me
14279#endif
14280
14281 ;
14282 return 0;
14283}
14284_ACEOF
14285rm -f conftest.$ac_objext
14286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14287 (eval $ac_compile) 2>conftest.er1
14288 ac_status=$?
14289 grep -v '^ *+' conftest.er1 >conftest.err
14290 rm -f conftest.er1
14291 cat conftest.err >&5
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); } &&
3f60522a
JS
14294 { ac_try='test -z "$ac_cxx_werror_flag"
14295 || test ! -s conftest.err'
9273ffba
DE
14296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14297 (eval $ac_try) 2>&5
14298 ac_status=$?
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); }; } &&
14301 { ac_try='test -s conftest.$ac_objext'
14302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14303 (eval $ac_try) 2>&5
14304 ac_status=$?
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; }; then
0093c2fc 14307 bakefile_compiler_xlc=yes
9273ffba
DE
14308else
14309 echo "$as_me: failed program was:" >&5
14310sed 's/^/| /' conftest.$ac_ext >&5
14311
0093c2fc 14312bakefile_compiler_xlc=no
9273ffba
DE
14313fi
14314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14315 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
14316
14317fi
0093c2fc
VZ
14318echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14319echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 14320
0093c2fc 14321XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
14322ac_ext=cc
14323ac_cpp='$CXXCPP $CPPFLAGS'
14324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14325ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14327
14328
3006edc0
VZ
14329 ;;
14330
14331 IRIX*)
95986553 14332
6dcfc289 14333
0ad5d837
VZ
14334 ac_ext=cc
14335ac_cpp='$CXXCPP $CPPFLAGS'
14336ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14337ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14338ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14339
14340 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14341echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14342if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14343 echo $ECHO_N "(cached) $ECHO_C" >&6
14344else
14345 cat >conftest.$ac_ext <<_ACEOF
14346/* confdefs.h. */
14347_ACEOF
14348cat confdefs.h >>conftest.$ac_ext
14349cat >>conftest.$ac_ext <<_ACEOF
14350/* end confdefs.h. */
14351
14352int
14353main ()
14354{
14355
14356 #ifndef _SGI_COMPILER_VERSION
14357 choke me
14358 #endif
14359
14360 ;
14361 return 0;
14362}
14363_ACEOF
14364rm -f conftest.$ac_objext
14365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14366 (eval $ac_compile) 2>conftest.er1
14367 ac_status=$?
14368 grep -v '^ *+' conftest.er1 >conftest.err
14369 rm -f conftest.er1
14370 cat conftest.err >&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); } &&
3f60522a
JS
14373 { ac_try='test -z "$ac_cxx_werror_flag"
14374 || test ! -s conftest.err'
0ad5d837
VZ
14375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14376 (eval $ac_try) 2>&5
14377 ac_status=$?
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }; } &&
14380 { ac_try='test -s conftest.$ac_objext'
14381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382 (eval $ac_try) 2>&5
14383 ac_status=$?
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; }; then
14386 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14387else
14388 echo "$as_me: failed program was:" >&5
14389sed 's/^/| /' conftest.$ac_ext >&5
14390
14391bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14392
14393fi
14394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14395
14396
14397fi
14398echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14399echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14400 ac_ext=cc
14401ac_cpp='$CXXCPP $CPPFLAGS'
14402ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14403ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14404ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14405
14406 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14407 :; SGICXX=yes
14408 else
14409 :;
14410 fi
14411
14412
3006edc0
VZ
14413 ;;
14414
0093c2fc 14415 HP-UX*)
3006edc0
VZ
14416
14417
14418 ac_ext=cc
14419ac_cpp='$CXXCPP $CPPFLAGS'
14420ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14421ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14422ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14423
0093c2fc
VZ
14424 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14425echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14426if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
14428else
14429 cat >conftest.$ac_ext <<_ACEOF
14430/* confdefs.h. */
14431_ACEOF
14432cat confdefs.h >>conftest.$ac_ext
14433cat >>conftest.$ac_ext <<_ACEOF
14434/* end confdefs.h. */
14435
14436int
14437main ()
14438{
14439
0093c2fc 14440 #ifndef __HP_aCC
3006edc0
VZ
14441 choke me
14442 #endif
14443
14444 ;
14445 return 0;
14446}
14447_ACEOF
14448rm -f conftest.$ac_objext
14449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14450 (eval $ac_compile) 2>conftest.er1
14451 ac_status=$?
14452 grep -v '^ *+' conftest.er1 >conftest.err
14453 rm -f conftest.er1
14454 cat conftest.err >&5
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); } &&
3f60522a
JS
14457 { ac_try='test -z "$ac_cxx_werror_flag"
14458 || test ! -s conftest.err'
3006edc0
VZ
14459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14460 (eval $ac_try) 2>&5
14461 ac_status=$?
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; } &&
14464 { ac_try='test -s conftest.$ac_objext'
14465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14466 (eval $ac_try) 2>&5
14467 ac_status=$?
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); }; }; then
0093c2fc 14470 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14471else
14472 echo "$as_me: failed program was:" >&5
14473sed 's/^/| /' conftest.$ac_ext >&5
14474
0093c2fc 14475bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14476
14477fi
14478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14479
14480
14481fi
0093c2fc
VZ
14482echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14483echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
14484 ac_ext=cc
14485ac_cpp='$CXXCPP $CPPFLAGS'
14486ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14487ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14488ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14489
0093c2fc
VZ
14490 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14491 :; HPCXX=yes
a1aa0349
VZ
14492 else
14493 :;
14494 fi
14495
14496
14497 ;;
14498
0093c2fc 14499 OSF1)
a1aa0349
VZ
14500
14501
14502 ac_ext=cc
14503ac_cpp='$CXXCPP $CPPFLAGS'
14504ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14505ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14506ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14507
0093c2fc
VZ
14508 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14509echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14510if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14511 echo $ECHO_N "(cached) $ECHO_C" >&6
14512else
14513 cat >conftest.$ac_ext <<_ACEOF
14514/* confdefs.h. */
14515_ACEOF
14516cat confdefs.h >>conftest.$ac_ext
14517cat >>conftest.$ac_ext <<_ACEOF
14518/* end confdefs.h. */
14519
14520int
14521main ()
14522{
14523
0093c2fc 14524 #ifndef __DECCXX
a1aa0349
VZ
14525 choke me
14526 #endif
14527
14528 ;
14529 return 0;
14530}
14531_ACEOF
14532rm -f conftest.$ac_objext
14533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14534 (eval $ac_compile) 2>conftest.er1
14535 ac_status=$?
14536 grep -v '^ *+' conftest.er1 >conftest.err
14537 rm -f conftest.er1
14538 cat conftest.err >&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); } &&
3f60522a
JS
14541 { ac_try='test -z "$ac_cxx_werror_flag"
14542 || test ! -s conftest.err'
a1aa0349
VZ
14543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544 (eval $ac_try) 2>&5
14545 ac_status=$?
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; } &&
14548 { ac_try='test -s conftest.$ac_objext'
14549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14550 (eval $ac_try) 2>&5
14551 ac_status=$?
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); }; }; then
0093c2fc 14554 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14555else
14556 echo "$as_me: failed program was:" >&5
14557sed 's/^/| /' conftest.$ac_ext >&5
14558
0093c2fc 14559bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14560
14561fi
14562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14563
14564
14565fi
0093c2fc
VZ
14566echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14567echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
14568 ac_ext=cc
14569ac_cpp='$CXXCPP $CPPFLAGS'
14570ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14571ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14572ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14573
0093c2fc
VZ
14574 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14575 :; COMPAQCXX=yes
14576 else
14577 :;
14578 fi
14579
14580
14581 ;;
14582
14583 SunOS)
14584
14585
14586 ac_ext=cc
14587ac_cpp='$CXXCPP $CPPFLAGS'
14588ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14589ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14590ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14591
14592 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14593echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14594if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14595 echo $ECHO_N "(cached) $ECHO_C" >&6
14596else
14597 cat >conftest.$ac_ext <<_ACEOF
14598/* confdefs.h. */
14599_ACEOF
14600cat confdefs.h >>conftest.$ac_ext
14601cat >>conftest.$ac_ext <<_ACEOF
14602/* end confdefs.h. */
14603
14604int
14605main ()
14606{
14607
14608 #ifndef __SUNPRO_CC
14609 choke me
14610 #endif
14611
14612 ;
14613 return 0;
14614}
14615_ACEOF
14616rm -f conftest.$ac_objext
14617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14618 (eval $ac_compile) 2>conftest.er1
14619 ac_status=$?
14620 grep -v '^ *+' conftest.er1 >conftest.err
14621 rm -f conftest.er1
14622 cat conftest.err >&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); } &&
3f60522a
JS
14625 { ac_try='test -z "$ac_cxx_werror_flag"
14626 || test ! -s conftest.err'
0093c2fc
VZ
14627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14628 (eval $ac_try) 2>&5
14629 ac_status=$?
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); }; } &&
14632 { ac_try='test -s conftest.$ac_objext'
14633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634 (eval $ac_try) 2>&5
14635 ac_status=$?
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; }; then
14638 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14639else
14640 echo "$as_me: failed program was:" >&5
14641sed 's/^/| /' conftest.$ac_ext >&5
14642
14643bakefile_cv_cxx_compiler___SUNPRO_CC=no
14644
14645fi
14646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14647
14648
14649fi
14650echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14651echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14652 ac_ext=cc
14653ac_cpp='$CXXCPP $CPPFLAGS'
14654ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14655ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14656ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14657
14658 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14659 :; SUNCXX=yes
3006edc0
VZ
14660 else
14661 :;
ab0ad5f1 14662 fi
a9e5b1f0
MW
14663
14664
3006edc0
VZ
14665 ;;
14666 esac
14667 fi
14668
14669
14670
a848cd7e
SC
14671if test -n "$ac_tool_prefix"; then
14672 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14673set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14674echo "$as_me:$LINENO: checking for $ac_word" >&5
14675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14676if test "${ac_cv_prog_RANLIB+set}" = set; then
14677 echo $ECHO_N "(cached) $ECHO_C" >&6
14678else
14679 if test -n "$RANLIB"; then
14680 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14681else
14682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14683for as_dir in $PATH
14684do
14685 IFS=$as_save_IFS
14686 test -z "$as_dir" && as_dir=.
14687 for ac_exec_ext in '' $ac_executable_extensions; do
14688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14689 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14691 break 2
14692 fi
14693done
14694done
14695
14696fi
14697fi
14698RANLIB=$ac_cv_prog_RANLIB
14699if test -n "$RANLIB"; then
14700 echo "$as_me:$LINENO: result: $RANLIB" >&5
14701echo "${ECHO_T}$RANLIB" >&6
14702else
14703 echo "$as_me:$LINENO: result: no" >&5
14704echo "${ECHO_T}no" >&6
14705fi
14706
14707fi
14708if test -z "$ac_cv_prog_RANLIB"; then
14709 ac_ct_RANLIB=$RANLIB
14710 # Extract the first word of "ranlib", so it can be a program name with args.
14711set dummy ranlib; ac_word=$2
14712echo "$as_me:$LINENO: checking for $ac_word" >&5
14713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14714if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14715 echo $ECHO_N "(cached) $ECHO_C" >&6
14716else
14717 if test -n "$ac_ct_RANLIB"; then
14718 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14719else
14720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14721for as_dir in $PATH
14722do
14723 IFS=$as_save_IFS
14724 test -z "$as_dir" && as_dir=.
14725 for ac_exec_ext in '' $ac_executable_extensions; do
14726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14727 ac_cv_prog_ac_ct_RANLIB="ranlib"
14728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14729 break 2
14730 fi
14731done
14732done
14733
14734 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14735fi
14736fi
14737ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14738if test -n "$ac_ct_RANLIB"; then
14739 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14740echo "${ECHO_T}$ac_ct_RANLIB" >&6
14741else
14742 echo "$as_me:$LINENO: result: no" >&5
14743echo "${ECHO_T}no" >&6
14744fi
14745
14746 RANLIB=$ac_ct_RANLIB
14747else
14748 RANLIB="$ac_cv_prog_RANLIB"
14749fi
14750
14751
8c80d384
DE
14752if test -n "$ac_tool_prefix"; then
14753 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14754set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
14755echo "$as_me:$LINENO: checking for $ac_word" >&5
14756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14757if test "${ac_cv_prog_AR+set}" = set; then
14758 echo $ECHO_N "(cached) $ECHO_C" >&6
14759else
14760 if test -n "$AR"; then
14761 ac_cv_prog_AR="$AR" # Let the user override the test.
14762else
14763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14764for as_dir in $PATH
14765do
14766 IFS=$as_save_IFS
14767 test -z "$as_dir" && as_dir=.
14768 for ac_exec_ext in '' $ac_executable_extensions; do
14769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14770 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
14771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14772 break 2
14773 fi
14774done
14775done
14776
14777fi
14778fi
14779AR=$ac_cv_prog_AR
14780if test -n "$AR"; then
14781 echo "$as_me:$LINENO: result: $AR" >&5
14782echo "${ECHO_T}$AR" >&6
14783else
14784 echo "$as_me:$LINENO: result: no" >&5
14785echo "${ECHO_T}no" >&6
14786fi
14787
8c80d384
DE
14788fi
14789if test -z "$ac_cv_prog_AR"; then
14790 ac_ct_AR=$AR
14791 # Extract the first word of "ar", so it can be a program name with args.
14792set dummy ar; ac_word=$2
14793echo "$as_me:$LINENO: checking for $ac_word" >&5
14794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14795if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14796 echo $ECHO_N "(cached) $ECHO_C" >&6
14797else
14798 if test -n "$ac_ct_AR"; then
14799 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14800else
14801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14802for as_dir in $PATH
14803do
14804 IFS=$as_save_IFS
14805 test -z "$as_dir" && as_dir=.
14806 for ac_exec_ext in '' $ac_executable_extensions; do
14807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14808 ac_cv_prog_ac_ct_AR="ar"
14809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14810 break 2
14811 fi
14812done
14813done
14814
14815fi
14816fi
14817ac_ct_AR=$ac_cv_prog_ac_ct_AR
14818if test -n "$ac_ct_AR"; then
14819 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14820echo "${ECHO_T}$ac_ct_AR" >&6
14821else
14822 echo "$as_me:$LINENO: result: no" >&5
14823echo "${ECHO_T}no" >&6
14824fi
14825
14826 AR=$ac_ct_AR
14827else
14828 AR="$ac_cv_prog_AR"
14829fi
14830
a848cd7e 14831if test "x$AR" = "x" ; then
77ffb593
JS
14832 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14833echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
14834 { (exit 1); exit 1; }; }
14835fi
14836
14837# Find a good install program. We prefer a C program (faster),
14838# so one script is as good as another. But avoid the broken or
14839# incompatible versions:
14840# SysV /etc/install, /usr/sbin/install
14841# SunOS /usr/etc/install
14842# IRIX /sbin/install
14843# AIX /bin/install
14844# AmigaOS /C/install, which installs bootblocks on floppy discs
14845# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14846# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14847# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 14848# OS/2's system install, which has a completely different semantic
a848cd7e
SC
14849# ./install, which can be erroneously created by make from ./install.sh.
14850echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14851echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14852if test -z "$INSTALL"; then
14853if test "${ac_cv_path_install+set}" = set; then
14854 echo $ECHO_N "(cached) $ECHO_C" >&6
14855else
14856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14857for as_dir in $PATH
14858do
14859 IFS=$as_save_IFS
14860 test -z "$as_dir" && as_dir=.
14861 # Account for people who put trailing slashes in PATH elements.
14862case $as_dir/ in
14863 ./ | .// | /cC/* | \
14864 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 14865 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
14866 /usr/ucb/* ) ;;
14867 *)
14868 # OSF1 and SCO ODT 3.0 have their own names for install.
14869 # Don't use installbsd from OSF since it installs stuff as root
14870 # by default.
14871 for ac_prog in ginstall scoinst install; do
14872 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
14873 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14874 if test $ac_prog = install &&
14875 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14876 # AIX install. It has an incompatible calling convention.
14877 :
14878 elif test $ac_prog = install &&
14879 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14880 # program-specific install script used by HP pwplus--don't use.
14881 :
14882 else
14883 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14884 break 3
14885 fi
14886 fi
a848cd7e
SC
14887 done
14888 done
14889 ;;
14890esac
14891done
14892
14893
14894fi
14895 if test "${ac_cv_path_install+set}" = set; then
14896 INSTALL=$ac_cv_path_install
14897 else
14898 # As a last resort, use the slow shell script. We don't cache a
14899 # path for INSTALL within a source directory, because that will
14900 # break other packages using the cache if that directory is
14901 # removed, or if the path is relative.
14902 INSTALL=$ac_install_sh
14903 fi
14904fi
14905echo "$as_me:$LINENO: result: $INSTALL" >&5
14906echo "${ECHO_T}$INSTALL" >&6
14907
14908# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14909# It thinks the first close brace ends the variable substitution.
14910test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14911
14912test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14913
14914test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14915
14916
14917case ${INSTALL} in
14918 /* ) # Absolute
14919 ;;
14920 ?:* ) # Drive letter, considered as absolute.
14921 ;;
14922 *)
14923 INSTALL=`pwd`/${INSTALL} ;;
14924esac
14925
a848cd7e
SC
14926
14927case "${host}" in
14928
cfda0ea8 14929 *-*-darwin* )
a848cd7e
SC
14930 INSTALL_PROGRAM="cp -fp"
14931 INSTALL_DATA="cp -fp"
14932 ;;
14933 *)
14934 ;;
14935esac
14936
8c80d384
DE
14937if test -n "$ac_tool_prefix"; then
14938 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14939set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
14940echo "$as_me:$LINENO: checking for $ac_word" >&5
14941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14942if test "${ac_cv_prog_STRIP+set}" = set; then
14943 echo $ECHO_N "(cached) $ECHO_C" >&6
14944else
14945 if test -n "$STRIP"; then
14946 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14947else
14948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14949for as_dir in $PATH
14950do
14951 IFS=$as_save_IFS
14952 test -z "$as_dir" && as_dir=.
14953 for ac_exec_ext in '' $ac_executable_extensions; do
14954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14955 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
14956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14957 break 2
14958 fi
14959done
14960done
14961
a848cd7e
SC
14962fi
14963fi
14964STRIP=$ac_cv_prog_STRIP
14965if test -n "$STRIP"; then
14966 echo "$as_me:$LINENO: result: $STRIP" >&5
14967echo "${ECHO_T}$STRIP" >&6
14968else
14969 echo "$as_me:$LINENO: result: no" >&5
14970echo "${ECHO_T}no" >&6
14971fi
14972
8c80d384
DE
14973fi
14974if test -z "$ac_cv_prog_STRIP"; then
14975 ac_ct_STRIP=$STRIP
14976 # Extract the first word of "strip", so it can be a program name with args.
14977set dummy strip; ac_word=$2
14978echo "$as_me:$LINENO: checking for $ac_word" >&5
14979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14980if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14981 echo $ECHO_N "(cached) $ECHO_C" >&6
14982else
14983 if test -n "$ac_ct_STRIP"; then
14984 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14985else
14986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14987for as_dir in $PATH
14988do
14989 IFS=$as_save_IFS
14990 test -z "$as_dir" && as_dir=.
14991 for ac_exec_ext in '' $ac_executable_extensions; do
14992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14993 ac_cv_prog_ac_ct_STRIP="strip"
14994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14995 break 2
14996 fi
14997done
14998done
14999
15000 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
15001fi
15002fi
15003ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15004if test -n "$ac_ct_STRIP"; then
15005 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15006echo "${ECHO_T}$ac_ct_STRIP" >&6
15007else
15008 echo "$as_me:$LINENO: result: no" >&5
15009echo "${ECHO_T}no" >&6
15010fi
15011
15012 STRIP=$ac_ct_STRIP
15013else
15014 STRIP="$ac_cv_prog_STRIP"
15015fi
15016
15017
15018if test "$wxUSE_WINE" = "yes"; then
15019 if test -n "$ac_tool_prefix"; then
15020 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
15021set dummy ${ac_tool_prefix}wrc; ac_word=$2
15022echo "$as_me:$LINENO: checking for $ac_word" >&5
15023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15024if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
15025 echo $ECHO_N "(cached) $ECHO_C" >&6
15026else
8ced02f6
DE
15027 if test -n "$WINDRES"; then
15028 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
15029else
15030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15031for as_dir in $PATH
15032do
15033 IFS=$as_save_IFS
15034 test -z "$as_dir" && as_dir=.
15035 for ac_exec_ext in '' $ac_executable_extensions; do
15036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15037 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
15038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15039 break 2
15040 fi
15041done
15042done
15043
15044fi
15045fi
8ced02f6
DE
15046WINDRES=$ac_cv_prog_WINDRES
15047if test -n "$WINDRES"; then
15048 echo "$as_me:$LINENO: result: $WINDRES" >&5
15049echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
15050else
15051 echo "$as_me:$LINENO: result: no" >&5
15052echo "${ECHO_T}no" >&6
15053fi
15054
15055fi
8ced02f6
DE
15056if test -z "$ac_cv_prog_WINDRES"; then
15057 ac_ct_WINDRES=$WINDRES
8c80d384
DE
15058 # Extract the first word of "wrc", so it can be a program name with args.
15059set dummy wrc; ac_word=$2
15060echo "$as_me:$LINENO: checking for $ac_word" >&5
15061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15062if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
15063 echo $ECHO_N "(cached) $ECHO_C" >&6
15064else
8ced02f6
DE
15065 if test -n "$ac_ct_WINDRES"; then
15066 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
15067else
15068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15069for as_dir in $PATH
15070do
15071 IFS=$as_save_IFS
15072 test -z "$as_dir" && as_dir=.
15073 for ac_exec_ext in '' $ac_executable_extensions; do
15074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15075 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
15076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15077 break 2
15078 fi
15079done
15080done
15081
15082fi
15083fi
8ced02f6
DE
15084ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15085if test -n "$ac_ct_WINDRES"; then
15086 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15087echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
15088else
15089 echo "$as_me:$LINENO: result: no" >&5
15090echo "${ECHO_T}no" >&6
15091fi
15092
8ced02f6 15093 WINDRES=$ac_ct_WINDRES
8c80d384 15094else
8ced02f6 15095 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
15096fi
15097
004ee6da 15098 RESCOMP="$WINDRES"
8c80d384
DE
15099else
15100 case "${host}" in
15101 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
15102 if test -n "$ac_tool_prefix"; then
15103 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15104set dummy ${ac_tool_prefix}windres; ac_word=$2
15105echo "$as_me:$LINENO: checking for $ac_word" >&5
15106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15107if test "${ac_cv_prog_WINDRES+set}" = set; then
15108 echo $ECHO_N "(cached) $ECHO_C" >&6
15109else
15110 if test -n "$WINDRES"; then
15111 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15112else
15113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15114for as_dir in $PATH
15115do
15116 IFS=$as_save_IFS
15117 test -z "$as_dir" && as_dir=.
15118 for ac_exec_ext in '' $ac_executable_extensions; do
15119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15120 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15122 break 2
15123 fi
15124done
15125done
15126
15127fi
15128fi
15129WINDRES=$ac_cv_prog_WINDRES
15130if test -n "$WINDRES"; then
15131 echo "$as_me:$LINENO: result: $WINDRES" >&5
15132echo "${ECHO_T}$WINDRES" >&6
15133else
15134 echo "$as_me:$LINENO: result: no" >&5
15135echo "${ECHO_T}no" >&6
15136fi
15137
15138fi
15139if test -z "$ac_cv_prog_WINDRES"; then
15140 ac_ct_WINDRES=$WINDRES
15141 # Extract the first word of "windres", so it can be a program name with args.
15142set dummy windres; ac_word=$2
15143echo "$as_me:$LINENO: checking for $ac_word" >&5
15144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15145if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15146 echo $ECHO_N "(cached) $ECHO_C" >&6
15147else
15148 if test -n "$ac_ct_WINDRES"; then
15149 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15150else
15151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15152for as_dir in $PATH
15153do
15154 IFS=$as_save_IFS
15155 test -z "$as_dir" && as_dir=.
15156 for ac_exec_ext in '' $ac_executable_extensions; do
15157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15158 ac_cv_prog_ac_ct_WINDRES="windres"
15159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15160 break 2
15161 fi
15162done
15163done
15164
15165fi
15166fi
15167ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15168if test -n "$ac_ct_WINDRES"; then
15169 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15170echo "${ECHO_T}$ac_ct_WINDRES" >&6
15171else
15172 echo "$as_me:$LINENO: result: no" >&5
15173echo "${ECHO_T}no" >&6
15174fi
15175
15176 WINDRES=$ac_ct_WINDRES
15177else
15178 WINDRES="$ac_cv_prog_WINDRES"
15179fi
15180
15181 RESCOMP="$WINDRES"
15182 if test -n "$ac_tool_prefix"; then
8c80d384
DE
15183 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15184set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15185echo "$as_me:$LINENO: checking for $ac_word" >&5
15186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15187if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15188 echo $ECHO_N "(cached) $ECHO_C" >&6
15189else
15190 if test -n "$DLLTOOL"; then
15191 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15192else
15193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15194for as_dir in $PATH
15195do
15196 IFS=$as_save_IFS
15197 test -z "$as_dir" && as_dir=.
15198 for ac_exec_ext in '' $ac_executable_extensions; do
15199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15200 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15202 break 2
15203 fi
15204done
15205done
15206
15207fi
15208fi
15209DLLTOOL=$ac_cv_prog_DLLTOOL
15210if test -n "$DLLTOOL"; then
15211 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15212echo "${ECHO_T}$DLLTOOL" >&6
15213else
15214 echo "$as_me:$LINENO: result: no" >&5
15215echo "${ECHO_T}no" >&6
15216fi
15217
15218fi
15219if test -z "$ac_cv_prog_DLLTOOL"; then
15220 ac_ct_DLLTOOL=$DLLTOOL
15221 # Extract the first word of "dlltool", so it can be a program name with args.
15222set dummy dlltool; ac_word=$2
15223echo "$as_me:$LINENO: checking for $ac_word" >&5
15224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15225if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15226 echo $ECHO_N "(cached) $ECHO_C" >&6
15227else
15228 if test -n "$ac_ct_DLLTOOL"; then
15229 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15230else
15231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15232for as_dir in $PATH
15233do
15234 IFS=$as_save_IFS
15235 test -z "$as_dir" && as_dir=.
15236 for ac_exec_ext in '' $ac_executable_extensions; do
15237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15238 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15240 break 2
15241 fi
15242done
15243done
15244
15245fi
15246fi
15247ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15248if test -n "$ac_ct_DLLTOOL"; then
15249 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15250echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15251else
15252 echo "$as_me:$LINENO: result: no" >&5
15253echo "${ECHO_T}no" >&6
15254fi
15255
15256 DLLTOOL=$ac_ct_DLLTOOL
15257else
15258 DLLTOOL="$ac_cv_prog_DLLTOOL"
15259fi
15260
15261 ;;
15262 esac
15263fi
a848cd7e
SC
15264
15265echo "$as_me:$LINENO: checking if make is GNU make" >&5
15266echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15267if test "${wx_cv_prog_makeisgnu+set}" = set; then
15268 echo $ECHO_N "(cached) $ECHO_C" >&6
15269else
15270
15271 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15272 egrep -s GNU > /dev/null); then
15273 wx_cv_prog_makeisgnu="yes"
15274 else
15275 wx_cv_prog_makeisgnu="no"
15276 fi
15277
15278fi
15279echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15280echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15281
15282if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15283 IF_GNU_MAKE=""
15284else
15285 IF_GNU_MAKE="#"
15286fi
15287
15288
15289
15290if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15291echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15292echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15293if test "${wx_cv_prog_makevpath+set}" = set; then
15294 echo $ECHO_N "(cached) $ECHO_C" >&6
15295else
15296
15297cat - << EOF > confMake
15298check : file
15299 cp \$? \$@
15300 cp \$? final_file
15301EOF
15302
15303if test ! -d sub ; then
15304 mkdir sub
15305fi
15306echo dummy > sub/file
15307${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15308RESULT=$?
15309rm -f sub/file check final_file confMake
15310rmdir sub
15311if test "$RESULT" = 0; then
15312 wx_cv_prog_makevpath="yes"
15313else
15314 wx_cv_prog_makevpath="no"
15315fi
15316
15317fi
15318echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15319echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15320
15321if test "x$wx_cv_prog_makevpath" != "xyes"; then
15322{ { echo "$as_me:$LINENO: error:
15323You need a make-utility that is able to use the variable
15324VPATH correctly.
15325If your version of make does not support VPATH correctly,
15326please install GNU-make (possibly as gmake), and start
15327configure with the following command:
15328export MAKE=gmake; ./configure for sh-type shells
15329setenv MAKE gmake; ./configure for csh-type shells
15330Also please do remember to use gmake in this case every time
15331you are trying to compile.
15332" >&5
15333echo "$as_me: error:
15334You need a make-utility that is able to use the variable
15335VPATH correctly.
15336If your version of make does not support VPATH correctly,
15337please install GNU-make (possibly as gmake), and start
15338configure with the following command:
15339export MAKE=gmake; ./configure for sh-type shells
15340setenv MAKE gmake; ./configure for csh-type shells
15341Also please do remember to use gmake in this case every time
15342you are trying to compile.
15343" >&2;}
15344 { (exit 1); exit 1; }; }
15345fi fi
15346echo "$as_me:$LINENO: checking whether ln -s works" >&5
15347echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15348LN_S=$as_ln_s
15349if test "$LN_S" = "ln -s"; then
15350 echo "$as_me:$LINENO: result: yes" >&5
15351echo "${ECHO_T}yes" >&6
15352else
15353 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15354echo "${ECHO_T}no, using $LN_S" >&6
15355fi
15356
15357
bcaab0f9 15358
a848cd7e 15359
2113bc77 15360if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 15361 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
15362fi
15363
4d7ec9f1
DE
15364case "${host}" in
15365 powerpc-*-darwin* )
15366 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15367echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15368 cat >conftest.$ac_ext <<_ACEOF
15369/* confdefs.h. */
15370_ACEOF
15371cat confdefs.h >>conftest.$ac_ext
15372cat >>conftest.$ac_ext <<_ACEOF
15373/* end confdefs.h. */
15374
15375int
15376main ()
15377{
15378#ifndef __POWERPC__
15379 choke me for lack of PowerPC
15380#endif
15381
15382 ;
15383 return 0;
15384}
15385_ACEOF
15386rm -f conftest.$ac_objext
15387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15388 (eval $ac_compile) 2>conftest.er1
15389 ac_status=$?
15390 grep -v '^ *+' conftest.er1 >conftest.err
15391 rm -f conftest.er1
15392 cat conftest.err >&5
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); } &&
3f60522a
JS
15395 { ac_try='test -z "$ac_cxx_werror_flag"
15396 || test ! -s conftest.err'
4d7ec9f1
DE
15397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398 (eval $ac_try) 2>&5
15399 ac_status=$?
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); }; } &&
15402 { ac_try='test -s conftest.$ac_objext'
15403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404 (eval $ac_try) 2>&5
15405 ac_status=$?
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); }; }; then
15408 echo "$as_me:$LINENO: result: yes" >&5
15409echo "${ECHO_T}yes" >&6
15410else
15411 echo "$as_me: failed program was:" >&5
15412sed 's/^/| /' conftest.$ac_ext >&5
15413
15414echo "$as_me:$LINENO: result: no" >&5
15415echo "${ECHO_T}no" >&6
15416 cat >>confdefs.h <<\_ACEOF
15417#define __POWERPC__ 1
15418_ACEOF
15419
15420
15421fi
15422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15423 ;;
15424esac
15425
15426case "${host}" in
15427 *-*-darwin* )
4d7ec9f1
DE
15428 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15429echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15430 cat >conftest.$ac_ext <<_ACEOF
15431/* confdefs.h. */
15432_ACEOF
15433cat confdefs.h >>conftest.$ac_ext
15434cat >>conftest.$ac_ext <<_ACEOF
15435/* end confdefs.h. */
15436#include <CoreFoundation/CFBase.h>
15437
15438int
15439main ()
15440{
15441
15442 ;
15443 return 0;
15444}
15445_ACEOF
15446rm -f conftest.$ac_objext
15447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15448 (eval $ac_compile) 2>conftest.er1
15449 ac_status=$?
15450 grep -v '^ *+' conftest.er1 >conftest.err
15451 rm -f conftest.er1
15452 cat conftest.err >&5
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); } &&
3f60522a
JS
15455 { ac_try='test -z "$ac_cxx_werror_flag"
15456 || test ! -s conftest.err'
4d7ec9f1
DE
15457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15458 (eval $ac_try) 2>&5
15459 ac_status=$?
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); }; } &&
15462 { ac_try='test -s conftest.$ac_objext'
15463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15464 (eval $ac_try) 2>&5
15465 ac_status=$?
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); }; }; then
15468 echo "$as_me:$LINENO: result: yes" >&5
15469echo "${ECHO_T}yes" >&6
15470else
15471 echo "$as_me: failed program was:" >&5
15472sed 's/^/| /' conftest.$ac_ext >&5
15473
15474echo "$as_me:$LINENO: result: no" >&5
15475echo "${ECHO_T}no" >&6
15476 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15477echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15478 cat >conftest.$ac_ext <<_ACEOF
15479/* confdefs.h. */
15480_ACEOF
15481cat confdefs.h >>conftest.$ac_ext
15482cat >>conftest.$ac_ext <<_ACEOF
15483/* end confdefs.h. */
15484#define __CF_USE_FRAMEWORK_INCLUDES__
15485#include <CoreFoundation/CFBase.h>
15486
15487int
15488main ()
15489{
15490
15491 ;
15492 return 0;
15493}
15494_ACEOF
15495rm -f conftest.$ac_objext
15496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15497 (eval $ac_compile) 2>conftest.er1
15498 ac_status=$?
15499 grep -v '^ *+' conftest.er1 >conftest.err
15500 rm -f conftest.er1
15501 cat conftest.err >&5
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); } &&
3f60522a
JS
15504 { ac_try='test -z "$ac_cxx_werror_flag"
15505 || test ! -s conftest.err'
4d7ec9f1
DE
15506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15507 (eval $ac_try) 2>&5
15508 ac_status=$?
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); }; } &&
15511 { ac_try='test -s conftest.$ac_objext'
15512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513 (eval $ac_try) 2>&5
15514 ac_status=$?
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); }; }; then
15517 echo "$as_me:$LINENO: result: yes" >&5
15518echo "${ECHO_T}yes" >&6
c92ad099 15519 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15520else
15521 echo "$as_me: failed program was:" >&5
15522sed 's/^/| /' conftest.$ac_ext >&5
15523
15524{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15525See \`config.log' for more details." >&5
15526echo "$as_me: error: no. CoreFoundation not available.
15527See \`config.log' for more details." >&2;}
15528 { (exit 1); exit 1; }; }
15529
15530fi
15531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15532
15533
15534fi
15535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15536 ;;
15537esac
15538
a848cd7e
SC
15539case "${host}" in
15540 *-pc-os2_emx | *-pc-os2-emx )
6ba87b06
SN
15541 ac_ext=c
15542ac_cpp='$CPP $CPPFLAGS'
15543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15545ac_compiler_gnu=$ac_cv_c_compiler_gnu
15546
15547 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
a848cd7e
SC
15548 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15549echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15550if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15551 echo $ECHO_N "(cached) $ECHO_C" >&6
15552else
15553 ac_check_lib_save_LIBS=$LIBS
15554LIBS="-lcExt $LIBS"
15555cat >conftest.$ac_ext <<_ACEOF
15556/* confdefs.h. */
15557_ACEOF
15558cat confdefs.h >>conftest.$ac_ext
15559cat >>conftest.$ac_ext <<_ACEOF
15560/* end confdefs.h. */
15561
15562/* Override any gcc2 internal prototype to avoid an error. */
15563#ifdef __cplusplus
15564extern "C"
15565#endif
15566/* We use char because int might match the return type of a gcc2
15567 builtin and then its argument prototype would still apply. */
15568char drand48 ();
15569int
15570main ()
15571{
15572drand48 ();
15573 ;
15574 return 0;
15575}
15576_ACEOF
15577rm -f conftest.$ac_objext conftest$ac_exeext
15578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15579 (eval $ac_link) 2>conftest.er1
a848cd7e 15580 ac_status=$?
ac1cb8d3
VS
15581 grep -v '^ *+' conftest.er1 >conftest.err
15582 rm -f conftest.er1
15583 cat conftest.err >&5
a848cd7e
SC
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); } &&
3f60522a
JS
15586 { ac_try='test -z "$ac_c_werror_flag"
15587 || test ! -s conftest.err'
ac1cb8d3
VS
15588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589 (eval $ac_try) 2>&5
15590 ac_status=$?
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; } &&
15593 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595 (eval $ac_try) 2>&5
15596 ac_status=$?
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); }; }; then
15599 ac_cv_lib_cExt_drand48=yes
15600else
15601 echo "$as_me: failed program was:" >&5
15602sed 's/^/| /' conftest.$ac_ext >&5
15603
15604ac_cv_lib_cExt_drand48=no
15605fi
ac1cb8d3
VS
15606rm -f conftest.err conftest.$ac_objext \
15607 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15608LIBS=$ac_check_lib_save_LIBS
15609fi
15610echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15611echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15612if test $ac_cv_lib_cExt_drand48 = yes; then
15613 LIBS="$LIBS -lcExt"
15614fi
15615
15616 else
15617 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15618 fi
69120ee4
VZ
15619 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15620echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15621if test "${wx_cv_gccversion+set}" = set; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15623else
15624
391a765e
VS
15625 if test "$cross_compiling" = yes; then
15626 wx_cv_gccversion="EMX2"
15627
15628else
15629 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15630/* confdefs.h. */
15631_ACEOF
15632cat confdefs.h >>conftest.$ac_ext
15633cat >>conftest.$ac_ext <<_ACEOF
15634/* end confdefs.h. */
15635
391a765e 15636 #include <stdio.h>
a848cd7e 15637
391a765e
VS
15638 int main()
15639 {
15640 FILE *f=fopen("conftestval", "w");
15641 if (!f) exit(1);
15642 fprintf(f,
a848cd7e 15643 #if (__GNUC__ < 3)
391a765e
VS
15644 "EMX2"
15645 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15646 "EMX3"
15647 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15648 "Innotek5"
15649 #else
15650 "Innotek6"
a848cd7e 15651 #endif
391a765e
VS
15652 );
15653 exit(0);
15654 }
a848cd7e 15655
a848cd7e 15656_ACEOF
391a765e
VS
15657rm -f conftest$ac_exeext
15658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15659 (eval $ac_link) 2>&5
ac1cb8d3
VS
15660 ac_status=$?
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15662 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15664 (eval $ac_try) 2>&5
15665 ac_status=$?
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); }; }; then
391a765e 15668 wx_cv_gccversion=`cat conftestval`
a848cd7e 15669else
391a765e
VS
15670 echo "$as_me: program exited with status $ac_status" >&5
15671echo "$as_me: failed program was:" >&5
a848cd7e
SC
15672sed 's/^/| /' conftest.$ac_ext >&5
15673
391a765e
VS
15674( exit $ac_status )
15675wx_cv_gccversion="EMX2"
a848cd7e 15676fi
391a765e 15677rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15678fi
a848cd7e
SC
15679
15680fi
15681echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15682echo "${ECHO_T}$wx_cv_gccversion" >&6
6ba87b06
SN
15683 ac_ext=cc
15684ac_cpp='$CXXCPP $CPPFLAGS'
15685ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15686ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15687ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15688
391a765e 15689 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15690 LIBS="$LIBS -lstdcpp"
15691 LDFLAGS="$LDFLAGS -Zsysv-signals"
15692 else
391a765e 15693 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15694 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15695 LDFLAGS="$LDFLAGS -Zsysv-signals"
15696 else
15697 LIBS="$LIBS -lstdc++"
15698 fi
15699 fi
94acd38e
DE
15700 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15701 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15702echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15703 wxUSE_OMF=yes
2da0c077 15704 enable_omf=yes
a848cd7e
SC
15705 fi
15706 ;;
15707 *)
15708
95986553 15709 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15710echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15711if test "${ac_cv_string_strcasecmp+set}" = set; then
15712 echo $ECHO_N "(cached) $ECHO_C" >&6
15713else
15714
15715 cat >conftest.$ac_ext <<_ACEOF
15716/* confdefs.h. */
15717_ACEOF
15718cat confdefs.h >>conftest.$ac_ext
15719cat >>conftest.$ac_ext <<_ACEOF
15720/* end confdefs.h. */
15721
15722 #include <string.h>
15723
15724int
15725main ()
15726{
15727
15728 strcasecmp("foo", "bar");
15729
15730 ;
15731 return 0;
15732}
15733_ACEOF
15734rm -f conftest.$ac_objext conftest$ac_exeext
15735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15736 (eval $ac_link) 2>conftest.er1
a848cd7e 15737 ac_status=$?
ac1cb8d3
VS
15738 grep -v '^ *+' conftest.er1 >conftest.err
15739 rm -f conftest.er1
15740 cat conftest.err >&5
a848cd7e
SC
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); } &&
3f60522a
JS
15743 { ac_try='test -z "$ac_cxx_werror_flag"
15744 || test ! -s conftest.err'
ac1cb8d3
VS
15745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15746 (eval $ac_try) 2>&5
15747 ac_status=$?
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); }; } &&
15750 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15752 (eval $ac_try) 2>&5
15753 ac_status=$?
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); }; }; then
15756 ac_cv_string_strcasecmp=yes
15757else
15758 echo "$as_me: failed program was:" >&5
15759sed 's/^/| /' conftest.$ac_ext >&5
15760
15761ac_cv_string_strcasecmp=no
15762
15763fi
ac1cb8d3
VS
15764rm -f conftest.err conftest.$ac_objext \
15765 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15766
15767fi
15768echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15769echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15770
15771 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15772 cat >>confdefs.h <<\_ACEOF
15773#define HAVE_STRCASECMP_IN_STRING_H 1
15774_ACEOF
15775
15776 else
15777 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15778echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15779if test "${ac_cv_strings_strcasecmp+set}" = set; then
15780 echo $ECHO_N "(cached) $ECHO_C" >&6
15781else
15782
15783 cat >conftest.$ac_ext <<_ACEOF
15784/* confdefs.h. */
15785_ACEOF
15786cat confdefs.h >>conftest.$ac_ext
15787cat >>conftest.$ac_ext <<_ACEOF
15788/* end confdefs.h. */
15789
15790 #include <strings.h>
15791
15792int
15793main ()
15794{
15795
15796 strcasecmp("foo", "bar");
15797
15798 ;
15799 return 0;
15800}
15801_ACEOF
15802rm -f conftest.$ac_objext conftest$ac_exeext
15803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15804 (eval $ac_link) 2>conftest.er1
a848cd7e 15805 ac_status=$?
ac1cb8d3
VS
15806 grep -v '^ *+' conftest.er1 >conftest.err
15807 rm -f conftest.er1
15808 cat conftest.err >&5
a848cd7e
SC
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); } &&
3f60522a
JS
15811 { ac_try='test -z "$ac_cxx_werror_flag"
15812 || test ! -s conftest.err'
ac1cb8d3
VS
15813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15814 (eval $ac_try) 2>&5
15815 ac_status=$?
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); }; } &&
15818 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820 (eval $ac_try) 2>&5
15821 ac_status=$?
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; }; then
15824 ac_cv_strings_strcasecmp=yes
15825else
15826 echo "$as_me: failed program was:" >&5
15827sed 's/^/| /' conftest.$ac_ext >&5
15828
15829ac_cv_strings_strcasecmp=no
15830
15831fi
ac1cb8d3
VS
15832rm -f conftest.err conftest.$ac_objext \
15833 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15834
15835fi
15836echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15837echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15838
0c3c69fc 15839 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15840 cat >>confdefs.h <<\_ACEOF
15841#define HAVE_STRCASECMP_IN_STRINGS_H 1
15842_ACEOF
15843
15844 else
15845 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15846echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15847 { (exit 1); exit 1; }; }
15848 fi
15849 fi
15850
a848cd7e
SC
15851 ;;
15852esac
15853
15854
5d7b7554
VZ
15855ac_ext=cc
15856ac_cpp='$CXXCPP $CPPFLAGS'
15857ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15858ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15859ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15860echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15861echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15862if test -z "$CXXCPP"; then
15863 if test "${ac_cv_prog_CXXCPP+set}" = set; then
15864 echo $ECHO_N "(cached) $ECHO_C" >&6
15865else
15866 # Double quotes because CXXCPP needs to be expanded
15867 for CXXCPP in "$CXX -E" "/lib/cpp"
15868 do
15869 ac_preproc_ok=false
15870for ac_cxx_preproc_warn_flag in '' yes
15871do
15872 # Use a header file that comes with gcc, so configuring glibc
15873 # with a fresh cross-compiler works.
15874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15875 # <limits.h> exists even on freestanding compilers.
15876 # On the NeXT, cc -E runs the code through the compiler's parser,
15877 # not just through cpp. "Syntax error" is here to catch this case.
15878 cat >conftest.$ac_ext <<_ACEOF
15879/* confdefs.h. */
15880_ACEOF
15881cat confdefs.h >>conftest.$ac_ext
15882cat >>conftest.$ac_ext <<_ACEOF
15883/* end confdefs.h. */
15884#ifdef __STDC__
15885# include <limits.h>
15886#else
15887# include <assert.h>
15888#endif
15889 Syntax error
15890_ACEOF
15891if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15893 ac_status=$?
15894 grep -v '^ *+' conftest.er1 >conftest.err
15895 rm -f conftest.er1
15896 cat conftest.err >&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); } >/dev/null; then
15899 if test -s conftest.err; then
15900 ac_cpp_err=$ac_cxx_preproc_warn_flag
15901 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15902 else
15903 ac_cpp_err=
15904 fi
15905else
15906 ac_cpp_err=yes
15907fi
15908if test -z "$ac_cpp_err"; then
15909 :
15910else
15911 echo "$as_me: failed program was:" >&5
15912sed 's/^/| /' conftest.$ac_ext >&5
15913
15914 # Broken: fails on valid input.
15915continue
15916fi
15917rm -f conftest.err conftest.$ac_ext
15918
15919 # OK, works on sane cases. Now check whether non-existent headers
15920 # can be detected and how.
15921 cat >conftest.$ac_ext <<_ACEOF
15922/* confdefs.h. */
15923_ACEOF
15924cat confdefs.h >>conftest.$ac_ext
15925cat >>conftest.$ac_ext <<_ACEOF
15926/* end confdefs.h. */
15927#include <ac_nonexistent.h>
15928_ACEOF
15929if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15931 ac_status=$?
15932 grep -v '^ *+' conftest.er1 >conftest.err
15933 rm -f conftest.er1
15934 cat conftest.err >&5
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); } >/dev/null; then
15937 if test -s conftest.err; then
15938 ac_cpp_err=$ac_cxx_preproc_warn_flag
15939 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15940 else
15941 ac_cpp_err=
15942 fi
15943else
15944 ac_cpp_err=yes
15945fi
15946if test -z "$ac_cpp_err"; then
15947 # Broken: success on invalid input.
15948continue
15949else
15950 echo "$as_me: failed program was:" >&5
15951sed 's/^/| /' conftest.$ac_ext >&5
15952
15953 # Passes both tests.
15954ac_preproc_ok=:
15955break
15956fi
15957rm -f conftest.err conftest.$ac_ext
15958
15959done
15960# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15961rm -f conftest.err conftest.$ac_ext
15962if $ac_preproc_ok; then
15963 break
15964fi
15965
15966 done
15967 ac_cv_prog_CXXCPP=$CXXCPP
15968
15969fi
15970 CXXCPP=$ac_cv_prog_CXXCPP
15971else
15972 ac_cv_prog_CXXCPP=$CXXCPP
15973fi
15974echo "$as_me:$LINENO: result: $CXXCPP" >&5
15975echo "${ECHO_T}$CXXCPP" >&6
15976ac_preproc_ok=false
15977for ac_cxx_preproc_warn_flag in '' yes
15978do
15979 # Use a header file that comes with gcc, so configuring glibc
15980 # with a fresh cross-compiler works.
15981 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15982 # <limits.h> exists even on freestanding compilers.
15983 # On the NeXT, cc -E runs the code through the compiler's parser,
15984 # not just through cpp. "Syntax error" is here to catch this case.
15985 cat >conftest.$ac_ext <<_ACEOF
15986/* confdefs.h. */
15987_ACEOF
15988cat confdefs.h >>conftest.$ac_ext
15989cat >>conftest.$ac_ext <<_ACEOF
15990/* end confdefs.h. */
15991#ifdef __STDC__
15992# include <limits.h>
15993#else
15994# include <assert.h>
15995#endif
15996 Syntax error
15997_ACEOF
15998if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16000 ac_status=$?
16001 grep -v '^ *+' conftest.er1 >conftest.err
16002 rm -f conftest.er1
16003 cat conftest.err >&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); } >/dev/null; then
16006 if test -s conftest.err; then
16007 ac_cpp_err=$ac_cxx_preproc_warn_flag
16008 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16009 else
16010 ac_cpp_err=
16011 fi
16012else
16013 ac_cpp_err=yes
16014fi
16015if test -z "$ac_cpp_err"; then
16016 :
16017else
16018 echo "$as_me: failed program was:" >&5
16019sed 's/^/| /' conftest.$ac_ext >&5
16020
16021 # Broken: fails on valid input.
16022continue
16023fi
16024rm -f conftest.err conftest.$ac_ext
16025
16026 # OK, works on sane cases. Now check whether non-existent headers
16027 # can be detected and how.
16028 cat >conftest.$ac_ext <<_ACEOF
16029/* confdefs.h. */
16030_ACEOF
16031cat confdefs.h >>conftest.$ac_ext
16032cat >>conftest.$ac_ext <<_ACEOF
16033/* end confdefs.h. */
16034#include <ac_nonexistent.h>
16035_ACEOF
16036if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16038 ac_status=$?
16039 grep -v '^ *+' conftest.er1 >conftest.err
16040 rm -f conftest.er1
16041 cat conftest.err >&5
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); } >/dev/null; then
16044 if test -s conftest.err; then
16045 ac_cpp_err=$ac_cxx_preproc_warn_flag
16046 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16047 else
16048 ac_cpp_err=
16049 fi
16050else
16051 ac_cpp_err=yes
16052fi
16053if test -z "$ac_cpp_err"; then
16054 # Broken: success on invalid input.
16055continue
16056else
16057 echo "$as_me: failed program was:" >&5
16058sed 's/^/| /' conftest.$ac_ext >&5
16059
16060 # Passes both tests.
16061ac_preproc_ok=:
16062break
16063fi
16064rm -f conftest.err conftest.$ac_ext
16065
16066done
16067# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16068rm -f conftest.err conftest.$ac_ext
16069if $ac_preproc_ok; then
16070 :
16071else
16072 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16073See \`config.log' for more details." >&5
16074echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16075See \`config.log' for more details." >&2;}
16076 { (exit 1); exit 1; }; }
16077fi
16078
16079ac_ext=cc
16080ac_cpp='$CXXCPP $CPPFLAGS'
16081ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16082ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16083ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16084
16085
a848cd7e
SC
16086echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16087echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16088if test "${ac_cv_header_stdc+set}" = set; then
16089 echo $ECHO_N "(cached) $ECHO_C" >&6
16090else
16091 cat >conftest.$ac_ext <<_ACEOF
16092/* confdefs.h. */
16093_ACEOF
16094cat confdefs.h >>conftest.$ac_ext
16095cat >>conftest.$ac_ext <<_ACEOF
16096/* end confdefs.h. */
16097#include <stdlib.h>
16098#include <stdarg.h>
16099#include <string.h>
16100#include <float.h>
16101
16102int
16103main ()
16104{
16105
16106 ;
16107 return 0;
16108}
16109_ACEOF
16110rm -f conftest.$ac_objext
16111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16112 (eval $ac_compile) 2>conftest.er1
a848cd7e 16113 ac_status=$?
ac1cb8d3
VS
16114 grep -v '^ *+' conftest.er1 >conftest.err
16115 rm -f conftest.er1
16116 cat conftest.err >&5
a848cd7e
SC
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); } &&
3f60522a
JS
16119 { ac_try='test -z "$ac_cxx_werror_flag"
16120 || test ! -s conftest.err'
ac1cb8d3
VS
16121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122 (eval $ac_try) 2>&5
16123 ac_status=$?
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); }; } &&
16126 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16128 (eval $ac_try) 2>&5
16129 ac_status=$?
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); }; }; then
16132 ac_cv_header_stdc=yes
16133else
16134 echo "$as_me: failed program was:" >&5
16135sed 's/^/| /' conftest.$ac_ext >&5
16136
16137ac_cv_header_stdc=no
16138fi
ac1cb8d3 16139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16140
16141if test $ac_cv_header_stdc = yes; then
16142 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16143 cat >conftest.$ac_ext <<_ACEOF
16144/* confdefs.h. */
16145_ACEOF
16146cat confdefs.h >>conftest.$ac_ext
16147cat >>conftest.$ac_ext <<_ACEOF
16148/* end confdefs.h. */
16149#include <string.h>
16150
16151_ACEOF
16152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16153 $EGREP "memchr" >/dev/null 2>&1; then
16154 :
16155else
16156 ac_cv_header_stdc=no
16157fi
16158rm -f conftest*
16159
16160fi
16161
16162if test $ac_cv_header_stdc = yes; then
16163 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16164 cat >conftest.$ac_ext <<_ACEOF
16165/* confdefs.h. */
16166_ACEOF
16167cat confdefs.h >>conftest.$ac_ext
16168cat >>conftest.$ac_ext <<_ACEOF
16169/* end confdefs.h. */
16170#include <stdlib.h>
16171
16172_ACEOF
16173if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16174 $EGREP "free" >/dev/null 2>&1; then
16175 :
16176else
16177 ac_cv_header_stdc=no
16178fi
16179rm -f conftest*
16180
16181fi
16182
16183if test $ac_cv_header_stdc = yes; then
16184 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16185 if test "$cross_compiling" = yes; then
16186 :
16187else
16188 cat >conftest.$ac_ext <<_ACEOF
16189/* confdefs.h. */
16190_ACEOF
16191cat confdefs.h >>conftest.$ac_ext
16192cat >>conftest.$ac_ext <<_ACEOF
16193/* end confdefs.h. */
16194#include <ctype.h>
16195#if ((' ' & 0x0FF) == 0x020)
16196# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16197# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16198#else
16199# define ISLOWER(c) \
ac1cb8d3
VS
16200 (('a' <= (c) && (c) <= 'i') \
16201 || ('j' <= (c) && (c) <= 'r') \
16202 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
16203# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16204#endif
16205
16206#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16207int
16208main ()
16209{
16210 int i;
16211 for (i = 0; i < 256; i++)
16212 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 16213 || toupper (i) != TOUPPER (i))
a848cd7e
SC
16214 exit(2);
16215 exit (0);
16216}
16217_ACEOF
16218rm -f conftest$ac_exeext
16219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16220 (eval $ac_link) 2>&5
16221 ac_status=$?
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16225 (eval $ac_try) 2>&5
16226 ac_status=$?
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); }; }; then
16229 :
16230else
16231 echo "$as_me: program exited with status $ac_status" >&5
16232echo "$as_me: failed program was:" >&5
16233sed 's/^/| /' conftest.$ac_ext >&5
16234
16235( exit $ac_status )
16236ac_cv_header_stdc=no
16237fi
ac1cb8d3 16238rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16239fi
16240fi
16241fi
16242echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16243echo "${ECHO_T}$ac_cv_header_stdc" >&6
16244if test $ac_cv_header_stdc = yes; then
16245
16246cat >>confdefs.h <<\_ACEOF
16247#define STDC_HEADERS 1
16248_ACEOF
16249
16250fi
16251
16252# On IRIX 5.3, sys/types and inttypes.h are conflicting.
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 16263 inttypes.h stdint.h unistd.h
a848cd7e
SC
16264do
16265as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16266echo "$as_me:$LINENO: checking for $ac_header" >&5
16267echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16268if eval "test \"\${$as_ac_Header+set}\" = set"; then
16269 echo $ECHO_N "(cached) $ECHO_C" >&6
16270else
16271 cat >conftest.$ac_ext <<_ACEOF
16272/* confdefs.h. */
16273_ACEOF
16274cat confdefs.h >>conftest.$ac_ext
16275cat >>conftest.$ac_ext <<_ACEOF
16276/* end confdefs.h. */
16277$ac_includes_default
16278
16279#include <$ac_header>
16280_ACEOF
16281rm -f conftest.$ac_objext
16282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16283 (eval $ac_compile) 2>conftest.er1
a848cd7e 16284 ac_status=$?
ac1cb8d3
VS
16285 grep -v '^ *+' conftest.er1 >conftest.err
16286 rm -f conftest.er1
16287 cat conftest.err >&5
a848cd7e
SC
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); } &&
3f60522a
JS
16290 { ac_try='test -z "$ac_cxx_werror_flag"
16291 || test ! -s conftest.err'
ac1cb8d3
VS
16292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16293 (eval $ac_try) 2>&5
16294 ac_status=$?
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); }; } &&
16297 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16299 (eval $ac_try) 2>&5
16300 ac_status=$?
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); }; }; then
16303 eval "$as_ac_Header=yes"
16304else
16305 echo "$as_me: failed program was:" >&5
16306sed 's/^/| /' conftest.$ac_ext >&5
16307
16308eval "$as_ac_Header=no"
16309fi
ac1cb8d3 16310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16311fi
16312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16313echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16314if test `eval echo '${'$as_ac_Header'}'` = yes; then
16315 cat >>confdefs.h <<_ACEOF
16316#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16317_ACEOF
16318
16319fi
16320
16321done
16322
16323
16324
16325for ac_header in stdlib.h
16326do
16327as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16328if eval "test \"\${$as_ac_Header+set}\" = set"; then
16329 echo "$as_me:$LINENO: checking for $ac_header" >&5
16330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16331if eval "test \"\${$as_ac_Header+set}\" = set"; then
16332 echo $ECHO_N "(cached) $ECHO_C" >&6
16333fi
16334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16335echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16336else
16337 # Is the header compilable?
16338echo "$as_me:$LINENO: checking $ac_header usability" >&5
16339echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16340cat >conftest.$ac_ext <<_ACEOF
16341/* confdefs.h. */
16342_ACEOF
16343cat confdefs.h >>conftest.$ac_ext
16344cat >>conftest.$ac_ext <<_ACEOF
16345/* end confdefs.h. */
16346$ac_includes_default
16347#include <$ac_header>
16348_ACEOF
16349rm -f conftest.$ac_objext
16350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16351 (eval $ac_compile) 2>conftest.er1
a848cd7e 16352 ac_status=$?
ac1cb8d3
VS
16353 grep -v '^ *+' conftest.er1 >conftest.err
16354 rm -f conftest.er1
16355 cat conftest.err >&5
a848cd7e
SC
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); } &&
3f60522a
JS
16358 { ac_try='test -z "$ac_cxx_werror_flag"
16359 || test ! -s conftest.err'
ac1cb8d3
VS
16360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16361 (eval $ac_try) 2>&5
16362 ac_status=$?
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); }; } &&
16365 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16367 (eval $ac_try) 2>&5
16368 ac_status=$?
16369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); }; }; then
16371 ac_header_compiler=yes
16372else
16373 echo "$as_me: failed program was:" >&5
16374sed 's/^/| /' conftest.$ac_ext >&5
16375
16376ac_header_compiler=no
16377fi
ac1cb8d3 16378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16379echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16380echo "${ECHO_T}$ac_header_compiler" >&6
16381
16382# Is the header present?
16383echo "$as_me:$LINENO: checking $ac_header presence" >&5
16384echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16385cat >conftest.$ac_ext <<_ACEOF
16386/* confdefs.h. */
16387_ACEOF
16388cat confdefs.h >>conftest.$ac_ext
16389cat >>conftest.$ac_ext <<_ACEOF
16390/* end confdefs.h. */
16391#include <$ac_header>
16392_ACEOF
16393if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16395 ac_status=$?
16396 grep -v '^ *+' conftest.er1 >conftest.err
16397 rm -f conftest.er1
16398 cat conftest.err >&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); } >/dev/null; then
16401 if test -s conftest.err; then
5d7b7554
VZ
16402 ac_cpp_err=$ac_cxx_preproc_warn_flag
16403 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16404 else
16405 ac_cpp_err=
16406 fi
16407else
16408 ac_cpp_err=yes
16409fi
16410if test -z "$ac_cpp_err"; then
16411 ac_header_preproc=yes
16412else
16413 echo "$as_me: failed program was:" >&5
16414sed 's/^/| /' conftest.$ac_ext >&5
16415
16416 ac_header_preproc=no
16417fi
16418rm -f conftest.err conftest.$ac_ext
16419echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16420echo "${ECHO_T}$ac_header_preproc" >&6
16421
16422# So? What about this header?
5d7b7554 16423case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16424 yes:no: )
a848cd7e
SC
16425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16426echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16428echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16429 ac_header_preproc=yes
a848cd7e 16430 ;;
ac1cb8d3 16431 no:yes:* )
a848cd7e
SC
16432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16433echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16435echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16437echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16439echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16441echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16443echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16444 (
16445 cat <<\_ASBOX
ac1cb8d3
VS
16446## ----------------------------------------- ##
16447## Report this to wx-dev@lists.wxwidgets.org ##
16448## ----------------------------------------- ##
a848cd7e
SC
16449_ASBOX
16450 ) |
16451 sed "s/^/$as_me: WARNING: /" >&2
16452 ;;
16453esac
16454echo "$as_me:$LINENO: checking for $ac_header" >&5
16455echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16456if eval "test \"\${$as_ac_Header+set}\" = set"; then
16457 echo $ECHO_N "(cached) $ECHO_C" >&6
16458else
ac1cb8d3 16459 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16460fi
16461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16462echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16463
16464fi
16465if test `eval echo '${'$as_ac_Header'}'` = yes; then
16466 cat >>confdefs.h <<_ACEOF
16467#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16468_ACEOF
16469
16470fi
16471
16472done
16473
16474
16475for ac_header in malloc.h
16476do
16477as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16478if eval "test \"\${$as_ac_Header+set}\" = set"; then
16479 echo "$as_me:$LINENO: checking for $ac_header" >&5
16480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16481if eval "test \"\${$as_ac_Header+set}\" = set"; then
16482 echo $ECHO_N "(cached) $ECHO_C" >&6
16483fi
16484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16485echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16486else
16487 # Is the header compilable?
16488echo "$as_me:$LINENO: checking $ac_header usability" >&5
16489echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16490cat >conftest.$ac_ext <<_ACEOF
16491/* confdefs.h. */
16492_ACEOF
16493cat confdefs.h >>conftest.$ac_ext
16494cat >>conftest.$ac_ext <<_ACEOF
16495/* end confdefs.h. */
16496$ac_includes_default
16497#include <$ac_header>
16498_ACEOF
16499rm -f conftest.$ac_objext
16500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16501 (eval $ac_compile) 2>conftest.er1
a848cd7e 16502 ac_status=$?
ac1cb8d3
VS
16503 grep -v '^ *+' conftest.er1 >conftest.err
16504 rm -f conftest.er1
16505 cat conftest.err >&5
a848cd7e
SC
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); } &&
3f60522a
JS
16508 { ac_try='test -z "$ac_cxx_werror_flag"
16509 || test ! -s conftest.err'
ac1cb8d3
VS
16510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16511 (eval $ac_try) 2>&5
16512 ac_status=$?
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); }; } &&
16515 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16517 (eval $ac_try) 2>&5
16518 ac_status=$?
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); }; }; then
16521 ac_header_compiler=yes
16522else
16523 echo "$as_me: failed program was:" >&5
16524sed 's/^/| /' conftest.$ac_ext >&5
16525
16526ac_header_compiler=no
16527fi
ac1cb8d3 16528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16529echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16530echo "${ECHO_T}$ac_header_compiler" >&6
16531
16532# Is the header present?
16533echo "$as_me:$LINENO: checking $ac_header presence" >&5
16534echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16535cat >conftest.$ac_ext <<_ACEOF
16536/* confdefs.h. */
16537_ACEOF
16538cat confdefs.h >>conftest.$ac_ext
16539cat >>conftest.$ac_ext <<_ACEOF
16540/* end confdefs.h. */
16541#include <$ac_header>
16542_ACEOF
16543if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16545 ac_status=$?
16546 grep -v '^ *+' conftest.er1 >conftest.err
16547 rm -f conftest.er1
16548 cat conftest.err >&5
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } >/dev/null; then
16551 if test -s conftest.err; then
5d7b7554
VZ
16552 ac_cpp_err=$ac_cxx_preproc_warn_flag
16553 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16554 else
16555 ac_cpp_err=
16556 fi
16557else
16558 ac_cpp_err=yes
16559fi
16560if test -z "$ac_cpp_err"; then
16561 ac_header_preproc=yes
16562else
16563 echo "$as_me: failed program was:" >&5
16564sed 's/^/| /' conftest.$ac_ext >&5
16565
16566 ac_header_preproc=no
16567fi
16568rm -f conftest.err conftest.$ac_ext
16569echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16570echo "${ECHO_T}$ac_header_preproc" >&6
16571
16572# So? What about this header?
5d7b7554 16573case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16574 yes:no: )
a848cd7e
SC
16575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16576echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16578echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16579 ac_header_preproc=yes
a848cd7e 16580 ;;
ac1cb8d3 16581 no:yes:* )
a848cd7e
SC
16582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16583echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16585echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16587echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16589echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16591echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16593echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16594 (
16595 cat <<\_ASBOX
ac1cb8d3
VS
16596## ----------------------------------------- ##
16597## Report this to wx-dev@lists.wxwidgets.org ##
16598## ----------------------------------------- ##
a848cd7e
SC
16599_ASBOX
16600 ) |
16601 sed "s/^/$as_me: WARNING: /" >&2
16602 ;;
16603esac
16604echo "$as_me:$LINENO: checking for $ac_header" >&5
16605echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16606if eval "test \"\${$as_ac_Header+set}\" = set"; then
16607 echo $ECHO_N "(cached) $ECHO_C" >&6
16608else
ac1cb8d3 16609 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16610fi
16611echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16612echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16613
16614fi
16615if test `eval echo '${'$as_ac_Header'}'` = yes; then
16616 cat >>confdefs.h <<_ACEOF
16617#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16618_ACEOF
16619
16620fi
16621
16622done
16623
16624
16625for ac_header in unistd.h
16626do
16627as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16628if eval "test \"\${$as_ac_Header+set}\" = set"; then
16629 echo "$as_me:$LINENO: checking for $ac_header" >&5
16630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16631if eval "test \"\${$as_ac_Header+set}\" = set"; then
16632 echo $ECHO_N "(cached) $ECHO_C" >&6
16633fi
16634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16635echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16636else
16637 # Is the header compilable?
16638echo "$as_me:$LINENO: checking $ac_header usability" >&5
16639echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16640cat >conftest.$ac_ext <<_ACEOF
16641/* confdefs.h. */
16642_ACEOF
16643cat confdefs.h >>conftest.$ac_ext
16644cat >>conftest.$ac_ext <<_ACEOF
16645/* end confdefs.h. */
16646$ac_includes_default
16647#include <$ac_header>
16648_ACEOF
16649rm -f conftest.$ac_objext
16650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16651 (eval $ac_compile) 2>conftest.er1
a848cd7e 16652 ac_status=$?
ac1cb8d3
VS
16653 grep -v '^ *+' conftest.er1 >conftest.err
16654 rm -f conftest.er1
16655 cat conftest.err >&5
a848cd7e
SC
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); } &&
3f60522a
JS
16658 { ac_try='test -z "$ac_cxx_werror_flag"
16659 || test ! -s conftest.err'
ac1cb8d3
VS
16660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16661 (eval $ac_try) 2>&5
16662 ac_status=$?
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; } &&
16665 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16667 (eval $ac_try) 2>&5
16668 ac_status=$?
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); }; }; then
16671 ac_header_compiler=yes
16672else
16673 echo "$as_me: failed program was:" >&5
16674sed 's/^/| /' conftest.$ac_ext >&5
16675
16676ac_header_compiler=no
16677fi
ac1cb8d3 16678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16679echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16680echo "${ECHO_T}$ac_header_compiler" >&6
16681
16682# Is the header present?
16683echo "$as_me:$LINENO: checking $ac_header presence" >&5
16684echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16685cat >conftest.$ac_ext <<_ACEOF
16686/* confdefs.h. */
16687_ACEOF
16688cat confdefs.h >>conftest.$ac_ext
16689cat >>conftest.$ac_ext <<_ACEOF
16690/* end confdefs.h. */
16691#include <$ac_header>
16692_ACEOF
16693if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16695 ac_status=$?
16696 grep -v '^ *+' conftest.er1 >conftest.err
16697 rm -f conftest.er1
16698 cat conftest.err >&5
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); } >/dev/null; then
16701 if test -s conftest.err; then
5d7b7554
VZ
16702 ac_cpp_err=$ac_cxx_preproc_warn_flag
16703 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16704 else
16705 ac_cpp_err=
16706 fi
16707else
16708 ac_cpp_err=yes
16709fi
16710if test -z "$ac_cpp_err"; then
16711 ac_header_preproc=yes
16712else
16713 echo "$as_me: failed program was:" >&5
16714sed 's/^/| /' conftest.$ac_ext >&5
16715
16716 ac_header_preproc=no
16717fi
16718rm -f conftest.err conftest.$ac_ext
16719echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16720echo "${ECHO_T}$ac_header_preproc" >&6
16721
16722# So? What about this header?
5d7b7554 16723case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16724 yes:no: )
a848cd7e
SC
16725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16726echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16728echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16729 ac_header_preproc=yes
a848cd7e 16730 ;;
ac1cb8d3 16731 no:yes:* )
a848cd7e
SC
16732 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16733echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16734 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16735echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16736 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16737echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16738 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16739echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16741echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16742 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16743echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16744 (
16745 cat <<\_ASBOX
ac1cb8d3
VS
16746## ----------------------------------------- ##
16747## Report this to wx-dev@lists.wxwidgets.org ##
16748## ----------------------------------------- ##
a848cd7e
SC
16749_ASBOX
16750 ) |
16751 sed "s/^/$as_me: WARNING: /" >&2
16752 ;;
16753esac
16754echo "$as_me:$LINENO: checking for $ac_header" >&5
16755echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16756if eval "test \"\${$as_ac_Header+set}\" = set"; then
16757 echo $ECHO_N "(cached) $ECHO_C" >&6
16758else
ac1cb8d3 16759 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16760fi
16761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16762echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16763
16764fi
16765if test `eval echo '${'$as_ac_Header'}'` = yes; then
16766 cat >>confdefs.h <<_ACEOF
16767#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16768_ACEOF
16769
16770fi
16771
16772done
16773
16774
16775for ac_header in wchar.h
16776do
16777as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16778if eval "test \"\${$as_ac_Header+set}\" = set"; then
16779 echo "$as_me:$LINENO: checking for $ac_header" >&5
16780echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16781if eval "test \"\${$as_ac_Header+set}\" = set"; then
16782 echo $ECHO_N "(cached) $ECHO_C" >&6
16783fi
16784echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16785echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16786else
16787 # Is the header compilable?
16788echo "$as_me:$LINENO: checking $ac_header usability" >&5
16789echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16790cat >conftest.$ac_ext <<_ACEOF
16791/* confdefs.h. */
16792_ACEOF
16793cat confdefs.h >>conftest.$ac_ext
16794cat >>conftest.$ac_ext <<_ACEOF
16795/* end confdefs.h. */
16796$ac_includes_default
16797#include <$ac_header>
16798_ACEOF
16799rm -f conftest.$ac_objext
16800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16801 (eval $ac_compile) 2>conftest.er1
a848cd7e 16802 ac_status=$?
ac1cb8d3
VS
16803 grep -v '^ *+' conftest.er1 >conftest.err
16804 rm -f conftest.er1
16805 cat conftest.err >&5
a848cd7e
SC
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); } &&
3f60522a
JS
16808 { ac_try='test -z "$ac_cxx_werror_flag"
16809 || test ! -s conftest.err'
ac1cb8d3
VS
16810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16811 (eval $ac_try) 2>&5
16812 ac_status=$?
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); }; } &&
16815 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16817 (eval $ac_try) 2>&5
16818 ac_status=$?
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); }; }; then
16821 ac_header_compiler=yes
16822else
16823 echo "$as_me: failed program was:" >&5
16824sed 's/^/| /' conftest.$ac_ext >&5
16825
16826ac_header_compiler=no
16827fi
ac1cb8d3 16828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16829echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16830echo "${ECHO_T}$ac_header_compiler" >&6
16831
16832# Is the header present?
16833echo "$as_me:$LINENO: checking $ac_header presence" >&5
16834echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16835cat >conftest.$ac_ext <<_ACEOF
16836/* confdefs.h. */
16837_ACEOF
16838cat confdefs.h >>conftest.$ac_ext
16839cat >>conftest.$ac_ext <<_ACEOF
16840/* end confdefs.h. */
16841#include <$ac_header>
16842_ACEOF
16843if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16845 ac_status=$?
16846 grep -v '^ *+' conftest.er1 >conftest.err
16847 rm -f conftest.er1
16848 cat conftest.err >&5
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); } >/dev/null; then
16851 if test -s conftest.err; then
5d7b7554
VZ
16852 ac_cpp_err=$ac_cxx_preproc_warn_flag
16853 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16854 else
16855 ac_cpp_err=
16856 fi
16857else
16858 ac_cpp_err=yes
16859fi
16860if test -z "$ac_cpp_err"; then
16861 ac_header_preproc=yes
16862else
16863 echo "$as_me: failed program was:" >&5
16864sed 's/^/| /' conftest.$ac_ext >&5
16865
16866 ac_header_preproc=no
16867fi
16868rm -f conftest.err conftest.$ac_ext
16869echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16870echo "${ECHO_T}$ac_header_preproc" >&6
16871
16872# So? What about this header?
5d7b7554 16873case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16874 yes:no: )
a848cd7e
SC
16875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16876echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16878echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16879 ac_header_preproc=yes
a848cd7e 16880 ;;
ac1cb8d3 16881 no:yes:* )
a848cd7e
SC
16882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16883echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16885echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16887echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16889echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16893echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16894 (
16895 cat <<\_ASBOX
ac1cb8d3
VS
16896## ----------------------------------------- ##
16897## Report this to wx-dev@lists.wxwidgets.org ##
16898## ----------------------------------------- ##
a848cd7e
SC
16899_ASBOX
16900 ) |
16901 sed "s/^/$as_me: WARNING: /" >&2
16902 ;;
16903esac
16904echo "$as_me:$LINENO: checking for $ac_header" >&5
16905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16906if eval "test \"\${$as_ac_Header+set}\" = set"; then
16907 echo $ECHO_N "(cached) $ECHO_C" >&6
16908else
ac1cb8d3 16909 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16910fi
16911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16913
16914fi
16915if test `eval echo '${'$as_ac_Header'}'` = yes; then
16916 cat >>confdefs.h <<_ACEOF
16917#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16918_ACEOF
16919
16920fi
16921
16922done
16923
16924
16925if test "$ac_cv_header_wchar_h" != "yes"; then
16926
16927for ac_header in wcstr.h
16928do
16929as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16930if eval "test \"\${$as_ac_Header+set}\" = set"; then
16931 echo "$as_me:$LINENO: checking for $ac_header" >&5
16932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16933if eval "test \"\${$as_ac_Header+set}\" = set"; then
16934 echo $ECHO_N "(cached) $ECHO_C" >&6
16935fi
16936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16937echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16938else
16939 # Is the header compilable?
16940echo "$as_me:$LINENO: checking $ac_header usability" >&5
16941echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16942cat >conftest.$ac_ext <<_ACEOF
16943/* confdefs.h. */
16944_ACEOF
16945cat confdefs.h >>conftest.$ac_ext
16946cat >>conftest.$ac_ext <<_ACEOF
16947/* end confdefs.h. */
16948$ac_includes_default
16949#include <$ac_header>
16950_ACEOF
16951rm -f conftest.$ac_objext
16952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16953 (eval $ac_compile) 2>conftest.er1
a848cd7e 16954 ac_status=$?
ac1cb8d3
VS
16955 grep -v '^ *+' conftest.er1 >conftest.err
16956 rm -f conftest.er1
16957 cat conftest.err >&5
a848cd7e
SC
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); } &&
3f60522a
JS
16960 { ac_try='test -z "$ac_cxx_werror_flag"
16961 || test ! -s conftest.err'
ac1cb8d3
VS
16962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963 (eval $ac_try) 2>&5
16964 ac_status=$?
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); }; } &&
16967 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16969 (eval $ac_try) 2>&5
16970 ac_status=$?
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); }; }; then
16973 ac_header_compiler=yes
16974else
16975 echo "$as_me: failed program was:" >&5
16976sed 's/^/| /' conftest.$ac_ext >&5
16977
16978ac_header_compiler=no
16979fi
ac1cb8d3 16980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16981echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16982echo "${ECHO_T}$ac_header_compiler" >&6
16983
16984# Is the header present?
16985echo "$as_me:$LINENO: checking $ac_header presence" >&5
16986echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16987cat >conftest.$ac_ext <<_ACEOF
16988/* confdefs.h. */
16989_ACEOF
16990cat confdefs.h >>conftest.$ac_ext
16991cat >>conftest.$ac_ext <<_ACEOF
16992/* end confdefs.h. */
16993#include <$ac_header>
16994_ACEOF
16995if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16997 ac_status=$?
16998 grep -v '^ *+' conftest.er1 >conftest.err
16999 rm -f conftest.er1
17000 cat conftest.err >&5
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); } >/dev/null; then
17003 if test -s conftest.err; then
5d7b7554
VZ
17004 ac_cpp_err=$ac_cxx_preproc_warn_flag
17005 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17006 else
17007 ac_cpp_err=
17008 fi
17009else
17010 ac_cpp_err=yes
17011fi
17012if test -z "$ac_cpp_err"; then
17013 ac_header_preproc=yes
17014else
17015 echo "$as_me: failed program was:" >&5
17016sed 's/^/| /' conftest.$ac_ext >&5
17017
17018 ac_header_preproc=no
17019fi
17020rm -f conftest.err conftest.$ac_ext
17021echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17022echo "${ECHO_T}$ac_header_preproc" >&6
17023
17024# So? What about this header?
5d7b7554 17025case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17026 yes:no: )
a848cd7e
SC
17027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17028echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17030echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17031 ac_header_preproc=yes
a848cd7e 17032 ;;
ac1cb8d3 17033 no:yes:* )
a848cd7e
SC
17034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17035echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17037echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17039echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17041echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17043echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17045echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17046 (
17047 cat <<\_ASBOX
ac1cb8d3
VS
17048## ----------------------------------------- ##
17049## Report this to wx-dev@lists.wxwidgets.org ##
17050## ----------------------------------------- ##
a848cd7e
SC
17051_ASBOX
17052 ) |
17053 sed "s/^/$as_me: WARNING: /" >&2
17054 ;;
17055esac
17056echo "$as_me:$LINENO: checking for $ac_header" >&5
17057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17058if eval "test \"\${$as_ac_Header+set}\" = set"; then
17059 echo $ECHO_N "(cached) $ECHO_C" >&6
17060else
ac1cb8d3 17061 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17062fi
17063echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17064echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17065
17066fi
17067if test `eval echo '${'$as_ac_Header'}'` = yes; then
17068 cat >>confdefs.h <<_ACEOF
17069#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17070_ACEOF
17071
17072fi
17073
17074done
17075
17076fi
17077
17078
17079for ac_header in fnmatch.h
17080do
17081as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17082if eval "test \"\${$as_ac_Header+set}\" = set"; then
17083 echo "$as_me:$LINENO: checking for $ac_header" >&5
17084echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17085if eval "test \"\${$as_ac_Header+set}\" = set"; then
17086 echo $ECHO_N "(cached) $ECHO_C" >&6
17087fi
17088echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17089echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17090else
17091 # Is the header compilable?
17092echo "$as_me:$LINENO: checking $ac_header usability" >&5
17093echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17094cat >conftest.$ac_ext <<_ACEOF
17095/* confdefs.h. */
17096_ACEOF
17097cat confdefs.h >>conftest.$ac_ext
17098cat >>conftest.$ac_ext <<_ACEOF
17099/* end confdefs.h. */
17100$ac_includes_default
17101#include <$ac_header>
17102_ACEOF
17103rm -f conftest.$ac_objext
17104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17105 (eval $ac_compile) 2>conftest.er1
a848cd7e 17106 ac_status=$?
ac1cb8d3
VS
17107 grep -v '^ *+' conftest.er1 >conftest.err
17108 rm -f conftest.er1
17109 cat conftest.err >&5
a848cd7e
SC
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); } &&
3f60522a
JS
17112 { ac_try='test -z "$ac_cxx_werror_flag"
17113 || test ! -s conftest.err'
ac1cb8d3
VS
17114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17115 (eval $ac_try) 2>&5
17116 ac_status=$?
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); }; } &&
17119 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17121 (eval $ac_try) 2>&5
17122 ac_status=$?
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); }; }; then
17125 ac_header_compiler=yes
17126else
17127 echo "$as_me: failed program was:" >&5
17128sed 's/^/| /' conftest.$ac_ext >&5
17129
17130ac_header_compiler=no
17131fi
ac1cb8d3 17132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17133echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17134echo "${ECHO_T}$ac_header_compiler" >&6
17135
17136# Is the header present?
17137echo "$as_me:$LINENO: checking $ac_header presence" >&5
17138echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17139cat >conftest.$ac_ext <<_ACEOF
17140/* confdefs.h. */
17141_ACEOF
17142cat confdefs.h >>conftest.$ac_ext
17143cat >>conftest.$ac_ext <<_ACEOF
17144/* end confdefs.h. */
17145#include <$ac_header>
17146_ACEOF
17147if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17149 ac_status=$?
17150 grep -v '^ *+' conftest.er1 >conftest.err
17151 rm -f conftest.er1
17152 cat conftest.err >&5
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); } >/dev/null; then
17155 if test -s conftest.err; then
5d7b7554
VZ
17156 ac_cpp_err=$ac_cxx_preproc_warn_flag
17157 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17158 else
17159 ac_cpp_err=
17160 fi
17161else
17162 ac_cpp_err=yes
17163fi
17164if test -z "$ac_cpp_err"; then
17165 ac_header_preproc=yes
17166else
17167 echo "$as_me: failed program was:" >&5
17168sed 's/^/| /' conftest.$ac_ext >&5
17169
17170 ac_header_preproc=no
17171fi
17172rm -f conftest.err conftest.$ac_ext
17173echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17174echo "${ECHO_T}$ac_header_preproc" >&6
17175
17176# So? What about this header?
5d7b7554 17177case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17178 yes:no: )
a848cd7e
SC
17179 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17180echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17182echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17183 ac_header_preproc=yes
a848cd7e 17184 ;;
ac1cb8d3 17185 no:yes:* )
a848cd7e
SC
17186 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17187echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17188 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17189echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17190 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17191echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17192 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17193echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17195echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17196 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17197echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17198 (
17199 cat <<\_ASBOX
ac1cb8d3
VS
17200## ----------------------------------------- ##
17201## Report this to wx-dev@lists.wxwidgets.org ##
17202## ----------------------------------------- ##
a848cd7e
SC
17203_ASBOX
17204 ) |
17205 sed "s/^/$as_me: WARNING: /" >&2
17206 ;;
17207esac
17208echo "$as_me:$LINENO: checking for $ac_header" >&5
17209echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17210if eval "test \"\${$as_ac_Header+set}\" = set"; then
17211 echo $ECHO_N "(cached) $ECHO_C" >&6
17212else
ac1cb8d3 17213 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17214fi
17215echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17216echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17217
17218fi
17219if test `eval echo '${'$as_ac_Header'}'` = yes; then
17220 cat >>confdefs.h <<_ACEOF
17221#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17222_ACEOF
17223
17224fi
17225
17226done
17227
17228
a848cd7e
SC
17229
17230for ac_header in langinfo.h
17231do
17232as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17233if eval "test \"\${$as_ac_Header+set}\" = set"; then
17234 echo "$as_me:$LINENO: checking for $ac_header" >&5
17235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17236if eval "test \"\${$as_ac_Header+set}\" = set"; then
17237 echo $ECHO_N "(cached) $ECHO_C" >&6
17238fi
17239echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17240echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17241else
17242 # Is the header compilable?
17243echo "$as_me:$LINENO: checking $ac_header usability" >&5
17244echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17245cat >conftest.$ac_ext <<_ACEOF
17246/* confdefs.h. */
17247_ACEOF
17248cat confdefs.h >>conftest.$ac_ext
17249cat >>conftest.$ac_ext <<_ACEOF
17250/* end confdefs.h. */
17251$ac_includes_default
17252#include <$ac_header>
17253_ACEOF
17254rm -f conftest.$ac_objext
17255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17256 (eval $ac_compile) 2>conftest.er1
a848cd7e 17257 ac_status=$?
ac1cb8d3
VS
17258 grep -v '^ *+' conftest.er1 >conftest.err
17259 rm -f conftest.er1
17260 cat conftest.err >&5
a848cd7e
SC
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); } &&
3f60522a
JS
17263 { ac_try='test -z "$ac_cxx_werror_flag"
17264 || test ! -s conftest.err'
ac1cb8d3
VS
17265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17266 (eval $ac_try) 2>&5
17267 ac_status=$?
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); }; } &&
17270 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17272 (eval $ac_try) 2>&5
17273 ac_status=$?
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); }; }; then
17276 ac_header_compiler=yes
17277else
17278 echo "$as_me: failed program was:" >&5
17279sed 's/^/| /' conftest.$ac_ext >&5
17280
17281ac_header_compiler=no
17282fi
ac1cb8d3 17283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17284echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17285echo "${ECHO_T}$ac_header_compiler" >&6
17286
17287# Is the header present?
17288echo "$as_me:$LINENO: checking $ac_header presence" >&5
17289echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17290cat >conftest.$ac_ext <<_ACEOF
17291/* confdefs.h. */
17292_ACEOF
17293cat confdefs.h >>conftest.$ac_ext
17294cat >>conftest.$ac_ext <<_ACEOF
17295/* end confdefs.h. */
17296#include <$ac_header>
17297_ACEOF
17298if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17300 ac_status=$?
17301 grep -v '^ *+' conftest.er1 >conftest.err
17302 rm -f conftest.er1
17303 cat conftest.err >&5
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); } >/dev/null; then
17306 if test -s conftest.err; then
5d7b7554
VZ
17307 ac_cpp_err=$ac_cxx_preproc_warn_flag
17308 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17309 else
17310 ac_cpp_err=
17311 fi
17312else
17313 ac_cpp_err=yes
17314fi
17315if test -z "$ac_cpp_err"; then
17316 ac_header_preproc=yes
17317else
17318 echo "$as_me: failed program was:" >&5
17319sed 's/^/| /' conftest.$ac_ext >&5
17320
17321 ac_header_preproc=no
17322fi
17323rm -f conftest.err conftest.$ac_ext
17324echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17325echo "${ECHO_T}$ac_header_preproc" >&6
17326
17327# So? What about this header?
5d7b7554 17328case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17329 yes:no: )
a848cd7e
SC
17330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17331echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17333echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17334 ac_header_preproc=yes
a848cd7e 17335 ;;
ac1cb8d3 17336 no:yes:* )
a848cd7e
SC
17337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17338echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17340echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17341 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17342echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17343 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17344echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17346echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17347 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17348echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17349 (
17350 cat <<\_ASBOX
ac1cb8d3
VS
17351## ----------------------------------------- ##
17352## Report this to wx-dev@lists.wxwidgets.org ##
17353## ----------------------------------------- ##
a848cd7e
SC
17354_ASBOX
17355 ) |
17356 sed "s/^/$as_me: WARNING: /" >&2
17357 ;;
17358esac
17359echo "$as_me:$LINENO: checking for $ac_header" >&5
17360echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17361if eval "test \"\${$as_ac_Header+set}\" = set"; then
17362 echo $ECHO_N "(cached) $ECHO_C" >&6
17363else
ac1cb8d3 17364 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17365fi
17366echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17367echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17368
17369fi
17370if test `eval echo '${'$as_ac_Header'}'` = yes; then
17371 cat >>confdefs.h <<_ACEOF
17372#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17373_ACEOF
17374
17375fi
17376
17377done
17378
17379
17380case "${host}" in
17381 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
17382 if test $ac_cv_header_langinfo_h = "yes" \
17383 -a \( "$wx_cv_gccversion" = "EMX2" \
17384 -o "$wx_cv_gccversion" = "EMX3" \
17385 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
17386 LIBS="$LIBS -lintl"
17387 fi
17388 ;;
17389esac
17390
a848cd7e
SC
17391
17392echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17393echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17394if test "${ac_cv_c_const+set}" = set; then
17395 echo $ECHO_N "(cached) $ECHO_C" >&6
17396else
17397 cat >conftest.$ac_ext <<_ACEOF
17398/* confdefs.h. */
17399_ACEOF
17400cat confdefs.h >>conftest.$ac_ext
17401cat >>conftest.$ac_ext <<_ACEOF
17402/* end confdefs.h. */
17403
17404int
17405main ()
17406{
17407/* FIXME: Include the comments suggested by Paul. */
17408#ifndef __cplusplus
17409 /* Ultrix mips cc rejects this. */
17410 typedef int charset[2];
17411 const charset x;
17412 /* SunOS 4.1.1 cc rejects this. */
17413 char const *const *ccp;
17414 char **p;
17415 /* NEC SVR4.0.2 mips cc rejects this. */
17416 struct point {int x, y;};
17417 static struct point const zero = {0,0};
17418 /* AIX XL C 1.02.0.0 rejects this.
17419 It does not let you subtract one const X* pointer from another in
17420 an arm of an if-expression whose if-part is not a constant
17421 expression */
17422 const char *g = "string";
17423 ccp = &g + (g ? g-g : 0);
17424 /* HPUX 7.0 cc rejects these. */
17425 ++ccp;
17426 p = (char**) ccp;
17427 ccp = (char const *const *) p;
17428 { /* SCO 3.2v4 cc rejects this. */
17429 char *t;
17430 char const *s = 0 ? (char *) 0 : (char const *) 0;
17431
17432 *t++ = 0;
17433 }
17434 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17435 int x[] = {25, 17};
17436 const int *foo = &x[0];
17437 ++foo;
17438 }
17439 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17440 typedef const int *iptr;
17441 iptr p = 0;
17442 ++p;
17443 }
17444 { /* AIX XL C 1.02.0.0 rejects this saying
17445 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17446 struct s { int j; const int *ap[3]; };
17447 struct s *b; b->j = 5;
17448 }
17449 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17450 const int foo = 10;
17451 }
17452#endif
17453
17454 ;
17455 return 0;
17456}
17457_ACEOF
17458rm -f conftest.$ac_objext
17459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17460 (eval $ac_compile) 2>conftest.er1
a848cd7e 17461 ac_status=$?
ac1cb8d3
VS
17462 grep -v '^ *+' conftest.er1 >conftest.err
17463 rm -f conftest.er1
17464 cat conftest.err >&5
a848cd7e
SC
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); } &&
3f60522a
JS
17467 { ac_try='test -z "$ac_cxx_werror_flag"
17468 || test ! -s conftest.err'
ac1cb8d3
VS
17469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17470 (eval $ac_try) 2>&5
17471 ac_status=$?
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); }; } &&
17474 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17476 (eval $ac_try) 2>&5
17477 ac_status=$?
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); }; }; then
17480 ac_cv_c_const=yes
17481else
17482 echo "$as_me: failed program was:" >&5
17483sed 's/^/| /' conftest.$ac_ext >&5
17484
17485ac_cv_c_const=no
17486fi
ac1cb8d3 17487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17488fi
17489echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17490echo "${ECHO_T}$ac_cv_c_const" >&6
17491if test $ac_cv_c_const = no; then
17492
17493cat >>confdefs.h <<\_ACEOF
17494#define const
17495_ACEOF
17496
17497fi
17498
17499echo "$as_me:$LINENO: checking for inline" >&5
17500echo $ECHO_N "checking for inline... $ECHO_C" >&6
17501if test "${ac_cv_c_inline+set}" = set; then
17502 echo $ECHO_N "(cached) $ECHO_C" >&6
17503else
17504 ac_cv_c_inline=no
17505for ac_kw in inline __inline__ __inline; do
17506 cat >conftest.$ac_ext <<_ACEOF
17507/* confdefs.h. */
17508_ACEOF
17509cat confdefs.h >>conftest.$ac_ext
17510cat >>conftest.$ac_ext <<_ACEOF
17511/* end confdefs.h. */
17512#ifndef __cplusplus
17513typedef int foo_t;
17514static $ac_kw foo_t static_foo () {return 0; }
17515$ac_kw foo_t foo () {return 0; }
17516#endif
17517
17518_ACEOF
17519rm -f conftest.$ac_objext
17520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17521 (eval $ac_compile) 2>conftest.er1
a848cd7e 17522 ac_status=$?
ac1cb8d3
VS
17523 grep -v '^ *+' conftest.er1 >conftest.err
17524 rm -f conftest.er1
17525 cat conftest.err >&5
a848cd7e
SC
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); } &&
3f60522a
JS
17528 { ac_try='test -z "$ac_cxx_werror_flag"
17529 || test ! -s conftest.err'
ac1cb8d3
VS
17530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17531 (eval $ac_try) 2>&5
17532 ac_status=$?
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); }; } &&
17535 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537 (eval $ac_try) 2>&5
17538 ac_status=$?
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); }; }; then
17541 ac_cv_c_inline=$ac_kw; break
17542else
17543 echo "$as_me: failed program was:" >&5
17544sed 's/^/| /' conftest.$ac_ext >&5
17545
17546fi
ac1cb8d3 17547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17548done
17549
17550fi
17551echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17552echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
17553
17554
a848cd7e
SC
17555case $ac_cv_c_inline in
17556 inline | yes) ;;
ac1cb8d3
VS
17557 *)
17558 case $ac_cv_c_inline in
17559 no) ac_val=;;
17560 *) ac_val=$ac_cv_c_inline;;
17561 esac
17562 cat >>confdefs.h <<_ACEOF
17563#ifndef __cplusplus
17564#define inline $ac_val
17565#endif
de59c161 17566_ACEOF
ac1cb8d3 17567 ;;
a848cd7e
SC
17568esac
17569
17570
17571echo "$as_me:$LINENO: checking for char" >&5
17572echo $ECHO_N "checking for char... $ECHO_C" >&6
17573if test "${ac_cv_type_char+set}" = set; then
17574 echo $ECHO_N "(cached) $ECHO_C" >&6
17575else
17576 cat >conftest.$ac_ext <<_ACEOF
17577/* confdefs.h. */
17578_ACEOF
17579cat confdefs.h >>conftest.$ac_ext
17580cat >>conftest.$ac_ext <<_ACEOF
17581/* end confdefs.h. */
17582$ac_includes_default
17583int
17584main ()
17585{
17586if ((char *) 0)
17587 return 0;
17588if (sizeof (char))
17589 return 0;
17590 ;
17591 return 0;
17592}
17593_ACEOF
17594rm -f conftest.$ac_objext
17595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17596 (eval $ac_compile) 2>conftest.er1
a848cd7e 17597 ac_status=$?
ac1cb8d3
VS
17598 grep -v '^ *+' conftest.er1 >conftest.err
17599 rm -f conftest.er1
17600 cat conftest.err >&5
a848cd7e
SC
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); } &&
3f60522a
JS
17603 { ac_try='test -z "$ac_cxx_werror_flag"
17604 || test ! -s conftest.err'
ac1cb8d3
VS
17605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17606 (eval $ac_try) 2>&5
17607 ac_status=$?
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); }; } &&
17610 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612 (eval $ac_try) 2>&5
17613 ac_status=$?
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; }; then
17616 ac_cv_type_char=yes
17617else
17618 echo "$as_me: failed program was:" >&5
17619sed 's/^/| /' conftest.$ac_ext >&5
17620
17621ac_cv_type_char=no
17622fi
ac1cb8d3 17623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17624fi
17625echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17626echo "${ECHO_T}$ac_cv_type_char" >&6
17627
17628echo "$as_me:$LINENO: checking size of char" >&5
17629echo $ECHO_N "checking size of char... $ECHO_C" >&6
17630if test "${ac_cv_sizeof_char+set}" = set; then
17631 echo $ECHO_N "(cached) $ECHO_C" >&6
17632else
17633 if test "$ac_cv_type_char" = yes; then
17634 # The cast to unsigned long works around a bug in the HP C Compiler
17635 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17636 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17637 # This bug is HP SR number 8606223364.
17638 if test "$cross_compiling" = yes; then
17639 # Depending upon the size, compute the lo and hi bounds.
17640cat >conftest.$ac_ext <<_ACEOF
17641/* confdefs.h. */
17642_ACEOF
17643cat confdefs.h >>conftest.$ac_ext
17644cat >>conftest.$ac_ext <<_ACEOF
17645/* end confdefs.h. */
17646$ac_includes_default
17647int
17648main ()
17649{
17650static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17651test_array [0] = 0
17652
17653 ;
17654 return 0;
17655}
17656_ACEOF
17657rm -f conftest.$ac_objext
17658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17659 (eval $ac_compile) 2>conftest.er1
a848cd7e 17660 ac_status=$?
ac1cb8d3
VS
17661 grep -v '^ *+' conftest.er1 >conftest.err
17662 rm -f conftest.er1
17663 cat conftest.err >&5
a848cd7e
SC
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); } &&
3f60522a
JS
17666 { ac_try='test -z "$ac_cxx_werror_flag"
17667 || test ! -s conftest.err'
ac1cb8d3
VS
17668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17669 (eval $ac_try) 2>&5
17670 ac_status=$?
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); }; } &&
17673 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17675 (eval $ac_try) 2>&5
17676 ac_status=$?
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; }; then
17679 ac_lo=0 ac_mid=0
17680 while :; do
17681 cat >conftest.$ac_ext <<_ACEOF
17682/* confdefs.h. */
17683_ACEOF
17684cat confdefs.h >>conftest.$ac_ext
17685cat >>conftest.$ac_ext <<_ACEOF
17686/* end confdefs.h. */
17687$ac_includes_default
17688int
17689main ()
17690{
17691static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17692test_array [0] = 0
17693
17694 ;
17695 return 0;
17696}
17697_ACEOF
17698rm -f conftest.$ac_objext
17699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17700 (eval $ac_compile) 2>conftest.er1
a848cd7e 17701 ac_status=$?
ac1cb8d3
VS
17702 grep -v '^ *+' conftest.er1 >conftest.err
17703 rm -f conftest.er1
17704 cat conftest.err >&5
a848cd7e
SC
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); } &&
3f60522a
JS
17707 { ac_try='test -z "$ac_cxx_werror_flag"
17708 || test ! -s conftest.err'
ac1cb8d3
VS
17709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17710 (eval $ac_try) 2>&5
17711 ac_status=$?
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); }; } &&
17714 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17717 ac_status=$?
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; }; then
17720 ac_hi=$ac_mid; break
17721else
17722 echo "$as_me: failed program was:" >&5
17723sed 's/^/| /' conftest.$ac_ext >&5
17724
17725ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17726 if test $ac_lo -le $ac_mid; then
17727 ac_lo= ac_hi=
17728 break
17729 fi
17730 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17731fi
ac1cb8d3 17732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17733 done
17734else
17735 echo "$as_me: failed program was:" >&5
17736sed 's/^/| /' conftest.$ac_ext >&5
17737
17738cat >conftest.$ac_ext <<_ACEOF
17739/* confdefs.h. */
17740_ACEOF
17741cat confdefs.h >>conftest.$ac_ext
17742cat >>conftest.$ac_ext <<_ACEOF
17743/* end confdefs.h. */
17744$ac_includes_default
17745int
17746main ()
17747{
17748static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17749test_array [0] = 0
17750
17751 ;
17752 return 0;
17753}
17754_ACEOF
17755rm -f conftest.$ac_objext
17756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17757 (eval $ac_compile) 2>conftest.er1
a848cd7e 17758 ac_status=$?
ac1cb8d3
VS
17759 grep -v '^ *+' conftest.er1 >conftest.err
17760 rm -f conftest.er1
17761 cat conftest.err >&5
a848cd7e
SC
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); } &&
3f60522a
JS
17764 { ac_try='test -z "$ac_cxx_werror_flag"
17765 || test ! -s conftest.err'
ac1cb8d3
VS
17766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17767 (eval $ac_try) 2>&5
17768 ac_status=$?
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); }; } &&
17771 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773 (eval $ac_try) 2>&5
17774 ac_status=$?
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; }; then
17777 ac_hi=-1 ac_mid=-1
17778 while :; do
17779 cat >conftest.$ac_ext <<_ACEOF
17780/* confdefs.h. */
17781_ACEOF
17782cat confdefs.h >>conftest.$ac_ext
17783cat >>conftest.$ac_ext <<_ACEOF
17784/* end confdefs.h. */
17785$ac_includes_default
17786int
17787main ()
17788{
17789static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17790test_array [0] = 0
17791
17792 ;
17793 return 0;
17794}
17795_ACEOF
17796rm -f conftest.$ac_objext
17797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17798 (eval $ac_compile) 2>conftest.er1
a848cd7e 17799 ac_status=$?
ac1cb8d3
VS
17800 grep -v '^ *+' conftest.er1 >conftest.err
17801 rm -f conftest.er1
17802 cat conftest.err >&5
a848cd7e
SC
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); } &&
3f60522a
JS
17805 { ac_try='test -z "$ac_cxx_werror_flag"
17806 || test ! -s conftest.err'
ac1cb8d3
VS
17807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17808 (eval $ac_try) 2>&5
17809 ac_status=$?
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); }; } &&
17812 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814 (eval $ac_try) 2>&5
17815 ac_status=$?
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; }; then
17818 ac_lo=$ac_mid; break
17819else
17820 echo "$as_me: failed program was:" >&5
17821sed 's/^/| /' conftest.$ac_ext >&5
17822
17823ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17824 if test $ac_mid -le $ac_hi; then
17825 ac_lo= ac_hi=
17826 break
17827 fi
17828 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17829fi
ac1cb8d3 17830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17831 done
17832else
17833 echo "$as_me: failed program was:" >&5
17834sed 's/^/| /' conftest.$ac_ext >&5
17835
17836ac_lo= ac_hi=
17837fi
ac1cb8d3 17838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17839fi
ac1cb8d3 17840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17841# Binary search between lo and hi bounds.
17842while test "x$ac_lo" != "x$ac_hi"; do
17843 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17844 cat >conftest.$ac_ext <<_ACEOF
17845/* confdefs.h. */
17846_ACEOF
17847cat confdefs.h >>conftest.$ac_ext
17848cat >>conftest.$ac_ext <<_ACEOF
17849/* end confdefs.h. */
17850$ac_includes_default
17851int
17852main ()
17853{
17854static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17855test_array [0] = 0
17856
17857 ;
17858 return 0;
17859}
17860_ACEOF
17861rm -f conftest.$ac_objext
17862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17863 (eval $ac_compile) 2>conftest.er1
a848cd7e 17864 ac_status=$?
ac1cb8d3
VS
17865 grep -v '^ *+' conftest.er1 >conftest.err
17866 rm -f conftest.er1
17867 cat conftest.err >&5
a848cd7e
SC
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); } &&
3f60522a
JS
17870 { ac_try='test -z "$ac_cxx_werror_flag"
17871 || test ! -s conftest.err'
ac1cb8d3
VS
17872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17873 (eval $ac_try) 2>&5
17874 ac_status=$?
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); }; } &&
17877 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17879 (eval $ac_try) 2>&5
17880 ac_status=$?
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); }; }; then
17883 ac_hi=$ac_mid
17884else
17885 echo "$as_me: failed program was:" >&5
17886sed 's/^/| /' conftest.$ac_ext >&5
17887
17888ac_lo=`expr '(' $ac_mid ')' + 1`
17889fi
ac1cb8d3 17890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17891done
17892case $ac_lo in
17893?*) ac_cv_sizeof_char=$ac_lo;;
17894'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17895See \`config.log' for more details." >&5
17896echo "$as_me: error: cannot compute sizeof (char), 77
17897See \`config.log' for more details." >&2;}
17898 { (exit 1); exit 1; }; } ;;
17899esac
17900else
17901 if test "$cross_compiling" = yes; then
3f60522a
JS
17902 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17903See \`config.log' for more details." >&5
17904echo "$as_me: error: cannot run test program while cross compiling
17905See \`config.log' for more details." >&2;}
a848cd7e
SC
17906 { (exit 1); exit 1; }; }
17907else
17908 cat >conftest.$ac_ext <<_ACEOF
17909/* confdefs.h. */
17910_ACEOF
17911cat confdefs.h >>conftest.$ac_ext
17912cat >>conftest.$ac_ext <<_ACEOF
17913/* end confdefs.h. */
17914$ac_includes_default
17915long longval () { return (long) (sizeof (char)); }
17916unsigned long ulongval () { return (long) (sizeof (char)); }
17917#include <stdio.h>
17918#include <stdlib.h>
17919int
17920main ()
17921{
17922
17923 FILE *f = fopen ("conftest.val", "w");
17924 if (! f)
17925 exit (1);
17926 if (((long) (sizeof (char))) < 0)
17927 {
17928 long i = longval ();
17929 if (i != ((long) (sizeof (char))))
17930 exit (1);
17931 fprintf (f, "%ld\n", i);
17932 }
17933 else
17934 {
17935 unsigned long i = ulongval ();
17936 if (i != ((long) (sizeof (char))))
17937 exit (1);
17938 fprintf (f, "%lu\n", i);
17939 }
17940 exit (ferror (f) || fclose (f) != 0);
17941
17942 ;
17943 return 0;
17944}
17945_ACEOF
17946rm -f conftest$ac_exeext
17947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17948 (eval $ac_link) 2>&5
17949 ac_status=$?
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17954 ac_status=$?
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; }; then
17957 ac_cv_sizeof_char=`cat conftest.val`
17958else
17959 echo "$as_me: program exited with status $ac_status" >&5
17960echo "$as_me: failed program was:" >&5
17961sed 's/^/| /' conftest.$ac_ext >&5
17962
17963( exit $ac_status )
17964{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17965See \`config.log' for more details." >&5
17966echo "$as_me: error: cannot compute sizeof (char), 77
17967See \`config.log' for more details." >&2;}
17968 { (exit 1); exit 1; }; }
17969fi
ac1cb8d3 17970rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17971fi
17972fi
17973rm -f conftest.val
17974else
17975 ac_cv_sizeof_char=0
17976fi
17977fi
17978echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17979echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17980cat >>confdefs.h <<_ACEOF
17981#define SIZEOF_CHAR $ac_cv_sizeof_char
17982_ACEOF
17983
17984
17985echo "$as_me:$LINENO: checking for short" >&5
17986echo $ECHO_N "checking for short... $ECHO_C" >&6
17987if test "${ac_cv_type_short+set}" = set; then
17988 echo $ECHO_N "(cached) $ECHO_C" >&6
17989else
17990 cat >conftest.$ac_ext <<_ACEOF
17991/* confdefs.h. */
17992_ACEOF
17993cat confdefs.h >>conftest.$ac_ext
17994cat >>conftest.$ac_ext <<_ACEOF
17995/* end confdefs.h. */
17996$ac_includes_default
17997int
17998main ()
17999{
18000if ((short *) 0)
18001 return 0;
18002if (sizeof (short))
18003 return 0;
18004 ;
18005 return 0;
18006}
18007_ACEOF
18008rm -f conftest.$ac_objext
18009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18010 (eval $ac_compile) 2>conftest.er1
a848cd7e 18011 ac_status=$?
ac1cb8d3
VS
18012 grep -v '^ *+' conftest.er1 >conftest.err
18013 rm -f conftest.er1
18014 cat conftest.err >&5
a848cd7e
SC
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); } &&
3f60522a
JS
18017 { ac_try='test -z "$ac_cxx_werror_flag"
18018 || test ! -s conftest.err'
ac1cb8d3
VS
18019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18020 (eval $ac_try) 2>&5
18021 ac_status=$?
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); }; } &&
18024 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026 (eval $ac_try) 2>&5
18027 ac_status=$?
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; }; then
18030 ac_cv_type_short=yes
18031else
18032 echo "$as_me: failed program was:" >&5
18033sed 's/^/| /' conftest.$ac_ext >&5
18034
18035ac_cv_type_short=no
18036fi
ac1cb8d3 18037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18038fi
18039echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18040echo "${ECHO_T}$ac_cv_type_short" >&6
18041
18042echo "$as_me:$LINENO: checking size of short" >&5
18043echo $ECHO_N "checking size of short... $ECHO_C" >&6
18044if test "${ac_cv_sizeof_short+set}" = set; then
18045 echo $ECHO_N "(cached) $ECHO_C" >&6
18046else
18047 if test "$ac_cv_type_short" = yes; then
18048 # The cast to unsigned long works around a bug in the HP C Compiler
18049 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18050 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18051 # This bug is HP SR number 8606223364.
18052 if test "$cross_compiling" = yes; then
18053 # Depending upon the size, compute the lo and hi bounds.
18054cat >conftest.$ac_ext <<_ACEOF
18055/* confdefs.h. */
18056_ACEOF
18057cat confdefs.h >>conftest.$ac_ext
18058cat >>conftest.$ac_ext <<_ACEOF
18059/* end confdefs.h. */
18060$ac_includes_default
18061int
18062main ()
18063{
18064static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18065test_array [0] = 0
18066
18067 ;
18068 return 0;
18069}
18070_ACEOF
18071rm -f conftest.$ac_objext
18072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18073 (eval $ac_compile) 2>conftest.er1
a848cd7e 18074 ac_status=$?
ac1cb8d3
VS
18075 grep -v '^ *+' conftest.er1 >conftest.err
18076 rm -f conftest.er1
18077 cat conftest.err >&5
a848cd7e
SC
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); } &&
3f60522a
JS
18080 { ac_try='test -z "$ac_cxx_werror_flag"
18081 || test ! -s conftest.err'
ac1cb8d3
VS
18082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18083 (eval $ac_try) 2>&5
18084 ac_status=$?
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); }; } &&
18087 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18089 (eval $ac_try) 2>&5
18090 ac_status=$?
18091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092 (exit $ac_status); }; }; then
18093 ac_lo=0 ac_mid=0
18094 while :; do
18095 cat >conftest.$ac_ext <<_ACEOF
18096/* confdefs.h. */
18097_ACEOF
18098cat confdefs.h >>conftest.$ac_ext
18099cat >>conftest.$ac_ext <<_ACEOF
18100/* end confdefs.h. */
18101$ac_includes_default
18102int
18103main ()
18104{
18105static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18106test_array [0] = 0
18107
18108 ;
18109 return 0;
18110}
18111_ACEOF
18112rm -f conftest.$ac_objext
18113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18114 (eval $ac_compile) 2>conftest.er1
a848cd7e 18115 ac_status=$?
ac1cb8d3
VS
18116 grep -v '^ *+' conftest.er1 >conftest.err
18117 rm -f conftest.er1
18118 cat conftest.err >&5
a848cd7e
SC
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); } &&
3f60522a
JS
18121 { ac_try='test -z "$ac_cxx_werror_flag"
18122 || test ! -s conftest.err'
ac1cb8d3
VS
18123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18124 (eval $ac_try) 2>&5
18125 ac_status=$?
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; } &&
18128 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18130 (eval $ac_try) 2>&5
18131 ac_status=$?
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); }; }; then
18134 ac_hi=$ac_mid; break
18135else
18136 echo "$as_me: failed program was:" >&5
18137sed 's/^/| /' conftest.$ac_ext >&5
18138
18139ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18140 if test $ac_lo -le $ac_mid; then
18141 ac_lo= ac_hi=
18142 break
18143 fi
18144 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18145fi
ac1cb8d3 18146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18147 done
18148else
18149 echo "$as_me: failed program was:" >&5
18150sed 's/^/| /' conftest.$ac_ext >&5
18151
18152cat >conftest.$ac_ext <<_ACEOF
18153/* confdefs.h. */
18154_ACEOF
18155cat confdefs.h >>conftest.$ac_ext
18156cat >>conftest.$ac_ext <<_ACEOF
18157/* end confdefs.h. */
18158$ac_includes_default
18159int
18160main ()
18161{
18162static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18163test_array [0] = 0
18164
18165 ;
18166 return 0;
18167}
18168_ACEOF
18169rm -f conftest.$ac_objext
18170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18171 (eval $ac_compile) 2>conftest.er1
a848cd7e 18172 ac_status=$?
ac1cb8d3
VS
18173 grep -v '^ *+' conftest.er1 >conftest.err
18174 rm -f conftest.er1
18175 cat conftest.err >&5
a848cd7e
SC
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); } &&
3f60522a
JS
18178 { ac_try='test -z "$ac_cxx_werror_flag"
18179 || test ! -s conftest.err'
ac1cb8d3
VS
18180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18181 (eval $ac_try) 2>&5
18182 ac_status=$?
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; } &&
18185 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18187 (eval $ac_try) 2>&5
18188 ac_status=$?
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); }; }; then
18191 ac_hi=-1 ac_mid=-1
18192 while :; do
18193 cat >conftest.$ac_ext <<_ACEOF
18194/* confdefs.h. */
18195_ACEOF
18196cat confdefs.h >>conftest.$ac_ext
18197cat >>conftest.$ac_ext <<_ACEOF
18198/* end confdefs.h. */
18199$ac_includes_default
18200int
18201main ()
18202{
18203static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18204test_array [0] = 0
18205
18206 ;
18207 return 0;
18208}
18209_ACEOF
18210rm -f conftest.$ac_objext
18211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18212 (eval $ac_compile) 2>conftest.er1
a848cd7e 18213 ac_status=$?
ac1cb8d3
VS
18214 grep -v '^ *+' conftest.er1 >conftest.err
18215 rm -f conftest.er1
18216 cat conftest.err >&5
a848cd7e
SC
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); } &&
3f60522a
JS
18219 { ac_try='test -z "$ac_cxx_werror_flag"
18220 || test ! -s conftest.err'
ac1cb8d3
VS
18221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18222 (eval $ac_try) 2>&5
18223 ac_status=$?
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); }; } &&
18226 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
18232 ac_lo=$ac_mid; break
18233else
18234 echo "$as_me: failed program was:" >&5
18235sed 's/^/| /' conftest.$ac_ext >&5
18236
18237ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18238 if test $ac_mid -le $ac_hi; then
18239 ac_lo= ac_hi=
18240 break
18241 fi
18242 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18243fi
ac1cb8d3 18244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18245 done
18246else
18247 echo "$as_me: failed program was:" >&5
18248sed 's/^/| /' conftest.$ac_ext >&5
18249
18250ac_lo= ac_hi=
18251fi
ac1cb8d3 18252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18253fi
ac1cb8d3 18254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18255# Binary search between lo and hi bounds.
18256while test "x$ac_lo" != "x$ac_hi"; do
18257 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18258 cat >conftest.$ac_ext <<_ACEOF
18259/* confdefs.h. */
18260_ACEOF
18261cat confdefs.h >>conftest.$ac_ext
18262cat >>conftest.$ac_ext <<_ACEOF
18263/* end confdefs.h. */
18264$ac_includes_default
18265int
18266main ()
18267{
18268static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18269test_array [0] = 0
18270
18271 ;
18272 return 0;
18273}
18274_ACEOF
18275rm -f conftest.$ac_objext
18276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18277 (eval $ac_compile) 2>conftest.er1
a848cd7e 18278 ac_status=$?
ac1cb8d3
VS
18279 grep -v '^ *+' conftest.er1 >conftest.err
18280 rm -f conftest.er1
18281 cat conftest.err >&5
a848cd7e
SC
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); } &&
3f60522a
JS
18284 { ac_try='test -z "$ac_cxx_werror_flag"
18285 || test ! -s conftest.err'
ac1cb8d3
VS
18286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18287 (eval $ac_try) 2>&5
18288 ac_status=$?
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; } &&
18291 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18293 (eval $ac_try) 2>&5
18294 ac_status=$?
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; }; then
18297 ac_hi=$ac_mid
18298else
18299 echo "$as_me: failed program was:" >&5
18300sed 's/^/| /' conftest.$ac_ext >&5
18301
18302ac_lo=`expr '(' $ac_mid ')' + 1`
18303fi
ac1cb8d3 18304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18305done
18306case $ac_lo in
18307?*) ac_cv_sizeof_short=$ac_lo;;
18308'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18309See \`config.log' for more details." >&5
18310echo "$as_me: error: cannot compute sizeof (short), 77
18311See \`config.log' for more details." >&2;}
18312 { (exit 1); exit 1; }; } ;;
18313esac
18314else
18315 if test "$cross_compiling" = yes; then
3f60522a
JS
18316 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18317See \`config.log' for more details." >&5
18318echo "$as_me: error: cannot run test program while cross compiling
18319See \`config.log' for more details." >&2;}
a848cd7e
SC
18320 { (exit 1); exit 1; }; }
18321else
18322 cat >conftest.$ac_ext <<_ACEOF
18323/* confdefs.h. */
18324_ACEOF
18325cat confdefs.h >>conftest.$ac_ext
18326cat >>conftest.$ac_ext <<_ACEOF
18327/* end confdefs.h. */
18328$ac_includes_default
18329long longval () { return (long) (sizeof (short)); }
18330unsigned long ulongval () { return (long) (sizeof (short)); }
18331#include <stdio.h>
18332#include <stdlib.h>
18333int
18334main ()
18335{
18336
18337 FILE *f = fopen ("conftest.val", "w");
18338 if (! f)
18339 exit (1);
18340 if (((long) (sizeof (short))) < 0)
18341 {
18342 long i = longval ();
18343 if (i != ((long) (sizeof (short))))
18344 exit (1);
18345 fprintf (f, "%ld\n", i);
18346 }
18347 else
18348 {
18349 unsigned long i = ulongval ();
18350 if (i != ((long) (sizeof (short))))
18351 exit (1);
18352 fprintf (f, "%lu\n", i);
18353 }
18354 exit (ferror (f) || fclose (f) != 0);
18355
18356 ;
18357 return 0;
18358}
18359_ACEOF
18360rm -f conftest$ac_exeext
18361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18362 (eval $ac_link) 2>&5
18363 ac_status=$?
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18367 (eval $ac_try) 2>&5
18368 ac_status=$?
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); }; }; then
18371 ac_cv_sizeof_short=`cat conftest.val`
18372else
18373 echo "$as_me: program exited with status $ac_status" >&5
18374echo "$as_me: failed program was:" >&5
18375sed 's/^/| /' conftest.$ac_ext >&5
18376
18377( exit $ac_status )
18378{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18379See \`config.log' for more details." >&5
18380echo "$as_me: error: cannot compute sizeof (short), 77
18381See \`config.log' for more details." >&2;}
18382 { (exit 1); exit 1; }; }
18383fi
ac1cb8d3 18384rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18385fi
18386fi
18387rm -f conftest.val
18388else
18389 ac_cv_sizeof_short=0
18390fi
18391fi
18392echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18393echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18394cat >>confdefs.h <<_ACEOF
18395#define SIZEOF_SHORT $ac_cv_sizeof_short
18396_ACEOF
18397
18398
18399echo "$as_me:$LINENO: checking for void *" >&5
18400echo $ECHO_N "checking for void *... $ECHO_C" >&6
18401if test "${ac_cv_type_void_p+set}" = set; then
18402 echo $ECHO_N "(cached) $ECHO_C" >&6
18403else
18404 cat >conftest.$ac_ext <<_ACEOF
18405/* confdefs.h. */
18406_ACEOF
18407cat confdefs.h >>conftest.$ac_ext
18408cat >>conftest.$ac_ext <<_ACEOF
18409/* end confdefs.h. */
18410$ac_includes_default
18411int
18412main ()
18413{
18414if ((void * *) 0)
18415 return 0;
18416if (sizeof (void *))
18417 return 0;
18418 ;
18419 return 0;
18420}
18421_ACEOF
18422rm -f conftest.$ac_objext
18423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18424 (eval $ac_compile) 2>conftest.er1
a848cd7e 18425 ac_status=$?
ac1cb8d3
VS
18426 grep -v '^ *+' conftest.er1 >conftest.err
18427 rm -f conftest.er1
18428 cat conftest.err >&5
a848cd7e
SC
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); } &&
3f60522a
JS
18431 { ac_try='test -z "$ac_cxx_werror_flag"
18432 || test ! -s conftest.err'
ac1cb8d3
VS
18433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18434 (eval $ac_try) 2>&5
18435 ac_status=$?
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); }; } &&
18438 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18440 (eval $ac_try) 2>&5
18441 ac_status=$?
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); }; }; then
18444 ac_cv_type_void_p=yes
18445else
18446 echo "$as_me: failed program was:" >&5
18447sed 's/^/| /' conftest.$ac_ext >&5
18448
18449ac_cv_type_void_p=no
18450fi
ac1cb8d3 18451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18452fi
18453echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18454echo "${ECHO_T}$ac_cv_type_void_p" >&6
18455
18456echo "$as_me:$LINENO: checking size of void *" >&5
18457echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18458if test "${ac_cv_sizeof_void_p+set}" = set; then
18459 echo $ECHO_N "(cached) $ECHO_C" >&6
18460else
18461 if test "$ac_cv_type_void_p" = yes; then
18462 # The cast to unsigned long works around a bug in the HP C Compiler
18463 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18464 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18465 # This bug is HP SR number 8606223364.
18466 if test "$cross_compiling" = yes; then
18467 # Depending upon the size, compute the lo and hi bounds.
18468cat >conftest.$ac_ext <<_ACEOF
18469/* confdefs.h. */
18470_ACEOF
18471cat confdefs.h >>conftest.$ac_ext
18472cat >>conftest.$ac_ext <<_ACEOF
18473/* end confdefs.h. */
18474$ac_includes_default
18475int
18476main ()
18477{
18478static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18479test_array [0] = 0
18480
18481 ;
18482 return 0;
18483}
18484_ACEOF
18485rm -f conftest.$ac_objext
18486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18487 (eval $ac_compile) 2>conftest.er1
a848cd7e 18488 ac_status=$?
ac1cb8d3
VS
18489 grep -v '^ *+' conftest.er1 >conftest.err
18490 rm -f conftest.er1
18491 cat conftest.err >&5
a848cd7e
SC
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); } &&
3f60522a
JS
18494 { ac_try='test -z "$ac_cxx_werror_flag"
18495 || test ! -s conftest.err'
ac1cb8d3
VS
18496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18497 (eval $ac_try) 2>&5
18498 ac_status=$?
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); }; } &&
18501 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18503 (eval $ac_try) 2>&5
18504 ac_status=$?
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); }; }; then
18507 ac_lo=0 ac_mid=0
18508 while :; do
18509 cat >conftest.$ac_ext <<_ACEOF
18510/* confdefs.h. */
18511_ACEOF
18512cat confdefs.h >>conftest.$ac_ext
18513cat >>conftest.$ac_ext <<_ACEOF
18514/* end confdefs.h. */
18515$ac_includes_default
18516int
18517main ()
18518{
18519static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18520test_array [0] = 0
18521
18522 ;
18523 return 0;
18524}
18525_ACEOF
18526rm -f conftest.$ac_objext
18527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18528 (eval $ac_compile) 2>conftest.er1
a848cd7e 18529 ac_status=$?
ac1cb8d3
VS
18530 grep -v '^ *+' conftest.er1 >conftest.err
18531 rm -f conftest.er1
18532 cat conftest.err >&5
a848cd7e
SC
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); } &&
3f60522a
JS
18535 { ac_try='test -z "$ac_cxx_werror_flag"
18536 || test ! -s conftest.err'
ac1cb8d3
VS
18537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18538 (eval $ac_try) 2>&5
18539 ac_status=$?
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; } &&
18542 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18544 (eval $ac_try) 2>&5
18545 ac_status=$?
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); }; }; then
18548 ac_hi=$ac_mid; break
18549else
18550 echo "$as_me: failed program was:" >&5
18551sed 's/^/| /' conftest.$ac_ext >&5
18552
18553ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18554 if test $ac_lo -le $ac_mid; then
18555 ac_lo= ac_hi=
18556 break
18557 fi
18558 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18559fi
ac1cb8d3 18560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18561 done
18562else
18563 echo "$as_me: failed program was:" >&5
18564sed 's/^/| /' conftest.$ac_ext >&5
18565
18566cat >conftest.$ac_ext <<_ACEOF
18567/* confdefs.h. */
18568_ACEOF
18569cat confdefs.h >>conftest.$ac_ext
18570cat >>conftest.$ac_ext <<_ACEOF
18571/* end confdefs.h. */
18572$ac_includes_default
18573int
18574main ()
18575{
18576static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
18577test_array [0] = 0
18578
18579 ;
18580 return 0;
18581}
18582_ACEOF
18583rm -f conftest.$ac_objext
18584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18585 (eval $ac_compile) 2>conftest.er1
a848cd7e 18586 ac_status=$?
ac1cb8d3
VS
18587 grep -v '^ *+' conftest.er1 >conftest.err
18588 rm -f conftest.er1
18589 cat conftest.err >&5
a848cd7e
SC
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); } &&
3f60522a
JS
18592 { ac_try='test -z "$ac_cxx_werror_flag"
18593 || test ! -s conftest.err'
ac1cb8d3
VS
18594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18595 (eval $ac_try) 2>&5
18596 ac_status=$?
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); }; } &&
18599 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18601 (eval $ac_try) 2>&5
18602 ac_status=$?
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); }; }; then
18605 ac_hi=-1 ac_mid=-1
18606 while :; do
18607 cat >conftest.$ac_ext <<_ACEOF
18608/* confdefs.h. */
18609_ACEOF
18610cat confdefs.h >>conftest.$ac_ext
18611cat >>conftest.$ac_ext <<_ACEOF
18612/* end confdefs.h. */
18613$ac_includes_default
18614int
18615main ()
18616{
18617static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
18618test_array [0] = 0
18619
18620 ;
18621 return 0;
18622}
18623_ACEOF
18624rm -f conftest.$ac_objext
18625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18626 (eval $ac_compile) 2>conftest.er1
a848cd7e 18627 ac_status=$?
ac1cb8d3
VS
18628 grep -v '^ *+' conftest.er1 >conftest.err
18629 rm -f conftest.er1
18630 cat conftest.err >&5
a848cd7e
SC
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); } &&
3f60522a
JS
18633 { ac_try='test -z "$ac_cxx_werror_flag"
18634 || test ! -s conftest.err'
ac1cb8d3
VS
18635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18636 (eval $ac_try) 2>&5
18637 ac_status=$?
18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639 (exit $ac_status); }; } &&
18640 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18642 (eval $ac_try) 2>&5
18643 ac_status=$?
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); }; }; then
18646 ac_lo=$ac_mid; break
18647else
18648 echo "$as_me: failed program was:" >&5
18649sed 's/^/| /' conftest.$ac_ext >&5
18650
18651ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18652 if test $ac_mid -le $ac_hi; then
18653 ac_lo= ac_hi=
18654 break
18655 fi
18656 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18657fi
ac1cb8d3 18658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18659 done
18660else
18661 echo "$as_me: failed program was:" >&5
18662sed 's/^/| /' conftest.$ac_ext >&5
18663
18664ac_lo= ac_hi=
18665fi
ac1cb8d3 18666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18667fi
ac1cb8d3 18668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18669# Binary search between lo and hi bounds.
18670while test "x$ac_lo" != "x$ac_hi"; do
18671 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18672 cat >conftest.$ac_ext <<_ACEOF
18673/* confdefs.h. */
18674_ACEOF
18675cat confdefs.h >>conftest.$ac_ext
18676cat >>conftest.$ac_ext <<_ACEOF
18677/* end confdefs.h. */
18678$ac_includes_default
18679int
18680main ()
18681{
18682static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18683test_array [0] = 0
18684
18685 ;
18686 return 0;
18687}
18688_ACEOF
18689rm -f conftest.$ac_objext
18690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18691 (eval $ac_compile) 2>conftest.er1
a848cd7e 18692 ac_status=$?
ac1cb8d3
VS
18693 grep -v '^ *+' conftest.er1 >conftest.err
18694 rm -f conftest.er1
18695 cat conftest.err >&5
a848cd7e
SC
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); } &&
3f60522a
JS
18698 { ac_try='test -z "$ac_cxx_werror_flag"
18699 || test ! -s conftest.err'
ac1cb8d3
VS
18700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18701 (eval $ac_try) 2>&5
18702 ac_status=$?
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); }; } &&
18705 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18707 (eval $ac_try) 2>&5
18708 ac_status=$?
18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); }; }; then
18711 ac_hi=$ac_mid
18712else
18713 echo "$as_me: failed program was:" >&5
18714sed 's/^/| /' conftest.$ac_ext >&5
18715
18716ac_lo=`expr '(' $ac_mid ')' + 1`
18717fi
ac1cb8d3 18718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18719done
18720case $ac_lo in
18721?*) ac_cv_sizeof_void_p=$ac_lo;;
18722'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18723See \`config.log' for more details." >&5
18724echo "$as_me: error: cannot compute sizeof (void *), 77
18725See \`config.log' for more details." >&2;}
18726 { (exit 1); exit 1; }; } ;;
18727esac
18728else
18729 if test "$cross_compiling" = yes; then
3f60522a
JS
18730 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18731See \`config.log' for more details." >&5
18732echo "$as_me: error: cannot run test program while cross compiling
18733See \`config.log' for more details." >&2;}
a848cd7e
SC
18734 { (exit 1); exit 1; }; }
18735else
18736 cat >conftest.$ac_ext <<_ACEOF
18737/* confdefs.h. */
18738_ACEOF
18739cat confdefs.h >>conftest.$ac_ext
18740cat >>conftest.$ac_ext <<_ACEOF
18741/* end confdefs.h. */
18742$ac_includes_default
18743long longval () { return (long) (sizeof (void *)); }
18744unsigned long ulongval () { return (long) (sizeof (void *)); }
18745#include <stdio.h>
18746#include <stdlib.h>
18747int
18748main ()
18749{
18750
18751 FILE *f = fopen ("conftest.val", "w");
18752 if (! f)
18753 exit (1);
18754 if (((long) (sizeof (void *))) < 0)
18755 {
18756 long i = longval ();
18757 if (i != ((long) (sizeof (void *))))
18758 exit (1);
18759 fprintf (f, "%ld\n", i);
18760 }
18761 else
18762 {
18763 unsigned long i = ulongval ();
18764 if (i != ((long) (sizeof (void *))))
18765 exit (1);
18766 fprintf (f, "%lu\n", i);
18767 }
18768 exit (ferror (f) || fclose (f) != 0);
18769
18770 ;
18771 return 0;
18772}
18773_ACEOF
18774rm -f conftest$ac_exeext
18775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18776 (eval $ac_link) 2>&5
18777 ac_status=$?
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18781 (eval $ac_try) 2>&5
18782 ac_status=$?
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); }; }; then
18785 ac_cv_sizeof_void_p=`cat conftest.val`
18786else
18787 echo "$as_me: program exited with status $ac_status" >&5
18788echo "$as_me: failed program was:" >&5
18789sed 's/^/| /' conftest.$ac_ext >&5
18790
18791( exit $ac_status )
18792{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18793See \`config.log' for more details." >&5
18794echo "$as_me: error: cannot compute sizeof (void *), 77
18795See \`config.log' for more details." >&2;}
18796 { (exit 1); exit 1; }; }
18797fi
ac1cb8d3 18798rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18799fi
18800fi
18801rm -f conftest.val
18802else
18803 ac_cv_sizeof_void_p=0
18804fi
18805fi
18806echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18807echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
18808cat >>confdefs.h <<_ACEOF
18809#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18810_ACEOF
18811
18812
18813echo "$as_me:$LINENO: checking for int" >&5
18814echo $ECHO_N "checking for int... $ECHO_C" >&6
18815if test "${ac_cv_type_int+set}" = set; then
18816 echo $ECHO_N "(cached) $ECHO_C" >&6
18817else
18818 cat >conftest.$ac_ext <<_ACEOF
18819/* confdefs.h. */
18820_ACEOF
18821cat confdefs.h >>conftest.$ac_ext
18822cat >>conftest.$ac_ext <<_ACEOF
18823/* end confdefs.h. */
18824$ac_includes_default
18825int
18826main ()
18827{
18828if ((int *) 0)
18829 return 0;
18830if (sizeof (int))
18831 return 0;
18832 ;
18833 return 0;
18834}
18835_ACEOF
18836rm -f conftest.$ac_objext
18837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18838 (eval $ac_compile) 2>conftest.er1
a848cd7e 18839 ac_status=$?
ac1cb8d3
VS
18840 grep -v '^ *+' conftest.er1 >conftest.err
18841 rm -f conftest.er1
18842 cat conftest.err >&5
a848cd7e
SC
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); } &&
3f60522a
JS
18845 { ac_try='test -z "$ac_cxx_werror_flag"
18846 || test ! -s conftest.err'
ac1cb8d3
VS
18847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18848 (eval $ac_try) 2>&5
18849 ac_status=$?
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); }; } &&
18852 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18854 (eval $ac_try) 2>&5
18855 ac_status=$?
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); }; }; then
18858 ac_cv_type_int=yes
18859else
18860 echo "$as_me: failed program was:" >&5
18861sed 's/^/| /' conftest.$ac_ext >&5
18862
18863ac_cv_type_int=no
18864fi
ac1cb8d3 18865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18866fi
18867echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18868echo "${ECHO_T}$ac_cv_type_int" >&6
18869
18870echo "$as_me:$LINENO: checking size of int" >&5
18871echo $ECHO_N "checking size of int... $ECHO_C" >&6
18872if test "${ac_cv_sizeof_int+set}" = set; then
18873 echo $ECHO_N "(cached) $ECHO_C" >&6
18874else
18875 if test "$ac_cv_type_int" = yes; then
18876 # The cast to unsigned long works around a bug in the HP C Compiler
18877 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18878 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18879 # This bug is HP SR number 8606223364.
18880 if test "$cross_compiling" = yes; then
18881 # Depending upon the size, compute the lo and hi bounds.
18882cat >conftest.$ac_ext <<_ACEOF
18883/* confdefs.h. */
18884_ACEOF
18885cat confdefs.h >>conftest.$ac_ext
18886cat >>conftest.$ac_ext <<_ACEOF
18887/* end confdefs.h. */
18888$ac_includes_default
18889int
18890main ()
18891{
18892static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18893test_array [0] = 0
18894
18895 ;
18896 return 0;
18897}
18898_ACEOF
18899rm -f conftest.$ac_objext
18900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18901 (eval $ac_compile) 2>conftest.er1
a848cd7e 18902 ac_status=$?
ac1cb8d3
VS
18903 grep -v '^ *+' conftest.er1 >conftest.err
18904 rm -f conftest.er1
18905 cat conftest.err >&5
a848cd7e
SC
18906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907 (exit $ac_status); } &&
3f60522a
JS
18908 { ac_try='test -z "$ac_cxx_werror_flag"
18909 || test ! -s conftest.err'
ac1cb8d3
VS
18910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18911 (eval $ac_try) 2>&5
18912 ac_status=$?
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); }; } &&
18915 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18917 (eval $ac_try) 2>&5
18918 ac_status=$?
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); }; }; then
18921 ac_lo=0 ac_mid=0
18922 while :; do
18923 cat >conftest.$ac_ext <<_ACEOF
18924/* confdefs.h. */
18925_ACEOF
18926cat confdefs.h >>conftest.$ac_ext
18927cat >>conftest.$ac_ext <<_ACEOF
18928/* end confdefs.h. */
18929$ac_includes_default
18930int
18931main ()
18932{
18933static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18934test_array [0] = 0
18935
18936 ;
18937 return 0;
18938}
18939_ACEOF
18940rm -f conftest.$ac_objext
18941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18942 (eval $ac_compile) 2>conftest.er1
a848cd7e 18943 ac_status=$?
ac1cb8d3
VS
18944 grep -v '^ *+' conftest.er1 >conftest.err
18945 rm -f conftest.er1
18946 cat conftest.err >&5
a848cd7e
SC
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); } &&
3f60522a
JS
18949 { ac_try='test -z "$ac_cxx_werror_flag"
18950 || test ! -s conftest.err'
ac1cb8d3
VS
18951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18952 (eval $ac_try) 2>&5
18953 ac_status=$?
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); }; } &&
18956 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18958 (eval $ac_try) 2>&5
18959 ac_status=$?
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; }; then
18962 ac_hi=$ac_mid; break
18963else
18964 echo "$as_me: failed program was:" >&5
18965sed 's/^/| /' conftest.$ac_ext >&5
18966
18967ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18968 if test $ac_lo -le $ac_mid; then
18969 ac_lo= ac_hi=
18970 break
18971 fi
18972 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18973fi
ac1cb8d3 18974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18975 done
18976else
18977 echo "$as_me: failed program was:" >&5
18978sed 's/^/| /' conftest.$ac_ext >&5
18979
18980cat >conftest.$ac_ext <<_ACEOF
18981/* confdefs.h. */
18982_ACEOF
18983cat confdefs.h >>conftest.$ac_ext
18984cat >>conftest.$ac_ext <<_ACEOF
18985/* end confdefs.h. */
18986$ac_includes_default
18987int
18988main ()
18989{
18990static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18991test_array [0] = 0
18992
18993 ;
18994 return 0;
18995}
18996_ACEOF
18997rm -f conftest.$ac_objext
18998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18999 (eval $ac_compile) 2>conftest.er1
a848cd7e 19000 ac_status=$?
ac1cb8d3
VS
19001 grep -v '^ *+' conftest.er1 >conftest.err
19002 rm -f conftest.er1
19003 cat conftest.err >&5
a848cd7e
SC
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); } &&
3f60522a
JS
19006 { ac_try='test -z "$ac_cxx_werror_flag"
19007 || test ! -s conftest.err'
ac1cb8d3
VS
19008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19009 (eval $ac_try) 2>&5
19010 ac_status=$?
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); }; } &&
19013 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19015 (eval $ac_try) 2>&5
19016 ac_status=$?
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); }; }; then
19019 ac_hi=-1 ac_mid=-1
19020 while :; do
19021 cat >conftest.$ac_ext <<_ACEOF
19022/* confdefs.h. */
19023_ACEOF
19024cat confdefs.h >>conftest.$ac_ext
19025cat >>conftest.$ac_ext <<_ACEOF
19026/* end confdefs.h. */
19027$ac_includes_default
19028int
19029main ()
19030{
19031static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19032test_array [0] = 0
19033
19034 ;
19035 return 0;
19036}
19037_ACEOF
19038rm -f conftest.$ac_objext
19039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19040 (eval $ac_compile) 2>conftest.er1
a848cd7e 19041 ac_status=$?
ac1cb8d3
VS
19042 grep -v '^ *+' conftest.er1 >conftest.err
19043 rm -f conftest.er1
19044 cat conftest.err >&5
a848cd7e
SC
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); } &&
3f60522a
JS
19047 { ac_try='test -z "$ac_cxx_werror_flag"
19048 || test ! -s conftest.err'
ac1cb8d3
VS
19049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19050 (eval $ac_try) 2>&5
19051 ac_status=$?
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); }; } &&
19054 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19056 (eval $ac_try) 2>&5
19057 ac_status=$?
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); }; }; then
19060 ac_lo=$ac_mid; break
19061else
19062 echo "$as_me: failed program was:" >&5
19063sed 's/^/| /' conftest.$ac_ext >&5
19064
19065ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19066 if test $ac_mid -le $ac_hi; then
19067 ac_lo= ac_hi=
19068 break
19069 fi
19070 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19071fi
ac1cb8d3 19072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19073 done
19074else
19075 echo "$as_me: failed program was:" >&5
19076sed 's/^/| /' conftest.$ac_ext >&5
19077
19078ac_lo= ac_hi=
19079fi
ac1cb8d3 19080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19081fi
ac1cb8d3 19082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19083# Binary search between lo and hi bounds.
19084while test "x$ac_lo" != "x$ac_hi"; do
19085 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19086 cat >conftest.$ac_ext <<_ACEOF
19087/* confdefs.h. */
19088_ACEOF
19089cat confdefs.h >>conftest.$ac_ext
19090cat >>conftest.$ac_ext <<_ACEOF
19091/* end confdefs.h. */
19092$ac_includes_default
19093int
19094main ()
19095{
19096static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19097test_array [0] = 0
19098
19099 ;
19100 return 0;
19101}
19102_ACEOF
19103rm -f conftest.$ac_objext
19104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19105 (eval $ac_compile) 2>conftest.er1
a848cd7e 19106 ac_status=$?
ac1cb8d3
VS
19107 grep -v '^ *+' conftest.er1 >conftest.err
19108 rm -f conftest.er1
19109 cat conftest.err >&5
a848cd7e
SC
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); } &&
3f60522a
JS
19112 { ac_try='test -z "$ac_cxx_werror_flag"
19113 || test ! -s conftest.err'
ac1cb8d3
VS
19114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19115 (eval $ac_try) 2>&5
19116 ac_status=$?
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; } &&
19119 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19121 (eval $ac_try) 2>&5
19122 ac_status=$?
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; }; then
19125 ac_hi=$ac_mid
19126else
19127 echo "$as_me: failed program was:" >&5
19128sed 's/^/| /' conftest.$ac_ext >&5
19129
19130ac_lo=`expr '(' $ac_mid ')' + 1`
19131fi
ac1cb8d3 19132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19133done
19134case $ac_lo in
19135?*) ac_cv_sizeof_int=$ac_lo;;
19136'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19137See \`config.log' for more details." >&5
19138echo "$as_me: error: cannot compute sizeof (int), 77
19139See \`config.log' for more details." >&2;}
19140 { (exit 1); exit 1; }; } ;;
19141esac
19142else
19143 if test "$cross_compiling" = yes; then
3f60522a
JS
19144 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19145See \`config.log' for more details." >&5
19146echo "$as_me: error: cannot run test program while cross compiling
19147See \`config.log' for more details." >&2;}
a848cd7e
SC
19148 { (exit 1); exit 1; }; }
19149else
19150 cat >conftest.$ac_ext <<_ACEOF
19151/* confdefs.h. */
19152_ACEOF
19153cat confdefs.h >>conftest.$ac_ext
19154cat >>conftest.$ac_ext <<_ACEOF
19155/* end confdefs.h. */
19156$ac_includes_default
19157long longval () { return (long) (sizeof (int)); }
19158unsigned long ulongval () { return (long) (sizeof (int)); }
19159#include <stdio.h>
19160#include <stdlib.h>
19161int
19162main ()
19163{
19164
19165 FILE *f = fopen ("conftest.val", "w");
19166 if (! f)
19167 exit (1);
19168 if (((long) (sizeof (int))) < 0)
19169 {
19170 long i = longval ();
19171 if (i != ((long) (sizeof (int))))
19172 exit (1);
19173 fprintf (f, "%ld\n", i);
19174 }
19175 else
19176 {
19177 unsigned long i = ulongval ();
19178 if (i != ((long) (sizeof (int))))
19179 exit (1);
19180 fprintf (f, "%lu\n", i);
19181 }
19182 exit (ferror (f) || fclose (f) != 0);
19183
19184 ;
19185 return 0;
19186}
19187_ACEOF
19188rm -f conftest$ac_exeext
19189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19190 (eval $ac_link) 2>&5
19191 ac_status=$?
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195 (eval $ac_try) 2>&5
19196 ac_status=$?
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; }; then
19199 ac_cv_sizeof_int=`cat conftest.val`
19200else
19201 echo "$as_me: program exited with status $ac_status" >&5
19202echo "$as_me: failed program was:" >&5
19203sed 's/^/| /' conftest.$ac_ext >&5
19204
19205( exit $ac_status )
19206{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19207See \`config.log' for more details." >&5
19208echo "$as_me: error: cannot compute sizeof (int), 77
19209See \`config.log' for more details." >&2;}
19210 { (exit 1); exit 1; }; }
19211fi
ac1cb8d3 19212rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19213fi
19214fi
19215rm -f conftest.val
19216else
19217 ac_cv_sizeof_int=0
19218fi
19219fi
19220echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19221echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19222cat >>confdefs.h <<_ACEOF
19223#define SIZEOF_INT $ac_cv_sizeof_int
19224_ACEOF
19225
19226
19227echo "$as_me:$LINENO: checking for long" >&5
19228echo $ECHO_N "checking for long... $ECHO_C" >&6
19229if test "${ac_cv_type_long+set}" = set; then
19230 echo $ECHO_N "(cached) $ECHO_C" >&6
19231else
19232 cat >conftest.$ac_ext <<_ACEOF
19233/* confdefs.h. */
19234_ACEOF
19235cat confdefs.h >>conftest.$ac_ext
19236cat >>conftest.$ac_ext <<_ACEOF
19237/* end confdefs.h. */
19238$ac_includes_default
19239int
19240main ()
19241{
19242if ((long *) 0)
19243 return 0;
19244if (sizeof (long))
19245 return 0;
19246 ;
19247 return 0;
19248}
19249_ACEOF
19250rm -f conftest.$ac_objext
19251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19252 (eval $ac_compile) 2>conftest.er1
a848cd7e 19253 ac_status=$?
ac1cb8d3
VS
19254 grep -v '^ *+' conftest.er1 >conftest.err
19255 rm -f conftest.er1
19256 cat conftest.err >&5
a848cd7e
SC
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); } &&
3f60522a
JS
19259 { ac_try='test -z "$ac_cxx_werror_flag"
19260 || test ! -s conftest.err'
ac1cb8d3
VS
19261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19262 (eval $ac_try) 2>&5
19263 ac_status=$?
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); }; } &&
19266 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19268 (eval $ac_try) 2>&5
19269 ac_status=$?
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); }; }; then
19272 ac_cv_type_long=yes
19273else
19274 echo "$as_me: failed program was:" >&5
19275sed 's/^/| /' conftest.$ac_ext >&5
19276
19277ac_cv_type_long=no
19278fi
ac1cb8d3 19279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19280fi
19281echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19282echo "${ECHO_T}$ac_cv_type_long" >&6
19283
19284echo "$as_me:$LINENO: checking size of long" >&5
19285echo $ECHO_N "checking size of long... $ECHO_C" >&6
19286if test "${ac_cv_sizeof_long+set}" = set; then
19287 echo $ECHO_N "(cached) $ECHO_C" >&6
19288else
19289 if test "$ac_cv_type_long" = yes; then
19290 # The cast to unsigned long works around a bug in the HP C Compiler
19291 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19292 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19293 # This bug is HP SR number 8606223364.
19294 if test "$cross_compiling" = yes; then
19295 # Depending upon the size, compute the lo and hi bounds.
19296cat >conftest.$ac_ext <<_ACEOF
19297/* confdefs.h. */
19298_ACEOF
19299cat confdefs.h >>conftest.$ac_ext
19300cat >>conftest.$ac_ext <<_ACEOF
19301/* end confdefs.h. */
19302$ac_includes_default
19303int
19304main ()
19305{
19306static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19307test_array [0] = 0
19308
19309 ;
19310 return 0;
19311}
19312_ACEOF
19313rm -f conftest.$ac_objext
19314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19315 (eval $ac_compile) 2>conftest.er1
a848cd7e 19316 ac_status=$?
ac1cb8d3
VS
19317 grep -v '^ *+' conftest.er1 >conftest.err
19318 rm -f conftest.er1
19319 cat conftest.err >&5
a848cd7e
SC
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); } &&
3f60522a
JS
19322 { ac_try='test -z "$ac_cxx_werror_flag"
19323 || test ! -s conftest.err'
ac1cb8d3
VS
19324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19325 (eval $ac_try) 2>&5
19326 ac_status=$?
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); }; } &&
19329 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19331 (eval $ac_try) 2>&5
19332 ac_status=$?
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); }; }; then
19335 ac_lo=0 ac_mid=0
19336 while :; do
19337 cat >conftest.$ac_ext <<_ACEOF
19338/* confdefs.h. */
19339_ACEOF
19340cat confdefs.h >>conftest.$ac_ext
19341cat >>conftest.$ac_ext <<_ACEOF
19342/* end confdefs.h. */
19343$ac_includes_default
19344int
19345main ()
19346{
19347static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19348test_array [0] = 0
19349
19350 ;
19351 return 0;
19352}
19353_ACEOF
19354rm -f conftest.$ac_objext
19355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19356 (eval $ac_compile) 2>conftest.er1
a848cd7e 19357 ac_status=$?
ac1cb8d3
VS
19358 grep -v '^ *+' conftest.er1 >conftest.err
19359 rm -f conftest.er1
19360 cat conftest.err >&5
a848cd7e
SC
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); } &&
3f60522a
JS
19363 { ac_try='test -z "$ac_cxx_werror_flag"
19364 || test ! -s conftest.err'
ac1cb8d3
VS
19365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19366 (eval $ac_try) 2>&5
19367 ac_status=$?
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); }; } &&
19370 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19372 (eval $ac_try) 2>&5
19373 ac_status=$?
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); }; }; then
19376 ac_hi=$ac_mid; break
19377else
19378 echo "$as_me: failed program was:" >&5
19379sed 's/^/| /' conftest.$ac_ext >&5
19380
19381ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19382 if test $ac_lo -le $ac_mid; then
19383 ac_lo= ac_hi=
19384 break
19385 fi
19386 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19387fi
ac1cb8d3 19388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19389 done
19390else
19391 echo "$as_me: failed program was:" >&5
19392sed 's/^/| /' conftest.$ac_ext >&5
19393
19394cat >conftest.$ac_ext <<_ACEOF
19395/* confdefs.h. */
19396_ACEOF
19397cat confdefs.h >>conftest.$ac_ext
19398cat >>conftest.$ac_ext <<_ACEOF
19399/* end confdefs.h. */
19400$ac_includes_default
19401int
19402main ()
19403{
19404static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19405test_array [0] = 0
19406
19407 ;
19408 return 0;
19409}
19410_ACEOF
19411rm -f conftest.$ac_objext
19412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19413 (eval $ac_compile) 2>conftest.er1
a848cd7e 19414 ac_status=$?
ac1cb8d3
VS
19415 grep -v '^ *+' conftest.er1 >conftest.err
19416 rm -f conftest.er1
19417 cat conftest.err >&5
a848cd7e
SC
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); } &&
3f60522a
JS
19420 { ac_try='test -z "$ac_cxx_werror_flag"
19421 || test ! -s conftest.err'
ac1cb8d3
VS
19422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19423 (eval $ac_try) 2>&5
19424 ac_status=$?
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); }; } &&
19427 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19429 (eval $ac_try) 2>&5
19430 ac_status=$?
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); }; }; then
19433 ac_hi=-1 ac_mid=-1
19434 while :; do
19435 cat >conftest.$ac_ext <<_ACEOF
19436/* confdefs.h. */
19437_ACEOF
19438cat confdefs.h >>conftest.$ac_ext
19439cat >>conftest.$ac_ext <<_ACEOF
19440/* end confdefs.h. */
19441$ac_includes_default
19442int
19443main ()
19444{
19445static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19446test_array [0] = 0
19447
19448 ;
19449 return 0;
19450}
19451_ACEOF
19452rm -f conftest.$ac_objext
19453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19454 (eval $ac_compile) 2>conftest.er1
a848cd7e 19455 ac_status=$?
ac1cb8d3
VS
19456 grep -v '^ *+' conftest.er1 >conftest.err
19457 rm -f conftest.er1
19458 cat conftest.err >&5
a848cd7e
SC
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); } &&
3f60522a
JS
19461 { ac_try='test -z "$ac_cxx_werror_flag"
19462 || test ! -s conftest.err'
ac1cb8d3
VS
19463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19464 (eval $ac_try) 2>&5
19465 ac_status=$?
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }; } &&
19468 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19470 (eval $ac_try) 2>&5
19471 ac_status=$?
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); }; }; then
19474 ac_lo=$ac_mid; break
19475else
19476 echo "$as_me: failed program was:" >&5
19477sed 's/^/| /' conftest.$ac_ext >&5
19478
19479ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19480 if test $ac_mid -le $ac_hi; then
19481 ac_lo= ac_hi=
19482 break
19483 fi
19484 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19485fi
ac1cb8d3 19486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19487 done
19488else
19489 echo "$as_me: failed program was:" >&5
19490sed 's/^/| /' conftest.$ac_ext >&5
19491
19492ac_lo= ac_hi=
19493fi
ac1cb8d3 19494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19495fi
ac1cb8d3 19496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19497# Binary search between lo and hi bounds.
19498while test "x$ac_lo" != "x$ac_hi"; do
19499 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19500 cat >conftest.$ac_ext <<_ACEOF
19501/* confdefs.h. */
19502_ACEOF
19503cat confdefs.h >>conftest.$ac_ext
19504cat >>conftest.$ac_ext <<_ACEOF
19505/* end confdefs.h. */
19506$ac_includes_default
19507int
19508main ()
19509{
19510static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19511test_array [0] = 0
19512
19513 ;
19514 return 0;
19515}
19516_ACEOF
19517rm -f conftest.$ac_objext
19518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19519 (eval $ac_compile) 2>conftest.er1
a848cd7e 19520 ac_status=$?
ac1cb8d3
VS
19521 grep -v '^ *+' conftest.er1 >conftest.err
19522 rm -f conftest.er1
19523 cat conftest.err >&5
a848cd7e
SC
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); } &&
3f60522a
JS
19526 { ac_try='test -z "$ac_cxx_werror_flag"
19527 || test ! -s conftest.err'
ac1cb8d3
VS
19528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19529 (eval $ac_try) 2>&5
19530 ac_status=$?
19531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); }; } &&
19533 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19535 (eval $ac_try) 2>&5
19536 ac_status=$?
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); }; }; then
19539 ac_hi=$ac_mid
19540else
19541 echo "$as_me: failed program was:" >&5
19542sed 's/^/| /' conftest.$ac_ext >&5
19543
19544ac_lo=`expr '(' $ac_mid ')' + 1`
19545fi
ac1cb8d3 19546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19547done
19548case $ac_lo in
19549?*) ac_cv_sizeof_long=$ac_lo;;
19550'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19551See \`config.log' for more details." >&5
19552echo "$as_me: error: cannot compute sizeof (long), 77
19553See \`config.log' for more details." >&2;}
19554 { (exit 1); exit 1; }; } ;;
19555esac
19556else
19557 if test "$cross_compiling" = yes; then
3f60522a
JS
19558 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19559See \`config.log' for more details." >&5
19560echo "$as_me: error: cannot run test program while cross compiling
19561See \`config.log' for more details." >&2;}
a848cd7e
SC
19562 { (exit 1); exit 1; }; }
19563else
19564 cat >conftest.$ac_ext <<_ACEOF
19565/* confdefs.h. */
19566_ACEOF
19567cat confdefs.h >>conftest.$ac_ext
19568cat >>conftest.$ac_ext <<_ACEOF
19569/* end confdefs.h. */
19570$ac_includes_default
19571long longval () { return (long) (sizeof (long)); }
19572unsigned long ulongval () { return (long) (sizeof (long)); }
19573#include <stdio.h>
19574#include <stdlib.h>
19575int
19576main ()
19577{
19578
19579 FILE *f = fopen ("conftest.val", "w");
19580 if (! f)
19581 exit (1);
19582 if (((long) (sizeof (long))) < 0)
19583 {
19584 long i = longval ();
19585 if (i != ((long) (sizeof (long))))
19586 exit (1);
19587 fprintf (f, "%ld\n", i);
19588 }
19589 else
19590 {
19591 unsigned long i = ulongval ();
19592 if (i != ((long) (sizeof (long))))
19593 exit (1);
19594 fprintf (f, "%lu\n", i);
19595 }
19596 exit (ferror (f) || fclose (f) != 0);
19597
19598 ;
19599 return 0;
19600}
19601_ACEOF
19602rm -f conftest$ac_exeext
19603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19604 (eval $ac_link) 2>&5
19605 ac_status=$?
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19609 (eval $ac_try) 2>&5
19610 ac_status=$?
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); }; }; then
19613 ac_cv_sizeof_long=`cat conftest.val`
19614else
19615 echo "$as_me: program exited with status $ac_status" >&5
19616echo "$as_me: failed program was:" >&5
19617sed 's/^/| /' conftest.$ac_ext >&5
19618
19619( exit $ac_status )
19620{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19621See \`config.log' for more details." >&5
19622echo "$as_me: error: cannot compute sizeof (long), 77
19623See \`config.log' for more details." >&2;}
19624 { (exit 1); exit 1; }; }
19625fi
ac1cb8d3 19626rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19627fi
19628fi
19629rm -f conftest.val
19630else
19631 ac_cv_sizeof_long=0
19632fi
19633fi
19634echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19635echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19636cat >>confdefs.h <<_ACEOF
19637#define SIZEOF_LONG $ac_cv_sizeof_long
19638_ACEOF
19639
19640
19641echo "$as_me:$LINENO: checking for size_t" >&5
19642echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19643if test "${ac_cv_type_size_t+set}" = set; then
19644 echo $ECHO_N "(cached) $ECHO_C" >&6
19645else
19646 cat >conftest.$ac_ext <<_ACEOF
19647/* confdefs.h. */
19648_ACEOF
19649cat confdefs.h >>conftest.$ac_ext
19650cat >>conftest.$ac_ext <<_ACEOF
19651/* end confdefs.h. */
19652$ac_includes_default
19653int
19654main ()
19655{
19656if ((size_t *) 0)
19657 return 0;
19658if (sizeof (size_t))
19659 return 0;
19660 ;
19661 return 0;
19662}
19663_ACEOF
19664rm -f conftest.$ac_objext
19665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19666 (eval $ac_compile) 2>conftest.er1
a848cd7e 19667 ac_status=$?
ac1cb8d3
VS
19668 grep -v '^ *+' conftest.er1 >conftest.err
19669 rm -f conftest.er1
19670 cat conftest.err >&5
a848cd7e
SC
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); } &&
3f60522a
JS
19673 { ac_try='test -z "$ac_cxx_werror_flag"
19674 || test ! -s conftest.err'
ac1cb8d3
VS
19675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19676 (eval $ac_try) 2>&5
19677 ac_status=$?
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); }; } &&
19680 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19682 (eval $ac_try) 2>&5
19683 ac_status=$?
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); }; }; then
19686 ac_cv_type_size_t=yes
19687else
19688 echo "$as_me: failed program was:" >&5
19689sed 's/^/| /' conftest.$ac_ext >&5
19690
19691ac_cv_type_size_t=no
19692fi
ac1cb8d3 19693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19694fi
19695echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19696echo "${ECHO_T}$ac_cv_type_size_t" >&6
19697
19698echo "$as_me:$LINENO: checking size of size_t" >&5
19699echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19700if test "${ac_cv_sizeof_size_t+set}" = set; then
19701 echo $ECHO_N "(cached) $ECHO_C" >&6
19702else
19703 if test "$ac_cv_type_size_t" = yes; then
19704 # The cast to unsigned long works around a bug in the HP C Compiler
19705 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19706 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19707 # This bug is HP SR number 8606223364.
19708 if test "$cross_compiling" = yes; then
19709 # Depending upon the size, compute the lo and hi bounds.
19710cat >conftest.$ac_ext <<_ACEOF
19711/* confdefs.h. */
19712_ACEOF
19713cat confdefs.h >>conftest.$ac_ext
19714cat >>conftest.$ac_ext <<_ACEOF
19715/* end confdefs.h. */
19716$ac_includes_default
19717int
19718main ()
19719{
19720static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19721test_array [0] = 0
19722
19723 ;
19724 return 0;
19725}
19726_ACEOF
19727rm -f conftest.$ac_objext
19728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19729 (eval $ac_compile) 2>conftest.er1
a848cd7e 19730 ac_status=$?
ac1cb8d3
VS
19731 grep -v '^ *+' conftest.er1 >conftest.err
19732 rm -f conftest.er1
19733 cat conftest.err >&5
a848cd7e
SC
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); } &&
3f60522a
JS
19736 { ac_try='test -z "$ac_cxx_werror_flag"
19737 || test ! -s conftest.err'
ac1cb8d3
VS
19738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19739 (eval $ac_try) 2>&5
19740 ac_status=$?
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); }; } &&
19743 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19745 (eval $ac_try) 2>&5
19746 ac_status=$?
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); }; }; then
19749 ac_lo=0 ac_mid=0
19750 while :; do
19751 cat >conftest.$ac_ext <<_ACEOF
19752/* confdefs.h. */
19753_ACEOF
19754cat confdefs.h >>conftest.$ac_ext
19755cat >>conftest.$ac_ext <<_ACEOF
19756/* end confdefs.h. */
19757$ac_includes_default
19758int
19759main ()
19760{
19761static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19762test_array [0] = 0
19763
19764 ;
19765 return 0;
19766}
19767_ACEOF
19768rm -f conftest.$ac_objext
19769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19770 (eval $ac_compile) 2>conftest.er1
a848cd7e 19771 ac_status=$?
ac1cb8d3
VS
19772 grep -v '^ *+' conftest.er1 >conftest.err
19773 rm -f conftest.er1
19774 cat conftest.err >&5
a848cd7e
SC
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); } &&
3f60522a
JS
19777 { ac_try='test -z "$ac_cxx_werror_flag"
19778 || test ! -s conftest.err'
ac1cb8d3
VS
19779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780 (eval $ac_try) 2>&5
19781 ac_status=$?
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; } &&
19784 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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_hi=$ac_mid; break
19791else
19792 echo "$as_me: failed program was:" >&5
19793sed 's/^/| /' conftest.$ac_ext >&5
19794
19795ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19796 if test $ac_lo -le $ac_mid; then
19797 ac_lo= ac_hi=
19798 break
19799 fi
19800 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19801fi
ac1cb8d3 19802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19803 done
19804else
19805 echo "$as_me: failed program was:" >&5
19806sed 's/^/| /' conftest.$ac_ext >&5
19807
19808cat >conftest.$ac_ext <<_ACEOF
19809/* confdefs.h. */
19810_ACEOF
19811cat confdefs.h >>conftest.$ac_ext
19812cat >>conftest.$ac_ext <<_ACEOF
19813/* end confdefs.h. */
19814$ac_includes_default
19815int
19816main ()
19817{
19818static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19819test_array [0] = 0
19820
19821 ;
19822 return 0;
19823}
19824_ACEOF
19825rm -f conftest.$ac_objext
19826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19827 (eval $ac_compile) 2>conftest.er1
a848cd7e 19828 ac_status=$?
ac1cb8d3
VS
19829 grep -v '^ *+' conftest.er1 >conftest.err
19830 rm -f conftest.er1
19831 cat conftest.err >&5
a848cd7e
SC
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); } &&
3f60522a
JS
19834 { ac_try='test -z "$ac_cxx_werror_flag"
19835 || test ! -s conftest.err'
ac1cb8d3
VS
19836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19837 (eval $ac_try) 2>&5
19838 ac_status=$?
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); }; } &&
19841 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19843 (eval $ac_try) 2>&5
19844 ac_status=$?
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); }; }; then
19847 ac_hi=-1 ac_mid=-1
19848 while :; do
19849 cat >conftest.$ac_ext <<_ACEOF
19850/* confdefs.h. */
19851_ACEOF
19852cat confdefs.h >>conftest.$ac_ext
19853cat >>conftest.$ac_ext <<_ACEOF
19854/* end confdefs.h. */
19855$ac_includes_default
19856int
19857main ()
19858{
19859static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
19860test_array [0] = 0
19861
19862 ;
19863 return 0;
19864}
19865_ACEOF
19866rm -f conftest.$ac_objext
19867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19868 (eval $ac_compile) 2>conftest.er1
a848cd7e 19869 ac_status=$?
ac1cb8d3
VS
19870 grep -v '^ *+' conftest.er1 >conftest.err
19871 rm -f conftest.er1
19872 cat conftest.err >&5
a848cd7e
SC
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); } &&
3f60522a
JS
19875 { ac_try='test -z "$ac_cxx_werror_flag"
19876 || test ! -s conftest.err'
ac1cb8d3
VS
19877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878 (eval $ac_try) 2>&5
19879 ac_status=$?
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; } &&
19882 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884 (eval $ac_try) 2>&5
19885 ac_status=$?
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; }; then
19888 ac_lo=$ac_mid; break
19889else
19890 echo "$as_me: failed program was:" >&5
19891sed 's/^/| /' conftest.$ac_ext >&5
19892
19893ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19894 if test $ac_mid -le $ac_hi; then
19895 ac_lo= ac_hi=
19896 break
19897 fi
19898 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19899fi
ac1cb8d3 19900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19901 done
19902else
19903 echo "$as_me: failed program was:" >&5
19904sed 's/^/| /' conftest.$ac_ext >&5
19905
19906ac_lo= ac_hi=
19907fi
ac1cb8d3 19908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19909fi
ac1cb8d3 19910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19911# Binary search between lo and hi bounds.
19912while test "x$ac_lo" != "x$ac_hi"; do
19913 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19914 cat >conftest.$ac_ext <<_ACEOF
19915/* confdefs.h. */
19916_ACEOF
19917cat confdefs.h >>conftest.$ac_ext
19918cat >>conftest.$ac_ext <<_ACEOF
19919/* end confdefs.h. */
19920$ac_includes_default
19921int
19922main ()
19923{
19924static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19925test_array [0] = 0
19926
19927 ;
19928 return 0;
19929}
19930_ACEOF
19931rm -f conftest.$ac_objext
19932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19933 (eval $ac_compile) 2>conftest.er1
a848cd7e 19934 ac_status=$?
ac1cb8d3
VS
19935 grep -v '^ *+' conftest.er1 >conftest.err
19936 rm -f conftest.er1
19937 cat conftest.err >&5
a848cd7e
SC
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); } &&
3f60522a
JS
19940 { ac_try='test -z "$ac_cxx_werror_flag"
19941 || test ! -s conftest.err'
ac1cb8d3
VS
19942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19943 (eval $ac_try) 2>&5
19944 ac_status=$?
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); }; } &&
19947 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19949 (eval $ac_try) 2>&5
19950 ac_status=$?
19951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952 (exit $ac_status); }; }; then
19953 ac_hi=$ac_mid
19954else
19955 echo "$as_me: failed program was:" >&5
19956sed 's/^/| /' conftest.$ac_ext >&5
19957
19958ac_lo=`expr '(' $ac_mid ')' + 1`
19959fi
ac1cb8d3 19960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19961done
19962case $ac_lo in
19963?*) ac_cv_sizeof_size_t=$ac_lo;;
19964'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19965See \`config.log' for more details." >&5
19966echo "$as_me: error: cannot compute sizeof (size_t), 77
19967See \`config.log' for more details." >&2;}
19968 { (exit 1); exit 1; }; } ;;
19969esac
19970else
19971 if test "$cross_compiling" = yes; then
3f60522a
JS
19972 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19973See \`config.log' for more details." >&5
19974echo "$as_me: error: cannot run test program while cross compiling
19975See \`config.log' for more details." >&2;}
a848cd7e
SC
19976 { (exit 1); exit 1; }; }
19977else
19978 cat >conftest.$ac_ext <<_ACEOF
19979/* confdefs.h. */
19980_ACEOF
19981cat confdefs.h >>conftest.$ac_ext
19982cat >>conftest.$ac_ext <<_ACEOF
19983/* end confdefs.h. */
19984$ac_includes_default
19985long longval () { return (long) (sizeof (size_t)); }
19986unsigned long ulongval () { return (long) (sizeof (size_t)); }
19987#include <stdio.h>
19988#include <stdlib.h>
19989int
19990main ()
19991{
19992
19993 FILE *f = fopen ("conftest.val", "w");
19994 if (! f)
19995 exit (1);
19996 if (((long) (sizeof (size_t))) < 0)
19997 {
19998 long i = longval ();
19999 if (i != ((long) (sizeof (size_t))))
20000 exit (1);
20001 fprintf (f, "%ld\n", i);
20002 }
20003 else
20004 {
20005 unsigned long i = ulongval ();
20006 if (i != ((long) (sizeof (size_t))))
20007 exit (1);
20008 fprintf (f, "%lu\n", i);
20009 }
20010 exit (ferror (f) || fclose (f) != 0);
20011
20012 ;
20013 return 0;
20014}
20015_ACEOF
20016rm -f conftest$ac_exeext
20017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20018 (eval $ac_link) 2>&5
20019 ac_status=$?
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20023 (eval $ac_try) 2>&5
20024 ac_status=$?
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); }; }; then
20027 ac_cv_sizeof_size_t=`cat conftest.val`
20028else
20029 echo "$as_me: program exited with status $ac_status" >&5
20030echo "$as_me: failed program was:" >&5
20031sed 's/^/| /' conftest.$ac_ext >&5
20032
20033( exit $ac_status )
20034{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20035See \`config.log' for more details." >&5
20036echo "$as_me: error: cannot compute sizeof (size_t), 77
20037See \`config.log' for more details." >&2;}
20038 { (exit 1); exit 1; }; }
20039fi
ac1cb8d3 20040rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20041fi
20042fi
20043rm -f conftest.val
20044else
20045 ac_cv_sizeof_size_t=0
20046fi
20047fi
20048echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20049echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20050cat >>confdefs.h <<_ACEOF
20051#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20052_ACEOF
20053
20054
20055
20056case "${host}" in
20057 arm-*-linux* )
20058 echo "$as_me:$LINENO: checking for long long" >&5
20059echo $ECHO_N "checking for long long... $ECHO_C" >&6
20060if test "${ac_cv_type_long_long+set}" = set; then
20061 echo $ECHO_N "(cached) $ECHO_C" >&6
20062else
20063 cat >conftest.$ac_ext <<_ACEOF
20064/* confdefs.h. */
20065_ACEOF
20066cat confdefs.h >>conftest.$ac_ext
20067cat >>conftest.$ac_ext <<_ACEOF
20068/* end confdefs.h. */
20069$ac_includes_default
20070int
20071main ()
20072{
20073if ((long long *) 0)
20074 return 0;
20075if (sizeof (long long))
20076 return 0;
20077 ;
20078 return 0;
20079}
20080_ACEOF
20081rm -f conftest.$ac_objext
20082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20083 (eval $ac_compile) 2>conftest.er1
a848cd7e 20084 ac_status=$?
ac1cb8d3
VS
20085 grep -v '^ *+' conftest.er1 >conftest.err
20086 rm -f conftest.er1
20087 cat conftest.err >&5
a848cd7e
SC
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); } &&
3f60522a
JS
20090 { ac_try='test -z "$ac_cxx_werror_flag"
20091 || test ! -s conftest.err'
ac1cb8d3
VS
20092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20093 (eval $ac_try) 2>&5
20094 ac_status=$?
20095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096 (exit $ac_status); }; } &&
20097 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20099 (eval $ac_try) 2>&5
20100 ac_status=$?
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); }; }; then
20103 ac_cv_type_long_long=yes
20104else
20105 echo "$as_me: failed program was:" >&5
20106sed 's/^/| /' conftest.$ac_ext >&5
20107
20108ac_cv_type_long_long=no
20109fi
ac1cb8d3 20110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20111fi
20112echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20113echo "${ECHO_T}$ac_cv_type_long_long" >&6
20114
20115echo "$as_me:$LINENO: checking size of long long" >&5
20116echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20117if test "${ac_cv_sizeof_long_long+set}" = set; then
20118 echo $ECHO_N "(cached) $ECHO_C" >&6
20119else
20120 if test "$ac_cv_type_long_long" = yes; then
20121 # The cast to unsigned long works around a bug in the HP C Compiler
20122 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20123 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20124 # This bug is HP SR number 8606223364.
20125 if test "$cross_compiling" = yes; then
20126 # Depending upon the size, compute the lo and hi bounds.
20127cat >conftest.$ac_ext <<_ACEOF
20128/* confdefs.h. */
20129_ACEOF
20130cat confdefs.h >>conftest.$ac_ext
20131cat >>conftest.$ac_ext <<_ACEOF
20132/* end confdefs.h. */
20133$ac_includes_default
20134int
20135main ()
20136{
20137static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20138test_array [0] = 0
20139
20140 ;
20141 return 0;
20142}
20143_ACEOF
20144rm -f conftest.$ac_objext
20145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20146 (eval $ac_compile) 2>conftest.er1
a848cd7e 20147 ac_status=$?
ac1cb8d3
VS
20148 grep -v '^ *+' conftest.er1 >conftest.err
20149 rm -f conftest.er1
20150 cat conftest.err >&5
a848cd7e
SC
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); } &&
3f60522a
JS
20153 { ac_try='test -z "$ac_cxx_werror_flag"
20154 || test ! -s conftest.err'
ac1cb8d3
VS
20155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20156 (eval $ac_try) 2>&5
20157 ac_status=$?
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); }; } &&
20160 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20162 (eval $ac_try) 2>&5
20163 ac_status=$?
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); }; }; then
20166 ac_lo=0 ac_mid=0
20167 while :; do
20168 cat >conftest.$ac_ext <<_ACEOF
20169/* confdefs.h. */
20170_ACEOF
20171cat confdefs.h >>conftest.$ac_ext
20172cat >>conftest.$ac_ext <<_ACEOF
20173/* end confdefs.h. */
20174$ac_includes_default
20175int
20176main ()
20177{
20178static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20179test_array [0] = 0
20180
20181 ;
20182 return 0;
20183}
20184_ACEOF
20185rm -f conftest.$ac_objext
20186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20187 (eval $ac_compile) 2>conftest.er1
a848cd7e 20188 ac_status=$?
ac1cb8d3
VS
20189 grep -v '^ *+' conftest.er1 >conftest.err
20190 rm -f conftest.er1
20191 cat conftest.err >&5
a848cd7e
SC
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); } &&
3f60522a
JS
20194 { ac_try='test -z "$ac_cxx_werror_flag"
20195 || test ! -s conftest.err'
ac1cb8d3
VS
20196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20197 (eval $ac_try) 2>&5
20198 ac_status=$?
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); }; } &&
20201 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20203 (eval $ac_try) 2>&5
20204 ac_status=$?
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); }; }; then
20207 ac_hi=$ac_mid; break
20208else
20209 echo "$as_me: failed program was:" >&5
20210sed 's/^/| /' conftest.$ac_ext >&5
20211
20212ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20213 if test $ac_lo -le $ac_mid; then
20214 ac_lo= ac_hi=
20215 break
20216 fi
20217 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20218fi
ac1cb8d3 20219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20220 done
20221else
20222 echo "$as_me: failed program was:" >&5
20223sed 's/^/| /' conftest.$ac_ext >&5
20224
20225cat >conftest.$ac_ext <<_ACEOF
20226/* confdefs.h. */
20227_ACEOF
20228cat confdefs.h >>conftest.$ac_ext
20229cat >>conftest.$ac_ext <<_ACEOF
20230/* end confdefs.h. */
20231$ac_includes_default
20232int
20233main ()
20234{
20235static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20236test_array [0] = 0
20237
20238 ;
20239 return 0;
20240}
20241_ACEOF
20242rm -f conftest.$ac_objext
20243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20244 (eval $ac_compile) 2>conftest.er1
a848cd7e 20245 ac_status=$?
ac1cb8d3
VS
20246 grep -v '^ *+' conftest.er1 >conftest.err
20247 rm -f conftest.er1
20248 cat conftest.err >&5
a848cd7e
SC
20249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); } &&
3f60522a
JS
20251 { ac_try='test -z "$ac_cxx_werror_flag"
20252 || test ! -s conftest.err'
ac1cb8d3
VS
20253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20254 (eval $ac_try) 2>&5
20255 ac_status=$?
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); }; } &&
20258 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20260 (eval $ac_try) 2>&5
20261 ac_status=$?
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); }; }; then
20264 ac_hi=-1 ac_mid=-1
20265 while :; do
20266 cat >conftest.$ac_ext <<_ACEOF
20267/* confdefs.h. */
20268_ACEOF
20269cat confdefs.h >>conftest.$ac_ext
20270cat >>conftest.$ac_ext <<_ACEOF
20271/* end confdefs.h. */
20272$ac_includes_default
20273int
20274main ()
20275{
20276static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20277test_array [0] = 0
20278
20279 ;
20280 return 0;
20281}
20282_ACEOF
20283rm -f conftest.$ac_objext
20284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20285 (eval $ac_compile) 2>conftest.er1
a848cd7e 20286 ac_status=$?
ac1cb8d3
VS
20287 grep -v '^ *+' conftest.er1 >conftest.err
20288 rm -f conftest.er1
20289 cat conftest.err >&5
a848cd7e
SC
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); } &&
3f60522a
JS
20292 { ac_try='test -z "$ac_cxx_werror_flag"
20293 || test ! -s conftest.err'
ac1cb8d3
VS
20294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295 (eval $ac_try) 2>&5
20296 ac_status=$?
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); }; } &&
20299 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20301 (eval $ac_try) 2>&5
20302 ac_status=$?
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); }; }; then
20305 ac_lo=$ac_mid; break
20306else
20307 echo "$as_me: failed program was:" >&5
20308sed 's/^/| /' conftest.$ac_ext >&5
20309
20310ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20311 if test $ac_mid -le $ac_hi; then
20312 ac_lo= ac_hi=
20313 break
20314 fi
20315 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20316fi
ac1cb8d3 20317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20318 done
20319else
20320 echo "$as_me: failed program was:" >&5
20321sed 's/^/| /' conftest.$ac_ext >&5
20322
20323ac_lo= ac_hi=
20324fi
ac1cb8d3 20325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20326fi
ac1cb8d3 20327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20328# Binary search between lo and hi bounds.
20329while test "x$ac_lo" != "x$ac_hi"; do
20330 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20331 cat >conftest.$ac_ext <<_ACEOF
20332/* confdefs.h. */
20333_ACEOF
20334cat confdefs.h >>conftest.$ac_ext
20335cat >>conftest.$ac_ext <<_ACEOF
20336/* end confdefs.h. */
20337$ac_includes_default
20338int
20339main ()
20340{
20341static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20342test_array [0] = 0
20343
20344 ;
20345 return 0;
20346}
20347_ACEOF
20348rm -f conftest.$ac_objext
20349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20350 (eval $ac_compile) 2>conftest.er1
a848cd7e 20351 ac_status=$?
ac1cb8d3
VS
20352 grep -v '^ *+' conftest.er1 >conftest.err
20353 rm -f conftest.er1
20354 cat conftest.err >&5
a848cd7e
SC
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); } &&
3f60522a
JS
20357 { ac_try='test -z "$ac_cxx_werror_flag"
20358 || 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
20371else
20372 echo "$as_me: failed program was:" >&5
20373sed 's/^/| /' conftest.$ac_ext >&5
20374
20375ac_lo=`expr '(' $ac_mid ')' + 1`
20376fi
ac1cb8d3 20377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20378done
20379case $ac_lo in
20380?*) ac_cv_sizeof_long_long=$ac_lo;;
20381'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20382See \`config.log' for more details." >&5
20383echo "$as_me: error: cannot compute sizeof (long long), 77
20384See \`config.log' for more details." >&2;}
20385 { (exit 1); exit 1; }; } ;;
20386esac
20387else
20388 if test "$cross_compiling" = yes; then
3f60522a
JS
20389 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20390See \`config.log' for more details." >&5
20391echo "$as_me: error: cannot run test program while cross compiling
20392See \`config.log' for more details." >&2;}
a848cd7e
SC
20393 { (exit 1); exit 1; }; }
20394else
20395 cat >conftest.$ac_ext <<_ACEOF
20396/* confdefs.h. */
20397_ACEOF
20398cat confdefs.h >>conftest.$ac_ext
20399cat >>conftest.$ac_ext <<_ACEOF
20400/* end confdefs.h. */
20401$ac_includes_default
20402long longval () { return (long) (sizeof (long long)); }
20403unsigned long ulongval () { return (long) (sizeof (long long)); }
20404#include <stdio.h>
20405#include <stdlib.h>
20406int
20407main ()
20408{
20409
20410 FILE *f = fopen ("conftest.val", "w");
20411 if (! f)
20412 exit (1);
20413 if (((long) (sizeof (long long))) < 0)
20414 {
20415 long i = longval ();
20416 if (i != ((long) (sizeof (long long))))
20417 exit (1);
20418 fprintf (f, "%ld\n", i);
20419 }
20420 else
20421 {
20422 unsigned long i = ulongval ();
20423 if (i != ((long) (sizeof (long long))))
20424 exit (1);
20425 fprintf (f, "%lu\n", i);
20426 }
20427 exit (ferror (f) || fclose (f) != 0);
20428
20429 ;
20430 return 0;
20431}
20432_ACEOF
20433rm -f conftest$ac_exeext
20434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20435 (eval $ac_link) 2>&5
20436 ac_status=$?
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20440 (eval $ac_try) 2>&5
20441 ac_status=$?
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); }; }; then
20444 ac_cv_sizeof_long_long=`cat conftest.val`
20445else
20446 echo "$as_me: program exited with status $ac_status" >&5
20447echo "$as_me: failed program was:" >&5
20448sed 's/^/| /' conftest.$ac_ext >&5
20449
20450( exit $ac_status )
20451{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20452See \`config.log' for more details." >&5
20453echo "$as_me: error: cannot compute sizeof (long long), 77
20454See \`config.log' for more details." >&2;}
20455 { (exit 1); exit 1; }; }
20456fi
ac1cb8d3 20457rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20458fi
20459fi
20460rm -f conftest.val
20461else
20462 ac_cv_sizeof_long_long=0
20463fi
20464fi
20465echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20466echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20467cat >>confdefs.h <<_ACEOF
20468#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20469_ACEOF
20470
20471
20472 ;;
20473 *-hp-hpux* )
20474 echo "$as_me:$LINENO: checking for long long" >&5
20475echo $ECHO_N "checking for long long... $ECHO_C" >&6
20476if test "${ac_cv_type_long_long+set}" = set; then
20477 echo $ECHO_N "(cached) $ECHO_C" >&6
20478else
20479 cat >conftest.$ac_ext <<_ACEOF
20480/* confdefs.h. */
20481_ACEOF
20482cat confdefs.h >>conftest.$ac_ext
20483cat >>conftest.$ac_ext <<_ACEOF
20484/* end confdefs.h. */
20485$ac_includes_default
20486int
20487main ()
20488{
20489if ((long long *) 0)
20490 return 0;
20491if (sizeof (long long))
20492 return 0;
20493 ;
20494 return 0;
20495}
20496_ACEOF
20497rm -f conftest.$ac_objext
20498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20499 (eval $ac_compile) 2>conftest.er1
a848cd7e 20500 ac_status=$?
ac1cb8d3
VS
20501 grep -v '^ *+' conftest.er1 >conftest.err
20502 rm -f conftest.er1
20503 cat conftest.err >&5
a848cd7e
SC
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } &&
3f60522a
JS
20506 { ac_try='test -z "$ac_cxx_werror_flag"
20507 || test ! -s conftest.err'
ac1cb8d3
VS
20508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20509 (eval $ac_try) 2>&5
20510 ac_status=$?
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); }; } &&
20513 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515 (eval $ac_try) 2>&5
20516 ac_status=$?
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); }; }; then
20519 ac_cv_type_long_long=yes
20520else
20521 echo "$as_me: failed program was:" >&5
20522sed 's/^/| /' conftest.$ac_ext >&5
20523
20524ac_cv_type_long_long=no
20525fi
ac1cb8d3 20526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20527fi
20528echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20529echo "${ECHO_T}$ac_cv_type_long_long" >&6
20530
20531echo "$as_me:$LINENO: checking size of long long" >&5
20532echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20533if test "${ac_cv_sizeof_long_long+set}" = set; then
20534 echo $ECHO_N "(cached) $ECHO_C" >&6
20535else
20536 if test "$ac_cv_type_long_long" = yes; then
20537 # The cast to unsigned long works around a bug in the HP C Compiler
20538 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20539 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20540 # This bug is HP SR number 8606223364.
20541 if test "$cross_compiling" = yes; then
20542 # Depending upon the size, compute the lo and hi bounds.
20543cat >conftest.$ac_ext <<_ACEOF
20544/* confdefs.h. */
20545_ACEOF
20546cat confdefs.h >>conftest.$ac_ext
20547cat >>conftest.$ac_ext <<_ACEOF
20548/* end confdefs.h. */
20549$ac_includes_default
20550int
20551main ()
20552{
20553static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20554test_array [0] = 0
20555
20556 ;
20557 return 0;
20558}
20559_ACEOF
20560rm -f conftest.$ac_objext
20561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20562 (eval $ac_compile) 2>conftest.er1
a848cd7e 20563 ac_status=$?
ac1cb8d3
VS
20564 grep -v '^ *+' conftest.er1 >conftest.err
20565 rm -f conftest.er1
20566 cat conftest.err >&5
a848cd7e
SC
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); } &&
3f60522a
JS
20569 { ac_try='test -z "$ac_cxx_werror_flag"
20570 || test ! -s conftest.err'
ac1cb8d3
VS
20571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20572 (eval $ac_try) 2>&5
20573 ac_status=$?
20574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575 (exit $ac_status); }; } &&
20576 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20578 (eval $ac_try) 2>&5
20579 ac_status=$?
20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); }; }; then
20582 ac_lo=0 ac_mid=0
20583 while :; do
20584 cat >conftest.$ac_ext <<_ACEOF
20585/* confdefs.h. */
20586_ACEOF
20587cat confdefs.h >>conftest.$ac_ext
20588cat >>conftest.$ac_ext <<_ACEOF
20589/* end confdefs.h. */
20590$ac_includes_default
20591int
20592main ()
20593{
20594static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20595test_array [0] = 0
20596
20597 ;
20598 return 0;
20599}
20600_ACEOF
20601rm -f conftest.$ac_objext
20602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20603 (eval $ac_compile) 2>conftest.er1
a848cd7e 20604 ac_status=$?
ac1cb8d3
VS
20605 grep -v '^ *+' conftest.er1 >conftest.err
20606 rm -f conftest.er1
20607 cat conftest.err >&5
a848cd7e
SC
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); } &&
3f60522a
JS
20610 { ac_try='test -z "$ac_cxx_werror_flag"
20611 || test ! -s conftest.err'
ac1cb8d3
VS
20612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20613 (eval $ac_try) 2>&5
20614 ac_status=$?
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); }; } &&
20617 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20619 (eval $ac_try) 2>&5
20620 ac_status=$?
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); }; }; then
20623 ac_hi=$ac_mid; break
20624else
20625 echo "$as_me: failed program was:" >&5
20626sed 's/^/| /' conftest.$ac_ext >&5
20627
20628ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20629 if test $ac_lo -le $ac_mid; then
20630 ac_lo= ac_hi=
20631 break
20632 fi
20633 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20634fi
ac1cb8d3 20635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20636 done
20637else
20638 echo "$as_me: failed program was:" >&5
20639sed 's/^/| /' conftest.$ac_ext >&5
20640
20641cat >conftest.$ac_ext <<_ACEOF
20642/* confdefs.h. */
20643_ACEOF
20644cat confdefs.h >>conftest.$ac_ext
20645cat >>conftest.$ac_ext <<_ACEOF
20646/* end confdefs.h. */
20647$ac_includes_default
20648int
20649main ()
20650{
20651static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20652test_array [0] = 0
20653
20654 ;
20655 return 0;
20656}
20657_ACEOF
20658rm -f conftest.$ac_objext
20659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20660 (eval $ac_compile) 2>conftest.er1
a848cd7e 20661 ac_status=$?
ac1cb8d3
VS
20662 grep -v '^ *+' conftest.er1 >conftest.err
20663 rm -f conftest.er1
20664 cat conftest.err >&5
a848cd7e
SC
20665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666 (exit $ac_status); } &&
3f60522a
JS
20667 { ac_try='test -z "$ac_cxx_werror_flag"
20668 || test ! -s conftest.err'
ac1cb8d3
VS
20669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20670 (eval $ac_try) 2>&5
20671 ac_status=$?
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); }; } &&
20674 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20676 (eval $ac_try) 2>&5
20677 ac_status=$?
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); }; }; then
20680 ac_hi=-1 ac_mid=-1
20681 while :; do
20682 cat >conftest.$ac_ext <<_ACEOF
20683/* confdefs.h. */
20684_ACEOF
20685cat confdefs.h >>conftest.$ac_ext
20686cat >>conftest.$ac_ext <<_ACEOF
20687/* end confdefs.h. */
20688$ac_includes_default
20689int
20690main ()
20691{
20692static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20693test_array [0] = 0
20694
20695 ;
20696 return 0;
20697}
20698_ACEOF
20699rm -f conftest.$ac_objext
20700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20701 (eval $ac_compile) 2>conftest.er1
a848cd7e 20702 ac_status=$?
ac1cb8d3
VS
20703 grep -v '^ *+' conftest.er1 >conftest.err
20704 rm -f conftest.er1
20705 cat conftest.err >&5
a848cd7e
SC
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); } &&
3f60522a
JS
20708 { ac_try='test -z "$ac_cxx_werror_flag"
20709 || test ! -s conftest.err'
ac1cb8d3
VS
20710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20711 (eval $ac_try) 2>&5
20712 ac_status=$?
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); }; } &&
20715 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20717 (eval $ac_try) 2>&5
20718 ac_status=$?
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); }; }; then
20721 ac_lo=$ac_mid; break
20722else
20723 echo "$as_me: failed program was:" >&5
20724sed 's/^/| /' conftest.$ac_ext >&5
20725
20726ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20727 if test $ac_mid -le $ac_hi; then
20728 ac_lo= ac_hi=
20729 break
20730 fi
20731 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20732fi
ac1cb8d3 20733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20734 done
20735else
20736 echo "$as_me: failed program was:" >&5
20737sed 's/^/| /' conftest.$ac_ext >&5
20738
20739ac_lo= ac_hi=
20740fi
ac1cb8d3 20741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20742fi
ac1cb8d3 20743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20744# Binary search between lo and hi bounds.
20745while test "x$ac_lo" != "x$ac_hi"; do
20746 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20747 cat >conftest.$ac_ext <<_ACEOF
20748/* confdefs.h. */
20749_ACEOF
20750cat confdefs.h >>conftest.$ac_ext
20751cat >>conftest.$ac_ext <<_ACEOF
20752/* end confdefs.h. */
20753$ac_includes_default
20754int
20755main ()
20756{
20757static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20758test_array [0] = 0
20759
20760 ;
20761 return 0;
20762}
20763_ACEOF
20764rm -f conftest.$ac_objext
20765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20766 (eval $ac_compile) 2>conftest.er1
a848cd7e 20767 ac_status=$?
ac1cb8d3
VS
20768 grep -v '^ *+' conftest.er1 >conftest.err
20769 rm -f conftest.er1
20770 cat conftest.err >&5
a848cd7e
SC
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); } &&
3f60522a
JS
20773 { ac_try='test -z "$ac_cxx_werror_flag"
20774 || test ! -s conftest.err'
ac1cb8d3
VS
20775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20776 (eval $ac_try) 2>&5
20777 ac_status=$?
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); }; } &&
20780 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20782 (eval $ac_try) 2>&5
20783 ac_status=$?
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); }; }; then
20786 ac_hi=$ac_mid
20787else
20788 echo "$as_me: failed program was:" >&5
20789sed 's/^/| /' conftest.$ac_ext >&5
20790
20791ac_lo=`expr '(' $ac_mid ')' + 1`
20792fi
ac1cb8d3 20793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20794done
20795case $ac_lo in
20796?*) ac_cv_sizeof_long_long=$ac_lo;;
20797'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20798See \`config.log' for more details." >&5
20799echo "$as_me: error: cannot compute sizeof (long long), 77
20800See \`config.log' for more details." >&2;}
20801 { (exit 1); exit 1; }; } ;;
20802esac
20803else
20804 if test "$cross_compiling" = yes; then
3f60522a
JS
20805 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20806See \`config.log' for more details." >&5
20807echo "$as_me: error: cannot run test program while cross compiling
20808See \`config.log' for more details." >&2;}
a848cd7e
SC
20809 { (exit 1); exit 1; }; }
20810else
20811 cat >conftest.$ac_ext <<_ACEOF
20812/* confdefs.h. */
20813_ACEOF
20814cat confdefs.h >>conftest.$ac_ext
20815cat >>conftest.$ac_ext <<_ACEOF
20816/* end confdefs.h. */
20817$ac_includes_default
20818long longval () { return (long) (sizeof (long long)); }
20819unsigned long ulongval () { return (long) (sizeof (long long)); }
20820#include <stdio.h>
20821#include <stdlib.h>
20822int
20823main ()
20824{
20825
20826 FILE *f = fopen ("conftest.val", "w");
20827 if (! f)
20828 exit (1);
20829 if (((long) (sizeof (long long))) < 0)
20830 {
20831 long i = longval ();
20832 if (i != ((long) (sizeof (long long))))
20833 exit (1);
20834 fprintf (f, "%ld\n", i);
20835 }
20836 else
20837 {
20838 unsigned long i = ulongval ();
20839 if (i != ((long) (sizeof (long long))))
20840 exit (1);
20841 fprintf (f, "%lu\n", i);
20842 }
20843 exit (ferror (f) || fclose (f) != 0);
20844
20845 ;
20846 return 0;
20847}
20848_ACEOF
20849rm -f conftest$ac_exeext
20850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20851 (eval $ac_link) 2>&5
20852 ac_status=$?
20853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20856 (eval $ac_try) 2>&5
20857 ac_status=$?
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); }; }; then
20860 ac_cv_sizeof_long_long=`cat conftest.val`
20861else
20862 echo "$as_me: program exited with status $ac_status" >&5
20863echo "$as_me: failed program was:" >&5
20864sed 's/^/| /' conftest.$ac_ext >&5
20865
20866( exit $ac_status )
20867{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20868See \`config.log' for more details." >&5
20869echo "$as_me: error: cannot compute sizeof (long long), 77
20870See \`config.log' for more details." >&2;}
20871 { (exit 1); exit 1; }; }
20872fi
ac1cb8d3 20873rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20874fi
20875fi
20876rm -f conftest.val
20877else
20878 ac_cv_sizeof_long_long=0
20879fi
20880fi
20881echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20882echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20883cat >>confdefs.h <<_ACEOF
20884#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20885_ACEOF
20886
20887
20888 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 20889 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
20890 fi
20891 ;;
20892 * )
20893 echo "$as_me:$LINENO: checking for long long" >&5
20894echo $ECHO_N "checking for long long... $ECHO_C" >&6
20895if test "${ac_cv_type_long_long+set}" = set; then
20896 echo $ECHO_N "(cached) $ECHO_C" >&6
20897else
20898 cat >conftest.$ac_ext <<_ACEOF
20899/* confdefs.h. */
20900_ACEOF
20901cat confdefs.h >>conftest.$ac_ext
20902cat >>conftest.$ac_ext <<_ACEOF
20903/* end confdefs.h. */
20904$ac_includes_default
20905int
20906main ()
20907{
20908if ((long long *) 0)
20909 return 0;
20910if (sizeof (long long))
20911 return 0;
20912 ;
20913 return 0;
20914}
20915_ACEOF
20916rm -f conftest.$ac_objext
20917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20918 (eval $ac_compile) 2>conftest.er1
a848cd7e 20919 ac_status=$?
ac1cb8d3
VS
20920 grep -v '^ *+' conftest.er1 >conftest.err
20921 rm -f conftest.er1
20922 cat conftest.err >&5
a848cd7e
SC
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); } &&
3f60522a
JS
20925 { ac_try='test -z "$ac_cxx_werror_flag"
20926 || test ! -s conftest.err'
ac1cb8d3
VS
20927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20928 (eval $ac_try) 2>&5
20929 ac_status=$?
20930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); }; } &&
20932 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20934 (eval $ac_try) 2>&5
20935 ac_status=$?
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); }; }; then
20938 ac_cv_type_long_long=yes
20939else
20940 echo "$as_me: failed program was:" >&5
20941sed 's/^/| /' conftest.$ac_ext >&5
20942
20943ac_cv_type_long_long=no
20944fi
ac1cb8d3 20945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20946fi
20947echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20948echo "${ECHO_T}$ac_cv_type_long_long" >&6
20949
20950echo "$as_me:$LINENO: checking size of long long" >&5
20951echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20952if test "${ac_cv_sizeof_long_long+set}" = set; then
20953 echo $ECHO_N "(cached) $ECHO_C" >&6
20954else
20955 if test "$ac_cv_type_long_long" = yes; then
20956 # The cast to unsigned long works around a bug in the HP C Compiler
20957 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20958 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20959 # This bug is HP SR number 8606223364.
20960 if test "$cross_compiling" = yes; then
20961 # Depending upon the size, compute the lo and hi bounds.
20962cat >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
20969int
20970main ()
20971{
20972static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20973test_array [0] = 0
20974
20975 ;
20976 return 0;
20977}
20978_ACEOF
20979rm -f conftest.$ac_objext
20980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20981 (eval $ac_compile) 2>conftest.er1
a848cd7e 20982 ac_status=$?
ac1cb8d3
VS
20983 grep -v '^ *+' conftest.er1 >conftest.err
20984 rm -f conftest.er1
20985 cat conftest.err >&5
a848cd7e
SC
20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987 (exit $ac_status); } &&
3f60522a
JS
20988 { ac_try='test -z "$ac_cxx_werror_flag"
20989 || test ! -s conftest.err'
ac1cb8d3
VS
20990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991 (eval $ac_try) 2>&5
20992 ac_status=$?
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); }; } &&
20995 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20997 (eval $ac_try) 2>&5
20998 ac_status=$?
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); }; }; then
21001 ac_lo=0 ac_mid=0
21002 while :; do
21003 cat >conftest.$ac_ext <<_ACEOF
21004/* confdefs.h. */
21005_ACEOF
21006cat confdefs.h >>conftest.$ac_ext
21007cat >>conftest.$ac_ext <<_ACEOF
21008/* end confdefs.h. */
21009$ac_includes_default
21010int
21011main ()
21012{
21013static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21014test_array [0] = 0
21015
21016 ;
21017 return 0;
21018}
21019_ACEOF
21020rm -f conftest.$ac_objext
21021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21022 (eval $ac_compile) 2>conftest.er1
a848cd7e 21023 ac_status=$?
ac1cb8d3
VS
21024 grep -v '^ *+' conftest.er1 >conftest.err
21025 rm -f conftest.er1
21026 cat conftest.err >&5
a848cd7e
SC
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); } &&
3f60522a
JS
21029 { ac_try='test -z "$ac_cxx_werror_flag"
21030 || test ! -s conftest.err'
ac1cb8d3
VS
21031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21032 (eval $ac_try) 2>&5
21033 ac_status=$?
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); }; } &&
21036 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21038 (eval $ac_try) 2>&5
21039 ac_status=$?
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); }; }; then
21042 ac_hi=$ac_mid; break
21043else
21044 echo "$as_me: failed program was:" >&5
21045sed 's/^/| /' conftest.$ac_ext >&5
21046
21047ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
21048 if test $ac_lo -le $ac_mid; then
21049 ac_lo= ac_hi=
21050 break
21051 fi
21052 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 21053fi
ac1cb8d3 21054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21055 done
21056else
21057 echo "$as_me: failed program was:" >&5
21058sed 's/^/| /' conftest.$ac_ext >&5
21059
21060cat >conftest.$ac_ext <<_ACEOF
21061/* confdefs.h. */
21062_ACEOF
21063cat confdefs.h >>conftest.$ac_ext
21064cat >>conftest.$ac_ext <<_ACEOF
21065/* end confdefs.h. */
21066$ac_includes_default
21067int
21068main ()
21069{
21070static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21071test_array [0] = 0
21072
21073 ;
21074 return 0;
21075}
21076_ACEOF
21077rm -f conftest.$ac_objext
21078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21079 (eval $ac_compile) 2>conftest.er1
a848cd7e 21080 ac_status=$?
ac1cb8d3
VS
21081 grep -v '^ *+' conftest.er1 >conftest.err
21082 rm -f conftest.er1
21083 cat conftest.err >&5
a848cd7e
SC
21084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085 (exit $ac_status); } &&
3f60522a
JS
21086 { ac_try='test -z "$ac_cxx_werror_flag"
21087 || test ! -s conftest.err'
ac1cb8d3
VS
21088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21089 (eval $ac_try) 2>&5
21090 ac_status=$?
21091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092 (exit $ac_status); }; } &&
21093 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21095 (eval $ac_try) 2>&5
21096 ac_status=$?
21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); }; }; then
21099 ac_hi=-1 ac_mid=-1
21100 while :; do
21101 cat >conftest.$ac_ext <<_ACEOF
21102/* confdefs.h. */
21103_ACEOF
21104cat confdefs.h >>conftest.$ac_ext
21105cat >>conftest.$ac_ext <<_ACEOF
21106/* end confdefs.h. */
21107$ac_includes_default
21108int
21109main ()
21110{
21111static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21112test_array [0] = 0
21113
21114 ;
21115 return 0;
21116}
21117_ACEOF
21118rm -f conftest.$ac_objext
21119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21120 (eval $ac_compile) 2>conftest.er1
a848cd7e 21121 ac_status=$?
ac1cb8d3
VS
21122 grep -v '^ *+' conftest.er1 >conftest.err
21123 rm -f conftest.er1
21124 cat conftest.err >&5
a848cd7e
SC
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); } &&
3f60522a
JS
21127 { ac_try='test -z "$ac_cxx_werror_flag"
21128 || test ! -s conftest.err'
ac1cb8d3
VS
21129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21130 (eval $ac_try) 2>&5
21131 ac_status=$?
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); }; } &&
21134 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21136 (eval $ac_try) 2>&5
21137 ac_status=$?
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); }; }; then
21140 ac_lo=$ac_mid; break
21141else
21142 echo "$as_me: failed program was:" >&5
21143sed 's/^/| /' conftest.$ac_ext >&5
21144
21145ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
21146 if test $ac_mid -le $ac_hi; then
21147 ac_lo= ac_hi=
21148 break
21149 fi
21150 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21151fi
ac1cb8d3 21152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21153 done
21154else
21155 echo "$as_me: failed program was:" >&5
21156sed 's/^/| /' conftest.$ac_ext >&5
21157
21158ac_lo= ac_hi=
21159fi
ac1cb8d3 21160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21161fi
ac1cb8d3 21162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21163# Binary search between lo and hi bounds.
21164while test "x$ac_lo" != "x$ac_hi"; do
21165 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21166 cat >conftest.$ac_ext <<_ACEOF
21167/* confdefs.h. */
21168_ACEOF
21169cat confdefs.h >>conftest.$ac_ext
21170cat >>conftest.$ac_ext <<_ACEOF
21171/* end confdefs.h. */
21172$ac_includes_default
21173int
21174main ()
21175{
21176static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21177test_array [0] = 0
21178
21179 ;
21180 return 0;
21181}
21182_ACEOF
21183rm -f conftest.$ac_objext
21184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21185 (eval $ac_compile) 2>conftest.er1
a848cd7e 21186 ac_status=$?
ac1cb8d3
VS
21187 grep -v '^ *+' conftest.er1 >conftest.err
21188 rm -f conftest.er1
21189 cat conftest.err >&5
a848cd7e
SC
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); } &&
3f60522a
JS
21192 { ac_try='test -z "$ac_cxx_werror_flag"
21193 || test ! -s conftest.err'
ac1cb8d3
VS
21194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21195 (eval $ac_try) 2>&5
21196 ac_status=$?
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); }; } &&
21199 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21201 (eval $ac_try) 2>&5
21202 ac_status=$?
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); }; }; then
21205 ac_hi=$ac_mid
21206else
21207 echo "$as_me: failed program was:" >&5
21208sed 's/^/| /' conftest.$ac_ext >&5
21209
21210ac_lo=`expr '(' $ac_mid ')' + 1`
21211fi
ac1cb8d3 21212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21213done
21214case $ac_lo in
21215?*) ac_cv_sizeof_long_long=$ac_lo;;
21216'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21217See \`config.log' for more details." >&5
21218echo "$as_me: error: cannot compute sizeof (long long), 77
21219See \`config.log' for more details." >&2;}
21220 { (exit 1); exit 1; }; } ;;
21221esac
21222else
21223 if test "$cross_compiling" = yes; then
3f60522a
JS
21224 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21225See \`config.log' for more details." >&5
21226echo "$as_me: error: cannot run test program while cross compiling
21227See \`config.log' for more details." >&2;}
a848cd7e
SC
21228 { (exit 1); exit 1; }; }
21229else
21230 cat >conftest.$ac_ext <<_ACEOF
21231/* confdefs.h. */
21232_ACEOF
21233cat confdefs.h >>conftest.$ac_ext
21234cat >>conftest.$ac_ext <<_ACEOF
21235/* end confdefs.h. */
21236$ac_includes_default
21237long longval () { return (long) (sizeof (long long)); }
21238unsigned long ulongval () { return (long) (sizeof (long long)); }
21239#include <stdio.h>
21240#include <stdlib.h>
21241int
21242main ()
21243{
21244
21245 FILE *f = fopen ("conftest.val", "w");
21246 if (! f)
21247 exit (1);
21248 if (((long) (sizeof (long long))) < 0)
21249 {
21250 long i = longval ();
21251 if (i != ((long) (sizeof (long long))))
21252 exit (1);
21253 fprintf (f, "%ld\n", i);
21254 }
21255 else
21256 {
21257 unsigned long i = ulongval ();
21258 if (i != ((long) (sizeof (long long))))
21259 exit (1);
21260 fprintf (f, "%lu\n", i);
21261 }
21262 exit (ferror (f) || fclose (f) != 0);
21263
21264 ;
21265 return 0;
21266}
21267_ACEOF
21268rm -f conftest$ac_exeext
21269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21270 (eval $ac_link) 2>&5
21271 ac_status=$?
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275 (eval $ac_try) 2>&5
21276 ac_status=$?
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); }; }; then
21279 ac_cv_sizeof_long_long=`cat conftest.val`
21280else
21281 echo "$as_me: program exited with status $ac_status" >&5
21282echo "$as_me: failed program was:" >&5
21283sed 's/^/| /' conftest.$ac_ext >&5
21284
21285( exit $ac_status )
21286{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21287See \`config.log' for more details." >&5
21288echo "$as_me: error: cannot compute sizeof (long long), 77
21289See \`config.log' for more details." >&2;}
21290 { (exit 1); exit 1; }; }
21291fi
ac1cb8d3 21292rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21293fi
21294fi
21295rm -f conftest.val
21296else
21297 ac_cv_sizeof_long_long=0
21298fi
21299fi
21300echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21301echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21302cat >>confdefs.h <<_ACEOF
21303#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21304_ACEOF
21305
21306
21307esac
21308
238ecede
MW
21309echo "$as_me:$LINENO: checking for wchar_t" >&5
21310echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21311if test "${ac_cv_type_wchar_t+set}" = set; then
21312 echo $ECHO_N "(cached) $ECHO_C" >&6
21313else
21314 cat >conftest.$ac_ext <<_ACEOF
21315/* confdefs.h. */
21316_ACEOF
21317cat confdefs.h >>conftest.$ac_ext
21318cat >>conftest.$ac_ext <<_ACEOF
21319/* end confdefs.h. */
21320
83d8eb47
MW
21321 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21322 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21323 # error "fake wchar_t"
21324 #endif
21325 #ifdef HAVE_WCHAR_H
21326 # ifdef __CYGWIN__
21327 # include <stddef.h>
21328 # endif
21329 # include <wchar.h>
21330 #endif
21331 #ifdef HAVE_STDLIB_H
21332 # include <stdlib.h>
21333 #endif
21334 #include <stdio.h>
21335
21336
21337
21338int
21339main ()
21340{
21341if ((wchar_t *) 0)
21342 return 0;
21343if (sizeof (wchar_t))
21344 return 0;
21345 ;
21346 return 0;
21347}
21348_ACEOF
21349rm -f conftest.$ac_objext
21350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21351 (eval $ac_compile) 2>conftest.er1
21352 ac_status=$?
21353 grep -v '^ *+' conftest.er1 >conftest.err
21354 rm -f conftest.er1
21355 cat conftest.err >&5
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); } &&
3f60522a
JS
21358 { ac_try='test -z "$ac_cxx_werror_flag"
21359 || test ! -s conftest.err'
238ecede
MW
21360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21361 (eval $ac_try) 2>&5
21362 ac_status=$?
21363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); }; } &&
21365 { ac_try='test -s conftest.$ac_objext'
21366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21367 (eval $ac_try) 2>&5
21368 ac_status=$?
21369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370 (exit $ac_status); }; }; then
21371 ac_cv_type_wchar_t=yes
21372else
21373 echo "$as_me: failed program was:" >&5
21374sed 's/^/| /' conftest.$ac_ext >&5
21375
21376ac_cv_type_wchar_t=no
21377fi
21378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21379fi
21380echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21381echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21382
a848cd7e
SC
21383echo "$as_me:$LINENO: checking size of wchar_t" >&5
21384echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 21385if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
21386 echo $ECHO_N "(cached) $ECHO_C" >&6
21387else
238ecede
MW
21388 if test "$ac_cv_type_wchar_t" = yes; then
21389 # The cast to unsigned long works around a bug in the HP C Compiler
21390 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21391 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21392 # This bug is HP SR number 8606223364.
21393 if test "$cross_compiling" = yes; then
21394 # Depending upon the size, compute the lo and hi bounds.
21395cat >conftest.$ac_ext <<_ACEOF
21396/* confdefs.h. */
21397_ACEOF
21398cat confdefs.h >>conftest.$ac_ext
21399cat >>conftest.$ac_ext <<_ACEOF
21400/* end confdefs.h. */
21401
83d8eb47
MW
21402 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21403 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21404 # error "fake wchar_t"
21405 #endif
21406 #ifdef HAVE_WCHAR_H
21407 # ifdef __CYGWIN__
21408 # include <stddef.h>
21409 # endif
21410 # include <wchar.h>
21411 #endif
21412 #ifdef HAVE_STDLIB_H
21413 # include <stdlib.h>
21414 #endif
21415 #include <stdio.h>
21416
21417
21418
21419int
21420main ()
21421{
21422static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21423test_array [0] = 0
21424
21425 ;
21426 return 0;
21427}
21428_ACEOF
21429rm -f conftest.$ac_objext
21430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21431 (eval $ac_compile) 2>conftest.er1
21432 ac_status=$?
21433 grep -v '^ *+' conftest.er1 >conftest.err
21434 rm -f conftest.er1
21435 cat conftest.err >&5
21436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437 (exit $ac_status); } &&
3f60522a
JS
21438 { ac_try='test -z "$ac_cxx_werror_flag"
21439 || test ! -s conftest.err'
238ecede
MW
21440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21441 (eval $ac_try) 2>&5
21442 ac_status=$?
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); }; } &&
21445 { ac_try='test -s conftest.$ac_objext'
21446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21447 (eval $ac_try) 2>&5
21448 ac_status=$?
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); }; }; then
21451 ac_lo=0 ac_mid=0
21452 while :; do
21453 cat >conftest.$ac_ext <<_ACEOF
21454/* confdefs.h. */
21455_ACEOF
21456cat confdefs.h >>conftest.$ac_ext
21457cat >>conftest.$ac_ext <<_ACEOF
21458/* end confdefs.h. */
21459
83d8eb47
MW
21460 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21461 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21462 # error "fake wchar_t"
21463 #endif
21464 #ifdef HAVE_WCHAR_H
21465 # ifdef __CYGWIN__
21466 # include <stddef.h>
21467 # endif
21468 # include <wchar.h>
21469 #endif
21470 #ifdef HAVE_STDLIB_H
21471 # include <stdlib.h>
21472 #endif
21473 #include <stdio.h>
21474
21475
21476
21477int
21478main ()
21479{
21480static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21481test_array [0] = 0
21482
21483 ;
21484 return 0;
21485}
21486_ACEOF
21487rm -f conftest.$ac_objext
21488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21489 (eval $ac_compile) 2>conftest.er1
21490 ac_status=$?
21491 grep -v '^ *+' conftest.er1 >conftest.err
21492 rm -f conftest.er1
21493 cat conftest.err >&5
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); } &&
3f60522a
JS
21496 { ac_try='test -z "$ac_cxx_werror_flag"
21497 || test ! -s conftest.err'
238ecede
MW
21498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21499 (eval $ac_try) 2>&5
21500 ac_status=$?
21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); }; } &&
21503 { ac_try='test -s conftest.$ac_objext'
21504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21505 (eval $ac_try) 2>&5
21506 ac_status=$?
21507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508 (exit $ac_status); }; }; then
21509 ac_hi=$ac_mid; break
21510else
21511 echo "$as_me: failed program was:" >&5
21512sed 's/^/| /' conftest.$ac_ext >&5
21513
21514ac_lo=`expr $ac_mid + 1`
21515 if test $ac_lo -le $ac_mid; then
21516 ac_lo= ac_hi=
21517 break
21518 fi
21519 ac_mid=`expr 2 '*' $ac_mid + 1`
21520fi
21521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21522 done
21523else
21524 echo "$as_me: failed program was:" >&5
21525sed 's/^/| /' conftest.$ac_ext >&5
21526
21527cat >conftest.$ac_ext <<_ACEOF
21528/* confdefs.h. */
21529_ACEOF
21530cat confdefs.h >>conftest.$ac_ext
21531cat >>conftest.$ac_ext <<_ACEOF
21532/* end confdefs.h. */
21533
83d8eb47
MW
21534 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21535 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21536 # error "fake wchar_t"
21537 #endif
21538 #ifdef HAVE_WCHAR_H
21539 # ifdef __CYGWIN__
21540 # include <stddef.h>
21541 # endif
21542 # include <wchar.h>
21543 #endif
21544 #ifdef HAVE_STDLIB_H
21545 # include <stdlib.h>
21546 #endif
21547 #include <stdio.h>
21548
21549
21550
21551int
21552main ()
21553{
21554static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21555test_array [0] = 0
21556
21557 ;
21558 return 0;
21559}
21560_ACEOF
21561rm -f conftest.$ac_objext
21562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21563 (eval $ac_compile) 2>conftest.er1
21564 ac_status=$?
21565 grep -v '^ *+' conftest.er1 >conftest.err
21566 rm -f conftest.er1
21567 cat conftest.err >&5
21568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569 (exit $ac_status); } &&
3f60522a
JS
21570 { ac_try='test -z "$ac_cxx_werror_flag"
21571 || test ! -s conftest.err'
238ecede
MW
21572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21573 (eval $ac_try) 2>&5
21574 ac_status=$?
21575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576 (exit $ac_status); }; } &&
21577 { ac_try='test -s conftest.$ac_objext'
21578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21579 (eval $ac_try) 2>&5
21580 ac_status=$?
21581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582 (exit $ac_status); }; }; then
21583 ac_hi=-1 ac_mid=-1
21584 while :; do
21585 cat >conftest.$ac_ext <<_ACEOF
21586/* confdefs.h. */
21587_ACEOF
21588cat confdefs.h >>conftest.$ac_ext
21589cat >>conftest.$ac_ext <<_ACEOF
21590/* end confdefs.h. */
21591
83d8eb47
MW
21592 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21593 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21594 # error "fake wchar_t"
21595 #endif
21596 #ifdef HAVE_WCHAR_H
21597 # ifdef __CYGWIN__
21598 # include <stddef.h>
21599 # endif
21600 # include <wchar.h>
21601 #endif
21602 #ifdef HAVE_STDLIB_H
21603 # include <stdlib.h>
21604 #endif
21605 #include <stdio.h>
21606
21607
21608
21609int
21610main ()
21611{
21612static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21613test_array [0] = 0
21614
21615 ;
21616 return 0;
21617}
21618_ACEOF
21619rm -f conftest.$ac_objext
21620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21621 (eval $ac_compile) 2>conftest.er1
21622 ac_status=$?
21623 grep -v '^ *+' conftest.er1 >conftest.err
21624 rm -f conftest.er1
21625 cat conftest.err >&5
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); } &&
3f60522a
JS
21628 { ac_try='test -z "$ac_cxx_werror_flag"
21629 || test ! -s conftest.err'
238ecede
MW
21630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21631 (eval $ac_try) 2>&5
21632 ac_status=$?
21633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); }; } &&
21635 { ac_try='test -s conftest.$ac_objext'
21636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21637 (eval $ac_try) 2>&5
21638 ac_status=$?
21639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640 (exit $ac_status); }; }; then
21641 ac_lo=$ac_mid; break
21642else
21643 echo "$as_me: failed program was:" >&5
21644sed 's/^/| /' conftest.$ac_ext >&5
21645
21646ac_hi=`expr '(' $ac_mid ')' - 1`
21647 if test $ac_mid -le $ac_hi; then
21648 ac_lo= ac_hi=
21649 break
21650 fi
21651 ac_mid=`expr 2 '*' $ac_mid`
21652fi
21653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21654 done
21655else
21656 echo "$as_me: failed program was:" >&5
21657sed 's/^/| /' conftest.$ac_ext >&5
21658
21659ac_lo= ac_hi=
21660fi
21661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21662fi
21663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21664# Binary search between lo and hi bounds.
21665while test "x$ac_lo" != "x$ac_hi"; do
21666 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21667 cat >conftest.$ac_ext <<_ACEOF
21668/* confdefs.h. */
21669_ACEOF
21670cat confdefs.h >>conftest.$ac_ext
21671cat >>conftest.$ac_ext <<_ACEOF
21672/* end confdefs.h. */
21673
83d8eb47
MW
21674 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21675 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21676 # error "fake wchar_t"
21677 #endif
21678 #ifdef HAVE_WCHAR_H
21679 # ifdef __CYGWIN__
21680 # include <stddef.h>
21681 # endif
21682 # include <wchar.h>
21683 #endif
21684 #ifdef HAVE_STDLIB_H
21685 # include <stdlib.h>
21686 #endif
21687 #include <stdio.h>
a848cd7e 21688
a848cd7e 21689
a848cd7e 21690
238ecede
MW
21691int
21692main ()
21693{
21694static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21695test_array [0] = 0
a848cd7e 21696
238ecede
MW
21697 ;
21698 return 0;
21699}
21700_ACEOF
21701rm -f conftest.$ac_objext
21702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21703 (eval $ac_compile) 2>conftest.er1
21704 ac_status=$?
21705 grep -v '^ *+' conftest.er1 >conftest.err
21706 rm -f conftest.er1
21707 cat conftest.err >&5
21708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709 (exit $ac_status); } &&
3f60522a
JS
21710 { ac_try='test -z "$ac_cxx_werror_flag"
21711 || test ! -s conftest.err'
238ecede
MW
21712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21713 (eval $ac_try) 2>&5
21714 ac_status=$?
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); }; } &&
21717 { ac_try='test -s conftest.$ac_objext'
21718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21719 (eval $ac_try) 2>&5
21720 ac_status=$?
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); }; }; then
21723 ac_hi=$ac_mid
21724else
21725 echo "$as_me: failed program was:" >&5
21726sed 's/^/| /' conftest.$ac_ext >&5
21727
21728ac_lo=`expr '(' $ac_mid ')' + 1`
21729fi
21730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21731done
21732case $ac_lo in
21733?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21734'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21735See \`config.log' for more details." >&5
21736echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21737See \`config.log' for more details." >&2;}
21738 { (exit 1); exit 1; }; } ;;
21739esac
21740else
21741 if test "$cross_compiling" = yes; then
3f60522a
JS
21742 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21743See \`config.log' for more details." >&5
21744echo "$as_me: error: cannot run test program while cross compiling
21745See \`config.log' for more details." >&2;}
238ecede 21746 { (exit 1); exit 1; }; }
a848cd7e
SC
21747else
21748 cat >conftest.$ac_ext <<_ACEOF
21749/* confdefs.h. */
21750_ACEOF
21751cat confdefs.h >>conftest.$ac_ext
21752cat >>conftest.$ac_ext <<_ACEOF
21753/* end confdefs.h. */
21754
83d8eb47
MW
21755 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21756 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21757 # error "fake wchar_t"
21758 #endif
21759 #ifdef HAVE_WCHAR_H
21760 # ifdef __CYGWIN__
21761 # include <stddef.h>
21762 # endif
21763 # include <wchar.h>
21764 #endif
21765 #ifdef HAVE_STDLIB_H
21766 # include <stdlib.h>
21767 #endif
21768 #include <stdio.h>
21769
21770
21771
21772long longval () { return (long) (sizeof (wchar_t)); }
21773unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21774#include <stdio.h>
21775#include <stdlib.h>
21776int
21777main ()
21778{
a848cd7e 21779
238ecede
MW
21780 FILE *f = fopen ("conftest.val", "w");
21781 if (! f)
21782 exit (1);
21783 if (((long) (sizeof (wchar_t))) < 0)
21784 {
21785 long i = longval ();
21786 if (i != ((long) (sizeof (wchar_t))))
21787 exit (1);
21788 fprintf (f, "%ld\n", i);
21789 }
21790 else
21791 {
21792 unsigned long i = ulongval ();
21793 if (i != ((long) (sizeof (wchar_t))))
21794 exit (1);
21795 fprintf (f, "%lu\n", i);
21796 }
21797 exit (ferror (f) || fclose (f) != 0);
21798
21799 ;
21800 return 0;
21801}
a848cd7e
SC
21802_ACEOF
21803rm -f conftest$ac_exeext
21804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21805 (eval $ac_link) 2>&5
21806 ac_status=$?
21807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21810 (eval $ac_try) 2>&5
21811 ac_status=$?
21812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); }; }; then
238ecede 21814 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
21815else
21816 echo "$as_me: program exited with status $ac_status" >&5
21817echo "$as_me: failed program was:" >&5
21818sed 's/^/| /' conftest.$ac_ext >&5
21819
21820( exit $ac_status )
238ecede
MW
21821{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21822See \`config.log' for more details." >&5
21823echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21824See \`config.log' for more details." >&2;}
21825 { (exit 1); exit 1; }; }
a848cd7e 21826fi
ac1cb8d3 21827rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 21828fi
a848cd7e 21829fi
238ecede
MW
21830rm -f conftest.val
21831else
21832 ac_cv_sizeof_wchar_t=0
21833fi
21834fi
21835echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21836echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 21837cat >>confdefs.h <<_ACEOF
238ecede 21838#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
21839_ACEOF
21840
21841
47a7e797
MW
21842if test "$ac_cv_sizeof_wchar_t" != "0"; then
21843 wxUSE_WCHAR_T=yes
21844else
21845 wxUSE_WCHAR_T=no
21846fi
238ecede 21847
ba3d13e1
VZ
21848echo "$as_me:$LINENO: checking for va_copy" >&5
21849echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21850if test "${wx_cv_func_va_copy+set}" = set; then
21851 echo $ECHO_N "(cached) $ECHO_C" >&6
21852else
21853
21854 cat >conftest.$ac_ext <<_ACEOF
21855
21856 #include <stdarg.h>
21857 void foo(char *f, ...)
21858 {
21859 va_list ap1, ap2;
21860 va_start(ap1, f);
21861 va_copy(ap2, ap1);
21862 va_end(ap2);
21863 va_end(ap1);
21864 }
5886b072
VZ
21865 int main()
21866 {
b902e639
VZ
21867 foo("hi", 17);
21868 return 0;
5886b072 21869 }
ba3d13e1
VZ
21870_ACEOF
21871rm -f conftest.$ac_objext conftest$ac_exeext
21872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21873 (eval $ac_link) 2>conftest.er1
21874 ac_status=$?
21875 grep -v '^ *+' conftest.er1 >conftest.err
21876 rm -f conftest.er1
21877 cat conftest.err >&5
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); } &&
3f60522a
JS
21880 { ac_try='test -z "$ac_cxx_werror_flag"
21881 || test ! -s conftest.err'
ba3d13e1
VZ
21882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21883 (eval $ac_try) 2>&5
21884 ac_status=$?
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); }; } &&
21887 { ac_try='test -s conftest$ac_exeext'
21888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21889 (eval $ac_try) 2>&5
21890 ac_status=$?
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); }; }; then
21893 wx_cv_func_va_copy=yes
21894else
21895 echo "$as_me: failed program was:" >&5
21896sed 's/^/| /' conftest.$ac_ext >&5
21897
21898wx_cv_func_va_copy=no
21899
21900fi
21901rm -f conftest.err conftest.$ac_objext \
21902 conftest$ac_exeext conftest.$ac_ext
21903
21904
21905fi
21906echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
21907echo "${ECHO_T}$wx_cv_func_va_copy" >&6
21908
21909if test $wx_cv_func_va_copy = "yes"; then
21910 cat >>confdefs.h <<\_ACEOF
21911#define HAVE_VA_COPY 1
21912_ACEOF
21913
21914else
21915 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
21916echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
21917if test "${wx_cv_type_va_list_lvalue+set}" = set; then
21918 echo $ECHO_N "(cached) $ECHO_C" >&6
21919else
21920
21921 if test "$cross_compiling" = yes; then
21922 wx_cv_type_va_list_lvalue=yes
21923
21924else
21925 cat >conftest.$ac_ext <<_ACEOF
21926
21927 #include <stdarg.h>
21928 int foo(char *f, ...)
21929 {
21930 va_list ap1, ap2;
21931 va_start(ap1, f);
21932 ap2 = ap1;
21933 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
21934 return 1;
21935 va_end(ap2);
21936 va_end(ap1);
21937 return 0;
21938 }
21939 int main()
21940 {
21941 return foo("hi", 17);
21942 }
21943_ACEOF
21944rm -f conftest$ac_exeext
21945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21946 (eval $ac_link) 2>&5
21947 ac_status=$?
21948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21951 (eval $ac_try) 2>&5
21952 ac_status=$?
21953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954 (exit $ac_status); }; }; then
21955 wx_cv_type_va_list_lvalue=yes
21956else
21957 echo "$as_me: program exited with status $ac_status" >&5
21958echo "$as_me: failed program was:" >&5
21959sed 's/^/| /' conftest.$ac_ext >&5
21960
21961( exit $ac_status )
21962wx_cv_type_va_list_lvalue=no
21963fi
21964rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21965fi
21966
21967
21968fi
21969echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
21970echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
21971
21972 if test $wx_cv_type_va_list_lvalue != "yes"; then
21973 cat >>confdefs.h <<\_ACEOF
21974#define VA_LIST_IS_ARRAY 1
21975_ACEOF
21976
21977 fi
21978fi
21979
a848cd7e
SC
21980# Check whether --enable-largefile or --disable-largefile was given.
21981if test "${enable_largefile+set}" = set; then
21982 enableval="$enable_largefile"
21983
21984fi;
21985if test "$enable_largefile" != no; then
21986 wx_largefile=no
21987
21988 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21989echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21990if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21991 echo $ECHO_N "(cached) $ECHO_C" >&6
21992else
21993
21994 cat >conftest.$ac_ext <<_ACEOF
21995/* confdefs.h. */
21996_ACEOF
21997cat confdefs.h >>conftest.$ac_ext
21998cat >>conftest.$ac_ext <<_ACEOF
21999/* end confdefs.h. */
22000#define _FILE_OFFSET_BITS 64
22001 #include <sys/types.h>
22002int
22003main ()
22004{
22005typedef struct {
22006 unsigned int field: sizeof(off_t) == 8;
22007} wxlf;
22008
22009 ;
22010 return 0;
22011}
22012_ACEOF
22013rm -f conftest.$ac_objext
22014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22015 (eval $ac_compile) 2>conftest.er1
a848cd7e 22016 ac_status=$?
ac1cb8d3
VS
22017 grep -v '^ *+' conftest.er1 >conftest.err
22018 rm -f conftest.er1
22019 cat conftest.err >&5
a848cd7e
SC
22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); } &&
3f60522a
JS
22022 { ac_try='test -z "$ac_cxx_werror_flag"
22023 || test ! -s conftest.err'
ac1cb8d3
VS
22024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22025 (eval $ac_try) 2>&5
22026 ac_status=$?
22027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028 (exit $ac_status); }; } &&
22029 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22031 (eval $ac_try) 2>&5
22032 ac_status=$?
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); }; }; then
22035 ac_cv_sys_file_offset_bits=64
22036else
22037 echo "$as_me: failed program was:" >&5
22038sed 's/^/| /' conftest.$ac_ext >&5
22039
22040ac_cv_sys_file_offset_bits=no
22041fi
ac1cb8d3 22042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22043
22044
22045fi
22046echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22047echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
22048
22049 if test "$ac_cv_sys_file_offset_bits" != no; then
22050 wx_largefile=yes
22051 cat >>confdefs.h <<_ACEOF
22052#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22053_ACEOF
22054
22055 fi
22056
22057 if test "x$wx_largefile" != "xyes"; then
22058
22059 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22060echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
22061if test "${ac_cv_sys_large_files+set}" = set; then
22062 echo $ECHO_N "(cached) $ECHO_C" >&6
22063else
22064
22065 cat >conftest.$ac_ext <<_ACEOF
22066/* confdefs.h. */
22067_ACEOF
22068cat confdefs.h >>conftest.$ac_ext
22069cat >>conftest.$ac_ext <<_ACEOF
22070/* end confdefs.h. */
22071#define _LARGE_FILES 1
22072 #include <sys/types.h>
22073int
22074main ()
22075{
22076typedef struct {
22077 unsigned int field: sizeof(off_t) == 8;
22078} wxlf;
22079
22080 ;
22081 return 0;
22082}
22083_ACEOF
22084rm -f conftest.$ac_objext
22085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22086 (eval $ac_compile) 2>conftest.er1
a848cd7e 22087 ac_status=$?
ac1cb8d3
VS
22088 grep -v '^ *+' conftest.er1 >conftest.err
22089 rm -f conftest.er1
22090 cat conftest.err >&5
a848cd7e
SC
22091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092 (exit $ac_status); } &&
3f60522a
JS
22093 { ac_try='test -z "$ac_cxx_werror_flag"
22094 || test ! -s conftest.err'
ac1cb8d3
VS
22095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22096 (eval $ac_try) 2>&5
22097 ac_status=$?
22098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); }; } &&
22100 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22102 (eval $ac_try) 2>&5
22103 ac_status=$?
22104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); }; }; then
22106 ac_cv_sys_large_files=1
22107else
22108 echo "$as_me: failed program was:" >&5
22109sed 's/^/| /' conftest.$ac_ext >&5
22110
22111ac_cv_sys_large_files=no
22112fi
ac1cb8d3 22113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22114
22115
22116fi
22117echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22118echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22119
22120 if test "$ac_cv_sys_large_files" != no; then
22121 wx_largefile=yes
22122 cat >>confdefs.h <<_ACEOF
22123#define _LARGE_FILES $ac_cv_sys_large_files
22124_ACEOF
22125
22126 fi
22127
22128 fi
22129
22130 echo "$as_me:$LINENO: checking if large file support is available" >&5
22131echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
22132 if test "x$wx_largefile" = "xyes"; then
22133 cat >>confdefs.h <<\_ACEOF
22134#define HAVE_LARGEFILE_SUPPORT 1
22135_ACEOF
22136
22137 fi
22138 echo "$as_me:$LINENO: result: $wx_largefile" >&5
22139echo "${ECHO_T}$wx_largefile" >&6
22140fi
22141
5b674b9d
DE
22142
22143if test "x$wx_largefile" = "xyes"; then
22144 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 22145 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
22146
22147 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
22148 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
22149echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
22150if test "${wx_cv_STDC_EXT_required+set}" = set; then
22151 echo $ECHO_N "(cached) $ECHO_C" >&6
22152else
22153
00421666
MW
22154 cat >conftest.$ac_ext <<_ACEOF
22155/* confdefs.h. */
22156_ACEOF
22157cat confdefs.h >>conftest.$ac_ext
22158cat >>conftest.$ac_ext <<_ACEOF
22159/* end confdefs.h. */
22160
22161int
22162main ()
22163{
22164
22165 #ifndef __STDC_EXT__
22166 choke me
22167 #endif
22168
22169 ;
22170 return 0;
22171}
22172_ACEOF
22173rm -f conftest.$ac_objext
22174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22175 (eval $ac_compile) 2>conftest.er1
22176 ac_status=$?
22177 grep -v '^ *+' conftest.er1 >conftest.err
22178 rm -f conftest.er1
22179 cat conftest.err >&5
22180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22181 (exit $ac_status); } &&
3f60522a
JS
22182 { ac_try='test -z "$ac_cxx_werror_flag"
22183 || test ! -s conftest.err'
00421666
MW
22184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22185 (eval $ac_try) 2>&5
22186 ac_status=$?
22187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188 (exit $ac_status); }; } &&
22189 { ac_try='test -s conftest.$ac_objext'
22190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22191 (eval $ac_try) 2>&5
22192 ac_status=$?
22193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194 (exit $ac_status); }; }; then
22195 wx_cv_STDC_EXT_required=no
22196else
22197 echo "$as_me: failed program was:" >&5
22198sed 's/^/| /' conftest.$ac_ext >&5
22199
22200wx_cv_STDC_EXT_required=yes
22201
22202fi
22203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
00421666
MW
22204
22205
22206fi
22207echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22208echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22209 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 22210 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
22211 fi
22212 fi
5b674b9d 22213 else
5ff751d6 22214 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
22215 fi
22216 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
22217echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22218if test "${ac_cv_sys_largefile_source+set}" = set; then
22219 echo $ECHO_N "(cached) $ECHO_C" >&6
22220else
22221 while :; do
22222 ac_cv_sys_largefile_source=no
22223 cat >conftest.$ac_ext <<_ACEOF
22224/* confdefs.h. */
22225_ACEOF
22226cat confdefs.h >>conftest.$ac_ext
22227cat >>conftest.$ac_ext <<_ACEOF
22228/* end confdefs.h. */
22229#include <stdio.h>
22230int
22231main ()
22232{
22233return !fseeko;
22234 ;
22235 return 0;
22236}
22237_ACEOF
22238rm -f conftest.$ac_objext
22239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22240 (eval $ac_compile) 2>conftest.er1
22241 ac_status=$?
22242 grep -v '^ *+' conftest.er1 >conftest.err
22243 rm -f conftest.er1
22244 cat conftest.err >&5
22245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246 (exit $ac_status); } &&
3f60522a
JS
22247 { ac_try='test -z "$ac_cxx_werror_flag"
22248 || test ! -s conftest.err'
5294a27e
VZ
22249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22250 (eval $ac_try) 2>&5
22251 ac_status=$?
22252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253 (exit $ac_status); }; } &&
22254 { ac_try='test -s conftest.$ac_objext'
22255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22256 (eval $ac_try) 2>&5
22257 ac_status=$?
22258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259 (exit $ac_status); }; }; then
22260 break
22261else
22262 echo "$as_me: failed program was:" >&5
22263sed 's/^/| /' conftest.$ac_ext >&5
22264
22265fi
22266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22267 cat >conftest.$ac_ext <<_ACEOF
22268/* confdefs.h. */
22269_ACEOF
22270cat confdefs.h >>conftest.$ac_ext
22271cat >>conftest.$ac_ext <<_ACEOF
22272/* end confdefs.h. */
22273#define _LARGEFILE_SOURCE 1
22274#include <stdio.h>
22275int
22276main ()
22277{
22278return !fseeko;
22279 ;
22280 return 0;
22281}
22282_ACEOF
22283rm -f conftest.$ac_objext
22284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22285 (eval $ac_compile) 2>conftest.er1
22286 ac_status=$?
22287 grep -v '^ *+' conftest.er1 >conftest.err
22288 rm -f conftest.er1
22289 cat conftest.err >&5
22290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291 (exit $ac_status); } &&
3f60522a
JS
22292 { ac_try='test -z "$ac_cxx_werror_flag"
22293 || test ! -s conftest.err'
5294a27e
VZ
22294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22295 (eval $ac_try) 2>&5
22296 ac_status=$?
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); }; } &&
22299 { ac_try='test -s conftest.$ac_objext'
22300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22301 (eval $ac_try) 2>&5
22302 ac_status=$?
22303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304 (exit $ac_status); }; }; then
22305 ac_cv_sys_largefile_source=1; break
22306else
22307 echo "$as_me: failed program was:" >&5
22308sed 's/^/| /' conftest.$ac_ext >&5
22309
22310fi
22311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22312 break
22313done
22314fi
22315echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22316echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22317if test "$ac_cv_sys_largefile_source" != no; then
22318
22319cat >>confdefs.h <<_ACEOF
22320#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22321_ACEOF
22322
22323fi
22324rm -f conftest*
22325
22326# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22327# in glibc 2.1.3, but that breaks too many other things.
22328# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22329echo "$as_me:$LINENO: checking for fseeko" >&5
22330echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22331if test "${ac_cv_func_fseeko+set}" = set; then
22332 echo $ECHO_N "(cached) $ECHO_C" >&6
22333else
22334 cat >conftest.$ac_ext <<_ACEOF
22335/* confdefs.h. */
22336_ACEOF
22337cat confdefs.h >>conftest.$ac_ext
22338cat >>conftest.$ac_ext <<_ACEOF
22339/* end confdefs.h. */
22340#include <stdio.h>
22341int
22342main ()
22343{
22344return fseeko && fseeko (stdin, 0, 0);
22345 ;
22346 return 0;
22347}
22348_ACEOF
22349rm -f conftest.$ac_objext conftest$ac_exeext
22350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22351 (eval $ac_link) 2>conftest.er1
22352 ac_status=$?
22353 grep -v '^ *+' conftest.er1 >conftest.err
22354 rm -f conftest.er1
22355 cat conftest.err >&5
22356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 (exit $ac_status); } &&
3f60522a
JS
22358 { ac_try='test -z "$ac_cxx_werror_flag"
22359 || test ! -s conftest.err'
5294a27e
VZ
22360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22361 (eval $ac_try) 2>&5
22362 ac_status=$?
22363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364 (exit $ac_status); }; } &&
22365 { ac_try='test -s conftest$ac_exeext'
22366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22367 (eval $ac_try) 2>&5
22368 ac_status=$?
22369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22370 (exit $ac_status); }; }; then
22371 ac_cv_func_fseeko=yes
22372else
22373 echo "$as_me: failed program was:" >&5
22374sed 's/^/| /' conftest.$ac_ext >&5
22375
22376ac_cv_func_fseeko=no
22377fi
22378rm -f conftest.err conftest.$ac_objext \
22379 conftest$ac_exeext conftest.$ac_ext
22380fi
22381echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22382echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22383if test $ac_cv_func_fseeko = yes; then
22384
22385cat >>confdefs.h <<\_ACEOF
22386#define HAVE_FSEEKO 1
22387_ACEOF
22388
22389fi
22390
5b674b9d 22391 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 22392 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 22393 fi
a848cd7e
SC
22394fi
22395
22396echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22397echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22398if test "${ac_cv_c_bigendian+set}" = set; then
22399 echo $ECHO_N "(cached) $ECHO_C" >&6
22400else
22401 ac_cv_c_bigendian=unknown
22402# See if sys/param.h defines the BYTE_ORDER macro.
22403cat >conftest.$ac_ext <<_ACEOF
22404/* confdefs.h. */
22405_ACEOF
22406cat confdefs.h >>conftest.$ac_ext
22407cat >>conftest.$ac_ext <<_ACEOF
22408/* end confdefs.h. */
22409#include <sys/types.h>
22410#include <sys/param.h>
22411int
22412main ()
22413{
22414
22415#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22416 bogus endian macros
22417#endif
22418 ;
22419 return 0;
22420}
22421_ACEOF
22422rm -f conftest.$ac_objext
22423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22424 (eval $ac_compile) 2>conftest.er1
a848cd7e 22425 ac_status=$?
ac1cb8d3
VS
22426 grep -v '^ *+' conftest.er1 >conftest.err
22427 rm -f conftest.er1
22428 cat conftest.err >&5
a848cd7e
SC
22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430 (exit $ac_status); } &&
3f60522a
JS
22431 { ac_try='test -z "$ac_cxx_werror_flag"
22432 || test ! -s conftest.err'
ac1cb8d3
VS
22433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22434 (eval $ac_try) 2>&5
22435 ac_status=$?
22436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22437 (exit $ac_status); }; } &&
22438 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22440 (eval $ac_try) 2>&5
22441 ac_status=$?
22442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443 (exit $ac_status); }; }; then
22444 # It does; now see whether it defined to BIG_ENDIAN or not.
22445cat >conftest.$ac_ext <<_ACEOF
22446/* confdefs.h. */
22447_ACEOF
22448cat confdefs.h >>conftest.$ac_ext
22449cat >>conftest.$ac_ext <<_ACEOF
22450/* end confdefs.h. */
22451#include <sys/types.h>
22452#include <sys/param.h>
22453int
22454main ()
22455{
22456
22457#if BYTE_ORDER != BIG_ENDIAN
22458 not big endian
22459#endif
22460 ;
22461 return 0;
22462}
22463_ACEOF
22464rm -f conftest.$ac_objext
22465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22466 (eval $ac_compile) 2>conftest.er1
a848cd7e 22467 ac_status=$?
ac1cb8d3
VS
22468 grep -v '^ *+' conftest.er1 >conftest.err
22469 rm -f conftest.er1
22470 cat conftest.err >&5
a848cd7e
SC
22471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472 (exit $ac_status); } &&
3f60522a
JS
22473 { ac_try='test -z "$ac_cxx_werror_flag"
22474 || test ! -s conftest.err'
ac1cb8d3
VS
22475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22476 (eval $ac_try) 2>&5
22477 ac_status=$?
22478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479 (exit $ac_status); }; } &&
22480 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22482 (eval $ac_try) 2>&5
22483 ac_status=$?
22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); }; }; then
22486 ac_cv_c_bigendian=yes
22487else
22488 echo "$as_me: failed program was:" >&5
22489sed 's/^/| /' conftest.$ac_ext >&5
22490
22491ac_cv_c_bigendian=no
22492fi
ac1cb8d3 22493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22494else
22495 echo "$as_me: failed program was:" >&5
22496sed 's/^/| /' conftest.$ac_ext >&5
22497
22498fi
ac1cb8d3 22499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22500if test $ac_cv_c_bigendian = unknown; then
22501if test "$cross_compiling" = yes; then
22502 ac_cv_c_bigendian=unknown
22503else
22504 cat >conftest.$ac_ext <<_ACEOF
22505/* confdefs.h. */
22506_ACEOF
22507cat confdefs.h >>conftest.$ac_ext
22508cat >>conftest.$ac_ext <<_ACEOF
22509/* end confdefs.h. */
22510main () {
22511 /* Are we little or big endian? From Harbison&Steele. */
22512 union
22513 {
22514 long l;
22515 char c[sizeof (long)];
22516 } u;
22517 u.l = 1;
22518 exit (u.c[sizeof (long) - 1] == 1);
22519}
22520_ACEOF
22521rm -f conftest$ac_exeext
22522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22523 (eval $ac_link) 2>&5
22524 ac_status=$?
22525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22528 (eval $ac_try) 2>&5
22529 ac_status=$?
22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); }; }; then
22532 ac_cv_c_bigendian=no
22533else
22534 echo "$as_me: program exited with status $ac_status" >&5
22535echo "$as_me: failed program was:" >&5
22536sed 's/^/| /' conftest.$ac_ext >&5
22537
22538( exit $ac_status )
22539ac_cv_c_bigendian=yes
22540fi
ac1cb8d3 22541rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22542fi
22543fi
22544fi
22545echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22546echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22547if test $ac_cv_c_bigendian = unknown; then
22548 { 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
22549echo "$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;}
22550fi
22551if test $ac_cv_c_bigendian = yes; then
22552 cat >>confdefs.h <<\_ACEOF
22553#define WORDS_BIGENDIAN 1
22554_ACEOF
22555
22556fi
22557
22558
a848cd7e
SC
22559
22560
22561
22562 ac_ext=cc
22563ac_cpp='$CXXCPP $CPPFLAGS'
22564ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22565ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22566ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22567
22568
22569
22570for ac_header in iostream
22571do
22572as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22573if eval "test \"\${$as_ac_Header+set}\" = set"; then
22574 echo "$as_me:$LINENO: checking for $ac_header" >&5
22575echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22576if eval "test \"\${$as_ac_Header+set}\" = set"; then
22577 echo $ECHO_N "(cached) $ECHO_C" >&6
22578fi
22579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22580echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22581else
22582 # Is the header compilable?
22583echo "$as_me:$LINENO: checking $ac_header usability" >&5
22584echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22585cat >conftest.$ac_ext <<_ACEOF
22586/* confdefs.h. */
22587_ACEOF
22588cat confdefs.h >>conftest.$ac_ext
22589cat >>conftest.$ac_ext <<_ACEOF
22590/* end confdefs.h. */
22591$ac_includes_default
22592#include <$ac_header>
22593_ACEOF
22594rm -f conftest.$ac_objext
22595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22596 (eval $ac_compile) 2>conftest.er1
a848cd7e 22597 ac_status=$?
ac1cb8d3
VS
22598 grep -v '^ *+' conftest.er1 >conftest.err
22599 rm -f conftest.er1
22600 cat conftest.err >&5
a848cd7e
SC
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); } &&
3f60522a
JS
22603 { ac_try='test -z "$ac_cxx_werror_flag"
22604 || test ! -s conftest.err'
ac1cb8d3
VS
22605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22606 (eval $ac_try) 2>&5
22607 ac_status=$?
22608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609 (exit $ac_status); }; } &&
22610 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22612 (eval $ac_try) 2>&5
22613 ac_status=$?
22614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615 (exit $ac_status); }; }; then
22616 ac_header_compiler=yes
22617else
22618 echo "$as_me: failed program was:" >&5
22619sed 's/^/| /' conftest.$ac_ext >&5
22620
22621ac_header_compiler=no
22622fi
ac1cb8d3 22623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22624echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22625echo "${ECHO_T}$ac_header_compiler" >&6
22626
22627# Is the header present?
22628echo "$as_me:$LINENO: checking $ac_header presence" >&5
22629echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22630cat >conftest.$ac_ext <<_ACEOF
22631/* confdefs.h. */
22632_ACEOF
22633cat confdefs.h >>conftest.$ac_ext
22634cat >>conftest.$ac_ext <<_ACEOF
22635/* end confdefs.h. */
22636#include <$ac_header>
22637_ACEOF
22638if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22640 ac_status=$?
22641 grep -v '^ *+' conftest.er1 >conftest.err
22642 rm -f conftest.er1
22643 cat conftest.err >&5
22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); } >/dev/null; then
22646 if test -s conftest.err; then
22647 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22648 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22649 else
22650 ac_cpp_err=
22651 fi
22652else
22653 ac_cpp_err=yes
22654fi
22655if test -z "$ac_cpp_err"; then
22656 ac_header_preproc=yes
22657else
22658 echo "$as_me: failed program was:" >&5
22659sed 's/^/| /' conftest.$ac_ext >&5
22660
22661 ac_header_preproc=no
22662fi
22663rm -f conftest.err conftest.$ac_ext
22664echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22665echo "${ECHO_T}$ac_header_preproc" >&6
22666
22667# So? What about this header?
ac1cb8d3
VS
22668case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22669 yes:no: )
a848cd7e
SC
22670 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22671echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22673echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22674 ac_header_preproc=yes
a848cd7e 22675 ;;
ac1cb8d3 22676 no:yes:* )
a848cd7e
SC
22677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22678echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22680echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22681 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22682echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22683 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22684echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22686echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22687 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22688echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22689 (
22690 cat <<\_ASBOX
ac1cb8d3
VS
22691## ----------------------------------------- ##
22692## Report this to wx-dev@lists.wxwidgets.org ##
22693## ----------------------------------------- ##
a848cd7e
SC
22694_ASBOX
22695 ) |
22696 sed "s/^/$as_me: WARNING: /" >&2
22697 ;;
22698esac
22699echo "$as_me:$LINENO: checking for $ac_header" >&5
22700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22701if eval "test \"\${$as_ac_Header+set}\" = set"; then
22702 echo $ECHO_N "(cached) $ECHO_C" >&6
22703else
ac1cb8d3 22704 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22705fi
22706echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22707echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22708
22709fi
22710if test `eval echo '${'$as_ac_Header'}'` = yes; then
22711 cat >>confdefs.h <<_ACEOF
22712#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22713_ACEOF
22714
22715fi
22716
22717done
22718
22719
22720 if test "$ac_cv_header_iostream" = "yes" ; then
22721 :
22722 else
22723 cat >>confdefs.h <<\_ACEOF
22724#define wxUSE_IOSTREAMH 1
22725_ACEOF
22726
22727 fi
22728
5d7b7554
VZ
22729 ac_ext=cc
22730ac_cpp='$CXXCPP $CPPFLAGS'
22731ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22732ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22733ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22734
22735
22736
22737
22738 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22739echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22740if test "${wx_cv_cpp_bool+set}" = set; then
22741 echo $ECHO_N "(cached) $ECHO_C" >&6
22742else
22743
22744
22745
22746 ac_ext=cc
22747ac_cpp='$CXXCPP $CPPFLAGS'
22748ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22749ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22750ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22751
22752
22753 cat >conftest.$ac_ext <<_ACEOF
22754/* confdefs.h. */
22755_ACEOF
22756cat confdefs.h >>conftest.$ac_ext
22757cat >>conftest.$ac_ext <<_ACEOF
22758/* end confdefs.h. */
22759
22760
22761int
22762main ()
22763{
22764
22765 bool b = true;
22766
22767 return 0;
22768
22769 ;
22770 return 0;
22771}
22772_ACEOF
22773rm -f conftest.$ac_objext
22774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22775 (eval $ac_compile) 2>conftest.er1
a848cd7e 22776 ac_status=$?
ac1cb8d3
VS
22777 grep -v '^ *+' conftest.er1 >conftest.err
22778 rm -f conftest.er1
22779 cat conftest.err >&5
a848cd7e
SC
22780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781 (exit $ac_status); } &&
3f60522a
JS
22782 { ac_try='test -z "$ac_cxx_werror_flag"
22783 || test ! -s conftest.err'
ac1cb8d3
VS
22784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22785 (eval $ac_try) 2>&5
22786 ac_status=$?
22787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788 (exit $ac_status); }; } &&
22789 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22791 (eval $ac_try) 2>&5
22792 ac_status=$?
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); }; }; then
22795
22796 wx_cv_cpp_bool=yes
22797
22798else
22799 echo "$as_me: failed program was:" >&5
22800sed 's/^/| /' conftest.$ac_ext >&5
22801
22802
22803 wx_cv_cpp_bool=no
22804
22805
22806fi
ac1cb8d3 22807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22808
5d7b7554
VZ
22809 ac_ext=cc
22810ac_cpp='$CXXCPP $CPPFLAGS'
22811ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22812ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22813ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22814
22815
22816fi
22817echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22818echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22819
22820 if test "$wx_cv_cpp_bool" = "yes"; then
22821 cat >>confdefs.h <<\_ACEOF
22822#define HAVE_BOOL 1
22823_ACEOF
22824
22825 fi
22826
22827
22828
22829 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22830echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22831if test "${wx_cv_explicit+set}" = set; then
22832 echo $ECHO_N "(cached) $ECHO_C" >&6
22833else
22834
22835
22836
22837 ac_ext=cc
22838ac_cpp='$CXXCPP $CPPFLAGS'
22839ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22840ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22841ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22842
22843
22844 cat >conftest.$ac_ext <<_ACEOF
22845/* confdefs.h. */
22846_ACEOF
22847cat confdefs.h >>conftest.$ac_ext
22848cat >>conftest.$ac_ext <<_ACEOF
22849/* end confdefs.h. */
22850
22851 class Foo { public: explicit Foo(int) {} };
22852
22853int
22854main ()
22855{
22856
22857 return 0;
22858
22859 ;
22860 return 0;
22861}
22862_ACEOF
22863rm -f conftest.$ac_objext
22864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22865 (eval $ac_compile) 2>conftest.er1
a848cd7e 22866 ac_status=$?
ac1cb8d3
VS
22867 grep -v '^ *+' conftest.er1 >conftest.err
22868 rm -f conftest.er1
22869 cat conftest.err >&5
a848cd7e
SC
22870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871 (exit $ac_status); } &&
3f60522a
JS
22872 { ac_try='test -z "$ac_cxx_werror_flag"
22873 || test ! -s conftest.err'
ac1cb8d3
VS
22874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22875 (eval $ac_try) 2>&5
22876 ac_status=$?
22877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878 (exit $ac_status); }; } &&
22879 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22881 (eval $ac_try) 2>&5
22882 ac_status=$?
22883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884 (exit $ac_status); }; }; then
22885
22886 cat >conftest.$ac_ext <<_ACEOF
22887/* confdefs.h. */
22888_ACEOF
22889cat confdefs.h >>conftest.$ac_ext
22890cat >>conftest.$ac_ext <<_ACEOF
22891/* end confdefs.h. */
22892
22893 class Foo { public: explicit Foo(int) {} };
22894 static void TakeFoo(const Foo& foo) { }
22895
22896int
22897main ()
22898{
22899
22900 TakeFoo(17);
22901 return 0;
22902
22903 ;
22904 return 0;
22905}
22906_ACEOF
22907rm -f conftest.$ac_objext
22908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22909 (eval $ac_compile) 2>conftest.er1
a848cd7e 22910 ac_status=$?
ac1cb8d3
VS
22911 grep -v '^ *+' conftest.er1 >conftest.err
22912 rm -f conftest.er1
22913 cat conftest.err >&5
a848cd7e
SC
22914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915 (exit $ac_status); } &&
3f60522a
JS
22916 { ac_try='test -z "$ac_cxx_werror_flag"
22917 || test ! -s conftest.err'
ac1cb8d3
VS
22918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22919 (eval $ac_try) 2>&5
22920 ac_status=$?
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); }; } &&
22923 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22925 (eval $ac_try) 2>&5
22926 ac_status=$?
22927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928 (exit $ac_status); }; }; then
22929 wx_cv_explicit=no
22930else
22931 echo "$as_me: failed program was:" >&5
22932sed 's/^/| /' conftest.$ac_ext >&5
22933
22934wx_cv_explicit=yes
22935
22936fi
ac1cb8d3 22937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22938
22939else
22940 echo "$as_me: failed program was:" >&5
22941sed 's/^/| /' conftest.$ac_ext >&5
22942
22943wx_cv_explicit=no
22944
22945fi
ac1cb8d3 22946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22947
5d7b7554
VZ
22948 ac_ext=cc
22949ac_cpp='$CXXCPP $CPPFLAGS'
22950ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22951ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22952ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22953
22954
22955fi
22956echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22957echo "${ECHO_T}$wx_cv_explicit" >&6
22958
22959 if test "$wx_cv_explicit" = "yes"; then
22960 cat >>confdefs.h <<\_ACEOF
22961#define HAVE_EXPLICIT 1
22962_ACEOF
22963
22964 fi
22965
22966
22967echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22968echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22969if test "${ac_cv_cxx_const_cast+set}" = set; then
22970 echo $ECHO_N "(cached) $ECHO_C" >&6
22971else
22972
22973
22974 ac_ext=cc
22975ac_cpp='$CXXCPP $CPPFLAGS'
22976ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22977ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22978ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22979
22980 cat >conftest.$ac_ext <<_ACEOF
22981/* confdefs.h. */
22982_ACEOF
22983cat confdefs.h >>conftest.$ac_ext
22984cat >>conftest.$ac_ext <<_ACEOF
22985/* end confdefs.h. */
22986
22987int
22988main ()
22989{
22990int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22991 ;
22992 return 0;
22993}
22994_ACEOF
22995rm -f conftest.$ac_objext
22996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22997 (eval $ac_compile) 2>conftest.er1
a848cd7e 22998 ac_status=$?
ac1cb8d3
VS
22999 grep -v '^ *+' conftest.er1 >conftest.err
23000 rm -f conftest.er1
23001 cat conftest.err >&5
a848cd7e
SC
23002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23003 (exit $ac_status); } &&
3f60522a
JS
23004 { ac_try='test -z "$ac_cxx_werror_flag"
23005 || test ! -s conftest.err'
ac1cb8d3
VS
23006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23007 (eval $ac_try) 2>&5
23008 ac_status=$?
23009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010 (exit $ac_status); }; } &&
23011 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23013 (eval $ac_try) 2>&5
23014 ac_status=$?
23015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23016 (exit $ac_status); }; }; then
23017 ac_cv_cxx_const_cast=yes
23018else
23019 echo "$as_me: failed program was:" >&5
23020sed 's/^/| /' conftest.$ac_ext >&5
23021
23022ac_cv_cxx_const_cast=no
23023fi
ac1cb8d3 23024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23025 ac_ext=cc
23026ac_cpp='$CXXCPP $CPPFLAGS'
23027ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23028ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23029ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23030
23031
23032fi
23033echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23034echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
23035if test "$ac_cv_cxx_const_cast" = yes; then
23036
23037cat >>confdefs.h <<\_ACEOF
23038#define HAVE_CONST_CAST
23039_ACEOF
23040
23041fi
23042
7714864e
RL
23043echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23044echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
23045if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23046 echo $ECHO_N "(cached) $ECHO_C" >&6
23047else
23048
23049
23050 ac_ext=cc
23051ac_cpp='$CXXCPP $CPPFLAGS'
23052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23055
23056 cat >conftest.$ac_ext <<_ACEOF
23057/* confdefs.h. */
23058_ACEOF
23059cat confdefs.h >>conftest.$ac_ext
23060cat >>conftest.$ac_ext <<_ACEOF
23061/* end confdefs.h. */
23062#include <typeinfo>
23063class Base { public : Base () {} virtual void f () = 0;};
23064class Derived : public Base { public : Derived () {} virtual void f () {} };
23065class Unrelated { public : Unrelated () {} };
23066int g (Unrelated&) { return 0; }
23067int
23068main ()
23069{
23070
23071Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23072 ;
23073 return 0;
23074}
23075_ACEOF
23076rm -f conftest.$ac_objext
23077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23078 (eval $ac_compile) 2>conftest.er1
23079 ac_status=$?
23080 grep -v '^ *+' conftest.er1 >conftest.err
23081 rm -f conftest.er1
23082 cat conftest.err >&5
23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); } &&
3f60522a
JS
23085 { ac_try='test -z "$ac_cxx_werror_flag"
23086 || test ! -s conftest.err'
7714864e
RL
23087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23088 (eval $ac_try) 2>&5
23089 ac_status=$?
23090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23091 (exit $ac_status); }; } &&
23092 { ac_try='test -s conftest.$ac_objext'
23093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23094 (eval $ac_try) 2>&5
23095 ac_status=$?
23096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097 (exit $ac_status); }; }; then
23098 ac_cv_cxx_reinterpret_cast=yes
23099else
23100 echo "$as_me: failed program was:" >&5
23101sed 's/^/| /' conftest.$ac_ext >&5
23102
23103ac_cv_cxx_reinterpret_cast=no
23104fi
23105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23106 ac_ext=cc
23107ac_cpp='$CXXCPP $CPPFLAGS'
23108ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23109ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23110ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7714864e
RL
23111
23112
23113fi
23114echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23115echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
23116if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23117
23118cat >>confdefs.h <<\_ACEOF
23119#define HAVE_REINTERPRET_CAST
23120_ACEOF
23121
23122fi
23123
a848cd7e
SC
23124echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23125echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
23126if test "${ac_cv_cxx_static_cast+set}" = set; then
23127 echo $ECHO_N "(cached) $ECHO_C" >&6
23128else
23129
23130
23131 ac_ext=cc
23132ac_cpp='$CXXCPP $CPPFLAGS'
23133ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23134ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23135ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23136
23137 cat >conftest.$ac_ext <<_ACEOF
23138/* confdefs.h. */
23139_ACEOF
23140cat confdefs.h >>conftest.$ac_ext
23141cat >>conftest.$ac_ext <<_ACEOF
23142/* end confdefs.h. */
23143#include <typeinfo>
23144class Base { public : Base () {} virtual void f () = 0; };
23145class Derived : public Base { public : Derived () {} virtual void f () {} };
23146int g (Derived&) { return 0; }
23147int
23148main ()
23149{
23150
23151Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23152 ;
23153 return 0;
23154}
23155_ACEOF
23156rm -f conftest.$ac_objext
23157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23158 (eval $ac_compile) 2>conftest.er1
a848cd7e 23159 ac_status=$?
ac1cb8d3
VS
23160 grep -v '^ *+' conftest.er1 >conftest.err
23161 rm -f conftest.er1
23162 cat conftest.err >&5
a848cd7e
SC
23163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164 (exit $ac_status); } &&
3f60522a
JS
23165 { ac_try='test -z "$ac_cxx_werror_flag"
23166 || test ! -s conftest.err'
ac1cb8d3
VS
23167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23168 (eval $ac_try) 2>&5
23169 ac_status=$?
23170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171 (exit $ac_status); }; } &&
23172 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23174 (eval $ac_try) 2>&5
23175 ac_status=$?
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); }; }; then
23178 ac_cv_cxx_static_cast=yes
23179else
23180 echo "$as_me: failed program was:" >&5
23181sed 's/^/| /' conftest.$ac_ext >&5
23182
23183ac_cv_cxx_static_cast=no
23184fi
ac1cb8d3 23185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23186 ac_ext=cc
23187ac_cpp='$CXXCPP $CPPFLAGS'
23188ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23189ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23190ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23191
23192
23193fi
23194echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23195echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23196if test "$ac_cv_cxx_static_cast" = yes; then
23197
23198cat >>confdefs.h <<\_ACEOF
23199#define HAVE_STATIC_CAST
23200_ACEOF
23201
23202fi
23203
23204
3c28b7cb 23205if test "x$SUNCXX" = xyes; then
c92ad099 23206 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
23207fi
23208
9122d155 23209if test "x$SUNCC" = xyes; then
c92ad099 23210 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
23211fi
23212
0ad5d837 23213if test "x$SGICC" = "xyes"; then
c92ad099 23214 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
23215fi
23216if test "x$SGICXX" = "xyes"; then
c92ad099 23217 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
23218fi
23219
2eef8513 23220if test "x$HPCC" = "xyes"; then
c92ad099 23221 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
23222fi
23223if test "x$HPCXX" = "xyes"; then
c92ad099 23224 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
23225fi
23226
23227if test "x$COMPAQCXX" = "xyes"; then
23228 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23229fi
23230
f56c22b4 23231if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
23232 if test "$wxUSE_UNICODE" = "yes"; then
23233 std_string="std::wstring"
23234 char_type="wchar_t"
23235 else
23236 std_string="std::string"
23237 char_type="char"
23238 fi
23239
23240 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23241echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
23242 cat >conftest.$ac_ext <<_ACEOF
23243/* confdefs.h. */
23244_ACEOF
23245cat confdefs.h >>conftest.$ac_ext
23246cat >>conftest.$ac_ext <<_ACEOF
23247/* end confdefs.h. */
23248#include <string>
a848cd7e
SC
23249int
23250main ()
23251{
f56c22b4 23252$std_string foo;
a848cd7e
SC
23253 ;
23254 return 0;
23255}
23256_ACEOF
23257rm -f conftest.$ac_objext
23258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23259 (eval $ac_compile) 2>conftest.er1
a848cd7e 23260 ac_status=$?
ac1cb8d3
VS
23261 grep -v '^ *+' conftest.er1 >conftest.err
23262 rm -f conftest.er1
23263 cat conftest.err >&5
a848cd7e
SC
23264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265 (exit $ac_status); } &&
3f60522a
JS
23266 { ac_try='test -z "$ac_cxx_werror_flag"
23267 || test ! -s conftest.err'
ac1cb8d3
VS
23268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23269 (eval $ac_try) 2>&5
23270 ac_status=$?
23271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 (exit $ac_status); }; } &&
23273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23275 (eval $ac_try) 2>&5
23276 ac_status=$?
23277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278 (exit $ac_status); }; }; then
23279 echo "$as_me:$LINENO: result: yes" >&5
23280echo "${ECHO_T}yes" >&6
0a08f02a
MB
23281 cat >>confdefs.h <<\_ACEOF
23282#define HAVE_STD_WSTRING 1
23283_ACEOF
23284
a848cd7e
SC
23285else
23286 echo "$as_me: failed program was:" >&5
23287sed 's/^/| /' conftest.$ac_ext >&5
23288
23289echo "$as_me:$LINENO: result: no" >&5
23290echo "${ECHO_T}no" >&6
f56c22b4
MW
23291 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23292echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
23293 cat >conftest.$ac_ext <<_ACEOF
23294/* confdefs.h. */
23295_ACEOF
23296cat confdefs.h >>conftest.$ac_ext
23297cat >>conftest.$ac_ext <<_ACEOF
23298/* end confdefs.h. */
23299
23300 #ifdef HAVE_WCHAR_H
23301 # ifdef __CYGWIN__
23302 # include <stddef.h>
23303 # endif
23304 # include <wchar.h>
23305 #endif
23306 #ifdef HAVE_STDLIB_H
23307 # include <stdlib.h>
23308 #endif
23309 #include <stdio.h>
23310 #include <string>
23311
23312int
23313main ()
23314{
f56c22b4
MW
23315std::basic_string<$char_type> foo;
23316 const $char_type* dummy = foo.c_str();
0a08f02a
MB
23317 ;
23318 return 0;
23319}
23320_ACEOF
23321rm -f conftest.$ac_objext
23322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23323 (eval $ac_compile) 2>conftest.er1
23324 ac_status=$?
23325 grep -v '^ *+' conftest.er1 >conftest.err
23326 rm -f conftest.er1
23327 cat conftest.err >&5
23328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329 (exit $ac_status); } &&
3f60522a
JS
23330 { ac_try='test -z "$ac_cxx_werror_flag"
23331 || test ! -s conftest.err'
0a08f02a
MB
23332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23333 (eval $ac_try) 2>&5
23334 ac_status=$?
23335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336 (exit $ac_status); }; } &&
23337 { ac_try='test -s conftest.$ac_objext'
23338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23339 (eval $ac_try) 2>&5
23340 ac_status=$?
23341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342 (exit $ac_status); }; }; then
23343 echo "$as_me:$LINENO: result: yes" >&5
23344echo "${ECHO_T}yes" >&6
23345else
23346 echo "$as_me: failed program was:" >&5
23347sed 's/^/| /' conftest.$ac_ext >&5
23348
23349echo "$as_me:$LINENO: result: no" >&5
23350echo "${ECHO_T}no" >&6
f56c22b4 23351 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
23352 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23353echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23354 { (exit 1); exit 1; }; }
23355 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23356 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23357echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 23358 { (exit 1); exit 1; }; }
f56c22b4
MW
23359 else
23360 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23361echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23362 wxUSE_STD_STRING=no
23363 fi
23364
0a08f02a 23365
a848cd7e 23366fi
ac1cb8d3 23367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23368
0a08f02a
MB
23369fi
23370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4
MW
23371fi
23372
23373if test "$wxUSE_STD_IOSTREAM" = "yes"; then
f56c22b4
MW
23374 echo "$as_me:$LINENO: checking for std::istream" >&5
23375echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23376if test "${ac_cv_type_std__istream+set}" = set; then
23377 echo $ECHO_N "(cached) $ECHO_C" >&6
23378else
23379 cat >conftest.$ac_ext <<_ACEOF
23380/* confdefs.h. */
23381_ACEOF
23382cat confdefs.h >>conftest.$ac_ext
23383cat >>conftest.$ac_ext <<_ACEOF
23384/* end confdefs.h. */
23385#include <iostream>
23386
23387int
23388main ()
23389{
23390if ((std::istream *) 0)
23391 return 0;
23392if (sizeof (std::istream))
23393 return 0;
23394 ;
23395 return 0;
23396}
23397_ACEOF
23398rm -f conftest.$ac_objext
23399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23400 (eval $ac_compile) 2>conftest.er1
23401 ac_status=$?
23402 grep -v '^ *+' conftest.er1 >conftest.err
23403 rm -f conftest.er1
23404 cat conftest.err >&5
23405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406 (exit $ac_status); } &&
3f60522a
JS
23407 { ac_try='test -z "$ac_cxx_werror_flag"
23408 || test ! -s conftest.err'
f56c22b4
MW
23409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23410 (eval $ac_try) 2>&5
23411 ac_status=$?
23412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413 (exit $ac_status); }; } &&
23414 { ac_try='test -s conftest.$ac_objext'
23415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23416 (eval $ac_try) 2>&5
23417 ac_status=$?
23418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419 (exit $ac_status); }; }; then
23420 ac_cv_type_std__istream=yes
23421else
23422 echo "$as_me: failed program was:" >&5
23423sed 's/^/| /' conftest.$ac_ext >&5
23424
23425ac_cv_type_std__istream=no
23426fi
23427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23428fi
23429echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23430echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23431if test $ac_cv_type_std__istream = yes; then
23432
23433cat >>confdefs.h <<_ACEOF
23434#define HAVE_STD__ISTREAM 1
23435_ACEOF
23436
23437
23438else
23439 wxUSE_STD_IOSTREAM=no
23440fi
23441echo "$as_me:$LINENO: checking for std::ostream" >&5
23442echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23443if test "${ac_cv_type_std__ostream+set}" = set; then
23444 echo $ECHO_N "(cached) $ECHO_C" >&6
23445else
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#include <iostream>
23453
23454int
23455main ()
23456{
23457if ((std::ostream *) 0)
23458 return 0;
23459if (sizeof (std::ostream))
23460 return 0;
23461 ;
23462 return 0;
23463}
23464_ACEOF
23465rm -f conftest.$ac_objext
23466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23467 (eval $ac_compile) 2>conftest.er1
23468 ac_status=$?
23469 grep -v '^ *+' conftest.er1 >conftest.err
23470 rm -f conftest.er1
23471 cat conftest.err >&5
23472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); } &&
3f60522a
JS
23474 { ac_try='test -z "$ac_cxx_werror_flag"
23475 || test ! -s conftest.err'
f56c22b4
MW
23476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23477 (eval $ac_try) 2>&5
23478 ac_status=$?
23479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480 (exit $ac_status); }; } &&
23481 { ac_try='test -s conftest.$ac_objext'
23482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23483 (eval $ac_try) 2>&5
23484 ac_status=$?
23485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486 (exit $ac_status); }; }; then
23487 ac_cv_type_std__ostream=yes
23488else
23489 echo "$as_me: failed program was:" >&5
23490sed 's/^/| /' conftest.$ac_ext >&5
23491
23492ac_cv_type_std__ostream=no
23493fi
23494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23495fi
23496echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23497echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23498if test $ac_cv_type_std__ostream = yes; then
23499
23500cat >>confdefs.h <<_ACEOF
23501#define HAVE_STD__OSTREAM 1
23502_ACEOF
23503
23504
23505else
23506 wxUSE_STD_IOSTREAM=no
23507fi
23508
23509
23510 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
23511 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23512 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23513echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23514 { (exit 1); exit 1; }; }
23515 else
23516 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23517echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23518 fi
f56c22b4 23519 fi
0a08f02a
MB
23520fi
23521
23522if test "$wxUSE_STL" = "yes"; then
0a08f02a
MB
23523 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23524echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
23525 cat >conftest.$ac_ext <<_ACEOF
23526/* confdefs.h. */
23527_ACEOF
23528cat confdefs.h >>conftest.$ac_ext
23529cat >>conftest.$ac_ext <<_ACEOF
23530/* end confdefs.h. */
23531#include <string>
0a08f02a
MB
23532 #include <functional>
23533 #include <algorithm>
23534 #include <vector>
23535 #include <list>
a848cd7e
SC
23536int
23537main ()
23538{
0a08f02a
MB
23539std::vector<int> moo;
23540 std::list<int> foo;
23541 std::vector<int>::iterator it =
23542 std::find_if(moo.begin(), moo.end(),
23543 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23544 ;
23545 return 0;
23546}
23547_ACEOF
23548rm -f conftest.$ac_objext
23549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23550 (eval $ac_compile) 2>conftest.er1
a848cd7e 23551 ac_status=$?
ac1cb8d3
VS
23552 grep -v '^ *+' conftest.er1 >conftest.err
23553 rm -f conftest.er1
23554 cat conftest.err >&5
a848cd7e
SC
23555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23556 (exit $ac_status); } &&
3f60522a
JS
23557 { ac_try='test -z "$ac_cxx_werror_flag"
23558 || test ! -s conftest.err'
ac1cb8d3
VS
23559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23560 (eval $ac_try) 2>&5
23561 ac_status=$?
23562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23563 (exit $ac_status); }; } &&
23564 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23566 (eval $ac_try) 2>&5
23567 ac_status=$?
23568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569 (exit $ac_status); }; }; then
23570 echo "$as_me:$LINENO: result: yes" >&5
23571echo "${ECHO_T}yes" >&6
a848cd7e
SC
23572else
23573 echo "$as_me: failed program was:" >&5
23574sed 's/^/| /' conftest.$ac_ext >&5
23575
23576echo "$as_me:$LINENO: result: no" >&5
23577echo "${ECHO_T}no" >&6
0a08f02a
MB
23578 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23579echo "$as_me: error: Basic STL functionality missing" >&2;}
23580 { (exit 1); exit 1; }; }
a848cd7e 23581fi
ac1cb8d3 23582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23583
23584 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23585echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23586 cat >conftest.$ac_ext <<_ACEOF
23587/* confdefs.h. */
23588_ACEOF
23589cat confdefs.h >>conftest.$ac_ext
23590cat >>conftest.$ac_ext <<_ACEOF
23591/* end confdefs.h. */
23592#include <string>
23593int
23594main ()
23595{
23596std::string foo, bar;
23597 foo.compare(bar);
23598 foo.compare(1, 1, bar);
23599 foo.compare(1, 1, bar, 1, 1);
23600 foo.compare("");
23601 foo.compare(1, 1, "");
23602 foo.compare(1, 1, "", 2);
23603 ;
23604 return 0;
23605}
23606_ACEOF
23607rm -f conftest.$ac_objext
23608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23609 (eval $ac_compile) 2>conftest.er1
a848cd7e 23610 ac_status=$?
ac1cb8d3
VS
23611 grep -v '^ *+' conftest.er1 >conftest.err
23612 rm -f conftest.er1
23613 cat conftest.err >&5
a848cd7e
SC
23614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615 (exit $ac_status); } &&
3f60522a
JS
23616 { ac_try='test -z "$ac_cxx_werror_flag"
23617 || test ! -s conftest.err'
ac1cb8d3
VS
23618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23619 (eval $ac_try) 2>&5
23620 ac_status=$?
23621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23622 (exit $ac_status); }; } &&
23623 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23625 (eval $ac_try) 2>&5
23626 ac_status=$?
23627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628 (exit $ac_status); }; }; then
23629 echo "$as_me:$LINENO: result: yes" >&5
23630echo "${ECHO_T}yes" >&6
23631 cat >>confdefs.h <<\_ACEOF
23632#define HAVE_STD_STRING_COMPARE 1
23633_ACEOF
23634
23635else
23636 echo "$as_me: failed program was:" >&5
23637sed 's/^/| /' conftest.$ac_ext >&5
23638
23639echo "$as_me:$LINENO: result: no" >&5
23640echo "${ECHO_T}no" >&6
23641fi
ac1cb8d3 23642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23643
23644 if test "${ac_cv_header_hash_map+set}" = set; then
23645 echo "$as_me:$LINENO: checking for hash_map" >&5
23646echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23647if test "${ac_cv_header_hash_map+set}" = set; then
23648 echo $ECHO_N "(cached) $ECHO_C" >&6
23649fi
23650echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23651echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23652else
23653 # Is the header compilable?
23654echo "$as_me:$LINENO: checking hash_map usability" >&5
23655echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23656cat >conftest.$ac_ext <<_ACEOF
23657/* confdefs.h. */
23658_ACEOF
23659cat confdefs.h >>conftest.$ac_ext
23660cat >>conftest.$ac_ext <<_ACEOF
23661/* end confdefs.h. */
23662$ac_includes_default
23663#include <hash_map>
23664_ACEOF
23665rm -f conftest.$ac_objext
23666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23667 (eval $ac_compile) 2>conftest.er1
bdcade0a 23668 ac_status=$?
ac1cb8d3
VS
23669 grep -v '^ *+' conftest.er1 >conftest.err
23670 rm -f conftest.er1
23671 cat conftest.err >&5
bdcade0a
MB
23672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23673 (exit $ac_status); } &&
3f60522a
JS
23674 { ac_try='test -z "$ac_cxx_werror_flag"
23675 || test ! -s conftest.err'
ac1cb8d3
VS
23676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23677 (eval $ac_try) 2>&5
23678 ac_status=$?
23679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680 (exit $ac_status); }; } &&
23681 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23683 (eval $ac_try) 2>&5
23684 ac_status=$?
23685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23686 (exit $ac_status); }; }; then
23687 ac_header_compiler=yes
23688else
23689 echo "$as_me: failed program was:" >&5
23690sed 's/^/| /' conftest.$ac_ext >&5
23691
23692ac_header_compiler=no
23693fi
ac1cb8d3 23694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23695echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23696echo "${ECHO_T}$ac_header_compiler" >&6
23697
23698# Is the header present?
23699echo "$as_me:$LINENO: checking hash_map presence" >&5
23700echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23701cat >conftest.$ac_ext <<_ACEOF
23702/* confdefs.h. */
23703_ACEOF
23704cat confdefs.h >>conftest.$ac_ext
23705cat >>conftest.$ac_ext <<_ACEOF
23706/* end confdefs.h. */
23707#include <hash_map>
23708_ACEOF
23709if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23711 ac_status=$?
23712 grep -v '^ *+' conftest.er1 >conftest.err
23713 rm -f conftest.er1
23714 cat conftest.err >&5
23715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23716 (exit $ac_status); } >/dev/null; then
23717 if test -s conftest.err; then
23718 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23719 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23720 else
23721 ac_cpp_err=
23722 fi
23723else
23724 ac_cpp_err=yes
23725fi
23726if test -z "$ac_cpp_err"; then
23727 ac_header_preproc=yes
23728else
23729 echo "$as_me: failed program was:" >&5
23730sed 's/^/| /' conftest.$ac_ext >&5
23731
23732 ac_header_preproc=no
23733fi
23734rm -f conftest.err conftest.$ac_ext
23735echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23736echo "${ECHO_T}$ac_header_preproc" >&6
23737
23738# So? What about this header?
ac1cb8d3
VS
23739case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23740 yes:no: )
bdcade0a
MB
23741 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23742echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23743 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23744echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23745 ac_header_preproc=yes
bdcade0a 23746 ;;
ac1cb8d3 23747 no:yes:* )
bdcade0a
MB
23748 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23749echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23750 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23751echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23752 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23753echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23754 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23755echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23756 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23757echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23758 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23759echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23760 (
23761 cat <<\_ASBOX
ac1cb8d3
VS
23762## ----------------------------------------- ##
23763## Report this to wx-dev@lists.wxwidgets.org ##
23764## ----------------------------------------- ##
bdcade0a
MB
23765_ASBOX
23766 ) |
23767 sed "s/^/$as_me: WARNING: /" >&2
23768 ;;
23769esac
23770echo "$as_me:$LINENO: checking for hash_map" >&5
23771echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23772if test "${ac_cv_header_hash_map+set}" = set; then
23773 echo $ECHO_N "(cached) $ECHO_C" >&6
23774else
23775 ac_cv_header_hash_map=$ac_header_preproc
23776fi
23777echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23778echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23779
23780fi
23781if test $ac_cv_header_hash_map = yes; then
23782 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23783echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23784 cat >conftest.$ac_ext <<_ACEOF
23785/* confdefs.h. */
23786_ACEOF
23787cat confdefs.h >>conftest.$ac_ext
23788cat >>conftest.$ac_ext <<_ACEOF
23789/* end confdefs.h. */
23790#include <hash_map>
23791 #include <hash_set>
23792int
23793main ()
23794{
23795std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23796 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23797 ;
23798 return 0;
23799}
23800_ACEOF
23801rm -f conftest.$ac_objext
23802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23803 (eval $ac_compile) 2>conftest.er1
bdcade0a 23804 ac_status=$?
ac1cb8d3
VS
23805 grep -v '^ *+' conftest.er1 >conftest.err
23806 rm -f conftest.er1
23807 cat conftest.err >&5
bdcade0a
MB
23808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809 (exit $ac_status); } &&
3f60522a
JS
23810 { ac_try='test -z "$ac_cxx_werror_flag"
23811 || test ! -s conftest.err'
ac1cb8d3
VS
23812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23813 (eval $ac_try) 2>&5
23814 ac_status=$?
23815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816 (exit $ac_status); }; } &&
23817 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23819 (eval $ac_try) 2>&5
23820 ac_status=$?
23821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822 (exit $ac_status); }; }; then
23823 echo "$as_me:$LINENO: result: yes" >&5
23824echo "${ECHO_T}yes" >&6
23825 cat >>confdefs.h <<\_ACEOF
23826#define HAVE_HASH_MAP 1
23827_ACEOF
23828
23829 cat >>confdefs.h <<\_ACEOF
23830#define HAVE_STD_HASH_MAP 1
23831_ACEOF
23832
23833else
23834 echo "$as_me: failed program was:" >&5
23835sed 's/^/| /' conftest.$ac_ext >&5
23836
23837echo "$as_me:$LINENO: result: no" >&5
23838echo "${ECHO_T}no" >&6
23839fi
ac1cb8d3 23840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23841
23842fi
23843
23844
23845
23846 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23847 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23848echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23849if test "${ac_cv_header_ext_hash_map+set}" = set; then
23850 echo $ECHO_N "(cached) $ECHO_C" >&6
23851fi
23852echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23853echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23854else
23855 # Is the header compilable?
23856echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23857echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23858cat >conftest.$ac_ext <<_ACEOF
23859/* confdefs.h. */
23860_ACEOF
23861cat confdefs.h >>conftest.$ac_ext
23862cat >>conftest.$ac_ext <<_ACEOF
23863/* end confdefs.h. */
23864$ac_includes_default
23865#include <ext/hash_map>
23866_ACEOF
23867rm -f conftest.$ac_objext
23868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23869 (eval $ac_compile) 2>conftest.er1
bdcade0a 23870 ac_status=$?
ac1cb8d3
VS
23871 grep -v '^ *+' conftest.er1 >conftest.err
23872 rm -f conftest.er1
23873 cat conftest.err >&5
bdcade0a
MB
23874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23875 (exit $ac_status); } &&
3f60522a
JS
23876 { ac_try='test -z "$ac_cxx_werror_flag"
23877 || test ! -s conftest.err'
ac1cb8d3
VS
23878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23879 (eval $ac_try) 2>&5
23880 ac_status=$?
23881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23882 (exit $ac_status); }; } &&
23883 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23885 (eval $ac_try) 2>&5
23886 ac_status=$?
23887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23888 (exit $ac_status); }; }; then
23889 ac_header_compiler=yes
23890else
23891 echo "$as_me: failed program was:" >&5
23892sed 's/^/| /' conftest.$ac_ext >&5
23893
23894ac_header_compiler=no
23895fi
ac1cb8d3 23896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23897echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23898echo "${ECHO_T}$ac_header_compiler" >&6
23899
23900# Is the header present?
23901echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23902echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23903cat >conftest.$ac_ext <<_ACEOF
23904/* confdefs.h. */
23905_ACEOF
23906cat confdefs.h >>conftest.$ac_ext
23907cat >>conftest.$ac_ext <<_ACEOF
23908/* end confdefs.h. */
23909#include <ext/hash_map>
23910_ACEOF
23911if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23913 ac_status=$?
23914 grep -v '^ *+' conftest.er1 >conftest.err
23915 rm -f conftest.er1
23916 cat conftest.err >&5
23917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918 (exit $ac_status); } >/dev/null; then
23919 if test -s conftest.err; then
23920 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23921 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23922 else
23923 ac_cpp_err=
23924 fi
23925else
23926 ac_cpp_err=yes
23927fi
23928if test -z "$ac_cpp_err"; then
23929 ac_header_preproc=yes
23930else
23931 echo "$as_me: failed program was:" >&5
23932sed 's/^/| /' conftest.$ac_ext >&5
23933
23934 ac_header_preproc=no
23935fi
23936rm -f conftest.err conftest.$ac_ext
23937echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23938echo "${ECHO_T}$ac_header_preproc" >&6
23939
23940# So? What about this header?
ac1cb8d3
VS
23941case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23942 yes:no: )
bdcade0a
MB
23943 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23944echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23945 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23946echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23947 ac_header_preproc=yes
bdcade0a 23948 ;;
ac1cb8d3 23949 no:yes:* )
bdcade0a
MB
23950 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23951echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23952 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
23953echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
23954 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23955echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23956 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
23957echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23958 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23959echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23960 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23961echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23962 (
23963 cat <<\_ASBOX
ac1cb8d3
VS
23964## ----------------------------------------- ##
23965## Report this to wx-dev@lists.wxwidgets.org ##
23966## ----------------------------------------- ##
bdcade0a
MB
23967_ASBOX
23968 ) |
23969 sed "s/^/$as_me: WARNING: /" >&2
23970 ;;
23971esac
23972echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23973echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23974if test "${ac_cv_header_ext_hash_map+set}" = set; then
23975 echo $ECHO_N "(cached) $ECHO_C" >&6
23976else
23977 ac_cv_header_ext_hash_map=$ac_header_preproc
23978fi
23979echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23980echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23981
23982fi
23983if test $ac_cv_header_ext_hash_map = yes; then
23984 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23985echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23986 cat >conftest.$ac_ext <<_ACEOF
23987/* confdefs.h. */
23988_ACEOF
23989cat confdefs.h >>conftest.$ac_ext
23990cat >>conftest.$ac_ext <<_ACEOF
23991/* end confdefs.h. */
23992#include <ext/hash_map>
23993 #include <ext/hash_set>
23994int
23995main ()
23996{
23997__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
23998 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
23999 ;
24000 return 0;
24001}
24002_ACEOF
24003rm -f conftest.$ac_objext
24004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24005 (eval $ac_compile) 2>conftest.er1
bdcade0a 24006 ac_status=$?
ac1cb8d3
VS
24007 grep -v '^ *+' conftest.er1 >conftest.err
24008 rm -f conftest.er1
24009 cat conftest.err >&5
bdcade0a
MB
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); } &&
3f60522a
JS
24012 { ac_try='test -z "$ac_cxx_werror_flag"
24013 || test ! -s conftest.err'
ac1cb8d3
VS
24014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24015 (eval $ac_try) 2>&5
24016 ac_status=$?
24017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24018 (exit $ac_status); }; } &&
24019 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24021 (eval $ac_try) 2>&5
24022 ac_status=$?
24023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24024 (exit $ac_status); }; }; then
24025 echo "$as_me:$LINENO: result: yes" >&5
24026echo "${ECHO_T}yes" >&6
24027 cat >>confdefs.h <<\_ACEOF
24028#define HAVE_EXT_HASH_MAP 1
24029_ACEOF
24030
24031 cat >>confdefs.h <<\_ACEOF
24032#define HAVE_GNU_CXX_HASH_MAP 1
24033_ACEOF
24034
24035else
24036 echo "$as_me: failed program was:" >&5
24037sed 's/^/| /' conftest.$ac_ext >&5
24038
24039echo "$as_me:$LINENO: result: no" >&5
24040echo "${ECHO_T}no" >&6
24041fi
ac1cb8d3 24042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24043
24044fi
24045
24046
a848cd7e
SC
24047fi
24048
24049
24050SEARCH_INCLUDE="\
24051 /usr/local/include \
24052 \
24053 /usr/Motif-2.1/include \
24054 /usr/Motif-1.2/include \
24055 /usr/include/Motif1.2 \
a848cd7e
SC
24056 \
24057 /usr/dt/include \
24058 /usr/openwin/include \
24059 \
24060 /usr/include/Xm \
24061 \
24062 /usr/X11R6/include \
24063 /usr/X11R6.4/include \
24064 /usr/X11R5/include \
24065 /usr/X11R4/include \
24066 \
24067 /usr/include/X11R6 \
24068 /usr/include/X11R5 \
24069 /usr/include/X11R4 \
24070 \
24071 /usr/local/X11R6/include \
24072 /usr/local/X11R5/include \
24073 /usr/local/X11R4/include \
24074 \
24075 /usr/local/include/X11R6 \
24076 /usr/local/include/X11R5 \
24077 /usr/local/include/X11R4 \
24078 \
24079 /usr/X11/include \
24080 /usr/include/X11 \
24081 /usr/local/X11/include \
24082 /usr/local/include/X11 \
24083 \
a848cd7e 24084 /usr/XFree86/include/X11 \
e051b34e
MW
24085 /usr/pkg/include \
24086 \
a848cd7e
SC
24087 /usr/openwin/share/include"
24088
6f9cf1e6 24089echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 24090echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
24091
24092case "${host}" in
24093 *-*-irix6* )
24094 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
24095 echo $ECHO_N "(cached) $ECHO_C" >&6
24096else
24097
c687b303
VZ
24098 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24099 for e in a so sl dylib dll.a; do
24100 libc="$d/libc.$e"
24101 if test -f $libc; then
24102 save_LIBS="$LIBS"
24103 LIBS="$libc"
24104 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
24105int main() { return 0; }
24106_ACEOF
24107rm -f conftest.$ac_objext conftest$ac_exeext
24108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24109 (eval $ac_link) 2>conftest.er1
24110 ac_status=$?
24111 grep -v '^ *+' conftest.er1 >conftest.err
24112 rm -f conftest.er1
24113 cat conftest.err >&5
24114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24115 (exit $ac_status); } &&
3f60522a
JS
24116 { ac_try='test -z "$ac_cxx_werror_flag"
24117 || test ! -s conftest.err'
0ad5d837
VZ
24118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24119 (eval $ac_try) 2>&5
24120 ac_status=$?
24121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24122 (exit $ac_status); }; } &&
24123 { ac_try='test -s conftest$ac_exeext'
24124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24125 (eval $ac_try) 2>&5
24126 ac_status=$?
24127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24128 (exit $ac_status); }; }; then
24129 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24130else
24131 echo "$as_me: failed program was:" >&5
24132sed 's/^/| /' conftest.$ac_ext >&5
24133
24134fi
24135rm -f conftest.err conftest.$ac_objext \
24136 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
24137 LIBS="$save_LIBS"
24138 if test "x$wx_cv_std_libpath" != "x"; then
24139 break 2
24140 fi
24141 fi
24142 done
24143 done
24144 if test "x$wx_cv_std_libpath" = "x"; then
24145 wx_cv_std_libpath="lib"
0ad5d837 24146 fi
0ad5d837
VZ
24147
24148
24149fi
6f9cf1e6
MW
24150
24151 ;;
24152
24153 *-*-solaris2* )
24154 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24155 wx_cv_std_libpath="lib/64"
24156 else
24157 wx_cv_std_libpath="lib"
24158 fi
24159 ;;
24160
24161 *-*-linux* )
24162 if test "$ac_cv_sizeof_void_p" = 8 -a \
24163 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24164 wx_cv_std_libpath="lib64"
24165 else
24166 wx_cv_std_libpath="lib"
24167 fi
c687b303
VZ
24168 ;;
24169
24170 *)
24171 wx_cv_std_libpath="lib";
24172 ;;
24173esac
0ad5d837 24174
6f9cf1e6
MW
24175echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24176echo "${ECHO_T}$wx_cv_std_libpath" >&6
24177
24178SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 24179
3eca31dc
MW
24180if test "$build" != "$host" -a "$GCC" = yes; then
24181 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24182 cross_root=`dirname $cross_root`
24183 cross_root=`dirname $cross_root`
24184
24185 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24186 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 24187 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
24188
24189 if test -z "$PKG_CONFIG_PATH"; then
24190 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24191 export PKG_CONFIG_PATH
24192 fi
24193
24194 if test -z "$x_includes" -o "$x_includes" = NONE; then
24195
24196ac_find_includes=
24197for ac_dir in $SEARCH_INCLUDE /usr/include;
24198 do
24199 if test -f "$ac_dir/X11/Intrinsic.h"; then
24200 ac_find_includes=$ac_dir
24201 break
24202 fi
24203 done
24204
24205 x_includes=$ac_find_includes
24206 fi
24207 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24208
0ad5d837
VZ
24209 ac_find_libraries=
24210 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
24211 do
24212 for ac_extension in a so sl dylib dll.a; do
24213 if test -f "$ac_dir/libXt.$ac_extension"; then
24214 ac_find_libraries=$ac_dir
24215 break 2
24216 fi
24217 done
24218 done
24219
24220 x_libraries=$ac_find_libraries
24221 fi
24222 fi
24223fi
24224
a848cd7e
SC
24225
24226cat >confcache <<\_ACEOF
24227# This file is a shell script that caches the results of configure
24228# tests run on this system so they can be shared between configure
24229# scripts and configure runs, see configure's option --config-cache.
24230# It is not useful on other systems. If it contains results you don't
24231# want to keep, you may remove or edit it.
24232#
24233# config.status only pays attention to the cache file if you give it
24234# the --recheck option to rerun configure.
24235#
24236# `ac_cv_env_foo' variables (set or unset) will be overridden when
24237# loading this file, other *unset* `ac_cv_foo' will be assigned the
24238# following values.
24239
24240_ACEOF
24241
24242# The following way of writing the cache mishandles newlines in values,
24243# but we know of no workaround that is simple, portable, and efficient.
24244# So, don't put newlines in cache variables' values.
24245# Ultrix sh set writes to stderr and can't be redirected directly,
24246# and sets the high bit in the cache file unless we assign to the vars.
24247{
24248 (set) 2>&1 |
24249 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24250 *ac_space=\ *)
24251 # `set' does not quote correctly, so add quotes (double-quote
24252 # substitution turns \\\\ into \\, and sed turns \\ into \).
24253 sed -n \
ac1cb8d3
VS
24254 "s/'/'\\\\''/g;
24255 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
24256 ;;
24257 *)
24258 # `set' quotes correctly as required by POSIX, so do not add quotes.
24259 sed -n \
ac1cb8d3 24260 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
24261 ;;
24262 esac;
24263} |
24264 sed '
24265 t clear
24266 : clear
24267 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24268 t end
24269 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24270 : end' >>confcache
24271if diff $cache_file confcache >/dev/null 2>&1; then :; else
24272 if test -w $cache_file; then
24273 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24274 cat confcache >$cache_file
24275 else
24276 echo "not updating unwritable cache $cache_file"
24277 fi
24278fi
24279rm -f confcache
24280
24281if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24282 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24283echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24284if test "${wx_cv_lib_glibc21+set}" = set; then
24285 echo $ECHO_N "(cached) $ECHO_C" >&6
24286else
24287
24288 cat >conftest.$ac_ext <<_ACEOF
24289/* confdefs.h. */
24290_ACEOF
24291cat confdefs.h >>conftest.$ac_ext
24292cat >>conftest.$ac_ext <<_ACEOF
24293/* end confdefs.h. */
24294#include <features.h>
24295int
24296main ()
24297{
24298
24299 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 24300 not glibc 2.1
a848cd7e
SC
24301 #endif
24302
24303 ;
24304 return 0;
24305}
24306_ACEOF
24307rm -f conftest.$ac_objext
24308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24309 (eval $ac_compile) 2>conftest.er1
a848cd7e 24310 ac_status=$?
ac1cb8d3
VS
24311 grep -v '^ *+' conftest.er1 >conftest.err
24312 rm -f conftest.er1
24313 cat conftest.err >&5
a848cd7e
SC
24314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24315 (exit $ac_status); } &&
3f60522a
JS
24316 { ac_try='test -z "$ac_cxx_werror_flag"
24317 || test ! -s conftest.err'
ac1cb8d3
VS
24318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24319 (eval $ac_try) 2>&5
24320 ac_status=$?
24321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322 (exit $ac_status); }; } &&
24323 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24325 (eval $ac_try) 2>&5
24326 ac_status=$?
24327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24328 (exit $ac_status); }; }; then
24329
24330 wx_cv_lib_glibc21=yes
24331
24332else
24333 echo "$as_me: failed program was:" >&5
24334sed 's/^/| /' conftest.$ac_ext >&5
24335
24336
24337 wx_cv_lib_glibc21=no
24338
24339
24340fi
ac1cb8d3 24341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24342
24343fi
24344echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24345echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24346 if test "$wx_cv_lib_glibc21" = "yes"; then
24347 cat >>confdefs.h <<\_ACEOF
24348#define wxHAVE_GLIBC2 1
24349_ACEOF
24350
24351 fi
24352fi
24353
24354if test "x$wx_cv_lib_glibc21" = "xyes"; then
24355 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24356 cat >>confdefs.h <<\_ACEOF
24357#define _GNU_SOURCE 1
24358_ACEOF
24359
24360 fi
24361fi
24362
5d7b7554
VZ
24363have_cos=0
24364have_floor=0
a848cd7e 24365
5d7b7554
VZ
24366for ac_func in cos
24367do
24368as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24369echo "$as_me:$LINENO: checking for $ac_func" >&5
24370echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24371if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e 24372 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 24373else
5d7b7554 24374 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
24375/* confdefs.h. */
24376_ACEOF
24377cat confdefs.h >>conftest.$ac_ext
24378cat >>conftest.$ac_ext <<_ACEOF
24379/* end confdefs.h. */
5d7b7554
VZ
24380/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24382#define $ac_func innocuous_$ac_func
24383
24384/* System header to define __stub macros and hopefully few prototypes,
24385 which can conflict with char $ac_func (); below.
24386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24387 <limits.h> exists even on freestanding compilers. */
24388
24389#ifdef __STDC__
24390# include <limits.h>
24391#else
24392# include <assert.h>
24393#endif
24394
24395#undef $ac_func
24396
24397/* Override any gcc2 internal prototype to avoid an error. */
24398#ifdef __cplusplus
24399extern "C"
24400{
24401#endif
24402/* We use char because int might match the return type of a gcc2
24403 builtin and then its argument prototype would still apply. */
24404char $ac_func ();
24405/* The GNU C library defines this for functions which it implements
24406 to always fail with ENOSYS. Some functions are actually named
24407 something starting with __ and the normal name is an alias. */
24408#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24409choke me
24410#else
24411char (*f) () = $ac_func;
24412#endif
24413#ifdef __cplusplus
24414}
24415#endif
24416
24417int
24418main ()
24419{
24420return f != $ac_func;
24421 ;
24422 return 0;
24423}
a848cd7e 24424_ACEOF
5d7b7554
VZ
24425rm -f conftest.$ac_objext conftest$ac_exeext
24426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24427 (eval $ac_link) 2>conftest.er1
a848cd7e 24428 ac_status=$?
ac1cb8d3
VS
24429 grep -v '^ *+' conftest.er1 >conftest.err
24430 rm -f conftest.er1
24431 cat conftest.err >&5
a848cd7e
SC
24432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433 (exit $ac_status); } &&
3f60522a
JS
24434 { ac_try='test -z "$ac_cxx_werror_flag"
24435 || test ! -s conftest.err'
ac1cb8d3
VS
24436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24437 (eval $ac_try) 2>&5
24438 ac_status=$?
24439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440 (exit $ac_status); }; } &&
5d7b7554 24441 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24443 (eval $ac_try) 2>&5
24444 ac_status=$?
24445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24446 (exit $ac_status); }; }; then
5d7b7554 24447 eval "$as_ac_var=yes"
a848cd7e
SC
24448else
24449 echo "$as_me: failed program was:" >&5
24450sed 's/^/| /' conftest.$ac_ext >&5
24451
5d7b7554 24452eval "$as_ac_var=no"
a848cd7e 24453fi
5d7b7554
VZ
24454rm -f conftest.err conftest.$ac_objext \
24455 conftest$ac_exeext conftest.$ac_ext
a848cd7e 24456fi
5d7b7554
VZ
24457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24458echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24459if test `eval echo '${'$as_ac_var'}'` = yes; then
24460 cat >>confdefs.h <<_ACEOF
24461#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24462_ACEOF
24463 have_cos=1
a848cd7e 24464fi
5d7b7554 24465done
a848cd7e 24466
ab0f0edd 24467
5d7b7554 24468for ac_func in floor
a848cd7e
SC
24469do
24470as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24471echo "$as_me:$LINENO: checking for $ac_func" >&5
24472echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24473if eval "test \"\${$as_ac_var+set}\" = set"; then
24474 echo $ECHO_N "(cached) $ECHO_C" >&6
24475else
24476 cat >conftest.$ac_ext <<_ACEOF
24477/* confdefs.h. */
24478_ACEOF
24479cat confdefs.h >>conftest.$ac_ext
24480cat >>conftest.$ac_ext <<_ACEOF
24481/* end confdefs.h. */
ac1cb8d3
VS
24482/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24484#define $ac_func innocuous_$ac_func
24485
a848cd7e
SC
24486/* System header to define __stub macros and hopefully few prototypes,
24487 which can conflict with char $ac_func (); below.
24488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24489 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24490
a848cd7e
SC
24491#ifdef __STDC__
24492# include <limits.h>
24493#else
24494# include <assert.h>
24495#endif
ac1cb8d3
VS
24496
24497#undef $ac_func
24498
a848cd7e
SC
24499/* Override any gcc2 internal prototype to avoid an error. */
24500#ifdef __cplusplus
24501extern "C"
24502{
24503#endif
24504/* We use char because int might match the return type of a gcc2
24505 builtin and then its argument prototype would still apply. */
24506char $ac_func ();
24507/* The GNU C library defines this for functions which it implements
24508 to always fail with ENOSYS. Some functions are actually named
24509 something starting with __ and the normal name is an alias. */
24510#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24511choke me
24512#else
24513char (*f) () = $ac_func;
24514#endif
24515#ifdef __cplusplus
24516}
24517#endif
24518
24519int
24520main ()
24521{
24522return f != $ac_func;
24523 ;
24524 return 0;
24525}
24526_ACEOF
24527rm -f conftest.$ac_objext conftest$ac_exeext
24528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24529 (eval $ac_link) 2>conftest.er1
a848cd7e 24530 ac_status=$?
ac1cb8d3
VS
24531 grep -v '^ *+' conftest.er1 >conftest.err
24532 rm -f conftest.er1
24533 cat conftest.err >&5
a848cd7e
SC
24534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535 (exit $ac_status); } &&
3f60522a
JS
24536 { ac_try='test -z "$ac_cxx_werror_flag"
24537 || test ! -s conftest.err'
5d7b7554
VZ
24538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24539 (eval $ac_try) 2>&5
24540 ac_status=$?
24541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542 (exit $ac_status); }; } &&
24543 { ac_try='test -s conftest$ac_exeext'
24544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24545 (eval $ac_try) 2>&5
24546 ac_status=$?
24547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24548 (exit $ac_status); }; }; then
24549 eval "$as_ac_var=yes"
24550else
24551 echo "$as_me: failed program was:" >&5
24552sed 's/^/| /' conftest.$ac_ext >&5
24553
24554eval "$as_ac_var=no"
24555fi
24556rm -f conftest.err conftest.$ac_objext \
24557 conftest$ac_exeext conftest.$ac_ext
24558fi
24559echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24560echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24561if test `eval echo '${'$as_ac_var'}'` = yes; then
24562 cat >>confdefs.h <<_ACEOF
24563#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24564_ACEOF
24565 have_floor=1
24566fi
24567done
24568
24569echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24570echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24571if test "$have_cos" = 1 -a "$have_floor" = 1; then
24572 echo "$as_me:$LINENO: result: yes" >&5
24573echo "${ECHO_T}yes" >&6
24574else
24575 echo "$as_me:$LINENO: result: no" >&5
24576echo "${ECHO_T}no" >&6
24577 LIBS="$LIBS -lm"
24578 # use different functions to avoid configure caching
24579 have_sin=0
24580 have_ceil=0
24581
24582for ac_func in sin
24583do
24584as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24585echo "$as_me:$LINENO: checking for $ac_func" >&5
24586echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24587if eval "test \"\${$as_ac_var+set}\" = set"; then
24588 echo $ECHO_N "(cached) $ECHO_C" >&6
24589else
24590 cat >conftest.$ac_ext <<_ACEOF
24591/* confdefs.h. */
24592_ACEOF
24593cat confdefs.h >>conftest.$ac_ext
24594cat >>conftest.$ac_ext <<_ACEOF
24595/* end confdefs.h. */
24596/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24598#define $ac_func innocuous_$ac_func
24599
24600/* System header to define __stub macros and hopefully few prototypes,
24601 which can conflict with char $ac_func (); below.
24602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24603 <limits.h> exists even on freestanding compilers. */
24604
24605#ifdef __STDC__
24606# include <limits.h>
24607#else
24608# include <assert.h>
24609#endif
24610
24611#undef $ac_func
24612
24613/* Override any gcc2 internal prototype to avoid an error. */
24614#ifdef __cplusplus
24615extern "C"
24616{
24617#endif
24618/* We use char because int might match the return type of a gcc2
24619 builtin and then its argument prototype would still apply. */
24620char $ac_func ();
24621/* The GNU C library defines this for functions which it implements
24622 to always fail with ENOSYS. Some functions are actually named
24623 something starting with __ and the normal name is an alias. */
24624#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24625choke me
24626#else
24627char (*f) () = $ac_func;
24628#endif
24629#ifdef __cplusplus
24630}
24631#endif
24632
24633int
24634main ()
24635{
24636return f != $ac_func;
24637 ;
24638 return 0;
24639}
24640_ACEOF
24641rm -f conftest.$ac_objext conftest$ac_exeext
24642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24643 (eval $ac_link) 2>conftest.er1
24644 ac_status=$?
24645 grep -v '^ *+' conftest.er1 >conftest.err
24646 rm -f conftest.er1
24647 cat conftest.err >&5
24648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24649 (exit $ac_status); } &&
3f60522a
JS
24650 { ac_try='test -z "$ac_cxx_werror_flag"
24651 || test ! -s conftest.err'
5d7b7554
VZ
24652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24653 (eval $ac_try) 2>&5
24654 ac_status=$?
24655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24656 (exit $ac_status); }; } &&
24657 { ac_try='test -s conftest$ac_exeext'
24658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24659 (eval $ac_try) 2>&5
24660 ac_status=$?
24661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662 (exit $ac_status); }; }; then
24663 eval "$as_ac_var=yes"
24664else
24665 echo "$as_me: failed program was:" >&5
24666sed 's/^/| /' conftest.$ac_ext >&5
24667
24668eval "$as_ac_var=no"
24669fi
24670rm -f conftest.err conftest.$ac_objext \
24671 conftest$ac_exeext conftest.$ac_ext
24672fi
24673echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24674echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24675if test `eval echo '${'$as_ac_var'}'` = yes; then
24676 cat >>confdefs.h <<_ACEOF
24677#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24678_ACEOF
24679 have_sin=1
24680fi
24681done
24682
24683
24684for ac_func in ceil
24685do
24686as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24687echo "$as_me:$LINENO: checking for $ac_func" >&5
24688echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24689if eval "test \"\${$as_ac_var+set}\" = set"; then
24690 echo $ECHO_N "(cached) $ECHO_C" >&6
24691else
24692 cat >conftest.$ac_ext <<_ACEOF
24693/* confdefs.h. */
24694_ACEOF
24695cat confdefs.h >>conftest.$ac_ext
24696cat >>conftest.$ac_ext <<_ACEOF
24697/* end confdefs.h. */
24698/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24700#define $ac_func innocuous_$ac_func
24701
24702/* System header to define __stub macros and hopefully few prototypes,
24703 which can conflict with char $ac_func (); below.
24704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24705 <limits.h> exists even on freestanding compilers. */
24706
24707#ifdef __STDC__
24708# include <limits.h>
24709#else
24710# include <assert.h>
24711#endif
24712
24713#undef $ac_func
24714
24715/* Override any gcc2 internal prototype to avoid an error. */
24716#ifdef __cplusplus
24717extern "C"
24718{
24719#endif
24720/* We use char because int might match the return type of a gcc2
24721 builtin and then its argument prototype would still apply. */
24722char $ac_func ();
24723/* The GNU C library defines this for functions which it implements
24724 to always fail with ENOSYS. Some functions are actually named
24725 something starting with __ and the normal name is an alias. */
24726#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24727choke me
24728#else
24729char (*f) () = $ac_func;
24730#endif
24731#ifdef __cplusplus
24732}
24733#endif
24734
24735int
24736main ()
24737{
24738return f != $ac_func;
24739 ;
24740 return 0;
24741}
24742_ACEOF
24743rm -f conftest.$ac_objext conftest$ac_exeext
24744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24745 (eval $ac_link) 2>conftest.er1
24746 ac_status=$?
24747 grep -v '^ *+' conftest.er1 >conftest.err
24748 rm -f conftest.er1
24749 cat conftest.err >&5
24750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24751 (exit $ac_status); } &&
3f60522a
JS
24752 { ac_try='test -z "$ac_cxx_werror_flag"
24753 || test ! -s conftest.err'
5d7b7554
VZ
24754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24755 (eval $ac_try) 2>&5
24756 ac_status=$?
24757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24758 (exit $ac_status); }; } &&
24759 { ac_try='test -s conftest$ac_exeext'
24760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24761 (eval $ac_try) 2>&5
24762 ac_status=$?
24763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24764 (exit $ac_status); }; }; then
24765 eval "$as_ac_var=yes"
24766else
24767 echo "$as_me: failed program was:" >&5
24768sed 's/^/| /' conftest.$ac_ext >&5
24769
24770eval "$as_ac_var=no"
24771fi
24772rm -f conftest.err conftest.$ac_objext \
24773 conftest$ac_exeext conftest.$ac_ext
24774fi
24775echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24776echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24777if test `eval echo '${'$as_ac_var'}'` = yes; then
24778 cat >>confdefs.h <<_ACEOF
24779#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24780_ACEOF
24781 have_ceil=1
24782fi
24783done
24784
24785 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
24786echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
24787 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
24788 echo "$as_me:$LINENO: result: yes" >&5
24789echo "${ECHO_T}yes" >&6
24790 else
24791 echo "$as_me:$LINENO: result: no" >&5
24792echo "${ECHO_T}no" >&6
24793 # not sure we should warn the user, crash, etc.
24794 fi
24795fi
24796
24797
24798
24799if test "$wxUSE_REGEX" != "no"; then
24800 cat >>confdefs.h <<\_ACEOF
24801#define wxUSE_REGEX 1
24802_ACEOF
24803
24804
24805 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
24806 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
24807echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
24808 wxUSE_REGEX=builtin
24809 fi
24810
24811 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
24812 if test "${ac_cv_header_regex_h+set}" = set; then
24813 echo "$as_me:$LINENO: checking for regex.h" >&5
24814echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24815if test "${ac_cv_header_regex_h+set}" = set; then
24816 echo $ECHO_N "(cached) $ECHO_C" >&6
24817fi
24818echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24819echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24820else
24821 # Is the header compilable?
24822echo "$as_me:$LINENO: checking regex.h usability" >&5
24823echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
24824cat >conftest.$ac_ext <<_ACEOF
24825/* confdefs.h. */
24826_ACEOF
24827cat confdefs.h >>conftest.$ac_ext
24828cat >>conftest.$ac_ext <<_ACEOF
24829/* end confdefs.h. */
24830$ac_includes_default
24831#include <regex.h>
24832_ACEOF
24833rm -f conftest.$ac_objext
24834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24835 (eval $ac_compile) 2>conftest.er1
24836 ac_status=$?
24837 grep -v '^ *+' conftest.er1 >conftest.err
24838 rm -f conftest.er1
24839 cat conftest.err >&5
24840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841 (exit $ac_status); } &&
3f60522a
JS
24842 { ac_try='test -z "$ac_cxx_werror_flag"
24843 || test ! -s conftest.err'
5d7b7554
VZ
24844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24845 (eval $ac_try) 2>&5
24846 ac_status=$?
24847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24848 (exit $ac_status); }; } &&
24849 { ac_try='test -s conftest.$ac_objext'
24850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24851 (eval $ac_try) 2>&5
24852 ac_status=$?
24853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854 (exit $ac_status); }; }; then
24855 ac_header_compiler=yes
24856else
24857 echo "$as_me: failed program was:" >&5
24858sed 's/^/| /' conftest.$ac_ext >&5
24859
24860ac_header_compiler=no
24861fi
24862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24863echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24864echo "${ECHO_T}$ac_header_compiler" >&6
24865
24866# Is the header present?
24867echo "$as_me:$LINENO: checking regex.h presence" >&5
24868echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
24869cat >conftest.$ac_ext <<_ACEOF
24870/* confdefs.h. */
24871_ACEOF
24872cat confdefs.h >>conftest.$ac_ext
24873cat >>conftest.$ac_ext <<_ACEOF
24874/* end confdefs.h. */
24875#include <regex.h>
24876_ACEOF
24877if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24879 ac_status=$?
24880 grep -v '^ *+' conftest.er1 >conftest.err
24881 rm -f conftest.er1
24882 cat conftest.err >&5
24883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884 (exit $ac_status); } >/dev/null; then
24885 if test -s conftest.err; then
24886 ac_cpp_err=$ac_cxx_preproc_warn_flag
24887 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24888 else
24889 ac_cpp_err=
24890 fi
24891else
24892 ac_cpp_err=yes
24893fi
24894if test -z "$ac_cpp_err"; then
24895 ac_header_preproc=yes
24896else
24897 echo "$as_me: failed program was:" >&5
24898sed 's/^/| /' conftest.$ac_ext >&5
24899
24900 ac_header_preproc=no
24901fi
24902rm -f conftest.err conftest.$ac_ext
24903echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24904echo "${ECHO_T}$ac_header_preproc" >&6
24905
24906# So? What about this header?
24907case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24908 yes:no: )
24909 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24910echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24911 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
24912echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
24913 ac_header_preproc=yes
24914 ;;
24915 no:yes:* )
24916 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
24917echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
24918 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
24919echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
24920 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
24921echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
24922 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
24923echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
24924 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
24925echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
24926 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
24927echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
24928 (
24929 cat <<\_ASBOX
24930## ----------------------------------------- ##
24931## Report this to wx-dev@lists.wxwidgets.org ##
24932## ----------------------------------------- ##
24933_ASBOX
24934 ) |
24935 sed "s/^/$as_me: WARNING: /" >&2
24936 ;;
24937esac
24938echo "$as_me:$LINENO: checking for regex.h" >&5
24939echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24940if test "${ac_cv_header_regex_h+set}" = set; then
24941 echo $ECHO_N "(cached) $ECHO_C" >&6
24942else
24943 ac_cv_header_regex_h=$ac_header_preproc
24944fi
24945echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24946echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24947
24948fi
24949if test $ac_cv_header_regex_h = yes; then
24950
24951
24952for ac_func in regcomp re_search
24953do
24954as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24955echo "$as_me:$LINENO: checking for $ac_func" >&5
24956echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24957if eval "test \"\${$as_ac_var+set}\" = set"; then
24958 echo $ECHO_N "(cached) $ECHO_C" >&6
24959else
24960 cat >conftest.$ac_ext <<_ACEOF
24961/* confdefs.h. */
24962_ACEOF
24963cat confdefs.h >>conftest.$ac_ext
24964cat >>conftest.$ac_ext <<_ACEOF
24965/* end confdefs.h. */
24966/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24968#define $ac_func innocuous_$ac_func
24969
24970/* System header to define __stub macros and hopefully few prototypes,
24971 which can conflict with char $ac_func (); below.
24972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24973 <limits.h> exists even on freestanding compilers. */
24974
24975#ifdef __STDC__
24976# include <limits.h>
24977#else
24978# include <assert.h>
24979#endif
24980
24981#undef $ac_func
24982
24983/* Override any gcc2 internal prototype to avoid an error. */
24984#ifdef __cplusplus
24985extern "C"
24986{
24987#endif
24988/* We use char because int might match the return type of a gcc2
24989 builtin and then its argument prototype would still apply. */
24990char $ac_func ();
24991/* The GNU C library defines this for functions which it implements
24992 to always fail with ENOSYS. Some functions are actually named
24993 something starting with __ and the normal name is an alias. */
24994#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24995choke me
24996#else
24997char (*f) () = $ac_func;
24998#endif
24999#ifdef __cplusplus
25000}
25001#endif
25002
25003int
25004main ()
25005{
25006return f != $ac_func;
25007 ;
25008 return 0;
25009}
25010_ACEOF
25011rm -f conftest.$ac_objext conftest$ac_exeext
25012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25013 (eval $ac_link) 2>conftest.er1
25014 ac_status=$?
25015 grep -v '^ *+' conftest.er1 >conftest.err
25016 rm -f conftest.er1
25017 cat conftest.err >&5
25018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 (exit $ac_status); } &&
3f60522a
JS
25020 { ac_try='test -z "$ac_cxx_werror_flag"
25021 || test ! -s conftest.err'
ac1cb8d3
VS
25022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25023 (eval $ac_try) 2>&5
25024 ac_status=$?
25025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25026 (exit $ac_status); }; } &&
25027 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25029 (eval $ac_try) 2>&5
25030 ac_status=$?
25031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25032 (exit $ac_status); }; }; then
25033 eval "$as_ac_var=yes"
25034else
25035 echo "$as_me: failed program was:" >&5
25036sed 's/^/| /' conftest.$ac_ext >&5
25037
25038eval "$as_ac_var=no"
25039fi
ac1cb8d3
VS
25040rm -f conftest.err conftest.$ac_objext \
25041 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25042fi
25043echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25044echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25045if test `eval echo '${'$as_ac_var'}'` = yes; then
25046 cat >>confdefs.h <<_ACEOF
25047#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25048_ACEOF
25049
25050fi
25051done
25052
25053fi
25054
25055
25056
25057 if test "x$ac_cv_func_regcomp" != "xyes"; then
25058 if test "$wxUSE_REGEX" = "sys" ; then
25059 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25060echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25061 { (exit 1); exit 1; }; }
25062 else
25063 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25064echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25065 wxUSE_REGEX=builtin
25066 fi
25067 else
25068 wxUSE_REGEX=sys
25069 cat >>confdefs.h <<\_ACEOF
25070#define WX_NO_REGEX_ADVANCED 1
25071_ACEOF
25072
25073 fi
25074 fi
25075fi
25076
25077
25078ZLIB_LINK=
25079if test "$wxUSE_ZLIB" != "no" ; then
25080 cat >>confdefs.h <<\_ACEOF
25081#define wxUSE_ZLIB 1
25082_ACEOF
25083
25084
25085 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25086 if test "$USE_DARWIN" = 1; then
25087 system_zlib_h_ok="yes"
25088 else
25089 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25090echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
25091if test "${ac_cv_header_zlib_h+set}" = set; then
25092 echo $ECHO_N "(cached) $ECHO_C" >&6
25093else
25094 if test "$cross_compiling" = yes; then
25095 unset ac_cv_header_zlib_h
25096
25097else
25098 cat >conftest.$ac_ext <<_ACEOF
25099/* confdefs.h. */
25100_ACEOF
25101cat confdefs.h >>conftest.$ac_ext
25102cat >>conftest.$ac_ext <<_ACEOF
25103/* end confdefs.h. */
25104
25105 #include <zlib.h>
25106 #include <stdio.h>
25107
25108 int main()
25109 {
25110 FILE *f=fopen("conftestval", "w");
25111 if (!f) exit(1);
25112 fprintf(f, "%s",
25113 ZLIB_VERSION[0] == '1' &&
25114 (ZLIB_VERSION[2] > '1' ||
25115 (ZLIB_VERSION[2] == '1' &&
25116 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25117 exit(0);
25118 }
25119
25120_ACEOF
25121rm -f conftest$ac_exeext
25122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25123 (eval $ac_link) 2>&5
25124 ac_status=$?
25125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25126 (exit $ac_status); } && { ac_try='./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 ac_cv_header_zlib_h=`cat conftestval`
25133else
25134 echo "$as_me: program exited with status $ac_status" >&5
25135echo "$as_me: failed program was:" >&5
25136sed 's/^/| /' conftest.$ac_ext >&5
25137
25138( exit $ac_status )
25139ac_cv_header_zlib_h=no
25140fi
ac1cb8d3 25141rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25142fi
25143
25144fi
25145echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25146echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25147 if test "${ac_cv_header_zlib_h+set}" = set; then
25148 echo "$as_me:$LINENO: checking for zlib.h" >&5
25149echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25150if test "${ac_cv_header_zlib_h+set}" = set; then
25151 echo $ECHO_N "(cached) $ECHO_C" >&6
25152fi
25153echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25154echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25155else
25156 # Is the header compilable?
25157echo "$as_me:$LINENO: checking zlib.h usability" >&5
25158echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25159cat >conftest.$ac_ext <<_ACEOF
25160/* confdefs.h. */
25161_ACEOF
25162cat confdefs.h >>conftest.$ac_ext
25163cat >>conftest.$ac_ext <<_ACEOF
25164/* end confdefs.h. */
25165$ac_includes_default
25166#include <zlib.h>
25167_ACEOF
25168rm -f conftest.$ac_objext
25169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25170 (eval $ac_compile) 2>conftest.er1
a848cd7e 25171 ac_status=$?
ac1cb8d3
VS
25172 grep -v '^ *+' conftest.er1 >conftest.err
25173 rm -f conftest.er1
25174 cat conftest.err >&5
a848cd7e
SC
25175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176 (exit $ac_status); } &&
3f60522a
JS
25177 { ac_try='test -z "$ac_cxx_werror_flag"
25178 || test ! -s conftest.err'
ac1cb8d3
VS
25179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25180 (eval $ac_try) 2>&5
25181 ac_status=$?
25182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183 (exit $ac_status); }; } &&
25184 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25186 (eval $ac_try) 2>&5
25187 ac_status=$?
25188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189 (exit $ac_status); }; }; then
25190 ac_header_compiler=yes
25191else
25192 echo "$as_me: failed program was:" >&5
25193sed 's/^/| /' conftest.$ac_ext >&5
25194
25195ac_header_compiler=no
25196fi
ac1cb8d3 25197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25198echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25199echo "${ECHO_T}$ac_header_compiler" >&6
25200
25201# Is the header present?
25202echo "$as_me:$LINENO: checking zlib.h presence" >&5
25203echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25204cat >conftest.$ac_ext <<_ACEOF
25205/* confdefs.h. */
25206_ACEOF
25207cat confdefs.h >>conftest.$ac_ext
25208cat >>conftest.$ac_ext <<_ACEOF
25209/* end confdefs.h. */
25210#include <zlib.h>
25211_ACEOF
25212if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25214 ac_status=$?
25215 grep -v '^ *+' conftest.er1 >conftest.err
25216 rm -f conftest.er1
25217 cat conftest.err >&5
25218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219 (exit $ac_status); } >/dev/null; then
25220 if test -s conftest.err; then
5d7b7554
VZ
25221 ac_cpp_err=$ac_cxx_preproc_warn_flag
25222 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25223 else
25224 ac_cpp_err=
25225 fi
25226else
25227 ac_cpp_err=yes
25228fi
25229if test -z "$ac_cpp_err"; then
25230 ac_header_preproc=yes
25231else
25232 echo "$as_me: failed program was:" >&5
25233sed 's/^/| /' conftest.$ac_ext >&5
25234
25235 ac_header_preproc=no
25236fi
25237rm -f conftest.err conftest.$ac_ext
25238echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25239echo "${ECHO_T}$ac_header_preproc" >&6
25240
25241# So? What about this header?
5d7b7554 25242case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25243 yes:no: )
a848cd7e
SC
25244 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25245echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25246 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25247echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25248 ac_header_preproc=yes
a848cd7e 25249 ;;
ac1cb8d3 25250 no:yes:* )
a848cd7e
SC
25251 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25252echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25253 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
25254echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
25255 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25256echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25257 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
25258echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25259 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25260echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25261 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25262echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25263 (
25264 cat <<\_ASBOX
ac1cb8d3
VS
25265## ----------------------------------------- ##
25266## Report this to wx-dev@lists.wxwidgets.org ##
25267## ----------------------------------------- ##
a848cd7e
SC
25268_ASBOX
25269 ) |
25270 sed "s/^/$as_me: WARNING: /" >&2
25271 ;;
25272esac
25273echo "$as_me:$LINENO: checking for zlib.h" >&5
25274echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25275if test "${ac_cv_header_zlib_h+set}" = set; then
25276 echo $ECHO_N "(cached) $ECHO_C" >&6
25277else
25278 ac_cv_header_zlib_h=$ac_header_preproc
25279fi
25280echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25281echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25282
25283fi
25284
25285
25286
25287 system_zlib_h_ok=$ac_cv_header_zlib_h
25288 fi
25289
25290 if test "$system_zlib_h_ok" = "yes"; then
25291 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25292echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25293if test "${ac_cv_lib_z_deflate+set}" = set; then
25294 echo $ECHO_N "(cached) $ECHO_C" >&6
25295else
25296 ac_check_lib_save_LIBS=$LIBS
25297LIBS="-lz $LIBS"
25298cat >conftest.$ac_ext <<_ACEOF
25299/* confdefs.h. */
25300_ACEOF
25301cat confdefs.h >>conftest.$ac_ext
25302cat >>conftest.$ac_ext <<_ACEOF
25303/* end confdefs.h. */
25304
25305/* Override any gcc2 internal prototype to avoid an error. */
25306#ifdef __cplusplus
25307extern "C"
25308#endif
25309/* We use char because int might match the return type of a gcc2
25310 builtin and then its argument prototype would still apply. */
25311char deflate ();
25312int
25313main ()
25314{
25315deflate ();
25316 ;
25317 return 0;
25318}
25319_ACEOF
25320rm -f conftest.$ac_objext conftest$ac_exeext
25321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25322 (eval $ac_link) 2>conftest.er1
a848cd7e 25323 ac_status=$?
ac1cb8d3
VS
25324 grep -v '^ *+' conftest.er1 >conftest.err
25325 rm -f conftest.er1
25326 cat conftest.err >&5
a848cd7e
SC
25327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328 (exit $ac_status); } &&
3f60522a
JS
25329 { ac_try='test -z "$ac_cxx_werror_flag"
25330 || test ! -s conftest.err'
ac1cb8d3
VS
25331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25332 (eval $ac_try) 2>&5
25333 ac_status=$?
25334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335 (exit $ac_status); }; } &&
25336 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25338 (eval $ac_try) 2>&5
25339 ac_status=$?
25340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341 (exit $ac_status); }; }; then
25342 ac_cv_lib_z_deflate=yes
25343else
25344 echo "$as_me: failed program was:" >&5
25345sed 's/^/| /' conftest.$ac_ext >&5
25346
25347ac_cv_lib_z_deflate=no
25348fi
ac1cb8d3
VS
25349rm -f conftest.err conftest.$ac_objext \
25350 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25351LIBS=$ac_check_lib_save_LIBS
25352fi
25353echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25354echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25355if test $ac_cv_lib_z_deflate = yes; then
25356 ZLIB_LINK=" -lz"
25357fi
25358
25359 fi
25360
25361 if test "x$ZLIB_LINK" = "x" ; then
25362 if test "$wxUSE_ZLIB" = "sys" ; then
25363 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25364echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25365 { (exit 1); exit 1; }; }
25366 else
25367 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25368echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25369 wxUSE_ZLIB=builtin
25370 fi
25371 else
25372 wxUSE_ZLIB=sys
25373 fi
25374 fi
25375fi
25376
25377
25378PNG_LINK=
25379if test "$wxUSE_LIBPNG" != "no" ; then
25380 cat >>confdefs.h <<\_ACEOF
25381#define wxUSE_LIBPNG 1
25382_ACEOF
25383
25384
25385 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25386 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25387echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25388 wxUSE_LIBPNG=sys
25389 fi
25390
25391 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25392 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25393echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25394 wxUSE_LIBPNG=builtin
25395 fi
25396
25397 if test "$wxUSE_MGL" != 1 ; then
25398 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25399 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25400echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25401if test "${ac_cv_header_png_h+set}" = set; then
25402 echo $ECHO_N "(cached) $ECHO_C" >&6
25403else
25404 if test "$cross_compiling" = yes; then
25405 unset ac_cv_header_png_h
25406
25407else
25408 cat >conftest.$ac_ext <<_ACEOF
25409/* confdefs.h. */
25410_ACEOF
25411cat confdefs.h >>conftest.$ac_ext
25412cat >>conftest.$ac_ext <<_ACEOF
25413/* end confdefs.h. */
25414
25415 #include <png.h>
25416 #include <stdio.h>
25417
25418 int main()
25419 {
25420 FILE *f=fopen("conftestval", "w");
25421 if (!f) exit(1);
25422 fprintf(f, "%s",
25423 PNG_LIBPNG_VER > 90 ? "yes" : "no");
25424 exit(0);
25425 }
25426
25427_ACEOF
25428rm -f conftest$ac_exeext
25429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25430 (eval $ac_link) 2>&5
25431 ac_status=$?
25432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25435 (eval $ac_try) 2>&5
25436 ac_status=$?
25437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25438 (exit $ac_status); }; }; then
25439 ac_cv_header_png_h=`cat conftestval`
25440else
25441 echo "$as_me: program exited with status $ac_status" >&5
25442echo "$as_me: failed program was:" >&5
25443sed 's/^/| /' conftest.$ac_ext >&5
25444
25445( exit $ac_status )
25446ac_cv_header_png_h=no
25447fi
ac1cb8d3 25448rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25449fi
25450
25451fi
25452echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25453echo "${ECHO_T}$ac_cv_header_png_h" >&6
25454 if test "${ac_cv_header_png_h+set}" = set; then
25455 echo "$as_me:$LINENO: checking for png.h" >&5
25456echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25457if test "${ac_cv_header_png_h+set}" = set; then
25458 echo $ECHO_N "(cached) $ECHO_C" >&6
25459fi
25460echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25461echo "${ECHO_T}$ac_cv_header_png_h" >&6
25462else
25463 # Is the header compilable?
25464echo "$as_me:$LINENO: checking png.h usability" >&5
25465echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25466cat >conftest.$ac_ext <<_ACEOF
25467/* confdefs.h. */
25468_ACEOF
25469cat confdefs.h >>conftest.$ac_ext
25470cat >>conftest.$ac_ext <<_ACEOF
25471/* end confdefs.h. */
25472$ac_includes_default
25473#include <png.h>
25474_ACEOF
25475rm -f conftest.$ac_objext
25476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25477 (eval $ac_compile) 2>conftest.er1
a848cd7e 25478 ac_status=$?
ac1cb8d3
VS
25479 grep -v '^ *+' conftest.er1 >conftest.err
25480 rm -f conftest.er1
25481 cat conftest.err >&5
a848cd7e
SC
25482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483 (exit $ac_status); } &&
3f60522a
JS
25484 { ac_try='test -z "$ac_cxx_werror_flag"
25485 || test ! -s conftest.err'
ac1cb8d3
VS
25486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25487 (eval $ac_try) 2>&5
25488 ac_status=$?
25489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490 (exit $ac_status); }; } &&
25491 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25493 (eval $ac_try) 2>&5
25494 ac_status=$?
25495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496 (exit $ac_status); }; }; then
25497 ac_header_compiler=yes
25498else
25499 echo "$as_me: failed program was:" >&5
25500sed 's/^/| /' conftest.$ac_ext >&5
25501
25502ac_header_compiler=no
25503fi
ac1cb8d3 25504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25505echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25506echo "${ECHO_T}$ac_header_compiler" >&6
25507
25508# Is the header present?
25509echo "$as_me:$LINENO: checking png.h presence" >&5
25510echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25511cat >conftest.$ac_ext <<_ACEOF
25512/* confdefs.h. */
25513_ACEOF
25514cat confdefs.h >>conftest.$ac_ext
25515cat >>conftest.$ac_ext <<_ACEOF
25516/* end confdefs.h. */
25517#include <png.h>
25518_ACEOF
25519if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25520 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25521 ac_status=$?
25522 grep -v '^ *+' conftest.er1 >conftest.err
25523 rm -f conftest.er1
25524 cat conftest.err >&5
25525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25526 (exit $ac_status); } >/dev/null; then
25527 if test -s conftest.err; then
5d7b7554
VZ
25528 ac_cpp_err=$ac_cxx_preproc_warn_flag
25529 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25530 else
25531 ac_cpp_err=
25532 fi
25533else
25534 ac_cpp_err=yes
25535fi
25536if test -z "$ac_cpp_err"; then
25537 ac_header_preproc=yes
25538else
25539 echo "$as_me: failed program was:" >&5
25540sed 's/^/| /' conftest.$ac_ext >&5
25541
25542 ac_header_preproc=no
25543fi
25544rm -f conftest.err conftest.$ac_ext
25545echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25546echo "${ECHO_T}$ac_header_preproc" >&6
25547
25548# So? What about this header?
5d7b7554 25549case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25550 yes:no: )
a848cd7e
SC
25551 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25552echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25553 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25554echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25555 ac_header_preproc=yes
a848cd7e 25556 ;;
ac1cb8d3 25557 no:yes:* )
a848cd7e
SC
25558 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25559echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25560 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
25561echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
25562 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25563echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25564 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
25565echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25566 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25567echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25568 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25569echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25570 (
25571 cat <<\_ASBOX
ac1cb8d3
VS
25572## ----------------------------------------- ##
25573## Report this to wx-dev@lists.wxwidgets.org ##
25574## ----------------------------------------- ##
a848cd7e
SC
25575_ASBOX
25576 ) |
25577 sed "s/^/$as_me: WARNING: /" >&2
25578 ;;
25579esac
25580echo "$as_me:$LINENO: checking for png.h" >&5
25581echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25582if test "${ac_cv_header_png_h+set}" = set; then
25583 echo $ECHO_N "(cached) $ECHO_C" >&6
25584else
25585 ac_cv_header_png_h=$ac_header_preproc
25586fi
25587echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25588echo "${ECHO_T}$ac_cv_header_png_h" >&6
25589
25590fi
25591
25592
25593
25594 if test "$ac_cv_header_png_h" = "yes"; then
25595 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25596echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
25597if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25598 echo $ECHO_N "(cached) $ECHO_C" >&6
25599else
25600 ac_check_lib_save_LIBS=$LIBS
25601LIBS="-lpng -lz -lm $LIBS"
25602cat >conftest.$ac_ext <<_ACEOF
25603/* confdefs.h. */
25604_ACEOF
25605cat confdefs.h >>conftest.$ac_ext
25606cat >>conftest.$ac_ext <<_ACEOF
25607/* end confdefs.h. */
25608
25609/* Override any gcc2 internal prototype to avoid an error. */
25610#ifdef __cplusplus
25611extern "C"
25612#endif
25613/* We use char because int might match the return type of a gcc2
25614 builtin and then its argument prototype would still apply. */
25615char png_check_sig ();
25616int
25617main ()
25618{
25619png_check_sig ();
25620 ;
25621 return 0;
25622}
25623_ACEOF
25624rm -f conftest.$ac_objext conftest$ac_exeext
25625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25626 (eval $ac_link) 2>conftest.er1
a848cd7e 25627 ac_status=$?
ac1cb8d3
VS
25628 grep -v '^ *+' conftest.er1 >conftest.err
25629 rm -f conftest.er1
25630 cat conftest.err >&5
a848cd7e
SC
25631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632 (exit $ac_status); } &&
3f60522a
JS
25633 { ac_try='test -z "$ac_cxx_werror_flag"
25634 || test ! -s conftest.err'
ac1cb8d3
VS
25635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25636 (eval $ac_try) 2>&5
25637 ac_status=$?
25638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639 (exit $ac_status); }; } &&
25640 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25642 (eval $ac_try) 2>&5
25643 ac_status=$?
25644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645 (exit $ac_status); }; }; then
25646 ac_cv_lib_png_png_check_sig=yes
25647else
25648 echo "$as_me: failed program was:" >&5
25649sed 's/^/| /' conftest.$ac_ext >&5
25650
25651ac_cv_lib_png_png_check_sig=no
25652fi
ac1cb8d3
VS
25653rm -f conftest.err conftest.$ac_objext \
25654 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25655LIBS=$ac_check_lib_save_LIBS
25656fi
25657echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
25658echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
25659if test $ac_cv_lib_png_png_check_sig = yes; then
25660 PNG_LINK=" -lpng -lz"
25661fi
25662
25663 fi
25664
25665 if test "x$PNG_LINK" = "x" ; then
25666 if test "$wxUSE_LIBPNG" = "sys" ; then
25667 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
25668echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
25669 { (exit 1); exit 1; }; }
25670 else
25671 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
25672echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
25673 wxUSE_LIBPNG=builtin
25674 fi
25675 else
25676 wxUSE_LIBPNG=sys
25677 fi
25678 fi
25679 fi
25680
25681 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
25682fi
25683
25684
25685JPEG_LINK=
25686if test "$wxUSE_LIBJPEG" != "no" ; then
25687 cat >>confdefs.h <<\_ACEOF
25688#define wxUSE_LIBJPEG 1
25689_ACEOF
25690
25691
25692 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
25693 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
25694echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
25695 wxUSE_LIBJPEG=sys
25696 fi
25697
25698 if test "$wxUSE_MGL" != 1 ; then
25699 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
25700 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
25701echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
25702 if test "${ac_cv_header_jpeglib_h+set}" = set; then
25703 echo $ECHO_N "(cached) $ECHO_C" >&6
25704else
25705 cat >conftest.$ac_ext <<_ACEOF
25706/* confdefs.h. */
25707_ACEOF
25708cat confdefs.h >>conftest.$ac_ext
25709cat >>conftest.$ac_ext <<_ACEOF
25710/* end confdefs.h. */
25711
25712 #undef HAVE_STDLIB_H
25713 #include <stdio.h>
25714 #include <jpeglib.h>
25715
25716int
25717main ()
25718{
25719
25720
25721 ;
25722 return 0;
25723}
25724_ACEOF
25725rm -f conftest.$ac_objext
25726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25727 (eval $ac_compile) 2>conftest.er1
a848cd7e 25728 ac_status=$?
ac1cb8d3
VS
25729 grep -v '^ *+' conftest.er1 >conftest.err
25730 rm -f conftest.er1
25731 cat conftest.err >&5
a848cd7e
SC
25732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25733 (exit $ac_status); } &&
3f60522a
JS
25734 { ac_try='test -z "$ac_cxx_werror_flag"
25735 || test ! -s conftest.err'
ac1cb8d3
VS
25736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25737 (eval $ac_try) 2>&5
25738 ac_status=$?
25739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25740 (exit $ac_status); }; } &&
25741 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25743 (eval $ac_try) 2>&5
25744 ac_status=$?
25745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25746 (exit $ac_status); }; }; then
25747 ac_cv_header_jpeglib_h=yes
25748else
25749 echo "$as_me: failed program was:" >&5
25750sed 's/^/| /' conftest.$ac_ext >&5
25751
25752ac_cv_header_jpeglib_h=no
25753
25754fi
ac1cb8d3 25755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25756
25757fi
25758
25759 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
25760echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
25761
25762 if test "$ac_cv_header_jpeglib_h" = "yes"; then
25763 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
25764echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
25765if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
25766 echo $ECHO_N "(cached) $ECHO_C" >&6
25767else
25768 ac_check_lib_save_LIBS=$LIBS
25769LIBS="-ljpeg $LIBS"
25770cat >conftest.$ac_ext <<_ACEOF
25771/* confdefs.h. */
25772_ACEOF
25773cat confdefs.h >>conftest.$ac_ext
25774cat >>conftest.$ac_ext <<_ACEOF
25775/* end confdefs.h. */
25776
25777/* Override any gcc2 internal prototype to avoid an error. */
25778#ifdef __cplusplus
25779extern "C"
25780#endif
25781/* We use char because int might match the return type of a gcc2
25782 builtin and then its argument prototype would still apply. */
25783char jpeg_read_header ();
25784int
25785main ()
25786{
25787jpeg_read_header ();
25788 ;
25789 return 0;
25790}
25791_ACEOF
25792rm -f conftest.$ac_objext conftest$ac_exeext
25793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25794 (eval $ac_link) 2>conftest.er1
a848cd7e 25795 ac_status=$?
ac1cb8d3
VS
25796 grep -v '^ *+' conftest.er1 >conftest.err
25797 rm -f conftest.er1
25798 cat conftest.err >&5
a848cd7e
SC
25799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25800 (exit $ac_status); } &&
3f60522a
JS
25801 { ac_try='test -z "$ac_cxx_werror_flag"
25802 || test ! -s conftest.err'
ac1cb8d3
VS
25803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25804 (eval $ac_try) 2>&5
25805 ac_status=$?
25806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25807 (exit $ac_status); }; } &&
25808 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25810 (eval $ac_try) 2>&5
25811 ac_status=$?
25812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25813 (exit $ac_status); }; }; then
25814 ac_cv_lib_jpeg_jpeg_read_header=yes
25815else
25816 echo "$as_me: failed program was:" >&5
25817sed 's/^/| /' conftest.$ac_ext >&5
25818
25819ac_cv_lib_jpeg_jpeg_read_header=no
25820fi
ac1cb8d3
VS
25821rm -f conftest.err conftest.$ac_objext \
25822 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25823LIBS=$ac_check_lib_save_LIBS
25824fi
25825echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
25826echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
25827if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
25828 JPEG_LINK=" -ljpeg"
25829fi
25830
25831 fi
25832
25833 if test "x$JPEG_LINK" = "x" ; then
25834 if test "$wxUSE_LIBJPEG" = "sys" ; then
25835 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
25836echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
25837 { (exit 1); exit 1; }; }
25838 else
25839 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
25840echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
25841 wxUSE_LIBJPEG=builtin
25842 fi
25843 else
25844 wxUSE_LIBJPEG=sys
25845 fi
25846 fi
25847 fi
25848fi
25849
25850
25851TIFF_LINK=
25852TIFF_PREREQ_LINKS=-lm
25853if test "$wxUSE_LIBTIFF" != "no" ; then
25854 cat >>confdefs.h <<\_ACEOF
25855#define wxUSE_LIBTIFF 1
25856_ACEOF
25857
25858
25859 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
25860 if test "$wxUSE_LIBJPEG" = "sys"; then
25861 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
25862 fi
25863 if test "$wxUSE_ZLIB" = "sys"; then
25864 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
25865 fi
25866 if test "${ac_cv_header_tiffio_h+set}" = set; then
25867 echo "$as_me:$LINENO: checking for tiffio.h" >&5
25868echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25869if test "${ac_cv_header_tiffio_h+set}" = set; then
25870 echo $ECHO_N "(cached) $ECHO_C" >&6
25871fi
25872echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25873echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25874else
25875 # Is the header compilable?
25876echo "$as_me:$LINENO: checking tiffio.h usability" >&5
25877echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
25878cat >conftest.$ac_ext <<_ACEOF
25879/* confdefs.h. */
25880_ACEOF
25881cat confdefs.h >>conftest.$ac_ext
25882cat >>conftest.$ac_ext <<_ACEOF
25883/* end confdefs.h. */
25884$ac_includes_default
25885#include <tiffio.h>
25886_ACEOF
25887rm -f conftest.$ac_objext
25888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25889 (eval $ac_compile) 2>conftest.er1
a848cd7e 25890 ac_status=$?
ac1cb8d3
VS
25891 grep -v '^ *+' conftest.er1 >conftest.err
25892 rm -f conftest.er1
25893 cat conftest.err >&5
a848cd7e
SC
25894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895 (exit $ac_status); } &&
3f60522a
JS
25896 { ac_try='test -z "$ac_cxx_werror_flag"
25897 || test ! -s conftest.err'
ac1cb8d3
VS
25898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25899 (eval $ac_try) 2>&5
25900 ac_status=$?
25901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902 (exit $ac_status); }; } &&
25903 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25905 (eval $ac_try) 2>&5
25906 ac_status=$?
25907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25908 (exit $ac_status); }; }; then
25909 ac_header_compiler=yes
25910else
25911 echo "$as_me: failed program was:" >&5
25912sed 's/^/| /' conftest.$ac_ext >&5
25913
25914ac_header_compiler=no
25915fi
ac1cb8d3 25916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25917echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25918echo "${ECHO_T}$ac_header_compiler" >&6
25919
25920# Is the header present?
25921echo "$as_me:$LINENO: checking tiffio.h presence" >&5
25922echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
25923cat >conftest.$ac_ext <<_ACEOF
25924/* confdefs.h. */
25925_ACEOF
25926cat confdefs.h >>conftest.$ac_ext
25927cat >>conftest.$ac_ext <<_ACEOF
25928/* end confdefs.h. */
25929#include <tiffio.h>
25930_ACEOF
25931if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25933 ac_status=$?
25934 grep -v '^ *+' conftest.er1 >conftest.err
25935 rm -f conftest.er1
25936 cat conftest.err >&5
25937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25938 (exit $ac_status); } >/dev/null; then
25939 if test -s conftest.err; then
5d7b7554
VZ
25940 ac_cpp_err=$ac_cxx_preproc_warn_flag
25941 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25942 else
25943 ac_cpp_err=
25944 fi
25945else
25946 ac_cpp_err=yes
25947fi
25948if test -z "$ac_cpp_err"; then
25949 ac_header_preproc=yes
25950else
25951 echo "$as_me: failed program was:" >&5
25952sed 's/^/| /' conftest.$ac_ext >&5
25953
25954 ac_header_preproc=no
25955fi
25956rm -f conftest.err conftest.$ac_ext
25957echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25958echo "${ECHO_T}$ac_header_preproc" >&6
25959
25960# So? What about this header?
5d7b7554 25961case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25962 yes:no: )
a848cd7e
SC
25963 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
25964echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25965 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
25966echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
25967 ac_header_preproc=yes
a848cd7e 25968 ;;
ac1cb8d3 25969 no:yes:* )
a848cd7e
SC
25970 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
25971echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25972 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
25973echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
25974 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
25975echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
25976 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
25977echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25978 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
25979echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25980 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
25981echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25982 (
25983 cat <<\_ASBOX
ac1cb8d3
VS
25984## ----------------------------------------- ##
25985## Report this to wx-dev@lists.wxwidgets.org ##
25986## ----------------------------------------- ##
a848cd7e
SC
25987_ASBOX
25988 ) |
25989 sed "s/^/$as_me: WARNING: /" >&2
25990 ;;
25991esac
25992echo "$as_me:$LINENO: checking for tiffio.h" >&5
25993echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25994if test "${ac_cv_header_tiffio_h+set}" = set; then
25995 echo $ECHO_N "(cached) $ECHO_C" >&6
25996else
25997 ac_cv_header_tiffio_h=$ac_header_preproc
25998fi
25999echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26000echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26001
26002fi
26003if test $ac_cv_header_tiffio_h = yes; then
26004
26005 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
26006echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
26007if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
26008 echo $ECHO_N "(cached) $ECHO_C" >&6
26009else
26010 ac_check_lib_save_LIBS=$LIBS
26011LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
26012cat >conftest.$ac_ext <<_ACEOF
26013/* confdefs.h. */
26014_ACEOF
26015cat confdefs.h >>conftest.$ac_ext
26016cat >>conftest.$ac_ext <<_ACEOF
26017/* end confdefs.h. */
26018
26019/* Override any gcc2 internal prototype to avoid an error. */
26020#ifdef __cplusplus
26021extern "C"
26022#endif
26023/* We use char because int might match the return type of a gcc2
26024 builtin and then its argument prototype would still apply. */
26025char TIFFError ();
26026int
26027main ()
26028{
26029TIFFError ();
26030 ;
26031 return 0;
26032}
26033_ACEOF
26034rm -f conftest.$ac_objext conftest$ac_exeext
26035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26036 (eval $ac_link) 2>conftest.er1
a848cd7e 26037 ac_status=$?
ac1cb8d3
VS
26038 grep -v '^ *+' conftest.er1 >conftest.err
26039 rm -f conftest.er1
26040 cat conftest.err >&5
a848cd7e
SC
26041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042 (exit $ac_status); } &&
3f60522a
JS
26043 { ac_try='test -z "$ac_cxx_werror_flag"
26044 || test ! -s conftest.err'
ac1cb8d3
VS
26045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26046 (eval $ac_try) 2>&5
26047 ac_status=$?
26048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26049 (exit $ac_status); }; } &&
26050 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26052 (eval $ac_try) 2>&5
26053 ac_status=$?
26054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26055 (exit $ac_status); }; }; then
26056 ac_cv_lib_tiff_TIFFError=yes
26057else
26058 echo "$as_me: failed program was:" >&5
26059sed 's/^/| /' conftest.$ac_ext >&5
26060
26061ac_cv_lib_tiff_TIFFError=no
26062fi
ac1cb8d3
VS
26063rm -f conftest.err conftest.$ac_objext \
26064 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26065LIBS=$ac_check_lib_save_LIBS
26066fi
26067echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26068echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
26069if test $ac_cv_lib_tiff_TIFFError = yes; then
26070 TIFF_LINK=" -ltiff"
26071fi
26072
26073
26074
26075fi
26076
26077
26078
26079 if test "x$TIFF_LINK" = "x" ; then
26080 if test "$wxUSE_LIBTIFF" = "sys" ; then
26081 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26082echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26083 { (exit 1); exit 1; }; }
26084 else
26085 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26086echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26087 wxUSE_LIBTIFF=builtin
26088 fi
26089 else
26090 wxUSE_LIBTIFF=sys
26091 fi
26092 fi
26093fi
26094
26095
47a7e797
MW
26096if test "$wxUSE_WCHAR_T" != "yes"; then
26097 if test "$wxUSE_EXPAT" != "no"; then
26098 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26099echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26100 wxUSE_EXPAT=no
26101 fi
26102 if test "$wxUSE_XML" != "no"; then
26103 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26104echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26105 wxUSE_XML=no
26106 fi
26107fi
26108
a848cd7e
SC
26109if test "$wxUSE_EXPAT" != "no"; then
26110 wxUSE_XML=yes
26111 cat >>confdefs.h <<\_ACEOF
26112#define wxUSE_EXPAT 1
26113_ACEOF
26114
26115 cat >>confdefs.h <<\_ACEOF
26116#define wxUSE_XML 1
26117_ACEOF
26118
26119
26120 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26121 if test "${ac_cv_header_expat_h+set}" = set; then
26122 echo "$as_me:$LINENO: checking for expat.h" >&5
26123echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26124if test "${ac_cv_header_expat_h+set}" = set; then
26125 echo $ECHO_N "(cached) $ECHO_C" >&6
26126fi
26127echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26128echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26129else
26130 # Is the header compilable?
26131echo "$as_me:$LINENO: checking expat.h usability" >&5
26132echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
26133cat >conftest.$ac_ext <<_ACEOF
26134/* confdefs.h. */
26135_ACEOF
26136cat confdefs.h >>conftest.$ac_ext
26137cat >>conftest.$ac_ext <<_ACEOF
26138/* end confdefs.h. */
26139$ac_includes_default
26140#include <expat.h>
26141_ACEOF
26142rm -f conftest.$ac_objext
26143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26144 (eval $ac_compile) 2>conftest.er1
a848cd7e 26145 ac_status=$?
ac1cb8d3
VS
26146 grep -v '^ *+' conftest.er1 >conftest.err
26147 rm -f conftest.er1
26148 cat conftest.err >&5
a848cd7e
SC
26149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150 (exit $ac_status); } &&
3f60522a
JS
26151 { ac_try='test -z "$ac_cxx_werror_flag"
26152 || test ! -s conftest.err'
ac1cb8d3
VS
26153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26154 (eval $ac_try) 2>&5
26155 ac_status=$?
26156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26157 (exit $ac_status); }; } &&
26158 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26160 (eval $ac_try) 2>&5
26161 ac_status=$?
26162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26163 (exit $ac_status); }; }; then
26164 ac_header_compiler=yes
26165else
26166 echo "$as_me: failed program was:" >&5
26167sed 's/^/| /' conftest.$ac_ext >&5
26168
26169ac_header_compiler=no
26170fi
ac1cb8d3 26171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26172echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26173echo "${ECHO_T}$ac_header_compiler" >&6
26174
26175# Is the header present?
26176echo "$as_me:$LINENO: checking expat.h presence" >&5
26177echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
26178cat >conftest.$ac_ext <<_ACEOF
26179/* confdefs.h. */
26180_ACEOF
26181cat confdefs.h >>conftest.$ac_ext
26182cat >>conftest.$ac_ext <<_ACEOF
26183/* end confdefs.h. */
26184#include <expat.h>
26185_ACEOF
26186if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26188 ac_status=$?
26189 grep -v '^ *+' conftest.er1 >conftest.err
26190 rm -f conftest.er1
26191 cat conftest.err >&5
26192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26193 (exit $ac_status); } >/dev/null; then
26194 if test -s conftest.err; then
5d7b7554
VZ
26195 ac_cpp_err=$ac_cxx_preproc_warn_flag
26196 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26197 else
26198 ac_cpp_err=
26199 fi
26200else
26201 ac_cpp_err=yes
26202fi
26203if test -z "$ac_cpp_err"; then
26204 ac_header_preproc=yes
26205else
26206 echo "$as_me: failed program was:" >&5
26207sed 's/^/| /' conftest.$ac_ext >&5
26208
26209 ac_header_preproc=no
26210fi
26211rm -f conftest.err conftest.$ac_ext
26212echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26213echo "${ECHO_T}$ac_header_preproc" >&6
26214
26215# So? What about this header?
5d7b7554 26216case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26217 yes:no: )
a848cd7e
SC
26218 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26219echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26220 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26221echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26222 ac_header_preproc=yes
a848cd7e 26223 ;;
ac1cb8d3 26224 no:yes:* )
a848cd7e
SC
26225 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26226echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26227 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
26228echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
26229 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26230echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26231 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
26232echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26233 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26234echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26235 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26236echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26237 (
26238 cat <<\_ASBOX
ac1cb8d3
VS
26239## ----------------------------------------- ##
26240## Report this to wx-dev@lists.wxwidgets.org ##
26241## ----------------------------------------- ##
a848cd7e
SC
26242_ASBOX
26243 ) |
26244 sed "s/^/$as_me: WARNING: /" >&2
26245 ;;
26246esac
26247echo "$as_me:$LINENO: checking for expat.h" >&5
26248echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26249if test "${ac_cv_header_expat_h+set}" = set; then
26250 echo $ECHO_N "(cached) $ECHO_C" >&6
26251else
26252 ac_cv_header_expat_h=$ac_header_preproc
26253fi
26254echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26255echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26256
26257fi
26258if test $ac_cv_header_expat_h = yes; then
26259 found_expat_h=1
26260fi
26261
26262
26263 if test "x$found_expat_h" = "x1"; then
26264 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
26265echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
26266if test "${wx_cv_expat_is_not_broken+set}" = set; then
26267 echo $ECHO_N "(cached) $ECHO_C" >&6
26268else
26269
a848cd7e
SC
26270 cat >conftest.$ac_ext <<_ACEOF
26271/* confdefs.h. */
26272_ACEOF
26273cat confdefs.h >>conftest.$ac_ext
26274cat >>conftest.$ac_ext <<_ACEOF
26275/* end confdefs.h. */
26276#include <expat.h>
26277int
26278main ()
26279{
26280
26281 ;
26282 return 0;
26283}
26284_ACEOF
26285rm -f conftest.$ac_objext
26286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26287 (eval $ac_compile) 2>conftest.er1
a848cd7e 26288 ac_status=$?
ac1cb8d3
VS
26289 grep -v '^ *+' conftest.er1 >conftest.err
26290 rm -f conftest.er1
26291 cat conftest.err >&5
a848cd7e
SC
26292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26293 (exit $ac_status); } &&
3f60522a
JS
26294 { ac_try='test -z "$ac_cxx_werror_flag"
26295 || test ! -s conftest.err'
ac1cb8d3
VS
26296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26297 (eval $ac_try) 2>&5
26298 ac_status=$?
26299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26300 (exit $ac_status); }; } &&
26301 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26303 (eval $ac_try) 2>&5
26304 ac_status=$?
26305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306 (exit $ac_status); }; }; then
26307 wx_cv_expat_is_not_broken=yes
26308else
26309 echo "$as_me: failed program was:" >&5
26310sed 's/^/| /' conftest.$ac_ext >&5
26311
26312wx_cv_expat_is_not_broken=no
26313
26314fi
ac1cb8d3 26315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26316
26317
26318fi
26319echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
26320echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
26321 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
26322 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
26323echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
26324if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
26325 echo $ECHO_N "(cached) $ECHO_C" >&6
26326else
26327 ac_check_lib_save_LIBS=$LIBS
26328LIBS="-lexpat $LIBS"
26329cat >conftest.$ac_ext <<_ACEOF
26330/* confdefs.h. */
26331_ACEOF
26332cat confdefs.h >>conftest.$ac_ext
26333cat >>conftest.$ac_ext <<_ACEOF
26334/* end confdefs.h. */
26335
26336/* Override any gcc2 internal prototype to avoid an error. */
26337#ifdef __cplusplus
26338extern "C"
26339#endif
26340/* We use char because int might match the return type of a gcc2
26341 builtin and then its argument prototype would still apply. */
26342char XML_ParserCreate ();
26343int
26344main ()
26345{
26346XML_ParserCreate ();
26347 ;
26348 return 0;
26349}
26350_ACEOF
26351rm -f conftest.$ac_objext conftest$ac_exeext
26352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26353 (eval $ac_link) 2>conftest.er1
a848cd7e 26354 ac_status=$?
ac1cb8d3
VS
26355 grep -v '^ *+' conftest.er1 >conftest.err
26356 rm -f conftest.er1
26357 cat conftest.err >&5
a848cd7e
SC
26358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26359 (exit $ac_status); } &&
3f60522a
JS
26360 { ac_try='test -z "$ac_cxx_werror_flag"
26361 || test ! -s conftest.err'
ac1cb8d3
VS
26362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26363 (eval $ac_try) 2>&5
26364 ac_status=$?
26365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26366 (exit $ac_status); }; } &&
26367 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26369 (eval $ac_try) 2>&5
26370 ac_status=$?
26371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26372 (exit $ac_status); }; }; then
26373 ac_cv_lib_expat_XML_ParserCreate=yes
26374else
26375 echo "$as_me: failed program was:" >&5
26376sed 's/^/| /' conftest.$ac_ext >&5
26377
26378ac_cv_lib_expat_XML_ParserCreate=no
26379fi
ac1cb8d3
VS
26380rm -f conftest.err conftest.$ac_objext \
26381 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26382LIBS=$ac_check_lib_save_LIBS
26383fi
26384echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
26385echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
26386if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
26387 EXPAT_LINK=" -lexpat"
26388fi
26389
26390 fi
26391 fi
26392 if test "x$EXPAT_LINK" = "x" ; then
26393 if test "$wxUSE_EXPAT" = "sys" ; then
26394 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
26395echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
26396 { (exit 1); exit 1; }; }
26397 else
26398 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
26399echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
26400 wxUSE_EXPAT=builtin
26401 fi
26402 else
26403 wxUSE_EXPAT=sys
26404 fi
26405 fi
26406 if test "$wxUSE_EXPAT" = "builtin" ; then
26407
26408
26409subdirs="$subdirs src/expat"
26410
26411 fi
26412fi
26413
26414
26415
26416if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
26417 if test "${ac_cv_header_mspack_h+set}" = set; then
26418 echo "$as_me:$LINENO: checking for mspack.h" >&5
26419echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26420if test "${ac_cv_header_mspack_h+set}" = set; then
26421 echo $ECHO_N "(cached) $ECHO_C" >&6
26422fi
26423echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26424echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26425else
26426 # Is the header compilable?
26427echo "$as_me:$LINENO: checking mspack.h usability" >&5
26428echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26429cat >conftest.$ac_ext <<_ACEOF
26430/* confdefs.h. */
26431_ACEOF
26432cat confdefs.h >>conftest.$ac_ext
26433cat >>conftest.$ac_ext <<_ACEOF
26434/* end confdefs.h. */
26435$ac_includes_default
26436#include <mspack.h>
26437_ACEOF
26438rm -f conftest.$ac_objext
26439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26440 (eval $ac_compile) 2>conftest.er1
a848cd7e 26441 ac_status=$?
ac1cb8d3
VS
26442 grep -v '^ *+' conftest.er1 >conftest.err
26443 rm -f conftest.er1
26444 cat conftest.err >&5
a848cd7e
SC
26445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26446 (exit $ac_status); } &&
3f60522a
JS
26447 { ac_try='test -z "$ac_cxx_werror_flag"
26448 || test ! -s conftest.err'
ac1cb8d3
VS
26449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26450 (eval $ac_try) 2>&5
26451 ac_status=$?
26452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26453 (exit $ac_status); }; } &&
26454 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26456 (eval $ac_try) 2>&5
26457 ac_status=$?
26458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26459 (exit $ac_status); }; }; then
26460 ac_header_compiler=yes
26461else
26462 echo "$as_me: failed program was:" >&5
26463sed 's/^/| /' conftest.$ac_ext >&5
26464
26465ac_header_compiler=no
26466fi
ac1cb8d3 26467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26468echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26469echo "${ECHO_T}$ac_header_compiler" >&6
26470
26471# Is the header present?
26472echo "$as_me:$LINENO: checking mspack.h presence" >&5
26473echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
26474cat >conftest.$ac_ext <<_ACEOF
26475/* confdefs.h. */
26476_ACEOF
26477cat confdefs.h >>conftest.$ac_ext
26478cat >>conftest.$ac_ext <<_ACEOF
26479/* end confdefs.h. */
26480#include <mspack.h>
26481_ACEOF
26482if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26484 ac_status=$?
26485 grep -v '^ *+' conftest.er1 >conftest.err
26486 rm -f conftest.er1
26487 cat conftest.err >&5
26488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26489 (exit $ac_status); } >/dev/null; then
26490 if test -s conftest.err; then
5d7b7554
VZ
26491 ac_cpp_err=$ac_cxx_preproc_warn_flag
26492 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26493 else
26494 ac_cpp_err=
26495 fi
26496else
26497 ac_cpp_err=yes
26498fi
26499if test -z "$ac_cpp_err"; then
26500 ac_header_preproc=yes
26501else
26502 echo "$as_me: failed program was:" >&5
26503sed 's/^/| /' conftest.$ac_ext >&5
26504
26505 ac_header_preproc=no
26506fi
26507rm -f conftest.err conftest.$ac_ext
26508echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26509echo "${ECHO_T}$ac_header_preproc" >&6
26510
26511# So? What about this header?
5d7b7554 26512case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26513 yes:no: )
a848cd7e
SC
26514 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
26515echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26516 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
26517echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
26518 ac_header_preproc=yes
a848cd7e 26519 ;;
ac1cb8d3 26520 no:yes:* )
a848cd7e
SC
26521 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
26522echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26523 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
26524echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
26525 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
26526echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
26527 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
26528echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26529 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
26530echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26531 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
26532echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26533 (
26534 cat <<\_ASBOX
ac1cb8d3
VS
26535## ----------------------------------------- ##
26536## Report this to wx-dev@lists.wxwidgets.org ##
26537## ----------------------------------------- ##
a848cd7e
SC
26538_ASBOX
26539 ) |
26540 sed "s/^/$as_me: WARNING: /" >&2
26541 ;;
26542esac
26543echo "$as_me:$LINENO: checking for mspack.h" >&5
26544echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26545if test "${ac_cv_header_mspack_h+set}" = set; then
26546 echo $ECHO_N "(cached) $ECHO_C" >&6
26547else
26548 ac_cv_header_mspack_h=$ac_header_preproc
26549fi
26550echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26551echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26552
26553fi
26554if test $ac_cv_header_mspack_h = yes; then
26555 found_mspack_h=1
26556fi
26557
26558
26559 if test "x$found_mspack_h" = "x1"; then
26560 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26561echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26562if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26563 echo $ECHO_N "(cached) $ECHO_C" >&6
26564else
26565 ac_check_lib_save_LIBS=$LIBS
26566LIBS="-lmspack $LIBS"
26567cat >conftest.$ac_ext <<_ACEOF
26568/* confdefs.h. */
26569_ACEOF
26570cat confdefs.h >>conftest.$ac_ext
26571cat >>conftest.$ac_ext <<_ACEOF
26572/* end confdefs.h. */
26573
26574/* Override any gcc2 internal prototype to avoid an error. */
26575#ifdef __cplusplus
26576extern "C"
26577#endif
26578/* We use char because int might match the return type of a gcc2
26579 builtin and then its argument prototype would still apply. */
26580char mspack_create_chm_decompressor ();
26581int
26582main ()
26583{
26584mspack_create_chm_decompressor ();
26585 ;
26586 return 0;
26587}
26588_ACEOF
26589rm -f conftest.$ac_objext conftest$ac_exeext
26590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26591 (eval $ac_link) 2>conftest.er1
a848cd7e 26592 ac_status=$?
ac1cb8d3
VS
26593 grep -v '^ *+' conftest.er1 >conftest.err
26594 rm -f conftest.er1
26595 cat conftest.err >&5
a848cd7e
SC
26596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26597 (exit $ac_status); } &&
3f60522a
JS
26598 { ac_try='test -z "$ac_cxx_werror_flag"
26599 || test ! -s conftest.err'
ac1cb8d3
VS
26600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26601 (eval $ac_try) 2>&5
26602 ac_status=$?
26603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26604 (exit $ac_status); }; } &&
26605 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26607 (eval $ac_try) 2>&5
26608 ac_status=$?
26609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26610 (exit $ac_status); }; }; then
26611 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
26612else
26613 echo "$as_me: failed program was:" >&5
26614sed 's/^/| /' conftest.$ac_ext >&5
26615
26616ac_cv_lib_mspack_mspack_create_chm_decompressor=no
26617fi
ac1cb8d3
VS
26618rm -f conftest.err conftest.$ac_objext \
26619 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26620LIBS=$ac_check_lib_save_LIBS
26621fi
26622echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
26623echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
26624if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
26625 MSPACK_LINK=" -lmspack"
26626fi
26627
26628 fi
26629 if test "x$MSPACK_LINK" = "x" ; then
26630 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
26631 fi
26632fi
26633
26634if test "$wxUSE_LIBMSPACK" != "no"; then
26635 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
26636#define wxUSE_LIBMSPACK 1
26637_ACEOF
26638
a848cd7e
SC
26639fi
26640
26641
26642
26643AFMINSTALL=
26644WIN32INSTALL=
26645
26646TOOLKIT=
26647TOOLKIT_INCLUDE=
26648WIDGET_SET=
26649
26650if test "$USE_WIN32" = 1 ; then
26651
26652for ac_header in w32api.h
26653do
26654as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26655if eval "test \"\${$as_ac_Header+set}\" = set"; then
26656 echo "$as_me:$LINENO: checking for $ac_header" >&5
26657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26658if eval "test \"\${$as_ac_Header+set}\" = set"; then
26659 echo $ECHO_N "(cached) $ECHO_C" >&6
26660fi
26661echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26662echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26663else
26664 # Is the header compilable?
26665echo "$as_me:$LINENO: checking $ac_header usability" >&5
26666echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26667cat >conftest.$ac_ext <<_ACEOF
26668/* confdefs.h. */
26669_ACEOF
26670cat confdefs.h >>conftest.$ac_ext
26671cat >>conftest.$ac_ext <<_ACEOF
26672/* end confdefs.h. */
26673$ac_includes_default
26674#include <$ac_header>
26675_ACEOF
26676rm -f conftest.$ac_objext
26677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26678 (eval $ac_compile) 2>conftest.er1
a848cd7e 26679 ac_status=$?
ac1cb8d3
VS
26680 grep -v '^ *+' conftest.er1 >conftest.err
26681 rm -f conftest.er1
26682 cat conftest.err >&5
a848cd7e
SC
26683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26684 (exit $ac_status); } &&
3f60522a
JS
26685 { ac_try='test -z "$ac_cxx_werror_flag"
26686 || test ! -s conftest.err'
ac1cb8d3
VS
26687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26688 (eval $ac_try) 2>&5
26689 ac_status=$?
26690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26691 (exit $ac_status); }; } &&
26692 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26694 (eval $ac_try) 2>&5
26695 ac_status=$?
26696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26697 (exit $ac_status); }; }; then
26698 ac_header_compiler=yes
26699else
26700 echo "$as_me: failed program was:" >&5
26701sed 's/^/| /' conftest.$ac_ext >&5
26702
26703ac_header_compiler=no
26704fi
ac1cb8d3 26705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26706echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26707echo "${ECHO_T}$ac_header_compiler" >&6
26708
26709# Is the header present?
26710echo "$as_me:$LINENO: checking $ac_header presence" >&5
26711echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26712cat >conftest.$ac_ext <<_ACEOF
26713/* confdefs.h. */
26714_ACEOF
26715cat confdefs.h >>conftest.$ac_ext
26716cat >>conftest.$ac_ext <<_ACEOF
26717/* end confdefs.h. */
26718#include <$ac_header>
26719_ACEOF
26720if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26722 ac_status=$?
26723 grep -v '^ *+' conftest.er1 >conftest.err
26724 rm -f conftest.er1
26725 cat conftest.err >&5
26726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26727 (exit $ac_status); } >/dev/null; then
26728 if test -s conftest.err; then
5d7b7554
VZ
26729 ac_cpp_err=$ac_cxx_preproc_warn_flag
26730 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26731 else
26732 ac_cpp_err=
26733 fi
26734else
26735 ac_cpp_err=yes
26736fi
26737if test -z "$ac_cpp_err"; then
26738 ac_header_preproc=yes
26739else
26740 echo "$as_me: failed program was:" >&5
26741sed 's/^/| /' conftest.$ac_ext >&5
26742
26743 ac_header_preproc=no
26744fi
26745rm -f conftest.err conftest.$ac_ext
26746echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26747echo "${ECHO_T}$ac_header_preproc" >&6
26748
26749# So? What about this header?
5d7b7554 26750case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26751 yes:no: )
a848cd7e
SC
26752 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26753echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26755echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26756 ac_header_preproc=yes
a848cd7e 26757 ;;
ac1cb8d3 26758 no:yes:* )
a848cd7e
SC
26759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26760echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26762echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26763 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26764echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26765 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26766echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26768echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26769 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26770echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26771 (
26772 cat <<\_ASBOX
ac1cb8d3
VS
26773## ----------------------------------------- ##
26774## Report this to wx-dev@lists.wxwidgets.org ##
26775## ----------------------------------------- ##
a848cd7e
SC
26776_ASBOX
26777 ) |
26778 sed "s/^/$as_me: WARNING: /" >&2
26779 ;;
26780esac
26781echo "$as_me:$LINENO: checking for $ac_header" >&5
26782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26783if eval "test \"\${$as_ac_Header+set}\" = set"; then
26784 echo $ECHO_N "(cached) $ECHO_C" >&6
26785else
ac1cb8d3 26786 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
26787fi
26788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26789echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26790
26791fi
26792if test `eval echo '${'$as_ac_Header'}'` = yes; then
26793 cat >>confdefs.h <<_ACEOF
26794#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26795_ACEOF
26796
26797fi
26798
26799done
26800
26801 if test "${ac_cv_header_windows_h+set}" = set; then
26802 echo "$as_me:$LINENO: checking for windows.h" >&5
26803echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26804if test "${ac_cv_header_windows_h+set}" = set; then
26805 echo $ECHO_N "(cached) $ECHO_C" >&6
26806fi
26807echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26808echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26809else
26810 # Is the header compilable?
26811echo "$as_me:$LINENO: checking windows.h usability" >&5
26812echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
26813cat >conftest.$ac_ext <<_ACEOF
26814/* confdefs.h. */
26815_ACEOF
26816cat confdefs.h >>conftest.$ac_ext
26817cat >>conftest.$ac_ext <<_ACEOF
26818/* end confdefs.h. */
26819$ac_includes_default
26820#include <windows.h>
26821_ACEOF
26822rm -f conftest.$ac_objext
26823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26824 (eval $ac_compile) 2>conftest.er1
a848cd7e 26825 ac_status=$?
ac1cb8d3
VS
26826 grep -v '^ *+' conftest.er1 >conftest.err
26827 rm -f conftest.er1
26828 cat conftest.err >&5
a848cd7e
SC
26829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830 (exit $ac_status); } &&
3f60522a
JS
26831 { ac_try='test -z "$ac_cxx_werror_flag"
26832 || test ! -s conftest.err'
ac1cb8d3
VS
26833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26834 (eval $ac_try) 2>&5
26835 ac_status=$?
26836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26837 (exit $ac_status); }; } &&
26838 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26840 (eval $ac_try) 2>&5
26841 ac_status=$?
26842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843 (exit $ac_status); }; }; then
26844 ac_header_compiler=yes
26845else
26846 echo "$as_me: failed program was:" >&5
26847sed 's/^/| /' conftest.$ac_ext >&5
26848
26849ac_header_compiler=no
26850fi
ac1cb8d3 26851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26852echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26853echo "${ECHO_T}$ac_header_compiler" >&6
26854
26855# Is the header present?
26856echo "$as_me:$LINENO: checking windows.h presence" >&5
26857echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
26858cat >conftest.$ac_ext <<_ACEOF
26859/* confdefs.h. */
26860_ACEOF
26861cat confdefs.h >>conftest.$ac_ext
26862cat >>conftest.$ac_ext <<_ACEOF
26863/* end confdefs.h. */
26864#include <windows.h>
26865_ACEOF
26866if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26868 ac_status=$?
26869 grep -v '^ *+' conftest.er1 >conftest.err
26870 rm -f conftest.er1
26871 cat conftest.err >&5
26872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26873 (exit $ac_status); } >/dev/null; then
26874 if test -s conftest.err; then
5d7b7554
VZ
26875 ac_cpp_err=$ac_cxx_preproc_warn_flag
26876 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26877 else
26878 ac_cpp_err=
26879 fi
26880else
26881 ac_cpp_err=yes
26882fi
26883if test -z "$ac_cpp_err"; then
26884 ac_header_preproc=yes
26885else
26886 echo "$as_me: failed program was:" >&5
26887sed 's/^/| /' conftest.$ac_ext >&5
26888
26889 ac_header_preproc=no
26890fi
26891rm -f conftest.err conftest.$ac_ext
26892echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26893echo "${ECHO_T}$ac_header_preproc" >&6
26894
26895# So? What about this header?
5d7b7554 26896case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26897 yes:no: )
a848cd7e
SC
26898 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
26899echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26900 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
26901echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
26902 ac_header_preproc=yes
a848cd7e 26903 ;;
ac1cb8d3 26904 no:yes:* )
a848cd7e
SC
26905 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
26906echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26907 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
26908echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
26909 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
26910echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
26911 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
26912echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26913 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
26914echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26915 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
26916echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26917 (
26918 cat <<\_ASBOX
ac1cb8d3
VS
26919## ----------------------------------------- ##
26920## Report this to wx-dev@lists.wxwidgets.org ##
26921## ----------------------------------------- ##
a848cd7e
SC
26922_ASBOX
26923 ) |
26924 sed "s/^/$as_me: WARNING: /" >&2
26925 ;;
26926esac
26927echo "$as_me:$LINENO: checking for windows.h" >&5
26928echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26929if test "${ac_cv_header_windows_h+set}" = set; then
26930 echo $ECHO_N "(cached) $ECHO_C" >&6
26931else
26932 ac_cv_header_windows_h=$ac_header_preproc
26933fi
26934echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26935echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26936
26937fi
26938if test $ac_cv_header_windows_h = yes; then
26939 :
26940else
26941
26942 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
26943echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
26944 { (exit 1); exit 1; }; }
26945
26946fi
26947
26948
26949
26950 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
26951
26952 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
26953 LIBS="$LIBS -loleacc"
26954 fi
26955
26956 case "${host}" in
26957 *-*-cygwin* )
26958 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
26959 esac
26960
26961 if test "$wxUSE_ODBC" = "sys" ; then
26962 wxUSE_ODBC = "yes"
26963 fi
26964 if test "$wxUSE_ODBC" = "yes" ; then
26965 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
26966 cat >>confdefs.h <<\_ACEOF
26967#define wxUSE_ODBC 1
26968_ACEOF
26969
26970 fi
26971
370d2fd7 26972 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
26973 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
26974
004ee6da 26975 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 26976
a848cd7e
SC
26977 WIN32INSTALL=win32install
26978fi
26979
26980if test "$wxUSE_GUI" = "yes"; then
26981 USE_GUI=1
26982
26983 GUI_TK_LIBRARY=
26984
26985 WXGTK12=
26986 WXGTK127=
26987 WXGTK20=
26988 WXGPE=
26989
207bc66c
RN
26990 if test "$wxUSE_COCOA" = 1 ; then
26991 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
26992 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
26993echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
26994 wxUSE_PRINTING_ARCHITECTURE=no
26995 fi
26996 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
26997 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
26998echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
26999 wxUSE_DRAG_AND_DROP=no
27000 fi
27001 if test "$wxUSE_DRAGIMAGE" = "yes"; then
27002 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
27003echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
27004 wxUSE_DRAGIMAGE=no
27005 fi
27006 fi
27007
a848cd7e
SC
27008 if test "$wxUSE_MSW" = 1 ; then
27009 TOOLKIT=MSW
27010 GUIDIST=MSW_DIST
27011
ceec2216 27012 case "${host}" in
a848cd7e
SC
27013 *-*-mingw32* )
27014 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27015 esac
27016 fi
27017
27018 if test "$wxUSE_GTK" = 1; then
5d7b7554
VZ
27019 ac_ext=c
27020ac_cpp='$CPP $CPPFLAGS'
27021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27023ac_compiler_gnu=$ac_cv_c_compiler_gnu
27024
27025
a848cd7e
SC
27026 echo "$as_me:$LINENO: checking for GTK+ version" >&5
27027echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
27028
27029 gtk_version_cached=1
27030 if test "${wx_cv_lib_gtk+set}" = set; then
27031 echo $ECHO_N "(cached) $ECHO_C" >&6
27032else
27033
27034 gtk_version_cached=0
27035 echo "$as_me:$LINENO: result: " >&5
27036echo "${ECHO_T}" >&6
27037
27038 GTK_MODULES=
27039 if test "$wxUSE_THREADS" = "yes"; then
27040 GTK_MODULES=gthread
27041 fi
27042
f597b41c 27043 wx_cv_lib_gtk=
5001df0d
MW
27044 if test "x$wxGTK_VERSION" != "x1"
27045 then
27046 case "${host}" in
27047 *-*-solaris2* )
27048 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 27049 enable_gtktest=no
5001df0d
MW
27050 fi
27051 esac
27052
a848cd7e
SC
27053 # Check whether --enable-gtktest or --disable-gtktest was given.
27054if test "${enable_gtktest+set}" = set; then
27055 enableval="$enable_gtktest"
27056
27057else
27058 enable_gtktest=yes
27059fi;
27060
27061 pkg_config_args=gtk+-2.0
27062 for module in . $GTK_MODULES
27063 do
27064 case "$module" in
27065 gthread)
27066 pkg_config_args="$pkg_config_args gthread-2.0"
27067 ;;
27068 esac
27069 done
27070
27071 no_gtk=""
27072
27073 # Extract the first word of "pkg-config", so it can be a program name with args.
27074set dummy pkg-config; ac_word=$2
27075echo "$as_me:$LINENO: checking for $ac_word" >&5
27076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27077if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27078 echo $ECHO_N "(cached) $ECHO_C" >&6
27079else
27080 case $PKG_CONFIG in
27081 [\\/]* | ?:[\\/]*)
27082 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27083 ;;
27084 *)
27085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27086for as_dir in $PATH
27087do
27088 IFS=$as_save_IFS
27089 test -z "$as_dir" && as_dir=.
27090 for ac_exec_ext in '' $ac_executable_extensions; do
27091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27092 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27094 break 2
27095 fi
27096done
27097done
27098
27099 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27100 ;;
27101esac
27102fi
27103PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27104
27105if test -n "$PKG_CONFIG"; then
27106 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27107echo "${ECHO_T}$PKG_CONFIG" >&6
27108else
27109 echo "$as_me:$LINENO: result: no" >&5
27110echo "${ECHO_T}no" >&6
27111fi
27112
27113
27114 if test x$PKG_CONFIG != xno ; then
27115 if pkg-config --atleast-pkgconfig-version 0.7 ; then
27116 :
27117 else
c2218763 27118 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
27119 no_gtk=yes
27120 PKG_CONFIG=no
27121 fi
27122 else
27123 no_gtk=yes
27124 fi
27125
27126 min_gtk_version=2.0.0
27127 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
27128echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
27129
27130 if test x$PKG_CONFIG != xno ; then
27131 ## don't try to run the test against uninstalled libtool libs
27132 if $PKG_CONFIG --uninstalled $pkg_config_args; then
27133 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
27134 enable_gtktest=no
27135 fi
27136
27137 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
27138 :
27139 else
27140 no_gtk=yes
27141 fi
27142 fi
27143
27144 if test x"$no_gtk" = x ; then
27145 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
27146 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
27147 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27148 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27149 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27150 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27151 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27152 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27153 if test "x$enable_gtktest" = "xyes" ; then
27154 ac_save_CFLAGS="$CFLAGS"
27155 ac_save_LIBS="$LIBS"
27156 CFLAGS="$CFLAGS $GTK_CFLAGS"
27157 LIBS="$GTK_LIBS $LIBS"
27158 rm -f conf.gtktest
27159 if test "$cross_compiling" = yes; then
27160 echo $ac_n "cross compiling; assumed OK... $ac_c"
27161else
27162 cat >conftest.$ac_ext <<_ACEOF
27163/* confdefs.h. */
27164_ACEOF
27165cat confdefs.h >>conftest.$ac_ext
27166cat >>conftest.$ac_ext <<_ACEOF
27167/* end confdefs.h. */
27168
27169#include <gtk/gtk.h>
27170#include <stdio.h>
27171#include <stdlib.h>
27172
27173int
27174main ()
27175{
27176 int major, minor, micro;
27177 char *tmp_version;
27178
27179 system ("touch conf.gtktest");
27180
27181 /* HP/UX 9 (%@#!) writes to sscanf strings */
27182 tmp_version = g_strdup("$min_gtk_version");
27183 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27184 printf("%s, bad version string\n", "$min_gtk_version");
27185 exit(1);
27186 }
27187
27188 if ((gtk_major_version != $gtk_config_major_version) ||
27189 (gtk_minor_version != $gtk_config_minor_version) ||
27190 (gtk_micro_version != $gtk_config_micro_version))
27191 {
27192 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27193 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27194 gtk_major_version, gtk_minor_version, gtk_micro_version);
27195 printf ("*** was found! If pkg-config was correct, then it is best\n");
27196 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27197 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27198 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27199 printf("*** required on your system.\n");
27200 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
27201 printf("*** to point to the correct configuration files\n");
27202 }
27203 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27204 (gtk_minor_version != GTK_MINOR_VERSION) ||
27205 (gtk_micro_version != GTK_MICRO_VERSION))
27206 {
27207 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27208 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27209 printf("*** library (version %d.%d.%d)\n",
27210 gtk_major_version, gtk_minor_version, gtk_micro_version);
27211 }
27212 else
27213 {
27214 if ((gtk_major_version > major) ||
27215 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27216 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27217 {
27218 return 0;
27219 }
27220 else
27221 {
27222 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27223 gtk_major_version, gtk_minor_version, gtk_micro_version);
27224 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27225 major, minor, micro);
27226 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27227 printf("***\n");
27228 printf("*** If you have already installed a sufficiently new version, this error\n");
27229 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27230 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27231 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27232 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27233 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27234 printf("*** so that the correct libraries are found at run-time))\n");
27235 }
27236 }
27237 return 1;
27238}
27239
27240_ACEOF
27241rm -f conftest$ac_exeext
27242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27243 (eval $ac_link) 2>&5
27244 ac_status=$?
27245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27248 (eval $ac_try) 2>&5
27249 ac_status=$?
27250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27251 (exit $ac_status); }; }; then
27252 :
27253else
27254 echo "$as_me: program exited with status $ac_status" >&5
27255echo "$as_me: failed program was:" >&5
27256sed 's/^/| /' conftest.$ac_ext >&5
27257
27258( exit $ac_status )
27259no_gtk=yes
27260fi
ac1cb8d3 27261rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27262fi
27263 CFLAGS="$ac_save_CFLAGS"
27264 LIBS="$ac_save_LIBS"
27265 fi
27266 fi
27267 if test "x$no_gtk" = x ; then
27268 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
27269echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
27270 wx_cv_lib_gtk=2.0
27271 else
27272 echo "$as_me:$LINENO: result: no" >&5
27273echo "${ECHO_T}no" >&6
27274 if test "$PKG_CONFIG" = "no" ; then
27275 echo "*** A new enough version of pkg-config was not found."
27276 echo "*** See http://pkgconfig.sourceforge.net"
27277 else
27278 if test -f conf.gtktest ; then
27279 :
27280 else
27281 echo "*** Could not run GTK+ test program, checking why..."
27282 ac_save_CFLAGS="$CFLAGS"
27283 ac_save_LIBS="$LIBS"
27284 CFLAGS="$CFLAGS $GTK_CFLAGS"
27285 LIBS="$LIBS $GTK_LIBS"
27286 cat >conftest.$ac_ext <<_ACEOF
27287/* confdefs.h. */
27288_ACEOF
27289cat confdefs.h >>conftest.$ac_ext
27290cat >>conftest.$ac_ext <<_ACEOF
27291/* end confdefs.h. */
27292
27293#include <gtk/gtk.h>
27294#include <stdio.h>
27295
27296int
27297main ()
27298{
27299 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27300 ;
27301 return 0;
27302}
27303_ACEOF
27304rm -f conftest.$ac_objext conftest$ac_exeext
27305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27306 (eval $ac_link) 2>conftest.er1
a848cd7e 27307 ac_status=$?
ac1cb8d3
VS
27308 grep -v '^ *+' conftest.er1 >conftest.err
27309 rm -f conftest.er1
27310 cat conftest.err >&5
a848cd7e
SC
27311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312 (exit $ac_status); } &&
3f60522a
JS
27313 { ac_try='test -z "$ac_c_werror_flag"
27314 || test ! -s conftest.err'
ac1cb8d3
VS
27315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27316 (eval $ac_try) 2>&5
27317 ac_status=$?
27318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27319 (exit $ac_status); }; } &&
27320 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27322 (eval $ac_try) 2>&5
27323 ac_status=$?
27324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325 (exit $ac_status); }; }; then
27326 echo "*** The test program compiled, but did not run. This usually means"
27327 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
27328 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
27329 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27330 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27331 echo "*** is required on your system"
27332 echo "***"
27333 echo "*** If you have an old version installed, it is best to remove it, although"
27334 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27335else
27336 echo "$as_me: failed program was:" >&5
27337sed 's/^/| /' conftest.$ac_ext >&5
27338
27339 echo "*** The test program failed to compile or link. See the file config.log for the"
27340 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
27341fi
ac1cb8d3
VS
27342rm -f conftest.err conftest.$ac_objext \
27343 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27344 CFLAGS="$ac_save_CFLAGS"
27345 LIBS="$ac_save_LIBS"
27346 fi
27347 fi
27348 GTK_CFLAGS=""
27349 GTK_LIBS=""
27350 :
27351 fi
27352
27353
27354 rm -f conf.gtktest
27355
5001df0d
MW
27356
27357 case "${host}" in
27358 *-*-solaris2* )
27359 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27360 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
27361 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
27362 fi
27363 if test "$wxUSE_SHARED" != "yes"; then
27364 GTK_LIBS="$GTK_LIBS -lX11"
27365 fi
27366 esac
f597b41c
MW
27367 fi
27368
f34ca037
MW
27369 if test -z "$wx_cv_lib_gtk"; then
27370 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
27371
27372# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27373if test "${with_gtk_prefix+set}" = set; then
27374 withval="$with_gtk_prefix"
27375 gtk_config_prefix="$withval"
27376else
27377 gtk_config_prefix=""
27378fi;
27379
27380# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27381if test "${with_gtk_exec_prefix+set}" = set; then
27382 withval="$with_gtk_exec_prefix"
27383 gtk_config_exec_prefix="$withval"
27384else
27385 gtk_config_exec_prefix=""
27386fi;
27387# Check whether --enable-gtktest or --disable-gtktest was given.
27388if test "${enable_gtktest+set}" = set; then
27389 enableval="$enable_gtktest"
27390
27391else
27392 enable_gtktest=yes
27393fi;
27394
27395 for module in . $GTK_MODULES
27396 do
27397 case "$module" in
27398 gthread)
27399 gtk_config_args="$gtk_config_args gthread"
27400 ;;
27401 esac
27402 done
27403
27404 if test x$gtk_config_exec_prefix != x ; then
27405 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27406 if test x${GTK_CONFIG+set} != xset ; then
27407 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27408 fi
27409 fi
27410 if test x$gtk_config_prefix != x ; then
27411 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27412 if test x${GTK_CONFIG+set} != xset ; then
27413 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27414 fi
27415 fi
27416
27417 # Extract the first word of "gtk-config", so it can be a program name with args.
27418set dummy gtk-config; ac_word=$2
27419echo "$as_me:$LINENO: checking for $ac_word" >&5
27420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27421if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27422 echo $ECHO_N "(cached) $ECHO_C" >&6
27423else
27424 case $GTK_CONFIG in
27425 [\\/]* | ?:[\\/]*)
27426 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27427 ;;
27428 *)
27429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27430for as_dir in $PATH
27431do
27432 IFS=$as_save_IFS
27433 test -z "$as_dir" && as_dir=.
27434 for ac_exec_ext in '' $ac_executable_extensions; do
27435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27436 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27438 break 2
27439 fi
27440done
27441done
27442
27443 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27444 ;;
27445esac
27446fi
27447GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27448
27449if test -n "$GTK_CONFIG"; then
27450 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27451echo "${ECHO_T}$GTK_CONFIG" >&6
27452else
27453 echo "$as_me:$LINENO: result: no" >&5
27454echo "${ECHO_T}no" >&6
27455fi
27456
27457 min_gtk_version=1.2.7
27458 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27459echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27460 no_gtk=""
27461 if test "$GTK_CONFIG" = "no" ; then
27462 no_gtk=yes
27463 else
27464 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27465 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27466 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27467 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27468 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27469 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27470 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27471 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27472 if test "x$enable_gtktest" = "xyes" ; then
27473 ac_save_CFLAGS="$CFLAGS"
27474 ac_save_LIBS="$LIBS"
27475 CFLAGS="$CFLAGS $GTK_CFLAGS"
27476 LIBS="$GTK_LIBS $LIBS"
27477 rm -f conf.gtktest
27478 if test "$cross_compiling" = yes; then
27479 echo $ac_n "cross compiling; assumed OK... $ac_c"
27480else
27481 cat >conftest.$ac_ext <<_ACEOF
27482/* confdefs.h. */
27483_ACEOF
27484cat confdefs.h >>conftest.$ac_ext
27485cat >>conftest.$ac_ext <<_ACEOF
27486/* end confdefs.h. */
27487
27488#include <gtk/gtk.h>
27489#include <stdio.h>
27490#include <stdlib.h>
27491
27492int
27493main ()
27494{
27495 int major, minor, micro;
27496 char *tmp_version;
27497
27498 system ("touch conf.gtktest");
27499
27500 /* HP/UX 9 (%@#!) writes to sscanf strings */
27501 tmp_version = g_strdup("$min_gtk_version");
27502 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27503 printf("%s, bad version string\n", "$min_gtk_version");
27504 exit(1);
27505 }
27506
27507 if ((gtk_major_version != $gtk_config_major_version) ||
27508 (gtk_minor_version != $gtk_config_minor_version) ||
27509 (gtk_micro_version != $gtk_config_micro_version))
27510 {
27511 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27512 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27513 gtk_major_version, gtk_minor_version, gtk_micro_version);
27514 printf ("*** was found! If gtk-config was correct, then it is best\n");
27515 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27516 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27517 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27518 printf("*** required on your system.\n");
27519 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27520 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27521 printf("*** before re-running configure\n");
27522 }
27523#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27524 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27525 (gtk_minor_version != GTK_MINOR_VERSION) ||
27526 (gtk_micro_version != GTK_MICRO_VERSION))
27527 {
27528 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27529 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27530 printf("*** library (version %d.%d.%d)\n",
27531 gtk_major_version, gtk_minor_version, gtk_micro_version);
27532 }
27533#endif /* defined (GTK_MAJOR_VERSION) ... */
27534 else
27535 {
27536 if ((gtk_major_version > major) ||
27537 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27538 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27539 {
27540 return 0;
27541 }
27542 else
27543 {
27544 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27545 gtk_major_version, gtk_minor_version, gtk_micro_version);
27546 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27547 major, minor, micro);
27548 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27549 printf("***\n");
27550 printf("*** If you have already installed a sufficiently new version, this error\n");
27551 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27552 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27553 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27554 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27555 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27556 printf("*** so that the correct libraries are found at run-time))\n");
27557 }
27558 }
27559 return 1;
27560}
27561
27562_ACEOF
27563rm -f conftest$ac_exeext
27564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27565 (eval $ac_link) 2>&5
27566 ac_status=$?
27567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27570 (eval $ac_try) 2>&5
27571 ac_status=$?
27572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27573 (exit $ac_status); }; }; then
27574 :
27575else
27576 echo "$as_me: program exited with status $ac_status" >&5
27577echo "$as_me: failed program was:" >&5
27578sed 's/^/| /' conftest.$ac_ext >&5
27579
27580( exit $ac_status )
27581no_gtk=yes
27582fi
ac1cb8d3 27583rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27584fi
27585 CFLAGS="$ac_save_CFLAGS"
27586 LIBS="$ac_save_LIBS"
27587 fi
27588 fi
27589 if test "x$no_gtk" = x ; then
27590 echo "$as_me:$LINENO: result: yes" >&5
27591echo "${ECHO_T}yes" >&6
27592 wx_cv_lib_gtk=1.2.7
27593 else
27594 echo "$as_me:$LINENO: result: no" >&5
27595echo "${ECHO_T}no" >&6
27596 if test "$GTK_CONFIG" = "no" ; then
27597 echo "*** The gtk-config script installed by GTK could not be found"
27598 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27599 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27600 echo "*** full path to gtk-config."
27601 else
27602 if test -f conf.gtktest ; then
27603 :
27604 else
27605 echo "*** Could not run GTK test program, checking why..."
27606 CFLAGS="$CFLAGS $GTK_CFLAGS"
27607 LIBS="$LIBS $GTK_LIBS"
27608 cat >conftest.$ac_ext <<_ACEOF
27609/* confdefs.h. */
27610_ACEOF
27611cat confdefs.h >>conftest.$ac_ext
27612cat >>conftest.$ac_ext <<_ACEOF
27613/* end confdefs.h. */
27614
27615#include <gtk/gtk.h>
27616#include <stdio.h>
27617
27618int
27619main ()
27620{
27621 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27622 ;
27623 return 0;
27624}
27625_ACEOF
27626rm -f conftest.$ac_objext conftest$ac_exeext
27627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27628 (eval $ac_link) 2>conftest.er1
a848cd7e 27629 ac_status=$?
ac1cb8d3
VS
27630 grep -v '^ *+' conftest.er1 >conftest.err
27631 rm -f conftest.er1
27632 cat conftest.err >&5
a848cd7e
SC
27633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27634 (exit $ac_status); } &&
3f60522a
JS
27635 { ac_try='test -z "$ac_c_werror_flag"
27636 || test ! -s conftest.err'
ac1cb8d3
VS
27637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27638 (eval $ac_try) 2>&5
27639 ac_status=$?
27640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27641 (exit $ac_status); }; } &&
27642 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27644 (eval $ac_try) 2>&5
27645 ac_status=$?
27646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27647 (exit $ac_status); }; }; then
27648 echo "*** The test program compiled, but did not run. This usually means"
27649 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27650 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27651 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27652 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27653 echo "*** is required on your system"
27654 echo "***"
27655 echo "*** If you have an old version installed, it is best to remove it, although"
27656 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27657 echo "***"
27658 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27659 echo "*** came with the system with the command"
27660 echo "***"
27661 echo "*** rpm --erase --nodeps gtk gtk-devel"
27662else
27663 echo "$as_me: failed program was:" >&5
27664sed 's/^/| /' conftest.$ac_ext >&5
27665
27666 echo "*** The test program failed to compile or link. See the file config.log for the"
27667 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27668 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27669 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27670fi
ac1cb8d3
VS
27671rm -f conftest.err conftest.$ac_objext \
27672 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27673 CFLAGS="$ac_save_CFLAGS"
27674 LIBS="$ac_save_LIBS"
27675 fi
27676 fi
27677 GTK_CFLAGS=""
27678 GTK_LIBS=""
27679 :
27680 fi
27681
27682
27683 rm -f conf.gtktest
27684
27685
f34ca037 27686 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
27687
27688# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27689if test "${with_gtk_prefix+set}" = set; then
27690 withval="$with_gtk_prefix"
27691 gtk_config_prefix="$withval"
27692else
27693 gtk_config_prefix=""
27694fi;
27695
27696# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27697if test "${with_gtk_exec_prefix+set}" = set; then
27698 withval="$with_gtk_exec_prefix"
27699 gtk_config_exec_prefix="$withval"
27700else
27701 gtk_config_exec_prefix=""
27702fi;
27703# Check whether --enable-gtktest or --disable-gtktest was given.
27704if test "${enable_gtktest+set}" = set; then
27705 enableval="$enable_gtktest"
27706
27707else
27708 enable_gtktest=yes
27709fi;
27710
27711 for module in . $GTK_MODULES
27712 do
27713 case "$module" in
27714 gthread)
27715 gtk_config_args="$gtk_config_args gthread"
27716 ;;
27717 esac
27718 done
27719
27720 if test x$gtk_config_exec_prefix != x ; then
27721 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27722 if test x${GTK_CONFIG+set} != xset ; then
27723 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27724 fi
27725 fi
27726 if test x$gtk_config_prefix != x ; then
27727 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27728 if test x${GTK_CONFIG+set} != xset ; then
27729 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27730 fi
27731 fi
27732
27733 # Extract the first word of "gtk-config", so it can be a program name with args.
27734set dummy gtk-config; ac_word=$2
27735echo "$as_me:$LINENO: checking for $ac_word" >&5
27736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27737if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27738 echo $ECHO_N "(cached) $ECHO_C" >&6
27739else
27740 case $GTK_CONFIG in
27741 [\\/]* | ?:[\\/]*)
27742 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27743 ;;
27744 *)
27745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27746for as_dir in $PATH
27747do
27748 IFS=$as_save_IFS
27749 test -z "$as_dir" && as_dir=.
27750 for ac_exec_ext in '' $ac_executable_extensions; do
27751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27752 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27754 break 2
27755 fi
27756done
27757done
27758
27759 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27760 ;;
27761esac
27762fi
27763GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27764
27765if test -n "$GTK_CONFIG"; then
27766 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27767echo "${ECHO_T}$GTK_CONFIG" >&6
27768else
27769 echo "$as_me:$LINENO: result: no" >&5
27770echo "${ECHO_T}no" >&6
27771fi
27772
27773 min_gtk_version=1.2.3
27774 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27775echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27776 no_gtk=""
27777 if test "$GTK_CONFIG" = "no" ; then
27778 no_gtk=yes
27779 else
27780 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27781 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27782 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27783 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27784 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27785 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27786 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27787 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27788 if test "x$enable_gtktest" = "xyes" ; then
27789 ac_save_CFLAGS="$CFLAGS"
27790 ac_save_LIBS="$LIBS"
27791 CFLAGS="$CFLAGS $GTK_CFLAGS"
27792 LIBS="$GTK_LIBS $LIBS"
27793 rm -f conf.gtktest
27794 if test "$cross_compiling" = yes; then
27795 echo $ac_n "cross compiling; assumed OK... $ac_c"
27796else
27797 cat >conftest.$ac_ext <<_ACEOF
27798/* confdefs.h. */
27799_ACEOF
27800cat confdefs.h >>conftest.$ac_ext
27801cat >>conftest.$ac_ext <<_ACEOF
27802/* end confdefs.h. */
27803
27804#include <gtk/gtk.h>
27805#include <stdio.h>
27806#include <stdlib.h>
27807
27808int
27809main ()
27810{
27811 int major, minor, micro;
27812 char *tmp_version;
27813
27814 system ("touch conf.gtktest");
27815
27816 /* HP/UX 9 (%@#!) writes to sscanf strings */
27817 tmp_version = g_strdup("$min_gtk_version");
27818 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27819 printf("%s, bad version string\n", "$min_gtk_version");
27820 exit(1);
27821 }
27822
27823 if ((gtk_major_version != $gtk_config_major_version) ||
27824 (gtk_minor_version != $gtk_config_minor_version) ||
27825 (gtk_micro_version != $gtk_config_micro_version))
27826 {
27827 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27828 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27829 gtk_major_version, gtk_minor_version, gtk_micro_version);
27830 printf ("*** was found! If gtk-config was correct, then it is best\n");
27831 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27832 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27833 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27834 printf("*** required on your system.\n");
27835 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27836 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27837 printf("*** before re-running configure\n");
27838 }
27839#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27840 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27841 (gtk_minor_version != GTK_MINOR_VERSION) ||
27842 (gtk_micro_version != GTK_MICRO_VERSION))
27843 {
27844 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27845 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27846 printf("*** library (version %d.%d.%d)\n",
27847 gtk_major_version, gtk_minor_version, gtk_micro_version);
27848 }
27849#endif /* defined (GTK_MAJOR_VERSION) ... */
27850 else
27851 {
27852 if ((gtk_major_version > major) ||
27853 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27854 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27855 {
27856 return 0;
27857 }
27858 else
27859 {
27860 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27861 gtk_major_version, gtk_minor_version, gtk_micro_version);
27862 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27863 major, minor, micro);
27864 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27865 printf("***\n");
27866 printf("*** If you have already installed a sufficiently new version, this error\n");
27867 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27868 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27869 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27870 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27871 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27872 printf("*** so that the correct libraries are found at run-time))\n");
27873 }
27874 }
27875 return 1;
27876}
27877
27878_ACEOF
27879rm -f conftest$ac_exeext
27880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27881 (eval $ac_link) 2>&5
27882 ac_status=$?
27883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27886 (eval $ac_try) 2>&5
27887 ac_status=$?
27888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27889 (exit $ac_status); }; }; then
27890 :
27891else
27892 echo "$as_me: program exited with status $ac_status" >&5
27893echo "$as_me: failed program was:" >&5
27894sed 's/^/| /' conftest.$ac_ext >&5
27895
27896( exit $ac_status )
27897no_gtk=yes
27898fi
ac1cb8d3 27899rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27900fi
27901 CFLAGS="$ac_save_CFLAGS"
27902 LIBS="$ac_save_LIBS"
27903 fi
27904 fi
27905 if test "x$no_gtk" = x ; then
27906 echo "$as_me:$LINENO: result: yes" >&5
27907echo "${ECHO_T}yes" >&6
27908 wx_cv_lib_gtk=1.2.3
27909 else
27910 echo "$as_me:$LINENO: result: no" >&5
27911echo "${ECHO_T}no" >&6
27912 if test "$GTK_CONFIG" = "no" ; then
27913 echo "*** The gtk-config script installed by GTK could not be found"
27914 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27915 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27916 echo "*** full path to gtk-config."
27917 else
27918 if test -f conf.gtktest ; then
27919 :
27920 else
27921 echo "*** Could not run GTK test program, checking why..."
27922 CFLAGS="$CFLAGS $GTK_CFLAGS"
27923 LIBS="$LIBS $GTK_LIBS"
27924 cat >conftest.$ac_ext <<_ACEOF
27925/* confdefs.h. */
27926_ACEOF
27927cat confdefs.h >>conftest.$ac_ext
27928cat >>conftest.$ac_ext <<_ACEOF
27929/* end confdefs.h. */
27930
27931#include <gtk/gtk.h>
27932#include <stdio.h>
27933
27934int
27935main ()
27936{
27937 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27938 ;
27939 return 0;
27940}
27941_ACEOF
27942rm -f conftest.$ac_objext conftest$ac_exeext
27943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27944 (eval $ac_link) 2>conftest.er1
a848cd7e 27945 ac_status=$?
ac1cb8d3
VS
27946 grep -v '^ *+' conftest.er1 >conftest.err
27947 rm -f conftest.er1
27948 cat conftest.err >&5
a848cd7e
SC
27949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27950 (exit $ac_status); } &&
3f60522a
JS
27951 { ac_try='test -z "$ac_c_werror_flag"
27952 || test ! -s conftest.err'
ac1cb8d3
VS
27953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27954 (eval $ac_try) 2>&5
27955 ac_status=$?
27956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957 (exit $ac_status); }; } &&
27958 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27960 (eval $ac_try) 2>&5
27961 ac_status=$?
27962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963 (exit $ac_status); }; }; then
27964 echo "*** The test program compiled, but did not run. This usually means"
27965 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27966 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27967 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27968 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27969 echo "*** is required on your system"
27970 echo "***"
27971 echo "*** If you have an old version installed, it is best to remove it, although"
27972 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27973 echo "***"
27974 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27975 echo "*** came with the system with the command"
27976 echo "***"
27977 echo "*** rpm --erase --nodeps gtk gtk-devel"
27978else
27979 echo "$as_me: failed program was:" >&5
27980sed 's/^/| /' conftest.$ac_ext >&5
27981
27982 echo "*** The test program failed to compile or link. See the file config.log for the"
27983 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27984 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27985 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27986fi
ac1cb8d3
VS
27987rm -f conftest.err conftest.$ac_objext \
27988 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27989 CFLAGS="$ac_save_CFLAGS"
27990 LIBS="$ac_save_LIBS"
27991 fi
27992 fi
27993 GTK_CFLAGS=""
27994 GTK_LIBS=""
27995 :
27996 fi
27997
27998
27999 rm -f conf.gtktest
28000
f34ca037 28001 fi
a848cd7e
SC
28002 fi
28003 fi
28004
28005 if test -z "$wx_cv_lib_gtk"; then
28006 wx_cv_lib_gtk=none
28007 else
28008 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 28009 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
28010 fi
28011
28012
28013fi
28014
28015
28016 if test "$gtk_version_cached" = 1; then
28017 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28018echo "${ECHO_T}$wx_cv_lib_gtk" >&6
28019 fi
28020
28021 case "$wx_cv_lib_gtk" in
28022 2.0) WXGTK20=1
28023 TOOLKIT_VERSION=2
28024 ;;
28025 1.2.7) WXGTK127=1
28026 WXGTK12=1
28027 ;;
28028 1.2.3) WXGTK12=1
28029 ;;
28030 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
28031The development files for GTK+ were not found. For GTK+ 2, please
28032ensure that pkg-config is in the path and that gtk+-2.0.pc is
28033installed. For GTK+ 1.2 please check that gtk-config is in the path,
28034and that the version is 1.2.3 or above. Also check that the
28035libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28036--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28037 " >&5
28038echo "$as_me: error:
f597b41c
MW
28039The development files for GTK+ were not found. For GTK+ 2, please
28040ensure that pkg-config is in the path and that gtk+-2.0.pc is
28041installed. For GTK+ 1.2 please check that gtk-config is in the path,
28042and that the version is 1.2.3 or above. Also check that the
28043libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28044--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28045 " >&2;}
28046 { (exit 1); exit 1; }; }
28047 ;;
28048 esac
28049
28050 if test "$WXGTK20" = 1; then
6954625c 28051 save_CFLAGS="$CFLAGS"
304205f1 28052 save_LIBS="$LIBS"
6954625c 28053 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 28054 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 28055
d12aef51
VZ
28056 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
28057echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
28058 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
28059/* confdefs.h. */
28060_ACEOF
28061cat confdefs.h >>conftest.$ac_ext
28062cat >>conftest.$ac_ext <<_ACEOF
28063/* end confdefs.h. */
304205f1 28064
d12aef51 28065 #include <gtk/gtk.h>
304205f1 28066
d12aef51
VZ
28067int
28068main ()
28069{
304205f1 28070
d12aef51 28071 void *f = gtk_icon_size_lookup;
abc736fd
MW
28072
28073 ;
28074 return 0;
28075}
28076_ACEOF
28077rm -f conftest.$ac_objext
28078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28079 (eval $ac_compile) 2>conftest.er1
28080 ac_status=$?
28081 grep -v '^ *+' conftest.er1 >conftest.err
28082 rm -f conftest.er1
28083 cat conftest.err >&5
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085 (exit $ac_status); } &&
3f60522a
JS
28086 { ac_try='test -z "$ac_c_werror_flag"
28087 || test ! -s conftest.err'
abc736fd
MW
28088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28089 (eval $ac_try) 2>&5
28090 ac_status=$?
28091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092 (exit $ac_status); }; } &&
28093 { ac_try='test -s conftest.$ac_objext'
28094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28095 (eval $ac_try) 2>&5
28096 ac_status=$?
28097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28098 (exit $ac_status); }; }; then
28099
28100 echo "$as_me:$LINENO: result: no" >&5
28101echo "${ECHO_T}no" >&6
28102
28103else
28104 echo "$as_me: failed program was:" >&5
28105sed 's/^/| /' conftest.$ac_ext >&5
28106
28107
28108 cat >>confdefs.h <<\_ACEOF
28109#define NEED_GTK_ICON_SIZE_LOOKUP 1
28110_ACEOF
28111
28112 echo "$as_me:$LINENO: result: yes" >&5
28113echo "${ECHO_T}yes" >&6
28114
28115fi
28116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28117
e9263684
VZ
28118 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
28119echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
28120 cat >conftest.$ac_ext <<_ACEOF
28121/* confdefs.h. */
28122_ACEOF
28123cat confdefs.h >>conftest.$ac_ext
28124cat >>conftest.$ac_ext <<_ACEOF
28125/* end confdefs.h. */
28126
28127 #include <gtk/gtk.h>
28128
28129int
28130main ()
28131{
28132
28133 #if !GTK_CHECK_VERSION(2,6,0)
28134 Not GTK+ 2.6
28135 #endif
28136
28137 ;
28138 return 0;
28139}
28140_ACEOF
28141rm -f conftest.$ac_objext
28142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28143 (eval $ac_compile) 2>conftest.er1
28144 ac_status=$?
28145 grep -v '^ *+' conftest.er1 >conftest.err
28146 rm -f conftest.er1
28147 cat conftest.err >&5
28148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28149 (exit $ac_status); } &&
3f60522a
JS
28150 { ac_try='test -z "$ac_c_werror_flag"
28151 || test ! -s conftest.err'
e9263684
VZ
28152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28153 (eval $ac_try) 2>&5
28154 ac_status=$?
28155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28156 (exit $ac_status); }; } &&
28157 { ac_try='test -s conftest.$ac_objext'
28158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28159 (eval $ac_try) 2>&5
28160 ac_status=$?
28161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28162 (exit $ac_status); }; }; then
28163
28164 cat >>confdefs.h <<\_ACEOF
28165#define __WXGTK26__ 1
28166_ACEOF
28167
28168 cat >>confdefs.h <<\_ACEOF
28169#define __WXGTK24__ 1
28170_ACEOF
28171
28172 echo "$as_me:$LINENO: result: yes" >&5
28173echo "${ECHO_T}yes" >&6
28174 ac_wxgtk26=1
28175
28176else
28177 echo "$as_me: failed program was:" >&5
28178sed 's/^/| /' conftest.$ac_ext >&5
28179
28180
28181 echo "$as_me:$LINENO: result: no" >&5
28182echo "${ECHO_T}no" >&6
28183 ac_wxgtk26=0
28184
28185fi
28186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28187
28188 if test "$ac_wxgtk26" = 0; then
9755e73b
VS
28189 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
28190echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
28191 cat >conftest.$ac_ext <<_ACEOF
28192/* confdefs.h. */
28193_ACEOF
28194cat confdefs.h >>conftest.$ac_ext
28195cat >>conftest.$ac_ext <<_ACEOF
28196/* end confdefs.h. */
28197
28198 #include <gtk/gtk.h>
28199
28200int
28201main ()
28202{
28203
28204 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 28205 Not GTK+ 2.4
9755e73b
VS
28206 #endif
28207
28208 ;
28209 return 0;
28210}
28211_ACEOF
28212rm -f conftest.$ac_objext
28213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28214 (eval $ac_compile) 2>conftest.er1
28215 ac_status=$?
28216 grep -v '^ *+' conftest.er1 >conftest.err
28217 rm -f conftest.er1
28218 cat conftest.err >&5
28219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28220 (exit $ac_status); } &&
3f60522a
JS
28221 { ac_try='test -z "$ac_c_werror_flag"
28222 || test ! -s conftest.err'
9755e73b
VS
28223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28224 (eval $ac_try) 2>&5
28225 ac_status=$?
28226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227 (exit $ac_status); }; } &&
28228 { ac_try='test -s conftest.$ac_objext'
28229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28230 (eval $ac_try) 2>&5
28231 ac_status=$?
28232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233 (exit $ac_status); }; }; then
28234
28235 cat >>confdefs.h <<\_ACEOF
28236#define __WXGTK24__ 1
28237_ACEOF
28238
28239 echo "$as_me:$LINENO: result: yes" >&5
28240echo "${ECHO_T}yes" >&6
28241
28242else
28243 echo "$as_me: failed program was:" >&5
28244sed 's/^/| /' conftest.$ac_ext >&5
28245
28246
28247 echo "$as_me:$LINENO: result: no" >&5
28248echo "${ECHO_T}no" >&6
28249
28250fi
28251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e9263684 28252 fi
9755e73b 28253
6954625c 28254 CFLAGS="$save_CFLAGS"
304205f1 28255 LIBS="$save_LIBS"
a848cd7e
SC
28256 else
28257 if test "$wxUSE_UNICODE" = "yes"; then
28258 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
28259echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
28260 wxUSE_UNICODE=no
28261 fi
28262 fi
28263
e56f4f9e
VZ
28264 ac_ext=cc
28265ac_cpp='$CXXCPP $CPPFLAGS'
28266ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28267ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28268ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28269
28270
a848cd7e
SC
28271 if test "$USE_DARWIN" != 1; then
28272
28273for ac_func in poll
28274do
28275as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28276echo "$as_me:$LINENO: checking for $ac_func" >&5
28277echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28278if eval "test \"\${$as_ac_var+set}\" = set"; then
28279 echo $ECHO_N "(cached) $ECHO_C" >&6
28280else
28281 cat >conftest.$ac_ext <<_ACEOF
28282/* confdefs.h. */
28283_ACEOF
28284cat confdefs.h >>conftest.$ac_ext
28285cat >>conftest.$ac_ext <<_ACEOF
28286/* end confdefs.h. */
ac1cb8d3
VS
28287/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28289#define $ac_func innocuous_$ac_func
28290
a848cd7e
SC
28291/* System header to define __stub macros and hopefully few prototypes,
28292 which can conflict with char $ac_func (); below.
28293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28294 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28295
a848cd7e
SC
28296#ifdef __STDC__
28297# include <limits.h>
28298#else
28299# include <assert.h>
28300#endif
ac1cb8d3
VS
28301
28302#undef $ac_func
28303
a848cd7e
SC
28304/* Override any gcc2 internal prototype to avoid an error. */
28305#ifdef __cplusplus
28306extern "C"
28307{
28308#endif
28309/* We use char because int might match the return type of a gcc2
28310 builtin and then its argument prototype would still apply. */
28311char $ac_func ();
28312/* The GNU C library defines this for functions which it implements
28313 to always fail with ENOSYS. Some functions are actually named
28314 something starting with __ and the normal name is an alias. */
28315#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28316choke me
28317#else
28318char (*f) () = $ac_func;
28319#endif
28320#ifdef __cplusplus
28321}
28322#endif
28323
28324int
28325main ()
28326{
28327return f != $ac_func;
28328 ;
28329 return 0;
28330}
28331_ACEOF
28332rm -f conftest.$ac_objext conftest$ac_exeext
28333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28334 (eval $ac_link) 2>conftest.er1
a848cd7e 28335 ac_status=$?
ac1cb8d3
VS
28336 grep -v '^ *+' conftest.er1 >conftest.err
28337 rm -f conftest.er1
28338 cat conftest.err >&5
a848cd7e
SC
28339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28340 (exit $ac_status); } &&
3f60522a
JS
28341 { ac_try='test -z "$ac_cxx_werror_flag"
28342 || test ! -s conftest.err'
ac1cb8d3
VS
28343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28344 (eval $ac_try) 2>&5
28345 ac_status=$?
28346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28347 (exit $ac_status); }; } &&
28348 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28350 (eval $ac_try) 2>&5
28351 ac_status=$?
28352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28353 (exit $ac_status); }; }; then
28354 eval "$as_ac_var=yes"
28355else
28356 echo "$as_me: failed program was:" >&5
28357sed 's/^/| /' conftest.$ac_ext >&5
28358
28359eval "$as_ac_var=no"
28360fi
ac1cb8d3
VS
28361rm -f conftest.err conftest.$ac_objext \
28362 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28363fi
28364echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28365echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28366if test `eval echo '${'$as_ac_var'}'` = yes; then
28367 cat >>confdefs.h <<_ACEOF
28368#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28369_ACEOF
28370
28371fi
28372done
28373
28374 fi
28375
28376 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
28377 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
28378
28379 AFMINSTALL=afminstall
28380 TOOLKIT=GTK
28381 GUIDIST=GTK_DIST
28382
28383 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
28384echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
28385if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
28386 echo $ECHO_N "(cached) $ECHO_C" >&6
28387else
28388 ac_check_lib_save_LIBS=$LIBS
28389LIBS="-lgdk $LIBS"
28390cat >conftest.$ac_ext <<_ACEOF
28391/* confdefs.h. */
28392_ACEOF
28393cat confdefs.h >>conftest.$ac_ext
28394cat >>conftest.$ac_ext <<_ACEOF
28395/* end confdefs.h. */
28396
28397/* Override any gcc2 internal prototype to avoid an error. */
28398#ifdef __cplusplus
28399extern "C"
28400#endif
28401/* We use char because int might match the return type of a gcc2
28402 builtin and then its argument prototype would still apply. */
28403char gdk_im_open ();
28404int
28405main ()
28406{
28407gdk_im_open ();
28408 ;
28409 return 0;
28410}
28411_ACEOF
28412rm -f conftest.$ac_objext conftest$ac_exeext
28413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28414 (eval $ac_link) 2>conftest.er1
a848cd7e 28415 ac_status=$?
ac1cb8d3
VS
28416 grep -v '^ *+' conftest.er1 >conftest.err
28417 rm -f conftest.er1
28418 cat conftest.err >&5
a848cd7e
SC
28419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420 (exit $ac_status); } &&
3f60522a
JS
28421 { ac_try='test -z "$ac_cxx_werror_flag"
28422 || test ! -s conftest.err'
ac1cb8d3
VS
28423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28424 (eval $ac_try) 2>&5
28425 ac_status=$?
28426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28427 (exit $ac_status); }; } &&
28428 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28430 (eval $ac_try) 2>&5
28431 ac_status=$?
28432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433 (exit $ac_status); }; }; then
28434 ac_cv_lib_gdk_gdk_im_open=yes
28435else
28436 echo "$as_me: failed program was:" >&5
28437sed 's/^/| /' conftest.$ac_ext >&5
28438
28439ac_cv_lib_gdk_gdk_im_open=no
28440fi
ac1cb8d3
VS
28441rm -f conftest.err conftest.$ac_objext \
28442 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28443LIBS=$ac_check_lib_save_LIBS
28444fi
28445echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
28446echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
28447if test $ac_cv_lib_gdk_gdk_im_open = yes; then
28448 cat >>confdefs.h <<\_ACEOF
28449#define HAVE_XIM 1
28450_ACEOF
28451
28452fi
28453
28454
28455
28456 if test "$wxUSE_GPE" = "yes"; then
28457 echo "$as_me:$LINENO: checking for gpewidget library" >&5
28458echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
28459
0ad5d837
VZ
28460 ac_find_libraries=
28461 for ac_dir in $SEARCH_LIB;
a848cd7e 28462 do
3eca31dc 28463 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
28464 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
28465 ac_find_libraries=$ac_dir
28466 break 2
28467 fi
28468 done
28469 done
28470
28471 if test "$ac_find_libraries" != "" ; then
28472
0ad5d837 28473 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
28474 ac_path_to_link=""
28475 else
0ad5d837
VZ
28476 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28477 result=$?
28478 if test $result = 0; then
28479 ac_path_to_link=""
28480 else
28481 ac_path_to_link=" -L$ac_find_libraries"
28482 fi
a848cd7e
SC
28483 fi
28484
28485 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
28486 WXGPE=1
0ad5d837
VZ
28487 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
28488echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
28489 else
28490 echo "$as_me:$LINENO: result: not found" >&5
28491echo "${ECHO_T}not found" >&6
28492 fi
28493
28494 fi
28495 fi
28496
28497 if test "$wxUSE_MGL" = 1; then
28498 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
28499echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
28500 if test "x$MGL_ROOT" = x ; then
28501 echo "$as_me:$LINENO: result: not found" >&5
28502echo "${ECHO_T}not found" >&6
28503 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
28504echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
28505 { (exit 1); exit 1; }; }
28506 else
28507 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
28508echo "${ECHO_T}$MGL_ROOT" >&6
28509 fi
28510
28511 echo "$as_me:$LINENO: checking for libmgl location" >&5
28512echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
28513 case "${host}" in
28514 *-*-linux* )
28515 if test "x$wxUSE_SHARED" = xyes ; then
28516 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
28517 else
28518 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
28519 fi
28520 ;;
28521 *-pc-msdosdjgpp )
28522 mgl_os_candidates="dos32/dj2"
28523 ;;
28524 *)
28525 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
28526echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
28527 { (exit 1); exit 1; }; }
28528 esac
28529
28530 mgl_lib_type=""
28531 mgl_os=""
28532
28533 for mgl_os_i in $mgl_os_candidates ; do
28534 if test "x$mgl_os" = x ; then
28535 if test "$wxUSE_DEBUG_FLAG" = yes ; then
28536 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
28537 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
28538 mgl_lib_type=debug
28539 mgl_os=$mgl_os_i
28540 fi
28541 fi
28542 if test "x$mgl_lib_type" = x ; then
28543 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
28544 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
28545 mgl_lib_type=release
28546 mgl_os=$mgl_os_i
28547 fi
28548 fi
28549 fi
28550 done
28551
28552 if test "x$mgl_os" = x ; then
28553 echo "$as_me:$LINENO: result: not found" >&5
28554echo "${ECHO_T}not found" >&6
28555 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
28556echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
28557 { (exit 1); exit 1; }; }
28558 fi
28559 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
28560echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
28561
28562 wxUSE_UNIVERSAL="yes"
28563
28564 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
28565 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
28566
28567 AFMINSTALL=afminstall
28568 TOOLKIT=MGL
28569 GUIDIST=MGL_DIST
28570 fi
28571
28572 if test "$wxUSE_MICROWIN" = 1; then
28573 echo "$as_me:$LINENO: checking for MicroWindows" >&5
28574echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
28575 if test "x$MICROWINDOWS" = x ; then
28576 echo "$as_me:$LINENO: result: not found" >&5
28577echo "${ECHO_T}not found" >&6
28578 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
28579echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
28580 { (exit 1); exit 1; }; }
28581 else
28582 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
28583echo "${ECHO_T}$MICROWINDOWS" >&6
28584 fi
28585
28586 if test -f $MICROWINDOWS/lib/libmwin.a; then
28587 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
28588echo "${ECHO_T}MicroWindows' libraries found." >&6
28589 else
28590 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
28591echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
28592 { (exit 1); exit 1; }; }
28593 fi
28594
28595 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
28596 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
28597
28598 wxUSE_UNIVERSAL="yes"
28599
28600 AFMINSTALL=afminstall
28601 TOOLKIT=MICROWIN
28602 GUIDIST=MICROWIN_DIST
28603
28604 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
28605 fi
28606
74b84332 28607 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
3f60522a 28608 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
28609echo $ECHO_N "checking for X... $ECHO_C" >&6
28610
28611
28612# Check whether --with-x or --without-x was given.
28613if test "${with_x+set}" = set; then
28614 withval="$with_x"
28615
28616fi;
28617# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
28618if test "x$with_x" = xno; then
28619 # The user explicitly disabled X.
28620 have_x=disabled
28621else
28622 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
28623 # Both variables are already set.
28624 have_x=yes
28625 else
28626 if test "${ac_cv_have_x+set}" = set; then
28627 echo $ECHO_N "(cached) $ECHO_C" >&6
28628else
28629 # One or both of the vars are not set, and there is no cached value.
28630ac_x_includes=no ac_x_libraries=no
28631rm -fr conftest.dir
28632if mkdir conftest.dir; then
28633 cd conftest.dir
28634 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
28635 cat >Imakefile <<'_ACEOF'
28636acfindx:
28637 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
28638_ACEOF
28639 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
28640 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
28641 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
28642 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28643 for ac_extension in a so sl; do
28644 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
28645 test -f $ac_im_libdir/libX11.$ac_extension; then
28646 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
28647 fi
28648 done
28649 # Screen out bogus values from the imake configuration. They are
28650 # bogus both because they are the default anyway, and because
28651 # using them would break gcc on systems where it needs fixed includes.
28652 case $ac_im_incroot in
28653 /usr/include) ;;
28654 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
28655 esac
28656 case $ac_im_usrlibdir in
28657 /usr/lib | /lib) ;;
28658 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
28659 esac
28660 fi
28661 cd ..
28662 rm -fr conftest.dir
28663fi
28664
28665# Standard set of common directories for X headers.
28666# Check X11 before X11Rn because it is often a symlink to the current release.
28667ac_x_header_dirs='
28668/usr/X11/include
28669/usr/X11R6/include
28670/usr/X11R5/include
28671/usr/X11R4/include
28672
28673/usr/include/X11
28674/usr/include/X11R6
28675/usr/include/X11R5
28676/usr/include/X11R4
28677
28678/usr/local/X11/include
28679/usr/local/X11R6/include
28680/usr/local/X11R5/include
28681/usr/local/X11R4/include
28682
28683/usr/local/include/X11
28684/usr/local/include/X11R6
28685/usr/local/include/X11R5
28686/usr/local/include/X11R4
28687
28688/usr/X386/include
28689/usr/x386/include
28690/usr/XFree86/include/X11
28691
28692/usr/include
28693/usr/local/include
28694/usr/unsupported/include
28695/usr/athena/include
28696/usr/local/x11r5/include
28697/usr/lpp/Xamples/include
28698
28699/usr/openwin/include
28700/usr/openwin/share/include'
28701
28702if test "$ac_x_includes" = no; then
3f60522a 28703 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
28704 # First, try using that file with no special directory specified.
28705 cat >conftest.$ac_ext <<_ACEOF
28706/* confdefs.h. */
28707_ACEOF
28708cat confdefs.h >>conftest.$ac_ext
28709cat >>conftest.$ac_ext <<_ACEOF
28710/* end confdefs.h. */
d25774ab 28711#include <X11/Intrinsic.h>
a848cd7e
SC
28712_ACEOF
28713if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28715 ac_status=$?
28716 grep -v '^ *+' conftest.er1 >conftest.err
28717 rm -f conftest.er1
28718 cat conftest.err >&5
28719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28720 (exit $ac_status); } >/dev/null; then
28721 if test -s conftest.err; then
5d7b7554
VZ
28722 ac_cpp_err=$ac_cxx_preproc_warn_flag
28723 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
28724 else
28725 ac_cpp_err=
28726 fi
28727else
28728 ac_cpp_err=yes
28729fi
28730if test -z "$ac_cpp_err"; then
28731 # We can compile using X headers with no special include directory.
28732ac_x_includes=
28733else
28734 echo "$as_me: failed program was:" >&5
28735sed 's/^/| /' conftest.$ac_ext >&5
28736
28737 for ac_dir in $ac_x_header_dirs; do
d25774ab 28738 if test -r "$ac_dir/X11/Intrinsic.h"; then
a848cd7e
SC
28739 ac_x_includes=$ac_dir
28740 break
28741 fi
28742done
28743fi
28744rm -f conftest.err conftest.$ac_ext
28745fi # $ac_x_includes = no
28746
28747if test "$ac_x_libraries" = no; then
28748 # Check for the libraries.
28749 # See if we find them without any special options.
28750 # Don't add to $LIBS permanently.
28751 ac_save_LIBS=$LIBS
d25774ab 28752 LIBS="-lXt $LIBS"
a848cd7e
SC
28753 cat >conftest.$ac_ext <<_ACEOF
28754/* confdefs.h. */
28755_ACEOF
28756cat confdefs.h >>conftest.$ac_ext
28757cat >>conftest.$ac_ext <<_ACEOF
28758/* end confdefs.h. */
d25774ab 28759#include <X11/Intrinsic.h>
a848cd7e
SC
28760int
28761main ()
28762{
d25774ab 28763XtMalloc (0)
a848cd7e
SC
28764 ;
28765 return 0;
28766}
28767_ACEOF
28768rm -f conftest.$ac_objext conftest$ac_exeext
28769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28770 (eval $ac_link) 2>conftest.er1
a848cd7e 28771 ac_status=$?
ac1cb8d3
VS
28772 grep -v '^ *+' conftest.er1 >conftest.err
28773 rm -f conftest.er1
28774 cat conftest.err >&5
a848cd7e
SC
28775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776 (exit $ac_status); } &&
3f60522a
JS
28777 { ac_try='test -z "$ac_cxx_werror_flag"
28778 || test ! -s conftest.err'
ac1cb8d3
VS
28779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28780 (eval $ac_try) 2>&5
28781 ac_status=$?
28782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783 (exit $ac_status); }; } &&
28784 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28786 (eval $ac_try) 2>&5
28787 ac_status=$?
28788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28789 (exit $ac_status); }; }; then
28790 LIBS=$ac_save_LIBS
28791# We can link X programs with no special library path.
28792ac_x_libraries=
28793else
28794 echo "$as_me: failed program was:" >&5
28795sed 's/^/| /' conftest.$ac_ext >&5
28796
28797LIBS=$ac_save_LIBS
28798for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
28799do
28800 # Don't even attempt the hair of trying to link an X program!
28801 for ac_extension in a so sl; do
d25774ab 28802 if test -r $ac_dir/libXt.$ac_extension; then
a848cd7e
SC
28803 ac_x_libraries=$ac_dir
28804 break 2
28805 fi
28806 done
28807done
28808fi
ac1cb8d3
VS
28809rm -f conftest.err conftest.$ac_objext \
28810 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28811fi # $ac_x_libraries = no
28812
28813if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
28814 # Didn't find X anywhere. Cache the known absence of X.
28815 ac_cv_have_x="have_x=no"
28816else
28817 # Record where we found X for the cache.
28818 ac_cv_have_x="have_x=yes \
ac1cb8d3 28819 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
28820fi
28821fi
28822
28823 fi
28824 eval "$ac_cv_have_x"
28825fi # $with_x != no
28826
28827if test "$have_x" != yes; then
28828 echo "$as_me:$LINENO: result: $have_x" >&5
28829echo "${ECHO_T}$have_x" >&6
28830 no_x=yes
28831else
28832 # If each of the values was on the command line, it overrides each guess.
28833 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
28834 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
28835 # Update the cache value to reflect the command line values.
28836 ac_cv_have_x="have_x=yes \
28837 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3f60522a
JS
28838 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
28839echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
28840fi
28841
28842if test "$no_x" = yes; then
28843 # Not all programs may use this symbol, but it does not hurt to define it.
28844
28845cat >>confdefs.h <<\_ACEOF
28846#define X_DISPLAY_MISSING 1
28847_ACEOF
28848
28849 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
28850else
28851 if test -n "$x_includes"; then
28852 X_CFLAGS="$X_CFLAGS -I$x_includes"
28853 fi
28854
28855 # It would also be nice to do this for all -L options, not just this one.
28856 if test -n "$x_libraries"; then
28857 X_LIBS="$X_LIBS -L$x_libraries"
28858 # For Solaris; some versions of Sun CC require a space after -R and
28859 # others require no space. Words are not sufficient . . . .
28860 case `(uname -sr) 2>/dev/null` in
28861 "SunOS 5"*)
28862 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
28863echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
28864 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
28865 cat >conftest.$ac_ext <<_ACEOF
28866/* confdefs.h. */
28867_ACEOF
28868cat confdefs.h >>conftest.$ac_ext
28869cat >>conftest.$ac_ext <<_ACEOF
28870/* end confdefs.h. */
28871
28872int
28873main ()
28874{
28875
28876 ;
28877 return 0;
28878}
28879_ACEOF
28880rm -f conftest.$ac_objext conftest$ac_exeext
28881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28882 (eval $ac_link) 2>conftest.er1
a848cd7e 28883 ac_status=$?
ac1cb8d3
VS
28884 grep -v '^ *+' conftest.er1 >conftest.err
28885 rm -f conftest.er1
28886 cat conftest.err >&5
a848cd7e
SC
28887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28888 (exit $ac_status); } &&
3f60522a
JS
28889 { ac_try='test -z "$ac_cxx_werror_flag"
28890 || test ! -s conftest.err'
ac1cb8d3
VS
28891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28892 (eval $ac_try) 2>&5
28893 ac_status=$?
28894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28895 (exit $ac_status); }; } &&
28896 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28898 (eval $ac_try) 2>&5
28899 ac_status=$?
28900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28901 (exit $ac_status); }; }; then
28902 ac_R_nospace=yes
28903else
28904 echo "$as_me: failed program was:" >&5
28905sed 's/^/| /' conftest.$ac_ext >&5
28906
28907ac_R_nospace=no
28908fi
ac1cb8d3
VS
28909rm -f conftest.err conftest.$ac_objext \
28910 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28911 if test $ac_R_nospace = yes; then
28912 echo "$as_me:$LINENO: result: no" >&5
28913echo "${ECHO_T}no" >&6
28914 X_LIBS="$X_LIBS -R$x_libraries"
28915 else
28916 LIBS="$ac_xsave_LIBS -R $x_libraries"
28917 cat >conftest.$ac_ext <<_ACEOF
28918/* confdefs.h. */
28919_ACEOF
28920cat confdefs.h >>conftest.$ac_ext
28921cat >>conftest.$ac_ext <<_ACEOF
28922/* end confdefs.h. */
28923
28924int
28925main ()
28926{
28927
28928 ;
28929 return 0;
28930}
28931_ACEOF
28932rm -f conftest.$ac_objext conftest$ac_exeext
28933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28934 (eval $ac_link) 2>conftest.er1
a848cd7e 28935 ac_status=$?
ac1cb8d3
VS
28936 grep -v '^ *+' conftest.er1 >conftest.err
28937 rm -f conftest.er1
28938 cat conftest.err >&5
a848cd7e
SC
28939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28940 (exit $ac_status); } &&
3f60522a
JS
28941 { ac_try='test -z "$ac_cxx_werror_flag"
28942 || test ! -s conftest.err'
ac1cb8d3
VS
28943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28944 (eval $ac_try) 2>&5
28945 ac_status=$?
28946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28947 (exit $ac_status); }; } &&
28948 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28950 (eval $ac_try) 2>&5
28951 ac_status=$?
28952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953 (exit $ac_status); }; }; then
28954 ac_R_space=yes
28955else
28956 echo "$as_me: failed program was:" >&5
28957sed 's/^/| /' conftest.$ac_ext >&5
28958
28959ac_R_space=no
28960fi
ac1cb8d3
VS
28961rm -f conftest.err conftest.$ac_objext \
28962 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28963 if test $ac_R_space = yes; then
28964 echo "$as_me:$LINENO: result: yes" >&5
28965echo "${ECHO_T}yes" >&6
28966 X_LIBS="$X_LIBS -R $x_libraries"
28967 else
28968 echo "$as_me:$LINENO: result: neither works" >&5
28969echo "${ECHO_T}neither works" >&6
28970 fi
28971 fi
28972 LIBS=$ac_xsave_LIBS
28973 esac
28974 fi
28975
28976 # Check for system-dependent libraries X programs must link with.
28977 # Do this before checking for the system-independent R6 libraries
28978 # (-lICE), since we may need -lsocket or whatever for X linking.
28979
28980 if test "$ISC" = yes; then
28981 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
28982 else
28983 # Martyn Johnson says this is needed for Ultrix, if the X
28984 # libraries were built with DECnet support. And Karl Berry says
28985 # the Alpha needs dnet_stub (dnet does not exist).
28986 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
28987 cat >conftest.$ac_ext <<_ACEOF
28988/* confdefs.h. */
28989_ACEOF
28990cat confdefs.h >>conftest.$ac_ext
28991cat >>conftest.$ac_ext <<_ACEOF
28992/* end confdefs.h. */
28993
28994/* Override any gcc2 internal prototype to avoid an error. */
28995#ifdef __cplusplus
28996extern "C"
28997#endif
28998/* We use char because int might match the return type of a gcc2
28999 builtin and then its argument prototype would still apply. */
29000char XOpenDisplay ();
29001int
29002main ()
29003{
29004XOpenDisplay ();
29005 ;
29006 return 0;
29007}
29008_ACEOF
29009rm -f conftest.$ac_objext conftest$ac_exeext
29010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29011 (eval $ac_link) 2>conftest.er1
a848cd7e 29012 ac_status=$?
ac1cb8d3
VS
29013 grep -v '^ *+' conftest.er1 >conftest.err
29014 rm -f conftest.er1
29015 cat conftest.err >&5
a848cd7e
SC
29016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29017 (exit $ac_status); } &&
3f60522a
JS
29018 { ac_try='test -z "$ac_cxx_werror_flag"
29019 || test ! -s conftest.err'
ac1cb8d3
VS
29020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29021 (eval $ac_try) 2>&5
29022 ac_status=$?
29023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024 (exit $ac_status); }; } &&
29025 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29027 (eval $ac_try) 2>&5
29028 ac_status=$?
29029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29030 (exit $ac_status); }; }; then
29031 :
29032else
29033 echo "$as_me: failed program was:" >&5
29034sed 's/^/| /' conftest.$ac_ext >&5
29035
29036echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29037echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
29038if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29039 echo $ECHO_N "(cached) $ECHO_C" >&6
29040else
29041 ac_check_lib_save_LIBS=$LIBS
29042LIBS="-ldnet $LIBS"
29043cat >conftest.$ac_ext <<_ACEOF
29044/* confdefs.h. */
29045_ACEOF
29046cat confdefs.h >>conftest.$ac_ext
29047cat >>conftest.$ac_ext <<_ACEOF
29048/* end confdefs.h. */
29049
29050/* Override any gcc2 internal prototype to avoid an error. */
29051#ifdef __cplusplus
29052extern "C"
29053#endif
29054/* We use char because int might match the return type of a gcc2
29055 builtin and then its argument prototype would still apply. */
29056char dnet_ntoa ();
29057int
29058main ()
29059{
29060dnet_ntoa ();
29061 ;
29062 return 0;
29063}
29064_ACEOF
29065rm -f conftest.$ac_objext conftest$ac_exeext
29066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29067 (eval $ac_link) 2>conftest.er1
a848cd7e 29068 ac_status=$?
ac1cb8d3
VS
29069 grep -v '^ *+' conftest.er1 >conftest.err
29070 rm -f conftest.er1
29071 cat conftest.err >&5
a848cd7e
SC
29072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29073 (exit $ac_status); } &&
3f60522a
JS
29074 { ac_try='test -z "$ac_cxx_werror_flag"
29075 || test ! -s conftest.err'
ac1cb8d3
VS
29076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29077 (eval $ac_try) 2>&5
29078 ac_status=$?
29079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080 (exit $ac_status); }; } &&
29081 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29083 (eval $ac_try) 2>&5
29084 ac_status=$?
29085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29086 (exit $ac_status); }; }; then
29087 ac_cv_lib_dnet_dnet_ntoa=yes
29088else
29089 echo "$as_me: failed program was:" >&5
29090sed 's/^/| /' conftest.$ac_ext >&5
29091
29092ac_cv_lib_dnet_dnet_ntoa=no
29093fi
ac1cb8d3
VS
29094rm -f conftest.err conftest.$ac_objext \
29095 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29096LIBS=$ac_check_lib_save_LIBS
29097fi
29098echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29099echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
29100if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29101 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29102fi
29103
29104 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29105 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29106echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
29107if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29108 echo $ECHO_N "(cached) $ECHO_C" >&6
29109else
29110 ac_check_lib_save_LIBS=$LIBS
29111LIBS="-ldnet_stub $LIBS"
29112cat >conftest.$ac_ext <<_ACEOF
29113/* confdefs.h. */
29114_ACEOF
29115cat confdefs.h >>conftest.$ac_ext
29116cat >>conftest.$ac_ext <<_ACEOF
29117/* end confdefs.h. */
29118
29119/* Override any gcc2 internal prototype to avoid an error. */
29120#ifdef __cplusplus
29121extern "C"
29122#endif
29123/* We use char because int might match the return type of a gcc2
29124 builtin and then its argument prototype would still apply. */
29125char dnet_ntoa ();
29126int
29127main ()
29128{
29129dnet_ntoa ();
29130 ;
29131 return 0;
29132}
29133_ACEOF
29134rm -f conftest.$ac_objext conftest$ac_exeext
29135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29136 (eval $ac_link) 2>conftest.er1
a848cd7e 29137 ac_status=$?
ac1cb8d3
VS
29138 grep -v '^ *+' conftest.er1 >conftest.err
29139 rm -f conftest.er1
29140 cat conftest.err >&5
a848cd7e
SC
29141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29142 (exit $ac_status); } &&
3f60522a
JS
29143 { ac_try='test -z "$ac_cxx_werror_flag"
29144 || test ! -s conftest.err'
ac1cb8d3
VS
29145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29146 (eval $ac_try) 2>&5
29147 ac_status=$?
29148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29149 (exit $ac_status); }; } &&
29150 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29152 (eval $ac_try) 2>&5
29153 ac_status=$?
29154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29155 (exit $ac_status); }; }; then
29156 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29157else
29158 echo "$as_me: failed program was:" >&5
29159sed 's/^/| /' conftest.$ac_ext >&5
29160
29161ac_cv_lib_dnet_stub_dnet_ntoa=no
29162fi
ac1cb8d3
VS
29163rm -f conftest.err conftest.$ac_objext \
29164 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29165LIBS=$ac_check_lib_save_LIBS
29166fi
29167echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29168echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
29169if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29170 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29171fi
29172
29173 fi
29174fi
ac1cb8d3
VS
29175rm -f conftest.err conftest.$ac_objext \
29176 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29177 LIBS="$ac_xsave_LIBS"
29178
29179 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29180 # to get the SysV transport functions.
29181 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29182 # needs -lnsl.
29183 # The nsl library prevents programs from opening the X display
29184 # on Irix 5.2, according to T.E. Dickey.
29185 # The functions gethostbyname, getservbyname, and inet_addr are
29186 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29187 echo "$as_me:$LINENO: checking for gethostbyname" >&5
29188echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
29189if test "${ac_cv_func_gethostbyname+set}" = set; then
29190 echo $ECHO_N "(cached) $ECHO_C" >&6
29191else
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. */
ac1cb8d3
VS
29198/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29200#define gethostbyname innocuous_gethostbyname
29201
a848cd7e
SC
29202/* System header to define __stub macros and hopefully few prototypes,
29203 which can conflict with char gethostbyname (); below.
29204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29205 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29206
a848cd7e
SC
29207#ifdef __STDC__
29208# include <limits.h>
29209#else
29210# include <assert.h>
29211#endif
ac1cb8d3
VS
29212
29213#undef gethostbyname
29214
a848cd7e
SC
29215/* Override any gcc2 internal prototype to avoid an error. */
29216#ifdef __cplusplus
29217extern "C"
29218{
29219#endif
29220/* We use char because int might match the return type of a gcc2
29221 builtin and then its argument prototype would still apply. */
29222char gethostbyname ();
29223/* The GNU C library defines this for functions which it implements
29224 to always fail with ENOSYS. Some functions are actually named
29225 something starting with __ and the normal name is an alias. */
29226#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
29227choke me
29228#else
29229char (*f) () = gethostbyname;
29230#endif
29231#ifdef __cplusplus
29232}
29233#endif
29234
29235int
29236main ()
29237{
29238return f != gethostbyname;
29239 ;
29240 return 0;
29241}
29242_ACEOF
29243rm -f conftest.$ac_objext conftest$ac_exeext
29244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29245 (eval $ac_link) 2>conftest.er1
a848cd7e 29246 ac_status=$?
ac1cb8d3
VS
29247 grep -v '^ *+' conftest.er1 >conftest.err
29248 rm -f conftest.er1
29249 cat conftest.err >&5
a848cd7e
SC
29250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29251 (exit $ac_status); } &&
3f60522a
JS
29252 { ac_try='test -z "$ac_cxx_werror_flag"
29253 || test ! -s conftest.err'
ac1cb8d3
VS
29254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29255 (eval $ac_try) 2>&5
29256 ac_status=$?
29257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29258 (exit $ac_status); }; } &&
29259 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29261 (eval $ac_try) 2>&5
29262 ac_status=$?
29263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29264 (exit $ac_status); }; }; then
29265 ac_cv_func_gethostbyname=yes
29266else
29267 echo "$as_me: failed program was:" >&5
29268sed 's/^/| /' conftest.$ac_ext >&5
29269
29270ac_cv_func_gethostbyname=no
29271fi
ac1cb8d3
VS
29272rm -f conftest.err conftest.$ac_objext \
29273 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29274fi
29275echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29276echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
29277
29278 if test $ac_cv_func_gethostbyname = no; then
29279 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29280echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
29281if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29282 echo $ECHO_N "(cached) $ECHO_C" >&6
29283else
29284 ac_check_lib_save_LIBS=$LIBS
29285LIBS="-lnsl $LIBS"
29286cat >conftest.$ac_ext <<_ACEOF
29287/* confdefs.h. */
29288_ACEOF
29289cat confdefs.h >>conftest.$ac_ext
29290cat >>conftest.$ac_ext <<_ACEOF
29291/* end confdefs.h. */
29292
29293/* Override any gcc2 internal prototype to avoid an error. */
29294#ifdef __cplusplus
29295extern "C"
29296#endif
29297/* We use char because int might match the return type of a gcc2
29298 builtin and then its argument prototype would still apply. */
29299char gethostbyname ();
29300int
29301main ()
29302{
29303gethostbyname ();
29304 ;
29305 return 0;
29306}
29307_ACEOF
29308rm -f conftest.$ac_objext conftest$ac_exeext
29309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
29310 (eval $ac_link) 2>conftest.er1
29311 ac_status=$?
29312 grep -v '^ *+' conftest.er1 >conftest.err
29313 rm -f conftest.er1
29314 cat conftest.err >&5
29315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29316 (exit $ac_status); } &&
3f60522a
JS
29317 { ac_try='test -z "$ac_cxx_werror_flag"
29318 || test ! -s conftest.err'
ac1cb8d3
VS
29319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29320 (eval $ac_try) 2>&5
29321 ac_status=$?
29322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 (exit $ac_status); }; } &&
29324 { ac_try='test -s conftest$ac_exeext'
29325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29326 (eval $ac_try) 2>&5
29327 ac_status=$?
29328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29329 (exit $ac_status); }; }; then
29330 ac_cv_lib_nsl_gethostbyname=yes
29331else
29332 echo "$as_me: failed program was:" >&5
29333sed 's/^/| /' conftest.$ac_ext >&5
29334
29335ac_cv_lib_nsl_gethostbyname=no
29336fi
29337rm -f conftest.err conftest.$ac_objext \
29338 conftest$ac_exeext conftest.$ac_ext
29339LIBS=$ac_check_lib_save_LIBS
29340fi
29341echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29342echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
29343if test $ac_cv_lib_nsl_gethostbyname = yes; then
29344 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29345fi
29346
29347 if test $ac_cv_lib_nsl_gethostbyname = no; then
29348 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29349echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
29350if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29351 echo $ECHO_N "(cached) $ECHO_C" >&6
29352else
29353 ac_check_lib_save_LIBS=$LIBS
29354LIBS="-lbsd $LIBS"
29355cat >conftest.$ac_ext <<_ACEOF
29356/* confdefs.h. */
29357_ACEOF
29358cat confdefs.h >>conftest.$ac_ext
29359cat >>conftest.$ac_ext <<_ACEOF
29360/* end confdefs.h. */
29361
29362/* Override any gcc2 internal prototype to avoid an error. */
29363#ifdef __cplusplus
29364extern "C"
29365#endif
29366/* We use char because int might match the return type of a gcc2
29367 builtin and then its argument prototype would still apply. */
29368char gethostbyname ();
29369int
29370main ()
29371{
29372gethostbyname ();
29373 ;
29374 return 0;
29375}
29376_ACEOF
29377rm -f conftest.$ac_objext conftest$ac_exeext
29378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29379 (eval $ac_link) 2>conftest.er1
a848cd7e 29380 ac_status=$?
ac1cb8d3
VS
29381 grep -v '^ *+' conftest.er1 >conftest.err
29382 rm -f conftest.er1
29383 cat conftest.err >&5
a848cd7e
SC
29384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385 (exit $ac_status); } &&
3f60522a
JS
29386 { ac_try='test -z "$ac_cxx_werror_flag"
29387 || test ! -s conftest.err'
a848cd7e
SC
29388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29389 (eval $ac_try) 2>&5
29390 ac_status=$?
29391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
29392 (exit $ac_status); }; } &&
29393 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29395 (eval $ac_try) 2>&5
29396 ac_status=$?
29397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29398 (exit $ac_status); }; }; then
29399 ac_cv_lib_bsd_gethostbyname=yes
29400else
29401 echo "$as_me: failed program was:" >&5
29402sed 's/^/| /' conftest.$ac_ext >&5
29403
29404ac_cv_lib_bsd_gethostbyname=no
29405fi
ac1cb8d3
VS
29406rm -f conftest.err conftest.$ac_objext \
29407 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29408LIBS=$ac_check_lib_save_LIBS
29409fi
29410echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29411echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
29412if test $ac_cv_lib_bsd_gethostbyname = yes; then
29413 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29414fi
29415
29416 fi
29417 fi
29418
29419 # lieder@skyler.mavd.honeywell.com says without -lsocket,
29420 # socket/setsockopt and other routines are undefined under SCO ODT
29421 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
29422 # on later versions), says Simon Leinen: it contains gethostby*
29423 # variants that don't use the name server (or something). -lsocket
29424 # must be given before -lnsl if both are needed. We assume that
29425 # if connect needs -lnsl, so does gethostbyname.
29426 echo "$as_me:$LINENO: checking for connect" >&5
29427echo $ECHO_N "checking for connect... $ECHO_C" >&6
29428if test "${ac_cv_func_connect+set}" = set; then
29429 echo $ECHO_N "(cached) $ECHO_C" >&6
29430else
29431 cat >conftest.$ac_ext <<_ACEOF
29432/* confdefs.h. */
29433_ACEOF
29434cat confdefs.h >>conftest.$ac_ext
29435cat >>conftest.$ac_ext <<_ACEOF
29436/* end confdefs.h. */
ac1cb8d3
VS
29437/* Define connect to an innocuous variant, in case <limits.h> declares connect.
29438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29439#define connect innocuous_connect
29440
a848cd7e
SC
29441/* System header to define __stub macros and hopefully few prototypes,
29442 which can conflict with char connect (); below.
29443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29444 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29445
a848cd7e
SC
29446#ifdef __STDC__
29447# include <limits.h>
29448#else
29449# include <assert.h>
29450#endif
ac1cb8d3
VS
29451
29452#undef connect
29453
a848cd7e
SC
29454/* Override any gcc2 internal prototype to avoid an error. */
29455#ifdef __cplusplus
29456extern "C"
29457{
29458#endif
29459/* We use char because int might match the return type of a gcc2
29460 builtin and then its argument prototype would still apply. */
29461char connect ();
29462/* The GNU C library defines this for functions which it implements
29463 to always fail with ENOSYS. Some functions are actually named
29464 something starting with __ and the normal name is an alias. */
29465#if defined (__stub_connect) || defined (__stub___connect)
29466choke me
29467#else
29468char (*f) () = connect;
29469#endif
29470#ifdef __cplusplus
29471}
29472#endif
29473
29474int
29475main ()
29476{
29477return f != connect;
29478 ;
29479 return 0;
29480}
29481_ACEOF
29482rm -f conftest.$ac_objext conftest$ac_exeext
29483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29484 (eval $ac_link) 2>conftest.er1
a848cd7e 29485 ac_status=$?
ac1cb8d3
VS
29486 grep -v '^ *+' conftest.er1 >conftest.err
29487 rm -f conftest.er1
29488 cat conftest.err >&5
a848cd7e
SC
29489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29490 (exit $ac_status); } &&
3f60522a
JS
29491 { ac_try='test -z "$ac_cxx_werror_flag"
29492 || test ! -s conftest.err'
ac1cb8d3
VS
29493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29494 (eval $ac_try) 2>&5
29495 ac_status=$?
29496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29497 (exit $ac_status); }; } &&
29498 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29500 (eval $ac_try) 2>&5
29501 ac_status=$?
29502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503 (exit $ac_status); }; }; then
29504 ac_cv_func_connect=yes
29505else
29506 echo "$as_me: failed program was:" >&5
29507sed 's/^/| /' conftest.$ac_ext >&5
29508
29509ac_cv_func_connect=no
29510fi
ac1cb8d3
VS
29511rm -f conftest.err conftest.$ac_objext \
29512 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29513fi
29514echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29515echo "${ECHO_T}$ac_cv_func_connect" >&6
29516
29517 if test $ac_cv_func_connect = no; then
29518 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29519echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
29520if test "${ac_cv_lib_socket_connect+set}" = set; then
29521 echo $ECHO_N "(cached) $ECHO_C" >&6
29522else
29523 ac_check_lib_save_LIBS=$LIBS
29524LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
29525cat >conftest.$ac_ext <<_ACEOF
29526/* confdefs.h. */
29527_ACEOF
29528cat confdefs.h >>conftest.$ac_ext
29529cat >>conftest.$ac_ext <<_ACEOF
29530/* end confdefs.h. */
29531
29532/* Override any gcc2 internal prototype to avoid an error. */
29533#ifdef __cplusplus
29534extern "C"
29535#endif
29536/* We use char because int might match the return type of a gcc2
29537 builtin and then its argument prototype would still apply. */
29538char connect ();
29539int
29540main ()
29541{
29542connect ();
29543 ;
29544 return 0;
29545}
29546_ACEOF
29547rm -f conftest.$ac_objext conftest$ac_exeext
29548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29549 (eval $ac_link) 2>conftest.er1
a848cd7e 29550 ac_status=$?
ac1cb8d3
VS
29551 grep -v '^ *+' conftest.er1 >conftest.err
29552 rm -f conftest.er1
29553 cat conftest.err >&5
a848cd7e
SC
29554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555 (exit $ac_status); } &&
3f60522a
JS
29556 { ac_try='test -z "$ac_cxx_werror_flag"
29557 || test ! -s conftest.err'
ac1cb8d3
VS
29558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29559 (eval $ac_try) 2>&5
29560 ac_status=$?
29561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29562 (exit $ac_status); }; } &&
29563 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29565 (eval $ac_try) 2>&5
29566 ac_status=$?
29567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568 (exit $ac_status); }; }; then
29569 ac_cv_lib_socket_connect=yes
29570else
29571 echo "$as_me: failed program was:" >&5
29572sed 's/^/| /' conftest.$ac_ext >&5
29573
29574ac_cv_lib_socket_connect=no
29575fi
ac1cb8d3
VS
29576rm -f conftest.err conftest.$ac_objext \
29577 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29578LIBS=$ac_check_lib_save_LIBS
29579fi
29580echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
29581echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
29582if test $ac_cv_lib_socket_connect = yes; then
29583 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
29584fi
29585
29586 fi
29587
29588 # Guillermo Gomez says -lposix is necessary on A/UX.
29589 echo "$as_me:$LINENO: checking for remove" >&5
29590echo $ECHO_N "checking for remove... $ECHO_C" >&6
29591if test "${ac_cv_func_remove+set}" = set; then
29592 echo $ECHO_N "(cached) $ECHO_C" >&6
29593else
29594 cat >conftest.$ac_ext <<_ACEOF
29595/* confdefs.h. */
29596_ACEOF
29597cat confdefs.h >>conftest.$ac_ext
29598cat >>conftest.$ac_ext <<_ACEOF
29599/* end confdefs.h. */
ac1cb8d3
VS
29600/* Define remove to an innocuous variant, in case <limits.h> declares remove.
29601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29602#define remove innocuous_remove
29603
a848cd7e
SC
29604/* System header to define __stub macros and hopefully few prototypes,
29605 which can conflict with char remove (); below.
29606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29607 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29608
a848cd7e
SC
29609#ifdef __STDC__
29610# include <limits.h>
29611#else
29612# include <assert.h>
29613#endif
ac1cb8d3
VS
29614
29615#undef remove
29616
a848cd7e
SC
29617/* Override any gcc2 internal prototype to avoid an error. */
29618#ifdef __cplusplus
29619extern "C"
29620{
29621#endif
29622/* We use char because int might match the return type of a gcc2
29623 builtin and then its argument prototype would still apply. */
29624char remove ();
29625/* The GNU C library defines this for functions which it implements
29626 to always fail with ENOSYS. Some functions are actually named
29627 something starting with __ and the normal name is an alias. */
29628#if defined (__stub_remove) || defined (__stub___remove)
29629choke me
29630#else
29631char (*f) () = remove;
29632#endif
29633#ifdef __cplusplus
29634}
29635#endif
29636
29637int
29638main ()
29639{
29640return f != remove;
29641 ;
29642 return 0;
29643}
29644_ACEOF
29645rm -f conftest.$ac_objext conftest$ac_exeext
29646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29647 (eval $ac_link) 2>conftest.er1
a848cd7e 29648 ac_status=$?
ac1cb8d3
VS
29649 grep -v '^ *+' conftest.er1 >conftest.err
29650 rm -f conftest.er1
29651 cat conftest.err >&5
a848cd7e
SC
29652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653 (exit $ac_status); } &&
3f60522a
JS
29654 { ac_try='test -z "$ac_cxx_werror_flag"
29655 || test ! -s conftest.err'
ac1cb8d3
VS
29656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29657 (eval $ac_try) 2>&5
29658 ac_status=$?
29659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660 (exit $ac_status); }; } &&
29661 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29663 (eval $ac_try) 2>&5
29664 ac_status=$?
29665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29666 (exit $ac_status); }; }; then
29667 ac_cv_func_remove=yes
29668else
29669 echo "$as_me: failed program was:" >&5
29670sed 's/^/| /' conftest.$ac_ext >&5
29671
29672ac_cv_func_remove=no
29673fi
ac1cb8d3
VS
29674rm -f conftest.err conftest.$ac_objext \
29675 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29676fi
29677echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
29678echo "${ECHO_T}$ac_cv_func_remove" >&6
29679
29680 if test $ac_cv_func_remove = no; then
29681 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
29682echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
29683if test "${ac_cv_lib_posix_remove+set}" = set; then
29684 echo $ECHO_N "(cached) $ECHO_C" >&6
29685else
29686 ac_check_lib_save_LIBS=$LIBS
29687LIBS="-lposix $LIBS"
29688cat >conftest.$ac_ext <<_ACEOF
29689/* confdefs.h. */
29690_ACEOF
29691cat confdefs.h >>conftest.$ac_ext
29692cat >>conftest.$ac_ext <<_ACEOF
29693/* end confdefs.h. */
29694
29695/* Override any gcc2 internal prototype to avoid an error. */
29696#ifdef __cplusplus
29697extern "C"
29698#endif
29699/* We use char because int might match the return type of a gcc2
29700 builtin and then its argument prototype would still apply. */
29701char remove ();
29702int
29703main ()
29704{
29705remove ();
29706 ;
29707 return 0;
29708}
29709_ACEOF
29710rm -f conftest.$ac_objext conftest$ac_exeext
29711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29712 (eval $ac_link) 2>conftest.er1
a848cd7e 29713 ac_status=$?
ac1cb8d3
VS
29714 grep -v '^ *+' conftest.er1 >conftest.err
29715 rm -f conftest.er1
29716 cat conftest.err >&5
a848cd7e
SC
29717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29718 (exit $ac_status); } &&
3f60522a
JS
29719 { ac_try='test -z "$ac_cxx_werror_flag"
29720 || test ! -s conftest.err'
ac1cb8d3
VS
29721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29722 (eval $ac_try) 2>&5
29723 ac_status=$?
29724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29725 (exit $ac_status); }; } &&
29726 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29728 (eval $ac_try) 2>&5
29729 ac_status=$?
29730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29731 (exit $ac_status); }; }; then
29732 ac_cv_lib_posix_remove=yes
29733else
29734 echo "$as_me: failed program was:" >&5
29735sed 's/^/| /' conftest.$ac_ext >&5
29736
29737ac_cv_lib_posix_remove=no
29738fi
ac1cb8d3
VS
29739rm -f conftest.err conftest.$ac_objext \
29740 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29741LIBS=$ac_check_lib_save_LIBS
29742fi
29743echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
29744echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
29745if test $ac_cv_lib_posix_remove = yes; then
29746 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
29747fi
29748
29749 fi
29750
29751 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
29752 echo "$as_me:$LINENO: checking for shmat" >&5
29753echo $ECHO_N "checking for shmat... $ECHO_C" >&6
29754if test "${ac_cv_func_shmat+set}" = set; then
29755 echo $ECHO_N "(cached) $ECHO_C" >&6
29756else
29757 cat >conftest.$ac_ext <<_ACEOF
29758/* confdefs.h. */
29759_ACEOF
29760cat confdefs.h >>conftest.$ac_ext
29761cat >>conftest.$ac_ext <<_ACEOF
29762/* end confdefs.h. */
ac1cb8d3
VS
29763/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
29764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29765#define shmat innocuous_shmat
29766
a848cd7e
SC
29767/* System header to define __stub macros and hopefully few prototypes,
29768 which can conflict with char shmat (); below.
29769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29770 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29771
a848cd7e
SC
29772#ifdef __STDC__
29773# include <limits.h>
29774#else
29775# include <assert.h>
29776#endif
ac1cb8d3
VS
29777
29778#undef shmat
29779
a848cd7e
SC
29780/* Override any gcc2 internal prototype to avoid an error. */
29781#ifdef __cplusplus
29782extern "C"
29783{
29784#endif
29785/* We use char because int might match the return type of a gcc2
29786 builtin and then its argument prototype would still apply. */
29787char shmat ();
29788/* The GNU C library defines this for functions which it implements
29789 to always fail with ENOSYS. Some functions are actually named
29790 something starting with __ and the normal name is an alias. */
29791#if defined (__stub_shmat) || defined (__stub___shmat)
29792choke me
29793#else
29794char (*f) () = shmat;
29795#endif
29796#ifdef __cplusplus
29797}
29798#endif
29799
29800int
29801main ()
29802{
29803return f != shmat;
29804 ;
29805 return 0;
29806}
29807_ACEOF
29808rm -f conftest.$ac_objext conftest$ac_exeext
29809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29810 (eval $ac_link) 2>conftest.er1
a848cd7e 29811 ac_status=$?
ac1cb8d3
VS
29812 grep -v '^ *+' conftest.er1 >conftest.err
29813 rm -f conftest.er1
29814 cat conftest.err >&5
a848cd7e
SC
29815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29816 (exit $ac_status); } &&
3f60522a
JS
29817 { ac_try='test -z "$ac_cxx_werror_flag"
29818 || test ! -s conftest.err'
ac1cb8d3
VS
29819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29820 (eval $ac_try) 2>&5
29821 ac_status=$?
29822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29823 (exit $ac_status); }; } &&
29824 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29826 (eval $ac_try) 2>&5
29827 ac_status=$?
29828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29829 (exit $ac_status); }; }; then
29830 ac_cv_func_shmat=yes
29831else
29832 echo "$as_me: failed program was:" >&5
29833sed 's/^/| /' conftest.$ac_ext >&5
29834
29835ac_cv_func_shmat=no
29836fi
ac1cb8d3
VS
29837rm -f conftest.err conftest.$ac_objext \
29838 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29839fi
29840echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
29841echo "${ECHO_T}$ac_cv_func_shmat" >&6
29842
29843 if test $ac_cv_func_shmat = no; then
29844 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
29845echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
29846if test "${ac_cv_lib_ipc_shmat+set}" = set; then
29847 echo $ECHO_N "(cached) $ECHO_C" >&6
29848else
29849 ac_check_lib_save_LIBS=$LIBS
29850LIBS="-lipc $LIBS"
29851cat >conftest.$ac_ext <<_ACEOF
29852/* confdefs.h. */
29853_ACEOF
29854cat confdefs.h >>conftest.$ac_ext
29855cat >>conftest.$ac_ext <<_ACEOF
29856/* end confdefs.h. */
29857
29858/* Override any gcc2 internal prototype to avoid an error. */
29859#ifdef __cplusplus
29860extern "C"
29861#endif
29862/* We use char because int might match the return type of a gcc2
29863 builtin and then its argument prototype would still apply. */
29864char shmat ();
29865int
29866main ()
29867{
29868shmat ();
29869 ;
29870 return 0;
29871}
29872_ACEOF
29873rm -f conftest.$ac_objext conftest$ac_exeext
29874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29875 (eval $ac_link) 2>conftest.er1
a848cd7e 29876 ac_status=$?
ac1cb8d3
VS
29877 grep -v '^ *+' conftest.er1 >conftest.err
29878 rm -f conftest.er1
29879 cat conftest.err >&5
a848cd7e
SC
29880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29881 (exit $ac_status); } &&
3f60522a
JS
29882 { ac_try='test -z "$ac_cxx_werror_flag"
29883 || test ! -s conftest.err'
ac1cb8d3
VS
29884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29885 (eval $ac_try) 2>&5
29886 ac_status=$?
29887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29888 (exit $ac_status); }; } &&
29889 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29891 (eval $ac_try) 2>&5
29892 ac_status=$?
29893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894 (exit $ac_status); }; }; then
29895 ac_cv_lib_ipc_shmat=yes
29896else
29897 echo "$as_me: failed program was:" >&5
29898sed 's/^/| /' conftest.$ac_ext >&5
29899
29900ac_cv_lib_ipc_shmat=no
29901fi
ac1cb8d3
VS
29902rm -f conftest.err conftest.$ac_objext \
29903 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29904LIBS=$ac_check_lib_save_LIBS
29905fi
29906echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
29907echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
29908if test $ac_cv_lib_ipc_shmat = yes; then
29909 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
29910fi
29911
29912 fi
29913 fi
29914
29915 # Check for libraries that X11R6 Xt/Xaw programs need.
29916 ac_save_LDFLAGS=$LDFLAGS
29917 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
29918 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
29919 # check for ICE first), but we must link in the order -lSM -lICE or
29920 # we get undefined symbols. So assume we have SM if we have ICE.
29921 # These have to be linked with before -lX11, unlike the other
29922 # libraries we check for below, so use a different variable.
29923 # John Interrante, Karl Berry
29924 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
29925echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
29926if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
29927 echo $ECHO_N "(cached) $ECHO_C" >&6
29928else
29929 ac_check_lib_save_LIBS=$LIBS
29930LIBS="-lICE $X_EXTRA_LIBS $LIBS"
29931cat >conftest.$ac_ext <<_ACEOF
29932/* confdefs.h. */
29933_ACEOF
29934cat confdefs.h >>conftest.$ac_ext
29935cat >>conftest.$ac_ext <<_ACEOF
29936/* end confdefs.h. */
29937
29938/* Override any gcc2 internal prototype to avoid an error. */
29939#ifdef __cplusplus
29940extern "C"
29941#endif
29942/* We use char because int might match the return type of a gcc2
29943 builtin and then its argument prototype would still apply. */
29944char IceConnectionNumber ();
29945int
29946main ()
29947{
29948IceConnectionNumber ();
29949 ;
29950 return 0;
29951}
29952_ACEOF
29953rm -f conftest.$ac_objext conftest$ac_exeext
29954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29955 (eval $ac_link) 2>conftest.er1
a848cd7e 29956 ac_status=$?
ac1cb8d3
VS
29957 grep -v '^ *+' conftest.er1 >conftest.err
29958 rm -f conftest.er1
29959 cat conftest.err >&5
a848cd7e
SC
29960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29961 (exit $ac_status); } &&
3f60522a
JS
29962 { ac_try='test -z "$ac_cxx_werror_flag"
29963 || test ! -s conftest.err'
ac1cb8d3
VS
29964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29965 (eval $ac_try) 2>&5
29966 ac_status=$?
29967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29968 (exit $ac_status); }; } &&
29969 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29971 (eval $ac_try) 2>&5
29972 ac_status=$?
29973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29974 (exit $ac_status); }; }; then
29975 ac_cv_lib_ICE_IceConnectionNumber=yes
29976else
29977 echo "$as_me: failed program was:" >&5
29978sed 's/^/| /' conftest.$ac_ext >&5
29979
29980ac_cv_lib_ICE_IceConnectionNumber=no
29981fi
ac1cb8d3
VS
29982rm -f conftest.err conftest.$ac_objext \
29983 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29984LIBS=$ac_check_lib_save_LIBS
29985fi
29986echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
29987echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
29988if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
29989 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29990fi
29991
29992 LDFLAGS=$ac_save_LDFLAGS
29993
29994fi
29995
29996
29997 if test "$no_x" = "yes"; then
89d90d6d
VZ
29998 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
29999echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
30000 { (exit 1); exit 1; }; }
a848cd7e
SC
30001 fi
30002
74b84332
VS
30003 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
30004 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
30005 AFMINSTALL=afminstall
30006 COMPILED_X_PROGRAM=0
30007
74b84332
VS
30008 fi
30009
30010 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
30011 if test "$wxUSE_NANOX" = "yes"; then
30012 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
30013echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
30014 if test "x$MICROWIN" = x ; then
30015 echo "$as_me:$LINENO: result: not found" >&5
30016echo "${ECHO_T}not found" >&6
30017 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
30018echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
30019 { (exit 1); exit 1; }; }
30020 else
30021 echo "$as_me:$LINENO: result: $MICROWIN" >&5
30022echo "${ECHO_T}$MICROWIN" >&6
30023 cat >>confdefs.h <<\_ACEOF
30024#define wxUSE_NANOX 1
30025_ACEOF
30026
30027 fi
30028 fi
30029
30030 if test "$wxUSE_UNICODE" = "yes"; then
30031
30032 succeeded=no
30033
30034 if test -z "$PKG_CONFIG"; then
30035 # Extract the first word of "pkg-config", so it can be a program name with args.
30036set dummy pkg-config; ac_word=$2
30037echo "$as_me:$LINENO: checking for $ac_word" >&5
30038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30039if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30040 echo $ECHO_N "(cached) $ECHO_C" >&6
30041else
30042 case $PKG_CONFIG in
30043 [\\/]* | ?:[\\/]*)
30044 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30045 ;;
30046 *)
30047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30048for as_dir in $PATH
30049do
30050 IFS=$as_save_IFS
30051 test -z "$as_dir" && as_dir=.
30052 for ac_exec_ext in '' $ac_executable_extensions; do
30053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30054 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30056 break 2
30057 fi
30058done
30059done
30060
30061 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30062 ;;
30063esac
30064fi
30065PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30066
30067if test -n "$PKG_CONFIG"; then
30068 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30069echo "${ECHO_T}$PKG_CONFIG" >&6
30070else
30071 echo "$as_me:$LINENO: result: no" >&5
30072echo "${ECHO_T}no" >&6
30073fi
30074
30075 fi
30076
30077 if test "$PKG_CONFIG" = "no" ; then
30078 echo "*** The pkg-config script could not be found. Make sure it is"
30079 echo "*** in your path, or set the PKG_CONFIG environment variable"
30080 echo "*** to the full path to pkg-config."
30081 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
30082 else
30083 PKG_CONFIG_MIN_VERSION=0.9.0
30084 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
30085 echo "$as_me:$LINENO: checking for pangox" >&5
30086echo $ECHO_N "checking for pangox... $ECHO_C" >&6
30087
30088 if $PKG_CONFIG --exists "pangox" ; then
30089 echo "$as_me:$LINENO: result: yes" >&5
30090echo "${ECHO_T}yes" >&6
30091 succeeded=yes
30092
30093 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
30094echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
30095 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
30096 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
30097echo "${ECHO_T}$PANGOX_CFLAGS" >&6
30098
30099 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
30100echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
30101 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
30102 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
30103echo "${ECHO_T}$PANGOX_LIBS" >&6
30104 else
30105 PANGOX_CFLAGS=""
30106 PANGOX_LIBS=""
30107 ## If we have a custom action on failure, don't print errors, but
30108 ## do set a variable so people can do so.
30109 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
30110
30111 fi
30112
30113
30114
30115 else
30116 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
30117 echo "*** See http://www.freedesktop.org/software/pkgconfig"
30118 fi
30119 fi
30120
30121 if test $succeeded = yes; then
30122
c92ad099 30123 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
a848cd7e
SC
30124 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
30125
30126 else
30127
30128 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30129echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30130 { (exit 1); exit 1; }; }
30131
30132
30133 fi
30134
30135
30136 succeeded=no
30137
30138 if test -z "$PKG_CONFIG"; then
30139 # Extract the first word of "pkg-config", so it can be a program name with args.
30140set dummy pkg-config; ac_word=$2
30141echo "$as_me:$LINENO: checking for $ac_word" >&5
30142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30143if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30144 echo $ECHO_N "(cached) $ECHO_C" >&6
30145else
30146 case $PKG_CONFIG in
30147 [\\/]* | ?:[\\/]*)
30148 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30149 ;;
30150 *)
30151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30152for as_dir in $PATH
30153do
30154 IFS=$as_save_IFS
30155 test -z "$as_dir" && as_dir=.
30156 for ac_exec_ext in '' $ac_executable_extensions; do
30157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30158 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30160 break 2
30161 fi
30162done
30163done
30164
30165 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30166 ;;
30167esac
30168fi
30169PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30170
30171if test -n "$PKG_CONFIG"; then
30172 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30173echo "${ECHO_T}$PKG_CONFIG" >&6
30174else
30175 echo "$as_me:$LINENO: result: no" >&5
30176echo "${ECHO_T}no" >&6
30177fi
30178
30179 fi
30180
30181 if test "$PKG_CONFIG" = "no" ; then
30182 echo "*** The pkg-config script could not be found. Make sure it is"
30183 echo "*** in your path, or set the PKG_CONFIG environment variable"
30184 echo "*** to the full path to pkg-config."
30185 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
30186 else
30187 PKG_CONFIG_MIN_VERSION=0.9.0
30188 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
30189 echo "$as_me:$LINENO: checking for pangoft2" >&5
30190echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
30191
30192 if $PKG_CONFIG --exists "pangoft2" ; then
30193 echo "$as_me:$LINENO: result: yes" >&5
30194echo "${ECHO_T}yes" >&6
30195 succeeded=yes
30196
30197 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
30198echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
30199 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
30200 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
30201echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
30202
30203 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
30204echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
30205 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
30206 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
30207echo "${ECHO_T}$PANGOFT2_LIBS" >&6
30208 else
30209 PANGOFT2_CFLAGS=""
30210 PANGOFT2_LIBS=""
30211 ## If we have a custom action on failure, don't print errors, but
30212 ## do set a variable so people can do so.
30213 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
30214
30215 fi
30216
30217
30218
30219 else
30220 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
30221 echo "*** See http://www.freedesktop.org/software/pkgconfig"
30222 fi
30223 fi
30224
30225 if test $succeeded = yes; then
30226
c92ad099 30227 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
a848cd7e
SC
30228 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
30229
30230 else
30231
30232 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30233echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30234 wxUSE_PRINTING_ARCHITECTURE="no"
30235
30236
30237 fi
30238
30239
30240 succeeded=no
30241
30242 if test -z "$PKG_CONFIG"; then
30243 # Extract the first word of "pkg-config", so it can be a program name with args.
30244set dummy pkg-config; ac_word=$2
30245echo "$as_me:$LINENO: checking for $ac_word" >&5
30246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30247if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30248 echo $ECHO_N "(cached) $ECHO_C" >&6
30249else
30250 case $PKG_CONFIG in
30251 [\\/]* | ?:[\\/]*)
30252 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30253 ;;
30254 *)
30255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30256for as_dir in $PATH
30257do
30258 IFS=$as_save_IFS
30259 test -z "$as_dir" && as_dir=.
30260 for ac_exec_ext in '' $ac_executable_extensions; do
30261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30262 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30264 break 2
30265 fi
30266done
30267done
30268
30269 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30270 ;;
30271esac
30272fi
30273PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30274
30275if test -n "$PKG_CONFIG"; then
30276 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30277echo "${ECHO_T}$PKG_CONFIG" >&6
30278else
30279 echo "$as_me:$LINENO: result: no" >&5
30280echo "${ECHO_T}no" >&6
30281fi
30282
30283 fi
30284
30285 if test "$PKG_CONFIG" = "no" ; then
30286 echo "*** The pkg-config script could not be found. Make sure it is"
30287 echo "*** in your path, or set the PKG_CONFIG environment variable"
30288 echo "*** to the full path to pkg-config."
30289 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
30290 else
30291 PKG_CONFIG_MIN_VERSION=0.9.0
30292 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
30293 echo "$as_me:$LINENO: checking for pangoxft" >&5
30294echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
30295
30296 if $PKG_CONFIG --exists "pangoxft" ; then
30297 echo "$as_me:$LINENO: result: yes" >&5
30298echo "${ECHO_T}yes" >&6
30299 succeeded=yes
30300
30301 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
30302echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
30303 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
30304 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
30305echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
30306
30307 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
30308echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
30309 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
30310 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
30311echo "${ECHO_T}$PANGOXFT_LIBS" >&6
30312 else
30313 PANGOXFT_CFLAGS=""
30314 PANGOXFT_LIBS=""
30315 ## If we have a custom action on failure, don't print errors, but
30316 ## do set a variable so people can do so.
30317 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
30318
30319 fi
30320
30321
30322
30323 else
30324 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
30325 echo "*** See http://www.freedesktop.org/software/pkgconfig"
30326 fi
30327 fi
30328
30329 if test $succeeded = yes; then
30330
4ae1af05
MB
30331 cat >>confdefs.h <<\_ACEOF
30332#define HAVE_PANGO_XFT 1
30333_ACEOF
30334
c92ad099 30335 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
a848cd7e
SC
30336 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
30337
30338 else
30339
30340 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30341echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30342
30343
30344 fi
30345
e56f4f9e 30346 save_CXXFLAGS="$CXXFLAGS"
304205f1 30347 save_LIBS="$LIBS"
e56f4f9e 30348 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
304205f1
VS
30349 LIBS="$LIBS $PANGOX_LIBS"
30350
30351for ac_func in pango_font_family_is_monospace
30352do
30353as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30354echo "$as_me:$LINENO: checking for $ac_func" >&5
30355echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30356if eval "test \"\${$as_ac_var+set}\" = set"; then
30357 echo $ECHO_N "(cached) $ECHO_C" >&6
30358else
30359 cat >conftest.$ac_ext <<_ACEOF
30360/* confdefs.h. */
30361_ACEOF
30362cat confdefs.h >>conftest.$ac_ext
30363cat >>conftest.$ac_ext <<_ACEOF
30364/* end confdefs.h. */
30365/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30367#define $ac_func innocuous_$ac_func
30368
30369/* System header to define __stub macros and hopefully few prototypes,
30370 which can conflict with char $ac_func (); below.
30371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30372 <limits.h> exists even on freestanding compilers. */
30373
30374#ifdef __STDC__
30375# include <limits.h>
30376#else
30377# include <assert.h>
30378#endif
30379
30380#undef $ac_func
30381
30382/* Override any gcc2 internal prototype to avoid an error. */
30383#ifdef __cplusplus
30384extern "C"
30385{
30386#endif
30387/* We use char because int might match the return type of a gcc2
30388 builtin and then its argument prototype would still apply. */
30389char $ac_func ();
30390/* The GNU C library defines this for functions which it implements
30391 to always fail with ENOSYS. Some functions are actually named
30392 something starting with __ and the normal name is an alias. */
30393#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30394choke me
30395#else
30396char (*f) () = $ac_func;
30397#endif
30398#ifdef __cplusplus
30399}
30400#endif
30401
30402int
30403main ()
30404{
30405return f != $ac_func;
30406 ;
30407 return 0;
30408}
30409_ACEOF
30410rm -f conftest.$ac_objext conftest$ac_exeext
30411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30412 (eval $ac_link) 2>conftest.er1
30413 ac_status=$?
30414 grep -v '^ *+' conftest.er1 >conftest.err
30415 rm -f conftest.er1
30416 cat conftest.err >&5
30417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418 (exit $ac_status); } &&
3f60522a
JS
30419 { ac_try='test -z "$ac_cxx_werror_flag"
30420 || test ! -s conftest.err'
304205f1
VS
30421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30422 (eval $ac_try) 2>&5
30423 ac_status=$?
30424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30425 (exit $ac_status); }; } &&
30426 { ac_try='test -s conftest$ac_exeext'
30427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30428 (eval $ac_try) 2>&5
30429 ac_status=$?
30430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30431 (exit $ac_status); }; }; then
30432 eval "$as_ac_var=yes"
30433else
30434 echo "$as_me: failed program was:" >&5
30435sed 's/^/| /' conftest.$ac_ext >&5
30436
30437eval "$as_ac_var=no"
30438fi
30439rm -f conftest.err conftest.$ac_objext \
30440 conftest$ac_exeext conftest.$ac_ext
30441fi
30442echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30443echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30444if test `eval echo '${'$as_ac_var'}'` = yes; then
30445 cat >>confdefs.h <<_ACEOF
30446#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30447_ACEOF
30448
30449fi
30450done
30451
e56f4f9e 30452 CXXFLAGS="$save_CXXFLAGS"
304205f1 30453 LIBS="$save_LIBS"
a848cd7e
SC
30454 fi
30455
30456 wxUSE_UNIVERSAL="yes"
30457
30458 if test "$wxUSE_NANOX" = "yes"; then
30459 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
30460 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"
30461 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
30462 else
30463 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
30464 fi
30465
a848cd7e
SC
30466 TOOLKIT=X11
30467 GUIDIST=X11_DIST
30468 fi
30469
30470 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
30471 if test "$wxUSE_UNICODE" = "yes"; then
30472 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
30473echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
30474 { (exit 1); exit 1; }; }
30475 fi
30476
74b84332
VS
30477 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
30478echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 30479
74b84332
VS
30480ac_find_includes=
30481for ac_dir in $SEARCH_INCLUDE /usr/include;
30482 do
30483 if test -f "$ac_dir/Xm/Xm.h"; then
30484 ac_find_includes=$ac_dir
30485 break
30486 fi
30487 done
a848cd7e 30488
74b84332
VS
30489 if test "$ac_find_includes" != "" ; then
30490 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
30491echo "${ECHO_T}found in $ac_find_includes" >&6
30492
30493 if test "x$ac_find_includes" = "x/usr/include"; then
30494 ac_path_to_include=""
30495 else
30496 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
30497 result=$?
30498 if test $result = 0; then
30499 ac_path_to_include=""
30500 else
30501 ac_path_to_include=" -I$ac_find_includes"
30502 fi
a848cd7e
SC
30503 fi
30504
74b84332
VS
30505 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
30506 else
e56f4f9e
VZ
30507 save_CXXFLAGS=$CXXFLAGS
30508 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
e051b34e 30509
74b84332 30510 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30511/* confdefs.h. */
30512_ACEOF
30513cat confdefs.h >>conftest.$ac_ext
30514cat >>conftest.$ac_ext <<_ACEOF
30515/* end confdefs.h. */
30516
74b84332
VS
30517 #include <Xm/Xm.h>
30518
a848cd7e
SC
30519int
30520main ()
30521{
30522
74b84332
VS
30523 int version;
30524 version = xmUseVersion;
30525
a848cd7e
SC
30526 ;
30527 return 0;
30528}
30529_ACEOF
74b84332
VS
30530rm -f conftest.$ac_objext
30531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30532 (eval $ac_compile) 2>conftest.er1
a848cd7e 30533 ac_status=$?
ac1cb8d3
VS
30534 grep -v '^ *+' conftest.er1 >conftest.err
30535 rm -f conftest.er1
30536 cat conftest.err >&5
a848cd7e
SC
30537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30538 (exit $ac_status); } &&
3f60522a
JS
30539 { ac_try='test -z "$ac_cxx_werror_flag"
30540 || test ! -s conftest.err'
ac1cb8d3
VS
30541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30542 (eval $ac_try) 2>&5
30543 ac_status=$?
30544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30545 (exit $ac_status); }; } &&
74b84332 30546 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30548 (eval $ac_try) 2>&5
30549 ac_status=$?
30550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30551 (exit $ac_status); }; }; then
74b84332
VS
30552
30553 echo "$as_me:$LINENO: result: found in default search path" >&5
30554echo "${ECHO_T}found in default search path" >&6
30555 COMPILED_X_PROGRAM=1
30556
a848cd7e
SC
30557else
30558 echo "$as_me: failed program was:" >&5
30559sed 's/^/| /' conftest.$ac_ext >&5
30560
a848cd7e 30561
74b84332
VS
30562 echo "$as_me:$LINENO: result: no" >&5
30563echo "${ECHO_T}no" >&6
e051b34e
MW
30564 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
30565echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 30566 { (exit 1); exit 1; }; }
a848cd7e 30567
a848cd7e 30568
a848cd7e 30569fi
74b84332 30570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 30571
e56f4f9e 30572 CXXFLAGS=$save_CXXFLAGS
74b84332
VS
30573 fi
30574
0ad5d837
VZ
30575
30576 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
30577echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
30578
0ad5d837
VZ
30579 ac_find_libraries=
30580 for ac_dir in $SEARCH_LIB;
74b84332 30581 do
3eca31dc 30582 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
30583 if test -f "$ac_dir/libXm.$ac_extension"; then
30584 ac_find_libraries=$ac_dir
30585 break 2
a848cd7e 30586 fi
74b84332
VS
30587 done
30588 done
a848cd7e 30589
0ad5d837
VZ
30590
30591 if test "x$ac_find_libraries" != "x" ; then
30592 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30593echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 30594
74b84332 30595
0ad5d837 30596 if test "$ac_find_libraries" = "default location"; then
74b84332 30597 ac_path_to_link=""
a848cd7e 30598 else
0ad5d837
VZ
30599 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30600 result=$?
30601 if test $result = 0; then
30602 ac_path_to_link=""
30603 else
30604 ac_path_to_link=" -L$ac_find_libraries"
30605 fi
74b84332
VS
30606 fi
30607
0ad5d837
VZ
30608 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
30609 else
e56f4f9e
VZ
30610 save_CXXFLAGS=$CXXFLAGS
30611 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
6f9cf1e6
MW
30612 save_LIBS="$LIBS"
30613 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 30614
0ad5d837 30615 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30616/* confdefs.h. */
30617_ACEOF
30618cat confdefs.h >>conftest.$ac_ext
30619cat >>conftest.$ac_ext <<_ACEOF
30620/* end confdefs.h. */
30621
0ad5d837 30622 #include <Xm/Xm.h>
74b84332 30623
a848cd7e
SC
30624int
30625main ()
30626{
74b84332 30627
0ad5d837
VZ
30628 int version;
30629 version = xmUseVersion;
74b84332 30630
a848cd7e
SC
30631 ;
30632 return 0;
30633}
30634_ACEOF
0ad5d837
VZ
30635rm -f conftest.$ac_objext conftest$ac_exeext
30636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30637 (eval $ac_link) 2>conftest.er1
a848cd7e 30638 ac_status=$?
ac1cb8d3
VS
30639 grep -v '^ *+' conftest.er1 >conftest.err
30640 rm -f conftest.er1
30641 cat conftest.err >&5
a848cd7e
SC
30642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30643 (exit $ac_status); } &&
3f60522a
JS
30644 { ac_try='test -z "$ac_cxx_werror_flag"
30645 || test ! -s conftest.err'
ac1cb8d3
VS
30646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30647 (eval $ac_try) 2>&5
30648 ac_status=$?
30649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30650 (exit $ac_status); }; } &&
0ad5d837 30651 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30653 (eval $ac_try) 2>&5
30654 ac_status=$?
30655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30656 (exit $ac_status); }; }; then
74b84332 30657
0ad5d837 30658 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 30659echo "${ECHO_T}found in default search path" >&6
0ad5d837 30660 COMPILED_X_PROGRAM=1
74b84332 30661
a848cd7e
SC
30662else
30663 echo "$as_me: failed program was:" >&5
30664sed 's/^/| /' conftest.$ac_ext >&5
30665
74b84332 30666
6f9cf1e6 30667 echo "$as_me:$LINENO: result: no" >&5
74b84332 30668echo "${ECHO_T}no" >&6
6f9cf1e6 30669 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
30670echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
30671 { (exit 1); exit 1; }; }
30672
30673
30674fi
0ad5d837
VZ
30675rm -f conftest.err conftest.$ac_objext \
30676 conftest$ac_exeext conftest.$ac_ext
74b84332 30677
e56f4f9e 30678 CXXFLAGS=$save_CXXFLAGS
6f9cf1e6 30679 LIBS="$save_LIBS"
74b84332
VS
30680 fi
30681
30682 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
30683echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
30684 libp_link=""
30685 libsm_ice_link=""
30686 libs_found=0
30687 for libp in "" " -lXp"; do
30688 if test "$libs_found" = "0"; then
30689 for libsm_ice in "" " -lSM -lICE"; do
30690 if test "$libs_found" = "0"; then
30691 save_LIBS="$LIBS"
30692 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
e56f4f9e
VZ
30693 save_CXXFLAGS=$CXXFLAGS
30694 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
74b84332
VS
30695
30696 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30697/* confdefs.h. */
30698_ACEOF
30699cat confdefs.h >>conftest.$ac_ext
30700cat >>conftest.$ac_ext <<_ACEOF
30701/* end confdefs.h. */
30702
74b84332
VS
30703 #include <Xm/Xm.h>
30704 #include <Xm/List.h>
30705
a848cd7e
SC
30706int
30707main ()
30708{
74b84332
VS
30709
30710 XmString string = NULL;
30711 Widget w = NULL;
30712 int position = 0;
30713 XmListAddItem(w, string, position);
30714
a848cd7e
SC
30715 ;
30716 return 0;
30717}
30718_ACEOF
30719rm -f conftest.$ac_objext conftest$ac_exeext
30720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30721 (eval $ac_link) 2>conftest.er1
a848cd7e 30722 ac_status=$?
ac1cb8d3
VS
30723 grep -v '^ *+' conftest.er1 >conftest.err
30724 rm -f conftest.er1
30725 cat conftest.err >&5
a848cd7e
SC
30726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30727 (exit $ac_status); } &&
3f60522a
JS
30728 { ac_try='test -z "$ac_cxx_werror_flag"
30729 || test ! -s conftest.err'
ac1cb8d3
VS
30730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30731 (eval $ac_try) 2>&5
30732 ac_status=$?
30733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30734 (exit $ac_status); }; } &&
30735 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30737 (eval $ac_try) 2>&5
30738 ac_status=$?
30739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30740 (exit $ac_status); }; }; then
30741
30742 libp_link="$libp"
30743 libsm_ice_link="$libsm_ice"
30744 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
30745echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
30746 libs_found=1
30747
30748else
30749 echo "$as_me: failed program was:" >&5
30750sed 's/^/| /' conftest.$ac_ext >&5
30751
30752
30753
30754fi
ac1cb8d3
VS
30755rm -f conftest.err conftest.$ac_objext \
30756 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30757
30758 LIBS="$save_LIBS"
e56f4f9e 30759 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
30760 fi
30761 done
30762 fi
30763 done
30764
30765 if test "$libs_found" = "0"; then
30766 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
30767echo "${ECHO_T}can't find the right libraries" >&6
30768 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
30769echo "$as_me: error: can't link a simple motif program" >&2;}
30770 { (exit 1); exit 1; }; }
30771 fi
30772
62fa8b3a
MW
30773 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
30774echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
30775if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
30776 echo $ECHO_N "(cached) $ECHO_C" >&6
30777else
30778 ac_check_lib_save_LIBS=$LIBS
30779LIBS="-lSgm $LIBS"
30780cat >conftest.$ac_ext <<_ACEOF
30781/* confdefs.h. */
30782_ACEOF
30783cat confdefs.h >>conftest.$ac_ext
30784cat >>conftest.$ac_ext <<_ACEOF
30785/* end confdefs.h. */
30786
30787/* Override any gcc2 internal prototype to avoid an error. */
30788#ifdef __cplusplus
30789extern "C"
30790#endif
30791/* We use char because int might match the return type of a gcc2
30792 builtin and then its argument prototype would still apply. */
30793char SgCreateList ();
30794int
30795main ()
30796{
30797SgCreateList ();
30798 ;
30799 return 0;
30800}
30801_ACEOF
30802rm -f conftest.$ac_objext conftest$ac_exeext
30803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30804 (eval $ac_link) 2>conftest.er1
30805 ac_status=$?
30806 grep -v '^ *+' conftest.er1 >conftest.err
30807 rm -f conftest.er1
30808 cat conftest.err >&5
30809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30810 (exit $ac_status); } &&
3f60522a
JS
30811 { ac_try='test -z "$ac_cxx_werror_flag"
30812 || test ! -s conftest.err'
62fa8b3a
MW
30813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30814 (eval $ac_try) 2>&5
30815 ac_status=$?
30816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30817 (exit $ac_status); }; } &&
30818 { ac_try='test -s conftest$ac_exeext'
30819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30820 (eval $ac_try) 2>&5
30821 ac_status=$?
30822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30823 (exit $ac_status); }; }; then
30824 ac_cv_lib_Sgm_SgCreateList=yes
30825else
30826 echo "$as_me: failed program was:" >&5
30827sed 's/^/| /' conftest.$ac_ext >&5
30828
30829ac_cv_lib_Sgm_SgCreateList=no
30830fi
30831rm -f conftest.err conftest.$ac_objext \
30832 conftest$ac_exeext conftest.$ac_ext
30833LIBS=$ac_check_lib_save_LIBS
30834fi
30835echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
30836echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
30837if test $ac_cv_lib_Sgm_SgCreateList = yes; then
30838 libsgm_link=" -lSgm"
30839fi
30840
30841
e56f4f9e
VZ
30842 save_CXXFLAGS=$CXXFLAGS
30843 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
0ad5d837 30844
a848cd7e
SC
30845 echo "$as_me:$LINENO: checking for Motif 2" >&5
30846echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
30847if test "${wx_cv_lib_motif2+set}" = set; then
30848 echo $ECHO_N "(cached) $ECHO_C" >&6
30849else
30850 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30851/* confdefs.h. */
30852_ACEOF
30853cat confdefs.h >>conftest.$ac_ext
30854cat >>conftest.$ac_ext <<_ACEOF
30855/* end confdefs.h. */
30856
0ad5d837 30857 #include <Xm/Xm.h>
a848cd7e
SC
30858
30859int
30860main ()
30861{
30862
0ad5d837
VZ
30863 #if XmVersion < 2000
30864 Not Motif 2
30865 #endif
a848cd7e
SC
30866
30867 ;
30868 return 0;
30869}
30870_ACEOF
30871rm -f conftest.$ac_objext
30872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30873 (eval $ac_compile) 2>conftest.er1
a848cd7e 30874 ac_status=$?
ac1cb8d3
VS
30875 grep -v '^ *+' conftest.er1 >conftest.err
30876 rm -f conftest.er1
30877 cat conftest.err >&5
a848cd7e
SC
30878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30879 (exit $ac_status); } &&
3f60522a
JS
30880 { ac_try='test -z "$ac_cxx_werror_flag"
30881 || test ! -s conftest.err'
ac1cb8d3
VS
30882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30883 (eval $ac_try) 2>&5
30884 ac_status=$?
30885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886 (exit $ac_status); }; } &&
30887 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30889 (eval $ac_try) 2>&5
30890 ac_status=$?
30891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30892 (exit $ac_status); }; }; then
0ad5d837 30893 wx_cv_lib_motif2="yes"
a848cd7e
SC
30894else
30895 echo "$as_me: failed program was:" >&5
30896sed 's/^/| /' conftest.$ac_ext >&5
30897
0ad5d837
VZ
30898wx_cv_lib_motif2="no"
30899fi
30900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30901fi
30902echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
30903echo "${ECHO_T}$wx_cv_lib_motif2" >&6
30904 if test "$wx_cv_lib_motif2" = "yes"; then
30905 cat >>confdefs.h <<\_ACEOF
30906#define __WXMOTIF20__ 1
30907_ACEOF
a848cd7e 30908
0ad5d837
VZ
30909 else
30910 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
30911#define __WXMOTIF20__ 0
30912_ACEOF
30913
0ad5d837 30914 fi
2113bc77
MW
30915
30916 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
30917echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
30918if test "${wx_cv_lib_lesstif+set}" = set; then
30919 echo $ECHO_N "(cached) $ECHO_C" >&6
30920else
30921 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
30922/* confdefs.h. */
30923_ACEOF
30924cat confdefs.h >>conftest.$ac_ext
30925cat >>conftest.$ac_ext <<_ACEOF
30926/* end confdefs.h. */
30927
0ad5d837 30928 #include <Xm/Xm.h>
2113bc77
MW
30929
30930int
30931main ()
30932{
30933
0ad5d837
VZ
30934 #if !defined(LesstifVersion) || LesstifVersion <= 0
30935 Not Lesstif
30936 #endif
2113bc77
MW
30937
30938 ;
30939 return 0;
30940}
30941_ACEOF
30942rm -f conftest.$ac_objext
30943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30944 (eval $ac_compile) 2>conftest.er1
30945 ac_status=$?
30946 grep -v '^ *+' conftest.er1 >conftest.err
30947 rm -f conftest.er1
30948 cat conftest.err >&5
30949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30950 (exit $ac_status); } &&
3f60522a
JS
30951 { ac_try='test -z "$ac_cxx_werror_flag"
30952 || test ! -s conftest.err'
2113bc77
MW
30953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30954 (eval $ac_try) 2>&5
30955 ac_status=$?
30956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957 (exit $ac_status); }; } &&
30958 { ac_try='test -s conftest.$ac_objext'
30959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30960 (eval $ac_try) 2>&5
30961 ac_status=$?
30962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963 (exit $ac_status); }; }; then
0ad5d837 30964 wx_cv_lib_lesstif="yes"
2113bc77
MW
30965else
30966 echo "$as_me: failed program was:" >&5
30967sed 's/^/| /' conftest.$ac_ext >&5
30968
0ad5d837
VZ
30969wx_cv_lib_lesstif="no"
30970fi
30971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 30972
0ad5d837
VZ
30973fi
30974echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
30975echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
30976 if test "$wx_cv_lib_lesstif" = "yes"; then
30977 cat >>confdefs.h <<\_ACEOF
30978#define __WXLESSTIF__ 1
30979_ACEOF
30980
30981 else
30982 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
30983#define __WXLESSTIF__ 0
30984_ACEOF
30985
0ad5d837 30986 fi
2113bc77 30987
e56f4f9e 30988 CXXFLAGS=$save_CXXFLAGS
a848cd7e 30989
62fa8b3a 30990 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
30991 TOOLKIT=MOTIF
30992 GUIDIST=MOTIF_DIST
30993 fi
30994
74b84332 30995 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
30996 if test "$wxUSE_LIBXPM" = "sys"; then
30997 echo "$as_me:$LINENO: checking for Xpm library" >&5
30998echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
30999
0ad5d837
VZ
31000 ac_find_libraries=
31001 for ac_dir in $SEARCH_LIB;
a848cd7e 31002 do
3eca31dc 31003 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31004 if test -f "$ac_dir/libXpm.$ac_extension"; then
31005 ac_find_libraries=$ac_dir
31006 break 2
31007 fi
31008 done
31009 done
31010
31011 if test "$ac_find_libraries" != "" ; then
31012
0ad5d837 31013 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31014 ac_path_to_link=""
31015 else
0ad5d837
VZ
31016 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31017 result=$?
31018 if test $result = 0; then
31019 ac_path_to_link=""
31020 else
31021 ac_path_to_link=" -L$ac_find_libraries"
31022 fi
a848cd7e
SC
31023 fi
31024
31025 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
31026 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31027echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
31028
31029 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
31030echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
31031if test "${wx_cv_x11_xpm_h+set}" = set; then
31032 echo $ECHO_N "(cached) $ECHO_C" >&6
31033else
31034
e56f4f9e
VZ
31035 save_CXXFLAGS=$CXXFLAGS
31036 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
31037
31038 cat >conftest.$ac_ext <<_ACEOF
31039/* confdefs.h. */
31040_ACEOF
31041cat confdefs.h >>conftest.$ac_ext
31042cat >>conftest.$ac_ext <<_ACEOF
31043/* end confdefs.h. */
31044
31045 #include <X11/xpm.h>
31046
31047int
31048main ()
31049{
31050
31051 int version;
31052 version = XpmLibraryVersion();
31053
31054 ;
31055 return 0;
31056}
31057_ACEOF
31058rm -f conftest.$ac_objext
31059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31060 (eval $ac_compile) 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); } &&
3f60522a
JS
31067 { ac_try='test -z "$ac_cxx_werror_flag"
31068 || test ! -s conftest.err'
ac1cb8d3
VS
31069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31070 (eval $ac_try) 2>&5
31071 ac_status=$?
31072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31073 (exit $ac_status); }; } &&
31074 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31076 (eval $ac_try) 2>&5
31077 ac_status=$?
31078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079 (exit $ac_status); }; }; then
31080 wx_cv_x11_xpm_h=yes
31081else
31082 echo "$as_me: failed program was:" >&5
31083sed 's/^/| /' conftest.$ac_ext >&5
31084
31085wx_cv_x11_xpm_h=no
31086
31087fi
ac1cb8d3 31088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 31089
e56f4f9e 31090 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
31091
31092
31093fi
31094echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
31095echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
31096
31097 if test $wx_cv_x11_xpm_h = "yes"; then
31098 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
31099 cat >>confdefs.h <<\_ACEOF
31100#define wxHAVE_LIB_XPM 1
31101_ACEOF
31102
31103 else
31104 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
31105echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
31106 fi
31107 fi
31108
31109 fi
31110
31111 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
31112echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
31113if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
31114 echo $ECHO_N "(cached) $ECHO_C" >&6
31115else
31116 ac_check_lib_save_LIBS=$LIBS
31117LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
31118cat >conftest.$ac_ext <<_ACEOF
31119/* confdefs.h. */
31120_ACEOF
31121cat confdefs.h >>conftest.$ac_ext
31122cat >>conftest.$ac_ext <<_ACEOF
31123/* end confdefs.h. */
31124
31125/* Override any gcc2 internal prototype to avoid an error. */
31126#ifdef __cplusplus
31127extern "C"
31128#endif
31129/* We use char because int might match the return type of a gcc2
31130 builtin and then its argument prototype would still apply. */
31131char XShapeQueryExtension ();
31132int
31133main ()
31134{
31135XShapeQueryExtension ();
31136 ;
31137 return 0;
31138}
31139_ACEOF
31140rm -f conftest.$ac_objext conftest$ac_exeext
31141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31142 (eval $ac_link) 2>conftest.er1
a848cd7e 31143 ac_status=$?
ac1cb8d3
VS
31144 grep -v '^ *+' conftest.er1 >conftest.err
31145 rm -f conftest.er1
31146 cat conftest.err >&5
a848cd7e
SC
31147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31148 (exit $ac_status); } &&
3f60522a
JS
31149 { ac_try='test -z "$ac_cxx_werror_flag"
31150 || test ! -s conftest.err'
ac1cb8d3
VS
31151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31152 (eval $ac_try) 2>&5
31153 ac_status=$?
31154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31155 (exit $ac_status); }; } &&
31156 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31158 (eval $ac_try) 2>&5
31159 ac_status=$?
31160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31161 (exit $ac_status); }; }; then
31162 ac_cv_lib_Xext_XShapeQueryExtension=yes
31163else
31164 echo "$as_me: failed program was:" >&5
31165sed 's/^/| /' conftest.$ac_ext >&5
31166
31167ac_cv_lib_Xext_XShapeQueryExtension=no
31168fi
ac1cb8d3
VS
31169rm -f conftest.err conftest.$ac_objext \
31170 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31171LIBS=$ac_check_lib_save_LIBS
31172fi
31173echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
31174echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
31175if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
31176
31177 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
31178 wxHAVE_XEXT_LIB=1
31179
31180fi
31181
31182
31183 if test "$wxHAVE_XEXT_LIB" = 1; then
e56f4f9e
VZ
31184 save_CXXFLAGS="$CXXFLAGS"
31185 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
31186
31187 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
31188echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
31189 cat >conftest.$ac_ext <<_ACEOF
31190/* confdefs.h. */
31191_ACEOF
31192cat confdefs.h >>conftest.$ac_ext
31193cat >>conftest.$ac_ext <<_ACEOF
31194/* end confdefs.h. */
31195
31196 #include <X11/Xlib.h>
31197 #include <X11/extensions/shape.h>
31198
31199int
31200main ()
31201{
31202
31203 int dummy1, dummy2;
31204 XShapeQueryExtension((Display*)NULL,
31205 (int*)NULL, (int*)NULL);
31206
31207 ;
31208 return 0;
31209}
31210_ACEOF
31211rm -f conftest.$ac_objext
31212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31213 (eval $ac_compile) 2>conftest.er1
a848cd7e 31214 ac_status=$?
ac1cb8d3
VS
31215 grep -v '^ *+' conftest.er1 >conftest.err
31216 rm -f conftest.er1
31217 cat conftest.err >&5
a848cd7e
SC
31218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31219 (exit $ac_status); } &&
3f60522a
JS
31220 { ac_try='test -z "$ac_cxx_werror_flag"
31221 || test ! -s conftest.err'
ac1cb8d3
VS
31222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31223 (eval $ac_try) 2>&5
31224 ac_status=$?
31225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31226 (exit $ac_status); }; } &&
31227 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31229 (eval $ac_try) 2>&5
31230 ac_status=$?
31231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31232 (exit $ac_status); }; }; then
31233
31234 cat >>confdefs.h <<\_ACEOF
31235#define HAVE_XSHAPE 1
31236_ACEOF
31237
31238 echo "$as_me:$LINENO: result: found" >&5
31239echo "${ECHO_T}found" >&6
31240
31241else
31242 echo "$as_me: failed program was:" >&5
31243sed 's/^/| /' conftest.$ac_ext >&5
31244
31245
31246 echo "$as_me:$LINENO: result: not found" >&5
31247echo "${ECHO_T}not found" >&6
31248
31249fi
ac1cb8d3 31250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e56f4f9e 31251 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
31252
31253 fi
31254 fi
31255
31256 if test "$wxUSE_MAC" = 1; then
31257 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
31258echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
31259 if test "$GCC" = yes; then
31260 echo "$as_me:$LINENO: result: gcc" >&5
31261echo "${ECHO_T}gcc" >&6
31262 CPPFLAGS_PASCAL="-fpascal-strings"
31263 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
31264 echo "$as_me:$LINENO: result: xlc" >&5
31265echo "${ECHO_T}xlc" >&6
31266 CPPFLAGS_PASCAL="-qmacpstr"
31267 else
31268 echo "$as_me:$LINENO: result: none" >&5
31269echo "${ECHO_T}none" >&6
31270 fi
31271
1e9e8aba 31272 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 31273 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 31274 else
c92ad099 31275 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 31276 fi
a848cd7e 31277
a848cd7e
SC
31278 TOOLKIT=MAC
31279 GUIDIST=MACX_DIST
dd21ced8 31280 WXBASEPORT="_carbon"
a848cd7e
SC
31281 fi
31282
31283 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
31284 TOOLKIT=COCOA
31285 GUIDIST=COCOA_DIST
31286 fi
31287
31288 if test "$wxUSE_PM" = 1; then
31289 TOOLKIT=PM
de59c161
RD
31290 GUIDIST=PM_DIST
31291 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
31292echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
31293if test "${wx_cv_spbcdata+set}" = set; then
31294 echo $ECHO_N "(cached) $ECHO_C" >&6
31295else
31296
31297 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
31298/* confdefs.h. */
31299_ACEOF
31300cat confdefs.h >>conftest.$ac_ext
31301cat >>conftest.$ac_ext <<_ACEOF
31302/* end confdefs.h. */
31303
31304 #define INCL_PM
31305 #include <os2.h>
31306
31307int
31308main ()
31309{
31310
31311 SPBCDATA test;
31312
31313 ;
31314 return 0;
31315}
31316_ACEOF
31317rm -f conftest.$ac_objext
31318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31319 (eval $ac_compile) 2>conftest.er1
de59c161 31320 ac_status=$?
ac1cb8d3
VS
31321 grep -v '^ *+' conftest.er1 >conftest.err
31322 rm -f conftest.er1
31323 cat conftest.err >&5
de59c161
RD
31324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31325 (exit $ac_status); } &&
3f60522a
JS
31326 { ac_try='test -z "$ac_cxx_werror_flag"
31327 || test ! -s conftest.err'
ac1cb8d3
VS
31328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31329 (eval $ac_try) 2>&5
31330 ac_status=$?
31331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31332 (exit $ac_status); }; } &&
31333 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
31334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31335 (eval $ac_try) 2>&5
31336 ac_status=$?
31337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338 (exit $ac_status); }; }; then
31339 wx_cv_spbcdata=yes
31340else
31341 echo "$as_me: failed program was:" >&5
31342sed 's/^/| /' conftest.$ac_ext >&5
31343
31344wx_cv_spbcdata=no
31345
31346fi
ac1cb8d3 31347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
31348
31349
31350fi
31351echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
31352echo "${ECHO_T}$wx_cv_spbcdata" >&6
31353
31354 if test $wx_cv_spbcdata = "yes"; then
31355 cat >>confdefs.h <<\_ACEOF
31356#define HAVE_SPBCDATA 1
31357_ACEOF
31358
31359 fi
a848cd7e
SC
31360 fi
31361
31362 if test "$TOOLKIT" = "PM" ; then
31363 TOOLKIT_DIR="os2"
31364 else
31365 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
31366 fi
31367
a848cd7e 31368 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
31369 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
31370 WIDGET_SET=univ
a848cd7e
SC
31371 fi
31372
31373 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
31374 DISTDIR="wx\$(TOOLKIT)"
31375else
31376 USE_GUI=0
31377
31378 TOOLKIT_DIR="base"
31379
31380 if test "$USE_WIN32" = 1 ; then
a848cd7e 31381 TOOLKIT="MSW"
a848cd7e
SC
31382 fi
31383
a848cd7e
SC
31384 GUIDIST="BASE_DIST"
31385 DISTDIR="wxBase"
31386fi
31387
31388
d12aef51
VZ
31389if test "$wxUSE_GUI" = "yes"; then
31390 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
31391
31392for ac_header in X11/Xlib.h
31393do
31394as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31395if eval "test \"\${$as_ac_Header+set}\" = set"; then
31396 echo "$as_me:$LINENO: checking for $ac_header" >&5
31397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31398if eval "test \"\${$as_ac_Header+set}\" = set"; then
31399 echo $ECHO_N "(cached) $ECHO_C" >&6
31400fi
31401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31402echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31403else
31404 # Is the header compilable?
31405echo "$as_me:$LINENO: checking $ac_header usability" >&5
31406echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31407cat >conftest.$ac_ext <<_ACEOF
31408/* confdefs.h. */
31409_ACEOF
31410cat confdefs.h >>conftest.$ac_ext
31411cat >>conftest.$ac_ext <<_ACEOF
31412/* end confdefs.h. */
31413$ac_includes_default
31414#include <$ac_header>
31415_ACEOF
31416rm -f conftest.$ac_objext
31417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31418 (eval $ac_compile) 2>conftest.er1
31419 ac_status=$?
31420 grep -v '^ *+' conftest.er1 >conftest.err
31421 rm -f conftest.er1
31422 cat conftest.err >&5
31423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31424 (exit $ac_status); } &&
3f60522a
JS
31425 { ac_try='test -z "$ac_cxx_werror_flag"
31426 || test ! -s conftest.err'
d12aef51
VZ
31427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31428 (eval $ac_try) 2>&5
31429 ac_status=$?
31430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31431 (exit $ac_status); }; } &&
31432 { ac_try='test -s conftest.$ac_objext'
31433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31434 (eval $ac_try) 2>&5
31435 ac_status=$?
31436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437 (exit $ac_status); }; }; then
31438 ac_header_compiler=yes
31439else
31440 echo "$as_me: failed program was:" >&5
31441sed 's/^/| /' conftest.$ac_ext >&5
31442
31443ac_header_compiler=no
31444fi
31445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31446echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31447echo "${ECHO_T}$ac_header_compiler" >&6
31448
31449# Is the header present?
31450echo "$as_me:$LINENO: checking $ac_header presence" >&5
31451echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31452cat >conftest.$ac_ext <<_ACEOF
31453/* confdefs.h. */
31454_ACEOF
31455cat confdefs.h >>conftest.$ac_ext
31456cat >>conftest.$ac_ext <<_ACEOF
31457/* end confdefs.h. */
31458#include <$ac_header>
31459_ACEOF
31460if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31462 ac_status=$?
31463 grep -v '^ *+' conftest.er1 >conftest.err
31464 rm -f conftest.er1
31465 cat conftest.err >&5
31466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31467 (exit $ac_status); } >/dev/null; then
31468 if test -s conftest.err; then
5d7b7554
VZ
31469 ac_cpp_err=$ac_cxx_preproc_warn_flag
31470 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
d12aef51
VZ
31471 else
31472 ac_cpp_err=
31473 fi
31474else
31475 ac_cpp_err=yes
31476fi
31477if test -z "$ac_cpp_err"; then
31478 ac_header_preproc=yes
31479else
31480 echo "$as_me: failed program was:" >&5
31481sed 's/^/| /' conftest.$ac_ext >&5
31482
31483 ac_header_preproc=no
31484fi
31485rm -f conftest.err conftest.$ac_ext
31486echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31487echo "${ECHO_T}$ac_header_preproc" >&6
31488
31489# So? What about this header?
5d7b7554 31490case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
d12aef51
VZ
31491 yes:no: )
31492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31493echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31495echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31496 ac_header_preproc=yes
31497 ;;
31498 no:yes:* )
31499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31500echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31502echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31504echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31506echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31508echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31510echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31511 (
31512 cat <<\_ASBOX
31513## ----------------------------------------- ##
31514## Report this to wx-dev@lists.wxwidgets.org ##
31515## ----------------------------------------- ##
31516_ASBOX
31517 ) |
31518 sed "s/^/$as_me: WARNING: /" >&2
31519 ;;
31520esac
31521echo "$as_me:$LINENO: checking for $ac_header" >&5
31522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31523if eval "test \"\${$as_ac_Header+set}\" = set"; then
31524 echo $ECHO_N "(cached) $ECHO_C" >&6
31525else
31526 eval "$as_ac_Header=\$ac_header_preproc"
31527fi
31528echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31529echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31530
31531fi
31532if test `eval echo '${'$as_ac_Header'}'` = yes; then
31533 cat >>confdefs.h <<_ACEOF
31534#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31535_ACEOF
31536
31537fi
31538
31539done
31540
31541
31542for ac_header in X11/XKBlib.h
31543do
31544as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31545echo "$as_me:$LINENO: checking for $ac_header" >&5
31546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31547if eval "test \"\${$as_ac_Header+set}\" = set"; then
31548 echo $ECHO_N "(cached) $ECHO_C" >&6
31549else
31550 cat >conftest.$ac_ext <<_ACEOF
31551/* confdefs.h. */
31552_ACEOF
31553cat confdefs.h >>conftest.$ac_ext
31554cat >>conftest.$ac_ext <<_ACEOF
31555/* end confdefs.h. */
31556
31557 #if HAVE_X11_XLIB_H
31558 #include <X11/Xlib.h>
31559 #endif
31560
31561
31562#include <$ac_header>
31563_ACEOF
31564rm -f conftest.$ac_objext
31565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31566 (eval $ac_compile) 2>conftest.er1
31567 ac_status=$?
31568 grep -v '^ *+' conftest.er1 >conftest.err
31569 rm -f conftest.er1
31570 cat conftest.err >&5
31571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31572 (exit $ac_status); } &&
3f60522a
JS
31573 { ac_try='test -z "$ac_cxx_werror_flag"
31574 || test ! -s conftest.err'
d12aef51
VZ
31575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31576 (eval $ac_try) 2>&5
31577 ac_status=$?
31578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31579 (exit $ac_status); }; } &&
31580 { ac_try='test -s conftest.$ac_objext'
31581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31582 (eval $ac_try) 2>&5
31583 ac_status=$?
31584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31585 (exit $ac_status); }; }; then
31586 eval "$as_ac_Header=yes"
31587else
31588 echo "$as_me: failed program was:" >&5
31589sed 's/^/| /' conftest.$ac_ext >&5
31590
31591eval "$as_ac_Header=no"
31592fi
31593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31594fi
31595echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31596echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31597if test `eval echo '${'$as_ac_Header'}'` = yes; then
31598 cat >>confdefs.h <<_ACEOF
31599#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31600_ACEOF
31601
31602fi
31603
31604done
31605
31606 fi
31607fi
31608
a848cd7e
SC
31609
31610
31611IODBC_C_SRC=""
31612
31613
31614if test "$TOOLKIT" != "MSW" ; then
31615
31616 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
31617
31618 if test "${ac_cv_header_sql_h+set}" = set; then
31619 echo "$as_me:$LINENO: checking for sql.h" >&5
31620echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31621if test "${ac_cv_header_sql_h+set}" = set; then
31622 echo $ECHO_N "(cached) $ECHO_C" >&6
31623fi
31624echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31625echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31626else
31627 # Is the header compilable?
31628echo "$as_me:$LINENO: checking sql.h usability" >&5
31629echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
31630cat >conftest.$ac_ext <<_ACEOF
31631/* confdefs.h. */
31632_ACEOF
31633cat confdefs.h >>conftest.$ac_ext
31634cat >>conftest.$ac_ext <<_ACEOF
31635/* end confdefs.h. */
31636$ac_includes_default
31637#include <sql.h>
31638_ACEOF
31639rm -f conftest.$ac_objext
31640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31641 (eval $ac_compile) 2>conftest.er1
a848cd7e 31642 ac_status=$?
ac1cb8d3
VS
31643 grep -v '^ *+' conftest.er1 >conftest.err
31644 rm -f conftest.er1
31645 cat conftest.err >&5
a848cd7e
SC
31646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31647 (exit $ac_status); } &&
3f60522a
JS
31648 { ac_try='test -z "$ac_cxx_werror_flag"
31649 || test ! -s conftest.err'
ac1cb8d3
VS
31650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31651 (eval $ac_try) 2>&5
31652 ac_status=$?
31653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31654 (exit $ac_status); }; } &&
31655 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31657 (eval $ac_try) 2>&5
31658 ac_status=$?
31659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31660 (exit $ac_status); }; }; then
31661 ac_header_compiler=yes
31662else
31663 echo "$as_me: failed program was:" >&5
31664sed 's/^/| /' conftest.$ac_ext >&5
31665
31666ac_header_compiler=no
31667fi
ac1cb8d3 31668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31669echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31670echo "${ECHO_T}$ac_header_compiler" >&6
31671
31672# Is the header present?
31673echo "$as_me:$LINENO: checking sql.h presence" >&5
31674echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
31675cat >conftest.$ac_ext <<_ACEOF
31676/* confdefs.h. */
31677_ACEOF
31678cat confdefs.h >>conftest.$ac_ext
31679cat >>conftest.$ac_ext <<_ACEOF
31680/* end confdefs.h. */
31681#include <sql.h>
31682_ACEOF
31683if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31684 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31685 ac_status=$?
31686 grep -v '^ *+' conftest.er1 >conftest.err
31687 rm -f conftest.er1
31688 cat conftest.err >&5
31689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31690 (exit $ac_status); } >/dev/null; then
31691 if test -s conftest.err; then
5d7b7554
VZ
31692 ac_cpp_err=$ac_cxx_preproc_warn_flag
31693 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
31694 else
31695 ac_cpp_err=
31696 fi
31697else
31698 ac_cpp_err=yes
31699fi
31700if test -z "$ac_cpp_err"; then
31701 ac_header_preproc=yes
31702else
31703 echo "$as_me: failed program was:" >&5
31704sed 's/^/| /' conftest.$ac_ext >&5
31705
31706 ac_header_preproc=no
31707fi
31708rm -f conftest.err conftest.$ac_ext
31709echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31710echo "${ECHO_T}$ac_header_preproc" >&6
31711
31712# So? What about this header?
5d7b7554 31713case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 31714 yes:no: )
a848cd7e
SC
31715 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
31716echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31717 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
31718echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
31719 ac_header_preproc=yes
a848cd7e 31720 ;;
ac1cb8d3 31721 no:yes:* )
a848cd7e
SC
31722 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
31723echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31724 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
31725echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
31726 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
31727echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
31728 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
31729echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31730 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
31731echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31732 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
31733echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31734 (
31735 cat <<\_ASBOX
ac1cb8d3
VS
31736## ----------------------------------------- ##
31737## Report this to wx-dev@lists.wxwidgets.org ##
31738## ----------------------------------------- ##
a848cd7e
SC
31739_ASBOX
31740 ) |
31741 sed "s/^/$as_me: WARNING: /" >&2
31742 ;;
31743esac
31744echo "$as_me:$LINENO: checking for sql.h" >&5
31745echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31746if test "${ac_cv_header_sql_h+set}" = set; then
31747 echo $ECHO_N "(cached) $ECHO_C" >&6
31748else
31749 ac_cv_header_sql_h=$ac_header_preproc
31750fi
31751echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31752echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31753
31754fi
31755if test $ac_cv_header_sql_h = yes; then
31756 found_sql_h=1
31757fi
31758
31759
31760 if test "x$found_sql_h" = "x1" ; then
31761 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
31762echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
31763if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
31764 echo $ECHO_N "(cached) $ECHO_C" >&6
31765else
31766 ac_check_lib_save_LIBS=$LIBS
31767LIBS="-liodbc $LIBS"
31768cat >conftest.$ac_ext <<_ACEOF
31769/* confdefs.h. */
31770_ACEOF
31771cat confdefs.h >>conftest.$ac_ext
31772cat >>conftest.$ac_ext <<_ACEOF
31773/* end confdefs.h. */
31774
31775/* Override any gcc2 internal prototype to avoid an error. */
31776#ifdef __cplusplus
31777extern "C"
31778#endif
31779/* We use char because int might match the return type of a gcc2
31780 builtin and then its argument prototype would still apply. */
31781char SQLAllocEnv ();
31782int
31783main ()
31784{
31785SQLAllocEnv ();
31786 ;
31787 return 0;
31788}
31789_ACEOF
31790rm -f conftest.$ac_objext conftest$ac_exeext
31791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31792 (eval $ac_link) 2>conftest.er1
a848cd7e 31793 ac_status=$?
ac1cb8d3
VS
31794 grep -v '^ *+' conftest.er1 >conftest.err
31795 rm -f conftest.er1
31796 cat conftest.err >&5
a848cd7e
SC
31797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31798 (exit $ac_status); } &&
3f60522a
JS
31799 { ac_try='test -z "$ac_cxx_werror_flag"
31800 || test ! -s conftest.err'
ac1cb8d3
VS
31801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31802 (eval $ac_try) 2>&5
31803 ac_status=$?
31804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31805 (exit $ac_status); }; } &&
31806 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31808 (eval $ac_try) 2>&5
31809 ac_status=$?
31810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31811 (exit $ac_status); }; }; then
31812 ac_cv_lib_iodbc_SQLAllocEnv=yes
31813else
31814 echo "$as_me: failed program was:" >&5
31815sed 's/^/| /' conftest.$ac_ext >&5
31816
31817ac_cv_lib_iodbc_SQLAllocEnv=no
31818fi
ac1cb8d3
VS
31819rm -f conftest.err conftest.$ac_objext \
31820 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31821LIBS=$ac_check_lib_save_LIBS
31822fi
31823echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
31824echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
31825if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
31826 ODBC_LINK=" -liodbc"
31827else
31828
31829 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
31830echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
31831if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
31832 echo $ECHO_N "(cached) $ECHO_C" >&6
31833else
31834 ac_check_lib_save_LIBS=$LIBS
31835LIBS="-lunixodbc $LIBS"
31836cat >conftest.$ac_ext <<_ACEOF
31837/* confdefs.h. */
31838_ACEOF
31839cat confdefs.h >>conftest.$ac_ext
31840cat >>conftest.$ac_ext <<_ACEOF
31841/* end confdefs.h. */
31842
31843/* Override any gcc2 internal prototype to avoid an error. */
31844#ifdef __cplusplus
31845extern "C"
31846#endif
31847/* We use char because int might match the return type of a gcc2
31848 builtin and then its argument prototype would still apply. */
31849char SQLAllocEnv ();
31850int
31851main ()
31852{
31853SQLAllocEnv ();
31854 ;
31855 return 0;
31856}
31857_ACEOF
31858rm -f conftest.$ac_objext conftest$ac_exeext
31859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31860 (eval $ac_link) 2>conftest.er1
a848cd7e 31861 ac_status=$?
ac1cb8d3
VS
31862 grep -v '^ *+' conftest.er1 >conftest.err
31863 rm -f conftest.er1
31864 cat conftest.err >&5
a848cd7e
SC
31865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31866 (exit $ac_status); } &&
3f60522a
JS
31867 { ac_try='test -z "$ac_cxx_werror_flag"
31868 || test ! -s conftest.err'
ac1cb8d3
VS
31869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31870 (eval $ac_try) 2>&5
31871 ac_status=$?
31872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31873 (exit $ac_status); }; } &&
31874 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31876 (eval $ac_try) 2>&5
31877 ac_status=$?
31878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31879 (exit $ac_status); }; }; then
31880 ac_cv_lib_unixodbc_SQLAllocEnv=yes
31881else
31882 echo "$as_me: failed program was:" >&5
31883sed 's/^/| /' conftest.$ac_ext >&5
31884
31885ac_cv_lib_unixodbc_SQLAllocEnv=no
31886fi
ac1cb8d3
VS
31887rm -f conftest.err conftest.$ac_objext \
31888 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31889LIBS=$ac_check_lib_save_LIBS
31890fi
31891echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
31892echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
31893if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
31894 ODBC_LINK=" -lunixodbc"
31895else
31896
31897 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
31898echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
31899if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
31900 echo $ECHO_N "(cached) $ECHO_C" >&6
31901else
31902 ac_check_lib_save_LIBS=$LIBS
31903LIBS="-lodbc $LIBS"
31904cat >conftest.$ac_ext <<_ACEOF
31905/* confdefs.h. */
31906_ACEOF
31907cat confdefs.h >>conftest.$ac_ext
31908cat >>conftest.$ac_ext <<_ACEOF
31909/* end confdefs.h. */
31910
31911/* Override any gcc2 internal prototype to avoid an error. */
31912#ifdef __cplusplus
31913extern "C"
31914#endif
31915/* We use char because int might match the return type of a gcc2
31916 builtin and then its argument prototype would still apply. */
31917char SQLAllocEnv ();
31918int
31919main ()
31920{
31921SQLAllocEnv ();
31922 ;
31923 return 0;
31924}
31925_ACEOF
31926rm -f conftest.$ac_objext conftest$ac_exeext
31927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31928 (eval $ac_link) 2>conftest.er1
a848cd7e 31929 ac_status=$?
ac1cb8d3
VS
31930 grep -v '^ *+' conftest.er1 >conftest.err
31931 rm -f conftest.er1
31932 cat conftest.err >&5
a848cd7e
SC
31933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31934 (exit $ac_status); } &&
3f60522a
JS
31935 { ac_try='test -z "$ac_cxx_werror_flag"
31936 || test ! -s conftest.err'
ac1cb8d3
VS
31937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31938 (eval $ac_try) 2>&5
31939 ac_status=$?
31940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941 (exit $ac_status); }; } &&
31942 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31944 (eval $ac_try) 2>&5
31945 ac_status=$?
31946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31947 (exit $ac_status); }; }; then
31948 ac_cv_lib_odbc_SQLAllocEnv=yes
31949else
31950 echo "$as_me: failed program was:" >&5
31951sed 's/^/| /' conftest.$ac_ext >&5
31952
31953ac_cv_lib_odbc_SQLAllocEnv=no
31954fi
ac1cb8d3
VS
31955rm -f conftest.err conftest.$ac_objext \
31956 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31957LIBS=$ac_check_lib_save_LIBS
31958fi
31959echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
31960echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
31961if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
31962 ODBC_LINK=" -lodbc"
31963fi
31964
31965
31966fi
31967
31968
31969fi
31970
31971 fi
31972 if test "x$ODBC_LINK" = "x" ; then
31973 if test "$wxUSE_ODBC" = "sys" ; then
31974 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
31975echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
31976 { (exit 1); exit 1; }; }
31977 else
31978 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
31979echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
31980 wxUSE_ODBC=builtin
31981 fi
31982 else
31983 wxUSE_ODBC=sys
31984 fi
31985 fi
a848cd7e 31986
2da0c077
RD
31987 if test "$wxUSE_ODBC" = "builtin" ; then
31988 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
31989#define wxUSE_BUILTIN_IODBC 1
31990_ACEOF
31991
a848cd7e
SC
31992 fi
31993fi
31994
2da0c077
RD
31995if test "$wxUSE_ODBC" != "no" ; then
31996 cat >>confdefs.h <<\_ACEOF
31997#define wxUSE_ODBC 1
31998_ACEOF
31999
32000 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
32001
5ff751d6 32002 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 32003fi
a848cd7e 32004
01cb68df 32005
a848cd7e 32006if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 32007 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
32008 echo "$as_me:$LINENO: checking for Xinerama" >&5
32009echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
32010
0ad5d837
VZ
32011 ac_find_libraries=
32012 for ac_dir in $SEARCH_LIB;
32013 do
32014 for ac_extension in a so sl dylib dll.a; do
32015 if test -f "$ac_dir/libXinerama.$ac_extension"; then
32016 ac_find_libraries=$ac_dir
32017 break 2
32018 fi
32019 done
32020 done
32021
a848cd7e
SC
32022 if test "$ac_find_libraries" != "" ; then
32023
0ad5d837 32024 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32025 ac_path_to_link=""
32026 else
0ad5d837
VZ
32027 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32028 result=$?
32029 if test $result = 0; then
32030 ac_path_to_link=""
32031 else
32032 ac_path_to_link=" -L$ac_find_libraries"
32033 fi
a848cd7e
SC
32034 fi
32035
32036 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32037 LDFLAGS="$LDFLAGS $ac_path_to_link"
32038 fi
32039 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32040 echo "$as_me:$LINENO: result: yes" >&5
32041echo "${ECHO_T}yes" >&6
32042
32043 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32044echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
32045
0ad5d837
VZ
32046 ac_find_libraries=
32047 for ac_dir in $SEARCH_LIB;
a848cd7e 32048 do
3eca31dc 32049 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32050 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32051 ac_find_libraries=$ac_dir
32052 break 2
32053 fi
32054 done
32055 done
32056
32057 if test "$ac_find_libraries" != "" ; then
32058 echo "$as_me:$LINENO: result: yes" >&5
32059echo "${ECHO_T}yes" >&6
32060
32061for ac_header in X11/extensions/xf86vmode.h
32062do
32063as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32064echo "$as_me:$LINENO: checking for $ac_header" >&5
32065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32066if eval "test \"\${$as_ac_Header+set}\" = set"; then
32067 echo $ECHO_N "(cached) $ECHO_C" >&6
32068else
32069 cat >conftest.$ac_ext <<_ACEOF
32070/* confdefs.h. */
32071_ACEOF
32072cat confdefs.h >>conftest.$ac_ext
32073cat >>conftest.$ac_ext <<_ACEOF
32074/* end confdefs.h. */
32075
32076 #if HAVE_X11_XLIB_H
32077 #include <X11/Xlib.h>
32078 #endif
32079
32080
32081#include <$ac_header>
32082_ACEOF
32083rm -f conftest.$ac_objext
32084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32085 (eval $ac_compile) 2>conftest.er1
a848cd7e 32086 ac_status=$?
ac1cb8d3
VS
32087 grep -v '^ *+' conftest.er1 >conftest.err
32088 rm -f conftest.er1
32089 cat conftest.err >&5
a848cd7e
SC
32090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32091 (exit $ac_status); } &&
3f60522a
JS
32092 { ac_try='test -z "$ac_cxx_werror_flag"
32093 || test ! -s conftest.err'
ac1cb8d3
VS
32094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32095 (eval $ac_try) 2>&5
32096 ac_status=$?
32097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32098 (exit $ac_status); }; } &&
32099 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32101 (eval $ac_try) 2>&5
32102 ac_status=$?
32103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32104 (exit $ac_status); }; }; then
32105 eval "$as_ac_Header=yes"
32106else
32107 echo "$as_me: failed program was:" >&5
32108sed 's/^/| /' conftest.$ac_ext >&5
32109
32110eval "$as_ac_Header=no"
32111fi
ac1cb8d3 32112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32113fi
32114echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32115echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32116if test `eval echo '${'$as_ac_Header'}'` = yes; then
32117 cat >>confdefs.h <<_ACEOF
32118#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32119_ACEOF
32120
32121 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32122
32123fi
32124
32125done
32126
32127 else
32128 echo "$as_me:$LINENO: result: no" >&5
32129echo "${ECHO_T}no" >&6
32130 fi
32131
32132 else
32133 echo "$as_me:$LINENO: result: no" >&5
32134echo "${ECHO_T}no" >&6
dcc1b6ad
VS
32135 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32136echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
32137 wxUSE_DISPLAY="no"
32138 fi
01cb68df
RG
32139 elif test "$wxUSE_MSW" = 1; then
32140
e5efa97e 32141for ac_header in ddraw.h
01cb68df
RG
32142do
32143as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 32144echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
32145echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32146if eval "test \"\${$as_ac_Header+set}\" = set"; then
32147 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 32148else
5294a27e 32149 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
32150/* confdefs.h. */
32151_ACEOF
32152cat confdefs.h >>conftest.$ac_ext
32153cat >>conftest.$ac_ext <<_ACEOF
32154/* end confdefs.h. */
5294a27e
VZ
32155#include <windows.h>
32156
01cb68df
RG
32157#include <$ac_header>
32158_ACEOF
32159rm -f conftest.$ac_objext
32160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32161 (eval $ac_compile) 2>conftest.er1
01cb68df 32162 ac_status=$?
ac1cb8d3
VS
32163 grep -v '^ *+' conftest.er1 >conftest.err
32164 rm -f conftest.er1
32165 cat conftest.err >&5
01cb68df
RG
32166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32167 (exit $ac_status); } &&
3f60522a
JS
32168 { ac_try='test -z "$ac_cxx_werror_flag"
32169 || test ! -s conftest.err'
ac1cb8d3
VS
32170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32171 (eval $ac_try) 2>&5
32172 ac_status=$?
32173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32174 (exit $ac_status); }; } &&
32175 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
32176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32177 (eval $ac_try) 2>&5
32178 ac_status=$?
32179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32180 (exit $ac_status); }; }; then
5294a27e 32181 eval "$as_ac_Header=yes"
01cb68df
RG
32182else
32183 echo "$as_me: failed program was:" >&5
32184sed 's/^/| /' conftest.$ac_ext >&5
32185
5294a27e 32186eval "$as_ac_Header=no"
01cb68df 32187fi
ac1cb8d3 32188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
32189fi
32190echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32191echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
32192if test `eval echo '${'$as_ac_Header'}'` = yes; then
32193 cat >>confdefs.h <<_ACEOF
32194#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32195_ACEOF
32196
01cb68df
RG
32197fi
32198
32199done
32200
a848cd7e
SC
32201 fi
32202fi
32203
32204
32205USE_OPENGL=0
32206if test "$wxUSE_OPENGL" = "yes"; then
32207 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
32208 OPENGL_LIBS="-framework OpenGL -framework AGL"
32209 elif test "$wxUSE_MSW" = 1; then
32210 OPENGL_LIBS="-lopengl32 -lglu32"
32211 else
32212
32213
32214ac_find_includes=
32215for ac_dir in $SEARCH_INCLUDE /usr/include;
32216 do
32217 if test -f "$ac_dir/GL/gl.h"; then
32218 ac_find_includes=$ac_dir
32219 break
32220 fi
32221 done
32222
32223 if test "$ac_find_includes" != "" ; then
32224 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32225echo "${ECHO_T}found in $ac_find_includes" >&6
32226
32227 if test "x$ac_find_includes" = "x/usr/include"; then
32228 ac_path_to_include=""
32229 else
32230 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
32231 result=$?
32232 if test $result = 0; then
32233 ac_path_to_include=""
32234 else
32235 ac_path_to_include=" -I$ac_find_includes"
32236 fi
32237 fi
32238
c92ad099 32239 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
32240 fi
32241
32242 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32243 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32244echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32245if test "${ac_cv_header_GL_gl_h+set}" = set; then
32246 echo $ECHO_N "(cached) $ECHO_C" >&6
32247fi
32248echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32249echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32250else
32251 # Is the header compilable?
32252echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
32253echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
32254cat >conftest.$ac_ext <<_ACEOF
32255/* confdefs.h. */
32256_ACEOF
32257cat confdefs.h >>conftest.$ac_ext
32258cat >>conftest.$ac_ext <<_ACEOF
32259/* end confdefs.h. */
32260$ac_includes_default
32261#include <GL/gl.h>
32262_ACEOF
32263rm -f conftest.$ac_objext
32264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32265 (eval $ac_compile) 2>conftest.er1
a848cd7e 32266 ac_status=$?
ac1cb8d3
VS
32267 grep -v '^ *+' conftest.er1 >conftest.err
32268 rm -f conftest.er1
32269 cat conftest.err >&5
a848cd7e
SC
32270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32271 (exit $ac_status); } &&
3f60522a
JS
32272 { ac_try='test -z "$ac_cxx_werror_flag"
32273 || test ! -s conftest.err'
ac1cb8d3
VS
32274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32275 (eval $ac_try) 2>&5
32276 ac_status=$?
32277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32278 (exit $ac_status); }; } &&
32279 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32281 (eval $ac_try) 2>&5
32282 ac_status=$?
32283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32284 (exit $ac_status); }; }; then
32285 ac_header_compiler=yes
32286else
32287 echo "$as_me: failed program was:" >&5
32288sed 's/^/| /' conftest.$ac_ext >&5
32289
32290ac_header_compiler=no
32291fi
ac1cb8d3 32292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32293echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32294echo "${ECHO_T}$ac_header_compiler" >&6
32295
32296# Is the header present?
32297echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
32298echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
32299cat >conftest.$ac_ext <<_ACEOF
32300/* confdefs.h. */
32301_ACEOF
32302cat confdefs.h >>conftest.$ac_ext
32303cat >>conftest.$ac_ext <<_ACEOF
32304/* end confdefs.h. */
32305#include <GL/gl.h>
32306_ACEOF
32307if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32309 ac_status=$?
32310 grep -v '^ *+' conftest.er1 >conftest.err
32311 rm -f conftest.er1
32312 cat conftest.err >&5
32313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32314 (exit $ac_status); } >/dev/null; then
32315 if test -s conftest.err; then
5d7b7554
VZ
32316 ac_cpp_err=$ac_cxx_preproc_warn_flag
32317 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
32318 else
32319 ac_cpp_err=
32320 fi
32321else
32322 ac_cpp_err=yes
32323fi
32324if test -z "$ac_cpp_err"; then
32325 ac_header_preproc=yes
32326else
32327 echo "$as_me: failed program was:" >&5
32328sed 's/^/| /' conftest.$ac_ext >&5
32329
32330 ac_header_preproc=no
32331fi
32332rm -f conftest.err conftest.$ac_ext
32333echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32334echo "${ECHO_T}$ac_header_preproc" >&6
32335
32336# So? What about this header?
5d7b7554 32337case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 32338 yes:no: )
a848cd7e
SC
32339 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
32340echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32341 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
32342echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
32343 ac_header_preproc=yes
a848cd7e 32344 ;;
ac1cb8d3 32345 no:yes:* )
a848cd7e
SC
32346 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
32347echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32348 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
32349echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
32350 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
32351echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
32352 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
32353echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32354 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
32355echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32356 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
32357echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32358 (
32359 cat <<\_ASBOX
ac1cb8d3
VS
32360## ----------------------------------------- ##
32361## Report this to wx-dev@lists.wxwidgets.org ##
32362## ----------------------------------------- ##
a848cd7e
SC
32363_ASBOX
32364 ) |
32365 sed "s/^/$as_me: WARNING: /" >&2
32366 ;;
32367esac
32368echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32369echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32370if test "${ac_cv_header_GL_gl_h+set}" = set; then
32371 echo $ECHO_N "(cached) $ECHO_C" >&6
32372else
32373 ac_cv_header_GL_gl_h=$ac_header_preproc
32374fi
32375echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32376echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32377
32378fi
32379if test $ac_cv_header_GL_gl_h = yes; then
32380
32381 found_gl=0
32382
32383 echo "$as_me:$LINENO: checking for -lGL" >&5
32384echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
32385
0ad5d837
VZ
32386 ac_find_libraries=
32387 for ac_dir in $SEARCH_LIB;
a848cd7e 32388 do
3eca31dc 32389 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32390 if test -f "$ac_dir/libGL.$ac_extension"; then
32391 ac_find_libraries=$ac_dir
32392 break 2
32393 fi
32394 done
32395 done
32396
32397 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
32398 echo "$as_me:$LINENO: result: yes" >&5
32399echo "${ECHO_T}yes" >&6
32400
a848cd7e 32401
0ad5d837 32402 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32403 ac_path_to_link=""
32404 else
0ad5d837
VZ
32405 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32406 result=$?
32407 if test $result = 0; then
32408 ac_path_to_link=""
32409 else
32410 ac_path_to_link=" -L$ac_find_libraries"
32411 fi
a848cd7e
SC
32412 fi
32413
32414 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32415 LDFLAGS_GL="$ac_path_to_link"
32416 fi
32417
69120ee4
VZ
32418 echo "$as_me:$LINENO: checking for -lGLU" >&5
32419echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 32420
0ad5d837
VZ
32421 ac_find_libraries=
32422 for ac_dir in $SEARCH_LIB;
32423 do
32424 for ac_extension in a so sl dylib dll.a; do
32425 if test -f "$ac_dir/libGLU.$ac_extension"; then
32426 ac_find_libraries=$ac_dir
32427 break 2
32428 fi
32429 done
32430 done
32431
a848cd7e
SC
32432 if test "$ac_find_libraries" != "" ; then
32433
0ad5d837 32434 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32435 ac_path_to_link=""
32436 else
0ad5d837
VZ
32437 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32438 result=$?
32439 if test $result = 0; then
32440 ac_path_to_link=""
32441 else
32442 ac_path_to_link=" -L$ac_find_libraries"
32443 fi
a848cd7e
SC
32444 fi
32445
32446 if test "$ac_path_to_link" != " -L/usr/lib" -a \
32447 "$ac_path_to_link" != "$LDFLAGS_GL"; then
32448 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
32449 fi
32450
32451 found_gl=1
32452 OPENGL_LIBS="-lGL -lGLU"
32453 echo "$as_me:$LINENO: result: yes" >&5
32454echo "${ECHO_T}yes" >&6
69120ee4
VZ
32455 else
32456 echo "$as_me:$LINENO: result: no" >&5
32457echo "${ECHO_T}no" >&6
a848cd7e 32458 fi
69120ee4
VZ
32459 else
32460 echo "$as_me:$LINENO: result: no" >&5
32461echo "${ECHO_T}no" >&6
a848cd7e
SC
32462 fi
32463
32464 if test "$found_gl" != 1; then
a848cd7e
SC
32465 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
32466echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
32467
0ad5d837
VZ
32468 ac_find_libraries=
32469 for ac_dir in $SEARCH_LIB;
a848cd7e 32470 do
3eca31dc 32471 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32472 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
32473 ac_find_libraries=$ac_dir
32474 break 2
32475 fi
32476 done
32477 done
32478
32479 if test "$ac_find_libraries" != "" ; then
32480
0ad5d837 32481 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32482 ac_path_to_link=""
32483 else
0ad5d837
VZ
32484 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32485 result=$?
32486 if test $result = 0; then
32487 ac_path_to_link=""
32488 else
32489 ac_path_to_link=" -L$ac_find_libraries"
32490 fi
a848cd7e
SC
32491 fi
32492
32493 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
32494 OPENGL_LIBS="-lMesaGL -lMesaGLU"
32495 echo "$as_me:$LINENO: result: yes" >&5
32496echo "${ECHO_T}yes" >&6
32497 else
32498 echo "$as_me:$LINENO: result: no" >&5
32499echo "${ECHO_T}no" >&6
32500 fi
32501 fi
32502
32503fi
32504
32505
32506
32507 if test "x$OPENGL_LIBS" = "x"; then
32508 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
32509echo "$as_me: error: OpenGL libraries not available" >&2;}
32510 { (exit 1); exit 1; }; }
32511 fi
32512 fi
32513
32514 if test "$wxUSE_OPENGL" = "yes"; then
32515 USE_OPENGL=1
32516 cat >>confdefs.h <<\_ACEOF
32517#define wxUSE_OPENGL 1
32518_ACEOF
32519
32520 cat >>confdefs.h <<\_ACEOF
32521#define wxUSE_GLCANVAS 1
32522_ACEOF
32523
32524 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
32525 fi
32526fi
32527
a848cd7e
SC
32528
32529if test -n "$TOOLKIT" ; then
32530 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
32531fi
32532
a848cd7e
SC
32533
32534
32535if test "$wxUSE_SHARED" = "yes"; then
32536 case "${host}" in
32537 *-pc-msdosdjgpp )
32538 wxUSE_SHARED=no
32539 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
32540echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
32541 ;;
32542 esac
32543fi
32544
a848cd7e 32545if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
32546
32547
32548 found_versioning=no
32549
32550
32551 if test $found_versioning = no ; then
32552 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
32553echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
32554if test "${wx_cv_version_script+set}" = set; then
32555 echo $ECHO_N "(cached) $ECHO_C" >&6
32556else
32557
32558 echo "VER_1 { *; };" >conftest.sym
32559 echo "int main() { return 0; }" >conftest.cpp
32560
32561 if { ac_try='
32562 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32563 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
32564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32565 (eval $ac_try) 2>&5
32566 ac_status=$?
32567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32568 (exit $ac_status); }; } ; then
32569 if test -s conftest.stderr ; then
32570 wx_cv_version_script=no
32571 else
32572 wx_cv_version_script=yes
32573 fi
32574 else
32575 wx_cv_version_script=no
32576 fi
e5d4b470
MW
32577
32578 if test $wx_cv_version_script = yes
32579 then
32580 echo "struct B { virtual ~B() { } }; \
32581 struct D : public B { }; \
32582 void F() { D d; }" > conftest.cpp
32583
32584 if { ac_try='
32585 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32586 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
32587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32588 (eval $ac_try) 2>&5
32589 ac_status=$?
32590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32591 (exit $ac_status); }; } &&
32592 { ac_try='
32593 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32594 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
32595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32596 (eval $ac_try) 2>&5
32597 ac_status=$?
32598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32599 (exit $ac_status); }; }
32600 then
32601 if { ac_try='
32602 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32603 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
32604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32605 (eval $ac_try) 2>&5
32606 ac_status=$?
32607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32608 (exit $ac_status); }; }
32609 then
32610 wx_cv_version_script=yes
32611 else
32612 wx_cv_version_script=no
32613 fi
32614 fi
32615 fi
32616
a848cd7e 32617 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 32618 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
32619
32620fi
32621echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
32622echo "${ECHO_T}$wx_cv_version_script" >&6
32623 if test $wx_cv_version_script = yes ; then
32624 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
32625 fi
32626 fi
32627
32628
32629 case "${host}" in
32630 *-*-linux* | *-*-gnu* )
32631 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 32632 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 32633 ;;
a848cd7e
SC
32634
32635 *-*-solaris2* )
32636 if test "$GCC" = yes ; then
c92ad099 32637 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
32638
32639 saveLdflags="$LDFLAGS"
32640 LDFLAGS="$saveLdflags -Wl,-rpath,/"
32641 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
32642echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
32643 cat >conftest.$ac_ext <<_ACEOF
32644/* confdefs.h. */
32645_ACEOF
32646cat confdefs.h >>conftest.$ac_ext
32647cat >>conftest.$ac_ext <<_ACEOF
32648/* end confdefs.h. */
32649
32650int
32651main ()
32652{
32653
32654 ;
32655 return 0;
32656}
32657_ACEOF
32658rm -f conftest.$ac_objext conftest$ac_exeext
32659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32660 (eval $ac_link) 2>conftest.er1
a848cd7e 32661 ac_status=$?
ac1cb8d3
VS
32662 grep -v '^ *+' conftest.er1 >conftest.err
32663 rm -f conftest.er1
32664 cat conftest.err >&5
a848cd7e
SC
32665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32666 (exit $ac_status); } &&
3f60522a
JS
32667 { ac_try='test -z "$ac_cxx_werror_flag"
32668 || test ! -s conftest.err'
ac1cb8d3
VS
32669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32670 (eval $ac_try) 2>&5
32671 ac_status=$?
32672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32673 (exit $ac_status); }; } &&
32674 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32676 (eval $ac_try) 2>&5
32677 ac_status=$?
32678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32679 (exit $ac_status); }; }; then
32680
32681 echo "$as_me:$LINENO: result: yes" >&5
32682echo "${ECHO_T}yes" >&6
32683 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 32684 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
32685
32686else
32687 echo "$as_me: failed program was:" >&5
32688sed 's/^/| /' conftest.$ac_ext >&5
32689
32690
32691 echo "$as_me:$LINENO: result: no" >&5
32692echo "${ECHO_T}no" >&6
32693 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
32694echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
32695 LDFLAGS="$saveLdflags -Wl,-R,/"
32696 cat >conftest.$ac_ext <<_ACEOF
32697/* confdefs.h. */
32698_ACEOF
32699cat confdefs.h >>conftest.$ac_ext
32700cat >>conftest.$ac_ext <<_ACEOF
32701/* end confdefs.h. */
32702
32703int
32704main ()
32705{
32706
32707 ;
32708 return 0;
32709}
32710_ACEOF
32711rm -f conftest.$ac_objext conftest$ac_exeext
32712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32713 (eval $ac_link) 2>conftest.er1
a848cd7e 32714 ac_status=$?
ac1cb8d3
VS
32715 grep -v '^ *+' conftest.er1 >conftest.err
32716 rm -f conftest.er1
32717 cat conftest.err >&5
a848cd7e
SC
32718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32719 (exit $ac_status); } &&
3f60522a
JS
32720 { ac_try='test -z "$ac_cxx_werror_flag"
32721 || test ! -s conftest.err'
ac1cb8d3
VS
32722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32723 (eval $ac_try) 2>&5
32724 ac_status=$?
32725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32726 (exit $ac_status); }; } &&
32727 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32729 (eval $ac_try) 2>&5
32730 ac_status=$?
32731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32732 (exit $ac_status); }; }; then
32733
ffa0583f 32734 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 32735echo "${ECHO_T}yes" >&6
ffa0583f
RL
32736 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
32737 WXCONFIG_RPATH="-Wl,-R,\$libdir"
32738
a848cd7e
SC
32739else
32740 echo "$as_me: failed program was:" >&5
32741sed 's/^/| /' conftest.$ac_ext >&5
32742
32743
32744 echo "$as_me:$LINENO: result: no" >&5
32745echo "${ECHO_T}no" >&6
32746
32747fi
ac1cb8d3
VS
32748rm -f conftest.err conftest.$ac_objext \
32749 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32750
32751fi
ac1cb8d3
VS
32752rm -f conftest.err conftest.$ac_objext \
32753 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32754 LDFLAGS="$saveLdflags"
32755 else
a848cd7e 32756 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 32757 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
32758 fi
32759 ;;
32760
cfda0ea8 32761 *-*-darwin* )
0caebc27
MW
32762 install_name_tool=`which install_name_tool`
32763 if test "$install_name_tool" -a -x "$install_name_tool"; then
32764 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
32765 cat <<EOF >change-install-names
a848cd7e
SC
32766#!/bin/sh
32767libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
32768inst_cmd="install_name_tool "
32769for i in \${libnames} ; do
32770 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
32771done
32772\${inst_cmd} \${3}
32773EOF
0caebc27
MW
32774 chmod +x change-install-names
32775 fi
a848cd7e
SC
32776 ;;
32777
32778 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
32779 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
32780 ;;
a848cd7e 32781
81f90336
MW
32782 *-*-hpux* )
32783 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
32784 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 32785 ;;
81f90336 32786
a848cd7e 32787 esac
ceec2216 32788
ffa0583f
RL
32789 if test $wxUSE_RPATH = "no"; then
32790 SAMPLES_RPATH_FLAG=''
32791 SAMPLES_RPATH_POSTLINK=''
32792 WXCONFIG_RPATH=''
32793 fi
32794
32795 SHARED=1
32796
32797else
32798
ceec2216
RL
32799 config_linkage_component="-static"
32800 SHARED=0
ffa0583f 32801
ceec2216 32802fi
a848cd7e 32803
a848cd7e 32804
ceec2216
RL
32805UNICODE=0
32806lib_unicode_suffix=
32807WX_CHARTYPE="ansi"
32808if test "$wxUSE_UNICODE" = "yes"; then
32809 lib_unicode_suffix=u
32810 WX_CHARTYPE="unicode"
32811 UNICODE=1
a848cd7e
SC
32812fi
32813
ceec2216
RL
32814lib_debug_suffix=
32815WX_DEBUGTYPE="release"
32816DEBUG_FLAG=0
32817if test "$wxUSE_DEBUG_FLAG" = "yes"; then
32818 lib_debug_suffix=d
32819 WX_DEBUGTYPE="debug"
32820 DEBUG_FLAG=1
32821fi
a848cd7e 32822
ceec2216
RL
32823WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
32824WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 32825
ceec2216
RL
32826DEBUG_INFO=0
32827if test "$wxUSE_DEBUG_INFO" = "yes"; then
32828 DEBUG_INFO=1
32829fi
a848cd7e 32830
ceec2216 32831WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 32832
ceec2216 32833TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 32834
ceec2216 32835TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 32836
ceec2216
RL
32837if test "$cross_compiling" = "yes"; then
32838 HOST_SUFFIX="-$host_alias"
32839 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
32840 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
32841fi
32842
dd21ced8 32843WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
32844if test "${TOOLKIT_DIR}" = "os2"; then
32845 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32846else
32847 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32848fi
ceec2216
RL
32849
32850
32851
1d1af5ea
DE
32852if test "$wxUSE_COCOA" = 1; then
32853
32854
32855 ac_ext=c
32856ac_cpp='$CPP $CPPFLAGS'
32857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32859ac_compiler_gnu=$ac_cv_c_compiler_gnu
32860
32861ac_ext=m
32862
32863 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
32864echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
32865 cat >conftest.$ac_ext <<_ACEOF
32866/* confdefs.h. */
32867_ACEOF
32868cat confdefs.h >>conftest.$ac_ext
32869cat >>conftest.$ac_ext <<_ACEOF
32870/* end confdefs.h. */
32871#include <AppKit/NSEvent.h>
32872#include <CoreFoundation/CoreFoundation.h>
32873
32874int
32875main ()
32876{
32877
32878 ;
32879 return 0;
32880}
32881_ACEOF
32882rm -f conftest.$ac_objext
32883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32884 (eval $ac_compile) 2>conftest.er1
32885 ac_status=$?
32886 grep -v '^ *+' conftest.er1 >conftest.err
32887 rm -f conftest.er1
32888 cat conftest.err >&5
32889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32890 (exit $ac_status); } &&
3f60522a
JS
32891 { ac_try='test -z "$ac_c_werror_flag"
32892 || test ! -s conftest.err'
1d1af5ea
DE
32893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32894 (eval $ac_try) 2>&5
32895 ac_status=$?
32896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32897 (exit $ac_status); }; } &&
32898 { ac_try='test -s conftest.$ac_objext'
32899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32900 (eval $ac_try) 2>&5
32901 ac_status=$?
32902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32903 (exit $ac_status); }; }; then
32904 echo "$as_me:$LINENO: result: no" >&5
32905echo "${ECHO_T}no" >&6
32906else
32907 echo "$as_me: failed program was:" >&5
32908sed 's/^/| /' conftest.$ac_ext >&5
32909
32910echo "$as_me:$LINENO: result: yes" >&5
32911echo "${ECHO_T}yes" >&6
32912 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
32913echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
32914 cat >conftest.$ac_ext <<_ACEOF
32915/* confdefs.h. */
32916_ACEOF
32917cat confdefs.h >>conftest.$ac_ext
32918cat >>conftest.$ac_ext <<_ACEOF
32919/* end confdefs.h. */
32920#define __Point__ 1
32921#include <AppKit/NSEvent.h>
32922#include <CoreFoundation/CoreFoundation.h>
32923
32924int
32925main ()
32926{
32927
32928 ;
32929 return 0;
32930}
32931_ACEOF
32932rm -f conftest.$ac_objext
32933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32934 (eval $ac_compile) 2>conftest.er1
32935 ac_status=$?
32936 grep -v '^ *+' conftest.er1 >conftest.err
32937 rm -f conftest.er1
32938 cat conftest.err >&5
32939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32940 (exit $ac_status); } &&
3f60522a
JS
32941 { ac_try='test -z "$ac_c_werror_flag"
32942 || test ! -s conftest.err'
1d1af5ea
DE
32943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32944 (eval $ac_try) 2>&5
32945 ac_status=$?
32946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32947 (exit $ac_status); }; } &&
32948 { ac_try='test -s conftest.$ac_objext'
32949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32950 (eval $ac_try) 2>&5
32951 ac_status=$?
32952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32953 (exit $ac_status); }; }; then
32954 echo "$as_me:$LINENO: result: yes" >&5
32955echo "${ECHO_T}yes" >&6
32956 cat >>confdefs.h <<\_ACEOF
32957#define __Point__ 1
32958_ACEOF
32959
32960
32961else
32962 echo "$as_me: failed program was:" >&5
32963sed 's/^/| /' conftest.$ac_ext >&5
32964
32965{ { echo "$as_me:$LINENO: error: no
32966See \`config.log' for more details." >&5
32967echo "$as_me: error: no
32968See \`config.log' for more details." >&2;}
32969 { (exit 1); exit 1; }; }
32970
32971fi
32972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32973
32974fi
32975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
32976 ac_ext=cc
32977ac_cpp='$CXXCPP $CPPFLAGS'
32978ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32979ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32980ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1d1af5ea
DE
32981
32982fi
32983
a848cd7e 32984if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
32985 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
32986 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 32987
a848cd7e 32988 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
32989
32990 # Extract the first word of "Rez", so it can be a program name with args.
32991set dummy Rez; ac_word=$2
32992echo "$as_me:$LINENO: checking for $ac_word" >&5
32993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 32994if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
32995 echo $ECHO_N "(cached) $ECHO_C" >&6
32996else
8ced02f6
DE
32997 if test -n "$REZ"; then
32998 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
32999else
33000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33001for as_dir in $PATH
33002do
33003 IFS=$as_save_IFS
33004 test -z "$as_dir" && as_dir=.
33005 for ac_exec_ext in '' $ac_executable_extensions; do
33006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 33007 ac_cv_prog_REZ="Rez"
a848cd7e
SC
33008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33009 break 2
33010 fi
33011done
33012done
33013
8ced02f6 33014 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
33015fi
33016fi
8ced02f6
DE
33017REZ=$ac_cv_prog_REZ
33018if test -n "$REZ"; then
33019 echo "$as_me:$LINENO: result: $REZ" >&5
33020echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
33021else
33022 echo "$as_me:$LINENO: result: no" >&5
33023echo "${ECHO_T}no" >&6
33024fi
33025
33026 # Extract the first word of "DeRez", so it can be a program name with args.
33027set dummy DeRez; ac_word=$2
33028echo "$as_me:$LINENO: checking for $ac_word" >&5
33029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33030if test "${ac_cv_prog_DEREZ+set}" = set; then
33031 echo $ECHO_N "(cached) $ECHO_C" >&6
33032else
33033 if test -n "$DEREZ"; then
33034 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
33035else
33036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33037for as_dir in $PATH
33038do
33039 IFS=$as_save_IFS
33040 test -z "$as_dir" && as_dir=.
33041 for ac_exec_ext in '' $ac_executable_extensions; do
33042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33043 ac_cv_prog_DEREZ="DeRez"
33044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33045 break 2
33046 fi
33047done
33048done
33049
33050 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
33051fi
33052fi
33053DEREZ=$ac_cv_prog_DEREZ
33054if test -n "$DEREZ"; then
33055 echo "$as_me:$LINENO: result: $DEREZ" >&5
33056echo "${ECHO_T}$DEREZ" >&6
33057else
33058 echo "$as_me:$LINENO: result: no" >&5
33059echo "${ECHO_T}no" >&6
33060fi
33061
33062 # Extract the first word of "SetFile", so it can be a program name with args.
33063set dummy SetFile; ac_word=$2
33064echo "$as_me:$LINENO: checking for $ac_word" >&5
33065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33066if test "${ac_cv_prog_SETFILE+set}" = set; then
33067 echo $ECHO_N "(cached) $ECHO_C" >&6
33068else
33069 if test -n "$SETFILE"; then
33070 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
33071else
33072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33073for as_dir in $PATH
33074do
33075 IFS=$as_save_IFS
33076 test -z "$as_dir" && as_dir=.
33077 for ac_exec_ext in '' $ac_executable_extensions; do
33078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33079 ac_cv_prog_SETFILE="SetFile"
33080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33081 break 2
33082 fi
33083done
33084done
33085
33086 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
33087fi
33088fi
33089SETFILE=$ac_cv_prog_SETFILE
33090if test -n "$SETFILE"; then
33091 echo "$as_me:$LINENO: result: $SETFILE" >&5
33092echo "${ECHO_T}$SETFILE" >&6
33093else
33094 echo "$as_me:$LINENO: result: no" >&5
33095echo "${ECHO_T}no" >&6
33096fi
33097
33098
33099 MACSETFILE="\$(SETFILE)"
33100
33101 if test "$wxUSE_MAC" = 1; then
8ced02f6 33102 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
33103 RESCOMP="$REZ"
33104 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 33105 else
004ee6da
RL
33106 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
33107 RESCOMP="echo -n \| $REZ"
33108 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 33109 fi
004ee6da 33110
a848cd7e 33111else
ffa0583f 33112 MACSETFILE="@true"
a848cd7e 33113
8ced02f6 33114 if test "$wxUSE_PM" = 1; then
004ee6da
RL
33115 RESCOMP="emxbind"
33116 WXCONFIG_RESFLAGS="-ep"
33117
33118 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 33119 else
8ced02f6 33120 POSTLINK_COMMAND="@true"
a848cd7e 33121 fi
004ee6da 33122
a848cd7e
SC
33123fi
33124
33125
33126
33127echo "$as_me:$LINENO: checking for mode_t" >&5
33128echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33129if test "${ac_cv_type_mode_t+set}" = set; then
33130 echo $ECHO_N "(cached) $ECHO_C" >&6
33131else
33132 cat >conftest.$ac_ext <<_ACEOF
33133/* confdefs.h. */
33134_ACEOF
33135cat confdefs.h >>conftest.$ac_ext
33136cat >>conftest.$ac_ext <<_ACEOF
33137/* end confdefs.h. */
33138$ac_includes_default
33139int
33140main ()
33141{
33142if ((mode_t *) 0)
33143 return 0;
33144if (sizeof (mode_t))
33145 return 0;
33146 ;
33147 return 0;
33148}
33149_ACEOF
33150rm -f conftest.$ac_objext
33151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33152 (eval $ac_compile) 2>conftest.er1
a848cd7e 33153 ac_status=$?
ac1cb8d3
VS
33154 grep -v '^ *+' conftest.er1 >conftest.err
33155 rm -f conftest.er1
33156 cat conftest.err >&5
a848cd7e
SC
33157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33158 (exit $ac_status); } &&
3f60522a
JS
33159 { ac_try='test -z "$ac_cxx_werror_flag"
33160 || test ! -s conftest.err'
ac1cb8d3
VS
33161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33162 (eval $ac_try) 2>&5
33163 ac_status=$?
33164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33165 (exit $ac_status); }; } &&
33166 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33168 (eval $ac_try) 2>&5
33169 ac_status=$?
33170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33171 (exit $ac_status); }; }; then
33172 ac_cv_type_mode_t=yes
33173else
33174 echo "$as_me: failed program was:" >&5
33175sed 's/^/| /' conftest.$ac_ext >&5
33176
33177ac_cv_type_mode_t=no
33178fi
ac1cb8d3 33179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33180fi
33181echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33182echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33183if test $ac_cv_type_mode_t = yes; then
33184 :
33185else
33186
33187cat >>confdefs.h <<_ACEOF
33188#define mode_t int
33189_ACEOF
33190
33191fi
33192
33193echo "$as_me:$LINENO: checking for off_t" >&5
33194echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33195if test "${ac_cv_type_off_t+set}" = set; then
33196 echo $ECHO_N "(cached) $ECHO_C" >&6
33197else
33198 cat >conftest.$ac_ext <<_ACEOF
33199/* confdefs.h. */
33200_ACEOF
33201cat confdefs.h >>conftest.$ac_ext
33202cat >>conftest.$ac_ext <<_ACEOF
33203/* end confdefs.h. */
33204$ac_includes_default
33205int
33206main ()
33207{
33208if ((off_t *) 0)
33209 return 0;
33210if (sizeof (off_t))
33211 return 0;
33212 ;
33213 return 0;
33214}
33215_ACEOF
33216rm -f conftest.$ac_objext
33217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33218 (eval $ac_compile) 2>conftest.er1
a848cd7e 33219 ac_status=$?
ac1cb8d3
VS
33220 grep -v '^ *+' conftest.er1 >conftest.err
33221 rm -f conftest.er1
33222 cat conftest.err >&5
a848cd7e
SC
33223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33224 (exit $ac_status); } &&
3f60522a
JS
33225 { ac_try='test -z "$ac_cxx_werror_flag"
33226 || test ! -s conftest.err'
ac1cb8d3
VS
33227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33228 (eval $ac_try) 2>&5
33229 ac_status=$?
33230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33231 (exit $ac_status); }; } &&
33232 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33234 (eval $ac_try) 2>&5
33235 ac_status=$?
33236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33237 (exit $ac_status); }; }; then
33238 ac_cv_type_off_t=yes
33239else
33240 echo "$as_me: failed program was:" >&5
33241sed 's/^/| /' conftest.$ac_ext >&5
33242
33243ac_cv_type_off_t=no
33244fi
ac1cb8d3 33245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33246fi
33247echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33248echo "${ECHO_T}$ac_cv_type_off_t" >&6
33249if test $ac_cv_type_off_t = yes; then
33250 :
33251else
33252
33253cat >>confdefs.h <<_ACEOF
33254#define off_t long
33255_ACEOF
33256
33257fi
33258
33259echo "$as_me:$LINENO: checking for pid_t" >&5
33260echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33261if test "${ac_cv_type_pid_t+set}" = set; then
33262 echo $ECHO_N "(cached) $ECHO_C" >&6
33263else
33264 cat >conftest.$ac_ext <<_ACEOF
33265/* confdefs.h. */
33266_ACEOF
33267cat confdefs.h >>conftest.$ac_ext
33268cat >>conftest.$ac_ext <<_ACEOF
33269/* end confdefs.h. */
33270$ac_includes_default
33271int
33272main ()
33273{
33274if ((pid_t *) 0)
33275 return 0;
33276if (sizeof (pid_t))
33277 return 0;
33278 ;
33279 return 0;
33280}
33281_ACEOF
33282rm -f conftest.$ac_objext
33283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33284 (eval $ac_compile) 2>conftest.er1
a848cd7e 33285 ac_status=$?
ac1cb8d3
VS
33286 grep -v '^ *+' conftest.er1 >conftest.err
33287 rm -f conftest.er1
33288 cat conftest.err >&5
a848cd7e
SC
33289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33290 (exit $ac_status); } &&
3f60522a
JS
33291 { ac_try='test -z "$ac_cxx_werror_flag"
33292 || test ! -s conftest.err'
ac1cb8d3
VS
33293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33294 (eval $ac_try) 2>&5
33295 ac_status=$?
33296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33297 (exit $ac_status); }; } &&
33298 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33300 (eval $ac_try) 2>&5
33301 ac_status=$?
33302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33303 (exit $ac_status); }; }; then
33304 ac_cv_type_pid_t=yes
33305else
33306 echo "$as_me: failed program was:" >&5
33307sed 's/^/| /' conftest.$ac_ext >&5
33308
33309ac_cv_type_pid_t=no
33310fi
ac1cb8d3 33311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33312fi
33313echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33314echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33315if test $ac_cv_type_pid_t = yes; then
33316 :
33317else
33318
33319cat >>confdefs.h <<_ACEOF
33320#define pid_t int
33321_ACEOF
33322
33323fi
33324
33325echo "$as_me:$LINENO: checking for size_t" >&5
33326echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33327if test "${ac_cv_type_size_t+set}" = set; then
33328 echo $ECHO_N "(cached) $ECHO_C" >&6
33329else
33330 cat >conftest.$ac_ext <<_ACEOF
33331/* confdefs.h. */
33332_ACEOF
33333cat confdefs.h >>conftest.$ac_ext
33334cat >>conftest.$ac_ext <<_ACEOF
33335/* end confdefs.h. */
33336$ac_includes_default
33337int
33338main ()
33339{
33340if ((size_t *) 0)
33341 return 0;
33342if (sizeof (size_t))
33343 return 0;
33344 ;
33345 return 0;
33346}
33347_ACEOF
33348rm -f conftest.$ac_objext
33349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33350 (eval $ac_compile) 2>conftest.er1
a848cd7e 33351 ac_status=$?
ac1cb8d3
VS
33352 grep -v '^ *+' conftest.er1 >conftest.err
33353 rm -f conftest.er1
33354 cat conftest.err >&5
a848cd7e
SC
33355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33356 (exit $ac_status); } &&
3f60522a
JS
33357 { ac_try='test -z "$ac_cxx_werror_flag"
33358 || test ! -s conftest.err'
ac1cb8d3
VS
33359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33360 (eval $ac_try) 2>&5
33361 ac_status=$?
33362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33363 (exit $ac_status); }; } &&
33364 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33366 (eval $ac_try) 2>&5
33367 ac_status=$?
33368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33369 (exit $ac_status); }; }; then
33370 ac_cv_type_size_t=yes
33371else
33372 echo "$as_me: failed program was:" >&5
33373sed 's/^/| /' conftest.$ac_ext >&5
33374
33375ac_cv_type_size_t=no
33376fi
ac1cb8d3 33377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33378fi
33379echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33380echo "${ECHO_T}$ac_cv_type_size_t" >&6
33381if test $ac_cv_type_size_t = yes; then
33382 :
33383else
33384
33385cat >>confdefs.h <<_ACEOF
33386#define size_t unsigned
33387_ACEOF
33388
33389fi
33390
33391echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33392echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
33393if test "${ac_cv_type_uid_t+set}" = set; then
33394 echo $ECHO_N "(cached) $ECHO_C" >&6
33395else
33396 cat >conftest.$ac_ext <<_ACEOF
33397/* confdefs.h. */
33398_ACEOF
33399cat confdefs.h >>conftest.$ac_ext
33400cat >>conftest.$ac_ext <<_ACEOF
33401/* end confdefs.h. */
33402#include <sys/types.h>
33403
33404_ACEOF
33405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33406 $EGREP "uid_t" >/dev/null 2>&1; then
33407 ac_cv_type_uid_t=yes
33408else
33409 ac_cv_type_uid_t=no
33410fi
33411rm -f conftest*
33412
33413fi
33414echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33415echo "${ECHO_T}$ac_cv_type_uid_t" >&6
33416if test $ac_cv_type_uid_t = no; then
33417
33418cat >>confdefs.h <<\_ACEOF
33419#define uid_t int
33420_ACEOF
33421
33422
33423cat >>confdefs.h <<\_ACEOF
33424#define gid_t int
33425_ACEOF
33426
33427fi
33428
33429
d51253e8
RL
33430echo "$as_me:$LINENO: checking for ssize_t" >&5
33431echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33432if test "${ac_cv_type_ssize_t+set}" = set; then
33433 echo $ECHO_N "(cached) $ECHO_C" >&6
33434else
33435 cat >conftest.$ac_ext <<_ACEOF
33436/* confdefs.h. */
33437_ACEOF
33438cat confdefs.h >>conftest.$ac_ext
33439cat >>conftest.$ac_ext <<_ACEOF
33440/* end confdefs.h. */
33441$ac_includes_default
33442int
33443main ()
33444{
33445if ((ssize_t *) 0)
33446 return 0;
33447if (sizeof (ssize_t))
33448 return 0;
33449 ;
33450 return 0;
33451}
33452_ACEOF
33453rm -f conftest.$ac_objext
33454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33455 (eval $ac_compile) 2>conftest.er1
33456 ac_status=$?
33457 grep -v '^ *+' conftest.er1 >conftest.err
33458 rm -f conftest.er1
33459 cat conftest.err >&5
33460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33461 (exit $ac_status); } &&
3f60522a
JS
33462 { ac_try='test -z "$ac_cxx_werror_flag"
33463 || test ! -s conftest.err'
d51253e8
RL
33464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33465 (eval $ac_try) 2>&5
33466 ac_status=$?
33467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33468 (exit $ac_status); }; } &&
33469 { ac_try='test -s conftest.$ac_objext'
33470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33471 (eval $ac_try) 2>&5
33472 ac_status=$?
33473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474 (exit $ac_status); }; }; then
33475 ac_cv_type_ssize_t=yes
33476else
33477 echo "$as_me: failed program was:" >&5
33478sed 's/^/| /' conftest.$ac_ext >&5
33479
33480ac_cv_type_ssize_t=no
33481fi
33482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33483fi
33484echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33485echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
33486if test $ac_cv_type_ssize_t = yes; then
33487
33488cat >>confdefs.h <<_ACEOF
33489#define HAVE_SSIZE_T 1
33490_ACEOF
33491
33492
33493fi
33494
33495
a848cd7e
SC
33496echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
33497echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
33498if test "${wx_cv_size_t_is_uint+set}" = set; then
33499 echo $ECHO_N "(cached) $ECHO_C" >&6
33500else
33501
33502 cat >conftest.$ac_ext <<_ACEOF
33503/* confdefs.h. */
33504_ACEOF
33505cat confdefs.h >>conftest.$ac_ext
33506cat >>conftest.$ac_ext <<_ACEOF
33507/* end confdefs.h. */
33508#include <stddef.h>
33509int
33510main ()
33511{
33512
33513 return 0; }
33514
33515 struct Foo { void foo(size_t); void foo(unsigned int); };
33516
33517 int bar() {
33518
33519 ;
33520 return 0;
33521}
33522_ACEOF
33523rm -f conftest.$ac_objext
33524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33525 (eval $ac_compile) 2>conftest.er1
a848cd7e 33526 ac_status=$?
ac1cb8d3
VS
33527 grep -v '^ *+' conftest.er1 >conftest.err
33528 rm -f conftest.er1
33529 cat conftest.err >&5
a848cd7e
SC
33530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33531 (exit $ac_status); } &&
3f60522a
JS
33532 { ac_try='test -z "$ac_cxx_werror_flag"
33533 || test ! -s conftest.err'
ac1cb8d3
VS
33534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33535 (eval $ac_try) 2>&5
33536 ac_status=$?
33537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33538 (exit $ac_status); }; } &&
33539 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33541 (eval $ac_try) 2>&5
33542 ac_status=$?
33543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33544 (exit $ac_status); }; }; then
33545 wx_cv_size_t_is_uint=no
33546else
33547 echo "$as_me: failed program was:" >&5
33548sed 's/^/| /' conftest.$ac_ext >&5
33549
33550wx_cv_size_t_is_uint=yes
33551
33552fi
ac1cb8d3 33553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33554
33555
33556fi
33557echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
33558echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
33559
33560if test "$wx_cv_size_t_is_uint" = "yes"; then
33561 cat >>confdefs.h <<\_ACEOF
33562#define wxSIZE_T_IS_UINT 1
33563_ACEOF
33564
33565else
33566 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
33567echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
33568if test "${wx_cv_size_t_is_ulong+set}" = set; then
33569 echo $ECHO_N "(cached) $ECHO_C" >&6
33570else
33571 cat >conftest.$ac_ext <<_ACEOF
33572/* confdefs.h. */
33573_ACEOF
33574cat confdefs.h >>conftest.$ac_ext
33575cat >>conftest.$ac_ext <<_ACEOF
33576/* end confdefs.h. */
33577#include <stddef.h>
33578int
33579main ()
33580{
33581
33582 return 0; }
33583
33584 struct Foo { void foo(size_t); void foo(unsigned long); };
33585
33586 int bar() {
33587
33588 ;
33589 return 0;
33590}
33591_ACEOF
33592rm -f conftest.$ac_objext
33593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33594 (eval $ac_compile) 2>conftest.er1
a848cd7e 33595 ac_status=$?
ac1cb8d3
VS
33596 grep -v '^ *+' conftest.er1 >conftest.err
33597 rm -f conftest.er1
33598 cat conftest.err >&5
a848cd7e
SC
33599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33600 (exit $ac_status); } &&
3f60522a
JS
33601 { ac_try='test -z "$ac_cxx_werror_flag"
33602 || test ! -s conftest.err'
ac1cb8d3
VS
33603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33604 (eval $ac_try) 2>&5
33605 ac_status=$?
33606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33607 (exit $ac_status); }; } &&
33608 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33610 (eval $ac_try) 2>&5
33611 ac_status=$?
33612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33613 (exit $ac_status); }; }; then
33614 wx_cv_size_t_is_ulong=no
33615else
33616 echo "$as_me: failed program was:" >&5
33617sed 's/^/| /' conftest.$ac_ext >&5
33618
33619wx_cv_size_t_is_ulong=yes
33620
33621fi
ac1cb8d3 33622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33623
33624fi
33625echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
33626echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
33627
33628 if test "$wx_cv_size_t_is_ulong" = "yes"; then
33629 cat >>confdefs.h <<\_ACEOF
33630#define wxSIZE_T_IS_ULONG 1
33631_ACEOF
33632
33633 fi
33634fi
33635
a848cd7e
SC
33636
33637echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
33638echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
33639if test "${wx_cv_struct_pw_gecos+set}" = set; then
33640 echo $ECHO_N "(cached) $ECHO_C" >&6
33641else
33642
33643 cat >conftest.$ac_ext <<_ACEOF
33644/* confdefs.h. */
33645_ACEOF
33646cat confdefs.h >>conftest.$ac_ext
33647cat >>conftest.$ac_ext <<_ACEOF
33648/* end confdefs.h. */
33649#include <pwd.h>
33650int
33651main ()
33652{
33653
33654 char *p;
33655 struct passwd *pw;
33656 p = pw->pw_gecos;
33657
33658 ;
33659 return 0;
33660}
33661_ACEOF
33662rm -f conftest.$ac_objext
33663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33664 (eval $ac_compile) 2>conftest.er1
a848cd7e 33665 ac_status=$?
ac1cb8d3
VS
33666 grep -v '^ *+' conftest.er1 >conftest.err
33667 rm -f conftest.er1
33668 cat conftest.err >&5
a848cd7e
SC
33669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33670 (exit $ac_status); } &&
3f60522a
JS
33671 { ac_try='test -z "$ac_cxx_werror_flag"
33672 || test ! -s conftest.err'
ac1cb8d3
VS
33673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33674 (eval $ac_try) 2>&5
33675 ac_status=$?
33676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33677 (exit $ac_status); }; } &&
33678 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33680 (eval $ac_try) 2>&5
33681 ac_status=$?
33682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33683 (exit $ac_status); }; }; then
33684
33685 wx_cv_struct_pw_gecos=yes
33686
33687else
33688 echo "$as_me: failed program was:" >&5
33689sed 's/^/| /' conftest.$ac_ext >&5
33690
33691
33692 wx_cv_struct_pw_gecos=no
33693
33694
33695fi
ac1cb8d3 33696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33697
33698
33699fi
33700echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
33701echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
33702
33703if test "$wx_cv_struct_pw_gecos" = "yes"; then
33704 cat >>confdefs.h <<\_ACEOF
33705#define HAVE_PW_GECOS 1
33706_ACEOF
33707
33708fi
33709
33710
47a7e797 33711if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
33712 cat >>confdefs.h <<\_ACEOF
33713#define wxUSE_WCHAR_T 1
33714_ACEOF
33715
33716
33717 WCSLEN_FOUND=0
33718 WCHAR_LINK=
33719
33720for ac_func in wcslen
33721do
33722as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33723echo "$as_me:$LINENO: checking for $ac_func" >&5
33724echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33725if eval "test \"\${$as_ac_var+set}\" = set"; then
33726 echo $ECHO_N "(cached) $ECHO_C" >&6
33727else
33728 cat >conftest.$ac_ext <<_ACEOF
33729/* confdefs.h. */
33730_ACEOF
33731cat confdefs.h >>conftest.$ac_ext
33732cat >>conftest.$ac_ext <<_ACEOF
33733/* end confdefs.h. */
ac1cb8d3
VS
33734/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33736#define $ac_func innocuous_$ac_func
33737
a848cd7e
SC
33738/* System header to define __stub macros and hopefully few prototypes,
33739 which can conflict with char $ac_func (); below.
33740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33741 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33742
a848cd7e
SC
33743#ifdef __STDC__
33744# include <limits.h>
33745#else
33746# include <assert.h>
33747#endif
ac1cb8d3
VS
33748
33749#undef $ac_func
33750
a848cd7e
SC
33751/* Override any gcc2 internal prototype to avoid an error. */
33752#ifdef __cplusplus
33753extern "C"
33754{
33755#endif
33756/* We use char because int might match the return type of a gcc2
33757 builtin and then its argument prototype would still apply. */
33758char $ac_func ();
33759/* The GNU C library defines this for functions which it implements
33760 to always fail with ENOSYS. Some functions are actually named
33761 something starting with __ and the normal name is an alias. */
33762#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33763choke me
33764#else
33765char (*f) () = $ac_func;
33766#endif
33767#ifdef __cplusplus
33768}
33769#endif
33770
33771int
33772main ()
33773{
33774return f != $ac_func;
33775 ;
33776 return 0;
33777}
33778_ACEOF
33779rm -f conftest.$ac_objext conftest$ac_exeext
33780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33781 (eval $ac_link) 2>conftest.er1
a848cd7e 33782 ac_status=$?
ac1cb8d3
VS
33783 grep -v '^ *+' conftest.er1 >conftest.err
33784 rm -f conftest.er1
33785 cat conftest.err >&5
a848cd7e
SC
33786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33787 (exit $ac_status); } &&
3f60522a
JS
33788 { ac_try='test -z "$ac_cxx_werror_flag"
33789 || test ! -s conftest.err'
ac1cb8d3
VS
33790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33791 (eval $ac_try) 2>&5
33792 ac_status=$?
33793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794 (exit $ac_status); }; } &&
33795 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33797 (eval $ac_try) 2>&5
33798 ac_status=$?
33799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33800 (exit $ac_status); }; }; then
33801 eval "$as_ac_var=yes"
33802else
33803 echo "$as_me: failed program was:" >&5
33804sed 's/^/| /' conftest.$ac_ext >&5
33805
33806eval "$as_ac_var=no"
33807fi
ac1cb8d3
VS
33808rm -f conftest.err conftest.$ac_objext \
33809 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33810fi
33811echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33812echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33813if test `eval echo '${'$as_ac_var'}'` = yes; then
33814 cat >>confdefs.h <<_ACEOF
33815#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33816_ACEOF
33817 WCSLEN_FOUND=1
33818fi
33819done
33820
33821
33822 if test "$WCSLEN_FOUND" = 0; then
33823 if test "$TOOLKIT" = "MSW"; then
33824 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
33825echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
33826if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
33827 echo $ECHO_N "(cached) $ECHO_C" >&6
33828else
33829 ac_check_lib_save_LIBS=$LIBS
33830LIBS="-lmsvcrt $LIBS"
33831cat >conftest.$ac_ext <<_ACEOF
33832/* confdefs.h. */
33833_ACEOF
33834cat confdefs.h >>conftest.$ac_ext
33835cat >>conftest.$ac_ext <<_ACEOF
33836/* end confdefs.h. */
33837
33838/* Override any gcc2 internal prototype to avoid an error. */
33839#ifdef __cplusplus
33840extern "C"
33841#endif
33842/* We use char because int might match the return type of a gcc2
33843 builtin and then its argument prototype would still apply. */
33844char wcslen ();
33845int
33846main ()
33847{
33848wcslen ();
33849 ;
33850 return 0;
33851}
33852_ACEOF
33853rm -f conftest.$ac_objext conftest$ac_exeext
33854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33855 (eval $ac_link) 2>conftest.er1
a848cd7e 33856 ac_status=$?
ac1cb8d3
VS
33857 grep -v '^ *+' conftest.er1 >conftest.err
33858 rm -f conftest.er1
33859 cat conftest.err >&5
a848cd7e
SC
33860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33861 (exit $ac_status); } &&
3f60522a
JS
33862 { ac_try='test -z "$ac_cxx_werror_flag"
33863 || test ! -s conftest.err'
ac1cb8d3
VS
33864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33865 (eval $ac_try) 2>&5
33866 ac_status=$?
33867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33868 (exit $ac_status); }; } &&
33869 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33871 (eval $ac_try) 2>&5
33872 ac_status=$?
33873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33874 (exit $ac_status); }; }; then
33875 ac_cv_lib_msvcrt_wcslen=yes
33876else
33877 echo "$as_me: failed program was:" >&5
33878sed 's/^/| /' conftest.$ac_ext >&5
33879
33880ac_cv_lib_msvcrt_wcslen=no
33881fi
ac1cb8d3
VS
33882rm -f conftest.err conftest.$ac_objext \
33883 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33884LIBS=$ac_check_lib_save_LIBS
33885fi
33886echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
33887echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
33888if test $ac_cv_lib_msvcrt_wcslen = yes; then
33889 WCHAR_OK=1
33890fi
33891
33892 else
33893 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
33894echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
33895if test "${ac_cv_lib_w_wcslen+set}" = set; then
33896 echo $ECHO_N "(cached) $ECHO_C" >&6
33897else
33898 ac_check_lib_save_LIBS=$LIBS
33899LIBS="-lw $LIBS"
33900cat >conftest.$ac_ext <<_ACEOF
33901/* confdefs.h. */
33902_ACEOF
33903cat confdefs.h >>conftest.$ac_ext
33904cat >>conftest.$ac_ext <<_ACEOF
33905/* end confdefs.h. */
33906
33907/* Override any gcc2 internal prototype to avoid an error. */
33908#ifdef __cplusplus
33909extern "C"
33910#endif
33911/* We use char because int might match the return type of a gcc2
33912 builtin and then its argument prototype would still apply. */
33913char wcslen ();
33914int
33915main ()
33916{
33917wcslen ();
33918 ;
33919 return 0;
33920}
33921_ACEOF
33922rm -f conftest.$ac_objext conftest$ac_exeext
33923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33924 (eval $ac_link) 2>conftest.er1
a848cd7e 33925 ac_status=$?
ac1cb8d3
VS
33926 grep -v '^ *+' conftest.er1 >conftest.err
33927 rm -f conftest.er1
33928 cat conftest.err >&5
a848cd7e
SC
33929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33930 (exit $ac_status); } &&
3f60522a
JS
33931 { ac_try='test -z "$ac_cxx_werror_flag"
33932 || test ! -s conftest.err'
ac1cb8d3
VS
33933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33934 (eval $ac_try) 2>&5
33935 ac_status=$?
33936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33937 (exit $ac_status); }; } &&
33938 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33940 (eval $ac_try) 2>&5
33941 ac_status=$?
33942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33943 (exit $ac_status); }; }; then
33944 ac_cv_lib_w_wcslen=yes
33945else
33946 echo "$as_me: failed program was:" >&5
33947sed 's/^/| /' conftest.$ac_ext >&5
33948
33949ac_cv_lib_w_wcslen=no
33950fi
ac1cb8d3
VS
33951rm -f conftest.err conftest.$ac_objext \
33952 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33953LIBS=$ac_check_lib_save_LIBS
33954fi
33955echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
33956echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
33957if test $ac_cv_lib_w_wcslen = yes; then
33958
33959 WCHAR_LINK=" -lw"
33960 WCSLEN_FOUND=1
33961
33962fi
33963
33964 fi
33965 fi
33966
33967 if test "$WCSLEN_FOUND" = 1; then
33968 cat >>confdefs.h <<\_ACEOF
33969#define HAVE_WCSLEN 1
33970_ACEOF
33971
33972 fi
33973
efdf6afe 33974 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 33975 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
33976 fi
33977
efdf6afe
VZ
33978 echo "$as_me:$LINENO: checking for mbstate_t" >&5
33979echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
33980if test "${ac_cv_type_mbstate_t+set}" = set; then
33981 echo $ECHO_N "(cached) $ECHO_C" >&6
33982else
33983 cat >conftest.$ac_ext <<_ACEOF
33984/* confdefs.h. */
33985_ACEOF
33986cat confdefs.h >>conftest.$ac_ext
33987cat >>conftest.$ac_ext <<_ACEOF
33988/* end confdefs.h. */
33989#include <wchar.h>
33990
33991int
33992main ()
33993{
33994if ((mbstate_t *) 0)
33995 return 0;
33996if (sizeof (mbstate_t))
33997 return 0;
33998 ;
33999 return 0;
34000}
34001_ACEOF
34002rm -f conftest.$ac_objext
34003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34004 (eval $ac_compile) 2>conftest.er1
34005 ac_status=$?
34006 grep -v '^ *+' conftest.er1 >conftest.err
34007 rm -f conftest.er1
34008 cat conftest.err >&5
34009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34010 (exit $ac_status); } &&
3f60522a
JS
34011 { ac_try='test -z "$ac_cxx_werror_flag"
34012 || test ! -s conftest.err'
efdf6afe
VZ
34013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34014 (eval $ac_try) 2>&5
34015 ac_status=$?
34016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34017 (exit $ac_status); }; } &&
34018 { ac_try='test -s conftest.$ac_objext'
34019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34020 (eval $ac_try) 2>&5
34021 ac_status=$?
34022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34023 (exit $ac_status); }; }; then
34024 ac_cv_type_mbstate_t=yes
34025else
34026 echo "$as_me: failed program was:" >&5
34027sed 's/^/| /' conftest.$ac_ext >&5
34028
34029ac_cv_type_mbstate_t=no
34030fi
34031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34032fi
34033echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
34034echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
34035if test $ac_cv_type_mbstate_t = yes; then
34036
34037cat >>confdefs.h <<_ACEOF
34038#define HAVE_MBSTATE_T 1
34039_ACEOF
34040
a848cd7e
SC
34041
34042for ac_func in wcsrtombs
34043do
34044as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34045echo "$as_me:$LINENO: checking for $ac_func" >&5
34046echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34047if eval "test \"\${$as_ac_var+set}\" = set"; then
34048 echo $ECHO_N "(cached) $ECHO_C" >&6
34049else
34050 cat >conftest.$ac_ext <<_ACEOF
34051/* confdefs.h. */
34052_ACEOF
34053cat confdefs.h >>conftest.$ac_ext
34054cat >>conftest.$ac_ext <<_ACEOF
34055/* end confdefs.h. */
ac1cb8d3
VS
34056/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34058#define $ac_func innocuous_$ac_func
34059
a848cd7e
SC
34060/* System header to define __stub macros and hopefully few prototypes,
34061 which can conflict with char $ac_func (); below.
34062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34063 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34064
a848cd7e
SC
34065#ifdef __STDC__
34066# include <limits.h>
34067#else
34068# include <assert.h>
34069#endif
ac1cb8d3
VS
34070
34071#undef $ac_func
34072
a848cd7e
SC
34073/* Override any gcc2 internal prototype to avoid an error. */
34074#ifdef __cplusplus
34075extern "C"
34076{
34077#endif
34078/* We use char because int might match the return type of a gcc2
34079 builtin and then its argument prototype would still apply. */
34080char $ac_func ();
34081/* The GNU C library defines this for functions which it implements
34082 to always fail with ENOSYS. Some functions are actually named
34083 something starting with __ and the normal name is an alias. */
34084#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34085choke me
34086#else
34087char (*f) () = $ac_func;
34088#endif
34089#ifdef __cplusplus
34090}
34091#endif
34092
34093int
34094main ()
34095{
34096return f != $ac_func;
34097 ;
34098 return 0;
34099}
34100_ACEOF
34101rm -f conftest.$ac_objext conftest$ac_exeext
34102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34103 (eval $ac_link) 2>conftest.er1
a848cd7e 34104 ac_status=$?
ac1cb8d3
VS
34105 grep -v '^ *+' conftest.er1 >conftest.err
34106 rm -f conftest.er1
34107 cat conftest.err >&5
a848cd7e
SC
34108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34109 (exit $ac_status); } &&
3f60522a
JS
34110 { ac_try='test -z "$ac_cxx_werror_flag"
34111 || test ! -s conftest.err'
ac1cb8d3
VS
34112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34113 (eval $ac_try) 2>&5
34114 ac_status=$?
34115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34116 (exit $ac_status); }; } &&
34117 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34119 (eval $ac_try) 2>&5
34120 ac_status=$?
34121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34122 (exit $ac_status); }; }; then
34123 eval "$as_ac_var=yes"
34124else
34125 echo "$as_me: failed program was:" >&5
34126sed 's/^/| /' conftest.$ac_ext >&5
34127
34128eval "$as_ac_var=no"
34129fi
ac1cb8d3
VS
34130rm -f conftest.err conftest.$ac_objext \
34131 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34132fi
34133echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34134echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34135if test `eval echo '${'$as_ac_var'}'` = yes; then
34136 cat >>confdefs.h <<_ACEOF
34137#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34138_ACEOF
34139
34140fi
34141done
34142
efdf6afe
VZ
34143fi
34144
a848cd7e
SC
34145else
34146 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
34147echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
34148fi
34149
a848cd7e 34150
4a767dd5
VZ
34151
34152for ac_func in snprintf vsnprintf
a848cd7e
SC
34153do
34154as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34155echo "$as_me:$LINENO: checking for $ac_func" >&5
34156echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34157if eval "test \"\${$as_ac_var+set}\" = set"; then
34158 echo $ECHO_N "(cached) $ECHO_C" >&6
34159else
34160 cat >conftest.$ac_ext <<_ACEOF
34161/* confdefs.h. */
34162_ACEOF
34163cat confdefs.h >>conftest.$ac_ext
34164cat >>conftest.$ac_ext <<_ACEOF
34165/* end confdefs.h. */
ac1cb8d3
VS
34166/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34168#define $ac_func innocuous_$ac_func
34169
a848cd7e
SC
34170/* System header to define __stub macros and hopefully few prototypes,
34171 which can conflict with char $ac_func (); below.
34172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34173 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34174
a848cd7e
SC
34175#ifdef __STDC__
34176# include <limits.h>
34177#else
34178# include <assert.h>
34179#endif
ac1cb8d3
VS
34180
34181#undef $ac_func
34182
a848cd7e
SC
34183/* Override any gcc2 internal prototype to avoid an error. */
34184#ifdef __cplusplus
34185extern "C"
34186{
34187#endif
34188/* We use char because int might match the return type of a gcc2
34189 builtin and then its argument prototype would still apply. */
34190char $ac_func ();
34191/* The GNU C library defines this for functions which it implements
34192 to always fail with ENOSYS. Some functions are actually named
34193 something starting with __ and the normal name is an alias. */
34194#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34195choke me
34196#else
34197char (*f) () = $ac_func;
34198#endif
34199#ifdef __cplusplus
34200}
34201#endif
34202
34203int
34204main ()
34205{
34206return f != $ac_func;
34207 ;
34208 return 0;
34209}
34210_ACEOF
34211rm -f conftest.$ac_objext conftest$ac_exeext
34212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34213 (eval $ac_link) 2>conftest.er1
a848cd7e 34214 ac_status=$?
ac1cb8d3
VS
34215 grep -v '^ *+' conftest.er1 >conftest.err
34216 rm -f conftest.er1
34217 cat conftest.err >&5
a848cd7e
SC
34218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34219 (exit $ac_status); } &&
3f60522a
JS
34220 { ac_try='test -z "$ac_cxx_werror_flag"
34221 || test ! -s conftest.err'
ac1cb8d3
VS
34222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34223 (eval $ac_try) 2>&5
34224 ac_status=$?
34225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34226 (exit $ac_status); }; } &&
34227 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34229 (eval $ac_try) 2>&5
34230 ac_status=$?
34231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34232 (exit $ac_status); }; }; then
34233 eval "$as_ac_var=yes"
34234else
34235 echo "$as_me: failed program was:" >&5
34236sed 's/^/| /' conftest.$ac_ext >&5
34237
34238eval "$as_ac_var=no"
34239fi
ac1cb8d3
VS
34240rm -f conftest.err conftest.$ac_objext \
34241 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34242fi
34243echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34244echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34245if test `eval echo '${'$as_ac_var'}'` = yes; then
34246 cat >>confdefs.h <<_ACEOF
34247#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34248_ACEOF
34249
34250fi
34251done
34252
34253
34254if test "$ac_cv_func_vsnprintf" = "yes"; then
34255 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
34256echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
34257if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
34258 echo $ECHO_N "(cached) $ECHO_C" >&6
34259else
34260
efdf6afe 34261 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
34262/* confdefs.h. */
34263_ACEOF
34264cat confdefs.h >>conftest.$ac_ext
34265cat >>conftest.$ac_ext <<_ACEOF
34266/* end confdefs.h. */
34267
34268 #include <stdio.h>
34269 #include <stdarg.h>
efdf6afe
VZ
34270 #ifdef __MSL__
34271 #if __MSL__ >= 0x6000
34272 namespace std {}
34273 using namespace std;
34274 #endif
34275 #endif
a848cd7e
SC
34276
34277int
34278main ()
34279{
34280
34281 char *buf;
34282 va_list ap;
62fa8b3a 34283 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
34284
34285 ;
34286 return 0;
34287}
34288_ACEOF
34289rm -f conftest.$ac_objext
34290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34291 (eval $ac_compile) 2>conftest.er1
34292 ac_status=$?
34293 grep -v '^ *+' conftest.er1 >conftest.err
34294 rm -f conftest.er1
34295 cat conftest.err >&5
34296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34297 (exit $ac_status); } &&
3f60522a
JS
34298 { ac_try='test -z "$ac_cxx_werror_flag"
34299 || test ! -s conftest.err'
c122b164
DE
34300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34301 (eval $ac_try) 2>&5
34302 ac_status=$?
34303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34304 (exit $ac_status); }; } &&
34305 { ac_try='test -s conftest.$ac_objext'
34306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34307 (eval $ac_try) 2>&5
34308 ac_status=$?
34309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34310 (exit $ac_status); }; }; then
34311 wx_cv_func_vsnprintf_decl=yes
34312else
34313 echo "$as_me: failed program was:" >&5
34314sed 's/^/| /' conftest.$ac_ext >&5
34315
a848cd7e
SC
34316wx_cv_func_vsnprintf_decl=no
34317
34318fi
ac1cb8d3 34319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34320
34321
34322fi
34323echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
34324echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
34325
34326 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
34327 cat >>confdefs.h <<\_ACEOF
34328#define HAVE_VSNPRINTF_DECL 1
34329_ACEOF
34330
62fa8b3a
MW
34331
34332 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
34333echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
34334if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
34335 echo $ECHO_N "(cached) $ECHO_C" >&6
34336else
34337
34338 cat >conftest.$ac_ext <<_ACEOF
34339/* confdefs.h. */
34340_ACEOF
34341cat confdefs.h >>conftest.$ac_ext
34342cat >>conftest.$ac_ext <<_ACEOF
34343/* end confdefs.h. */
34344
34345 #include <stdio.h>
34346 #include <stdarg.h>
34347 #ifdef __MSL__
34348 #if __MSL__ >= 0x6000
34349 namespace std {}
34350 using namespace std;
34351 #endif
34352 #endif
34353
34354int
34355main ()
34356{
34357
34358 char *buf;
34359 va_list ap;
34360 const char *fmt = "%s";
34361 vsnprintf(buf, 10u, fmt, ap);
34362
34363 ;
34364 return 0;
34365}
34366_ACEOF
34367rm -f conftest.$ac_objext
34368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34369 (eval $ac_compile) 2>conftest.er1
34370 ac_status=$?
34371 grep -v '^ *+' conftest.er1 >conftest.err
34372 rm -f conftest.er1
34373 cat conftest.err >&5
34374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34375 (exit $ac_status); } &&
3f60522a
JS
34376 { ac_try='test -z "$ac_cxx_werror_flag"
34377 || test ! -s conftest.err'
62fa8b3a
MW
34378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34379 (eval $ac_try) 2>&5
34380 ac_status=$?
34381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34382 (exit $ac_status); }; } &&
34383 { ac_try='test -s conftest.$ac_objext'
34384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34385 (eval $ac_try) 2>&5
34386 ac_status=$?
34387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34388 (exit $ac_status); }; }; then
34389 wx_cv_func_broken_vsnprintf_decl=no
34390else
34391 echo "$as_me: failed program was:" >&5
34392sed 's/^/| /' conftest.$ac_ext >&5
34393
34394wx_cv_func_broken_vsnprintf_decl=yes
34395
34396fi
34397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34398
34399
34400fi
34401echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
34402echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
34403
34404 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
34405 cat >>confdefs.h <<\_ACEOF
34406#define HAVE_BROKEN_VSNPRINTF_DECL 1
34407_ACEOF
34408
34409 fi
a848cd7e
SC
34410 fi
34411fi
34412
4a767dd5
VZ
34413if test "$ac_cv_func_snprintf" = "yes"; then
34414 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
34415echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
34416if test "${wx_cv_func_snprintf_decl+set}" = set; then
34417 echo $ECHO_N "(cached) $ECHO_C" >&6
34418else
34419
34420 cat >conftest.$ac_ext <<_ACEOF
34421/* confdefs.h. */
34422_ACEOF
34423cat confdefs.h >>conftest.$ac_ext
34424cat >>conftest.$ac_ext <<_ACEOF
34425/* end confdefs.h. */
34426
34427 #include <stdio.h>
34428 #include <stdarg.h>
34429 #ifdef __MSL__
34430 #if __MSL__ >= 0x6000
34431 namespace std {}
34432 using namespace std;
34433 #endif
34434 #endif
34435
34436int
34437main ()
34438{
34439
34440 char *buf;
62fa8b3a 34441 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
34442
34443 ;
34444 return 0;
34445}
34446_ACEOF
34447rm -f conftest.$ac_objext
34448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34449 (eval $ac_compile) 2>conftest.er1
34450 ac_status=$?
34451 grep -v '^ *+' conftest.er1 >conftest.err
34452 rm -f conftest.er1
34453 cat conftest.err >&5
34454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34455 (exit $ac_status); } &&
3f60522a
JS
34456 { ac_try='test -z "$ac_cxx_werror_flag"
34457 || test ! -s conftest.err'
4a767dd5
VZ
34458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34459 (eval $ac_try) 2>&5
34460 ac_status=$?
34461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34462 (exit $ac_status); }; } &&
34463 { ac_try='test -s conftest.$ac_objext'
34464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34465 (eval $ac_try) 2>&5
34466 ac_status=$?
34467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34468 (exit $ac_status); }; }; then
34469 wx_cv_func_snprintf_decl=yes
34470else
34471 echo "$as_me: failed program was:" >&5
34472sed 's/^/| /' conftest.$ac_ext >&5
34473
34474wx_cv_func_snprintf_decl=no
34475
34476fi
34477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34478
34479
34480fi
34481echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
34482echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
34483
34484 if test "$wx_cv_func_snprintf_decl" = "yes"; then
34485 cat >>confdefs.h <<\_ACEOF
34486#define HAVE_SNPRINTF_DECL 1
34487_ACEOF
34488
62fa8b3a
MW
34489
34490 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
34491echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
34492if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
34493 echo $ECHO_N "(cached) $ECHO_C" >&6
34494else
34495
34496 cat >conftest.$ac_ext <<_ACEOF
34497/* confdefs.h. */
34498_ACEOF
34499cat confdefs.h >>conftest.$ac_ext
34500cat >>conftest.$ac_ext <<_ACEOF
34501/* end confdefs.h. */
34502
34503 #include <stdio.h>
34504 #include <stdarg.h>
34505 #ifdef __MSL__
34506 #if __MSL__ >= 0x6000
34507 namespace std {}
34508 using namespace std;
34509 #endif
34510 #endif
34511
34512int
34513main ()
34514{
34515
34516 char *buf;
34517 const char *fmt = "%s";
34518 snprintf(buf, 10u, fmt, "wx");
34519
34520 ;
34521 return 0;
34522}
34523_ACEOF
34524rm -f conftest.$ac_objext
34525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34526 (eval $ac_compile) 2>conftest.er1
34527 ac_status=$?
34528 grep -v '^ *+' conftest.er1 >conftest.err
34529 rm -f conftest.er1
34530 cat conftest.err >&5
34531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34532 (exit $ac_status); } &&
3f60522a
JS
34533 { ac_try='test -z "$ac_cxx_werror_flag"
34534 || test ! -s conftest.err'
62fa8b3a
MW
34535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34536 (eval $ac_try) 2>&5
34537 ac_status=$?
34538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34539 (exit $ac_status); }; } &&
34540 { ac_try='test -s conftest.$ac_objext'
34541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34542 (eval $ac_try) 2>&5
34543 ac_status=$?
34544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34545 (exit $ac_status); }; }; then
34546 wx_cv_func_broken_snprintf_decl=no
34547else
34548 echo "$as_me: failed program was:" >&5
34549sed 's/^/| /' conftest.$ac_ext >&5
34550
34551wx_cv_func_broken_snprintf_decl=yes
34552
34553fi
34554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34555
34556
34557fi
34558echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
34559echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
34560
34561 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
34562 cat >>confdefs.h <<\_ACEOF
34563#define HAVE_BROKEN_SNPRINTF_DECL 1
8b6682b9
JS
34564_ACEOF
34565
34566 fi
34567 fi
34568
34569 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
34570
34571 echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
34572echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
34573if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
34574 echo $ECHO_N "(cached) $ECHO_C" >&6
34575else
34576
34577 if test "$cross_compiling" = yes; then
34578 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34579See \`config.log' for more details." >&5
34580echo "$as_me: error: cannot run test program while cross compiling
34581See \`config.log' for more details." >&2;}
34582 { (exit 1); exit 1; }; }
34583else
34584 cat >conftest.$ac_ext <<_ACEOF
34585/* confdefs.h. */
34586_ACEOF
34587cat confdefs.h >>conftest.$ac_ext
34588cat >>conftest.$ac_ext <<_ACEOF
34589/* end confdefs.h. */
34590
34591 #include <stdio.h>
34592
34593 int main (void)
34594 {
34595 char buffer[128];
34596 snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
34597 if (strcmp ("2 3 1", buffer) == 0)
34598 exit (0);
34599 exit (1);
34600 }
34601
34602_ACEOF
34603rm -f conftest$ac_exeext
34604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34605 (eval $ac_link) 2>&5
34606 ac_status=$?
34607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34610 (eval $ac_try) 2>&5
34611 ac_status=$?
34612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34613 (exit $ac_status); }; }; then
34614 wx_cv_func_snprintf_pos_params=no
34615else
34616 echo "$as_me: program exited with status $ac_status" >&5
34617echo "$as_me: failed program was:" >&5
34618sed 's/^/| /' conftest.$ac_ext >&5
34619
34620( exit $ac_status )
34621wx_cv_func_snprintf_pos_params=yes
34622
34623fi
34624rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34625fi
34626
34627
34628fi
34629echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
34630echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
34631
34632 if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
34633 cat >>confdefs.h <<\_ACEOF
34634#define HAVE_UNIX98_PRINTF 1
62fa8b3a
MW
34635_ACEOF
34636
34637 fi
4a767dd5
VZ
34638 fi
34639fi
34640
8b6682b9 34641
a848cd7e
SC
34642if test "$wxUSE_UNICODE" = yes; then
34643
34644
34645
fbe47c7b
VS
34646
34647
34648
34649for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
34650do
34651as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34652echo "$as_me:$LINENO: checking for $ac_func" >&5
34653echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34654if eval "test \"\${$as_ac_var+set}\" = set"; then
34655 echo $ECHO_N "(cached) $ECHO_C" >&6
34656else
34657 cat >conftest.$ac_ext <<_ACEOF
34658/* confdefs.h. */
34659_ACEOF
34660cat confdefs.h >>conftest.$ac_ext
34661cat >>conftest.$ac_ext <<_ACEOF
34662/* end confdefs.h. */
ac1cb8d3
VS
34663/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34665#define $ac_func innocuous_$ac_func
34666
a848cd7e
SC
34667/* System header to define __stub macros and hopefully few prototypes,
34668 which can conflict with char $ac_func (); below.
34669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34670 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34671
a848cd7e
SC
34672#ifdef __STDC__
34673# include <limits.h>
34674#else
34675# include <assert.h>
34676#endif
ac1cb8d3
VS
34677
34678#undef $ac_func
34679
a848cd7e
SC
34680/* Override any gcc2 internal prototype to avoid an error. */
34681#ifdef __cplusplus
34682extern "C"
34683{
34684#endif
34685/* We use char because int might match the return type of a gcc2
34686 builtin and then its argument prototype would still apply. */
34687char $ac_func ();
34688/* The GNU C library defines this for functions which it implements
34689 to always fail with ENOSYS. Some functions are actually named
34690 something starting with __ and the normal name is an alias. */
34691#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34692choke me
34693#else
34694char (*f) () = $ac_func;
34695#endif
34696#ifdef __cplusplus
34697}
34698#endif
34699
34700int
34701main ()
34702{
34703return f != $ac_func;
34704 ;
34705 return 0;
34706}
34707_ACEOF
34708rm -f conftest.$ac_objext conftest$ac_exeext
34709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34710 (eval $ac_link) 2>conftest.er1
a848cd7e 34711 ac_status=$?
ac1cb8d3
VS
34712 grep -v '^ *+' conftest.er1 >conftest.err
34713 rm -f conftest.er1
34714 cat conftest.err >&5
a848cd7e
SC
34715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34716 (exit $ac_status); } &&
3f60522a
JS
34717 { ac_try='test -z "$ac_cxx_werror_flag"
34718 || test ! -s conftest.err'
ac1cb8d3
VS
34719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34720 (eval $ac_try) 2>&5
34721 ac_status=$?
34722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34723 (exit $ac_status); }; } &&
34724 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34726 (eval $ac_try) 2>&5
34727 ac_status=$?
34728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34729 (exit $ac_status); }; }; then
34730 eval "$as_ac_var=yes"
34731else
34732 echo "$as_me: failed program was:" >&5
34733sed 's/^/| /' conftest.$ac_ext >&5
34734
34735eval "$as_ac_var=no"
34736fi
ac1cb8d3
VS
34737rm -f conftest.err conftest.$ac_objext \
34738 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34739fi
34740echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34741echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34742if test `eval echo '${'$as_ac_var'}'` = yes; then
34743 cat >>confdefs.h <<_ACEOF
34744#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34745_ACEOF
34746
34747fi
34748done
34749
34750
34751 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
34752echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
34753 cat >conftest.$ac_ext <<_ACEOF
34754/* confdefs.h. */
34755_ACEOF
34756cat confdefs.h >>conftest.$ac_ext
34757cat >>conftest.$ac_ext <<_ACEOF
34758/* end confdefs.h. */
34759#include <wchar.h>
34760int
34761main ()
34762{
34763&_vsnwprintf;
34764 ;
34765 return 0;
34766}
34767_ACEOF
34768rm -f conftest.$ac_objext
34769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34770 (eval $ac_compile) 2>conftest.er1
a848cd7e 34771 ac_status=$?
ac1cb8d3
VS
34772 grep -v '^ *+' conftest.er1 >conftest.err
34773 rm -f conftest.er1
34774 cat conftest.err >&5
a848cd7e
SC
34775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34776 (exit $ac_status); } &&
3f60522a
JS
34777 { ac_try='test -z "$ac_cxx_werror_flag"
34778 || test ! -s conftest.err'
ac1cb8d3
VS
34779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34780 (eval $ac_try) 2>&5
34781 ac_status=$?
34782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34783 (exit $ac_status); }; } &&
34784 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34786 (eval $ac_try) 2>&5
34787 ac_status=$?
34788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34789 (exit $ac_status); }; }; then
34790 echo "$as_me:$LINENO: result: yes" >&5
34791echo "${ECHO_T}yes" >&6
34792 cat >>confdefs.h <<\_ACEOF
34793#define HAVE__VSNWPRINTF 1
34794_ACEOF
34795
34796else
34797 echo "$as_me: failed program was:" >&5
34798sed 's/^/| /' conftest.$ac_ext >&5
34799
34800echo "$as_me:$LINENO: result: no" >&5
34801echo "${ECHO_T}no" >&6
34802fi
ac1cb8d3 34803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
34804fi
34805
6ebeb4c7
VZ
34806if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
34807
34808for ac_func in fnmatch
34809do
34810as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34811echo "$as_me:$LINENO: checking for $ac_func" >&5
34812echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34813if eval "test \"\${$as_ac_var+set}\" = set"; then
34814 echo $ECHO_N "(cached) $ECHO_C" >&6
34815else
34816 cat >conftest.$ac_ext <<_ACEOF
34817/* confdefs.h. */
34818_ACEOF
34819cat confdefs.h >>conftest.$ac_ext
34820cat >>conftest.$ac_ext <<_ACEOF
34821/* end confdefs.h. */
34822/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34824#define $ac_func innocuous_$ac_func
34825
34826/* System header to define __stub macros and hopefully few prototypes,
34827 which can conflict with char $ac_func (); below.
34828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34829 <limits.h> exists even on freestanding compilers. */
34830
34831#ifdef __STDC__
34832# include <limits.h>
34833#else
34834# include <assert.h>
34835#endif
34836
34837#undef $ac_func
34838
34839/* Override any gcc2 internal prototype to avoid an error. */
34840#ifdef __cplusplus
34841extern "C"
34842{
34843#endif
34844/* We use char because int might match the return type of a gcc2
34845 builtin and then its argument prototype would still apply. */
34846char $ac_func ();
34847/* The GNU C library defines this for functions which it implements
34848 to always fail with ENOSYS. Some functions are actually named
34849 something starting with __ and the normal name is an alias. */
34850#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34851choke me
34852#else
34853char (*f) () = $ac_func;
34854#endif
34855#ifdef __cplusplus
34856}
34857#endif
34858
34859int
34860main ()
34861{
34862return f != $ac_func;
34863 ;
34864 return 0;
34865}
34866_ACEOF
34867rm -f conftest.$ac_objext conftest$ac_exeext
34868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34869 (eval $ac_link) 2>conftest.er1
34870 ac_status=$?
34871 grep -v '^ *+' conftest.er1 >conftest.err
34872 rm -f conftest.er1
34873 cat conftest.err >&5
34874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34875 (exit $ac_status); } &&
3f60522a
JS
34876 { ac_try='test -z "$ac_cxx_werror_flag"
34877 || test ! -s conftest.err'
6ebeb4c7
VZ
34878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34879 (eval $ac_try) 2>&5
34880 ac_status=$?
34881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34882 (exit $ac_status); }; } &&
34883 { ac_try='test -s conftest$ac_exeext'
34884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34885 (eval $ac_try) 2>&5
34886 ac_status=$?
34887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34888 (exit $ac_status); }; }; then
34889 eval "$as_ac_var=yes"
34890else
34891 echo "$as_me: failed program was:" >&5
34892sed 's/^/| /' conftest.$ac_ext >&5
34893
34894eval "$as_ac_var=no"
34895fi
34896rm -f conftest.err conftest.$ac_objext \
34897 conftest$ac_exeext conftest.$ac_ext
34898fi
34899echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34900echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34901if test `eval echo '${'$as_ac_var'}'` = yes; then
34902 cat >>confdefs.h <<_ACEOF
34903#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34904_ACEOF
34905
34906fi
34907done
34908
34909fi
34910
34911if test "$wxUSE_FILE" = "yes"; then
34912
34913for ac_func in fsync
34914do
34915as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34916echo "$as_me:$LINENO: checking for $ac_func" >&5
34917echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34918if eval "test \"\${$as_ac_var+set}\" = set"; then
34919 echo $ECHO_N "(cached) $ECHO_C" >&6
34920else
34921 cat >conftest.$ac_ext <<_ACEOF
34922/* confdefs.h. */
34923_ACEOF
34924cat confdefs.h >>conftest.$ac_ext
34925cat >>conftest.$ac_ext <<_ACEOF
34926/* end confdefs.h. */
34927/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34929#define $ac_func innocuous_$ac_func
34930
34931/* System header to define __stub macros and hopefully few prototypes,
34932 which can conflict with char $ac_func (); below.
34933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34934 <limits.h> exists even on freestanding compilers. */
34935
34936#ifdef __STDC__
34937# include <limits.h>
34938#else
34939# include <assert.h>
34940#endif
34941
34942#undef $ac_func
34943
34944/* Override any gcc2 internal prototype to avoid an error. */
34945#ifdef __cplusplus
34946extern "C"
34947{
34948#endif
34949/* We use char because int might match the return type of a gcc2
34950 builtin and then its argument prototype would still apply. */
34951char $ac_func ();
34952/* The GNU C library defines this for functions which it implements
34953 to always fail with ENOSYS. Some functions are actually named
34954 something starting with __ and the normal name is an alias. */
34955#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34956choke me
34957#else
34958char (*f) () = $ac_func;
34959#endif
34960#ifdef __cplusplus
34961}
34962#endif
34963
34964int
34965main ()
34966{
34967return f != $ac_func;
34968 ;
34969 return 0;
34970}
34971_ACEOF
34972rm -f conftest.$ac_objext conftest$ac_exeext
34973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34974 (eval $ac_link) 2>conftest.er1
34975 ac_status=$?
34976 grep -v '^ *+' conftest.er1 >conftest.err
34977 rm -f conftest.er1
34978 cat conftest.err >&5
34979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34980 (exit $ac_status); } &&
3f60522a
JS
34981 { ac_try='test -z "$ac_cxx_werror_flag"
34982 || test ! -s conftest.err'
6ebeb4c7
VZ
34983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34984 (eval $ac_try) 2>&5
34985 ac_status=$?
34986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34987 (exit $ac_status); }; } &&
34988 { ac_try='test -s conftest$ac_exeext'
34989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34990 (eval $ac_try) 2>&5
34991 ac_status=$?
34992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34993 (exit $ac_status); }; }; then
34994 eval "$as_ac_var=yes"
34995else
34996 echo "$as_me: failed program was:" >&5
34997sed 's/^/| /' conftest.$ac_ext >&5
34998
34999eval "$as_ac_var=no"
35000fi
35001rm -f conftest.err conftest.$ac_objext \
35002 conftest$ac_exeext conftest.$ac_ext
35003fi
35004echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35005echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35006if test `eval echo '${'$as_ac_var'}'` = yes; then
35007 cat >>confdefs.h <<_ACEOF
35008#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35009_ACEOF
35010
35011fi
35012done
35013
35014fi
a848cd7e
SC
35015
35016
35017if test "$TOOLKIT" != "MSW"; then
35018
35019
a848cd7e
SC
35020
35021
35022
35023# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
35024if test "${with_libiconv_prefix+set}" = set; then
35025 withval="$with_libiconv_prefix"
35026
35027 for dir in `echo "$withval" | tr : ' '`; do
35028 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
35029 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
35030 done
35031
35032fi;
35033
35034 echo "$as_me:$LINENO: checking for iconv" >&5
35035echo $ECHO_N "checking for iconv... $ECHO_C" >&6
35036if test "${am_cv_func_iconv+set}" = set; then
35037 echo $ECHO_N "(cached) $ECHO_C" >&6
35038else
35039
35040 am_cv_func_iconv="no, consider installing GNU libiconv"
35041 am_cv_lib_iconv=no
35042 cat >conftest.$ac_ext <<_ACEOF
35043/* confdefs.h. */
35044_ACEOF
35045cat confdefs.h >>conftest.$ac_ext
35046cat >>conftest.$ac_ext <<_ACEOF
35047/* end confdefs.h. */
35048#include <stdlib.h>
35049#include <iconv.h>
35050int
35051main ()
35052{
35053iconv_t cd = iconv_open("","");
35054 iconv(cd,NULL,NULL,NULL,NULL);
35055 iconv_close(cd);
35056 ;
35057 return 0;
35058}
35059_ACEOF
35060rm -f conftest.$ac_objext conftest$ac_exeext
35061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35062 (eval $ac_link) 2>conftest.er1
a848cd7e 35063 ac_status=$?
ac1cb8d3
VS
35064 grep -v '^ *+' conftest.er1 >conftest.err
35065 rm -f conftest.er1
35066 cat conftest.err >&5
a848cd7e
SC
35067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35068 (exit $ac_status); } &&
3f60522a
JS
35069 { ac_try='test -z "$ac_cxx_werror_flag"
35070 || test ! -s conftest.err'
ac1cb8d3
VS
35071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35072 (eval $ac_try) 2>&5
35073 ac_status=$?
35074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35075 (exit $ac_status); }; } &&
35076 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35078 (eval $ac_try) 2>&5
35079 ac_status=$?
35080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35081 (exit $ac_status); }; }; then
35082 am_cv_func_iconv=yes
35083else
35084 echo "$as_me: failed program was:" >&5
35085sed 's/^/| /' conftest.$ac_ext >&5
35086
35087fi
ac1cb8d3
VS
35088rm -f conftest.err conftest.$ac_objext \
35089 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35090 if test "$am_cv_func_iconv" != yes; then
35091 am_save_LIBS="$LIBS"
35092 LIBS="$LIBS -liconv"
35093 cat >conftest.$ac_ext <<_ACEOF
35094/* confdefs.h. */
35095_ACEOF
35096cat confdefs.h >>conftest.$ac_ext
35097cat >>conftest.$ac_ext <<_ACEOF
35098/* end confdefs.h. */
35099#include <stdlib.h>
35100#include <iconv.h>
35101int
35102main ()
35103{
35104iconv_t cd = iconv_open("","");
35105 iconv(cd,NULL,NULL,NULL,NULL);
35106 iconv_close(cd);
35107 ;
35108 return 0;
35109}
35110_ACEOF
35111rm -f conftest.$ac_objext conftest$ac_exeext
35112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35113 (eval $ac_link) 2>conftest.er1
a848cd7e 35114 ac_status=$?
ac1cb8d3
VS
35115 grep -v '^ *+' conftest.er1 >conftest.err
35116 rm -f conftest.er1
35117 cat conftest.err >&5
a848cd7e
SC
35118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35119 (exit $ac_status); } &&
3f60522a
JS
35120 { ac_try='test -z "$ac_cxx_werror_flag"
35121 || test ! -s conftest.err'
ac1cb8d3
VS
35122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35123 (eval $ac_try) 2>&5
35124 ac_status=$?
35125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35126 (exit $ac_status); }; } &&
35127 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35129 (eval $ac_try) 2>&5
35130 ac_status=$?
35131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35132 (exit $ac_status); }; }; then
35133 am_cv_lib_iconv=yes
35134 am_cv_func_iconv=yes
35135else
35136 echo "$as_me: failed program was:" >&5
35137sed 's/^/| /' conftest.$ac_ext >&5
35138
35139fi
ac1cb8d3
VS
35140rm -f conftest.err conftest.$ac_objext \
35141 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35142 LIBS="$am_save_LIBS"
35143 fi
35144
35145fi
35146echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
35147echo "${ECHO_T}$am_cv_func_iconv" >&6
35148 if test "$am_cv_func_iconv" = yes; then
35149
35150cat >>confdefs.h <<\_ACEOF
35151#define HAVE_ICONV 1
35152_ACEOF
35153
35154 echo "$as_me:$LINENO: checking if iconv needs const" >&5
35155echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
35156if test "${wx_cv_func_iconv_const+set}" = set; then
35157 echo $ECHO_N "(cached) $ECHO_C" >&6
35158else
35159 cat >conftest.$ac_ext <<_ACEOF
35160/* confdefs.h. */
35161_ACEOF
35162cat confdefs.h >>conftest.$ac_ext
35163cat >>conftest.$ac_ext <<_ACEOF
35164/* end confdefs.h. */
35165
35166#include <stdlib.h>
35167#include <iconv.h>
35168extern
35169#ifdef __cplusplus
35170"C"
35171#endif
35172#if defined(__STDC__) || defined(__cplusplus)
35173size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
35174#else
35175size_t iconv();
35176#endif
35177
35178int
35179main ()
35180{
35181
35182 ;
35183 return 0;
35184}
35185_ACEOF
35186rm -f conftest.$ac_objext
35187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35188 (eval $ac_compile) 2>conftest.er1
a848cd7e 35189 ac_status=$?
ac1cb8d3
VS
35190 grep -v '^ *+' conftest.er1 >conftest.err
35191 rm -f conftest.er1
35192 cat conftest.err >&5
a848cd7e
SC
35193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35194 (exit $ac_status); } &&
3f60522a
JS
35195 { ac_try='test -z "$ac_cxx_werror_flag"
35196 || test ! -s conftest.err'
ac1cb8d3
VS
35197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35198 (eval $ac_try) 2>&5
35199 ac_status=$?
35200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35201 (exit $ac_status); }; } &&
35202 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35204 (eval $ac_try) 2>&5
35205 ac_status=$?
35206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35207 (exit $ac_status); }; }; then
35208 wx_cv_func_iconv_const="no"
35209else
35210 echo "$as_me: failed program was:" >&5
35211sed 's/^/| /' conftest.$ac_ext >&5
35212
35213wx_cv_func_iconv_const="yes"
35214
35215fi
ac1cb8d3 35216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35217
35218fi
35219echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
35220echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
35221
35222 iconv_const=
35223 if test "x$wx_cv_func_iconv_const" = "xyes"; then
35224 iconv_const="const"
35225 fi
35226
35227
35228cat >>confdefs.h <<_ACEOF
35229#define ICONV_CONST $iconv_const
35230_ACEOF
35231
35232 fi
35233 LIBICONV=
35234 if test "$am_cv_lib_iconv" = yes; then
35235 LIBICONV="-liconv"
35236 fi
35237
35238
35239LIBS="$LIBICONV $LIBS"
a848cd7e
SC
35240
35241if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
35242
35243for ac_func in sigaction
35244do
35245as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35246echo "$as_me:$LINENO: checking for $ac_func" >&5
35247echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35248if eval "test \"\${$as_ac_var+set}\" = set"; then
35249 echo $ECHO_N "(cached) $ECHO_C" >&6
35250else
35251 cat >conftest.$ac_ext <<_ACEOF
35252/* confdefs.h. */
35253_ACEOF
35254cat confdefs.h >>conftest.$ac_ext
35255cat >>conftest.$ac_ext <<_ACEOF
35256/* end confdefs.h. */
ac1cb8d3
VS
35257/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35259#define $ac_func innocuous_$ac_func
35260
a848cd7e
SC
35261/* System header to define __stub macros and hopefully few prototypes,
35262 which can conflict with char $ac_func (); below.
35263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35264 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35265
a848cd7e
SC
35266#ifdef __STDC__
35267# include <limits.h>
35268#else
35269# include <assert.h>
35270#endif
ac1cb8d3
VS
35271
35272#undef $ac_func
35273
a848cd7e
SC
35274/* Override any gcc2 internal prototype to avoid an error. */
35275#ifdef __cplusplus
35276extern "C"
35277{
35278#endif
35279/* We use char because int might match the return type of a gcc2
35280 builtin and then its argument prototype would still apply. */
35281char $ac_func ();
35282/* The GNU C library defines this for functions which it implements
35283 to always fail with ENOSYS. Some functions are actually named
35284 something starting with __ and the normal name is an alias. */
35285#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35286choke me
35287#else
35288char (*f) () = $ac_func;
35289#endif
35290#ifdef __cplusplus
35291}
35292#endif
35293
35294int
35295main ()
35296{
35297return f != $ac_func;
35298 ;
35299 return 0;
35300}
35301_ACEOF
35302rm -f conftest.$ac_objext conftest$ac_exeext
35303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35304 (eval $ac_link) 2>conftest.er1
a848cd7e 35305 ac_status=$?
ac1cb8d3
VS
35306 grep -v '^ *+' conftest.er1 >conftest.err
35307 rm -f conftest.er1
35308 cat conftest.err >&5
a848cd7e
SC
35309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35310 (exit $ac_status); } &&
3f60522a
JS
35311 { ac_try='test -z "$ac_cxx_werror_flag"
35312 || test ! -s conftest.err'
ac1cb8d3
VS
35313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35314 (eval $ac_try) 2>&5
35315 ac_status=$?
35316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35317 (exit $ac_status); }; } &&
35318 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35320 (eval $ac_try) 2>&5
35321 ac_status=$?
35322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35323 (exit $ac_status); }; }; then
35324 eval "$as_ac_var=yes"
35325else
35326 echo "$as_me: failed program was:" >&5
35327sed 's/^/| /' conftest.$ac_ext >&5
35328
35329eval "$as_ac_var=no"
35330fi
ac1cb8d3
VS
35331rm -f conftest.err conftest.$ac_objext \
35332 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35333fi
35334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35335echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35336if test `eval echo '${'$as_ac_var'}'` = yes; then
35337 cat >>confdefs.h <<_ACEOF
35338#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35339_ACEOF
35340
35341fi
35342done
35343
35344
35345 if test "$ac_cv_func_sigaction" = "no"; then
35346 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
35347echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
35348 wxUSE_ON_FATAL_EXCEPTION=no
35349 fi
35350
35351 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
35352 echo "$as_me:$LINENO: checking for sa_handler type" >&5
35353echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
35354if test "${wx_cv_type_sa_handler+set}" = set; then
35355 echo $ECHO_N "(cached) $ECHO_C" >&6
35356else
35357
35358 cat >conftest.$ac_ext <<_ACEOF
35359/* confdefs.h. */
35360_ACEOF
35361cat confdefs.h >>conftest.$ac_ext
35362cat >>conftest.$ac_ext <<_ACEOF
35363/* end confdefs.h. */
35364#include <signal.h>
35365int
35366main ()
35367{
35368
35369 extern void testSigHandler(int);
35370
35371 struct sigaction sa;
35372 sa.sa_handler = testSigHandler;
35373
35374 ;
35375 return 0;
35376}
35377_ACEOF
35378rm -f conftest.$ac_objext
35379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35380 (eval $ac_compile) 2>conftest.er1
a848cd7e 35381 ac_status=$?
ac1cb8d3
VS
35382 grep -v '^ *+' conftest.er1 >conftest.err
35383 rm -f conftest.er1
35384 cat conftest.err >&5
a848cd7e
SC
35385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35386 (exit $ac_status); } &&
3f60522a
JS
35387 { ac_try='test -z "$ac_cxx_werror_flag"
35388 || test ! -s conftest.err'
ac1cb8d3
VS
35389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35390 (eval $ac_try) 2>&5
35391 ac_status=$?
35392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35393 (exit $ac_status); }; } &&
35394 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35396 (eval $ac_try) 2>&5
35397 ac_status=$?
35398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35399 (exit $ac_status); }; }; then
35400
35401 wx_cv_type_sa_handler=int
35402
35403else
35404 echo "$as_me: failed program was:" >&5
35405sed 's/^/| /' conftest.$ac_ext >&5
35406
35407
35408 wx_cv_type_sa_handler=void
35409
35410fi
ac1cb8d3 35411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35412
35413fi
35414echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
35415echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
35416
a848cd7e
SC
35417 cat >>confdefs.h <<_ACEOF
35418#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
35419_ACEOF
35420
35421 fi
35422fi
35423
eaff0f0d 35424if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
35425 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
35426echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
35427if test "${wx_cv_func_backtrace+set}" = set; then
35428 echo $ECHO_N "(cached) $ECHO_C" >&6
35429else
35430
35431 cat >conftest.$ac_ext <<_ACEOF
35432/* confdefs.h. */
35433_ACEOF
35434cat confdefs.h >>conftest.$ac_ext
35435cat >>conftest.$ac_ext <<_ACEOF
35436/* end confdefs.h. */
35437#include <execinfo.h>
35438int
35439main ()
35440{
35441
35442 void *trace[1];
35443 char **messages;
35444
35445 backtrace(trace, 1);
35446 messages = backtrace_symbols(trace, 1);
35447
35448 ;
35449 return 0;
35450}
35451_ACEOF
35452rm -f conftest.$ac_objext
35453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35454 (eval $ac_compile) 2>conftest.er1
35455 ac_status=$?
35456 grep -v '^ *+' conftest.er1 >conftest.err
35457 rm -f conftest.er1
35458 cat conftest.err >&5
35459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35460 (exit $ac_status); } &&
3f60522a
JS
35461 { ac_try='test -z "$ac_cxx_werror_flag"
35462 || test ! -s conftest.err'
eaff0f0d
VZ
35463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35464 (eval $ac_try) 2>&5
35465 ac_status=$?
35466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35467 (exit $ac_status); }; } &&
35468 { ac_try='test -s conftest.$ac_objext'
35469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35470 (eval $ac_try) 2>&5
35471 ac_status=$?
35472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35473 (exit $ac_status); }; }; then
35474 wx_cv_func_backtrace=yes
35475else
35476 echo "$as_me: failed program was:" >&5
35477sed 's/^/| /' conftest.$ac_ext >&5
35478
35479wx_cv_func_backtrace=no
35480
35481fi
35482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35483
35484
35485fi
35486echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
35487echo "${ECHO_T}$wx_cv_func_backtrace" >&6
35488
35489
35490 if test "$wx_cv_func_backtrace" = "no"; then
35491 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
35492echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
35493 wxUSE_STACKWALKER=no
35494 else
35495 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
35496echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
35497if test "${wx_cv_func_cxa_demangle+set}" = set; then
35498 echo $ECHO_N "(cached) $ECHO_C" >&6
35499else
35500
35501 cat >conftest.$ac_ext <<_ACEOF
35502/* confdefs.h. */
35503_ACEOF
35504cat confdefs.h >>conftest.$ac_ext
35505cat >>conftest.$ac_ext <<_ACEOF
35506/* end confdefs.h. */
35507#include <cxxabi.h>
35508int
35509main ()
35510{
35511
35512 int rc;
35513 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
35514
35515 ;
35516 return 0;
35517}
35518_ACEOF
dfe0c803
JS
35519rm -f conftest.$ac_objext conftest$ac_exeext
35520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35521 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
35522 ac_status=$?
35523 grep -v '^ *+' conftest.er1 >conftest.err
35524 rm -f conftest.er1
35525 cat conftest.err >&5
35526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35527 (exit $ac_status); } &&
3f60522a
JS
35528 { ac_try='test -z "$ac_cxx_werror_flag"
35529 || test ! -s conftest.err'
eaff0f0d
VZ
35530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35531 (eval $ac_try) 2>&5
35532 ac_status=$?
35533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35534 (exit $ac_status); }; } &&
dfe0c803 35535 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
35536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35537 (eval $ac_try) 2>&5
35538 ac_status=$?
35539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35540 (exit $ac_status); }; }; then
35541 wx_cv_func_cxa_demangle=yes
35542else
35543 echo "$as_me: failed program was:" >&5
35544sed 's/^/| /' conftest.$ac_ext >&5
35545
35546wx_cv_func_cxa_demangle=no
35547
35548fi
dfe0c803
JS
35549rm -f conftest.err conftest.$ac_objext \
35550 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
35551
35552
35553fi
35554echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
35555echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
35556
35557 if test "$wx_cv_func_cxa_demangle" = "yes"; then
35558 cat >>confdefs.h <<\_ACEOF
35559#define HAVE_CXA_DEMANGLE 1
35560_ACEOF
35561
35562 fi
35563 fi
eaff0f0d
VZ
35564fi
35565
898beab1
DE
35566if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
35567 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
35568echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
35569 wxUSE_STACKWALKER=no
35570fi
35571
35572
a848cd7e
SC
35573
35574
35575for ac_func in mkstemp mktemp
35576do
35577as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35578echo "$as_me:$LINENO: checking for $ac_func" >&5
35579echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35580if eval "test \"\${$as_ac_var+set}\" = set"; then
35581 echo $ECHO_N "(cached) $ECHO_C" >&6
35582else
35583 cat >conftest.$ac_ext <<_ACEOF
35584/* confdefs.h. */
35585_ACEOF
35586cat confdefs.h >>conftest.$ac_ext
35587cat >>conftest.$ac_ext <<_ACEOF
35588/* end confdefs.h. */
ac1cb8d3
VS
35589/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35591#define $ac_func innocuous_$ac_func
35592
a848cd7e
SC
35593/* System header to define __stub macros and hopefully few prototypes,
35594 which can conflict with char $ac_func (); below.
35595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35596 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35597
a848cd7e
SC
35598#ifdef __STDC__
35599# include <limits.h>
35600#else
35601# include <assert.h>
35602#endif
ac1cb8d3
VS
35603
35604#undef $ac_func
35605
a848cd7e
SC
35606/* Override any gcc2 internal prototype to avoid an error. */
35607#ifdef __cplusplus
35608extern "C"
35609{
35610#endif
35611/* We use char because int might match the return type of a gcc2
35612 builtin and then its argument prototype would still apply. */
35613char $ac_func ();
35614/* The GNU C library defines this for functions which it implements
35615 to always fail with ENOSYS. Some functions are actually named
35616 something starting with __ and the normal name is an alias. */
35617#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35618choke me
35619#else
35620char (*f) () = $ac_func;
35621#endif
35622#ifdef __cplusplus
35623}
35624#endif
35625
35626int
35627main ()
35628{
35629return f != $ac_func;
35630 ;
35631 return 0;
35632}
35633_ACEOF
35634rm -f conftest.$ac_objext conftest$ac_exeext
35635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35636 (eval $ac_link) 2>conftest.er1
a848cd7e 35637 ac_status=$?
ac1cb8d3
VS
35638 grep -v '^ *+' conftest.er1 >conftest.err
35639 rm -f conftest.er1
35640 cat conftest.err >&5
a848cd7e
SC
35641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35642 (exit $ac_status); } &&
3f60522a
JS
35643 { ac_try='test -z "$ac_cxx_werror_flag"
35644 || test ! -s conftest.err'
ac1cb8d3
VS
35645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35646 (eval $ac_try) 2>&5
35647 ac_status=$?
35648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35649 (exit $ac_status); }; } &&
35650 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35652 (eval $ac_try) 2>&5
35653 ac_status=$?
35654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35655 (exit $ac_status); }; }; then
35656 eval "$as_ac_var=yes"
35657else
35658 echo "$as_me: failed program was:" >&5
35659sed 's/^/| /' conftest.$ac_ext >&5
35660
35661eval "$as_ac_var=no"
35662fi
ac1cb8d3
VS
35663rm -f conftest.err conftest.$ac_objext \
35664 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35665fi
35666echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35667echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35668if test `eval echo '${'$as_ac_var'}'` = yes; then
35669 cat >>confdefs.h <<_ACEOF
35670#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35671_ACEOF
35672 break
35673fi
35674done
35675
35676
35677echo "$as_me:$LINENO: checking for statfs" >&5
35678echo $ECHO_N "checking for statfs... $ECHO_C" >&6
35679if test "${wx_cv_func_statfs+set}" = set; then
35680 echo $ECHO_N "(cached) $ECHO_C" >&6
35681else
35682 cat >conftest.$ac_ext <<_ACEOF
35683/* confdefs.h. */
35684_ACEOF
35685cat confdefs.h >>conftest.$ac_ext
35686cat >>conftest.$ac_ext <<_ACEOF
35687/* end confdefs.h. */
35688
35689 #if defined(__BSD__)
84ae7ca4
VZ
35690 #include <sys/param.h>
35691 #include <sys/mount.h>
a848cd7e 35692 #else
84ae7ca4 35693 #include <sys/vfs.h>
a848cd7e
SC
35694 #endif
35695
35696int
35697main ()
35698{
35699
35700 long l;
35701 struct statfs fs;
35702 statfs("/", &fs);
35703 l = fs.f_bsize;
35704 l += fs.f_blocks;
35705 l += fs.f_bavail;
35706
35707 ;
35708 return 0;
35709}
35710_ACEOF
35711rm -f conftest.$ac_objext
35712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35713 (eval $ac_compile) 2>conftest.er1
a848cd7e 35714 ac_status=$?
ac1cb8d3
VS
35715 grep -v '^ *+' conftest.er1 >conftest.err
35716 rm -f conftest.er1
35717 cat conftest.err >&5
a848cd7e
SC
35718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35719 (exit $ac_status); } &&
3f60522a
JS
35720 { ac_try='test -z "$ac_cxx_werror_flag"
35721 || test ! -s conftest.err'
ac1cb8d3
VS
35722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35723 (eval $ac_try) 2>&5
35724 ac_status=$?
35725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35726 (exit $ac_status); }; } &&
35727 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35729 (eval $ac_try) 2>&5
35730 ac_status=$?
35731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35732 (exit $ac_status); }; }; then
84ae7ca4 35733 wx_cv_func_statfs=yes
a848cd7e
SC
35734else
35735 echo "$as_me: failed program was:" >&5
35736sed 's/^/| /' conftest.$ac_ext >&5
35737
84ae7ca4 35738wx_cv_func_statfs=no
a848cd7e
SC
35739
35740fi
ac1cb8d3 35741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35742
35743fi
35744echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
35745echo "${ECHO_T}$wx_cv_func_statfs" >&6
35746
35747if test "$wx_cv_func_statfs" = "yes"; then
5d7b7554 35748 echo "$as_me:$LINENO: checking for statfs declaration" >&5
84ae7ca4
VZ
35749echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
35750if test "${wx_cv_func_statfs_decl+set}" = set; then
35751 echo $ECHO_N "(cached) $ECHO_C" >&6
35752else
0683aca6
VZ
35753 cat >conftest.$ac_ext <<_ACEOF
35754/* confdefs.h. */
35755_ACEOF
35756cat confdefs.h >>conftest.$ac_ext
35757cat >>conftest.$ac_ext <<_ACEOF
35758/* end confdefs.h. */
84ae7ca4 35759
0683aca6
VZ
35760 #if defined(__BSD__)
35761 #include <sys/param.h>
35762 #include <sys/mount.h>
35763 #else
35764 #include <sys/vfs.h>
35765 #endif
35766
35767int
35768main ()
35769{
35770
35771 struct statfs fs;
35772 statfs("", &fs);
35773
35774 ;
35775 return 0;
35776}
35777_ACEOF
35778rm -f conftest.$ac_objext
35779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35780 (eval $ac_compile) 2>conftest.er1
35781 ac_status=$?
35782 grep -v '^ *+' conftest.er1 >conftest.err
35783 rm -f conftest.er1
35784 cat conftest.err >&5
35785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35786 (exit $ac_status); } &&
3f60522a
JS
35787 { ac_try='test -z "$ac_cxx_werror_flag"
35788 || test ! -s conftest.err'
0683aca6
VZ
35789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35790 (eval $ac_try) 2>&5
35791 ac_status=$?
35792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35793 (exit $ac_status); }; } &&
35794 { ac_try='test -s conftest.$ac_objext'
35795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35796 (eval $ac_try) 2>&5
35797 ac_status=$?
35798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35799 (exit $ac_status); }; }; then
35800 wx_cv_func_statfs_decl=yes
35801else
35802 echo "$as_me: failed program was:" >&5
35803sed 's/^/| /' conftest.$ac_ext >&5
35804
35805wx_cv_func_statfs_decl=no
35806
35807fi
35808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
35809
35810fi
35811echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
35812echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
84ae7ca4
VZ
35813
35814 if test "$wx_cv_func_statfs_decl" = "yes"; then
35815 cat >>confdefs.h <<\_ACEOF
35816#define HAVE_STATFS_DECL 1
35817_ACEOF
35818
35819 fi
35820
a848cd7e
SC
35821 wx_cv_type_statvfs_t="struct statfs"
35822 cat >>confdefs.h <<\_ACEOF
35823#define HAVE_STATFS 1
35824_ACEOF
35825
35826else
35827 echo "$as_me:$LINENO: checking for statvfs" >&5
35828echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
35829if test "${wx_cv_func_statvfs+set}" = set; then
35830 echo $ECHO_N "(cached) $ECHO_C" >&6
35831else
35832 cat >conftest.$ac_ext <<_ACEOF
35833/* confdefs.h. */
35834_ACEOF
35835cat confdefs.h >>conftest.$ac_ext
35836cat >>conftest.$ac_ext <<_ACEOF
35837/* end confdefs.h. */
35838
35839 #include <stddef.h>
35840 #include <sys/statvfs.h>
35841
35842int
35843main ()
35844{
35845
35846 statvfs("/", NULL);
35847
35848 ;
35849 return 0;
35850}
35851_ACEOF
35852rm -f conftest.$ac_objext
35853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35854 (eval $ac_compile) 2>conftest.er1
a848cd7e 35855 ac_status=$?
ac1cb8d3
VS
35856 grep -v '^ *+' conftest.er1 >conftest.err
35857 rm -f conftest.er1
35858 cat conftest.err >&5
a848cd7e
SC
35859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35860 (exit $ac_status); } &&
3f60522a
JS
35861 { ac_try='test -z "$ac_cxx_werror_flag"
35862 || test ! -s conftest.err'
ac1cb8d3
VS
35863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35864 (eval $ac_try) 2>&5
35865 ac_status=$?
35866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35867 (exit $ac_status); }; } &&
35868 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35870 (eval $ac_try) 2>&5
35871 ac_status=$?
35872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35873 (exit $ac_status); }; }; then
35874 wx_cv_func_statvfs=yes
35875else
35876 echo "$as_me: failed program was:" >&5
35877sed 's/^/| /' conftest.$ac_ext >&5
35878
35879wx_cv_func_statvfs=no
35880
35881fi
ac1cb8d3 35882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35883
35884fi
35885echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
35886echo "${ECHO_T}$wx_cv_func_statvfs" >&6
35887
35888 if test "$wx_cv_func_statvfs" = "yes"; then
5d7b7554 35889 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
a848cd7e
SC
35890echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
35891if test "${wx_cv_type_statvfs_t+set}" = set; then
35892 echo $ECHO_N "(cached) $ECHO_C" >&6
35893else
35894 cat >conftest.$ac_ext <<_ACEOF
35895/* confdefs.h. */
35896_ACEOF
35897cat confdefs.h >>conftest.$ac_ext
35898cat >>conftest.$ac_ext <<_ACEOF
35899/* end confdefs.h. */
35900
35901 #include <sys/statvfs.h>
35902
35903int
35904main ()
35905{
35906
35907 long l;
35908 statvfs_t fs;
35909 statvfs("/", &fs);
35910 l = fs.f_bsize;
35911 l += fs.f_blocks;
35912 l += fs.f_bavail;
35913
35914 ;
35915 return 0;
35916}
35917_ACEOF
35918rm -f conftest.$ac_objext
35919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35920 (eval $ac_compile) 2>conftest.er1
a848cd7e 35921 ac_status=$?
ac1cb8d3
VS
35922 grep -v '^ *+' conftest.er1 >conftest.err
35923 rm -f conftest.er1
35924 cat conftest.err >&5
a848cd7e
SC
35925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35926 (exit $ac_status); } &&
3f60522a
JS
35927 { ac_try='test -z "$ac_cxx_werror_flag"
35928 || test ! -s conftest.err'
ac1cb8d3
VS
35929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35930 (eval $ac_try) 2>&5
35931 ac_status=$?
35932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35933 (exit $ac_status); }; } &&
35934 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35936 (eval $ac_try) 2>&5
35937 ac_status=$?
35938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35939 (exit $ac_status); }; }; then
35940 wx_cv_type_statvfs_t=statvfs_t
35941else
35942 echo "$as_me: failed program was:" >&5
35943sed 's/^/| /' conftest.$ac_ext >&5
35944
35945
35946 cat >conftest.$ac_ext <<_ACEOF
35947/* confdefs.h. */
35948_ACEOF
35949cat confdefs.h >>conftest.$ac_ext
35950cat >>conftest.$ac_ext <<_ACEOF
35951/* end confdefs.h. */
35952
35953 #include <sys/statvfs.h>
35954
35955int
35956main ()
35957{
35958
35959 long l;
35960 struct statvfs fs;
35961 statvfs("/", &fs);
35962 l = fs.f_bsize;
35963 l += fs.f_blocks;
35964 l += fs.f_bavail;
35965
35966 ;
35967 return 0;
35968}
35969_ACEOF
35970rm -f conftest.$ac_objext
35971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35972 (eval $ac_compile) 2>conftest.er1
a848cd7e 35973 ac_status=$?
ac1cb8d3
VS
35974 grep -v '^ *+' conftest.er1 >conftest.err
35975 rm -f conftest.er1
35976 cat conftest.err >&5
a848cd7e
SC
35977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35978 (exit $ac_status); } &&
3f60522a
JS
35979 { ac_try='test -z "$ac_cxx_werror_flag"
35980 || test ! -s conftest.err'
ac1cb8d3
VS
35981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35982 (eval $ac_try) 2>&5
35983 ac_status=$?
35984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35985 (exit $ac_status); }; } &&
35986 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35988 (eval $ac_try) 2>&5
35989 ac_status=$?
35990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35991 (exit $ac_status); }; }; then
35992 wx_cv_type_statvfs_t="struct statvfs"
35993else
35994 echo "$as_me: failed program was:" >&5
35995sed 's/^/| /' conftest.$ac_ext >&5
35996
35997wx_cv_type_statvfs_t="unknown"
35998
35999fi
ac1cb8d3 36000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36001
36002
36003fi
ac1cb8d3 36004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36005
36006fi
36007echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
36008echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
36009
a848cd7e
SC
36010 if test "$wx_cv_type_statvfs_t" != "unknown"; then
36011 cat >>confdefs.h <<\_ACEOF
36012#define HAVE_STATVFS 1
36013_ACEOF
36014
36015 fi
36016 else
36017 wx_cv_type_statvfs_t="unknown"
36018 fi
36019fi
36020
36021if test "$wx_cv_type_statvfs_t" != "unknown"; then
36022 cat >>confdefs.h <<_ACEOF
36023#define WX_STATFS_T $wx_cv_type_statvfs_t
36024_ACEOF
36025
36026else
36027 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
36028echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
36029fi
36030
36031if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36032
36033
36034for ac_func in fcntl flock
36035do
36036as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36037echo "$as_me:$LINENO: checking for $ac_func" >&5
36038echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36039if eval "test \"\${$as_ac_var+set}\" = set"; then
36040 echo $ECHO_N "(cached) $ECHO_C" >&6
36041else
36042 cat >conftest.$ac_ext <<_ACEOF
36043/* confdefs.h. */
36044_ACEOF
36045cat confdefs.h >>conftest.$ac_ext
36046cat >>conftest.$ac_ext <<_ACEOF
36047/* end confdefs.h. */
ac1cb8d3
VS
36048/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36050#define $ac_func innocuous_$ac_func
36051
a848cd7e
SC
36052/* System header to define __stub macros and hopefully few prototypes,
36053 which can conflict with char $ac_func (); below.
36054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36055 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36056
a848cd7e
SC
36057#ifdef __STDC__
36058# include <limits.h>
36059#else
36060# include <assert.h>
36061#endif
ac1cb8d3
VS
36062
36063#undef $ac_func
36064
a848cd7e
SC
36065/* Override any gcc2 internal prototype to avoid an error. */
36066#ifdef __cplusplus
36067extern "C"
36068{
36069#endif
36070/* We use char because int might match the return type of a gcc2
36071 builtin and then its argument prototype would still apply. */
36072char $ac_func ();
36073/* The GNU C library defines this for functions which it implements
36074 to always fail with ENOSYS. Some functions are actually named
36075 something starting with __ and the normal name is an alias. */
36076#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36077choke me
36078#else
36079char (*f) () = $ac_func;
36080#endif
36081#ifdef __cplusplus
36082}
36083#endif
36084
36085int
36086main ()
36087{
36088return f != $ac_func;
36089 ;
36090 return 0;
36091}
36092_ACEOF
36093rm -f conftest.$ac_objext conftest$ac_exeext
36094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36095 (eval $ac_link) 2>conftest.er1
a848cd7e 36096 ac_status=$?
ac1cb8d3
VS
36097 grep -v '^ *+' conftest.er1 >conftest.err
36098 rm -f conftest.er1
36099 cat conftest.err >&5
a848cd7e
SC
36100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36101 (exit $ac_status); } &&
3f60522a
JS
36102 { ac_try='test -z "$ac_cxx_werror_flag"
36103 || test ! -s conftest.err'
ac1cb8d3
VS
36104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36105 (eval $ac_try) 2>&5
36106 ac_status=$?
36107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36108 (exit $ac_status); }; } &&
36109 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36111 (eval $ac_try) 2>&5
36112 ac_status=$?
36113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36114 (exit $ac_status); }; }; then
36115 eval "$as_ac_var=yes"
36116else
36117 echo "$as_me: failed program was:" >&5
36118sed 's/^/| /' conftest.$ac_ext >&5
36119
36120eval "$as_ac_var=no"
36121fi
ac1cb8d3
VS
36122rm -f conftest.err conftest.$ac_objext \
36123 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36124fi
36125echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36126echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36127if test `eval echo '${'$as_ac_var'}'` = yes; then
36128 cat >>confdefs.h <<_ACEOF
36129#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36130_ACEOF
36131 break
36132fi
36133done
36134
36135
36136 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
36137 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
36138echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
36139 wxUSE_SNGLINST_CHECKER=no
36140 fi
36141fi
36142
36143
36144for ac_func in timegm
36145do
36146as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36147echo "$as_me:$LINENO: checking for $ac_func" >&5
36148echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36149if eval "test \"\${$as_ac_var+set}\" = set"; then
36150 echo $ECHO_N "(cached) $ECHO_C" >&6
36151else
36152 cat >conftest.$ac_ext <<_ACEOF
36153/* confdefs.h. */
36154_ACEOF
36155cat confdefs.h >>conftest.$ac_ext
36156cat >>conftest.$ac_ext <<_ACEOF
36157/* end confdefs.h. */
ac1cb8d3
VS
36158/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36160#define $ac_func innocuous_$ac_func
36161
a848cd7e
SC
36162/* System header to define __stub macros and hopefully few prototypes,
36163 which can conflict with char $ac_func (); below.
36164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36165 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36166
a848cd7e
SC
36167#ifdef __STDC__
36168# include <limits.h>
36169#else
36170# include <assert.h>
36171#endif
ac1cb8d3
VS
36172
36173#undef $ac_func
36174
a848cd7e
SC
36175/* Override any gcc2 internal prototype to avoid an error. */
36176#ifdef __cplusplus
36177extern "C"
36178{
36179#endif
36180/* We use char because int might match the return type of a gcc2
36181 builtin and then its argument prototype would still apply. */
36182char $ac_func ();
36183/* The GNU C library defines this for functions which it implements
36184 to always fail with ENOSYS. Some functions are actually named
36185 something starting with __ and the normal name is an alias. */
36186#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36187choke me
36188#else
36189char (*f) () = $ac_func;
36190#endif
36191#ifdef __cplusplus
36192}
36193#endif
36194
36195int
36196main ()
36197{
36198return f != $ac_func;
36199 ;
36200 return 0;
36201}
36202_ACEOF
36203rm -f conftest.$ac_objext conftest$ac_exeext
36204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36205 (eval $ac_link) 2>conftest.er1
a848cd7e 36206 ac_status=$?
ac1cb8d3
VS
36207 grep -v '^ *+' conftest.er1 >conftest.err
36208 rm -f conftest.er1
36209 cat conftest.err >&5
a848cd7e
SC
36210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36211 (exit $ac_status); } &&
3f60522a
JS
36212 { ac_try='test -z "$ac_cxx_werror_flag"
36213 || test ! -s conftest.err'
ac1cb8d3
VS
36214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36215 (eval $ac_try) 2>&5
36216 ac_status=$?
36217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36218 (exit $ac_status); }; } &&
36219 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36221 (eval $ac_try) 2>&5
36222 ac_status=$?
36223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36224 (exit $ac_status); }; }; then
36225 eval "$as_ac_var=yes"
36226else
36227 echo "$as_me: failed program was:" >&5
36228sed 's/^/| /' conftest.$ac_ext >&5
36229
36230eval "$as_ac_var=no"
36231fi
ac1cb8d3
VS
36232rm -f conftest.err conftest.$ac_objext \
36233 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36234fi
36235echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36236echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36237if test `eval echo '${'$as_ac_var'}'` = yes; then
36238 cat >>confdefs.h <<_ACEOF
36239#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36240_ACEOF
36241
36242fi
36243done
36244
36245
36246
36247
36248for ac_func in putenv setenv
36249do
36250as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36251echo "$as_me:$LINENO: checking for $ac_func" >&5
36252echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36253if eval "test \"\${$as_ac_var+set}\" = set"; then
36254 echo $ECHO_N "(cached) $ECHO_C" >&6
36255else
36256 cat >conftest.$ac_ext <<_ACEOF
36257/* confdefs.h. */
36258_ACEOF
36259cat confdefs.h >>conftest.$ac_ext
36260cat >>conftest.$ac_ext <<_ACEOF
36261/* end confdefs.h. */
ac1cb8d3
VS
36262/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36264#define $ac_func innocuous_$ac_func
36265
a848cd7e
SC
36266/* System header to define __stub macros and hopefully few prototypes,
36267 which can conflict with char $ac_func (); below.
36268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36269 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36270
a848cd7e
SC
36271#ifdef __STDC__
36272# include <limits.h>
36273#else
36274# include <assert.h>
36275#endif
ac1cb8d3
VS
36276
36277#undef $ac_func
36278
a848cd7e
SC
36279/* Override any gcc2 internal prototype to avoid an error. */
36280#ifdef __cplusplus
36281extern "C"
36282{
36283#endif
36284/* We use char because int might match the return type of a gcc2
36285 builtin and then its argument prototype would still apply. */
36286char $ac_func ();
36287/* The GNU C library defines this for functions which it implements
36288 to always fail with ENOSYS. Some functions are actually named
36289 something starting with __ and the normal name is an alias. */
36290#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36291choke me
36292#else
36293char (*f) () = $ac_func;
36294#endif
36295#ifdef __cplusplus
36296}
36297#endif
36298
36299int
36300main ()
36301{
36302return f != $ac_func;
36303 ;
36304 return 0;
36305}
36306_ACEOF
36307rm -f conftest.$ac_objext conftest$ac_exeext
36308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36309 (eval $ac_link) 2>conftest.er1
a848cd7e 36310 ac_status=$?
ac1cb8d3
VS
36311 grep -v '^ *+' conftest.er1 >conftest.err
36312 rm -f conftest.er1
36313 cat conftest.err >&5
a848cd7e
SC
36314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36315 (exit $ac_status); } &&
3f60522a
JS
36316 { ac_try='test -z "$ac_cxx_werror_flag"
36317 || test ! -s conftest.err'
ac1cb8d3
VS
36318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36319 (eval $ac_try) 2>&5
36320 ac_status=$?
36321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36322 (exit $ac_status); }; } &&
36323 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36325 (eval $ac_try) 2>&5
36326 ac_status=$?
36327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36328 (exit $ac_status); }; }; then
36329 eval "$as_ac_var=yes"
36330else
36331 echo "$as_me: failed program was:" >&5
36332sed 's/^/| /' conftest.$ac_ext >&5
36333
36334eval "$as_ac_var=no"
36335fi
ac1cb8d3
VS
36336rm -f conftest.err conftest.$ac_objext \
36337 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36338fi
36339echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36340echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36341if test `eval echo '${'$as_ac_var'}'` = yes; then
36342 cat >>confdefs.h <<_ACEOF
36343#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36344_ACEOF
36345 break
36346fi
36347done
36348
36349
36350HAVE_SOME_SLEEP_FUNC=0
36351if test "$USE_BEOS" = 1; then
36352 cat >>confdefs.h <<\_ACEOF
36353#define HAVE_SLEEP 1
36354_ACEOF
36355
36356 HAVE_SOME_SLEEP_FUNC=1
36357fi
36358
36359if test "$USE_DARWIN" = 1; then
36360 cat >>confdefs.h <<\_ACEOF
36361#define HAVE_USLEEP 1
36362_ACEOF
36363
36364 HAVE_SOME_SLEEP_FUNC=1
36365fi
36366
36367if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
36368 POSIX4_LINK=
36369
36370for ac_func in nanosleep
36371do
36372as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36373echo "$as_me:$LINENO: checking for $ac_func" >&5
36374echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36375if eval "test \"\${$as_ac_var+set}\" = set"; then
36376 echo $ECHO_N "(cached) $ECHO_C" >&6
36377else
36378 cat >conftest.$ac_ext <<_ACEOF
36379/* confdefs.h. */
36380_ACEOF
36381cat confdefs.h >>conftest.$ac_ext
36382cat >>conftest.$ac_ext <<_ACEOF
36383/* end confdefs.h. */
ac1cb8d3
VS
36384/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36386#define $ac_func innocuous_$ac_func
36387
a848cd7e
SC
36388/* System header to define __stub macros and hopefully few prototypes,
36389 which can conflict with char $ac_func (); below.
36390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36391 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36392
a848cd7e
SC
36393#ifdef __STDC__
36394# include <limits.h>
36395#else
36396# include <assert.h>
36397#endif
ac1cb8d3
VS
36398
36399#undef $ac_func
36400
a848cd7e
SC
36401/* Override any gcc2 internal prototype to avoid an error. */
36402#ifdef __cplusplus
36403extern "C"
36404{
36405#endif
36406/* We use char because int might match the return type of a gcc2
36407 builtin and then its argument prototype would still apply. */
36408char $ac_func ();
36409/* The GNU C library defines this for functions which it implements
36410 to always fail with ENOSYS. Some functions are actually named
36411 something starting with __ and the normal name is an alias. */
36412#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36413choke me
36414#else
36415char (*f) () = $ac_func;
36416#endif
36417#ifdef __cplusplus
36418}
36419#endif
36420
36421int
36422main ()
36423{
36424return f != $ac_func;
36425 ;
36426 return 0;
36427}
36428_ACEOF
36429rm -f conftest.$ac_objext conftest$ac_exeext
36430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36431 (eval $ac_link) 2>conftest.er1
a848cd7e 36432 ac_status=$?
ac1cb8d3
VS
36433 grep -v '^ *+' conftest.er1 >conftest.err
36434 rm -f conftest.er1
36435 cat conftest.err >&5
a848cd7e
SC
36436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36437 (exit $ac_status); } &&
3f60522a
JS
36438 { ac_try='test -z "$ac_cxx_werror_flag"
36439 || test ! -s conftest.err'
ac1cb8d3
VS
36440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36441 (eval $ac_try) 2>&5
36442 ac_status=$?
36443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36444 (exit $ac_status); }; } &&
36445 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36447 (eval $ac_try) 2>&5
36448 ac_status=$?
36449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36450 (exit $ac_status); }; }; then
36451 eval "$as_ac_var=yes"
36452else
36453 echo "$as_me: failed program was:" >&5
36454sed 's/^/| /' conftest.$ac_ext >&5
36455
36456eval "$as_ac_var=no"
36457fi
ac1cb8d3
VS
36458rm -f conftest.err conftest.$ac_objext \
36459 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36460fi
36461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36462echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36463if test `eval echo '${'$as_ac_var'}'` = yes; then
36464 cat >>confdefs.h <<_ACEOF
36465#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36466_ACEOF
36467 cat >>confdefs.h <<\_ACEOF
36468#define HAVE_NANOSLEEP 1
36469_ACEOF
36470
36471else
36472
36473 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
36474echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
36475if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
36476 echo $ECHO_N "(cached) $ECHO_C" >&6
36477else
36478 ac_check_lib_save_LIBS=$LIBS
36479LIBS="-lposix4 $LIBS"
36480cat >conftest.$ac_ext <<_ACEOF
36481/* confdefs.h. */
36482_ACEOF
36483cat confdefs.h >>conftest.$ac_ext
36484cat >>conftest.$ac_ext <<_ACEOF
36485/* end confdefs.h. */
36486
36487/* Override any gcc2 internal prototype to avoid an error. */
36488#ifdef __cplusplus
36489extern "C"
36490#endif
36491/* We use char because int might match the return type of a gcc2
36492 builtin and then its argument prototype would still apply. */
36493char nanosleep ();
36494int
36495main ()
36496{
36497nanosleep ();
36498 ;
36499 return 0;
36500}
36501_ACEOF
36502rm -f conftest.$ac_objext conftest$ac_exeext
36503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36504 (eval $ac_link) 2>conftest.er1
a848cd7e 36505 ac_status=$?
ac1cb8d3
VS
36506 grep -v '^ *+' conftest.er1 >conftest.err
36507 rm -f conftest.er1
36508 cat conftest.err >&5
a848cd7e
SC
36509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36510 (exit $ac_status); } &&
3f60522a
JS
36511 { ac_try='test -z "$ac_cxx_werror_flag"
36512 || test ! -s conftest.err'
ac1cb8d3
VS
36513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36514 (eval $ac_try) 2>&5
36515 ac_status=$?
36516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36517 (exit $ac_status); }; } &&
36518 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36520 (eval $ac_try) 2>&5
36521 ac_status=$?
36522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36523 (exit $ac_status); }; }; then
36524 ac_cv_lib_posix4_nanosleep=yes
36525else
36526 echo "$as_me: failed program was:" >&5
36527sed 's/^/| /' conftest.$ac_ext >&5
36528
36529ac_cv_lib_posix4_nanosleep=no
36530fi
ac1cb8d3
VS
36531rm -f conftest.err conftest.$ac_objext \
36532 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36533LIBS=$ac_check_lib_save_LIBS
36534fi
36535echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
36536echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
36537if test $ac_cv_lib_posix4_nanosleep = yes; then
36538
36539 cat >>confdefs.h <<\_ACEOF
36540#define HAVE_NANOSLEEP 1
36541_ACEOF
36542
36543 POSIX4_LINK=" -lposix4"
36544
36545else
36546
36547
36548for ac_func in usleep
36549do
36550as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36551echo "$as_me:$LINENO: checking for $ac_func" >&5
36552echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36553if eval "test \"\${$as_ac_var+set}\" = set"; then
36554 echo $ECHO_N "(cached) $ECHO_C" >&6
36555else
36556 cat >conftest.$ac_ext <<_ACEOF
36557/* confdefs.h. */
36558_ACEOF
36559cat confdefs.h >>conftest.$ac_ext
36560cat >>conftest.$ac_ext <<_ACEOF
36561/* end confdefs.h. */
ac1cb8d3
VS
36562/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36564#define $ac_func innocuous_$ac_func
36565
a848cd7e
SC
36566/* System header to define __stub macros and hopefully few prototypes,
36567 which can conflict with char $ac_func (); below.
36568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36569 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36570
a848cd7e
SC
36571#ifdef __STDC__
36572# include <limits.h>
36573#else
36574# include <assert.h>
36575#endif
ac1cb8d3
VS
36576
36577#undef $ac_func
36578
a848cd7e
SC
36579/* Override any gcc2 internal prototype to avoid an error. */
36580#ifdef __cplusplus
36581extern "C"
36582{
36583#endif
36584/* We use char because int might match the return type of a gcc2
36585 builtin and then its argument prototype would still apply. */
36586char $ac_func ();
36587/* The GNU C library defines this for functions which it implements
36588 to always fail with ENOSYS. Some functions are actually named
36589 something starting with __ and the normal name is an alias. */
36590#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36591choke me
36592#else
36593char (*f) () = $ac_func;
36594#endif
36595#ifdef __cplusplus
36596}
36597#endif
36598
36599int
36600main ()
36601{
36602return f != $ac_func;
36603 ;
36604 return 0;
36605}
36606_ACEOF
36607rm -f conftest.$ac_objext conftest$ac_exeext
36608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36609 (eval $ac_link) 2>conftest.er1
a848cd7e 36610 ac_status=$?
ac1cb8d3
VS
36611 grep -v '^ *+' conftest.er1 >conftest.err
36612 rm -f conftest.er1
36613 cat conftest.err >&5
a848cd7e
SC
36614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36615 (exit $ac_status); } &&
3f60522a
JS
36616 { ac_try='test -z "$ac_cxx_werror_flag"
36617 || test ! -s conftest.err'
ac1cb8d3
VS
36618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36619 (eval $ac_try) 2>&5
36620 ac_status=$?
36621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36622 (exit $ac_status); }; } &&
36623 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36625 (eval $ac_try) 2>&5
36626 ac_status=$?
36627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36628 (exit $ac_status); }; }; then
36629 eval "$as_ac_var=yes"
36630else
36631 echo "$as_me: failed program was:" >&5
36632sed 's/^/| /' conftest.$ac_ext >&5
36633
36634eval "$as_ac_var=no"
36635fi
ac1cb8d3
VS
36636rm -f conftest.err conftest.$ac_objext \
36637 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36638fi
36639echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36640echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36641if test `eval echo '${'$as_ac_var'}'` = yes; then
36642 cat >>confdefs.h <<_ACEOF
36643#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36644_ACEOF
36645 cat >>confdefs.h <<\_ACEOF
36646#define HAVE_USLEEP 1
36647_ACEOF
36648
36649else
36650 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
36651echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
36652
36653fi
36654done
36655
36656
36657
36658fi
36659
36660
36661
36662fi
36663done
36664
36665fi
36666
36667
36668
36669for ac_func in uname gethostname
36670do
36671as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36672echo "$as_me:$LINENO: checking for $ac_func" >&5
36673echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36674if eval "test \"\${$as_ac_var+set}\" = set"; then
36675 echo $ECHO_N "(cached) $ECHO_C" >&6
36676else
36677 cat >conftest.$ac_ext <<_ACEOF
36678/* confdefs.h. */
36679_ACEOF
36680cat confdefs.h >>conftest.$ac_ext
36681cat >>conftest.$ac_ext <<_ACEOF
36682/* end confdefs.h. */
ac1cb8d3
VS
36683/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36685#define $ac_func innocuous_$ac_func
36686
a848cd7e
SC
36687/* System header to define __stub macros and hopefully few prototypes,
36688 which can conflict with char $ac_func (); below.
36689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36690 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36691
a848cd7e
SC
36692#ifdef __STDC__
36693# include <limits.h>
36694#else
36695# include <assert.h>
36696#endif
ac1cb8d3
VS
36697
36698#undef $ac_func
36699
a848cd7e
SC
36700/* Override any gcc2 internal prototype to avoid an error. */
36701#ifdef __cplusplus
36702extern "C"
36703{
36704#endif
36705/* We use char because int might match the return type of a gcc2
36706 builtin and then its argument prototype would still apply. */
36707char $ac_func ();
36708/* The GNU C library defines this for functions which it implements
36709 to always fail with ENOSYS. Some functions are actually named
36710 something starting with __ and the normal name is an alias. */
36711#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36712choke me
36713#else
36714char (*f) () = $ac_func;
36715#endif
36716#ifdef __cplusplus
36717}
36718#endif
36719
36720int
36721main ()
36722{
36723return f != $ac_func;
36724 ;
36725 return 0;
36726}
36727_ACEOF
36728rm -f conftest.$ac_objext conftest$ac_exeext
36729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36730 (eval $ac_link) 2>conftest.er1
a848cd7e 36731 ac_status=$?
ac1cb8d3
VS
36732 grep -v '^ *+' conftest.er1 >conftest.err
36733 rm -f conftest.er1
36734 cat conftest.err >&5
a848cd7e
SC
36735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36736 (exit $ac_status); } &&
3f60522a
JS
36737 { ac_try='test -z "$ac_cxx_werror_flag"
36738 || test ! -s conftest.err'
ac1cb8d3
VS
36739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36740 (eval $ac_try) 2>&5
36741 ac_status=$?
36742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36743 (exit $ac_status); }; } &&
36744 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36746 (eval $ac_try) 2>&5
36747 ac_status=$?
36748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36749 (exit $ac_status); }; }; then
36750 eval "$as_ac_var=yes"
36751else
36752 echo "$as_me: failed program was:" >&5
36753sed 's/^/| /' conftest.$ac_ext >&5
36754
36755eval "$as_ac_var=no"
36756fi
ac1cb8d3
VS
36757rm -f conftest.err conftest.$ac_objext \
36758 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36759fi
36760echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36761echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36762if test `eval echo '${'$as_ac_var'}'` = yes; then
36763 cat >>confdefs.h <<_ACEOF
36764#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36765_ACEOF
36766 break
36767fi
36768done
36769
36770
a848cd7e
SC
36771
36772for ac_func in strtok_r
36773do
36774as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36775echo "$as_me:$LINENO: checking for $ac_func" >&5
36776echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36777if eval "test \"\${$as_ac_var+set}\" = set"; then
36778 echo $ECHO_N "(cached) $ECHO_C" >&6
36779else
36780 cat >conftest.$ac_ext <<_ACEOF
36781/* confdefs.h. */
36782_ACEOF
36783cat confdefs.h >>conftest.$ac_ext
36784cat >>conftest.$ac_ext <<_ACEOF
36785/* end confdefs.h. */
ac1cb8d3
VS
36786/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36788#define $ac_func innocuous_$ac_func
36789
a848cd7e
SC
36790/* System header to define __stub macros and hopefully few prototypes,
36791 which can conflict with char $ac_func (); below.
36792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36793 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36794
a848cd7e
SC
36795#ifdef __STDC__
36796# include <limits.h>
36797#else
36798# include <assert.h>
36799#endif
ac1cb8d3
VS
36800
36801#undef $ac_func
36802
a848cd7e
SC
36803/* Override any gcc2 internal prototype to avoid an error. */
36804#ifdef __cplusplus
36805extern "C"
36806{
36807#endif
36808/* We use char because int might match the return type of a gcc2
36809 builtin and then its argument prototype would still apply. */
36810char $ac_func ();
36811/* The GNU C library defines this for functions which it implements
36812 to always fail with ENOSYS. Some functions are actually named
36813 something starting with __ and the normal name is an alias. */
36814#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36815choke me
36816#else
36817char (*f) () = $ac_func;
36818#endif
36819#ifdef __cplusplus
36820}
36821#endif
36822
36823int
36824main ()
36825{
36826return f != $ac_func;
36827 ;
36828 return 0;
36829}
36830_ACEOF
36831rm -f conftest.$ac_objext conftest$ac_exeext
36832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36833 (eval $ac_link) 2>conftest.er1
a848cd7e 36834 ac_status=$?
ac1cb8d3
VS
36835 grep -v '^ *+' conftest.er1 >conftest.err
36836 rm -f conftest.er1
36837 cat conftest.err >&5
a848cd7e
SC
36838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36839 (exit $ac_status); } &&
3f60522a
JS
36840 { ac_try='test -z "$ac_cxx_werror_flag"
36841 || test ! -s conftest.err'
ac1cb8d3
VS
36842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36843 (eval $ac_try) 2>&5
36844 ac_status=$?
36845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36846 (exit $ac_status); }; } &&
36847 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36849 (eval $ac_try) 2>&5
36850 ac_status=$?
36851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36852 (exit $ac_status); }; }; then
36853 eval "$as_ac_var=yes"
36854else
36855 echo "$as_me: failed program was:" >&5
36856sed 's/^/| /' conftest.$ac_ext >&5
36857
36858eval "$as_ac_var=no"
36859fi
ac1cb8d3
VS
36860rm -f conftest.err conftest.$ac_objext \
36861 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36862fi
36863echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36864echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36865if test `eval echo '${'$as_ac_var'}'` = yes; then
36866 cat >>confdefs.h <<_ACEOF
36867#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36868_ACEOF
36869
36870fi
36871done
36872
36873
a848cd7e
SC
36874INET_LINK=
36875
36876for ac_func in inet_addr
36877do
36878as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36879echo "$as_me:$LINENO: checking for $ac_func" >&5
36880echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36881if eval "test \"\${$as_ac_var+set}\" = set"; then
36882 echo $ECHO_N "(cached) $ECHO_C" >&6
36883else
36884 cat >conftest.$ac_ext <<_ACEOF
36885/* confdefs.h. */
36886_ACEOF
36887cat confdefs.h >>conftest.$ac_ext
36888cat >>conftest.$ac_ext <<_ACEOF
36889/* end confdefs.h. */
ac1cb8d3
VS
36890/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36892#define $ac_func innocuous_$ac_func
36893
a848cd7e
SC
36894/* System header to define __stub macros and hopefully few prototypes,
36895 which can conflict with char $ac_func (); below.
36896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36897 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36898
a848cd7e
SC
36899#ifdef __STDC__
36900# include <limits.h>
36901#else
36902# include <assert.h>
36903#endif
ac1cb8d3
VS
36904
36905#undef $ac_func
36906
a848cd7e
SC
36907/* Override any gcc2 internal prototype to avoid an error. */
36908#ifdef __cplusplus
36909extern "C"
36910{
36911#endif
36912/* We use char because int might match the return type of a gcc2
36913 builtin and then its argument prototype would still apply. */
36914char $ac_func ();
36915/* The GNU C library defines this for functions which it implements
36916 to always fail with ENOSYS. Some functions are actually named
36917 something starting with __ and the normal name is an alias. */
36918#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36919choke me
36920#else
36921char (*f) () = $ac_func;
36922#endif
36923#ifdef __cplusplus
36924}
36925#endif
36926
36927int
36928main ()
36929{
36930return f != $ac_func;
36931 ;
36932 return 0;
36933}
36934_ACEOF
36935rm -f conftest.$ac_objext conftest$ac_exeext
36936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36937 (eval $ac_link) 2>conftest.er1
a848cd7e 36938 ac_status=$?
ac1cb8d3
VS
36939 grep -v '^ *+' conftest.er1 >conftest.err
36940 rm -f conftest.er1
36941 cat conftest.err >&5
a848cd7e
SC
36942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36943 (exit $ac_status); } &&
3f60522a
JS
36944 { ac_try='test -z "$ac_cxx_werror_flag"
36945 || test ! -s conftest.err'
ac1cb8d3
VS
36946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36947 (eval $ac_try) 2>&5
36948 ac_status=$?
36949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36950 (exit $ac_status); }; } &&
36951 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36953 (eval $ac_try) 2>&5
36954 ac_status=$?
36955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36956 (exit $ac_status); }; }; then
36957 eval "$as_ac_var=yes"
36958else
36959 echo "$as_me: failed program was:" >&5
36960sed 's/^/| /' conftest.$ac_ext >&5
36961
36962eval "$as_ac_var=no"
36963fi
ac1cb8d3
VS
36964rm -f conftest.err conftest.$ac_objext \
36965 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36966fi
36967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36968echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36969if test `eval echo '${'$as_ac_var'}'` = yes; then
36970 cat >>confdefs.h <<_ACEOF
36971#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36972_ACEOF
36973 cat >>confdefs.h <<\_ACEOF
36974#define HAVE_INET_ADDR 1
36975_ACEOF
36976
36977else
36978
36979 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
36980echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
36981if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
36982 echo $ECHO_N "(cached) $ECHO_C" >&6
36983else
36984 ac_check_lib_save_LIBS=$LIBS
36985LIBS="-lnsl $LIBS"
36986cat >conftest.$ac_ext <<_ACEOF
36987/* confdefs.h. */
36988_ACEOF
36989cat confdefs.h >>conftest.$ac_ext
36990cat >>conftest.$ac_ext <<_ACEOF
36991/* end confdefs.h. */
36992
36993/* Override any gcc2 internal prototype to avoid an error. */
36994#ifdef __cplusplus
36995extern "C"
36996#endif
36997/* We use char because int might match the return type of a gcc2
36998 builtin and then its argument prototype would still apply. */
36999char inet_addr ();
37000int
37001main ()
37002{
37003inet_addr ();
37004 ;
37005 return 0;
37006}
37007_ACEOF
37008rm -f conftest.$ac_objext conftest$ac_exeext
37009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37010 (eval $ac_link) 2>conftest.er1
a848cd7e 37011 ac_status=$?
ac1cb8d3
VS
37012 grep -v '^ *+' conftest.er1 >conftest.err
37013 rm -f conftest.er1
37014 cat conftest.err >&5
a848cd7e
SC
37015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37016 (exit $ac_status); } &&
3f60522a
JS
37017 { ac_try='test -z "$ac_cxx_werror_flag"
37018 || test ! -s conftest.err'
ac1cb8d3
VS
37019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37020 (eval $ac_try) 2>&5
37021 ac_status=$?
37022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37023 (exit $ac_status); }; } &&
37024 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37026 (eval $ac_try) 2>&5
37027 ac_status=$?
37028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37029 (exit $ac_status); }; }; then
37030 ac_cv_lib_nsl_inet_addr=yes
37031else
37032 echo "$as_me: failed program was:" >&5
37033sed 's/^/| /' conftest.$ac_ext >&5
37034
37035ac_cv_lib_nsl_inet_addr=no
37036fi
ac1cb8d3
VS
37037rm -f conftest.err conftest.$ac_objext \
37038 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37039LIBS=$ac_check_lib_save_LIBS
37040fi
37041echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
37042echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
37043if test $ac_cv_lib_nsl_inet_addr = yes; then
37044 INET_LINK="nsl"
37045else
37046
37047 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
37048echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
37049if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
37050 echo $ECHO_N "(cached) $ECHO_C" >&6
37051else
37052 ac_check_lib_save_LIBS=$LIBS
37053LIBS="-lresolv $LIBS"
37054cat >conftest.$ac_ext <<_ACEOF
37055/* confdefs.h. */
37056_ACEOF
37057cat confdefs.h >>conftest.$ac_ext
37058cat >>conftest.$ac_ext <<_ACEOF
37059/* end confdefs.h. */
37060
37061/* Override any gcc2 internal prototype to avoid an error. */
37062#ifdef __cplusplus
37063extern "C"
37064#endif
37065/* We use char because int might match the return type of a gcc2
37066 builtin and then its argument prototype would still apply. */
37067char inet_addr ();
37068int
37069main ()
37070{
37071inet_addr ();
37072 ;
37073 return 0;
37074}
37075_ACEOF
37076rm -f conftest.$ac_objext conftest$ac_exeext
37077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37078 (eval $ac_link) 2>conftest.er1
a848cd7e 37079 ac_status=$?
ac1cb8d3
VS
37080 grep -v '^ *+' conftest.er1 >conftest.err
37081 rm -f conftest.er1
37082 cat conftest.err >&5
a848cd7e
SC
37083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37084 (exit $ac_status); } &&
3f60522a
JS
37085 { ac_try='test -z "$ac_cxx_werror_flag"
37086 || test ! -s conftest.err'
ac1cb8d3
VS
37087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37088 (eval $ac_try) 2>&5
37089 ac_status=$?
37090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37091 (exit $ac_status); }; } &&
37092 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37094 (eval $ac_try) 2>&5
37095 ac_status=$?
37096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37097 (exit $ac_status); }; }; then
37098 ac_cv_lib_resolv_inet_addr=yes
37099else
37100 echo "$as_me: failed program was:" >&5
37101sed 's/^/| /' conftest.$ac_ext >&5
37102
37103ac_cv_lib_resolv_inet_addr=no
37104fi
ac1cb8d3
VS
37105rm -f conftest.err conftest.$ac_objext \
37106 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37107LIBS=$ac_check_lib_save_LIBS
37108fi
37109echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
37110echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
37111if test $ac_cv_lib_resolv_inet_addr = yes; then
37112 INET_LINK="resolv"
37113else
37114
37115 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
37116echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
37117if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
37118 echo $ECHO_N "(cached) $ECHO_C" >&6
37119else
37120 ac_check_lib_save_LIBS=$LIBS
37121LIBS="-lsocket $LIBS"
37122cat >conftest.$ac_ext <<_ACEOF
37123/* confdefs.h. */
37124_ACEOF
37125cat confdefs.h >>conftest.$ac_ext
37126cat >>conftest.$ac_ext <<_ACEOF
37127/* end confdefs.h. */
37128
37129/* Override any gcc2 internal prototype to avoid an error. */
37130#ifdef __cplusplus
37131extern "C"
37132#endif
37133/* We use char because int might match the return type of a gcc2
37134 builtin and then its argument prototype would still apply. */
37135char inet_addr ();
37136int
37137main ()
37138{
37139inet_addr ();
37140 ;
37141 return 0;
37142}
37143_ACEOF
37144rm -f conftest.$ac_objext conftest$ac_exeext
37145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37146 (eval $ac_link) 2>conftest.er1
a848cd7e 37147 ac_status=$?
ac1cb8d3
VS
37148 grep -v '^ *+' conftest.er1 >conftest.err
37149 rm -f conftest.er1
37150 cat conftest.err >&5
a848cd7e
SC
37151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37152 (exit $ac_status); } &&
3f60522a
JS
37153 { ac_try='test -z "$ac_cxx_werror_flag"
37154 || test ! -s conftest.err'
ac1cb8d3
VS
37155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37156 (eval $ac_try) 2>&5
37157 ac_status=$?
37158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37159 (exit $ac_status); }; } &&
37160 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37162 (eval $ac_try) 2>&5
37163 ac_status=$?
37164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37165 (exit $ac_status); }; }; then
37166 ac_cv_lib_socket_inet_addr=yes
37167else
37168 echo "$as_me: failed program was:" >&5
37169sed 's/^/| /' conftest.$ac_ext >&5
37170
37171ac_cv_lib_socket_inet_addr=no
37172fi
ac1cb8d3
VS
37173rm -f conftest.err conftest.$ac_objext \
37174 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37175LIBS=$ac_check_lib_save_LIBS
37176fi
37177echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
37178echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
37179if test $ac_cv_lib_socket_inet_addr = yes; then
37180 INET_LINK="socket"
37181
37182fi
37183
37184
37185
37186fi
37187
37188
37189
37190fi
37191
37192
37193
37194fi
37195done
37196
37197
37198
37199for ac_func in inet_aton
37200do
37201as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37202echo "$as_me:$LINENO: checking for $ac_func" >&5
37203echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37204if eval "test \"\${$as_ac_var+set}\" = set"; then
37205 echo $ECHO_N "(cached) $ECHO_C" >&6
37206else
37207 cat >conftest.$ac_ext <<_ACEOF
37208/* confdefs.h. */
37209_ACEOF
37210cat confdefs.h >>conftest.$ac_ext
37211cat >>conftest.$ac_ext <<_ACEOF
37212/* end confdefs.h. */
ac1cb8d3
VS
37213/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37215#define $ac_func innocuous_$ac_func
37216
a848cd7e
SC
37217/* System header to define __stub macros and hopefully few prototypes,
37218 which can conflict with char $ac_func (); below.
37219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37220 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37221
a848cd7e
SC
37222#ifdef __STDC__
37223# include <limits.h>
37224#else
37225# include <assert.h>
37226#endif
ac1cb8d3
VS
37227
37228#undef $ac_func
37229
a848cd7e
SC
37230/* Override any gcc2 internal prototype to avoid an error. */
37231#ifdef __cplusplus
37232extern "C"
37233{
37234#endif
37235/* We use char because int might match the return type of a gcc2
37236 builtin and then its argument prototype would still apply. */
37237char $ac_func ();
37238/* The GNU C library defines this for functions which it implements
37239 to always fail with ENOSYS. Some functions are actually named
37240 something starting with __ and the normal name is an alias. */
37241#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37242choke me
37243#else
37244char (*f) () = $ac_func;
37245#endif
37246#ifdef __cplusplus
37247}
37248#endif
37249
37250int
37251main ()
37252{
37253return f != $ac_func;
37254 ;
37255 return 0;
37256}
37257_ACEOF
37258rm -f conftest.$ac_objext conftest$ac_exeext
37259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37260 (eval $ac_link) 2>conftest.er1
a848cd7e 37261 ac_status=$?
ac1cb8d3
VS
37262 grep -v '^ *+' conftest.er1 >conftest.err
37263 rm -f conftest.er1
37264 cat conftest.err >&5
a848cd7e
SC
37265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37266 (exit $ac_status); } &&
3f60522a
JS
37267 { ac_try='test -z "$ac_cxx_werror_flag"
37268 || test ! -s conftest.err'
ac1cb8d3
VS
37269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37270 (eval $ac_try) 2>&5
37271 ac_status=$?
37272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37273 (exit $ac_status); }; } &&
37274 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37276 (eval $ac_try) 2>&5
37277 ac_status=$?
37278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37279 (exit $ac_status); }; }; then
37280 eval "$as_ac_var=yes"
37281else
37282 echo "$as_me: failed program was:" >&5
37283sed 's/^/| /' conftest.$ac_ext >&5
37284
37285eval "$as_ac_var=no"
37286fi
ac1cb8d3
VS
37287rm -f conftest.err conftest.$ac_objext \
37288 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37289fi
37290echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37291echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37292if test `eval echo '${'$as_ac_var'}'` = yes; then
37293 cat >>confdefs.h <<_ACEOF
37294#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37295_ACEOF
37296 cat >>confdefs.h <<\_ACEOF
37297#define HAVE_INET_ATON 1
37298_ACEOF
37299
37300else
37301
37302 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
37303echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
37304echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
37305if eval "test \"\${$as_ac_Lib+set}\" = set"; then
37306 echo $ECHO_N "(cached) $ECHO_C" >&6
37307else
37308 ac_check_lib_save_LIBS=$LIBS
37309LIBS="-l$INET_LINK $LIBS"
37310cat >conftest.$ac_ext <<_ACEOF
37311/* confdefs.h. */
37312_ACEOF
37313cat confdefs.h >>conftest.$ac_ext
37314cat >>conftest.$ac_ext <<_ACEOF
37315/* end confdefs.h. */
37316
37317/* Override any gcc2 internal prototype to avoid an error. */
37318#ifdef __cplusplus
37319extern "C"
37320#endif
37321/* We use char because int might match the return type of a gcc2
37322 builtin and then its argument prototype would still apply. */
37323char inet_aton ();
37324int
37325main ()
37326{
37327inet_aton ();
37328 ;
37329 return 0;
37330}
37331_ACEOF
37332rm -f conftest.$ac_objext conftest$ac_exeext
37333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37334 (eval $ac_link) 2>conftest.er1
a848cd7e 37335 ac_status=$?
ac1cb8d3
VS
37336 grep -v '^ *+' conftest.er1 >conftest.err
37337 rm -f conftest.er1
37338 cat conftest.err >&5
a848cd7e
SC
37339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37340 (exit $ac_status); } &&
3f60522a
JS
37341 { ac_try='test -z "$ac_cxx_werror_flag"
37342 || test ! -s conftest.err'
ac1cb8d3
VS
37343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37344 (eval $ac_try) 2>&5
37345 ac_status=$?
37346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37347 (exit $ac_status); }; } &&
37348 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37350 (eval $ac_try) 2>&5
37351 ac_status=$?
37352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37353 (exit $ac_status); }; }; then
37354 eval "$as_ac_Lib=yes"
37355else
37356 echo "$as_me: failed program was:" >&5
37357sed 's/^/| /' conftest.$ac_ext >&5
37358
37359eval "$as_ac_Lib=no"
37360fi
ac1cb8d3
VS
37361rm -f conftest.err conftest.$ac_objext \
37362 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37363LIBS=$ac_check_lib_save_LIBS
37364fi
37365echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
37366echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
37367if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37368 cat >>confdefs.h <<\_ACEOF
37369#define HAVE_INET_ATON 1
37370_ACEOF
37371
37372fi
37373
37374
37375fi
37376done
37377
37378
37379if test "x$INET_LINK" != "x"; then
37380 cat >>confdefs.h <<\_ACEOF
37381#define HAVE_INET_ADDR 1
37382_ACEOF
37383
37384 INET_LINK=" -l$INET_LINK"
37385fi
37386
37387fi
37388
37389
37390
37391EXTRALIBS_ESD=
37392echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
37393echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
37394if test "${ac_cv_lib_esd_esd_close+set}" = set; then
37395 echo $ECHO_N "(cached) $ECHO_C" >&6
37396else
37397 ac_check_lib_save_LIBS=$LIBS
37398LIBS="-lesd $LIBS"
37399cat >conftest.$ac_ext <<_ACEOF
37400/* confdefs.h. */
37401_ACEOF
37402cat confdefs.h >>conftest.$ac_ext
37403cat >>conftest.$ac_ext <<_ACEOF
37404/* end confdefs.h. */
37405
37406/* Override any gcc2 internal prototype to avoid an error. */
37407#ifdef __cplusplus
37408extern "C"
37409#endif
37410/* We use char because int might match the return type of a gcc2
37411 builtin and then its argument prototype would still apply. */
37412char esd_close ();
37413int
37414main ()
37415{
37416esd_close ();
37417 ;
37418 return 0;
37419}
37420_ACEOF
37421rm -f conftest.$ac_objext conftest$ac_exeext
37422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37423 (eval $ac_link) 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); } &&
3f60522a
JS
37430 { ac_try='test -z "$ac_cxx_werror_flag"
37431 || test ! -s conftest.err'
ac1cb8d3
VS
37432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37433 (eval $ac_try) 2>&5
37434 ac_status=$?
37435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37436 (exit $ac_status); }; } &&
37437 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37439 (eval $ac_try) 2>&5
37440 ac_status=$?
37441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37442 (exit $ac_status); }; }; then
37443 ac_cv_lib_esd_esd_close=yes
37444else
37445 echo "$as_me: failed program was:" >&5
37446sed 's/^/| /' conftest.$ac_ext >&5
37447
37448ac_cv_lib_esd_esd_close=no
37449fi
ac1cb8d3
VS
37450rm -f conftest.err conftest.$ac_objext \
37451 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37452LIBS=$ac_check_lib_save_LIBS
37453fi
37454echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
37455echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
37456if test $ac_cv_lib_esd_esd_close = yes; then
37457
37458
37459for ac_header in esd.h
37460do
37461as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37462if eval "test \"\${$as_ac_Header+set}\" = set"; then
37463 echo "$as_me:$LINENO: checking for $ac_header" >&5
37464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37465if eval "test \"\${$as_ac_Header+set}\" = set"; then
37466 echo $ECHO_N "(cached) $ECHO_C" >&6
37467fi
37468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37469echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37470else
37471 # Is the header compilable?
37472echo "$as_me:$LINENO: checking $ac_header usability" >&5
37473echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37474cat >conftest.$ac_ext <<_ACEOF
37475/* confdefs.h. */
37476_ACEOF
37477cat confdefs.h >>conftest.$ac_ext
37478cat >>conftest.$ac_ext <<_ACEOF
37479/* end confdefs.h. */
37480$ac_includes_default
37481#include <$ac_header>
37482_ACEOF
37483rm -f conftest.$ac_objext
37484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37485 (eval $ac_compile) 2>conftest.er1
a848cd7e 37486 ac_status=$?
ac1cb8d3
VS
37487 grep -v '^ *+' conftest.er1 >conftest.err
37488 rm -f conftest.er1
37489 cat conftest.err >&5
a848cd7e
SC
37490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37491 (exit $ac_status); } &&
3f60522a
JS
37492 { ac_try='test -z "$ac_cxx_werror_flag"
37493 || test ! -s conftest.err'
ac1cb8d3
VS
37494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37495 (eval $ac_try) 2>&5
37496 ac_status=$?
37497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37498 (exit $ac_status); }; } &&
37499 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37501 (eval $ac_try) 2>&5
37502 ac_status=$?
37503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37504 (exit $ac_status); }; }; then
37505 ac_header_compiler=yes
37506else
37507 echo "$as_me: failed program was:" >&5
37508sed 's/^/| /' conftest.$ac_ext >&5
37509
37510ac_header_compiler=no
37511fi
ac1cb8d3 37512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37513echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37514echo "${ECHO_T}$ac_header_compiler" >&6
37515
37516# Is the header present?
37517echo "$as_me:$LINENO: checking $ac_header presence" >&5
37518echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37519cat >conftest.$ac_ext <<_ACEOF
37520/* confdefs.h. */
37521_ACEOF
37522cat confdefs.h >>conftest.$ac_ext
37523cat >>conftest.$ac_ext <<_ACEOF
37524/* end confdefs.h. */
37525#include <$ac_header>
37526_ACEOF
37527if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37529 ac_status=$?
37530 grep -v '^ *+' conftest.er1 >conftest.err
37531 rm -f conftest.er1
37532 cat conftest.err >&5
37533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37534 (exit $ac_status); } >/dev/null; then
37535 if test -s conftest.err; then
5d7b7554
VZ
37536 ac_cpp_err=$ac_cxx_preproc_warn_flag
37537 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
37538 else
37539 ac_cpp_err=
37540 fi
37541else
37542 ac_cpp_err=yes
37543fi
37544if test -z "$ac_cpp_err"; then
37545 ac_header_preproc=yes
37546else
37547 echo "$as_me: failed program was:" >&5
37548sed 's/^/| /' conftest.$ac_ext >&5
37549
37550 ac_header_preproc=no
37551fi
37552rm -f conftest.err conftest.$ac_ext
37553echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37554echo "${ECHO_T}$ac_header_preproc" >&6
37555
37556# So? What about this header?
5d7b7554 37557case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 37558 yes:no: )
a848cd7e
SC
37559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37560echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37562echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37563 ac_header_preproc=yes
a848cd7e 37564 ;;
ac1cb8d3 37565 no:yes:* )
a848cd7e
SC
37566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37567echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37569echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37570 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37571echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37572 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37573echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37575echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37576 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37577echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37578 (
37579 cat <<\_ASBOX
ac1cb8d3
VS
37580## ----------------------------------------- ##
37581## Report this to wx-dev@lists.wxwidgets.org ##
37582## ----------------------------------------- ##
a848cd7e
SC
37583_ASBOX
37584 ) |
37585 sed "s/^/$as_me: WARNING: /" >&2
37586 ;;
37587esac
37588echo "$as_me:$LINENO: checking for $ac_header" >&5
37589echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37590if eval "test \"\${$as_ac_Header+set}\" = set"; then
37591 echo $ECHO_N "(cached) $ECHO_C" >&6
37592else
ac1cb8d3 37593 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37594fi
37595echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37596echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37597
37598fi
37599if test `eval echo '${'$as_ac_Header'}'` = yes; then
37600 cat >>confdefs.h <<_ACEOF
37601#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37602_ACEOF
37603
37604 EXTRALIBS_ESD="-lesd"
37605
37606fi
37607
37608done
37609
37610
37611fi
37612
37613
37614
37615echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
37616echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
37617cat >conftest.$ac_ext <<_ACEOF
37618/* confdefs.h. */
37619_ACEOF
37620cat confdefs.h >>conftest.$ac_ext
37621cat >>conftest.$ac_ext <<_ACEOF
37622/* end confdefs.h. */
37623#ifdef __linux__
37624 #include <linux/cdrom.h>
37625 #else
37626 /* For Solaris */
37627 #include <sys/cdio.h>
37628 #endif
37629
37630int
37631main ()
37632{
37633struct cdrom_tocentry entry, old_entry;
37634 ;
37635 return 0;
37636}
37637_ACEOF
37638rm -f conftest.$ac_objext
37639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37640 (eval $ac_compile) 2>conftest.er1
a848cd7e 37641 ac_status=$?
ac1cb8d3
VS
37642 grep -v '^ *+' conftest.er1 >conftest.err
37643 rm -f conftest.er1
37644 cat conftest.err >&5
a848cd7e
SC
37645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37646 (exit $ac_status); } &&
3f60522a
JS
37647 { ac_try='test -z "$ac_cxx_werror_flag"
37648 || test ! -s conftest.err'
ac1cb8d3
VS
37649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37650 (eval $ac_try) 2>&5
37651 ac_status=$?
37652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37653 (exit $ac_status); }; } &&
37654 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37656 (eval $ac_try) 2>&5
37657 ac_status=$?
37658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37659 (exit $ac_status); }; }; then
37660 echo "$as_me:$LINENO: result: yes" >&5
37661echo "${ECHO_T}yes" >&6
37662 cat >>confdefs.h <<\_ACEOF
37663#define HAVE_KNOWN_CDROM_INTERFACE 1
37664_ACEOF
37665
37666else
37667 echo "$as_me: failed program was:" >&5
37668sed 's/^/| /' conftest.$ac_ext >&5
37669
37670echo "$as_me:$LINENO: result: no" >&5
37671echo "${ECHO_T}no" >&6
37672fi
ac1cb8d3 37673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37674
37675
37676cat >confcache <<\_ACEOF
37677# This file is a shell script that caches the results of configure
37678# tests run on this system so they can be shared between configure
37679# scripts and configure runs, see configure's option --config-cache.
37680# It is not useful on other systems. If it contains results you don't
37681# want to keep, you may remove or edit it.
37682#
37683# config.status only pays attention to the cache file if you give it
37684# the --recheck option to rerun configure.
37685#
37686# `ac_cv_env_foo' variables (set or unset) will be overridden when
37687# loading this file, other *unset* `ac_cv_foo' will be assigned the
37688# following values.
37689
37690_ACEOF
37691
37692# The following way of writing the cache mishandles newlines in values,
37693# but we know of no workaround that is simple, portable, and efficient.
37694# So, don't put newlines in cache variables' values.
37695# Ultrix sh set writes to stderr and can't be redirected directly,
37696# and sets the high bit in the cache file unless we assign to the vars.
37697{
37698 (set) 2>&1 |
37699 case `(ac_space=' '; set | grep ac_space) 2>&1` in
37700 *ac_space=\ *)
37701 # `set' does not quote correctly, so add quotes (double-quote
37702 # substitution turns \\\\ into \\, and sed turns \\ into \).
37703 sed -n \
ac1cb8d3
VS
37704 "s/'/'\\\\''/g;
37705 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
37706 ;;
37707 *)
37708 # `set' quotes correctly as required by POSIX, so do not add quotes.
37709 sed -n \
ac1cb8d3 37710 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
37711 ;;
37712 esac;
37713} |
37714 sed '
37715 t clear
37716 : clear
37717 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37718 t end
37719 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37720 : end' >>confcache
37721if diff $cache_file confcache >/dev/null 2>&1; then :; else
37722 if test -w $cache_file; then
37723 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
37724 cat confcache >$cache_file
37725 else
37726 echo "not updating unwritable cache $cache_file"
37727 fi
37728fi
37729rm -f confcache
37730
37731
a848cd7e
SC
37732if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
37733
37734
37735 THREADS_LINK=
e56f4f9e 37736 THREADS_CXXFLAGS=
a848cd7e
SC
37737
37738 if test "$wxUSE_THREADS" = "yes" ; then
37739 if test "$USE_BEOS" = 1; then
37740 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
37741echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
37742 wxUSE_THREADS="no"
37743 fi
37744 fi
37745
37746 if test "$wxUSE_THREADS" = "yes" ; then
37747
37748
37749 THREAD_OPTS="-pthread"
37750 case "${host}" in
37751 *-*-solaris2* | *-*-sunos4* )
37752 if test "x$GCC" = "xyes"; then
37753 THREAD_OPTS="-pthreads $THREAD_OPTS"
37754 else
37755 THREAD_OPTS="-mt $THREAD_OPTS"
37756 fi
37757 ;;
37758 *-*-freebsd*)
37759 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
37760 ;;
37761 *-*-darwin* | *-*-cygwin* )
37762 THREAD_OPTS=""
37763 ;;
37764 *-*-aix*)
37765 THREAD_OPTS="pthreads"
37766 ;;
37767 *-hp-hpux* )
00421666
MW
37768 if test "x$GCC" = "xyes"; then
37769 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
37770 THREAD_OPTS=""
37771 else
0093c2fc 37772 THREAD_OPTS="-mt"
a848cd7e
SC
37773 fi
37774 ;;
37775
37776 *-*-irix* )
37777 if test "x$GCC" = "xyes"; then
37778 THREAD_OPTS=""
37779 fi
37780 ;;
37781
37782 *-*-*UnixWare*)
37783 if test "x$GCC" != "xyes"; then
37784 THREAD_OPTS="-Ethread"
37785 fi
37786 ;;
37787 esac
37788
37789 THREAD_OPTS="$THREAD_OPTS pthread none"
37790
37791 THREADS_OK=no
37792 for flag in $THREAD_OPTS; do
37793 case $flag in
37794 none)
37795 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
37796echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
37797 ;;
37798
37799 -*)
37800 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
37801echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
e56f4f9e 37802 THREADS_CXXFLAGS="$flag"
a848cd7e
SC
37803 ;;
37804
37805 *)
37806 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
37807echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
37808 THREADS_LINK="-l$flag"
37809 ;;
37810 esac
37811
37812 save_LIBS="$LIBS"
e56f4f9e 37813 save_CXXFLAGS="$CXXFLAGS"
a848cd7e 37814 LIBS="$THREADS_LINK $LIBS"
e56f4f9e 37815 CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
a848cd7e
SC
37816
37817 cat >conftest.$ac_ext <<_ACEOF
37818/* confdefs.h. */
37819_ACEOF
37820cat confdefs.h >>conftest.$ac_ext
37821cat >>conftest.$ac_ext <<_ACEOF
37822/* end confdefs.h. */
37823#include <pthread.h>
37824int
37825main ()
37826{
37827pthread_create(0,0,0,0);
37828 ;
37829 return 0;
37830}
37831_ACEOF
37832rm -f conftest.$ac_objext conftest$ac_exeext
37833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37834 (eval $ac_link) 2>conftest.er1
a848cd7e 37835 ac_status=$?
ac1cb8d3
VS
37836 grep -v '^ *+' conftest.er1 >conftest.err
37837 rm -f conftest.er1
37838 cat conftest.err >&5
a848cd7e
SC
37839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37840 (exit $ac_status); } &&
3f60522a
JS
37841 { ac_try='test -z "$ac_cxx_werror_flag"
37842 || test ! -s conftest.err'
ac1cb8d3
VS
37843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37844 (eval $ac_try) 2>&5
37845 ac_status=$?
37846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37847 (exit $ac_status); }; } &&
37848 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37850 (eval $ac_try) 2>&5
37851 ac_status=$?
37852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37853 (exit $ac_status); }; }; then
37854 THREADS_OK=yes
37855else
37856 echo "$as_me: failed program was:" >&5
37857sed 's/^/| /' conftest.$ac_ext >&5
37858
37859fi
ac1cb8d3
VS
37860rm -f conftest.err conftest.$ac_objext \
37861 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37862
37863 LIBS="$save_LIBS"
e56f4f9e 37864 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
37865
37866 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
37867echo "${ECHO_T}$THREADS_OK" >&6
37868 if test "x$THREADS_OK" = "xyes"; then
37869 break;
37870 fi
37871
37872 THREADS_LINK=""
e56f4f9e 37873 THREADS_CXXFLAGS=""
a848cd7e
SC
37874 done
37875
37876 if test "x$THREADS_OK" != "xyes"; then
37877 wxUSE_THREADS=no
37878 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
37879echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
37880 else
e56f4f9e 37881 LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
a848cd7e
SC
37882 LIBS="$THREADS_LINK $LIBS"
37883
37884 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
37885echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
37886 flag=no
37887 case "${host}" in
37888 *-aix*)
37889 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
37890 flag="-D_THREAD_SAFE"
37891 ;;
37892 *-freebsd*)
37893 flag="-D_THREAD_SAFE"
37894 ;;
37895 *-hp-hpux* )
37896 flag="-D_REENTRANT"
37897 if test "x$GCC" != "xyes"; then
37898 flag="$flag -D_RWSTD_MULTI_THREAD"
37899 fi
37900 ;;
37901 *solaris* | alpha*-osf*)
37902 flag="-D_REENTRANT"
37903 ;;
37904 esac
37905 echo "$as_me:$LINENO: result: ${flag}" >&5
37906echo "${ECHO_T}${flag}" >&6
37907 if test "x$flag" != xno; then
e56f4f9e 37908 THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
a848cd7e
SC
37909 fi
37910
e56f4f9e 37911 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
a848cd7e
SC
37912 fi
37913 fi
37914
37915 if test "$wxUSE_THREADS" = "yes" ; then
37916
37917for ac_func in thr_setconcurrency
37918do
37919as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37920echo "$as_me:$LINENO: checking for $ac_func" >&5
37921echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37922if eval "test \"\${$as_ac_var+set}\" = set"; then
37923 echo $ECHO_N "(cached) $ECHO_C" >&6
37924else
37925 cat >conftest.$ac_ext <<_ACEOF
37926/* confdefs.h. */
37927_ACEOF
37928cat confdefs.h >>conftest.$ac_ext
37929cat >>conftest.$ac_ext <<_ACEOF
37930/* end confdefs.h. */
ac1cb8d3
VS
37931/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37933#define $ac_func innocuous_$ac_func
37934
a848cd7e
SC
37935/* System header to define __stub macros and hopefully few prototypes,
37936 which can conflict with char $ac_func (); below.
37937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37938 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37939
a848cd7e
SC
37940#ifdef __STDC__
37941# include <limits.h>
37942#else
37943# include <assert.h>
37944#endif
ac1cb8d3
VS
37945
37946#undef $ac_func
37947
a848cd7e
SC
37948/* Override any gcc2 internal prototype to avoid an error. */
37949#ifdef __cplusplus
37950extern "C"
37951{
37952#endif
37953/* We use char because int might match the return type of a gcc2
37954 builtin and then its argument prototype would still apply. */
37955char $ac_func ();
37956/* The GNU C library defines this for functions which it implements
37957 to always fail with ENOSYS. Some functions are actually named
37958 something starting with __ and the normal name is an alias. */
37959#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37960choke me
37961#else
37962char (*f) () = $ac_func;
37963#endif
37964#ifdef __cplusplus
37965}
37966#endif
37967
37968int
37969main ()
37970{
37971return f != $ac_func;
37972 ;
37973 return 0;
37974}
37975_ACEOF
37976rm -f conftest.$ac_objext conftest$ac_exeext
37977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37978 (eval $ac_link) 2>conftest.er1
a848cd7e 37979 ac_status=$?
ac1cb8d3
VS
37980 grep -v '^ *+' conftest.er1 >conftest.err
37981 rm -f conftest.er1
37982 cat conftest.err >&5
a848cd7e
SC
37983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37984 (exit $ac_status); } &&
3f60522a
JS
37985 { ac_try='test -z "$ac_cxx_werror_flag"
37986 || test ! -s conftest.err'
ac1cb8d3
VS
37987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37988 (eval $ac_try) 2>&5
37989 ac_status=$?
37990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37991 (exit $ac_status); }; } &&
37992 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37994 (eval $ac_try) 2>&5
37995 ac_status=$?
37996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37997 (exit $ac_status); }; }; then
37998 eval "$as_ac_var=yes"
37999else
38000 echo "$as_me: failed program was:" >&5
38001sed 's/^/| /' conftest.$ac_ext >&5
38002
38003eval "$as_ac_var=no"
38004fi
ac1cb8d3
VS
38005rm -f conftest.err conftest.$ac_objext \
38006 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38007fi
38008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38009echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38010if test `eval echo '${'$as_ac_var'}'` = yes; then
38011 cat >>confdefs.h <<_ACEOF
38012#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38013_ACEOF
38014
38015fi
38016done
38017
38018
6ebeb4c7
VZ
38019 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
38020echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
38021if test "${wx_cv_func_pthread_cleanup+set}" = set; then
38022 echo $ECHO_N "(cached) $ECHO_C" >&6
38023else
38024
38025 cat >conftest.$ac_ext <<_ACEOF
38026/* confdefs.h. */
38027_ACEOF
38028cat confdefs.h >>conftest.$ac_ext
38029cat >>conftest.$ac_ext <<_ACEOF
38030/* end confdefs.h. */
38031#include <pthread.h>
38032 void ThreadCleanupFunc(void *p);
38033
38034int
38035main ()
38036{
38037
38038 void *p;
38039 pthread_cleanup_push(ThreadCleanupFunc, p);
38040 pthread_cleanup_pop(0);
38041
38042 ;
38043 return 0;
38044}
38045_ACEOF
38046rm -f conftest.$ac_objext
38047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38048 (eval $ac_compile) 2>conftest.er1
38049 ac_status=$?
38050 grep -v '^ *+' conftest.er1 >conftest.err
38051 rm -f conftest.er1
38052 cat conftest.err >&5
38053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38054 (exit $ac_status); } &&
3f60522a
JS
38055 { ac_try='test -z "$ac_cxx_werror_flag"
38056 || test ! -s conftest.err'
6ebeb4c7
VZ
38057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38058 (eval $ac_try) 2>&5
38059 ac_status=$?
38060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38061 (exit $ac_status); }; } &&
38062 { ac_try='test -s conftest.$ac_objext'
38063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38064 (eval $ac_try) 2>&5
38065 ac_status=$?
38066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38067 (exit $ac_status); }; }; then
38068
38069 wx_cv_func_pthread_cleanup=yes
38070
38071else
38072 echo "$as_me: failed program was:" >&5
38073sed 's/^/| /' conftest.$ac_ext >&5
38074
38075
38076 wx_cv_func_pthread_cleanup=no
38077
38078
38079fi
38080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38081
38082fi
38083echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
38084echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
38085 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
38086 cat >>confdefs.h <<\_ACEOF
38087#define wxHAVE_PTHREAD_CLEANUP 1
38088_ACEOF
38089
38090 fi
38091
a848cd7e
SC
38092
38093for ac_header in sched.h
38094do
38095as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38096if eval "test \"\${$as_ac_Header+set}\" = set"; then
38097 echo "$as_me:$LINENO: checking for $ac_header" >&5
38098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38099if eval "test \"\${$as_ac_Header+set}\" = set"; then
38100 echo $ECHO_N "(cached) $ECHO_C" >&6
38101fi
38102echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38103echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38104else
38105 # Is the header compilable?
38106echo "$as_me:$LINENO: checking $ac_header usability" >&5
38107echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38108cat >conftest.$ac_ext <<_ACEOF
38109/* confdefs.h. */
38110_ACEOF
38111cat confdefs.h >>conftest.$ac_ext
38112cat >>conftest.$ac_ext <<_ACEOF
38113/* end confdefs.h. */
38114$ac_includes_default
38115#include <$ac_header>
38116_ACEOF
38117rm -f conftest.$ac_objext
38118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38119 (eval $ac_compile) 2>conftest.er1
a848cd7e 38120 ac_status=$?
ac1cb8d3
VS
38121 grep -v '^ *+' conftest.er1 >conftest.err
38122 rm -f conftest.er1
38123 cat conftest.err >&5
a848cd7e
SC
38124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38125 (exit $ac_status); } &&
3f60522a
JS
38126 { ac_try='test -z "$ac_cxx_werror_flag"
38127 || test ! -s conftest.err'
ac1cb8d3
VS
38128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38129 (eval $ac_try) 2>&5
38130 ac_status=$?
38131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38132 (exit $ac_status); }; } &&
38133 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38135 (eval $ac_try) 2>&5
38136 ac_status=$?
38137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38138 (exit $ac_status); }; }; then
38139 ac_header_compiler=yes
38140else
38141 echo "$as_me: failed program was:" >&5
38142sed 's/^/| /' conftest.$ac_ext >&5
38143
38144ac_header_compiler=no
38145fi
ac1cb8d3 38146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38147echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38148echo "${ECHO_T}$ac_header_compiler" >&6
38149
38150# Is the header present?
38151echo "$as_me:$LINENO: checking $ac_header presence" >&5
38152echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38153cat >conftest.$ac_ext <<_ACEOF
38154/* confdefs.h. */
38155_ACEOF
38156cat confdefs.h >>conftest.$ac_ext
38157cat >>conftest.$ac_ext <<_ACEOF
38158/* end confdefs.h. */
38159#include <$ac_header>
38160_ACEOF
38161if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38163 ac_status=$?
38164 grep -v '^ *+' conftest.er1 >conftest.err
38165 rm -f conftest.er1
38166 cat conftest.err >&5
38167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38168 (exit $ac_status); } >/dev/null; then
38169 if test -s conftest.err; then
5d7b7554
VZ
38170 ac_cpp_err=$ac_cxx_preproc_warn_flag
38171 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
38172 else
38173 ac_cpp_err=
38174 fi
38175else
38176 ac_cpp_err=yes
38177fi
38178if test -z "$ac_cpp_err"; then
38179 ac_header_preproc=yes
38180else
38181 echo "$as_me: failed program was:" >&5
38182sed 's/^/| /' conftest.$ac_ext >&5
38183
38184 ac_header_preproc=no
38185fi
38186rm -f conftest.err conftest.$ac_ext
38187echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38188echo "${ECHO_T}$ac_header_preproc" >&6
38189
38190# So? What about this header?
5d7b7554 38191case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 38192 yes:no: )
a848cd7e
SC
38193 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38194echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38196echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38197 ac_header_preproc=yes
a848cd7e 38198 ;;
ac1cb8d3 38199 no:yes:* )
a848cd7e
SC
38200 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38201echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38202 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38203echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38204 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38205echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38206 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38207echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38209echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38210 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38211echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38212 (
38213 cat <<\_ASBOX
ac1cb8d3
VS
38214## ----------------------------------------- ##
38215## Report this to wx-dev@lists.wxwidgets.org ##
38216## ----------------------------------------- ##
a848cd7e
SC
38217_ASBOX
38218 ) |
38219 sed "s/^/$as_me: WARNING: /" >&2
38220 ;;
38221esac
38222echo "$as_me:$LINENO: checking for $ac_header" >&5
38223echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38224if eval "test \"\${$as_ac_Header+set}\" = set"; then
38225 echo $ECHO_N "(cached) $ECHO_C" >&6
38226else
ac1cb8d3 38227 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38228fi
38229echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38230echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38231
38232fi
38233if test `eval echo '${'$as_ac_Header'}'` = yes; then
38234 cat >>confdefs.h <<_ACEOF
38235#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38236_ACEOF
38237
38238fi
38239
38240done
38241
38242 if test "$ac_cv_header_sched_h" = "yes"; then
38243 echo "$as_me:$LINENO: checking for sched_yield" >&5
38244echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
38245if test "${ac_cv_func_sched_yield+set}" = set; then
38246 echo $ECHO_N "(cached) $ECHO_C" >&6
38247else
38248 cat >conftest.$ac_ext <<_ACEOF
38249/* confdefs.h. */
38250_ACEOF
38251cat confdefs.h >>conftest.$ac_ext
38252cat >>conftest.$ac_ext <<_ACEOF
38253/* end confdefs.h. */
ac1cb8d3
VS
38254/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
38255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38256#define sched_yield innocuous_sched_yield
38257
a848cd7e
SC
38258/* System header to define __stub macros and hopefully few prototypes,
38259 which can conflict with char sched_yield (); below.
38260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38261 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38262
a848cd7e
SC
38263#ifdef __STDC__
38264# include <limits.h>
38265#else
38266# include <assert.h>
38267#endif
ac1cb8d3
VS
38268
38269#undef sched_yield
38270
a848cd7e
SC
38271/* Override any gcc2 internal prototype to avoid an error. */
38272#ifdef __cplusplus
38273extern "C"
38274{
38275#endif
38276/* We use char because int might match the return type of a gcc2
38277 builtin and then its argument prototype would still apply. */
38278char sched_yield ();
38279/* The GNU C library defines this for functions which it implements
38280 to always fail with ENOSYS. Some functions are actually named
38281 something starting with __ and the normal name is an alias. */
38282#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
38283choke me
38284#else
38285char (*f) () = sched_yield;
38286#endif
38287#ifdef __cplusplus
38288}
38289#endif
38290
38291int
38292main ()
38293{
38294return f != sched_yield;
38295 ;
38296 return 0;
38297}
38298_ACEOF
38299rm -f conftest.$ac_objext conftest$ac_exeext
38300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38301 (eval $ac_link) 2>conftest.er1
a848cd7e 38302 ac_status=$?
ac1cb8d3
VS
38303 grep -v '^ *+' conftest.er1 >conftest.err
38304 rm -f conftest.er1
38305 cat conftest.err >&5
a848cd7e
SC
38306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38307 (exit $ac_status); } &&
3f60522a
JS
38308 { ac_try='test -z "$ac_cxx_werror_flag"
38309 || test ! -s conftest.err'
ac1cb8d3
VS
38310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38311 (eval $ac_try) 2>&5
38312 ac_status=$?
38313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38314 (exit $ac_status); }; } &&
38315 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38317 (eval $ac_try) 2>&5
38318 ac_status=$?
38319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38320 (exit $ac_status); }; }; then
38321 ac_cv_func_sched_yield=yes
38322else
38323 echo "$as_me: failed program was:" >&5
38324sed 's/^/| /' conftest.$ac_ext >&5
38325
38326ac_cv_func_sched_yield=no
38327fi
ac1cb8d3
VS
38328rm -f conftest.err conftest.$ac_objext \
38329 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38330fi
38331echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
38332echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
38333if test $ac_cv_func_sched_yield = yes; then
38334 cat >>confdefs.h <<\_ACEOF
38335#define HAVE_SCHED_YIELD 1
38336_ACEOF
38337
38338else
38339
38340 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
38341echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
38342if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
38343 echo $ECHO_N "(cached) $ECHO_C" >&6
38344else
38345 ac_check_lib_save_LIBS=$LIBS
38346LIBS="-lposix4 $LIBS"
38347cat >conftest.$ac_ext <<_ACEOF
38348/* confdefs.h. */
38349_ACEOF
38350cat confdefs.h >>conftest.$ac_ext
38351cat >>conftest.$ac_ext <<_ACEOF
38352/* end confdefs.h. */
38353
38354/* Override any gcc2 internal prototype to avoid an error. */
38355#ifdef __cplusplus
38356extern "C"
38357#endif
38358/* We use char because int might match the return type of a gcc2
38359 builtin and then its argument prototype would still apply. */
38360char sched_yield ();
38361int
38362main ()
38363{
38364sched_yield ();
38365 ;
38366 return 0;
38367}
38368_ACEOF
38369rm -f conftest.$ac_objext conftest$ac_exeext
38370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38371 (eval $ac_link) 2>conftest.er1
a848cd7e 38372 ac_status=$?
ac1cb8d3
VS
38373 grep -v '^ *+' conftest.er1 >conftest.err
38374 rm -f conftest.er1
38375 cat conftest.err >&5
a848cd7e
SC
38376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38377 (exit $ac_status); } &&
3f60522a
JS
38378 { ac_try='test -z "$ac_cxx_werror_flag"
38379 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
38385 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38387 (eval $ac_try) 2>&5
38388 ac_status=$?
38389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38390 (exit $ac_status); }; }; then
38391 ac_cv_lib_posix4_sched_yield=yes
38392else
38393 echo "$as_me: failed program was:" >&5
38394sed 's/^/| /' conftest.$ac_ext >&5
38395
38396ac_cv_lib_posix4_sched_yield=no
38397fi
ac1cb8d3
VS
38398rm -f conftest.err conftest.$ac_objext \
38399 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38400LIBS=$ac_check_lib_save_LIBS
38401fi
38402echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
38403echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
38404if test $ac_cv_lib_posix4_sched_yield = yes; then
38405 cat >>confdefs.h <<\_ACEOF
38406#define HAVE_SCHED_YIELD 1
38407_ACEOF
38408 POSIX4_LINK=" -lposix4"
38409else
38410 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
38411echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
38412
38413fi
38414
38415
38416
38417fi
38418
38419 fi
38420
38421 HAVE_PRIOR_FUNCS=0
38422 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
38423echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
38424if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
38425 echo $ECHO_N "(cached) $ECHO_C" >&6
38426else
38427 cat >conftest.$ac_ext <<_ACEOF
38428/* confdefs.h. */
38429_ACEOF
38430cat confdefs.h >>conftest.$ac_ext
38431cat >>conftest.$ac_ext <<_ACEOF
38432/* end confdefs.h. */
ac1cb8d3
VS
38433/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
38434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38435#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
38436
a848cd7e
SC
38437/* System header to define __stub macros and hopefully few prototypes,
38438 which can conflict with char pthread_attr_getschedpolicy (); below.
38439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38440 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38441
a848cd7e
SC
38442#ifdef __STDC__
38443# include <limits.h>
38444#else
38445# include <assert.h>
38446#endif
ac1cb8d3
VS
38447
38448#undef pthread_attr_getschedpolicy
38449
a848cd7e
SC
38450/* Override any gcc2 internal prototype to avoid an error. */
38451#ifdef __cplusplus
38452extern "C"
38453{
38454#endif
38455/* We use char because int might match the return type of a gcc2
38456 builtin and then its argument prototype would still apply. */
38457char pthread_attr_getschedpolicy ();
38458/* The GNU C library defines this for functions which it implements
38459 to always fail with ENOSYS. Some functions are actually named
38460 something starting with __ and the normal name is an alias. */
38461#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
38462choke me
38463#else
38464char (*f) () = pthread_attr_getschedpolicy;
38465#endif
38466#ifdef __cplusplus
38467}
38468#endif
38469
38470int
38471main ()
38472{
38473return f != pthread_attr_getschedpolicy;
38474 ;
38475 return 0;
38476}
38477_ACEOF
38478rm -f conftest.$ac_objext conftest$ac_exeext
38479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38480 (eval $ac_link) 2>conftest.er1
a848cd7e 38481 ac_status=$?
ac1cb8d3
VS
38482 grep -v '^ *+' conftest.er1 >conftest.err
38483 rm -f conftest.er1
38484 cat conftest.err >&5
a848cd7e
SC
38485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38486 (exit $ac_status); } &&
3f60522a
JS
38487 { ac_try='test -z "$ac_cxx_werror_flag"
38488 || test ! -s conftest.err'
ac1cb8d3
VS
38489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38490 (eval $ac_try) 2>&5
38491 ac_status=$?
38492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38493 (exit $ac_status); }; } &&
38494 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38496 (eval $ac_try) 2>&5
38497 ac_status=$?
38498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38499 (exit $ac_status); }; }; then
38500 ac_cv_func_pthread_attr_getschedpolicy=yes
38501else
38502 echo "$as_me: failed program was:" >&5
38503sed 's/^/| /' conftest.$ac_ext >&5
38504
38505ac_cv_func_pthread_attr_getschedpolicy=no
38506fi
ac1cb8d3
VS
38507rm -f conftest.err conftest.$ac_objext \
38508 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38509fi
38510echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
38511echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
38512if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
38513 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
38514echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
38515if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
38516 echo $ECHO_N "(cached) $ECHO_C" >&6
38517else
38518 cat >conftest.$ac_ext <<_ACEOF
38519/* confdefs.h. */
38520_ACEOF
38521cat confdefs.h >>conftest.$ac_ext
38522cat >>conftest.$ac_ext <<_ACEOF
38523/* end confdefs.h. */
ac1cb8d3
VS
38524/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
38525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38526#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
38527
a848cd7e
SC
38528/* System header to define __stub macros and hopefully few prototypes,
38529 which can conflict with char pthread_attr_setschedparam (); below.
38530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38531 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38532
a848cd7e
SC
38533#ifdef __STDC__
38534# include <limits.h>
38535#else
38536# include <assert.h>
38537#endif
ac1cb8d3
VS
38538
38539#undef pthread_attr_setschedparam
38540
a848cd7e
SC
38541/* Override any gcc2 internal prototype to avoid an error. */
38542#ifdef __cplusplus
38543extern "C"
38544{
38545#endif
38546/* We use char because int might match the return type of a gcc2
38547 builtin and then its argument prototype would still apply. */
38548char pthread_attr_setschedparam ();
38549/* The GNU C library defines this for functions which it implements
38550 to always fail with ENOSYS. Some functions are actually named
38551 something starting with __ and the normal name is an alias. */
38552#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
38553choke me
38554#else
38555char (*f) () = pthread_attr_setschedparam;
38556#endif
38557#ifdef __cplusplus
38558}
38559#endif
38560
38561int
38562main ()
38563{
38564return f != pthread_attr_setschedparam;
38565 ;
38566 return 0;
38567}
38568_ACEOF
38569rm -f conftest.$ac_objext conftest$ac_exeext
38570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38571 (eval $ac_link) 2>conftest.er1
a848cd7e 38572 ac_status=$?
ac1cb8d3
VS
38573 grep -v '^ *+' conftest.er1 >conftest.err
38574 rm -f conftest.er1
38575 cat conftest.err >&5
a848cd7e
SC
38576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38577 (exit $ac_status); } &&
3f60522a
JS
38578 { ac_try='test -z "$ac_cxx_werror_flag"
38579 || test ! -s conftest.err'
ac1cb8d3
VS
38580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38581 (eval $ac_try) 2>&5
38582 ac_status=$?
38583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38584 (exit $ac_status); }; } &&
38585 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38587 (eval $ac_try) 2>&5
38588 ac_status=$?
38589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38590 (exit $ac_status); }; }; then
38591 ac_cv_func_pthread_attr_setschedparam=yes
38592else
38593 echo "$as_me: failed program was:" >&5
38594sed 's/^/| /' conftest.$ac_ext >&5
38595
38596ac_cv_func_pthread_attr_setschedparam=no
38597fi
ac1cb8d3
VS
38598rm -f conftest.err conftest.$ac_objext \
38599 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38600fi
38601echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
38602echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
38603if test $ac_cv_func_pthread_attr_setschedparam = yes; then
38604 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
38605echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
38606if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
38607 echo $ECHO_N "(cached) $ECHO_C" >&6
38608else
38609 cat >conftest.$ac_ext <<_ACEOF
38610/* confdefs.h. */
38611_ACEOF
38612cat confdefs.h >>conftest.$ac_ext
38613cat >>conftest.$ac_ext <<_ACEOF
38614/* end confdefs.h. */
ac1cb8d3
VS
38615/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
38616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38617#define sched_get_priority_max innocuous_sched_get_priority_max
38618
a848cd7e
SC
38619/* System header to define __stub macros and hopefully few prototypes,
38620 which can conflict with char sched_get_priority_max (); below.
38621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38622 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38623
a848cd7e
SC
38624#ifdef __STDC__
38625# include <limits.h>
38626#else
38627# include <assert.h>
38628#endif
ac1cb8d3
VS
38629
38630#undef sched_get_priority_max
38631
a848cd7e
SC
38632/* Override any gcc2 internal prototype to avoid an error. */
38633#ifdef __cplusplus
38634extern "C"
38635{
38636#endif
38637/* We use char because int might match the return type of a gcc2
38638 builtin and then its argument prototype would still apply. */
38639char sched_get_priority_max ();
38640/* The GNU C library defines this for functions which it implements
38641 to always fail with ENOSYS. Some functions are actually named
38642 something starting with __ and the normal name is an alias. */
38643#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
38644choke me
38645#else
38646char (*f) () = sched_get_priority_max;
38647#endif
38648#ifdef __cplusplus
38649}
38650#endif
38651
38652int
38653main ()
38654{
38655return f != sched_get_priority_max;
38656 ;
38657 return 0;
38658}
38659_ACEOF
38660rm -f conftest.$ac_objext conftest$ac_exeext
38661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38662 (eval $ac_link) 2>conftest.er1
a848cd7e 38663 ac_status=$?
ac1cb8d3
VS
38664 grep -v '^ *+' conftest.er1 >conftest.err
38665 rm -f conftest.er1
38666 cat conftest.err >&5
a848cd7e
SC
38667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38668 (exit $ac_status); } &&
3f60522a
JS
38669 { ac_try='test -z "$ac_cxx_werror_flag"
38670 || test ! -s conftest.err'
ac1cb8d3
VS
38671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38672 (eval $ac_try) 2>&5
38673 ac_status=$?
38674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38675 (exit $ac_status); }; } &&
38676 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38678 (eval $ac_try) 2>&5
38679 ac_status=$?
38680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38681 (exit $ac_status); }; }; then
38682 ac_cv_func_sched_get_priority_max=yes
38683else
38684 echo "$as_me: failed program was:" >&5
38685sed 's/^/| /' conftest.$ac_ext >&5
38686
38687ac_cv_func_sched_get_priority_max=no
38688fi
ac1cb8d3
VS
38689rm -f conftest.err conftest.$ac_objext \
38690 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38691fi
38692echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
38693echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
38694if test $ac_cv_func_sched_get_priority_max = yes; then
38695 HAVE_PRIOR_FUNCS=1
38696else
38697 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
38698echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
38699if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
38700 echo $ECHO_N "(cached) $ECHO_C" >&6
38701else
38702 ac_check_lib_save_LIBS=$LIBS
38703LIBS="-lposix4 $LIBS"
38704cat >conftest.$ac_ext <<_ACEOF
38705/* confdefs.h. */
38706_ACEOF
38707cat confdefs.h >>conftest.$ac_ext
38708cat >>conftest.$ac_ext <<_ACEOF
38709/* end confdefs.h. */
38710
38711/* Override any gcc2 internal prototype to avoid an error. */
38712#ifdef __cplusplus
38713extern "C"
38714#endif
38715/* We use char because int might match the return type of a gcc2
38716 builtin and then its argument prototype would still apply. */
38717char sched_get_priority_max ();
38718int
38719main ()
38720{
38721sched_get_priority_max ();
38722 ;
38723 return 0;
38724}
38725_ACEOF
38726rm -f conftest.$ac_objext conftest$ac_exeext
38727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38728 (eval $ac_link) 2>conftest.er1
a848cd7e 38729 ac_status=$?
ac1cb8d3
VS
38730 grep -v '^ *+' conftest.er1 >conftest.err
38731 rm -f conftest.er1
38732 cat conftest.err >&5
a848cd7e
SC
38733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38734 (exit $ac_status); } &&
3f60522a
JS
38735 { ac_try='test -z "$ac_cxx_werror_flag"
38736 || test ! -s conftest.err'
ac1cb8d3
VS
38737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38738 (eval $ac_try) 2>&5
38739 ac_status=$?
38740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38741 (exit $ac_status); }; } &&
38742 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38744 (eval $ac_try) 2>&5
38745 ac_status=$?
38746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38747 (exit $ac_status); }; }; then
38748 ac_cv_lib_posix4_sched_get_priority_max=yes
38749else
38750 echo "$as_me: failed program was:" >&5
38751sed 's/^/| /' conftest.$ac_ext >&5
38752
38753ac_cv_lib_posix4_sched_get_priority_max=no
38754fi
ac1cb8d3
VS
38755rm -f conftest.err conftest.$ac_objext \
38756 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38757LIBS=$ac_check_lib_save_LIBS
38758fi
38759echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
38760echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
38761if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
38762
38763 HAVE_PRIOR_FUNCS=1
38764 POSIX4_LINK=" -lposix4"
38765
38766fi
38767
38768
38769fi
38770
38771
38772fi
38773
38774
38775fi
38776
38777
38778 if test "$HAVE_PRIOR_FUNCS" = 1; then
38779 cat >>confdefs.h <<\_ACEOF
38780#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
38781_ACEOF
38782
38783 else
38784 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
38785echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
38786 fi
38787
38788 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
38789echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
38790if test "${ac_cv_func_pthread_cancel+set}" = set; then
38791 echo $ECHO_N "(cached) $ECHO_C" >&6
38792else
38793 cat >conftest.$ac_ext <<_ACEOF
38794/* confdefs.h. */
38795_ACEOF
38796cat confdefs.h >>conftest.$ac_ext
38797cat >>conftest.$ac_ext <<_ACEOF
38798/* end confdefs.h. */
ac1cb8d3
VS
38799/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
38800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38801#define pthread_cancel innocuous_pthread_cancel
38802
a848cd7e
SC
38803/* System header to define __stub macros and hopefully few prototypes,
38804 which can conflict with char pthread_cancel (); below.
38805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38806 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38807
a848cd7e
SC
38808#ifdef __STDC__
38809# include <limits.h>
38810#else
38811# include <assert.h>
38812#endif
ac1cb8d3
VS
38813
38814#undef pthread_cancel
38815
a848cd7e
SC
38816/* Override any gcc2 internal prototype to avoid an error. */
38817#ifdef __cplusplus
38818extern "C"
38819{
38820#endif
38821/* We use char because int might match the return type of a gcc2
38822 builtin and then its argument prototype would still apply. */
38823char pthread_cancel ();
38824/* The GNU C library defines this for functions which it implements
38825 to always fail with ENOSYS. Some functions are actually named
38826 something starting with __ and the normal name is an alias. */
38827#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
38828choke me
38829#else
38830char (*f) () = pthread_cancel;
38831#endif
38832#ifdef __cplusplus
38833}
38834#endif
38835
38836int
38837main ()
38838{
38839return f != pthread_cancel;
38840 ;
38841 return 0;
38842}
38843_ACEOF
38844rm -f conftest.$ac_objext conftest$ac_exeext
38845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38846 (eval $ac_link) 2>conftest.er1
a848cd7e 38847 ac_status=$?
ac1cb8d3
VS
38848 grep -v '^ *+' conftest.er1 >conftest.err
38849 rm -f conftest.er1
38850 cat conftest.err >&5
a848cd7e
SC
38851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38852 (exit $ac_status); } &&
3f60522a
JS
38853 { ac_try='test -z "$ac_cxx_werror_flag"
38854 || test ! -s conftest.err'
ac1cb8d3
VS
38855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38856 (eval $ac_try) 2>&5
38857 ac_status=$?
38858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38859 (exit $ac_status); }; } &&
38860 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38862 (eval $ac_try) 2>&5
38863 ac_status=$?
38864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38865 (exit $ac_status); }; }; then
38866 ac_cv_func_pthread_cancel=yes
38867else
38868 echo "$as_me: failed program was:" >&5
38869sed 's/^/| /' conftest.$ac_ext >&5
38870
38871ac_cv_func_pthread_cancel=no
38872fi
ac1cb8d3
VS
38873rm -f conftest.err conftest.$ac_objext \
38874 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38875fi
38876echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
38877echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
38878if test $ac_cv_func_pthread_cancel = yes; then
38879 cat >>confdefs.h <<\_ACEOF
38880#define HAVE_PTHREAD_CANCEL 1
38881_ACEOF
38882
38883else
38884 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
38885echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
38886fi
38887
38888
abc736fd
MW
38889 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
38890echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
38891if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
38892 echo $ECHO_N "(cached) $ECHO_C" >&6
38893else
38894 cat >conftest.$ac_ext <<_ACEOF
38895/* confdefs.h. */
38896_ACEOF
38897cat confdefs.h >>conftest.$ac_ext
38898cat >>conftest.$ac_ext <<_ACEOF
38899/* end confdefs.h. */
38900/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
38901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38902#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
38903
38904/* System header to define __stub macros and hopefully few prototypes,
38905 which can conflict with char pthread_attr_setstacksize (); below.
38906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38907 <limits.h> exists even on freestanding compilers. */
38908
38909#ifdef __STDC__
38910# include <limits.h>
38911#else
38912# include <assert.h>
38913#endif
38914
38915#undef pthread_attr_setstacksize
38916
38917/* Override any gcc2 internal prototype to avoid an error. */
38918#ifdef __cplusplus
38919extern "C"
38920{
38921#endif
38922/* We use char because int might match the return type of a gcc2
38923 builtin and then its argument prototype would still apply. */
38924char pthread_attr_setstacksize ();
38925/* The GNU C library defines this for functions which it implements
38926 to always fail with ENOSYS. Some functions are actually named
38927 something starting with __ and the normal name is an alias. */
38928#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
38929choke me
38930#else
38931char (*f) () = pthread_attr_setstacksize;
38932#endif
38933#ifdef __cplusplus
38934}
38935#endif
38936
38937int
38938main ()
38939{
38940return f != pthread_attr_setstacksize;
38941 ;
38942 return 0;
38943}
38944_ACEOF
38945rm -f conftest.$ac_objext conftest$ac_exeext
38946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38947 (eval $ac_link) 2>conftest.er1
38948 ac_status=$?
38949 grep -v '^ *+' conftest.er1 >conftest.err
38950 rm -f conftest.er1
38951 cat conftest.err >&5
38952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38953 (exit $ac_status); } &&
3f60522a
JS
38954 { ac_try='test -z "$ac_cxx_werror_flag"
38955 || test ! -s conftest.err'
abc736fd
MW
38956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38957 (eval $ac_try) 2>&5
38958 ac_status=$?
38959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38960 (exit $ac_status); }; } &&
38961 { ac_try='test -s conftest$ac_exeext'
38962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38963 (eval $ac_try) 2>&5
38964 ac_status=$?
38965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38966 (exit $ac_status); }; }; then
38967 ac_cv_func_pthread_attr_setstacksize=yes
38968else
38969 echo "$as_me: failed program was:" >&5
38970sed 's/^/| /' conftest.$ac_ext >&5
38971
38972ac_cv_func_pthread_attr_setstacksize=no
38973fi
38974rm -f conftest.err conftest.$ac_objext \
38975 conftest$ac_exeext conftest.$ac_ext
38976fi
38977echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
38978echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
38979if test $ac_cv_func_pthread_attr_setstacksize = yes; then
38980 cat >>confdefs.h <<\_ACEOF
38981#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
38982_ACEOF
38983
38984fi
38985
a848cd7e
SC
38986
38987
38988 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
38989echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
38990if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
38991 echo $ECHO_N "(cached) $ECHO_C" >&6
38992else
38993
38994 cat >conftest.$ac_ext <<_ACEOF
38995/* confdefs.h. */
38996_ACEOF
38997cat confdefs.h >>conftest.$ac_ext
38998cat >>conftest.$ac_ext <<_ACEOF
38999/* end confdefs.h. */
39000#include <pthread.h>
39001int
39002main ()
39003{
39004
39005 pthread_mutexattr_t attr;
39006 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39007
39008 ;
39009 return 0;
39010}
39011_ACEOF
39012rm -f conftest.$ac_objext
39013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39014 (eval $ac_compile) 2>conftest.er1
a848cd7e 39015 ac_status=$?
ac1cb8d3
VS
39016 grep -v '^ *+' conftest.er1 >conftest.err
39017 rm -f conftest.er1
39018 cat conftest.err >&5
a848cd7e
SC
39019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39020 (exit $ac_status); } &&
3f60522a
JS
39021 { ac_try='test -z "$ac_cxx_werror_flag"
39022 || test ! -s conftest.err'
ac1cb8d3
VS
39023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39024 (eval $ac_try) 2>&5
39025 ac_status=$?
39026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39027 (exit $ac_status); }; } &&
39028 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39030 (eval $ac_try) 2>&5
39031 ac_status=$?
39032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39033 (exit $ac_status); }; }; then
123dca7d 39034 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
39035else
39036 echo "$as_me: failed program was:" >&5
39037sed 's/^/| /' conftest.$ac_ext >&5
39038
123dca7d 39039wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
39040
39041fi
ac1cb8d3 39042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39043
39044fi
39045echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
39046echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
39047
39048 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
39049 cat >>confdefs.h <<\_ACEOF
39050#define HAVE_PTHREAD_MUTEXATTR_T 1
39051_ACEOF
39052
123dca7d
VZ
39053
39054 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
39055echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
39056if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
39057 echo $ECHO_N "(cached) $ECHO_C" >&6
39058else
39059
39060 cat >conftest.$ac_ext <<_ACEOF
39061/* confdefs.h. */
39062_ACEOF
39063cat confdefs.h >>conftest.$ac_ext
39064cat >>conftest.$ac_ext <<_ACEOF
39065/* end confdefs.h. */
39066#include <pthread.h>
39067int
39068main ()
39069{
39070
39071 pthread_mutexattr_t attr;
39072 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39073
39074 ;
39075 return 0;
39076}
39077_ACEOF
39078rm -f conftest.$ac_objext
39079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39080 (eval $ac_compile) 2>conftest.er1
39081 ac_status=$?
39082 grep -v '^ *+' conftest.er1 >conftest.err
39083 rm -f conftest.er1
39084 cat conftest.err >&5
39085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39086 (exit $ac_status); } &&
3f60522a
JS
39087 { ac_try='test -z "$ac_cxx_werror_flag"
39088 || test ! -s conftest.err'
123dca7d
VZ
39089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39090 (eval $ac_try) 2>&5
39091 ac_status=$?
39092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39093 (exit $ac_status); }; } &&
39094 { ac_try='test -s conftest.$ac_objext'
39095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39096 (eval $ac_try) 2>&5
39097 ac_status=$?
39098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39099 (exit $ac_status); }; }; then
39100 wx_cv_func_pthread_mutexattr_settype_decl=yes
39101else
39102 echo "$as_me: failed program was:" >&5
39103sed 's/^/| /' conftest.$ac_ext >&5
39104
39105wx_cv_func_pthread_mutexattr_settype_decl=no
39106
39107fi
39108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39109
39110fi
39111echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
39112echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
39113 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
39114 cat >>confdefs.h <<\_ACEOF
39115#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
39116_ACEOF
39117
39118 fi
a848cd7e
SC
39119 else
39120 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
39121echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
39122if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
39123 echo $ECHO_N "(cached) $ECHO_C" >&6
39124else
39125
39126 cat >conftest.$ac_ext <<_ACEOF
39127/* confdefs.h. */
39128_ACEOF
39129cat confdefs.h >>conftest.$ac_ext
39130cat >>conftest.$ac_ext <<_ACEOF
39131/* end confdefs.h. */
39132#include <pthread.h>
39133int
39134main ()
39135{
39136
39137 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
39138
39139 ;
39140 return 0;
39141}
39142_ACEOF
39143rm -f conftest.$ac_objext
39144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39145 (eval $ac_compile) 2>conftest.er1
a848cd7e 39146 ac_status=$?
ac1cb8d3
VS
39147 grep -v '^ *+' conftest.er1 >conftest.err
39148 rm -f conftest.er1
39149 cat conftest.err >&5
a848cd7e
SC
39150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39151 (exit $ac_status); } &&
3f60522a
JS
39152 { ac_try='test -z "$ac_cxx_werror_flag"
39153 || test ! -s conftest.err'
ac1cb8d3
VS
39154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39155 (eval $ac_try) 2>&5
39156 ac_status=$?
39157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39158 (exit $ac_status); }; } &&
39159 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39161 (eval $ac_try) 2>&5
39162 ac_status=$?
39163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39164 (exit $ac_status); }; }; then
39165
39166 wx_cv_type_pthread_rec_mutex_init=yes
39167
39168else
39169 echo "$as_me: failed program was:" >&5
39170sed 's/^/| /' conftest.$ac_ext >&5
39171
39172
39173 wx_cv_type_pthread_rec_mutex_init=no
39174
39175
39176fi
ac1cb8d3 39177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39178
39179fi
39180echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
39181echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
39182 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
39183 cat >>confdefs.h <<\_ACEOF
39184#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
39185_ACEOF
39186
39187 else
39188 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
39189echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
39190 fi
39191 fi
39192 fi
39193
39194else
39195 if test "$wxUSE_THREADS" = "yes" ; then
39196 case "${host}" in
39197 *-*-mingw32* )
39198 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
39199echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
39200if test "${wx_cv_cflags_mthread+set}" = set; then
39201 echo $ECHO_N "(cached) $ECHO_C" >&6
39202else
39203
e56f4f9e
VZ
39204 CXXFLAGS_OLD="$CXXFLAGS"
39205 CXXFLAGS="-mthreads $CXXFLAGS"
a848cd7e
SC
39206 cat >conftest.$ac_ext <<_ACEOF
39207/* confdefs.h. */
39208_ACEOF
39209cat confdefs.h >>conftest.$ac_ext
39210cat >>conftest.$ac_ext <<_ACEOF
39211/* end confdefs.h. */
39212
39213int
39214main ()
39215{
39216
39217 ;
39218 return 0;
39219}
39220_ACEOF
39221rm -f conftest.$ac_objext
39222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39223 (eval $ac_compile) 2>conftest.er1
a848cd7e 39224 ac_status=$?
ac1cb8d3
VS
39225 grep -v '^ *+' conftest.er1 >conftest.err
39226 rm -f conftest.er1
39227 cat conftest.err >&5
a848cd7e
SC
39228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39229 (exit $ac_status); } &&
3f60522a
JS
39230 { ac_try='test -z "$ac_cxx_werror_flag"
39231 || test ! -s conftest.err'
ac1cb8d3
VS
39232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39233 (eval $ac_try) 2>&5
39234 ac_status=$?
39235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39236 (exit $ac_status); }; } &&
39237 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39239 (eval $ac_try) 2>&5
39240 ac_status=$?
39241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39242 (exit $ac_status); }; }; then
39243 wx_cv_cflags_mthread=yes
39244else
39245 echo "$as_me: failed program was:" >&5
39246sed 's/^/| /' conftest.$ac_ext >&5
39247
39248wx_cv_cflags_mthread=no
39249
39250fi
ac1cb8d3 39251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39252
39253
39254fi
39255echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
39256echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
39257
39258 if test "$wx_cv_cflags_mthread" = "yes"; then
e56f4f9e 39259 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
a848cd7e
SC
39260 LDFLAGS="$LDFLAGS -mthreads"
39261 else
e56f4f9e 39262 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
39263 fi
39264 ;;
39265 *-pc-os2*emx )
5ff751d6
VZ
39266 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
39267 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
39268 LDFLAGS="$LDFLAGS -Zmt"
39269 ;;
39270 esac
39271 fi
39272fi
39273
004ee6da
RL
39274echo "$as_me:$LINENO: checking for localtime_r" >&5
39275echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
39276if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
39277 echo $ECHO_N "(cached) $ECHO_C" >&6
39278else
39279 cat >conftest.$ac_ext <<_ACEOF
39280/* confdefs.h. */
39281_ACEOF
39282cat confdefs.h >>conftest.$ac_ext
39283cat >>conftest.$ac_ext <<_ACEOF
39284/* end confdefs.h. */
004ee6da 39285/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 39286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 39287#define localtime_r innocuous_localtime_r
ac1cb8d3 39288
a848cd7e 39289/* System header to define __stub macros and hopefully few prototypes,
004ee6da 39290 which can conflict with char localtime_r (); below.
a848cd7e
SC
39291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39292 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39293
a848cd7e
SC
39294#ifdef __STDC__
39295# include <limits.h>
39296#else
39297# include <assert.h>
39298#endif
ac1cb8d3 39299
004ee6da 39300#undef localtime_r
ac1cb8d3 39301
a848cd7e
SC
39302/* Override any gcc2 internal prototype to avoid an error. */
39303#ifdef __cplusplus
39304extern "C"
39305{
39306#endif
39307/* We use char because int might match the return type of a gcc2
39308 builtin and then its argument prototype would still apply. */
004ee6da 39309char localtime_r ();
a848cd7e
SC
39310/* The GNU C library defines this for functions which it implements
39311 to always fail with ENOSYS. Some functions are actually named
39312 something starting with __ and the normal name is an alias. */
004ee6da 39313#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
39314choke me
39315#else
004ee6da 39316char (*f) () = localtime_r;
a848cd7e
SC
39317#endif
39318#ifdef __cplusplus
39319}
39320#endif
39321
39322int
39323main ()
39324{
004ee6da
RL
39325return f != localtime_r;
39326 ;
39327 return 0;
39328}
39329_ACEOF
39330rm -f conftest.$ac_objext conftest$ac_exeext
39331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39332 (eval $ac_link) 2>conftest.er1
39333 ac_status=$?
39334 grep -v '^ *+' conftest.er1 >conftest.err
39335 rm -f conftest.er1
39336 cat conftest.err >&5
39337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39338 (exit $ac_status); } &&
3f60522a
JS
39339 { ac_try='test -z "$ac_cxx_werror_flag"
39340 || test ! -s conftest.err'
004ee6da
RL
39341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39342 (eval $ac_try) 2>&5
39343 ac_status=$?
39344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39345 (exit $ac_status); }; } &&
39346 { ac_try='test -s conftest$ac_exeext'
39347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39348 (eval $ac_try) 2>&5
39349 ac_status=$?
39350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39351 (exit $ac_status); }; }; then
39352 ac_cv_func_localtime_r=yes
39353else
39354 echo "$as_me: failed program was:" >&5
39355sed 's/^/| /' conftest.$ac_ext >&5
39356
39357ac_cv_func_localtime_r=no
39358fi
39359rm -f conftest.err conftest.$ac_objext \
39360 conftest$ac_exeext conftest.$ac_ext
39361fi
39362echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
39363echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
39364if test $ac_cv_func_localtime_r = yes; then
39365 cat >>confdefs.h <<\_ACEOF
39366#define HAVE_LOCALTIME_R 1
39367_ACEOF
39368
39369fi
39370
39371echo "$as_me:$LINENO: checking for gmtime_r" >&5
39372echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
39373if test "${ac_cv_func_gmtime_r+set}" = set; then
39374 echo $ECHO_N "(cached) $ECHO_C" >&6
39375else
39376 cat >conftest.$ac_ext <<_ACEOF
39377/* confdefs.h. */
39378_ACEOF
39379cat confdefs.h >>conftest.$ac_ext
39380cat >>conftest.$ac_ext <<_ACEOF
39381/* end confdefs.h. */
39382/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
39383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39384#define gmtime_r innocuous_gmtime_r
39385
39386/* System header to define __stub macros and hopefully few prototypes,
39387 which can conflict with char gmtime_r (); below.
39388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39389 <limits.h> exists even on freestanding compilers. */
39390
39391#ifdef __STDC__
39392# include <limits.h>
39393#else
39394# include <assert.h>
39395#endif
39396
39397#undef gmtime_r
39398
39399/* Override any gcc2 internal prototype to avoid an error. */
39400#ifdef __cplusplus
39401extern "C"
39402{
39403#endif
39404/* We use char because int might match the return type of a gcc2
39405 builtin and then its argument prototype would still apply. */
39406char gmtime_r ();
39407/* The GNU C library defines this for functions which it implements
39408 to always fail with ENOSYS. Some functions are actually named
39409 something starting with __ and the normal name is an alias. */
39410#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
39411choke me
39412#else
39413char (*f) () = gmtime_r;
39414#endif
39415#ifdef __cplusplus
39416}
39417#endif
39418
39419int
39420main ()
39421{
39422return f != gmtime_r;
39423 ;
39424 return 0;
39425}
39426_ACEOF
39427rm -f conftest.$ac_objext conftest$ac_exeext
39428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39429 (eval $ac_link) 2>conftest.er1
39430 ac_status=$?
39431 grep -v '^ *+' conftest.er1 >conftest.err
39432 rm -f conftest.er1
39433 cat conftest.err >&5
39434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39435 (exit $ac_status); } &&
3f60522a
JS
39436 { ac_try='test -z "$ac_cxx_werror_flag"
39437 || test ! -s conftest.err'
004ee6da
RL
39438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39439 (eval $ac_try) 2>&5
39440 ac_status=$?
39441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39442 (exit $ac_status); }; } &&
39443 { ac_try='test -s conftest$ac_exeext'
39444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39445 (eval $ac_try) 2>&5
39446 ac_status=$?
39447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39448 (exit $ac_status); }; }; then
39449 ac_cv_func_gmtime_r=yes
39450else
39451 echo "$as_me: failed program was:" >&5
39452sed 's/^/| /' conftest.$ac_ext >&5
39453
39454ac_cv_func_gmtime_r=no
39455fi
39456rm -f conftest.err conftest.$ac_objext \
39457 conftest$ac_exeext conftest.$ac_ext
39458fi
39459echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
39460echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
39461if test $ac_cv_func_gmtime_r = yes; then
39462 cat >>confdefs.h <<\_ACEOF
39463#define HAVE_GMTIME_R 1
39464_ACEOF
39465
39466fi
39467
39468echo "$as_me:$LINENO: checking for readdir_r" >&5
39469echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
39470if test "${ac_cv_func_readdir_r+set}" = set; then
39471 echo $ECHO_N "(cached) $ECHO_C" >&6
39472else
39473 cat >conftest.$ac_ext <<_ACEOF
39474/* confdefs.h. */
39475_ACEOF
39476cat confdefs.h >>conftest.$ac_ext
39477cat >>conftest.$ac_ext <<_ACEOF
39478/* end confdefs.h. */
39479/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
39480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39481#define readdir_r innocuous_readdir_r
39482
39483/* System header to define __stub macros and hopefully few prototypes,
39484 which can conflict with char readdir_r (); below.
39485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39486 <limits.h> exists even on freestanding compilers. */
39487
39488#ifdef __STDC__
39489# include <limits.h>
39490#else
39491# include <assert.h>
39492#endif
39493
39494#undef readdir_r
39495
39496/* Override any gcc2 internal prototype to avoid an error. */
39497#ifdef __cplusplus
39498extern "C"
39499{
39500#endif
39501/* We use char because int might match the return type of a gcc2
39502 builtin and then its argument prototype would still apply. */
39503char readdir_r ();
39504/* The GNU C library defines this for functions which it implements
39505 to always fail with ENOSYS. Some functions are actually named
39506 something starting with __ and the normal name is an alias. */
39507#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
39508choke me
39509#else
39510char (*f) () = readdir_r;
39511#endif
39512#ifdef __cplusplus
39513}
39514#endif
39515
39516int
39517main ()
39518{
39519return f != readdir_r;
39520 ;
39521 return 0;
39522}
39523_ACEOF
39524rm -f conftest.$ac_objext conftest$ac_exeext
39525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39526 (eval $ac_link) 2>conftest.er1
39527 ac_status=$?
39528 grep -v '^ *+' conftest.er1 >conftest.err
39529 rm -f conftest.er1
39530 cat conftest.err >&5
39531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39532 (exit $ac_status); } &&
3f60522a
JS
39533 { ac_try='test -z "$ac_cxx_werror_flag"
39534 || test ! -s conftest.err'
004ee6da
RL
39535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39536 (eval $ac_try) 2>&5
39537 ac_status=$?
39538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39539 (exit $ac_status); }; } &&
39540 { ac_try='test -s conftest$ac_exeext'
39541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39542 (eval $ac_try) 2>&5
39543 ac_status=$?
39544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39545 (exit $ac_status); }; }; then
39546 ac_cv_func_readdir_r=yes
39547else
39548 echo "$as_me: failed program was:" >&5
39549sed 's/^/| /' conftest.$ac_ext >&5
39550
39551ac_cv_func_readdir_r=no
39552fi
39553rm -f conftest.err conftest.$ac_objext \
39554 conftest$ac_exeext conftest.$ac_ext
39555fi
39556echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
39557echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
39558if test $ac_cv_func_readdir_r = yes; then
39559 cat >>confdefs.h <<\_ACEOF
39560#define HAVE_READDIR_R 1
39561_ACEOF
39562
39563fi
39564
004ee6da 39565
004ee6da
RL
39566
39567
39568 ac_ext=c
39569ac_cpp='$CPP $CPPFLAGS'
39570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39572ac_compiler_gnu=$ac_cv_c_compiler_gnu
39573
39574 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
39575echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
39576
39577 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
39578 echo $ECHO_N "(cached) $ECHO_C" >&6
39579else
39580
39581
3f60522a 39582################################################################
004ee6da
RL
39583
39584ac_cv_func_which_gethostbyname_r=unknown
39585
39586#
39587# ONE ARGUMENT (sanity check)
39588#
39589
39590# This should fail, as there is no variant of gethostbyname_r() that takes
39591# a single argument. If it actually compiles, then we can assume that
39592# netdb.h is not declaring the function, and the compiler is thereby
39593# assuming an implicit prototype. In which case, we're out of luck.
39594#
39595cat >conftest.$ac_ext <<_ACEOF
39596/* confdefs.h. */
39597_ACEOF
39598cat confdefs.h >>conftest.$ac_ext
39599cat >>conftest.$ac_ext <<_ACEOF
39600/* end confdefs.h. */
39601#include <netdb.h>
39602int
39603main ()
39604{
39605
39606 char *name = "www.gnu.org";
39607 (void)gethostbyname_r(name) /* ; */
39608
39609 ;
39610 return 0;
39611}
39612_ACEOF
39613rm -f conftest.$ac_objext
39614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39615 (eval $ac_compile) 2>conftest.er1
39616 ac_status=$?
39617 grep -v '^ *+' conftest.er1 >conftest.err
39618 rm -f conftest.er1
39619 cat conftest.err >&5
39620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39621 (exit $ac_status); } &&
3f60522a
JS
39622 { ac_try='test -z "$ac_c_werror_flag"
39623 || test ! -s conftest.err'
004ee6da
RL
39624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39625 (eval $ac_try) 2>&5
39626 ac_status=$?
39627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39628 (exit $ac_status); }; } &&
39629 { ac_try='test -s conftest.$ac_objext'
39630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39631 (eval $ac_try) 2>&5
39632 ac_status=$?
39633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39634 (exit $ac_status); }; }; then
39635 ac_cv_func_which_gethostbyname_r=no
39636else
39637 echo "$as_me: failed program was:" >&5
39638sed 's/^/| /' conftest.$ac_ext >&5
39639
39640fi
39641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39642
39643#
39644# SIX ARGUMENTS
39645# (e.g. Linux)
39646#
39647
39648if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39649
39650cat >conftest.$ac_ext <<_ACEOF
39651/* confdefs.h. */
39652_ACEOF
39653cat confdefs.h >>conftest.$ac_ext
39654cat >>conftest.$ac_ext <<_ACEOF
39655/* end confdefs.h. */
39656#include <netdb.h>
39657int
39658main ()
39659{
39660
39661 char *name = "www.gnu.org";
39662 struct hostent ret, *retp;
39663 char buf[1024];
39664 int buflen = 1024;
39665 int my_h_errno;
39666 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
39667
39668 ;
39669 return 0;
39670}
39671_ACEOF
39672rm -f conftest.$ac_objext
39673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39674 (eval $ac_compile) 2>conftest.er1
39675 ac_status=$?
39676 grep -v '^ *+' conftest.er1 >conftest.err
39677 rm -f conftest.er1
39678 cat conftest.err >&5
39679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39680 (exit $ac_status); } &&
3f60522a
JS
39681 { ac_try='test -z "$ac_c_werror_flag"
39682 || test ! -s conftest.err'
004ee6da
RL
39683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39684 (eval $ac_try) 2>&5
39685 ac_status=$?
39686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39687 (exit $ac_status); }; } &&
39688 { ac_try='test -s conftest.$ac_objext'
39689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39690 (eval $ac_try) 2>&5
39691 ac_status=$?
39692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39693 (exit $ac_status); }; }; then
39694 ac_cv_func_which_gethostbyname_r=six
39695else
39696 echo "$as_me: failed program was:" >&5
39697sed 's/^/| /' conftest.$ac_ext >&5
39698
39699fi
39700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39701
39702fi
39703
39704#
39705# FIVE ARGUMENTS
39706# (e.g. Solaris)
39707#
39708
39709if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39710
39711cat >conftest.$ac_ext <<_ACEOF
39712/* confdefs.h. */
39713_ACEOF
39714cat confdefs.h >>conftest.$ac_ext
39715cat >>conftest.$ac_ext <<_ACEOF
39716/* end confdefs.h. */
39717#include <netdb.h>
39718int
39719main ()
39720{
39721
39722 char *name = "www.gnu.org";
39723 struct hostent ret;
39724 char buf[1024];
39725 int buflen = 1024;
39726 int my_h_errno;
39727 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
39728
39729 ;
39730 return 0;
39731}
39732_ACEOF
39733rm -f conftest.$ac_objext
39734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39735 (eval $ac_compile) 2>conftest.er1
39736 ac_status=$?
39737 grep -v '^ *+' conftest.er1 >conftest.err
39738 rm -f conftest.er1
39739 cat conftest.err >&5
39740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39741 (exit $ac_status); } &&
3f60522a
JS
39742 { ac_try='test -z "$ac_c_werror_flag"
39743 || test ! -s conftest.err'
004ee6da
RL
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); }; } &&
39749 { ac_try='test -s conftest.$ac_objext'
39750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39751 (eval $ac_try) 2>&5
39752 ac_status=$?
39753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39754 (exit $ac_status); }; }; then
39755 ac_cv_func_which_gethostbyname_r=five
39756else
39757 echo "$as_me: failed program was:" >&5
39758sed 's/^/| /' conftest.$ac_ext >&5
39759
39760fi
39761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39762
39763fi
39764
39765#
39766# THREE ARGUMENTS
39767# (e.g. AIX, HP-UX, Tru64)
39768#
39769
39770if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39771
39772cat >conftest.$ac_ext <<_ACEOF
39773/* confdefs.h. */
39774_ACEOF
39775cat confdefs.h >>conftest.$ac_ext
39776cat >>conftest.$ac_ext <<_ACEOF
39777/* end confdefs.h. */
39778#include <netdb.h>
39779int
39780main ()
39781{
39782
39783 char *name = "www.gnu.org";
39784 struct hostent ret;
39785 struct hostent_data data;
39786 (void)gethostbyname_r(name, &ret, &data) /* ; */
39787
39788 ;
39789 return 0;
39790}
39791_ACEOF
39792rm -f conftest.$ac_objext
39793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39794 (eval $ac_compile) 2>conftest.er1
39795 ac_status=$?
39796 grep -v '^ *+' conftest.er1 >conftest.err
39797 rm -f conftest.er1
39798 cat conftest.err >&5
39799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39800 (exit $ac_status); } &&
3f60522a
JS
39801 { ac_try='test -z "$ac_c_werror_flag"
39802 || test ! -s conftest.err'
004ee6da
RL
39803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39804 (eval $ac_try) 2>&5
39805 ac_status=$?
39806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39807 (exit $ac_status); }; } &&
39808 { ac_try='test -s conftest.$ac_objext'
39809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39810 (eval $ac_try) 2>&5
39811 ac_status=$?
39812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39813 (exit $ac_status); }; }; then
39814 ac_cv_func_which_gethostbyname_r=three
39815else
39816 echo "$as_me: failed program was:" >&5
39817sed 's/^/| /' conftest.$ac_ext >&5
39818
39819fi
39820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39821
39822fi
39823
3f60522a 39824################################################################
004ee6da
RL
39825
39826
39827fi
39828
39829case "$ac_cv_func_which_gethostbyname_r" in
39830 three)
39831 echo "$as_me:$LINENO: result: three" >&5
39832echo "${ECHO_T}three" >&6
39833 cat >>confdefs.h <<\_ACEOF
39834#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
39835_ACEOF
39836
39837 ;;
39838
39839 five)
39840 echo "$as_me:$LINENO: result: five" >&5
39841echo "${ECHO_T}five" >&6
39842 cat >>confdefs.h <<\_ACEOF
39843#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
39844_ACEOF
39845
39846 ;;
39847
39848 six)
39849 echo "$as_me:$LINENO: result: six" >&5
39850echo "${ECHO_T}six" >&6
39851 cat >>confdefs.h <<\_ACEOF
39852#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
39853_ACEOF
39854
39855 ;;
39856
39857 no)
39858 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
39859echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
39860 ;;
39861
39862 unknown)
39863 echo "$as_me:$LINENO: result: can't tell" >&5
39864echo "${ECHO_T}can't tell" >&6
39865 ;;
39866
39867 *)
39868 { { echo "$as_me:$LINENO: error: internal error" >&5
39869echo "$as_me: error: internal error" >&2;}
39870 { (exit 1); exit 1; }; }
39871 ;;
39872esac
39873
5ec3bc43
JS
39874ac_ext=cc
39875ac_cpp='$CXXCPP $CPPFLAGS'
39876ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39877ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39878ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
004ee6da
RL
39879
39880
39881
39882 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
39883 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
39884 echo "$as_me:$LINENO: checking for gethostbyname" >&5
39885echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
39886if test "${ac_cv_func_gethostbyname+set}" = set; then
39887 echo $ECHO_N "(cached) $ECHO_C" >&6
39888else
39889 cat >conftest.$ac_ext <<_ACEOF
39890/* confdefs.h. */
39891_ACEOF
39892cat confdefs.h >>conftest.$ac_ext
39893cat >>conftest.$ac_ext <<_ACEOF
39894/* end confdefs.h. */
39895/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
39896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39897#define gethostbyname innocuous_gethostbyname
39898
39899/* System header to define __stub macros and hopefully few prototypes,
39900 which can conflict with char gethostbyname (); below.
39901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39902 <limits.h> exists even on freestanding compilers. */
39903
39904#ifdef __STDC__
39905# include <limits.h>
39906#else
39907# include <assert.h>
39908#endif
39909
39910#undef gethostbyname
39911
39912/* Override any gcc2 internal prototype to avoid an error. */
39913#ifdef __cplusplus
39914extern "C"
39915{
39916#endif
39917/* We use char because int might match the return type of a gcc2
39918 builtin and then its argument prototype would still apply. */
39919char gethostbyname ();
39920/* The GNU C library defines this for functions which it implements
39921 to always fail with ENOSYS. Some functions are actually named
39922 something starting with __ and the normal name is an alias. */
39923#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
39924choke me
39925#else
39926char (*f) () = gethostbyname;
39927#endif
39928#ifdef __cplusplus
39929}
39930#endif
39931
39932int
39933main ()
39934{
39935return f != gethostbyname;
39936 ;
39937 return 0;
39938}
39939_ACEOF
39940rm -f conftest.$ac_objext conftest$ac_exeext
39941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39942 (eval $ac_link) 2>conftest.er1
39943 ac_status=$?
39944 grep -v '^ *+' conftest.er1 >conftest.err
39945 rm -f conftest.er1
39946 cat conftest.err >&5
39947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39948 (exit $ac_status); } &&
3f60522a
JS
39949 { ac_try='test -z "$ac_cxx_werror_flag"
39950 || test ! -s conftest.err'
004ee6da
RL
39951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39952 (eval $ac_try) 2>&5
39953 ac_status=$?
39954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39955 (exit $ac_status); }; } &&
39956 { ac_try='test -s conftest$ac_exeext'
39957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39958 (eval $ac_try) 2>&5
39959 ac_status=$?
39960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39961 (exit $ac_status); }; }; then
39962 ac_cv_func_gethostbyname=yes
39963else
39964 echo "$as_me: failed program was:" >&5
39965sed 's/^/| /' conftest.$ac_ext >&5
39966
39967ac_cv_func_gethostbyname=no
39968fi
39969rm -f conftest.err conftest.$ac_objext \
39970 conftest$ac_exeext conftest.$ac_ext
39971fi
39972echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
39973echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
39974if test $ac_cv_func_gethostbyname = yes; then
39975 cat >>confdefs.h <<\_ACEOF
39976#define HAVE_GETHOSTBYNAME 1
39977_ACEOF
39978
39979fi
39980
39981 fi
39982 echo "$as_me:$LINENO: checking for getservbyname_r" >&5
39983echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
004ee6da
RL
39984if test "${ac_cv_func_getservbyname_r+set}" = set; then
39985 echo $ECHO_N "(cached) $ECHO_C" >&6
39986else
39987 cat >conftest.$ac_ext <<_ACEOF
39988/* confdefs.h. */
39989_ACEOF
39990cat confdefs.h >>conftest.$ac_ext
39991cat >>conftest.$ac_ext <<_ACEOF
39992/* end confdefs.h. */
39993/* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r.
39994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39995#define getservbyname_r innocuous_getservbyname_r
39996
39997/* System header to define __stub macros and hopefully few prototypes,
39998 which can conflict with char getservbyname_r (); below.
39999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40000 <limits.h> exists even on freestanding compilers. */
40001
40002#ifdef __STDC__
40003# include <limits.h>
40004#else
40005# include <assert.h>
40006#endif
40007
40008#undef getservbyname_r
40009
40010/* Override any gcc2 internal prototype to avoid an error. */
40011#ifdef __cplusplus
40012extern "C"
40013{
40014#endif
40015/* We use char because int might match the return type of a gcc2
40016 builtin and then its argument prototype would still apply. */
40017char getservbyname_r ();
40018/* The GNU C library defines this for functions which it implements
40019 to always fail with ENOSYS. Some functions are actually named
40020 something starting with __ and the normal name is an alias. */
40021#if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r)
40022choke me
40023#else
40024char (*f) () = getservbyname_r;
40025#endif
40026#ifdef __cplusplus
40027}
40028#endif
40029
40030int
40031main ()
40032{
40033return f != getservbyname_r;
40034 ;
40035 return 0;
40036}
40037_ACEOF
40038rm -f conftest.$ac_objext conftest$ac_exeext
40039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40040 (eval $ac_link) 2>conftest.er1
40041 ac_status=$?
40042 grep -v '^ *+' conftest.er1 >conftest.err
40043 rm -f conftest.er1
40044 cat conftest.err >&5
40045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40046 (exit $ac_status); } &&
3f60522a
JS
40047 { ac_try='test -z "$ac_cxx_werror_flag"
40048 || test ! -s conftest.err'
004ee6da
RL
40049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40050 (eval $ac_try) 2>&5
40051 ac_status=$?
40052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40053 (exit $ac_status); }; } &&
40054 { ac_try='test -s conftest$ac_exeext'
40055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40056 (eval $ac_try) 2>&5
40057 ac_status=$?
40058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40059 (exit $ac_status); }; }; then
40060 ac_cv_func_getservbyname_r=yes
40061else
40062 echo "$as_me: failed program was:" >&5
40063sed 's/^/| /' conftest.$ac_ext >&5
40064
40065ac_cv_func_getservbyname_r=no
40066fi
40067rm -f conftest.err conftest.$ac_objext \
40068 conftest$ac_exeext conftest.$ac_ext
40069fi
40070echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5
40071echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6
40072if test $ac_cv_func_getservbyname_r = yes; then
99879bbf 40073 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40074/* confdefs.h. */
40075_ACEOF
40076cat confdefs.h >>conftest.$ac_ext
40077cat >>conftest.$ac_ext <<_ACEOF
40078/* end confdefs.h. */
99879bbf 40079#include <netdb.h>
004ee6da
RL
40080int
40081main ()
40082{
40083
99879bbf
MR
40084 char *name;
40085 char *proto;
40086 struct servent *se;
40087 struct servent_data data;
40088 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
40089
40090 ;
40091 return 0;
40092}
40093_ACEOF
40094rm -f conftest.$ac_objext
40095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40096 (eval $ac_compile) 2>conftest.er1
40097 ac_status=$?
40098 grep -v '^ *+' conftest.er1 >conftest.err
40099 rm -f conftest.er1
40100 cat conftest.err >&5
40101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40102 (exit $ac_status); } &&
3f60522a
JS
40103 { ac_try='test -z "$ac_cxx_werror_flag"
40104 || test ! -s conftest.err'
004ee6da
RL
40105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40106 (eval $ac_try) 2>&5
40107 ac_status=$?
40108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40109 (exit $ac_status); }; } &&
40110 { ac_try='test -s conftest.$ac_objext'
40111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40112 (eval $ac_try) 2>&5
40113 ac_status=$?
40114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40115 (exit $ac_status); }; }; then
40116 ac_cv_func_which_getservbyname_r=four
40117else
40118 echo "$as_me: failed program was:" >&5
40119sed 's/^/| /' conftest.$ac_ext >&5
40120
99879bbf 40121cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40122/* confdefs.h. */
40123_ACEOF
40124cat confdefs.h >>conftest.$ac_ext
40125cat >>conftest.$ac_ext <<_ACEOF
40126/* end confdefs.h. */
99879bbf 40127#include <netdb.h>
004ee6da
RL
40128int
40129main ()
40130{
40131
99879bbf
MR
40132 char *name;
40133 char *proto;
40134 struct servent *se, *res;
40135 char buffer[2048];
40136 int buflen = 2048;
40137 (void) getservbyname_r(name, proto, se, buffer, buflen, &res);
004ee6da
RL
40138
40139 ;
40140 return 0;
40141}
40142_ACEOF
40143rm -f conftest.$ac_objext
40144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40145 (eval $ac_compile) 2>conftest.er1
40146 ac_status=$?
40147 grep -v '^ *+' conftest.er1 >conftest.err
40148 rm -f conftest.er1
40149 cat conftest.err >&5
40150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40151 (exit $ac_status); } &&
3f60522a
JS
40152 { ac_try='test -z "$ac_cxx_werror_flag"
40153 || test ! -s conftest.err'
004ee6da
RL
40154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40155 (eval $ac_try) 2>&5
40156 ac_status=$?
40157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40158 (exit $ac_status); }; } &&
40159 { ac_try='test -s conftest.$ac_objext'
40160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40161 (eval $ac_try) 2>&5
40162 ac_status=$?
40163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40164 (exit $ac_status); }; }; then
40165 ac_cv_func_which_getservbyname_r=six
40166else
40167 echo "$as_me: failed program was:" >&5
40168sed 's/^/| /' conftest.$ac_ext >&5
40169
99879bbf 40170cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40171/* confdefs.h. */
40172_ACEOF
40173cat confdefs.h >>conftest.$ac_ext
40174cat >>conftest.$ac_ext <<_ACEOF
40175/* end confdefs.h. */
99879bbf 40176#include <netdb.h>
004ee6da
RL
40177int
40178main ()
40179{
40180
99879bbf
MR
40181 char *name;
40182 char *proto;
40183 struct servent *se;
40184 char buffer[2048];
40185 int buflen = 2048;
40186 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
40187
40188 ;
40189 return 0;
40190}
40191_ACEOF
40192rm -f conftest.$ac_objext
40193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40194 (eval $ac_compile) 2>conftest.er1
40195 ac_status=$?
40196 grep -v '^ *+' conftest.er1 >conftest.err
40197 rm -f conftest.er1
40198 cat conftest.err >&5
40199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40200 (exit $ac_status); } &&
3f60522a
JS
40201 { ac_try='test -z "$ac_cxx_werror_flag"
40202 || test ! -s conftest.err'
004ee6da
RL
40203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40204 (eval $ac_try) 2>&5
40205 ac_status=$?
40206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40207 (exit $ac_status); }; } &&
40208 { ac_try='test -s conftest.$ac_objext'
40209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40210 (eval $ac_try) 2>&5
40211 ac_status=$?
40212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40213 (exit $ac_status); }; }; then
40214 ac_cv_func_which_getservbyname_r=five
40215else
40216 echo "$as_me: failed program was:" >&5
40217sed 's/^/| /' conftest.$ac_ext >&5
40218
40219ac_cv_func_which_getservbyname_r=no
99879bbf 40220
004ee6da
RL
40221fi
40222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40223
004ee6da
RL
40224fi
40225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40226
004ee6da
RL
40227fi
40228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
004ee6da
RL
40229else
40230 ac_cv_func_which_getservbyname_r=no
40231fi
40232
004ee6da
RL
40233
40234if test $ac_cv_func_which_getservbyname_r = six; then
40235 cat >>confdefs.h <<\_ACEOF
40236#define HAVE_FUNC_GETSERVBYNAME_R_6 1
40237_ACEOF
40238
40239elif test $ac_cv_func_which_getservbyname_r = five; then
40240 cat >>confdefs.h <<\_ACEOF
40241#define HAVE_FUNC_GETSERVBYNAME_R_5 1
40242_ACEOF
40243
40244elif test $ac_cv_func_which_getservbyname_r = four; then
40245 cat >>confdefs.h <<\_ACEOF
40246#define HAVE_FUNC_GETSERVBYNAME_R_4 1
40247_ACEOF
40248
004ee6da
RL
40249fi
40250
40251
40252 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
40253 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
40254
40255for ac_func in getservbyname
40256do
40257as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40258echo "$as_me:$LINENO: checking for $ac_func" >&5
40259echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40260if eval "test \"\${$as_ac_var+set}\" = set"; then
40261 echo $ECHO_N "(cached) $ECHO_C" >&6
40262else
40263 cat >conftest.$ac_ext <<_ACEOF
40264/* confdefs.h. */
40265_ACEOF
40266cat confdefs.h >>conftest.$ac_ext
40267cat >>conftest.$ac_ext <<_ACEOF
40268/* end confdefs.h. */
40269/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40271#define $ac_func innocuous_$ac_func
40272
40273/* System header to define __stub macros and hopefully few prototypes,
40274 which can conflict with char $ac_func (); below.
40275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40276 <limits.h> exists even on freestanding compilers. */
40277
40278#ifdef __STDC__
40279# include <limits.h>
40280#else
40281# include <assert.h>
40282#endif
40283
40284#undef $ac_func
40285
40286/* Override any gcc2 internal prototype to avoid an error. */
40287#ifdef __cplusplus
40288extern "C"
40289{
40290#endif
40291/* We use char because int might match the return type of a gcc2
40292 builtin and then its argument prototype would still apply. */
40293char $ac_func ();
40294/* The GNU C library defines this for functions which it implements
40295 to always fail with ENOSYS. Some functions are actually named
40296 something starting with __ and the normal name is an alias. */
40297#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40298choke me
40299#else
40300char (*f) () = $ac_func;
40301#endif
40302#ifdef __cplusplus
40303}
40304#endif
40305
40306int
40307main ()
40308{
40309return f != $ac_func;
40310 ;
40311 return 0;
40312}
40313_ACEOF
40314rm -f conftest.$ac_objext conftest$ac_exeext
40315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40316 (eval $ac_link) 2>conftest.er1
40317 ac_status=$?
40318 grep -v '^ *+' conftest.er1 >conftest.err
40319 rm -f conftest.er1
40320 cat conftest.err >&5
40321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40322 (exit $ac_status); } &&
3f60522a
JS
40323 { ac_try='test -z "$ac_cxx_werror_flag"
40324 || test ! -s conftest.err'
004ee6da
RL
40325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40326 (eval $ac_try) 2>&5
40327 ac_status=$?
40328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40329 (exit $ac_status); }; } &&
40330 { ac_try='test -s conftest$ac_exeext'
40331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40332 (eval $ac_try) 2>&5
40333 ac_status=$?
40334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40335 (exit $ac_status); }; }; then
40336 eval "$as_ac_var=yes"
40337else
40338 echo "$as_me: failed program was:" >&5
40339sed 's/^/| /' conftest.$ac_ext >&5
40340
40341eval "$as_ac_var=no"
40342fi
40343rm -f conftest.err conftest.$ac_objext \
40344 conftest$ac_exeext conftest.$ac_ext
40345fi
40346echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40347echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40348if test `eval echo '${'$as_ac_var'}'` = yes; then
40349 cat >>confdefs.h <<_ACEOF
40350#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40351_ACEOF
40352 cat >>confdefs.h <<\_ACEOF
40353#define HAVE_GETSERVBYNAME 1
40354_ACEOF
40355
40356fi
40357done
40358
40359 fi
40360
004ee6da
RL
40361if test "$wxUSE_THREADS" = "yes"; then
40362 cat >>confdefs.h <<\_ACEOF
40363#define wxUSE_THREADS 1
40364_ACEOF
40365
40366
40367 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
40368else
40369 if test "$ac_cv_func_strtok_r" = "yes"; then
40370 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
40371echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
40372 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
40373 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
40374 echo "$as_me:$LINENO: result: yes" >&5
40375echo "${ECHO_T}yes" >&6
40376 else
40377 echo "$as_me:$LINENO: result: no" >&5
40378echo "${ECHO_T}no" >&6
40379 fi
40380 fi
40381fi
40382
40383if test "$WXGTK20" = 1 ; then
40384 cat >>confdefs.h <<_ACEOF
40385#define __WXGTK20__ $WXGTK20
40386_ACEOF
40387
40388 WXGTK12=1
40389fi
40390
40391if test "$WXGTK12" = 1 ; then
40392 cat >>confdefs.h <<_ACEOF
40393#define __WXGTK12__ $WXGTK12
40394_ACEOF
40395
40396fi
40397
40398if test "$WXGTK127" = 1 ; then
40399 cat >>confdefs.h <<_ACEOF
40400#define __WXGTK127__ $WXGTK127
40401_ACEOF
40402
40403fi
40404
40405if test "$WXGPE" = 1 ; then
40406 cat >>confdefs.h <<_ACEOF
40407#define __WXGPE__ $WXGPE
40408_ACEOF
40409
40410fi
40411
40412DEBUG_CFLAGS=
40413if test "$wxUSE_DEBUG_INFO" = "yes" ; then
40414 DEBUG_CFLAGS="-g"
40415 wxUSE_OPTIMISE=no
40416fi
40417
40418if test "$wxUSE_DEBUG_GDB" = "yes" ; then
40419 wxUSE_DEBUG_INFO=yes
40420 if test "$GCC" = yes; then
40421 DEBUG_CFLAGS="-ggdb"
40422 fi
40423fi
40424
40425if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
40426 cat >>confdefs.h <<\_ACEOF
40427#define WXDEBUG 1
40428_ACEOF
40429
40430 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
40431else
40432 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
40433 if test "x$wxGTK_VERSION" = "x1" ; then
40434 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
40435 fi
004ee6da
RL
40436 fi
40437fi
40438
40439if test "$wxUSE_MEM_TRACING" = "yes" ; then
40440 cat >>confdefs.h <<\_ACEOF
40441#define wxUSE_MEMORY_TRACING 1
40442_ACEOF
40443
40444 cat >>confdefs.h <<\_ACEOF
40445#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
40446_ACEOF
40447
40448 cat >>confdefs.h <<\_ACEOF
40449#define wxUSE_DEBUG_NEW_ALWAYS 1
40450_ACEOF
40451
40452 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
40453fi
40454
40455if test "$wxUSE_DMALLOC" = "yes" ; then
40456 DMALLOC_LIBS="-ldmallocthcxx"
40457fi
40458
40459PROFILE_FLAGS=
40460if test "$wxUSE_PROFILE" = "yes" ; then
40461 PROFILE_FLAGS=" -pg"
40462fi
40463
40464if test "$GCC" = "yes" ; then
40465 if test "$wxUSE_NO_RTTI" = "yes" ; then
40466 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
40467 fi
40468 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
40469 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
40470 fi
40471 if test "$wxUSE_PERMISSIVE" = "yes" ; then
40472 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
40473 fi
40474
40475 case "${host}" in
40476 powerpc*-*-aix* )
40477 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
40478 ;;
40479 *-hppa* )
40480 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
40481 ;;
40482 esac
40483fi
40484
40485OPTIMISE_CFLAGS=
40486if test "$wxUSE_OPTIMISE" = "no" ; then
40487 if test "$GCC" = yes ; then
40488 OPTIMISE_CFLAGS="-O0"
40489 fi
40490else
40491 if test "$GCC" = yes ; then
e5efa97e
VZ
40492 case "${host}" in
40493 *-pc-os2_emx | *-pc-os2-emx )
40494 OPTIMISE_CFLAGS="-O2"
40495 ;;
40496 *)
40497 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
40498 ;;
40499 esac
004ee6da
RL
40500 else
40501 OPTIMISE_CFLAGS="-O"
40502 fi
40503fi
40504
40505
40506if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
40507 cat >>confdefs.h <<\_ACEOF
40508#define WXWIN_COMPATIBILITY_2_4 1
40509_ACEOF
40510
40511
40512 WXWIN_COMPATIBILITY_2_6="yes"
40513fi
40514
40515if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
40516 cat >>confdefs.h <<\_ACEOF
40517#define WXWIN_COMPATIBILITY_2_6 1
40518_ACEOF
40519
40520fi
40521
40522
40523if test "$wxUSE_GUI" = "yes"; then
40524 cat >>confdefs.h <<\_ACEOF
40525#define wxUSE_GUI 1
40526_ACEOF
40527
40528
40529 fi
40530
40531
40532if test "$wxUSE_UNIX" = "yes"; then
40533 cat >>confdefs.h <<\_ACEOF
40534#define wxUSE_UNIX 1
40535_ACEOF
40536
40537fi
40538
40539
40540if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
40541
40542 HAVE_DL_FUNCS=0
40543 HAVE_SHL_FUNCS=0
40544 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40545 if test "$USE_DARWIN" = 1; then
40546 HAVE_DL_FUNCS=1
40547 elif test "$USE_DOS" = 1; then
40548 HAVE_DL_FUNCS=0
40549 else
40550
40551for ac_func in dlopen
40552do
40553as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40554echo "$as_me:$LINENO: checking for $ac_func" >&5
40555echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40556if eval "test \"\${$as_ac_var+set}\" = set"; then
40557 echo $ECHO_N "(cached) $ECHO_C" >&6
40558else
40559 cat >conftest.$ac_ext <<_ACEOF
40560/* confdefs.h. */
40561_ACEOF
40562cat confdefs.h >>conftest.$ac_ext
40563cat >>conftest.$ac_ext <<_ACEOF
40564/* end confdefs.h. */
40565/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40567#define $ac_func innocuous_$ac_func
40568
40569/* System header to define __stub macros and hopefully few prototypes,
40570 which can conflict with char $ac_func (); below.
40571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40572 <limits.h> exists even on freestanding compilers. */
40573
40574#ifdef __STDC__
40575# include <limits.h>
40576#else
40577# include <assert.h>
40578#endif
40579
40580#undef $ac_func
40581
40582/* Override any gcc2 internal prototype to avoid an error. */
40583#ifdef __cplusplus
40584extern "C"
40585{
40586#endif
40587/* We use char because int might match the return type of a gcc2
40588 builtin and then its argument prototype would still apply. */
40589char $ac_func ();
40590/* The GNU C library defines this for functions which it implements
40591 to always fail with ENOSYS. Some functions are actually named
40592 something starting with __ and the normal name is an alias. */
40593#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40594choke me
40595#else
40596char (*f) () = $ac_func;
40597#endif
40598#ifdef __cplusplus
40599}
40600#endif
40601
40602int
40603main ()
40604{
40605return f != $ac_func;
a848cd7e
SC
40606 ;
40607 return 0;
40608}
40609_ACEOF
40610rm -f conftest.$ac_objext conftest$ac_exeext
40611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40612 (eval $ac_link) 2>conftest.er1
a848cd7e 40613 ac_status=$?
ac1cb8d3
VS
40614 grep -v '^ *+' conftest.er1 >conftest.err
40615 rm -f conftest.er1
40616 cat conftest.err >&5
a848cd7e
SC
40617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40618 (exit $ac_status); } &&
3f60522a
JS
40619 { ac_try='test -z "$ac_cxx_werror_flag"
40620 || test ! -s conftest.err'
ac1cb8d3
VS
40621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40622 (eval $ac_try) 2>&5
40623 ac_status=$?
40624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40625 (exit $ac_status); }; } &&
40626 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40628 (eval $ac_try) 2>&5
40629 ac_status=$?
40630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40631 (exit $ac_status); }; }; then
40632 eval "$as_ac_var=yes"
40633else
40634 echo "$as_me: failed program was:" >&5
40635sed 's/^/| /' conftest.$ac_ext >&5
40636
40637eval "$as_ac_var=no"
40638fi
ac1cb8d3
VS
40639rm -f conftest.err conftest.$ac_objext \
40640 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40641fi
40642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40643echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40644if test `eval echo '${'$as_ac_var'}'` = yes; then
40645 cat >>confdefs.h <<_ACEOF
40646#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40647_ACEOF
40648
40649 cat >>confdefs.h <<\_ACEOF
40650#define HAVE_DLOPEN 1
40651_ACEOF
40652
40653 HAVE_DL_FUNCS=1
40654
40655else
40656
40657 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
40658echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
40659if test "${ac_cv_lib_dl_dlopen+set}" = set; then
40660 echo $ECHO_N "(cached) $ECHO_C" >&6
40661else
40662 ac_check_lib_save_LIBS=$LIBS
40663LIBS="-ldl $LIBS"
40664cat >conftest.$ac_ext <<_ACEOF
40665/* confdefs.h. */
40666_ACEOF
40667cat confdefs.h >>conftest.$ac_ext
40668cat >>conftest.$ac_ext <<_ACEOF
40669/* end confdefs.h. */
40670
40671/* Override any gcc2 internal prototype to avoid an error. */
40672#ifdef __cplusplus
40673extern "C"
40674#endif
40675/* We use char because int might match the return type of a gcc2
40676 builtin and then its argument prototype would still apply. */
40677char dlopen ();
40678int
40679main ()
40680{
40681dlopen ();
40682 ;
40683 return 0;
40684}
40685_ACEOF
40686rm -f conftest.$ac_objext conftest$ac_exeext
40687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40688 (eval $ac_link) 2>conftest.er1
a848cd7e 40689 ac_status=$?
ac1cb8d3
VS
40690 grep -v '^ *+' conftest.er1 >conftest.err
40691 rm -f conftest.er1
40692 cat conftest.err >&5
a848cd7e
SC
40693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40694 (exit $ac_status); } &&
3f60522a
JS
40695 { ac_try='test -z "$ac_cxx_werror_flag"
40696 || test ! -s conftest.err'
ac1cb8d3
VS
40697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40698 (eval $ac_try) 2>&5
40699 ac_status=$?
40700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40701 (exit $ac_status); }; } &&
40702 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40704 (eval $ac_try) 2>&5
40705 ac_status=$?
40706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40707 (exit $ac_status); }; }; then
40708 ac_cv_lib_dl_dlopen=yes
40709else
40710 echo "$as_me: failed program was:" >&5
40711sed 's/^/| /' conftest.$ac_ext >&5
40712
40713ac_cv_lib_dl_dlopen=no
40714fi
ac1cb8d3
VS
40715rm -f conftest.err conftest.$ac_objext \
40716 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40717LIBS=$ac_check_lib_save_LIBS
40718fi
40719echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
40720echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
40721if test $ac_cv_lib_dl_dlopen = yes; then
40722
40723 cat >>confdefs.h <<\_ACEOF
40724#define HAVE_DLOPEN 1
40725_ACEOF
40726
40727 HAVE_DL_FUNCS=1
40728 DL_LINK=" -ldl$DL_LINK"
40729
40730else
40731
40732
40733for ac_func in shl_load
40734do
40735as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40736echo "$as_me:$LINENO: checking for $ac_func" >&5
40737echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40738if eval "test \"\${$as_ac_var+set}\" = set"; then
40739 echo $ECHO_N "(cached) $ECHO_C" >&6
40740else
40741 cat >conftest.$ac_ext <<_ACEOF
40742/* confdefs.h. */
40743_ACEOF
40744cat confdefs.h >>conftest.$ac_ext
40745cat >>conftest.$ac_ext <<_ACEOF
40746/* end confdefs.h. */
ac1cb8d3
VS
40747/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40749#define $ac_func innocuous_$ac_func
40750
a848cd7e
SC
40751/* System header to define __stub macros and hopefully few prototypes,
40752 which can conflict with char $ac_func (); below.
40753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40754 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40755
a848cd7e
SC
40756#ifdef __STDC__
40757# include <limits.h>
40758#else
40759# include <assert.h>
40760#endif
ac1cb8d3
VS
40761
40762#undef $ac_func
40763
a848cd7e
SC
40764/* Override any gcc2 internal prototype to avoid an error. */
40765#ifdef __cplusplus
40766extern "C"
40767{
40768#endif
40769/* We use char because int might match the return type of a gcc2
40770 builtin and then its argument prototype would still apply. */
40771char $ac_func ();
40772/* The GNU C library defines this for functions which it implements
40773 to always fail with ENOSYS. Some functions are actually named
40774 something starting with __ and the normal name is an alias. */
40775#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40776choke me
40777#else
40778char (*f) () = $ac_func;
40779#endif
40780#ifdef __cplusplus
40781}
40782#endif
40783
40784int
40785main ()
40786{
40787return f != $ac_func;
40788 ;
40789 return 0;
40790}
40791_ACEOF
40792rm -f conftest.$ac_objext conftest$ac_exeext
40793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40794 (eval $ac_link) 2>conftest.er1
a848cd7e 40795 ac_status=$?
ac1cb8d3
VS
40796 grep -v '^ *+' conftest.er1 >conftest.err
40797 rm -f conftest.er1
40798 cat conftest.err >&5
a848cd7e
SC
40799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40800 (exit $ac_status); } &&
3f60522a
JS
40801 { ac_try='test -z "$ac_cxx_werror_flag"
40802 || test ! -s conftest.err'
ac1cb8d3
VS
40803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40804 (eval $ac_try) 2>&5
40805 ac_status=$?
40806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40807 (exit $ac_status); }; } &&
40808 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40810 (eval $ac_try) 2>&5
40811 ac_status=$?
40812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40813 (exit $ac_status); }; }; then
40814 eval "$as_ac_var=yes"
40815else
40816 echo "$as_me: failed program was:" >&5
40817sed 's/^/| /' conftest.$ac_ext >&5
40818
40819eval "$as_ac_var=no"
40820fi
ac1cb8d3
VS
40821rm -f conftest.err conftest.$ac_objext \
40822 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40823fi
40824echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40825echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40826if test `eval echo '${'$as_ac_var'}'` = yes; then
40827 cat >>confdefs.h <<_ACEOF
40828#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40829_ACEOF
40830
40831 cat >>confdefs.h <<\_ACEOF
40832#define HAVE_SHL_LOAD 1
40833_ACEOF
40834
40835 HAVE_SHL_FUNCS=1
40836
40837else
40838
40839 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
40840echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
40841if test "${ac_cv_lib_shl_load_dld+set}" = set; then
40842 echo $ECHO_N "(cached) $ECHO_C" >&6
40843else
40844 ac_check_lib_save_LIBS=$LIBS
40845LIBS="-lshl_load $LIBS"
40846cat >conftest.$ac_ext <<_ACEOF
40847/* confdefs.h. */
40848_ACEOF
40849cat confdefs.h >>conftest.$ac_ext
40850cat >>conftest.$ac_ext <<_ACEOF
40851/* end confdefs.h. */
40852
40853/* Override any gcc2 internal prototype to avoid an error. */
40854#ifdef __cplusplus
40855extern "C"
40856#endif
40857/* We use char because int might match the return type of a gcc2
40858 builtin and then its argument prototype would still apply. */
40859char dld ();
40860int
40861main ()
40862{
40863dld ();
40864 ;
40865 return 0;
40866}
40867_ACEOF
40868rm -f conftest.$ac_objext conftest$ac_exeext
40869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40870 (eval $ac_link) 2>conftest.er1
a848cd7e 40871 ac_status=$?
ac1cb8d3
VS
40872 grep -v '^ *+' conftest.er1 >conftest.err
40873 rm -f conftest.er1
40874 cat conftest.err >&5
a848cd7e
SC
40875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40876 (exit $ac_status); } &&
3f60522a
JS
40877 { ac_try='test -z "$ac_cxx_werror_flag"
40878 || test ! -s conftest.err'
ac1cb8d3
VS
40879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40880 (eval $ac_try) 2>&5
40881 ac_status=$?
40882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40883 (exit $ac_status); }; } &&
40884 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40886 (eval $ac_try) 2>&5
40887 ac_status=$?
40888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40889 (exit $ac_status); }; }; then
40890 ac_cv_lib_shl_load_dld=yes
40891else
40892 echo "$as_me: failed program was:" >&5
40893sed 's/^/| /' conftest.$ac_ext >&5
40894
40895ac_cv_lib_shl_load_dld=no
40896fi
ac1cb8d3
VS
40897rm -f conftest.err conftest.$ac_objext \
40898 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40899LIBS=$ac_check_lib_save_LIBS
40900fi
40901echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
40902echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
40903if test $ac_cv_lib_shl_load_dld = yes; then
40904
40905 HAVE_SHL_FUNCS=1
40906 DL_LINK=" -ldld$DL_LINK"
40907
40908fi
40909
40910
40911fi
40912done
40913
40914
40915fi
40916
40917
40918fi
40919done
40920
40921
40922 if test "$HAVE_DL_FUNCS" = 1; then
40923
40924for ac_func in dlerror
40925do
40926as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40927echo "$as_me:$LINENO: checking for $ac_func" >&5
40928echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40929if eval "test \"\${$as_ac_var+set}\" = set"; then
40930 echo $ECHO_N "(cached) $ECHO_C" >&6
40931else
40932 cat >conftest.$ac_ext <<_ACEOF
40933/* confdefs.h. */
40934_ACEOF
40935cat confdefs.h >>conftest.$ac_ext
40936cat >>conftest.$ac_ext <<_ACEOF
40937/* end confdefs.h. */
ac1cb8d3
VS
40938/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40940#define $ac_func innocuous_$ac_func
40941
a848cd7e
SC
40942/* System header to define __stub macros and hopefully few prototypes,
40943 which can conflict with char $ac_func (); below.
40944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40945 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40946
a848cd7e
SC
40947#ifdef __STDC__
40948# include <limits.h>
40949#else
40950# include <assert.h>
40951#endif
ac1cb8d3
VS
40952
40953#undef $ac_func
40954
a848cd7e
SC
40955/* Override any gcc2 internal prototype to avoid an error. */
40956#ifdef __cplusplus
40957extern "C"
40958{
40959#endif
40960/* We use char because int might match the return type of a gcc2
40961 builtin and then its argument prototype would still apply. */
40962char $ac_func ();
40963/* The GNU C library defines this for functions which it implements
40964 to always fail with ENOSYS. Some functions are actually named
40965 something starting with __ and the normal name is an alias. */
40966#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40967choke me
40968#else
40969char (*f) () = $ac_func;
40970#endif
40971#ifdef __cplusplus
40972}
40973#endif
40974
40975int
40976main ()
40977{
40978return f != $ac_func;
40979 ;
40980 return 0;
40981}
40982_ACEOF
40983rm -f conftest.$ac_objext conftest$ac_exeext
40984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40985 (eval $ac_link) 2>conftest.er1
a848cd7e 40986 ac_status=$?
ac1cb8d3
VS
40987 grep -v '^ *+' conftest.er1 >conftest.err
40988 rm -f conftest.er1
40989 cat conftest.err >&5
a848cd7e
SC
40990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40991 (exit $ac_status); } &&
3f60522a
JS
40992 { ac_try='test -z "$ac_cxx_werror_flag"
40993 || test ! -s conftest.err'
ac1cb8d3
VS
40994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40995 (eval $ac_try) 2>&5
40996 ac_status=$?
40997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40998 (exit $ac_status); }; } &&
40999 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41001 (eval $ac_try) 2>&5
41002 ac_status=$?
41003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41004 (exit $ac_status); }; }; then
41005 eval "$as_ac_var=yes"
41006else
41007 echo "$as_me: failed program was:" >&5
41008sed 's/^/| /' conftest.$ac_ext >&5
41009
41010eval "$as_ac_var=no"
41011fi
ac1cb8d3
VS
41012rm -f conftest.err conftest.$ac_objext \
41013 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41014fi
41015echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41016echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41017if test `eval echo '${'$as_ac_var'}'` = yes; then
41018 cat >>confdefs.h <<_ACEOF
41019#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41020_ACEOF
41021 cat >>confdefs.h <<\_ACEOF
41022#define HAVE_DLERROR 1
41023_ACEOF
41024
41025else
41026
41027 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
41028echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
41029if test "${ac_cv_lib_dl_dlerror+set}" = set; then
41030 echo $ECHO_N "(cached) $ECHO_C" >&6
41031else
41032 ac_check_lib_save_LIBS=$LIBS
41033LIBS="-ldl $LIBS"
41034cat >conftest.$ac_ext <<_ACEOF
41035/* confdefs.h. */
41036_ACEOF
41037cat confdefs.h >>conftest.$ac_ext
41038cat >>conftest.$ac_ext <<_ACEOF
41039/* end confdefs.h. */
41040
41041/* Override any gcc2 internal prototype to avoid an error. */
41042#ifdef __cplusplus
41043extern "C"
41044#endif
41045/* We use char because int might match the return type of a gcc2
41046 builtin and then its argument prototype would still apply. */
41047char dlerror ();
41048int
41049main ()
41050{
41051dlerror ();
41052 ;
41053 return 0;
41054}
41055_ACEOF
41056rm -f conftest.$ac_objext conftest$ac_exeext
41057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41058 (eval $ac_link) 2>conftest.er1
a848cd7e 41059 ac_status=$?
ac1cb8d3
VS
41060 grep -v '^ *+' conftest.er1 >conftest.err
41061 rm -f conftest.er1
41062 cat conftest.err >&5
a848cd7e
SC
41063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41064 (exit $ac_status); } &&
3f60522a
JS
41065 { ac_try='test -z "$ac_cxx_werror_flag"
41066 || test ! -s conftest.err'
ac1cb8d3
VS
41067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41068 (eval $ac_try) 2>&5
41069 ac_status=$?
41070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41071 (exit $ac_status); }; } &&
41072 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41074 (eval $ac_try) 2>&5
41075 ac_status=$?
41076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41077 (exit $ac_status); }; }; then
41078 ac_cv_lib_dl_dlerror=yes
41079else
41080 echo "$as_me: failed program was:" >&5
41081sed 's/^/| /' conftest.$ac_ext >&5
41082
41083ac_cv_lib_dl_dlerror=no
41084fi
ac1cb8d3
VS
41085rm -f conftest.err conftest.$ac_objext \
41086 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41087LIBS=$ac_check_lib_save_LIBS
41088fi
41089echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
41090echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
41091if test $ac_cv_lib_dl_dlerror = yes; then
41092 cat >>confdefs.h <<\_ACEOF
41093#define HAVE_DLERROR 1
41094_ACEOF
41095
41096fi
41097
41098
41099
41100fi
41101done
41102
41103 fi
41104 fi
41105
41106 if test "$HAVE_DL_FUNCS" = 0; then
41107 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 41108 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
41109 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
41110echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
41111 wxUSE_DYNAMIC_LOADER=no
41112 wxUSE_DYNLIB_CLASS=no
41113 else
41114 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
41115echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
41116 fi
41117 fi
41118 fi
41119 fi
41120fi
41121
41122if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
41123 cat >>confdefs.h <<\_ACEOF
41124#define wxUSE_DYNAMIC_LOADER 1
41125_ACEOF
41126
41127fi
41128if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41129 cat >>confdefs.h <<\_ACEOF
41130#define wxUSE_DYNLIB_CLASS 1
41131_ACEOF
41132
41133fi
41134
41135
41136
41137if test "$wxUSE_PLUGINS" = "yes" ; then
41138 if test "$wxUSE_SHARED" = "no" ; then
41139 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
41140echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
41141 wxUSE_PLUGINS=no
41142 fi
41143 if test "$wxUSE_MONOLITHIC" = "yes" ; then
41144 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
41145echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
41146 wxUSE_PLUGINS=no
41147 fi
41148 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
41149 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
41150echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
41151 wxUSE_PLUGINS=no
41152 fi
41153 if test "$wxUSE_PLUGINS" = "yes" ; then
41154 cat >>confdefs.h <<\_ACEOF
41155#define wxUSE_PLUGINS 1
41156_ACEOF
41157
41158 fi
41159fi
41160
41161
41162if test "$wxUSE_STL" = "yes"; then
41163 cat >>confdefs.h <<\_ACEOF
41164#define wxUSE_STL 1
41165_ACEOF
41166
41167fi
41168
41169if test "$wxUSE_APPLE_IEEE" = "yes"; then
41170 cat >>confdefs.h <<\_ACEOF
41171#define wxUSE_APPLE_IEEE 1
41172_ACEOF
41173
41174fi
41175
41176if test "$wxUSE_TIMER" = "yes"; then
41177 cat >>confdefs.h <<\_ACEOF
41178#define wxUSE_TIMER 1
41179_ACEOF
41180
41181fi
41182
9c112555 41183if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
41184 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
41185echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
41186if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 41187 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 41188else
d12aef51
VZ
41189
41190 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
41191/* confdefs.h. */
41192_ACEOF
41193cat confdefs.h >>conftest.$ac_ext
41194cat >>conftest.$ac_ext <<_ACEOF
41195/* end confdefs.h. */
d12aef51
VZ
41196
41197 #include <sys/soundcard.h>
41198
41199int
41200main ()
41201{
41202
41203 ioctl(0, SNDCTL_DSP_SYNC, 0);
41204
41205 ;
41206 return 0;
41207}
a848cd7e 41208_ACEOF
d12aef51
VZ
41209rm -f conftest.$ac_objext conftest$ac_exeext
41210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41211 (eval $ac_link) 2>conftest.er1
a848cd7e 41212 ac_status=$?
ac1cb8d3
VS
41213 grep -v '^ *+' conftest.er1 >conftest.err
41214 rm -f conftest.er1
41215 cat conftest.err >&5
a848cd7e
SC
41216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41217 (exit $ac_status); } &&
3f60522a
JS
41218 { ac_try='test -z "$ac_cxx_werror_flag"
41219 || test ! -s conftest.err'
ac1cb8d3
VS
41220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41221 (eval $ac_try) 2>&5
41222 ac_status=$?
41223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41224 (exit $ac_status); }; } &&
d12aef51 41225 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41227 (eval $ac_try) 2>&5
41228 ac_status=$?
41229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41230 (exit $ac_status); }; }; then
d12aef51 41231 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
41232else
41233 echo "$as_me: failed program was:" >&5
41234sed 's/^/| /' conftest.$ac_ext >&5
41235
a848cd7e 41236
d12aef51
VZ
41237 saveLibs="$LIBS"
41238 LIBS="$saveLibs -lossaudio"
41239 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
41240/* confdefs.h. */
41241_ACEOF
41242cat confdefs.h >>conftest.$ac_ext
41243cat >>conftest.$ac_ext <<_ACEOF
41244/* end confdefs.h. */
d12aef51
VZ
41245
41246 #include <sys/soundcard.h>
41247
41248int
41249main ()
41250{
41251
41252 ioctl(0, SNDCTL_DSP_SYNC, 0);
41253
41254 ;
41255 return 0;
41256}
a848cd7e 41257_ACEOF
d12aef51
VZ
41258rm -f conftest.$ac_objext conftest$ac_exeext
41259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41260 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
41261 ac_status=$?
41262 grep -v '^ *+' conftest.er1 >conftest.err
41263 rm -f conftest.er1
41264 cat conftest.err >&5
41265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 41266 (exit $ac_status); } &&
3f60522a
JS
41267 { ac_try='test -z "$ac_cxx_werror_flag"
41268 || test ! -s conftest.err'
d12aef51
VZ
41269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41270 (eval $ac_try) 2>&5
41271 ac_status=$?
41272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41273 (exit $ac_status); }; } &&
41274 { ac_try='test -s conftest$ac_exeext'
41275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41276 (eval $ac_try) 2>&5
41277 ac_status=$?
41278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41279 (exit $ac_status); }; }; then
41280 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
41281else
41282 echo "$as_me: failed program was:" >&5
41283sed 's/^/| /' conftest.$ac_ext >&5
41284
a848cd7e 41285
d12aef51
VZ
41286 LIBS="$saveLibs"
41287 ac_cv_header_sys_soundcard=no
41288
41289
a848cd7e 41290fi
d12aef51
VZ
41291rm -f conftest.err conftest.$ac_objext \
41292 conftest$ac_exeext conftest.$ac_ext
41293
a848cd7e
SC
41294
41295fi
d12aef51
VZ
41296rm -f conftest.err conftest.$ac_objext \
41297 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41298
41299fi
d12aef51
VZ
41300echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
41301echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 41302
d12aef51
VZ
41303 if test "$ac_cv_header_sys_soundcard" = "yes"; then
41304 cat >>confdefs.h <<\_ACEOF
41305#define HAVE_SYS_SOUNDCARD_H 1
41306_ACEOF
a848cd7e 41307
d12aef51
VZ
41308 else
41309 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
41310 fi
9c112555
MW
41311fi
41312WITH_PLUGIN_SDL=0
41313if test "$wxUSE_SOUND" = "yes"; then
41314 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
41315 if test "$wxUSE_LIBSDL" != "no"; then
41316
41317# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
41318if test "${with_sdl_prefix+set}" = set; then
41319 withval="$with_sdl_prefix"
41320 sdl_prefix="$withval"
41321else
41322 sdl_prefix=""
41323fi;
41324
41325# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
41326if test "${with_sdl_exec_prefix+set}" = set; then
41327 withval="$with_sdl_exec_prefix"
41328 sdl_exec_prefix="$withval"
41329else
41330 sdl_exec_prefix=""
41331fi;
41332# Check whether --enable-sdltest or --disable-sdltest was given.
41333if test "${enable_sdltest+set}" = set; then
41334 enableval="$enable_sdltest"
41335
41336else
41337 enable_sdltest=yes
41338fi;
41339
41340 if test x$sdl_exec_prefix != x ; then
41341 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
41342 if test x${SDL_CONFIG+set} != xset ; then
41343 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
41344 fi
41345 fi
41346 if test x$sdl_prefix != x ; then
41347 sdl_args="$sdl_args --prefix=$sdl_prefix"
41348 if test x${SDL_CONFIG+set} != xset ; then
41349 SDL_CONFIG=$sdl_prefix/bin/sdl-config
41350 fi
41351 fi
41352
41353
41354 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
41355 # Extract the first word of "sdl-config", so it can be a program name with args.
41356set dummy sdl-config; ac_word=$2
41357echo "$as_me:$LINENO: checking for $ac_word" >&5
41358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41359if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
41360 echo $ECHO_N "(cached) $ECHO_C" >&6
41361else
41362 case $SDL_CONFIG in
41363 [\\/]* | ?:[\\/]*)
41364 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
41365 ;;
41366 *)
41367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41368for as_dir in $PATH
41369do
41370 IFS=$as_save_IFS
41371 test -z "$as_dir" && as_dir=.
41372 for ac_exec_ext in '' $ac_executable_extensions; do
41373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41374 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41376 break 2
41377 fi
41378done
41379done
41380
41381 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
41382 ;;
41383esac
41384fi
41385SDL_CONFIG=$ac_cv_path_SDL_CONFIG
41386
41387if test -n "$SDL_CONFIG"; then
41388 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
41389echo "${ECHO_T}$SDL_CONFIG" >&6
41390else
41391 echo "$as_me:$LINENO: result: no" >&5
41392echo "${ECHO_T}no" >&6
41393fi
41394
41395 min_sdl_version=1.2.0
41396 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
41397echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
41398 no_sdl=""
41399 if test "$SDL_CONFIG" = "no" ; then
41400 no_sdl=yes
41401 else
41402 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
41403 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
41404
41405 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
41406 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41407 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
41408 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41409 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
41410 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41411 if test "x$enable_sdltest" = "xyes" ; then
41412 ac_save_CFLAGS="$CFLAGS"
94acd38e 41413 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
41414 ac_save_LIBS="$LIBS"
41415 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 41416 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
41417 LIBS="$LIBS $SDL_LIBS"
41418 rm -f conf.sdltest
41419 if test "$cross_compiling" = yes; then
41420 echo $ac_n "cross compiling; assumed OK... $ac_c"
41421else
41422 cat >conftest.$ac_ext <<_ACEOF
41423/* confdefs.h. */
41424_ACEOF
41425cat confdefs.h >>conftest.$ac_ext
41426cat >>conftest.$ac_ext <<_ACEOF
41427/* end confdefs.h. */
41428
41429#include <stdio.h>
41430#include <stdlib.h>
41431#include <string.h>
41432#include "SDL.h"
41433
41434char*
41435my_strdup (char *str)
41436{
41437 char *new_str;
41438
41439 if (str)
41440 {
41441 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
41442 strcpy (new_str, str);
41443 }
41444 else
41445 new_str = NULL;
41446
41447 return new_str;
41448}
41449
41450int main (int argc, char *argv[])
41451{
41452 int major, minor, micro;
41453 char *tmp_version;
41454
41455 /* This hangs on some systems (?)
41456 system ("touch conf.sdltest");
41457 */
41458 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
41459
41460 /* HP/UX 9 (%@#!) writes to sscanf strings */
41461 tmp_version = my_strdup("$min_sdl_version");
41462 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
41463 printf("%s, bad version string\n", "$min_sdl_version");
41464 exit(1);
41465 }
41466
41467 if (($sdl_major_version > major) ||
41468 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
41469 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
41470 {
41471 return 0;
41472 }
41473 else
41474 {
41475 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
41476 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
41477 printf("*** best to upgrade to the required version.\n");
41478 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
41479 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
41480 printf("*** config.cache before re-running configure\n");
41481 return 1;
41482 }
41483}
41484
41485
41486_ACEOF
41487rm -f conftest$ac_exeext
41488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41489 (eval $ac_link) 2>&5
41490 ac_status=$?
41491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41494 (eval $ac_try) 2>&5
41495 ac_status=$?
41496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41497 (exit $ac_status); }; }; then
41498 :
41499else
41500 echo "$as_me: program exited with status $ac_status" >&5
41501echo "$as_me: failed program was:" >&5
41502sed 's/^/| /' conftest.$ac_ext >&5
41503
41504( exit $ac_status )
41505no_sdl=yes
41506fi
ac1cb8d3 41507rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41508fi
41509 CFLAGS="$ac_save_CFLAGS"
94acd38e 41510 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
41511 LIBS="$ac_save_LIBS"
41512 fi
41513 fi
41514 if test "x$no_sdl" = x ; then
41515 echo "$as_me:$LINENO: result: yes" >&5
41516echo "${ECHO_T}yes" >&6
41517
41518 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 41519 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
41520 cat >>confdefs.h <<\_ACEOF
41521#define wxUSE_LIBSDL 1
41522_ACEOF
41523
41524
41525 else
41526 echo "$as_me:$LINENO: result: no" >&5
41527echo "${ECHO_T}no" >&6
41528 if test "$SDL_CONFIG" = "no" ; then
41529 echo "*** The sdl-config script installed by SDL could not be found"
41530 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
41531 echo "*** your path, or set the SDL_CONFIG environment variable to the"
41532 echo "*** full path to sdl-config."
41533 else
41534 if test -f conf.sdltest ; then
41535 :
41536 else
41537 echo "*** Could not run SDL test program, checking why..."
41538 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 41539 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
41540 LIBS="$LIBS $SDL_LIBS"
41541 cat >conftest.$ac_ext <<_ACEOF
41542/* confdefs.h. */
41543_ACEOF
41544cat confdefs.h >>conftest.$ac_ext
41545cat >>conftest.$ac_ext <<_ACEOF
41546/* end confdefs.h. */
41547
41548#include <stdio.h>
41549#include "SDL.h"
41550
41551int main(int argc, char *argv[])
41552{ return 0; }
41553#undef main
41554#define main K_and_R_C_main
41555
41556int
41557main ()
41558{
41559 return 0;
41560 ;
41561 return 0;
41562}
41563_ACEOF
41564rm -f conftest.$ac_objext conftest$ac_exeext
41565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41566 (eval $ac_link) 2>conftest.er1
a848cd7e 41567 ac_status=$?
ac1cb8d3
VS
41568 grep -v '^ *+' conftest.er1 >conftest.err
41569 rm -f conftest.er1
41570 cat conftest.err >&5
a848cd7e
SC
41571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41572 (exit $ac_status); } &&
3f60522a
JS
41573 { ac_try='test -z "$ac_cxx_werror_flag"
41574 || test ! -s conftest.err'
ac1cb8d3
VS
41575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41576 (eval $ac_try) 2>&5
41577 ac_status=$?
41578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41579 (exit $ac_status); }; } &&
41580 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41582 (eval $ac_try) 2>&5
41583 ac_status=$?
41584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41585 (exit $ac_status); }; }; then
41586 echo "*** The test program compiled, but did not run. This usually means"
41587 echo "*** that the run-time linker is not finding SDL or finding the wrong"
41588 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
41589 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
41590 echo "*** to the installed location Also, make sure you have run ldconfig if that"
41591 echo "*** is required on your system"
41592 echo "***"
41593 echo "*** If you have an old version installed, it is best to remove it, although"
41594 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
41595else
41596 echo "$as_me: failed program was:" >&5
41597sed 's/^/| /' conftest.$ac_ext >&5
41598
41599 echo "*** The test program failed to compile or link. See the file config.log for the"
41600 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
41601 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
41602 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
41603fi
ac1cb8d3
VS
41604rm -f conftest.err conftest.$ac_objext \
41605 conftest$ac_exeext conftest.$ac_ext
a848cd7e 41606 CFLAGS="$ac_save_CFLAGS"
94acd38e 41607 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
41608 LIBS="$ac_save_LIBS"
41609 fi
41610 fi
41611 SDL_CFLAGS=""
41612 SDL_LIBS=""
41613 wxUSE_LIBSDL="no"
41614 fi
41615
41616
41617 rm -f conf.sdltest
41618
41619 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
41620 WITH_PLUGIN_SDL=1
41621 fi
41622 fi
41623 fi
41624
41625 cat >>confdefs.h <<\_ACEOF
41626#define wxUSE_SOUND 1
41627_ACEOF
41628
41629 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
41630fi
41631
d1c38808
VZ
41632if test "$WXGTK20" = 1; then
41633 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
41634 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
41635
41636
41637 succeeded=no
41638
41639 if test -z "$PKG_CONFIG"; then
41640 # Extract the first word of "pkg-config", so it can be a program name with args.
41641set dummy pkg-config; ac_word=$2
41642echo "$as_me:$LINENO: checking for $ac_word" >&5
41643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41644if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41645 echo $ECHO_N "(cached) $ECHO_C" >&6
41646else
41647 case $PKG_CONFIG in
41648 [\\/]* | ?:[\\/]*)
41649 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41650 ;;
41651 *)
41652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41653for as_dir in $PATH
41654do
41655 IFS=$as_save_IFS
41656 test -z "$as_dir" && as_dir=.
41657 for ac_exec_ext in '' $ac_executable_extensions; do
41658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41659 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41661 break 2
41662 fi
41663done
41664done
41665
41666 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41667 ;;
41668esac
41669fi
41670PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41671
41672if test -n "$PKG_CONFIG"; then
41673 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41674echo "${ECHO_T}$PKG_CONFIG" >&6
41675else
41676 echo "$as_me:$LINENO: result: no" >&5
41677echo "${ECHO_T}no" >&6
41678fi
41679
41680 fi
41681
41682 if test "$PKG_CONFIG" = "no" ; then
41683 echo "*** The pkg-config script could not be found. Make sure it is"
41684 echo "*** in your path, or set the PKG_CONFIG environment variable"
41685 echo "*** to the full path to pkg-config."
41686 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41687 else
41688 PKG_CONFIG_MIN_VERSION=0.9.0
41689 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
41690 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
41691echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 41692
ffa762ff 41693 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
41694 echo "$as_me:$LINENO: result: yes" >&5
41695echo "${ECHO_T}yes" >&6
41696 succeeded=yes
41697
41698 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
41699echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 41700 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
41701 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
41702echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
41703
41704 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
41705echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 41706 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
41707 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
41708echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
41709 else
41710 LIBGNOMEPRINTUI_CFLAGS=""
41711 LIBGNOMEPRINTUI_LIBS=""
41712 ## If we have a custom action on failure, don't print errors, but
41713 ## do set a variable so people can do so.
ffa762ff 41714 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
41715
41716 fi
41717
41718
41719
41720 else
41721 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41722 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41723 fi
41724 fi
41725
41726 if test $succeeded = yes; then
41727
c92ad099 41728 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
d1c38808
VZ
41729 cat >>confdefs.h <<\_ACEOF
41730#define wxUSE_LIBGNOMEPRINT 1
41731_ACEOF
41732
41733
41734 else
41735
41736 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
41737echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
41738 wxUSE_LIBGNOMEPRINT="no"
41739
41740
41741 fi
41742
41743 fi
41744 fi
41745fi
41746
2b850ae1
RR
41747if test "$WXGTK20" = 1; then
41748 if test "$wxUSE_MIMETYPE" = "yes" ; then
41749 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
41750
41751
41752 succeeded=no
41753
41754 if test -z "$PKG_CONFIG"; then
41755 # Extract the first word of "pkg-config", so it can be a program name with args.
41756set dummy pkg-config; ac_word=$2
41757echo "$as_me:$LINENO: checking for $ac_word" >&5
41758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41759if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41760 echo $ECHO_N "(cached) $ECHO_C" >&6
41761else
41762 case $PKG_CONFIG in
41763 [\\/]* | ?:[\\/]*)
41764 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41765 ;;
41766 *)
41767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41768for as_dir in $PATH
41769do
41770 IFS=$as_save_IFS
41771 test -z "$as_dir" && as_dir=.
41772 for ac_exec_ext in '' $ac_executable_extensions; do
41773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41774 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41776 break 2
41777 fi
41778done
41779done
41780
41781 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41782 ;;
41783esac
41784fi
41785PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41786
41787if test -n "$PKG_CONFIG"; then
41788 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41789echo "${ECHO_T}$PKG_CONFIG" >&6
41790else
41791 echo "$as_me:$LINENO: result: no" >&5
41792echo "${ECHO_T}no" >&6
41793fi
41794
41795 fi
41796
41797 if test "$PKG_CONFIG" = "no" ; then
41798 echo "*** The pkg-config script could not be found. Make sure it is"
41799 echo "*** in your path, or set the PKG_CONFIG environment variable"
41800 echo "*** to the full path to pkg-config."
41801 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41802 else
41803 PKG_CONFIG_MIN_VERSION=0.9.0
41804 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41805 echo "$as_me:$LINENO: checking for gnome-vfs-2.0 >= 2.0" >&5
41806echo $ECHO_N "checking for gnome-vfs-2.0 >= 2.0... $ECHO_C" >&6
41807
41808 if $PKG_CONFIG --exists "gnome-vfs-2.0 >= 2.0" ; then
41809 echo "$as_me:$LINENO: result: yes" >&5
41810echo "${ECHO_T}yes" >&6
41811 succeeded=yes
41812
41813 echo "$as_me:$LINENO: checking GNOMEVFS_CFLAGS" >&5
41814echo $ECHO_N "checking GNOMEVFS_CFLAGS... $ECHO_C" >&6
41815 GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0"`
41816 echo "$as_me:$LINENO: result: $GNOMEVFS_CFLAGS" >&5
41817echo "${ECHO_T}$GNOMEVFS_CFLAGS" >&6
41818
41819 echo "$as_me:$LINENO: checking GNOMEVFS_LIBS" >&5
41820echo $ECHO_N "checking GNOMEVFS_LIBS... $ECHO_C" >&6
41821 GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0"`
41822 echo "$as_me:$LINENO: result: $GNOMEVFS_LIBS" >&5
41823echo "${ECHO_T}$GNOMEVFS_LIBS" >&6
41824 else
41825 GNOMEVFS_CFLAGS=""
41826 GNOMEVFS_LIBS=""
41827 ## If we have a custom action on failure, don't print errors, but
41828 ## do set a variable so people can do so.
41829 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
41830
41831 fi
41832
41833
41834
41835 else
41836 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41837 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41838 fi
41839 fi
41840
41841 if test $succeeded = yes; then
41842
41843 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
41844 cat >>confdefs.h <<\_ACEOF
41845#define wxUSE_LIBGNOMEVFS 1
41846_ACEOF
41847
41848
41849 else
41850
41851 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
41852echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
41853 wxUSE_LIBGNOMEVFS="no"
41854
41855
41856 fi
41857
41858 fi
41859 fi
41860fi
41861
3565d135
RR
41862if test "$WXGTK20" = 1; then
41863 if test "$wxUSE_LIBHILDON" = "yes" ; then
41864
41865 succeeded=no
41866
41867 if test -z "$PKG_CONFIG"; then
41868 # Extract the first word of "pkg-config", so it can be a program name with args.
41869set dummy pkg-config; ac_word=$2
41870echo "$as_me:$LINENO: checking for $ac_word" >&5
41871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41872if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41873 echo $ECHO_N "(cached) $ECHO_C" >&6
41874else
41875 case $PKG_CONFIG in
41876 [\\/]* | ?:[\\/]*)
41877 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41878 ;;
41879 *)
41880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41881for as_dir in $PATH
41882do
41883 IFS=$as_save_IFS
41884 test -z "$as_dir" && as_dir=.
41885 for ac_exec_ext in '' $ac_executable_extensions; do
41886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41887 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41889 break 2
41890 fi
41891done
41892done
41893
41894 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41895 ;;
41896esac
41897fi
41898PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41899
41900if test -n "$PKG_CONFIG"; then
41901 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41902echo "${ECHO_T}$PKG_CONFIG" >&6
41903else
41904 echo "$as_me:$LINENO: result: no" >&5
41905echo "${ECHO_T}no" >&6
41906fi
41907
41908 fi
41909
41910 if test "$PKG_CONFIG" = "no" ; then
41911 echo "*** The pkg-config script could not be found. Make sure it is"
41912 echo "*** in your path, or set the PKG_CONFIG environment variable"
41913 echo "*** to the full path to pkg-config."
41914 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41915 else
41916 PKG_CONFIG_MIN_VERSION=0.9.0
41917 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41918 echo "$as_me:$LINENO: checking for hildon-lgpl >= 0.9" >&5
41919echo $ECHO_N "checking for hildon-lgpl >= 0.9... $ECHO_C" >&6
41920
41921 if $PKG_CONFIG --exists "hildon-lgpl >= 0.9" ; then
41922 echo "$as_me:$LINENO: result: yes" >&5
41923echo "${ECHO_T}yes" >&6
41924 succeeded=yes
41925
41926 echo "$as_me:$LINENO: checking HILDON_CFLAGS" >&5
41927echo $ECHO_N "checking HILDON_CFLAGS... $ECHO_C" >&6
41928 HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9"`
41929 echo "$as_me:$LINENO: result: $HILDON_CFLAGS" >&5
41930echo "${ECHO_T}$HILDON_CFLAGS" >&6
41931
41932 echo "$as_me:$LINENO: checking HILDON_LIBS" >&5
41933echo $ECHO_N "checking HILDON_LIBS... $ECHO_C" >&6
41934 HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9"`
41935 echo "$as_me:$LINENO: result: $HILDON_LIBS" >&5
41936echo "${ECHO_T}$HILDON_LIBS" >&6
41937 else
41938 HILDON_CFLAGS=""
41939 HILDON_LIBS=""
41940 ## If we have a custom action on failure, don't print errors, but
41941 ## do set a variable so people can do so.
41942 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
41943
41944 fi
41945
41946
41947
41948 else
41949 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41950 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41951 fi
41952 fi
41953
41954 if test $succeeded = yes; then
41955
41956 EXTRALIBS_HILDON="$HILDON_LIBS"
41957 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
41958 cat >>confdefs.h <<\_ACEOF
41959#define wxUSE_LIBHILDON 1
41960_ACEOF
41961
41962
41963 else
41964
41965 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
41966echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
41967 wxUSE_LIBHILDON="no"
41968
41969
41970 fi
41971
41972 fi
41973fi
d1c38808 41974
a848cd7e
SC
41975if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
41976 cat >>confdefs.h <<\_ACEOF
41977#define wxUSE_CMDLINE_PARSER 1
41978_ACEOF
41979
41980fi
41981
41982if test "$wxUSE_STOPWATCH" = "yes"; then
41983 cat >>confdefs.h <<\_ACEOF
41984#define wxUSE_STOPWATCH 1
41985_ACEOF
41986
41987fi
41988
41989if test "$wxUSE_DATETIME" = "yes"; then
41990 cat >>confdefs.h <<\_ACEOF
41991#define wxUSE_DATETIME 1
41992_ACEOF
41993
41994fi
41995
41996if test "$wxUSE_FILE" = "yes"; then
41997 cat >>confdefs.h <<\_ACEOF
41998#define wxUSE_FILE 1
41999_ACEOF
42000
42001fi
42002
42003if test "$wxUSE_FFILE" = "yes"; then
42004 cat >>confdefs.h <<\_ACEOF
42005#define wxUSE_FFILE 1
42006_ACEOF
42007
42008fi
42009
42010if test "$wxUSE_FILESYSTEM" = "yes"; then
42011 cat >>confdefs.h <<\_ACEOF
42012#define wxUSE_FILESYSTEM 1
42013_ACEOF
42014
42015fi
42016
42017if test "$wxUSE_FS_ZIP" = "yes"; then
42018 cat >>confdefs.h <<\_ACEOF
42019#define wxUSE_FS_ZIP 1
42020_ACEOF
42021
42022fi
42023
9e8e867f 42024if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 42025 cat >>confdefs.h <<\_ACEOF
9e8e867f 42026#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
42027_ACEOF
42028
42029fi
42030
42031if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 42032 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
42033 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
42034echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
42035 elif test "$wxUSE_ZLIB" = "no"; then
42036 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
42037echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
42038 else
42039 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42040#define wxUSE_ZIPSTREAM 1
42041_ACEOF
42042
81f90336 42043 fi
a848cd7e
SC
42044fi
42045
a848cd7e 42046if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
42047 if test "$USE_UNIX" != 1; then
42048 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
42049echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
42050 wxUSE_ON_FATAL_EXCEPTION=no
42051 else
42052 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42053#define wxUSE_ON_FATAL_EXCEPTION 1
42054_ACEOF
42055
18228ab4 42056 fi
a848cd7e
SC
42057fi
42058
eaff0f0d
VZ
42059if test "$wxUSE_STACKWALKER" = "yes"; then
42060 cat >>confdefs.h <<\_ACEOF
42061#define wxUSE_STACKWALKER 1
42062_ACEOF
42063
42064fi
42065
36b6448c 42066if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
42067 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
42068 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
42069echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
42070 wxUSE_DEBUGREPORT=no
42071 else
42072 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
42073#define wxUSE_DEBUGREPORT 1
42074_ACEOF
42075
21dfc162
MW
42076 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42077 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
42078 fi
dfe0c803 42079 fi
36b6448c
VZ
42080fi
42081
a848cd7e
SC
42082if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
42083 cat >>confdefs.h <<\_ACEOF
42084#define wxUSE_SNGLINST_CHECKER 1
42085_ACEOF
42086
42087fi
42088
42089if test "$wxUSE_BUSYINFO" = "yes"; then
42090 cat >>confdefs.h <<\_ACEOF
42091#define wxUSE_BUSYINFO 1
42092_ACEOF
42093
42094fi
42095
42096if test "$wxUSE_STD_IOSTREAM" = "yes"; then
42097 cat >>confdefs.h <<\_ACEOF
42098#define wxUSE_STD_IOSTREAM 1
42099_ACEOF
42100
42101fi
42102
59746b65
MW
42103if test "$wxUSE_STD_STRING" = "yes"; then
42104 cat >>confdefs.h <<\_ACEOF
42105#define wxUSE_STD_STRING 1
42106_ACEOF
42107
42108fi
42109
07158944
VZ
42110if test "$wxUSE_STDPATHS" = "yes"; then
42111 cat >>confdefs.h <<\_ACEOF
42112#define wxUSE_STDPATHS 1
42113_ACEOF
42114
42115fi
42116
a848cd7e
SC
42117if test "$wxUSE_TEXTBUFFER" = "yes"; then
42118 cat >>confdefs.h <<\_ACEOF
42119#define wxUSE_TEXTBUFFER 1
42120_ACEOF
42121
42122fi
42123
42124if test "$wxUSE_TEXTFILE" = "yes"; then
42125 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
42126 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
42127echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
42128 else
42129 cat >>confdefs.h <<\_ACEOF
42130#define wxUSE_TEXTFILE 1
42131_ACEOF
42132
42133 fi
42134fi
42135
42136if test "$wxUSE_CONFIG" = "yes" ; then
42137 if test "$wxUSE_TEXTFILE" != "yes"; then
42138 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
42139echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
42140 else
42141 cat >>confdefs.h <<\_ACEOF
42142#define wxUSE_CONFIG 1
89be85c2
VS
42143_ACEOF
42144
42145 cat >>confdefs.h <<\_ACEOF
42146#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
42147_ACEOF
42148
42149 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
42150 fi
42151fi
42152
42153if test "$wxUSE_INTL" = "yes" ; then
42154 if test "$wxUSE_FILE" != "yes"; then
42155 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
42156echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
42157 else
42158 cat >>confdefs.h <<\_ACEOF
42159#define wxUSE_INTL 1
42160_ACEOF
42161
42162 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
42163 GUIDIST="$GUIDIST INTL_DIST"
42164 fi
42165fi
42166
42167if test "$wxUSE_LOG" = "yes"; then
42168 cat >>confdefs.h <<\_ACEOF
42169#define wxUSE_LOG 1
42170_ACEOF
42171
42172
42173 if test "$wxUSE_LOGGUI" = "yes"; then
42174 cat >>confdefs.h <<\_ACEOF
42175#define wxUSE_LOGGUI 1
42176_ACEOF
42177
42178 fi
42179
42180 if test "$wxUSE_LOGWINDOW" = "yes"; then
42181 cat >>confdefs.h <<\_ACEOF
42182#define wxUSE_LOGWINDOW 1
42183_ACEOF
42184
42185 fi
42186
42187 if test "$wxUSE_LOGDIALOG" = "yes"; then
42188 cat >>confdefs.h <<\_ACEOF
42189#define wxUSE_LOG_DIALOG 1
42190_ACEOF
42191
42192 fi
0b78747f
MW
42193
42194 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
42195fi
42196
42197if test "$wxUSE_LONGLONG" = "yes"; then
42198 cat >>confdefs.h <<\_ACEOF
42199#define wxUSE_LONGLONG 1
42200_ACEOF
42201
42202fi
42203
42204if test "$wxUSE_GEOMETRY" = "yes"; then
42205 cat >>confdefs.h <<\_ACEOF
42206#define wxUSE_GEOMETRY 1
42207_ACEOF
42208
42209fi
42210
a848cd7e
SC
42211if test "$wxUSE_STREAMS" = "yes" ; then
42212 cat >>confdefs.h <<\_ACEOF
42213#define wxUSE_STREAMS 1
42214_ACEOF
42215
42216fi
42217
8b6682b9
JS
42218if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
42219 cat >>confdefs.h <<\_ACEOF
42220#define wxUSE_PRINTF_POS_PARAMS 1
42221_ACEOF
42222
42223fi
42224
42225
a848cd7e
SC
42226
42227if test "$wxUSE_DATETIME" = "yes"; then
42228
42229for ac_func in strptime
42230do
42231as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42232echo "$as_me:$LINENO: checking for $ac_func" >&5
42233echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42234if eval "test \"\${$as_ac_var+set}\" = set"; then
42235 echo $ECHO_N "(cached) $ECHO_C" >&6
42236else
42237 cat >conftest.$ac_ext <<_ACEOF
42238/* confdefs.h. */
42239_ACEOF
42240cat confdefs.h >>conftest.$ac_ext
42241cat >>conftest.$ac_ext <<_ACEOF
42242/* end confdefs.h. */
ac1cb8d3
VS
42243/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42245#define $ac_func innocuous_$ac_func
42246
a848cd7e
SC
42247/* System header to define __stub macros and hopefully few prototypes,
42248 which can conflict with char $ac_func (); below.
42249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42250 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42251
a848cd7e
SC
42252#ifdef __STDC__
42253# include <limits.h>
42254#else
42255# include <assert.h>
42256#endif
ac1cb8d3
VS
42257
42258#undef $ac_func
42259
a848cd7e
SC
42260/* Override any gcc2 internal prototype to avoid an error. */
42261#ifdef __cplusplus
42262extern "C"
42263{
42264#endif
42265/* We use char because int might match the return type of a gcc2
42266 builtin and then its argument prototype would still apply. */
42267char $ac_func ();
42268/* The GNU C library defines this for functions which it implements
42269 to always fail with ENOSYS. Some functions are actually named
42270 something starting with __ and the normal name is an alias. */
42271#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42272choke me
42273#else
42274char (*f) () = $ac_func;
42275#endif
42276#ifdef __cplusplus
42277}
42278#endif
42279
42280int
42281main ()
42282{
42283return f != $ac_func;
42284 ;
42285 return 0;
42286}
42287_ACEOF
42288rm -f conftest.$ac_objext conftest$ac_exeext
42289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42290 (eval $ac_link) 2>conftest.er1
a848cd7e 42291 ac_status=$?
ac1cb8d3
VS
42292 grep -v '^ *+' conftest.er1 >conftest.err
42293 rm -f conftest.er1
42294 cat conftest.err >&5
a848cd7e
SC
42295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42296 (exit $ac_status); } &&
3f60522a
JS
42297 { ac_try='test -z "$ac_cxx_werror_flag"
42298 || test ! -s conftest.err'
ac1cb8d3
VS
42299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42300 (eval $ac_try) 2>&5
42301 ac_status=$?
42302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42303 (exit $ac_status); }; } &&
42304 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42306 (eval $ac_try) 2>&5
42307 ac_status=$?
42308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42309 (exit $ac_status); }; }; then
42310 eval "$as_ac_var=yes"
42311else
42312 echo "$as_me: failed program was:" >&5
42313sed 's/^/| /' conftest.$ac_ext >&5
42314
42315eval "$as_ac_var=no"
42316fi
ac1cb8d3
VS
42317rm -f conftest.err conftest.$ac_objext \
42318 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42319fi
42320echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42321echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42322if test `eval echo '${'$as_ac_var'}'` = yes; then
42323 cat >>confdefs.h <<_ACEOF
42324#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42325_ACEOF
42326
42327fi
42328done
42329
f536f005
VZ
42330 if test "$ac_cv_func_strptime" = "yes"; then
42331 echo "$as_me:$LINENO: checking for strptime declaration" >&5
42332echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
42333if test "${wx_cv_func_strptime_decl+set}" = set; then
42334 echo $ECHO_N "(cached) $ECHO_C" >&6
42335else
42336
f536f005
VZ
42337 cat >conftest.$ac_ext <<_ACEOF
42338/* confdefs.h. */
42339_ACEOF
42340cat confdefs.h >>conftest.$ac_ext
42341cat >>conftest.$ac_ext <<_ACEOF
42342/* end confdefs.h. */
42343
42344 #include <time.h>
42345
42346int
42347main ()
42348{
42349
42350 struct tm t;
42351 strptime("foo", "bar", &t);
42352
42353 ;
42354 return 0;
42355}
42356_ACEOF
42357rm -f conftest.$ac_objext
42358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42359 (eval $ac_compile) 2>conftest.er1
42360 ac_status=$?
42361 grep -v '^ *+' conftest.er1 >conftest.err
42362 rm -f conftest.er1
42363 cat conftest.err >&5
42364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42365 (exit $ac_status); } &&
3f60522a
JS
42366 { ac_try='test -z "$ac_cxx_werror_flag"
42367 || test ! -s conftest.err'
f536f005
VZ
42368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42369 (eval $ac_try) 2>&5
42370 ac_status=$?
42371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42372 (exit $ac_status); }; } &&
42373 { ac_try='test -s conftest.$ac_objext'
42374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42375 (eval $ac_try) 2>&5
42376 ac_status=$?
42377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42378 (exit $ac_status); }; }; then
42379 wx_cv_func_strptime_decl=yes
42380else
42381 echo "$as_me: failed program was:" >&5
42382sed 's/^/| /' conftest.$ac_ext >&5
42383
42384wx_cv_func_strptime_decl=no
42385
42386fi
42387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f536f005
VZ
42388
42389
42390fi
42391echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
42392echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
42393 fi
42394 if test "$wx_cv_func_strptime_decl" = "yes"; then
42395 cat >>confdefs.h <<\_ACEOF
42396#define HAVE_STRPTIME_DECL 1
42397_ACEOF
42398
42399 fi
a848cd7e
SC
42400
42401 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
42402echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
42403if test "${wx_cv_var_timezone+set}" = set; then
42404 echo $ECHO_N "(cached) $ECHO_C" >&6
42405else
42406
42407 cat >conftest.$ac_ext <<_ACEOF
42408/* confdefs.h. */
42409_ACEOF
42410cat confdefs.h >>conftest.$ac_ext
42411cat >>conftest.$ac_ext <<_ACEOF
42412/* end confdefs.h. */
42413
42414 #include <time.h>
42415
42416int
42417main ()
42418{
42419
42420 int tz;
42421 tz = timezone;
42422
42423 ;
42424 return 0;
42425}
42426_ACEOF
42427rm -f conftest.$ac_objext
42428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42429 (eval $ac_compile) 2>conftest.er1
a848cd7e 42430 ac_status=$?
ac1cb8d3
VS
42431 grep -v '^ *+' conftest.er1 >conftest.err
42432 rm -f conftest.er1
42433 cat conftest.err >&5
a848cd7e
SC
42434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42435 (exit $ac_status); } &&
3f60522a
JS
42436 { ac_try='test -z "$ac_cxx_werror_flag"
42437 || test ! -s conftest.err'
ac1cb8d3
VS
42438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42439 (eval $ac_try) 2>&5
42440 ac_status=$?
42441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42442 (exit $ac_status); }; } &&
42443 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42445 (eval $ac_try) 2>&5
42446 ac_status=$?
42447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42448 (exit $ac_status); }; }; then
42449
42450 wx_cv_var_timezone=timezone
42451
42452else
42453 echo "$as_me: failed program was:" >&5
42454sed 's/^/| /' conftest.$ac_ext >&5
42455
42456
42457 cat >conftest.$ac_ext <<_ACEOF
42458/* confdefs.h. */
42459_ACEOF
42460cat confdefs.h >>conftest.$ac_ext
42461cat >>conftest.$ac_ext <<_ACEOF
42462/* end confdefs.h. */
42463
42464 #include <time.h>
42465
42466int
42467main ()
42468{
42469
42470 int tz;
42471 tz = _timezone;
42472
42473 ;
42474 return 0;
42475}
42476_ACEOF
42477rm -f conftest.$ac_objext
42478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42479 (eval $ac_compile) 2>conftest.er1
a848cd7e 42480 ac_status=$?
ac1cb8d3
VS
42481 grep -v '^ *+' conftest.er1 >conftest.err
42482 rm -f conftest.er1
42483 cat conftest.err >&5
a848cd7e
SC
42484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42485 (exit $ac_status); } &&
3f60522a
JS
42486 { ac_try='test -z "$ac_cxx_werror_flag"
42487 || test ! -s conftest.err'
ac1cb8d3
VS
42488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42489 (eval $ac_try) 2>&5
42490 ac_status=$?
42491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42492 (exit $ac_status); }; } &&
42493 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42495 (eval $ac_try) 2>&5
42496 ac_status=$?
42497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42498 (exit $ac_status); }; }; then
42499
42500 wx_cv_var_timezone=_timezone
42501
42502else
42503 echo "$as_me: failed program was:" >&5
42504sed 's/^/| /' conftest.$ac_ext >&5
42505
42506
42507 cat >conftest.$ac_ext <<_ACEOF
42508/* confdefs.h. */
42509_ACEOF
42510cat confdefs.h >>conftest.$ac_ext
42511cat >>conftest.$ac_ext <<_ACEOF
42512/* end confdefs.h. */
42513
42514 #include <time.h>
42515
42516int
42517main ()
42518{
42519
42520 int tz;
42521 tz = __timezone;
42522
42523 ;
42524 return 0;
42525}
42526_ACEOF
42527rm -f conftest.$ac_objext
42528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42529 (eval $ac_compile) 2>conftest.er1
a848cd7e 42530 ac_status=$?
ac1cb8d3
VS
42531 grep -v '^ *+' conftest.er1 >conftest.err
42532 rm -f conftest.er1
42533 cat conftest.err >&5
a848cd7e
SC
42534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42535 (exit $ac_status); } &&
3f60522a
JS
42536 { ac_try='test -z "$ac_cxx_werror_flag"
42537 || test ! -s conftest.err'
ac1cb8d3
VS
42538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42539 (eval $ac_try) 2>&5
42540 ac_status=$?
42541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42542 (exit $ac_status); }; } &&
42543 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42545 (eval $ac_try) 2>&5
42546 ac_status=$?
42547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42548 (exit $ac_status); }; }; then
42549
42550 wx_cv_var_timezone=__timezone
42551
42552else
42553 echo "$as_me: failed program was:" >&5
42554sed 's/^/| /' conftest.$ac_ext >&5
42555
42556
42557 if test "$USE_DOS" = 0 ; then
42558 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
42559echo "$as_me: WARNING: no timezone variable" >&2;}
42560 fi
42561
42562
42563fi
ac1cb8d3 42564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42565
42566
42567fi
ac1cb8d3 42568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42569
42570
42571fi
ac1cb8d3 42572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42573
42574
42575fi
42576echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
42577echo "${ECHO_T}$wx_cv_var_timezone" >&6
42578
42579 if test "x$wx_cv_var_timezone" != x ; then
42580 cat >>confdefs.h <<_ACEOF
42581#define WX_TIMEZONE $wx_cv_var_timezone
42582_ACEOF
42583
42584 fi
42585
42586
42587for ac_func in localtime
42588do
42589as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42590echo "$as_me:$LINENO: checking for $ac_func" >&5
42591echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42592if eval "test \"\${$as_ac_var+set}\" = set"; then
42593 echo $ECHO_N "(cached) $ECHO_C" >&6
42594else
42595 cat >conftest.$ac_ext <<_ACEOF
42596/* confdefs.h. */
42597_ACEOF
42598cat confdefs.h >>conftest.$ac_ext
42599cat >>conftest.$ac_ext <<_ACEOF
42600/* end confdefs.h. */
ac1cb8d3
VS
42601/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42603#define $ac_func innocuous_$ac_func
42604
a848cd7e
SC
42605/* System header to define __stub macros and hopefully few prototypes,
42606 which can conflict with char $ac_func (); below.
42607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42608 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42609
a848cd7e
SC
42610#ifdef __STDC__
42611# include <limits.h>
42612#else
42613# include <assert.h>
42614#endif
ac1cb8d3
VS
42615
42616#undef $ac_func
42617
a848cd7e
SC
42618/* Override any gcc2 internal prototype to avoid an error. */
42619#ifdef __cplusplus
42620extern "C"
42621{
42622#endif
42623/* We use char because int might match the return type of a gcc2
42624 builtin and then its argument prototype would still apply. */
42625char $ac_func ();
42626/* The GNU C library defines this for functions which it implements
42627 to always fail with ENOSYS. Some functions are actually named
42628 something starting with __ and the normal name is an alias. */
42629#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42630choke me
42631#else
42632char (*f) () = $ac_func;
42633#endif
42634#ifdef __cplusplus
42635}
42636#endif
42637
42638int
42639main ()
42640{
42641return f != $ac_func;
42642 ;
42643 return 0;
42644}
42645_ACEOF
42646rm -f conftest.$ac_objext conftest$ac_exeext
42647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42648 (eval $ac_link) 2>conftest.er1
a848cd7e 42649 ac_status=$?
ac1cb8d3
VS
42650 grep -v '^ *+' conftest.er1 >conftest.err
42651 rm -f conftest.er1
42652 cat conftest.err >&5
a848cd7e
SC
42653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42654 (exit $ac_status); } &&
3f60522a
JS
42655 { ac_try='test -z "$ac_cxx_werror_flag"
42656 || test ! -s conftest.err'
ac1cb8d3
VS
42657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42658 (eval $ac_try) 2>&5
42659 ac_status=$?
42660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42661 (exit $ac_status); }; } &&
42662 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42664 (eval $ac_try) 2>&5
42665 ac_status=$?
42666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42667 (exit $ac_status); }; }; then
42668 eval "$as_ac_var=yes"
42669else
42670 echo "$as_me: failed program was:" >&5
42671sed 's/^/| /' conftest.$ac_ext >&5
42672
42673eval "$as_ac_var=no"
42674fi
ac1cb8d3
VS
42675rm -f conftest.err conftest.$ac_objext \
42676 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42677fi
42678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42679echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42680if test `eval echo '${'$as_ac_var'}'` = yes; then
42681 cat >>confdefs.h <<_ACEOF
42682#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42683_ACEOF
42684
42685fi
42686done
42687
42688
42689 if test "$ac_cv_func_localtime" = "yes"; then
42690 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
42691echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
42692if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
42693 echo $ECHO_N "(cached) $ECHO_C" >&6
42694else
42695
42696 cat >conftest.$ac_ext <<_ACEOF
42697/* confdefs.h. */
42698_ACEOF
42699cat confdefs.h >>conftest.$ac_ext
42700cat >>conftest.$ac_ext <<_ACEOF
42701/* end confdefs.h. */
42702
42703 #include <time.h>
42704
42705int
42706main ()
42707{
42708
42709 struct tm tm;
42710 tm.tm_gmtoff++;
42711
42712 ;
42713 return 0;
42714}
42715_ACEOF
42716rm -f conftest.$ac_objext
42717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42718 (eval $ac_compile) 2>conftest.er1
a848cd7e 42719 ac_status=$?
ac1cb8d3
VS
42720 grep -v '^ *+' conftest.er1 >conftest.err
42721 rm -f conftest.er1
42722 cat conftest.err >&5
a848cd7e
SC
42723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42724 (exit $ac_status); } &&
3f60522a
JS
42725 { ac_try='test -z "$ac_cxx_werror_flag"
42726 || test ! -s conftest.err'
ac1cb8d3
VS
42727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42728 (eval $ac_try) 2>&5
42729 ac_status=$?
42730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42731 (exit $ac_status); }; } &&
42732 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42734 (eval $ac_try) 2>&5
42735 ac_status=$?
42736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42737 (exit $ac_status); }; }; then
42738
42739 wx_cv_struct_tm_has_gmtoff=yes
42740
42741else
42742 echo "$as_me: failed program was:" >&5
42743sed 's/^/| /' conftest.$ac_ext >&5
42744
42745wx_cv_struct_tm_has_gmtoff=no
42746
42747fi
ac1cb8d3 42748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42749
42750fi
42751echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
42752echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
42753 fi
42754
42755 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
42756 cat >>confdefs.h <<\_ACEOF
42757#define WX_GMTOFF_IN_TM 1
42758_ACEOF
42759
42760 fi
42761
42762
42763
42764for ac_func in gettimeofday ftime
42765do
42766as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42767echo "$as_me:$LINENO: checking for $ac_func" >&5
42768echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42769if eval "test \"\${$as_ac_var+set}\" = set"; then
42770 echo $ECHO_N "(cached) $ECHO_C" >&6
42771else
42772 cat >conftest.$ac_ext <<_ACEOF
42773/* confdefs.h. */
42774_ACEOF
42775cat confdefs.h >>conftest.$ac_ext
42776cat >>conftest.$ac_ext <<_ACEOF
42777/* end confdefs.h. */
ac1cb8d3
VS
42778/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42780#define $ac_func innocuous_$ac_func
42781
a848cd7e
SC
42782/* System header to define __stub macros and hopefully few prototypes,
42783 which can conflict with char $ac_func (); below.
42784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42785 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42786
a848cd7e
SC
42787#ifdef __STDC__
42788# include <limits.h>
42789#else
42790# include <assert.h>
42791#endif
ac1cb8d3
VS
42792
42793#undef $ac_func
42794
a848cd7e
SC
42795/* Override any gcc2 internal prototype to avoid an error. */
42796#ifdef __cplusplus
42797extern "C"
42798{
42799#endif
42800/* We use char because int might match the return type of a gcc2
42801 builtin and then its argument prototype would still apply. */
42802char $ac_func ();
42803/* The GNU C library defines this for functions which it implements
42804 to always fail with ENOSYS. Some functions are actually named
42805 something starting with __ and the normal name is an alias. */
42806#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42807choke me
42808#else
42809char (*f) () = $ac_func;
42810#endif
42811#ifdef __cplusplus
42812}
42813#endif
42814
42815int
42816main ()
42817{
42818return f != $ac_func;
42819 ;
42820 return 0;
42821}
42822_ACEOF
42823rm -f conftest.$ac_objext conftest$ac_exeext
42824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42825 (eval $ac_link) 2>conftest.er1
a848cd7e 42826 ac_status=$?
ac1cb8d3
VS
42827 grep -v '^ *+' conftest.er1 >conftest.err
42828 rm -f conftest.er1
42829 cat conftest.err >&5
a848cd7e
SC
42830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42831 (exit $ac_status); } &&
3f60522a
JS
42832 { ac_try='test -z "$ac_cxx_werror_flag"
42833 || test ! -s conftest.err'
ac1cb8d3
VS
42834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42835 (eval $ac_try) 2>&5
42836 ac_status=$?
42837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42838 (exit $ac_status); }; } &&
42839 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42841 (eval $ac_try) 2>&5
42842 ac_status=$?
42843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42844 (exit $ac_status); }; }; then
42845 eval "$as_ac_var=yes"
42846else
42847 echo "$as_me: failed program was:" >&5
42848sed 's/^/| /' conftest.$ac_ext >&5
42849
42850eval "$as_ac_var=no"
42851fi
ac1cb8d3
VS
42852rm -f conftest.err conftest.$ac_objext \
42853 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42854fi
42855echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42856echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42857if test `eval echo '${'$as_ac_var'}'` = yes; then
42858 cat >>confdefs.h <<_ACEOF
42859#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42860_ACEOF
42861 break
42862fi
42863done
42864
42865
42866 if test "$ac_cv_func_gettimeofday" = "yes"; then
42867 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
42868echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
42869if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
42870 echo $ECHO_N "(cached) $ECHO_C" >&6
42871else
42872
5d7b7554 42873 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42874/* confdefs.h. */
42875_ACEOF
42876cat confdefs.h >>conftest.$ac_ext
42877cat >>conftest.$ac_ext <<_ACEOF
42878/* end confdefs.h. */
42879
42880 #include <sys/time.h>
42881 #include <unistd.h>
42882
42883int
42884main ()
42885{
42886
42887 struct timeval tv;
42888 gettimeofday(&tv, NULL);
42889
42890 ;
42891 return 0;
42892}
42893_ACEOF
42894rm -f conftest.$ac_objext
42895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42896 (eval $ac_compile) 2>conftest.er1
a848cd7e 42897 ac_status=$?
ac1cb8d3
VS
42898 grep -v '^ *+' conftest.er1 >conftest.err
42899 rm -f conftest.er1
42900 cat conftest.err >&5
a848cd7e
SC
42901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42902 (exit $ac_status); } &&
3f60522a
JS
42903 { ac_try='test -z "$ac_cxx_werror_flag"
42904 || test ! -s conftest.err'
ac1cb8d3
VS
42905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42906 (eval $ac_try) 2>&5
42907 ac_status=$?
42908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42909 (exit $ac_status); }; } &&
42910 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42912 (eval $ac_try) 2>&5
42913 ac_status=$?
42914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42915 (exit $ac_status); }; }; then
42916 wx_cv_func_gettimeofday_has_2_args=yes
42917else
42918 echo "$as_me: failed program was:" >&5
42919sed 's/^/| /' conftest.$ac_ext >&5
42920
42921cat >conftest.$ac_ext <<_ACEOF
42922/* confdefs.h. */
42923_ACEOF
42924cat confdefs.h >>conftest.$ac_ext
42925cat >>conftest.$ac_ext <<_ACEOF
42926/* end confdefs.h. */
42927
42928 #include <sys/time.h>
42929 #include <unistd.h>
42930
42931int
42932main ()
42933{
42934
42935 struct timeval tv;
42936 gettimeofday(&tv);
42937
42938 ;
42939 return 0;
42940}
42941_ACEOF
42942rm -f conftest.$ac_objext
42943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42944 (eval $ac_compile) 2>conftest.er1
a848cd7e 42945 ac_status=$?
ac1cb8d3
VS
42946 grep -v '^ *+' conftest.er1 >conftest.err
42947 rm -f conftest.er1
42948 cat conftest.err >&5
a848cd7e
SC
42949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42950 (exit $ac_status); } &&
3f60522a
JS
42951 { ac_try='test -z "$ac_cxx_werror_flag"
42952 || test ! -s conftest.err'
ac1cb8d3
VS
42953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42954 (eval $ac_try) 2>&5
42955 ac_status=$?
42956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42957 (exit $ac_status); }; } &&
42958 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42960 (eval $ac_try) 2>&5
42961 ac_status=$?
42962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42963 (exit $ac_status); }; }; then
42964 wx_cv_func_gettimeofday_has_2_args=no
42965else
42966 echo "$as_me: failed program was:" >&5
42967sed 's/^/| /' conftest.$ac_ext >&5
42968
42969
42970 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
42971echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
42972 wx_cv_func_gettimeofday_has_2_args=unknown
42973
42974
42975fi
ac1cb8d3 42976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42977
42978fi
ac1cb8d3 42979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42980
42981fi
42982echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
42983echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
42984
42985 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
42986 cat >>confdefs.h <<\_ACEOF
42987#define WX_GETTIMEOFDAY_NO_TZ 1
42988_ACEOF
42989
42990 fi
42991 fi
42992
42993 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
42994fi
42995
42996
42997if test "$wxUSE_SOCKETS" = "yes"; then
42998 if test "$wxUSE_MGL" = "1"; then
42999 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
43000echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
43001 wxUSE_SOCKETS="no"
43002 fi
43003fi
43004
43005if test "$wxUSE_SOCKETS" = "yes"; then
43006 if test "$TOOLKIT" != "MSW"; then
43007 echo "$as_me:$LINENO: checking for socket" >&5
43008echo $ECHO_N "checking for socket... $ECHO_C" >&6
43009if test "${ac_cv_func_socket+set}" = set; then
43010 echo $ECHO_N "(cached) $ECHO_C" >&6
43011else
43012 cat >conftest.$ac_ext <<_ACEOF
43013/* confdefs.h. */
43014_ACEOF
43015cat confdefs.h >>conftest.$ac_ext
43016cat >>conftest.$ac_ext <<_ACEOF
43017/* end confdefs.h. */
ac1cb8d3
VS
43018/* Define socket to an innocuous variant, in case <limits.h> declares socket.
43019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43020#define socket innocuous_socket
43021
a848cd7e
SC
43022/* System header to define __stub macros and hopefully few prototypes,
43023 which can conflict with char socket (); below.
43024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43025 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43026
a848cd7e
SC
43027#ifdef __STDC__
43028# include <limits.h>
43029#else
43030# include <assert.h>
43031#endif
ac1cb8d3
VS
43032
43033#undef socket
43034
a848cd7e
SC
43035/* Override any gcc2 internal prototype to avoid an error. */
43036#ifdef __cplusplus
43037extern "C"
43038{
43039#endif
43040/* We use char because int might match the return type of a gcc2
43041 builtin and then its argument prototype would still apply. */
43042char socket ();
43043/* The GNU C library defines this for functions which it implements
43044 to always fail with ENOSYS. Some functions are actually named
43045 something starting with __ and the normal name is an alias. */
43046#if defined (__stub_socket) || defined (__stub___socket)
43047choke me
43048#else
43049char (*f) () = socket;
43050#endif
43051#ifdef __cplusplus
43052}
43053#endif
43054
43055int
43056main ()
43057{
43058return f != socket;
43059 ;
43060 return 0;
43061}
43062_ACEOF
43063rm -f conftest.$ac_objext conftest$ac_exeext
43064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43065 (eval $ac_link) 2>conftest.er1
a848cd7e 43066 ac_status=$?
ac1cb8d3
VS
43067 grep -v '^ *+' conftest.er1 >conftest.err
43068 rm -f conftest.er1
43069 cat conftest.err >&5
a848cd7e
SC
43070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43071 (exit $ac_status); } &&
3f60522a
JS
43072 { ac_try='test -z "$ac_cxx_werror_flag"
43073 || test ! -s conftest.err'
ac1cb8d3
VS
43074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43075 (eval $ac_try) 2>&5
43076 ac_status=$?
43077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43078 (exit $ac_status); }; } &&
43079 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43081 (eval $ac_try) 2>&5
43082 ac_status=$?
43083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43084 (exit $ac_status); }; }; then
43085 ac_cv_func_socket=yes
43086else
43087 echo "$as_me: failed program was:" >&5
43088sed 's/^/| /' conftest.$ac_ext >&5
43089
43090ac_cv_func_socket=no
43091fi
ac1cb8d3
VS
43092rm -f conftest.err conftest.$ac_objext \
43093 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43094fi
43095echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
43096echo "${ECHO_T}$ac_cv_func_socket" >&6
43097if test $ac_cv_func_socket = yes; then
43098 :
43099else
43100
43101 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
43102echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
43103if test "${ac_cv_lib_socket_socket+set}" = set; then
43104 echo $ECHO_N "(cached) $ECHO_C" >&6
43105else
43106 ac_check_lib_save_LIBS=$LIBS
43107LIBS="-lsocket $LIBS"
43108cat >conftest.$ac_ext <<_ACEOF
43109/* confdefs.h. */
43110_ACEOF
43111cat confdefs.h >>conftest.$ac_ext
43112cat >>conftest.$ac_ext <<_ACEOF
43113/* end confdefs.h. */
43114
43115/* Override any gcc2 internal prototype to avoid an error. */
43116#ifdef __cplusplus
43117extern "C"
43118#endif
43119/* We use char because int might match the return type of a gcc2
43120 builtin and then its argument prototype would still apply. */
43121char socket ();
43122int
43123main ()
43124{
43125socket ();
43126 ;
43127 return 0;
43128}
43129_ACEOF
43130rm -f conftest.$ac_objext conftest$ac_exeext
43131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43132 (eval $ac_link) 2>conftest.er1
a848cd7e 43133 ac_status=$?
ac1cb8d3
VS
43134 grep -v '^ *+' conftest.er1 >conftest.err
43135 rm -f conftest.er1
43136 cat conftest.err >&5
a848cd7e
SC
43137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43138 (exit $ac_status); } &&
3f60522a
JS
43139 { ac_try='test -z "$ac_cxx_werror_flag"
43140 || test ! -s conftest.err'
ac1cb8d3
VS
43141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43142 (eval $ac_try) 2>&5
43143 ac_status=$?
43144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43145 (exit $ac_status); }; } &&
43146 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43148 (eval $ac_try) 2>&5
43149 ac_status=$?
43150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43151 (exit $ac_status); }; }; then
43152 ac_cv_lib_socket_socket=yes
43153else
43154 echo "$as_me: failed program was:" >&5
43155sed 's/^/| /' conftest.$ac_ext >&5
43156
43157ac_cv_lib_socket_socket=no
43158fi
ac1cb8d3
VS
43159rm -f conftest.err conftest.$ac_objext \
43160 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43161LIBS=$ac_check_lib_save_LIBS
43162fi
43163echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
43164echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
43165if test $ac_cv_lib_socket_socket = yes; then
43166 if test "$INET_LINK" != " -lsocket"; then
43167 INET_LINK="$INET_LINK -lsocket"
43168 fi
43169else
43170
43171 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
43172echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
43173 wxUSE_SOCKETS=no
43174
43175
43176fi
43177
43178
43179
43180fi
43181
43182 fi
43183fi
43184
43185if test "$wxUSE_SOCKETS" = "yes" ; then
43186 if test "$TOOLKIT" != "MSW"; then
5d7b7554 43187 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
43188echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
43189if test "${wx_cv_type_getsockname3+set}" = set; then
43190 echo $ECHO_N "(cached) $ECHO_C" >&6
43191else
43192
43193 cat >conftest.$ac_ext <<_ACEOF
43194/* confdefs.h. */
43195_ACEOF
43196cat confdefs.h >>conftest.$ac_ext
43197cat >>conftest.$ac_ext <<_ACEOF
43198/* end confdefs.h. */
43199
43200 #include <sys/types.h>
43201 #include <sys/socket.h>
43202
43203int
43204main ()
43205{
43206
43207 socklen_t len;
43208 getsockname(0, 0, &len);
43209
43210 ;
43211 return 0;
43212}
43213_ACEOF
43214rm -f conftest.$ac_objext
43215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43216 (eval $ac_compile) 2>conftest.er1
a848cd7e 43217 ac_status=$?
ac1cb8d3
VS
43218 grep -v '^ *+' conftest.er1 >conftest.err
43219 rm -f conftest.er1
43220 cat conftest.err >&5
a848cd7e
SC
43221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43222 (exit $ac_status); } &&
3f60522a
JS
43223 { ac_try='test -z "$ac_cxx_werror_flag"
43224 || test ! -s conftest.err'
ac1cb8d3
VS
43225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43226 (eval $ac_try) 2>&5
43227 ac_status=$?
43228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43229 (exit $ac_status); }; } &&
43230 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43232 (eval $ac_try) 2>&5
43233 ac_status=$?
43234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43235 (exit $ac_status); }; }; then
43236 wx_cv_type_getsockname3=socklen_t
43237else
43238 echo "$as_me: failed program was:" >&5
43239sed 's/^/| /' conftest.$ac_ext >&5
43240
43241
6459a506 43242 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 43243 if test "$GCC" = yes ; then
c92ad099 43244 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
43245 fi
43246
43247 cat >conftest.$ac_ext <<_ACEOF
43248/* confdefs.h. */
43249_ACEOF
43250cat confdefs.h >>conftest.$ac_ext
43251cat >>conftest.$ac_ext <<_ACEOF
43252/* end confdefs.h. */
43253
43254 #include <sys/types.h>
43255 #include <sys/socket.h>
43256
43257int
43258main ()
43259{
43260
43261 size_t len;
43262 getsockname(0, 0, &len);
43263
43264 ;
43265 return 0;
43266}
43267_ACEOF
43268rm -f conftest.$ac_objext
43269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43270 (eval $ac_compile) 2>conftest.er1
a848cd7e 43271 ac_status=$?
ac1cb8d3
VS
43272 grep -v '^ *+' conftest.er1 >conftest.err
43273 rm -f conftest.er1
43274 cat conftest.err >&5
a848cd7e
SC
43275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43276 (exit $ac_status); } &&
3f60522a
JS
43277 { ac_try='test -z "$ac_cxx_werror_flag"
43278 || test ! -s conftest.err'
ac1cb8d3
VS
43279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43280 (eval $ac_try) 2>&5
43281 ac_status=$?
43282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43283 (exit $ac_status); }; } &&
43284 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43286 (eval $ac_try) 2>&5
43287 ac_status=$?
43288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43289 (exit $ac_status); }; }; then
43290 wx_cv_type_getsockname3=size_t
43291else
43292 echo "$as_me: failed program was:" >&5
43293sed 's/^/| /' conftest.$ac_ext >&5
43294
43295cat >conftest.$ac_ext <<_ACEOF
43296/* confdefs.h. */
43297_ACEOF
43298cat confdefs.h >>conftest.$ac_ext
43299cat >>conftest.$ac_ext <<_ACEOF
43300/* end confdefs.h. */
43301
43302 #include <sys/types.h>
43303 #include <sys/socket.h>
43304
43305int
43306main ()
43307{
43308
43309 int len;
43310 getsockname(0, 0, &len);
43311
43312 ;
43313 return 0;
43314}
43315_ACEOF
43316rm -f conftest.$ac_objext
43317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43318 (eval $ac_compile) 2>conftest.er1
a848cd7e 43319 ac_status=$?
ac1cb8d3
VS
43320 grep -v '^ *+' conftest.er1 >conftest.err
43321 rm -f conftest.er1
43322 cat conftest.err >&5
a848cd7e
SC
43323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43324 (exit $ac_status); } &&
3f60522a
JS
43325 { ac_try='test -z "$ac_cxx_werror_flag"
43326 || test ! -s conftest.err'
ac1cb8d3
VS
43327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43328 (eval $ac_try) 2>&5
43329 ac_status=$?
43330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43331 (exit $ac_status); }; } &&
43332 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43334 (eval $ac_try) 2>&5
43335 ac_status=$?
43336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43337 (exit $ac_status); }; }; then
43338 wx_cv_type_getsockname3=int
43339else
43340 echo "$as_me: failed program was:" >&5
43341sed 's/^/| /' conftest.$ac_ext >&5
43342
43343wx_cv_type_getsockname3=unknown
43344
43345fi
ac1cb8d3 43346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43347
43348fi
ac1cb8d3 43349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 43350
6459a506 43351 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
43352
43353
43354fi
ac1cb8d3 43355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43356
43357fi
43358echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
43359echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
43360
43361 if test "$wx_cv_type_getsockname3" = "unknown"; then
43362 wxUSE_SOCKETS=no
43363 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43364echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43365 else
43366 cat >>confdefs.h <<_ACEOF
9e03e02d 43367#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
43368_ACEOF
43369
43370 fi
43371 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
43372echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
43373if test "${wx_cv_type_getsockopt5+set}" = set; then
43374 echo $ECHO_N "(cached) $ECHO_C" >&6
43375else
43376
43377 cat >conftest.$ac_ext <<_ACEOF
43378/* confdefs.h. */
43379_ACEOF
43380cat confdefs.h >>conftest.$ac_ext
43381cat >>conftest.$ac_ext <<_ACEOF
43382/* end confdefs.h. */
43383
43384 #include <sys/types.h>
43385 #include <sys/socket.h>
43386
43387int
43388main ()
43389{
43390
43391 socklen_t len;
43392 getsockopt(0, 0, 0, 0, &len);
43393
43394 ;
43395 return 0;
43396}
43397_ACEOF
43398rm -f conftest.$ac_objext
43399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43400 (eval $ac_compile) 2>conftest.er1
43401 ac_status=$?
43402 grep -v '^ *+' conftest.er1 >conftest.err
43403 rm -f conftest.er1
43404 cat conftest.err >&5
43405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43406 (exit $ac_status); } &&
3f60522a
JS
43407 { ac_try='test -z "$ac_cxx_werror_flag"
43408 || test ! -s conftest.err'
5b674b9d
DE
43409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43410 (eval $ac_try) 2>&5
43411 ac_status=$?
43412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43413 (exit $ac_status); }; } &&
43414 { ac_try='test -s conftest.$ac_objext'
43415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43416 (eval $ac_try) 2>&5
43417 ac_status=$?
43418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43419 (exit $ac_status); }; }; then
43420 wx_cv_type_getsockopt5=socklen_t
43421else
43422 echo "$as_me: failed program was:" >&5
43423sed 's/^/| /' conftest.$ac_ext >&5
43424
43425
6459a506 43426 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 43427 if test "$GCC" = yes ; then
c92ad099 43428 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
43429 fi
43430
43431 cat >conftest.$ac_ext <<_ACEOF
43432/* confdefs.h. */
43433_ACEOF
43434cat confdefs.h >>conftest.$ac_ext
43435cat >>conftest.$ac_ext <<_ACEOF
43436/* end confdefs.h. */
43437
43438 #include <sys/types.h>
43439 #include <sys/socket.h>
43440
43441int
43442main ()
43443{
43444
43445 size_t len;
43446 getsockopt(0, 0, 0, 0, &len);
43447
43448 ;
43449 return 0;
43450}
43451_ACEOF
43452rm -f conftest.$ac_objext
43453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43454 (eval $ac_compile) 2>conftest.er1
43455 ac_status=$?
43456 grep -v '^ *+' conftest.er1 >conftest.err
43457 rm -f conftest.er1
43458 cat conftest.err >&5
43459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43460 (exit $ac_status); } &&
3f60522a
JS
43461 { ac_try='test -z "$ac_cxx_werror_flag"
43462 || test ! -s conftest.err'
5b674b9d
DE
43463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43464 (eval $ac_try) 2>&5
43465 ac_status=$?
43466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43467 (exit $ac_status); }; } &&
43468 { ac_try='test -s conftest.$ac_objext'
43469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43470 (eval $ac_try) 2>&5
43471 ac_status=$?
43472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43473 (exit $ac_status); }; }; then
43474 wx_cv_type_getsockopt5=size_t
43475else
43476 echo "$as_me: failed program was:" >&5
43477sed 's/^/| /' conftest.$ac_ext >&5
43478
43479cat >conftest.$ac_ext <<_ACEOF
43480/* confdefs.h. */
43481_ACEOF
43482cat confdefs.h >>conftest.$ac_ext
43483cat >>conftest.$ac_ext <<_ACEOF
43484/* end confdefs.h. */
43485
43486 #include <sys/types.h>
43487 #include <sys/socket.h>
43488
43489int
43490main ()
43491{
43492
43493 int len;
43494 getsockopt(0, 0, 0, 0, &len);
43495
43496 ;
43497 return 0;
43498}
43499_ACEOF
43500rm -f conftest.$ac_objext
43501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43502 (eval $ac_compile) 2>conftest.er1
43503 ac_status=$?
43504 grep -v '^ *+' conftest.er1 >conftest.err
43505 rm -f conftest.er1
43506 cat conftest.err >&5
43507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43508 (exit $ac_status); } &&
3f60522a
JS
43509 { ac_try='test -z "$ac_cxx_werror_flag"
43510 || test ! -s conftest.err'
5b674b9d
DE
43511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43512 (eval $ac_try) 2>&5
43513 ac_status=$?
43514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43515 (exit $ac_status); }; } &&
43516 { ac_try='test -s conftest.$ac_objext'
43517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43518 (eval $ac_try) 2>&5
43519 ac_status=$?
43520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43521 (exit $ac_status); }; }; then
43522 wx_cv_type_getsockopt5=int
43523else
43524 echo "$as_me: failed program was:" >&5
43525sed 's/^/| /' conftest.$ac_ext >&5
43526
43527wx_cv_type_getsockopt5=unknown
43528
43529fi
43530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43531
43532fi
43533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43534
6459a506 43535 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
43536
43537
43538fi
43539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43540
43541fi
43542echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
43543echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
43544
43545 if test "$wx_cv_type_getsockopt5" = "unknown"; then
43546 wxUSE_SOCKETS=no
43547 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43548echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43549 else
43550 cat >>confdefs.h <<_ACEOF
43551#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
43552_ACEOF
43553
43554 fi
43555 fi
43556fi
43557
43558if test "$wxUSE_SOCKETS" = "yes" ; then
43559 cat >>confdefs.h <<\_ACEOF
43560#define wxUSE_SOCKETS 1
43561_ACEOF
43562
43563 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
43564fi
43565
43566if test "$wxUSE_PROTOCOL" = "yes"; then
43567 if test "$wxUSE_SOCKETS" != "yes"; then
43568 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
43569echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
43570 wxUSE_PROTOCOL=no
43571 fi
43572fi
43573
43574if test "$wxUSE_PROTOCOL" = "yes"; then
43575 cat >>confdefs.h <<\_ACEOF
43576#define wxUSE_PROTOCOL 1
43577_ACEOF
43578
43579
43580 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
43581 cat >>confdefs.h <<\_ACEOF
43582#define wxUSE_PROTOCOL_HTTP 1
43583_ACEOF
43584
43585 fi
43586 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
43587 cat >>confdefs.h <<\_ACEOF
43588#define wxUSE_PROTOCOL_FTP 1
43589_ACEOF
43590
43591 fi
43592 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
43593 cat >>confdefs.h <<\_ACEOF
43594#define wxUSE_PROTOCOL_FILE 1
43595_ACEOF
43596
43597 fi
43598else
43599 if test "$wxUSE_FS_INET" = "yes"; then
43600 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
43601echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
43602 wxUSE_FS_INET="no"
43603 fi
43604fi
43605
43606if test "$wxUSE_URL" = "yes"; then
43607 if test "$wxUSE_PROTOCOL" != "yes"; then
43608 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
43609echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
43610 wxUSE_URL=no
43611 fi
43612 if test "$wxUSE_URL" = "yes"; then
43613 cat >>confdefs.h <<\_ACEOF
43614#define wxUSE_URL 1
43615_ACEOF
43616
43617 fi
43618fi
43619
43620if test "$wxUSE_FS_INET" = "yes"; then
43621 cat >>confdefs.h <<\_ACEOF
43622#define wxUSE_FS_INET 1
43623_ACEOF
43624
43625fi
43626
43627
ee45c548
MW
43628if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
43629 wxUSE_JOYSTICK=no
43630
43631 if test "$TOOLKIT" = "MSW"; then
43632 wxUSE_JOYSTICK=yes
43633
43634 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
43635 if test "$USE_DARWIN" = 1; then
43636 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
43637echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
ee45c548
MW
43638 cat >conftest.$ac_ext <<_ACEOF
43639/* confdefs.h. */
43640_ACEOF
43641cat confdefs.h >>conftest.$ac_ext
43642cat >>conftest.$ac_ext <<_ACEOF
43643/* end confdefs.h. */
43644 #include <IOKit/hid/IOHIDLib.h>
43645int
43646main ()
43647{
43648 IOHIDQueueInterface *qi = NULL;
43649 IOHIDCallbackFunction cb = NULL;
43650 qi->setEventCallout(NULL, cb, NULL, NULL);
43651 ;
43652 return 0;
43653}
43654_ACEOF
43655rm -f conftest.$ac_objext
43656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43657 (eval $ac_compile) 2>conftest.er1
43658 ac_status=$?
43659 grep -v '^ *+' conftest.er1 >conftest.err
43660 rm -f conftest.er1
43661 cat conftest.err >&5
43662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43663 (exit $ac_status); } &&
3f60522a
JS
43664 { ac_try='test -z "$ac_cxx_werror_flag"
43665 || test ! -s conftest.err'
ee45c548
MW
43666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43667 (eval $ac_try) 2>&5
43668 ac_status=$?
43669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43670 (exit $ac_status); }; } &&
43671 { ac_try='test -s conftest.$ac_objext'
43672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43673 (eval $ac_try) 2>&5
43674 ac_status=$?
43675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43676 (exit $ac_status); }; }; then
43677 wxUSE_JOYSTICK=yes
a848cd7e 43678
ee45c548
MW
43679else
43680 echo "$as_me: failed program was:" >&5
43681sed 's/^/| /' conftest.$ac_ext >&5
43682
43683fi
43684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ee45c548
MW
43685 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
43686echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
43687 fi
43688
43689 else
a848cd7e
SC
43690
43691for ac_header in linux/joystick.h
43692do
43693as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43694if eval "test \"\${$as_ac_Header+set}\" = set"; then
43695 echo "$as_me:$LINENO: checking for $ac_header" >&5
43696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43697if eval "test \"\${$as_ac_Header+set}\" = set"; then
43698 echo $ECHO_N "(cached) $ECHO_C" >&6
43699fi
43700echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43701echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43702else
43703 # Is the header compilable?
43704echo "$as_me:$LINENO: checking $ac_header usability" >&5
43705echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43706cat >conftest.$ac_ext <<_ACEOF
43707/* confdefs.h. */
43708_ACEOF
43709cat confdefs.h >>conftest.$ac_ext
43710cat >>conftest.$ac_ext <<_ACEOF
43711/* end confdefs.h. */
43712$ac_includes_default
43713#include <$ac_header>
43714_ACEOF
43715rm -f conftest.$ac_objext
43716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43717 (eval $ac_compile) 2>conftest.er1
a848cd7e 43718 ac_status=$?
ac1cb8d3
VS
43719 grep -v '^ *+' conftest.er1 >conftest.err
43720 rm -f conftest.er1
43721 cat conftest.err >&5
a848cd7e
SC
43722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43723 (exit $ac_status); } &&
3f60522a
JS
43724 { ac_try='test -z "$ac_cxx_werror_flag"
43725 || test ! -s conftest.err'
ac1cb8d3
VS
43726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43727 (eval $ac_try) 2>&5
43728 ac_status=$?
43729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43730 (exit $ac_status); }; } &&
43731 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43733 (eval $ac_try) 2>&5
43734 ac_status=$?
43735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43736 (exit $ac_status); }; }; then
43737 ac_header_compiler=yes
43738else
43739 echo "$as_me: failed program was:" >&5
43740sed 's/^/| /' conftest.$ac_ext >&5
43741
43742ac_header_compiler=no
43743fi
ac1cb8d3 43744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43745echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43746echo "${ECHO_T}$ac_header_compiler" >&6
43747
43748# Is the header present?
43749echo "$as_me:$LINENO: checking $ac_header presence" >&5
43750echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43751cat >conftest.$ac_ext <<_ACEOF
43752/* confdefs.h. */
43753_ACEOF
43754cat confdefs.h >>conftest.$ac_ext
43755cat >>conftest.$ac_ext <<_ACEOF
43756/* end confdefs.h. */
43757#include <$ac_header>
43758_ACEOF
43759if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43761 ac_status=$?
43762 grep -v '^ *+' conftest.er1 >conftest.err
43763 rm -f conftest.er1
43764 cat conftest.err >&5
43765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43766 (exit $ac_status); } >/dev/null; then
43767 if test -s conftest.err; then
5d7b7554
VZ
43768 ac_cpp_err=$ac_cxx_preproc_warn_flag
43769 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
43770 else
43771 ac_cpp_err=
43772 fi
43773else
43774 ac_cpp_err=yes
43775fi
43776if test -z "$ac_cpp_err"; then
43777 ac_header_preproc=yes
43778else
43779 echo "$as_me: failed program was:" >&5
43780sed 's/^/| /' conftest.$ac_ext >&5
43781
43782 ac_header_preproc=no
43783fi
43784rm -f conftest.err conftest.$ac_ext
43785echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43786echo "${ECHO_T}$ac_header_preproc" >&6
43787
43788# So? What about this header?
5d7b7554 43789case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 43790 yes:no: )
a848cd7e
SC
43791 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43792echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
43793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43794echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43795 ac_header_preproc=yes
a848cd7e 43796 ;;
ac1cb8d3 43797 no:yes:* )
a848cd7e
SC
43798 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43799echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
43800 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43801echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43802 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43803echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43804 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43805echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
43806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43807echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
43808 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43809echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
43810 (
43811 cat <<\_ASBOX
ac1cb8d3
VS
43812## ----------------------------------------- ##
43813## Report this to wx-dev@lists.wxwidgets.org ##
43814## ----------------------------------------- ##
a848cd7e
SC
43815_ASBOX
43816 ) |
43817 sed "s/^/$as_me: WARNING: /" >&2
43818 ;;
43819esac
43820echo "$as_me:$LINENO: checking for $ac_header" >&5
43821echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43822if eval "test \"\${$as_ac_Header+set}\" = set"; then
43823 echo $ECHO_N "(cached) $ECHO_C" >&6
43824else
ac1cb8d3 43825 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
43826fi
43827echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43828echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43829
43830fi
43831if test `eval echo '${'$as_ac_Header'}'` = yes; then
43832 cat >>confdefs.h <<_ACEOF
43833#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43834_ACEOF
ee45c548 43835 wxUSE_JOYSTICK=yes
a848cd7e
SC
43836fi
43837
43838done
43839
ee45c548 43840 fi
4cb1d3da 43841
ee45c548
MW
43842 if test "$wxUSE_JOYSTICK" = "yes"; then
43843 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43844#define wxUSE_JOYSTICK 1
43845_ACEOF
43846
ee45c548
MW
43847 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
43848 else
43849 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
43850echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
43851 fi
43852fi
43853
43854
43855
43856if test "$wxUSE_FONTMAP" = "yes" ; then
43857 cat >>confdefs.h <<\_ACEOF
43858#define wxUSE_FONTMAP 1
43859_ACEOF
43860
43861fi
43862
43863if test "$wxUSE_UNICODE" = "yes" ; then
43864 cat >>confdefs.h <<\_ACEOF
43865#define wxUSE_UNICODE 1
43866_ACEOF
43867
43868
43869 if test "$USE_WIN32" != 1; then
43870 wxUSE_UNICODE_MSLU=no
43871 fi
43872
43873 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
43874 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
43875echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
43876if test "${ac_cv_lib_unicows_main+set}" = set; then
43877 echo $ECHO_N "(cached) $ECHO_C" >&6
43878else
43879 ac_check_lib_save_LIBS=$LIBS
43880LIBS="-lunicows $LIBS"
43881cat >conftest.$ac_ext <<_ACEOF
43882/* confdefs.h. */
43883_ACEOF
43884cat confdefs.h >>conftest.$ac_ext
43885cat >>conftest.$ac_ext <<_ACEOF
43886/* end confdefs.h. */
43887
43888
43889int
43890main ()
43891{
43892main ();
43893 ;
43894 return 0;
43895}
43896_ACEOF
43897rm -f conftest.$ac_objext conftest$ac_exeext
43898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43899 (eval $ac_link) 2>conftest.er1
a848cd7e 43900 ac_status=$?
ac1cb8d3
VS
43901 grep -v '^ *+' conftest.er1 >conftest.err
43902 rm -f conftest.er1
43903 cat conftest.err >&5
a848cd7e
SC
43904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43905 (exit $ac_status); } &&
3f60522a
JS
43906 { ac_try='test -z "$ac_cxx_werror_flag"
43907 || test ! -s conftest.err'
ac1cb8d3
VS
43908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43909 (eval $ac_try) 2>&5
43910 ac_status=$?
43911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43912 (exit $ac_status); }; } &&
43913 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43915 (eval $ac_try) 2>&5
43916 ac_status=$?
43917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43918 (exit $ac_status); }; }; then
43919 ac_cv_lib_unicows_main=yes
43920else
43921 echo "$as_me: failed program was:" >&5
43922sed 's/^/| /' conftest.$ac_ext >&5
43923
43924ac_cv_lib_unicows_main=no
43925fi
ac1cb8d3
VS
43926rm -f conftest.err conftest.$ac_objext \
43927 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43928LIBS=$ac_check_lib_save_LIBS
43929fi
43930echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
43931echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
43932if test $ac_cv_lib_unicows_main = yes; then
43933
43934 cat >>confdefs.h <<\_ACEOF
43935#define wxUSE_UNICODE_MSLU 1
43936_ACEOF
43937
43938
43939else
43940
43941 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43942 Applications will only run on Windows NT/2000/XP!" >&5
43943echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43944 Applications will only run on Windows NT/2000/XP!" >&2;}
43945 wxUSE_UNICODE_MSLU=no
43946
43947fi
43948
43949 fi
43950fi
43951
43952if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
43953 cat >>confdefs.h <<\_ACEOF
43954#define wxUSE_EXPERIMENTAL_PRINTF 1
43955_ACEOF
43956
43957fi
43958
43959
43960if test "$wxUSE_POSTSCRIPT" = "yes" ; then
43961 cat >>confdefs.h <<\_ACEOF
43962#define wxUSE_POSTSCRIPT 1
43963_ACEOF
43964
43965fi
43966
43967cat >>confdefs.h <<\_ACEOF
43968#define wxUSE_AFM_FOR_POSTSCRIPT 1
43969_ACEOF
43970
43971
43972cat >>confdefs.h <<\_ACEOF
43973#define wxUSE_NORMALIZED_PS_FONTS 1
43974_ACEOF
43975
43976
43977
43978if test "$wxUSE_CONSTRAINTS" = "yes"; then
43979 cat >>confdefs.h <<\_ACEOF
43980#define wxUSE_CONSTRAINTS 1
43981_ACEOF
43982
43983 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
43984fi
43985
8a7b1113
VZ
43986if test "$wxUSE_MDI" = "yes"; then
43987 cat >>confdefs.h <<\_ACEOF
43988#define wxUSE_MDI 1
43989_ACEOF
43990
43991
43992 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43993 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43994#define wxUSE_MDI_ARCHITECTURE 1
43995_ACEOF
43996
8a7b1113
VZ
43997 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
43998 fi
a848cd7e
SC
43999fi
44000
44001if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
44002 cat >>confdefs.h <<\_ACEOF
44003#define wxUSE_DOC_VIEW_ARCHITECTURE 1
44004_ACEOF
44005
44006 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
44007 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44008 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
44009 fi
44010fi
44011
44012if test "$wxUSE_HELP" = "yes"; then
44013 cat >>confdefs.h <<\_ACEOF
44014#define wxUSE_HELP 1
44015_ACEOF
44016
44017 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
44018
44019 if test "$wxUSE_MSW" = 1; then
44020 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
44021 cat >>confdefs.h <<\_ACEOF
44022#define wxUSE_MS_HTML_HELP 1
44023_ACEOF
44024
44025 fi
44026 fi
44027
44028 if test "$wxUSE_WXHTML_HELP" = "yes"; then
44029 if test "$wxUSE_HTML" = "yes"; then
44030 cat >>confdefs.h <<\_ACEOF
44031#define wxUSE_WXHTML_HELP 1
44032_ACEOF
44033
44034 else
44035 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
44036echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
44037 wxUSE_WXHTML_HELP=no
44038 fi
44039 fi
44040fi
44041
44042if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44043 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44044 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
44045echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
44046 else
44047 cat >>confdefs.h <<\_ACEOF
44048#define wxUSE_PRINTING_ARCHITECTURE 1
44049_ACEOF
44050
44051 fi
44052 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
44053fi
44054
44055if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
44056 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
44057echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
44058 { (exit 1); exit 1; }; }
44059fi
44060
44061
efdf6afe
VZ
44062if test "$wxUSE_METAFILE" = "yes"; then
44063 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
44064 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
44065echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
44066 wxUSE_METAFILE=no
44067 fi
44068fi
44069
44070
a848cd7e
SC
44071if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
44072 -o "$wxUSE_CLIPBOARD" = "yes" \
44073 -o "$wxUSE_OLE" = "yes" \
44074 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
44075
44076for ac_header in ole2.h
44077do
44078as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44079if eval "test \"\${$as_ac_Header+set}\" = set"; then
44080 echo "$as_me:$LINENO: checking for $ac_header" >&5
44081echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44082if eval "test \"\${$as_ac_Header+set}\" = set"; then
44083 echo $ECHO_N "(cached) $ECHO_C" >&6
44084fi
44085echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44086echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44087else
44088 # Is the header compilable?
44089echo "$as_me:$LINENO: checking $ac_header usability" >&5
44090echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44091cat >conftest.$ac_ext <<_ACEOF
44092/* confdefs.h. */
44093_ACEOF
44094cat confdefs.h >>conftest.$ac_ext
44095cat >>conftest.$ac_ext <<_ACEOF
44096/* end confdefs.h. */
44097$ac_includes_default
44098#include <$ac_header>
44099_ACEOF
44100rm -f conftest.$ac_objext
44101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44102 (eval $ac_compile) 2>conftest.er1
a848cd7e 44103 ac_status=$?
ac1cb8d3
VS
44104 grep -v '^ *+' conftest.er1 >conftest.err
44105 rm -f conftest.er1
44106 cat conftest.err >&5
a848cd7e
SC
44107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44108 (exit $ac_status); } &&
3f60522a
JS
44109 { ac_try='test -z "$ac_cxx_werror_flag"
44110 || 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 ac_header_compiler=yes
44123else
44124 echo "$as_me: failed program was:" >&5
44125sed 's/^/| /' conftest.$ac_ext >&5
44126
44127ac_header_compiler=no
44128fi
ac1cb8d3 44129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44130echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44131echo "${ECHO_T}$ac_header_compiler" >&6
44132
44133# Is the header present?
44134echo "$as_me:$LINENO: checking $ac_header presence" >&5
44135echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44136cat >conftest.$ac_ext <<_ACEOF
44137/* confdefs.h. */
44138_ACEOF
44139cat confdefs.h >>conftest.$ac_ext
44140cat >>conftest.$ac_ext <<_ACEOF
44141/* end confdefs.h. */
44142#include <$ac_header>
44143_ACEOF
44144if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44146 ac_status=$?
44147 grep -v '^ *+' conftest.er1 >conftest.err
44148 rm -f conftest.er1
44149 cat conftest.err >&5
44150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44151 (exit $ac_status); } >/dev/null; then
44152 if test -s conftest.err; then
5d7b7554
VZ
44153 ac_cpp_err=$ac_cxx_preproc_warn_flag
44154 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
44155 else
44156 ac_cpp_err=
44157 fi
44158else
44159 ac_cpp_err=yes
44160fi
44161if test -z "$ac_cpp_err"; then
44162 ac_header_preproc=yes
44163else
44164 echo "$as_me: failed program was:" >&5
44165sed 's/^/| /' conftest.$ac_ext >&5
44166
44167 ac_header_preproc=no
44168fi
44169rm -f conftest.err conftest.$ac_ext
44170echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44171echo "${ECHO_T}$ac_header_preproc" >&6
44172
44173# So? What about this header?
5d7b7554 44174case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 44175 yes:no: )
a848cd7e
SC
44176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44177echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
44178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44179echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44180 ac_header_preproc=yes
a848cd7e 44181 ;;
ac1cb8d3 44182 no:yes:* )
a848cd7e
SC
44183 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44184echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
44185 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44186echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44187 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44188echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44189 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44190echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
44191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44192echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
44193 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44194echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
44195 (
44196 cat <<\_ASBOX
ac1cb8d3
VS
44197## ----------------------------------------- ##
44198## Report this to wx-dev@lists.wxwidgets.org ##
44199## ----------------------------------------- ##
a848cd7e
SC
44200_ASBOX
44201 ) |
44202 sed "s/^/$as_me: WARNING: /" >&2
44203 ;;
44204esac
44205echo "$as_me:$LINENO: checking for $ac_header" >&5
44206echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44207if eval "test \"\${$as_ac_Header+set}\" = set"; then
44208 echo $ECHO_N "(cached) $ECHO_C" >&6
44209else
ac1cb8d3 44210 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
44211fi
44212echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44213echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44214
44215fi
44216if test `eval echo '${'$as_ac_Header'}'` = yes; then
44217 cat >>confdefs.h <<_ACEOF
44218#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44219_ACEOF
44220
44221fi
44222
44223done
44224
44225
44226 if test "$ac_cv_header_ole2_h" = "yes" ; then
44227 if test "$GCC" = yes ; then
a848cd7e
SC
44228 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
44229echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
44230 cat >conftest.$ac_ext <<_ACEOF
44231/* confdefs.h. */
44232_ACEOF
44233cat confdefs.h >>conftest.$ac_ext
44234cat >>conftest.$ac_ext <<_ACEOF
44235/* end confdefs.h. */
44236#include <windows.h>
44237 #include <ole2.h>
44238int
44239main ()
44240{
44241
44242 ;
44243 return 0;
44244}
44245_ACEOF
44246rm -f conftest.$ac_objext
44247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44248 (eval $ac_compile) 2>conftest.er1
a848cd7e 44249 ac_status=$?
ac1cb8d3
VS
44250 grep -v '^ *+' conftest.er1 >conftest.err
44251 rm -f conftest.er1
44252 cat conftest.err >&5
a848cd7e
SC
44253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44254 (exit $ac_status); } &&
3f60522a
JS
44255 { ac_try='test -z "$ac_cxx_werror_flag"
44256 || test ! -s conftest.err'
ac1cb8d3
VS
44257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44258 (eval $ac_try) 2>&5
44259 ac_status=$?
44260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44261 (exit $ac_status); }; } &&
44262 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44264 (eval $ac_try) 2>&5
44265 ac_status=$?
44266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44267 (exit $ac_status); }; }; then
44268 echo "$as_me:$LINENO: result: no" >&5
44269echo "${ECHO_T}no" >&6
44270else
44271 echo "$as_me: failed program was:" >&5
44272sed 's/^/| /' conftest.$ac_ext >&5
44273
44274echo "$as_me:$LINENO: result: yes" >&5
44275echo "${ECHO_T}yes" >&6
5ff751d6 44276 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 44277fi
ac1cb8d3 44278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44279 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
44280 if test "$wxUSE_OLE" = "yes" ; then
44281 cat >>confdefs.h <<\_ACEOF
44282#define wxUSE_OLE 1
44283_ACEOF
44284
0b78747f 44285 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
44286 fi
44287 fi
44288
44289 if test "$wxUSE_DATAOBJ" = "yes" ; then
44290 cat >>confdefs.h <<\_ACEOF
44291#define wxUSE_DATAOBJ 1
44292_ACEOF
44293
44294 fi
44295 else
44296 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
44297echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
44298
44299 wxUSE_CLIPBOARD=no
44300 wxUSE_DRAG_AND_DROP=no
44301 wxUSE_DATAOBJ=no
44302 wxUSE_OLE=no
44303 fi
44304
44305 if test "$wxUSE_METAFILE" = "yes"; then
44306 cat >>confdefs.h <<\_ACEOF
44307#define wxUSE_METAFILE 1
44308_ACEOF
44309
44310
44311 cat >>confdefs.h <<\_ACEOF
44312#define wxUSE_ENH_METAFILE 1
44313_ACEOF
44314
44315 fi
44316fi
44317
44318if test "$wxUSE_IPC" = "yes"; then
0b78747f 44319 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
44320 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
44321echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 44322 wxUSE_IPC=no
a848cd7e
SC
44323 fi
44324
0b78747f
MW
44325 if test "$wxUSE_IPC" = "yes"; then
44326 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44327#define wxUSE_IPC 1
44328_ACEOF
44329
0b78747f
MW
44330 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
44331 fi
a848cd7e
SC
44332fi
44333
eb730a0c 44334if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
44335 if test "$wxUSE_MGL" = 1; then
44336 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
44337echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
44338 wxUSE_DATAOBJ=no
44339 else
44340 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
44341#define wxUSE_DATAOBJ 1
44342_ACEOF
44343
2113bc77 44344 fi
eb730a0c
JS
44345else
44346 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
44347echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
44348 wxUSE_CLIPBOARD=no
44349 wxUSE_DRAG_AND_DROP=no
44350fi
44351
a848cd7e
SC
44352if test "$wxUSE_CLIPBOARD" = "yes"; then
44353 if test "$wxUSE_MGL" = 1; then
44354 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
44355echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
44356 wxUSE_CLIPBOARD=no
44357 fi
44358
44359 if test "$wxUSE_CLIPBOARD" = "yes"; then
44360 cat >>confdefs.h <<\_ACEOF
44361#define wxUSE_CLIPBOARD 1
44362_ACEOF
44363
a848cd7e
SC
44364 fi
44365fi
44366
44367if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
44368 if test "$wxUSE_GTK" = 1; then
44369 if test "$WXGTK12" != 1; then
44370 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
44371echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
44372 wxUSE_DRAG_AND_DROP=no
44373 fi
44374 fi
44375
44376 if test "$wxUSE_MOTIF" = 1; then
44377 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
44378echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
44379 wxUSE_DRAG_AND_DROP=no
44380 fi
44381
44382 if test "$wxUSE_X11" = 1; then
44383 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
44384echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
44385 wxUSE_DRAG_AND_DROP=no
44386 fi
44387
44388 if test "$wxUSE_MGL" = 1; then
44389 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
44390echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
44391 wxUSE_DRAG_AND_DROP=no
44392 fi
44393
44394 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
44395 cat >>confdefs.h <<\_ACEOF
44396#define wxUSE_DRAG_AND_DROP 1
44397_ACEOF
44398
44399 fi
44400
44401fi
44402
44403if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
44404 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
44405fi
44406
44407if test "$wxUSE_SPLINES" = "yes" ; then
44408 cat >>confdefs.h <<\_ACEOF
44409#define wxUSE_SPLINES 1
44410_ACEOF
44411
44412fi
44413
fbe2ca43
SN
44414if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
44415 cat >>confdefs.h <<\_ACEOF
44416#define wxUSE_MOUSEWHEEL 1
44417_ACEOF
44418
44419fi
44420
a848cd7e
SC
44421
44422USES_CONTROLS=0
44423if test "$wxUSE_CONTROLS" = "yes"; then
44424 USES_CONTROLS=1
44425fi
44426
44427if test "$wxUSE_ACCEL" = "yes"; then
44428 cat >>confdefs.h <<\_ACEOF
44429#define wxUSE_ACCEL 1
44430_ACEOF
44431
44432 USES_CONTROLS=1
44433fi
44434
44435if test "$wxUSE_BUTTON" = "yes"; then
44436 cat >>confdefs.h <<\_ACEOF
44437#define wxUSE_BUTTON 1
44438_ACEOF
44439
44440 USES_CONTROLS=1
44441fi
44442
44443if test "$wxUSE_BMPBUTTON" = "yes"; then
44444 cat >>confdefs.h <<\_ACEOF
44445#define wxUSE_BMPBUTTON 1
44446_ACEOF
44447
44448 USES_CONTROLS=1
44449fi
44450
44451if test "$wxUSE_CALCTRL" = "yes"; then
44452 cat >>confdefs.h <<\_ACEOF
44453#define wxUSE_CALENDARCTRL 1
44454_ACEOF
44455
44456 USES_CONTROLS=1
44457 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
44458fi
44459
44460if test "$wxUSE_CARET" = "yes"; then
44461 cat >>confdefs.h <<\_ACEOF
44462#define wxUSE_CARET 1
44463_ACEOF
44464
44465 USES_CONTROLS=1
44466 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
44467fi
44468
44469if test "$wxUSE_COMBOBOX" = "yes"; then
44470 cat >>confdefs.h <<\_ACEOF
44471#define wxUSE_COMBOBOX 1
44472_ACEOF
44473
44474 USES_CONTROLS=1
44475fi
44476
a57d600f 44477if test "$wxUSE_COMBOCTRL" = "yes"; then
642bcba9 44478 cat >>confdefs.h <<\_ACEOF
a57d600f 44479#define wxUSE_COMBOCTRL 1
642bcba9
VZ
44480_ACEOF
44481
44482 USES_CONTROLS=1
44483fi
44484
a848cd7e
SC
44485if test "$wxUSE_CHOICE" = "yes"; then
44486 cat >>confdefs.h <<\_ACEOF
44487#define wxUSE_CHOICE 1
44488_ACEOF
44489
44490 USES_CONTROLS=1
44491fi
44492
92bbdbcd
WS
44493if test "$wxUSE_CHOICEBOOK" = "yes"; then
44494 cat >>confdefs.h <<\_ACEOF
44495#define wxUSE_CHOICEBOOK 1
44496_ACEOF
44497
44498 USES_CONTROLS=1
44499fi
44500
a848cd7e
SC
44501if test "$wxUSE_CHECKBOX" = "yes"; then
44502 cat >>confdefs.h <<\_ACEOF
44503#define wxUSE_CHECKBOX 1
44504_ACEOF
44505
44506 USES_CONTROLS=1
44507fi
44508
44509if test "$wxUSE_CHECKLST" = "yes"; then
44510 cat >>confdefs.h <<\_ACEOF
44511#define wxUSE_CHECKLISTBOX 1
44512_ACEOF
44513
44514 USES_CONTROLS=1
44515 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
44516fi
44517
e9263684
VZ
44518if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
44519 cat >>confdefs.h <<\_ACEOF
44520#define wxUSE_COLOURPICKERCTRL 1
44521_ACEOF
44522
44523 USES_CONTROLS=1
44524fi
44525
da98e9be
VZ
44526if test "$wxUSE_DATEPICKCTRL" = "yes"; then
44527 cat >>confdefs.h <<\_ACEOF
44528#define wxUSE_DATEPICKCTRL 1
44529_ACEOF
44530
44531 USES_CONTROLS=1
44532fi
44533
e9263684
VZ
44534if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
44535 cat >>confdefs.h <<\_ACEOF
44536#define wxUSE_DIRPICKERCTRL 1
44537_ACEOF
44538
44539 USES_CONTROLS=1
44540fi
44541
44542if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
44543 cat >>confdefs.h <<\_ACEOF
44544#define wxUSE_FILEPICKERCTRL 1
44545_ACEOF
44546
44547 USES_CONTROLS=1
44548fi
44549
44550if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
44551 cat >>confdefs.h <<\_ACEOF
44552#define wxUSE_FONTPICKERCTRL 1
44553_ACEOF
44554
44555 USES_CONTROLS=1
44556fi
44557
a848cd7e
SC
44558if test "$wxUSE_DISPLAY" = "yes"; then
44559 cat >>confdefs.h <<\_ACEOF
44560#define wxUSE_DISPLAY 1
44561_ACEOF
44562
0b78747f 44563 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
44564fi
44565
44566if test "$wxUSE_GAUGE" = "yes"; then
44567 cat >>confdefs.h <<\_ACEOF
44568#define wxUSE_GAUGE 1
44569_ACEOF
44570
44571 USES_CONTROLS=1
44572fi
44573
44574if test "$wxUSE_GRID" = "yes"; then
44575 cat >>confdefs.h <<\_ACEOF
44576#define wxUSE_GRID 1
44577_ACEOF
44578
44579 USES_CONTROLS=1
44580 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
44581fi
44582
6954625c
VZ
44583if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
44584 cat >>confdefs.h <<\_ACEOF
44585#define wxUSE_HYPERLINKCTRL 1
44586_ACEOF
44587
44588 USES_CONTROLS=1
44589fi
44590
20e34ecc
RR
44591if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
44592 cat >>confdefs.h <<\_ACEOF
44593#define wxUSE_DATAVIEWCTRL 1
44594_ACEOF
44595
44596 USES_CONTROLS=1
44597 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
44598fi
44599
a848cd7e
SC
44600if test "$wxUSE_IMAGLIST" = "yes"; then
44601 cat >>confdefs.h <<\_ACEOF
44602#define wxUSE_IMAGLIST 1
44603_ACEOF
44604
44605fi
44606
44607if test "$wxUSE_LISTBOOK" = "yes"; then
44608 cat >>confdefs.h <<\_ACEOF
44609#define wxUSE_LISTBOOK 1
44610_ACEOF
44611
44612 USES_CONTROLS=1
44613fi
44614
44615if test "$wxUSE_LISTBOX" = "yes"; then
44616 cat >>confdefs.h <<\_ACEOF
44617#define wxUSE_LISTBOX 1
44618_ACEOF
44619
44620 USES_CONTROLS=1
0b78747f 44621 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
44622fi
44623
44624if test "$wxUSE_LISTCTRL" = "yes"; then
44625 if test "$wxUSE_IMAGLIST" = "yes"; then
44626 cat >>confdefs.h <<\_ACEOF
44627#define wxUSE_LISTCTRL 1
44628_ACEOF
44629
44630 USES_CONTROLS=1
44631 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
44632 else
44633 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
44634echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
44635 fi
44636fi
44637
44638if test "$wxUSE_NOTEBOOK" = "yes"; then
44639 cat >>confdefs.h <<\_ACEOF
44640#define wxUSE_NOTEBOOK 1
44641_ACEOF
44642
44643 USES_CONTROLS=1
44644 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
44645fi
44646
a57d600f 44647if test "$wxUSE_ODCOMBOBOX" = "yes"; then
642bcba9 44648 cat >>confdefs.h <<\_ACEOF
a57d600f 44649#define wxUSE_ODCOMBOBOX 1
642bcba9
VZ
44650_ACEOF
44651
44652 USES_CONTROLS=1
44653 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
44654fi
44655
a848cd7e
SC
44656
44657if test "$wxUSE_RADIOBOX" = "yes"; then
44658 cat >>confdefs.h <<\_ACEOF
44659#define wxUSE_RADIOBOX 1
44660_ACEOF
44661
44662 USES_CONTROLS=1
44663fi
44664
44665if test "$wxUSE_RADIOBTN" = "yes"; then
44666 cat >>confdefs.h <<\_ACEOF
44667#define wxUSE_RADIOBTN 1
44668_ACEOF
44669
44670 USES_CONTROLS=1
44671fi
44672
44673if test "$wxUSE_SASH" = "yes"; then
44674 cat >>confdefs.h <<\_ACEOF
44675#define wxUSE_SASH 1
44676_ACEOF
44677
44678 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
44679fi
44680
44681if test "$wxUSE_SCROLLBAR" = "yes"; then
44682 cat >>confdefs.h <<\_ACEOF
44683#define wxUSE_SCROLLBAR 1
44684_ACEOF
44685
44686 USES_CONTROLS=1
44687 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
44688fi
44689
44690if test "$wxUSE_SLIDER" = "yes"; then
44691 cat >>confdefs.h <<\_ACEOF
44692#define wxUSE_SLIDER 1
44693_ACEOF
44694
44695 USES_CONTROLS=1
44696fi
44697
44698if test "$wxUSE_SPINBTN" = "yes"; then
44699 cat >>confdefs.h <<\_ACEOF
44700#define wxUSE_SPINBTN 1
44701_ACEOF
44702
44703 USES_CONTROLS=1
44704fi
44705
44706if test "$wxUSE_SPINCTRL" = "yes"; then
44707 cat >>confdefs.h <<\_ACEOF
44708#define wxUSE_SPINCTRL 1
44709_ACEOF
44710
44711 USES_CONTROLS=1
44712fi
44713
44714if test "$wxUSE_SPLITTER" = "yes"; then
44715 cat >>confdefs.h <<\_ACEOF
44716#define wxUSE_SPLITTER 1
44717_ACEOF
44718
44719 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
44720fi
44721
44722if test "$wxUSE_STATBMP" = "yes"; then
44723 cat >>confdefs.h <<\_ACEOF
44724#define wxUSE_STATBMP 1
44725_ACEOF
44726
44727 USES_CONTROLS=1
44728fi
44729
44730if test "$wxUSE_STATBOX" = "yes"; then
44731 cat >>confdefs.h <<\_ACEOF
44732#define wxUSE_STATBOX 1
44733_ACEOF
44734
44735 USES_CONTROLS=1
44736fi
44737
44738if test "$wxUSE_STATTEXT" = "yes"; then
44739 cat >>confdefs.h <<\_ACEOF
44740#define wxUSE_STATTEXT 1
44741_ACEOF
44742
44743 USES_CONTROLS=1
44744fi
44745
44746if test "$wxUSE_STATLINE" = "yes"; then
44747 cat >>confdefs.h <<\_ACEOF
44748#define wxUSE_STATLINE 1
44749_ACEOF
44750
44751 USES_CONTROLS=1
44752fi
44753
44754if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
44755 cat >>confdefs.h <<\_ACEOF
44756#define wxUSE_NATIVE_STATUSBAR 1
44757_ACEOF
44758
a848cd7e
SC
44759 cat >>confdefs.h <<\_ACEOF
44760#define wxUSE_STATUSBAR 1
44761_ACEOF
44762
44763 USES_CONTROLS=1
44764
44765 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
44766fi
44767
f10e38c4 44768if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
44769 cat >>confdefs.h <<\_ACEOF
44770#define wxUSE_TAB_DIALOG 1
44771_ACEOF
44772
a848cd7e
SC
44773fi
44774
44775if test "$wxUSE_TEXTCTRL" = "yes"; then
44776 cat >>confdefs.h <<\_ACEOF
44777#define wxUSE_TEXTCTRL 1
44778_ACEOF
44779
44780 USES_CONTROLS=1
44781 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
44782fi
44783
44784if test "$wxUSE_TOGGLEBTN" = "yes"; then
44785 if test "$wxUSE_COCOA" = 1 ; then
44786 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
44787echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
44788 wxUSE_TOGGLEBTN=no
44789 fi
a848cd7e
SC
44790
44791 if test "$wxUSE_TOGGLEBTN" = "yes"; then
44792 cat >>confdefs.h <<\_ACEOF
44793#define wxUSE_TOGGLEBTN 1
44794_ACEOF
44795
44796 USES_CONTROLS=1
44797 fi
44798fi
44799
44800if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
44801 cat >>confdefs.h <<\_ACEOF
44802#define wxUSE_TOOLBAR_SIMPLE 1
44803_ACEOF
44804
44805 wxUSE_TOOLBAR="yes"
44806 USES_CONTROLS=1
44807fi
44808
44809if test "$wxUSE_TOOLBAR" = "yes"; then
44810 cat >>confdefs.h <<\_ACEOF
44811#define wxUSE_TOOLBAR 1
44812_ACEOF
44813
44814 USES_CONTROLS=1
44815
44816 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
44817 wxUSE_TOOLBAR_NATIVE="yes"
44818 fi
44819
44820 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
44821 cat >>confdefs.h <<\_ACEOF
44822#define wxUSE_TOOLBAR_NATIVE 1
44823_ACEOF
44824
44825 USES_CONTROLS=1
44826 fi
44827
44828 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
44829fi
44830
44831if test "$wxUSE_TOOLTIPS" = "yes"; then
44832 if test "$wxUSE_MOTIF" = 1; then
44833 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
44834echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
44835 else
44836 if test "$wxUSE_UNIVERSAL" = "yes"; then
44837 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
44838echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
44839 else
44840 cat >>confdefs.h <<\_ACEOF
44841#define wxUSE_TOOLTIPS 1
44842_ACEOF
44843
44844 fi
44845 fi
44846fi
44847
0093c2fc
VZ
44848if test "$wxUSE_TREEBOOK" = "yes"; then
44849 cat >>confdefs.h <<\_ACEOF
44850#define wxUSE_TREEBOOK 1
44851_ACEOF
44852
44853 USES_CONTROLS=1
44854fi
44855
5ec3bc43
JS
44856if test "$wxUSE_TOOLBOOK" = "yes"; then
44857 cat >>confdefs.h <<\_ACEOF
44858#define wxUSE_TOOLBOOK 1
44859_ACEOF
44860
44861 USES_CONTROLS=1
44862fi
44863
a848cd7e
SC
44864if test "$wxUSE_TREECTRL" = "yes"; then
44865 if test "$wxUSE_IMAGLIST" = "yes"; then
44866 cat >>confdefs.h <<\_ACEOF
44867#define wxUSE_TREECTRL 1
44868_ACEOF
44869
44870 USES_CONTROLS=1
44871 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
44872 else
44873 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
44874echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
44875 fi
44876fi
44877
44878if test "$wxUSE_POPUPWIN" = "yes"; then
44879 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44880 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
44881echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
44882 else
44883 if test "$wxUSE_PM" = 1; then
44884 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
44885echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
44886 else
44887 cat >>confdefs.h <<\_ACEOF
44888#define wxUSE_POPUPWIN 1
44889_ACEOF
44890
0b78747f 44891 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
44892
44893 USES_CONTROLS=1
44894 fi
44895 fi
44896fi
44897
0dcd06dd 44898if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
44899 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44900 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
44901echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
44902 else
44903 cat >>confdefs.h <<\_ACEOF
44904#define wxUSE_DIALUP_MANAGER 1
44905_ACEOF
44906
44907 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
44908 fi
44909fi
44910
a848cd7e
SC
44911if test "$wxUSE_TIPWINDOW" = "yes"; then
44912 if test "$wxUSE_PM" = 1; then
44913 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
44914echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
44915 else
44916 cat >>confdefs.h <<\_ACEOF
44917#define wxUSE_TIPWINDOW 1
44918_ACEOF
44919
44920 fi
44921fi
44922
44923if test "$USES_CONTROLS" = 1; then
44924 cat >>confdefs.h <<\_ACEOF
44925#define wxUSE_CONTROLS 1
44926_ACEOF
44927
44928fi
44929
44930
44931if test "$wxUSE_ACCESSIBILITY" = "yes"; then
44932 cat >>confdefs.h <<\_ACEOF
44933#define wxUSE_ACCESSIBILITY 1
44934_ACEOF
44935
44936 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
44937fi
44938
38b4a946
VZ
44939if test "$wxUSE_DC_CACHEING" = "yes"; then
44940 cat >>confdefs.h <<\_ACEOF
44941#define wxUSE_DC_CACHEING 1
44942_ACEOF
44943
44944fi
44945
a848cd7e
SC
44946if test "$wxUSE_DRAGIMAGE" = "yes"; then
44947 cat >>confdefs.h <<\_ACEOF
44948#define wxUSE_DRAGIMAGE 1
44949_ACEOF
44950
44951 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
44952fi
44953
44954if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
44955 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
44956 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
44957echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
44958 else
44959 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44960#define wxUSE_EXCEPTIONS 1
44961_ACEOF
44962
07bea8f0
VS
44963 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
44964 fi
a848cd7e
SC
44965fi
44966
44967USE_HTML=0
44968if test "$wxUSE_HTML" = "yes"; then
44969 cat >>confdefs.h <<\_ACEOF
44970#define wxUSE_HTML 1
44971_ACEOF
44972
44973 USE_HTML=1
44974 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
44975 if test "$wxUSE_MAC" = 1; then
44976 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
44977 fi
a848cd7e 44978fi
646b6ec1 44979if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 44980 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 44981 old_CPPFLAGS="$CPPFLAGS"
c92ad099 44982 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
44983 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
44984echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
44985if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
44986 echo $ECHO_N "(cached) $ECHO_C" >&6
44987else
44988 cat >conftest.$ac_ext <<_ACEOF
44989/* confdefs.h. */
44990_ACEOF
44991cat confdefs.h >>conftest.$ac_ext
44992cat >>conftest.$ac_ext <<_ACEOF
44993/* end confdefs.h. */
44994#include <Carbon/Carbon.h>
44995
44996#include <WebKit/HIWebView.h>
44997_ACEOF
44998rm -f conftest.$ac_objext
44999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45000 (eval $ac_compile) 2>conftest.er1
45001 ac_status=$?
45002 grep -v '^ *+' conftest.er1 >conftest.err
45003 rm -f conftest.er1
45004 cat conftest.err >&5
45005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45006 (exit $ac_status); } &&
3f60522a
JS
45007 { ac_try='test -z "$ac_cxx_werror_flag"
45008 || test ! -s conftest.err'
07bea8f0
VS
45009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45010 (eval $ac_try) 2>&5
45011 ac_status=$?
45012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45013 (exit $ac_status); }; } &&
45014 { ac_try='test -s conftest.$ac_objext'
45015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45016 (eval $ac_try) 2>&5
45017 ac_status=$?
45018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45019 (exit $ac_status); }; }; then
45020 ac_cv_header_WebKit_HIWebView_h=yes
45021else
45022 echo "$as_me: failed program was:" >&5
45023sed 's/^/| /' conftest.$ac_ext >&5
45024
45025ac_cv_header_WebKit_HIWebView_h=no
45026fi
45027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45028fi
45029echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
45030echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
45031if test $ac_cv_header_WebKit_HIWebView_h = yes; then
45032
45033 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
45034#define wxUSE_WEBKIT 1
45035_ACEOF
45036
07bea8f0
VS
45037 WEBKIT_LINK="-framework WebKit"
45038
45039else
45040
45041 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
45042echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
45043 wxUSE_WEBKIT=no
45044
646b6ec1
VS
45045fi
45046
07bea8f0
VS
45047
45048 CPPFLAGS="$old_CPPFLAGS"
45049 elif test "$wxUSE_COCOA" = 1; then
45050 cat >>confdefs.h <<\_ACEOF
45051#define wxUSE_WEBKIT 1
45052_ACEOF
45053
45054 else
45055 wxUSE_WEBKIT=no
45056 fi
45057fi
45058
9a8f0513
VS
45059USE_XRC=0
45060if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
45061 if test "$wxUSE_XML" != "yes"; then
45062 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
45063echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
45064 wxUSE_XRC=no
45065 else
45066 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
45067#define wxUSE_XRC 1
45068_ACEOF
45069
d2ebf0b7
VS
45070 USE_XRC=1
45071 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
45072 fi
9a8f0513 45073fi
07bea8f0 45074
3f60522a
JS
45075USE_AUI=0
45076if test "$wxUSE_AUI" = "yes"; then
45077 cat >>confdefs.h <<\_ACEOF
45078#define wxUSE_AUI 1
45079_ACEOF
45080
45081 USE_AUI=1
45082 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
45083fi
45084
a848cd7e
SC
45085if test "$wxUSE_MENUS" = "yes"; then
45086 cat >>confdefs.h <<\_ACEOF
45087#define wxUSE_MENUS 1
45088_ACEOF
45089
45090 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
45091fi
45092
45093if test "$wxUSE_METAFILE" = "yes"; then
45094 cat >>confdefs.h <<\_ACEOF
45095#define wxUSE_METAFILE 1
45096_ACEOF
45097
45098fi
45099
45100if test "$wxUSE_MIMETYPE" = "yes"; then
45101 cat >>confdefs.h <<\_ACEOF
45102#define wxUSE_MIMETYPE 1
45103_ACEOF
45104
45105fi
45106
45107if test "$wxUSE_MINIFRAME" = "yes"; then
45108 cat >>confdefs.h <<\_ACEOF
45109#define wxUSE_MINIFRAME 1
45110_ACEOF
45111
45112 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
45113fi
45114
45115if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
45116 cat >>confdefs.h <<\_ACEOF
45117#define wxUSE_SYSTEM_OPTIONS 1
45118_ACEOF
45119
45120 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 45121 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
45122 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
45123 fi
45124fi
45125
45126
45127if test "$wxUSE_VALIDATORS" = "yes"; then
45128 cat >>confdefs.h <<\_ACEOF
45129#define wxUSE_VALIDATORS 1
45130_ACEOF
45131
45132 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
45133fi
45134
45135if test "$wxUSE_PALETTE" = "yes" ; then
45136 cat >>confdefs.h <<\_ACEOF
45137#define wxUSE_PALETTE 1
45138_ACEOF
45139
45140fi
45141
45142if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
45143 LIBS=" -lunicows $LIBS"
45144fi
45145
91dea314
MW
45146USE_RICHTEXT=0
45147if test "$wxUSE_RICHTEXT" = "yes"; then
45148 cat >>confdefs.h <<\_ACEOF
45149#define wxUSE_RICHTEXT 1
45150_ACEOF
45151
45152 USE_RICHTEXT=1
45153 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
45154fi
45155
a848cd7e
SC
45156
45157if test "$wxUSE_IMAGE" = "yes" ; then
45158 cat >>confdefs.h <<\_ACEOF
45159#define wxUSE_IMAGE 1
45160_ACEOF
45161
45162
45163 if test "$wxUSE_GIF" = "yes" ; then
45164 cat >>confdefs.h <<\_ACEOF
45165#define wxUSE_GIF 1
45166_ACEOF
45167
45168 fi
45169
45170 if test "$wxUSE_PCX" = "yes" ; then
45171 cat >>confdefs.h <<\_ACEOF
45172#define wxUSE_PCX 1
45173_ACEOF
45174
45175 fi
45176
45177 if test "$wxUSE_IFF" = "yes" ; then
45178 cat >>confdefs.h <<\_ACEOF
45179#define wxUSE_IFF 1
45180_ACEOF
45181
45182 fi
45183
45184 if test "$wxUSE_PNM" = "yes" ; then
45185 cat >>confdefs.h <<\_ACEOF
45186#define wxUSE_PNM 1
45187_ACEOF
45188
45189 fi
45190
45191 if test "$wxUSE_XPM" = "yes" ; then
45192 cat >>confdefs.h <<\_ACEOF
45193#define wxUSE_XPM 1
45194_ACEOF
45195
45196 fi
45197
45198 if test "$wxUSE_ICO_CUR" = "yes" ; then
45199 cat >>confdefs.h <<\_ACEOF
45200#define wxUSE_ICO_CUR 1
45201_ACEOF
45202
45203 fi
45204fi
45205
45206
45207if test "$wxUSE_CHOICEDLG" = "yes"; then
45208 cat >>confdefs.h <<\_ACEOF
45209#define wxUSE_CHOICEDLG 1
45210_ACEOF
45211
45212fi
45213
45214if test "$wxUSE_COLOURDLG" = "yes"; then
45215 cat >>confdefs.h <<\_ACEOF
45216#define wxUSE_COLOURDLG 1
45217_ACEOF
45218
45219fi
45220
45221if test "$wxUSE_FILEDLG" = "yes"; then
45222 cat >>confdefs.h <<\_ACEOF
45223#define wxUSE_FILEDLG 1
45224_ACEOF
45225
45226fi
45227
45228if test "$wxUSE_FINDREPLDLG" = "yes"; then
45229 cat >>confdefs.h <<\_ACEOF
45230#define wxUSE_FINDREPLDLG 1
45231_ACEOF
45232
45233fi
45234
45235if test "$wxUSE_FONTDLG" = "yes"; then
45236 cat >>confdefs.h <<\_ACEOF
45237#define wxUSE_FONTDLG 1
45238_ACEOF
45239
45240fi
45241
45242if test "$wxUSE_DIRDLG" = "yes"; then
45243 if test "$wxUSE_TREECTRL" != "yes"; then
45244 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
45245echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
45246 else
45247 cat >>confdefs.h <<\_ACEOF
45248#define wxUSE_DIRDLG 1
45249_ACEOF
45250
45251 fi
45252fi
45253
45254if test "$wxUSE_MSGDLG" = "yes"; then
45255 cat >>confdefs.h <<\_ACEOF
45256#define wxUSE_MSGDLG 1
45257_ACEOF
45258
45259fi
45260
45261if test "$wxUSE_NUMBERDLG" = "yes"; then
45262 cat >>confdefs.h <<\_ACEOF
45263#define wxUSE_NUMBERDLG 1
45264_ACEOF
45265
45266fi
45267
45268if test "$wxUSE_PROGRESSDLG" = "yes"; then
45269 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45270 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
45271echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
45272 else
45273 cat >>confdefs.h <<\_ACEOF
45274#define wxUSE_PROGRESSDLG 1
45275_ACEOF
45276
45277 fi
45278fi
45279
45280if test "$wxUSE_SPLASH" = "yes"; then
45281 cat >>confdefs.h <<\_ACEOF
45282#define wxUSE_SPLASH 1
45283_ACEOF
45284
2057db16 45285 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
45286fi
45287
45288if test "$wxUSE_STARTUP_TIPS" = "yes"; then
45289 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45290 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
45291echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
45292 else
45293 cat >>confdefs.h <<\_ACEOF
45294#define wxUSE_STARTUP_TIPS 1
45295_ACEOF
45296
45297 fi
45298fi
45299
45300if test "$wxUSE_TEXTDLG" = "yes"; then
45301 cat >>confdefs.h <<\_ACEOF
45302#define wxUSE_TEXTDLG 1
45303_ACEOF
45304
45305fi
45306
45307if test "$wxUSE_WIZARDDLG" = "yes"; then
45308 cat >>confdefs.h <<\_ACEOF
45309#define wxUSE_WIZARDDLG 1
45310_ACEOF
45311
45312 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
45313fi
45314
45315
f10e38c4
VZ
45316USE_MEDIA=0
45317
ce756cb0 45318if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
45319 if test "$wxUSE_GTK" = 1; then
45320 wxUSE_GSTREAMER="yes"
45321
f10e38c4
VZ
45322 GST_VERSION_MAJOR=0
45323 GST_VERSION_MINOR=10
45324 GST_VERSION_RELEASE=0
45325 GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE
45326 GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
45327
45328 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 45329
dae87f93 45330 succeeded=no
ce756cb0 45331
dae87f93
RN
45332 if test -z "$PKG_CONFIG"; then
45333 # Extract the first word of "pkg-config", so it can be a program name with args.
45334set dummy pkg-config; ac_word=$2
45335echo "$as_me:$LINENO: checking for $ac_word" >&5
45336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45337if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
45338 echo $ECHO_N "(cached) $ECHO_C" >&6
45339else
45340 case $PKG_CONFIG in
45341 [\\/]* | ?:[\\/]*)
45342 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
45343 ;;
45344 *)
45345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45346for as_dir in $PATH
45347do
45348 IFS=$as_save_IFS
45349 test -z "$as_dir" && as_dir=.
45350 for ac_exec_ext in '' $ac_executable_extensions; do
45351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45352 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45354 break 2
45355 fi
45356done
45357done
45358
45359 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
45360 ;;
45361esac
45362fi
45363PKG_CONFIG=$ac_cv_path_PKG_CONFIG
45364
45365if test -n "$PKG_CONFIG"; then
45366 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
45367echo "${ECHO_T}$PKG_CONFIG" >&6
45368else
45369 echo "$as_me:$LINENO: result: no" >&5
45370echo "${ECHO_T}no" >&6
45371fi
45372
45373 fi
45374
45375 if test "$PKG_CONFIG" = "no" ; then
45376 echo "*** The pkg-config script could not be found. Make sure it is"
45377 echo "*** in your path, or set the PKG_CONFIG environment variable"
45378 echo "*** to the full path to pkg-config."
45379 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
45380 else
45381 PKG_CONFIG_MIN_VERSION=0.9.0
45382 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
f10e38c4
VZ
45383 echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR
45384 gstreamer-plugins-base-$GST_MAJORMINOR
45385 gconf-2.0" >&5
45386echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR
45387 gstreamer-plugins-base-$GST_MAJORMINOR
45388 gconf-2.0... $ECHO_C" >&6
45389
45390 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR
45391 gstreamer-plugins-base-$GST_MAJORMINOR
45392 gconf-2.0" ; then
dae87f93 45393 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 45394echo "${ECHO_T}yes" >&6
dae87f93 45395 succeeded=yes
ce756cb0 45396
f10e38c4
VZ
45397 echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
45398echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
45399 GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR
45400 gstreamer-plugins-base-$GST_MAJORMINOR
45401 gconf-2.0"`
45402 echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
45403echo "${ECHO_T}$GST_CFLAGS" >&6
45404
45405 echo "$as_me:$LINENO: checking GST_LIBS" >&5
45406echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
45407 GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR
45408 gstreamer-plugins-base-$GST_MAJORMINOR
45409 gconf-2.0"`
45410 echo "$as_me:$LINENO: result: $GST_LIBS" >&5
45411echo "${ECHO_T}$GST_LIBS" >&6
dae87f93 45412 else
f10e38c4
VZ
45413 GST_CFLAGS=""
45414 GST_LIBS=""
dae87f93
RN
45415 ## If we have a custom action on failure, don't print errors, but
45416 ## do set a variable so people can do so.
f10e38c4
VZ
45417 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR
45418 gstreamer-plugins-base-$GST_MAJORMINOR
45419 gconf-2.0"`
ce756cb0 45420
dae87f93
RN
45421 fi
45422
45423
45424
45425 else
45426 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
45427 echo "*** See http://www.freedesktop.org/software/pkgconfig"
45428 fi
45429 fi
45430
45431 if test $succeeded = yes; then
45432
f10e38c4
VZ
45433 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
45434 LIBS="$LIBS $GST_LIBS -lgstinterfaces-$GST_MAJORMINOR"
ce756cb0 45435
ce756cb0 45436 else
dae87f93 45437
f10e38c4 45438 GST_VERSION_MINOR=8
dae87f93
RN
45439
45440 fi
45441
f10e38c4
VZ
45442 else
45443 GST_VERSION_MINOR=8
45444 fi
dae87f93 45445
f10e38c4
VZ
45446 GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE
45447 GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 45448
f10e38c4 45449 if test x$GST_VERSION_MINOR = x8; then
dae87f93 45450
f10e38c4 45451 succeeded=no
dae87f93 45452
f10e38c4
VZ
45453 if test -z "$PKG_CONFIG"; then
45454 # Extract the first word of "pkg-config", so it can be a program name with args.
45455set dummy pkg-config; ac_word=$2
dae87f93
RN
45456echo "$as_me:$LINENO: checking for $ac_word" >&5
45457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
f10e38c4 45458if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
dae87f93
RN
45459 echo $ECHO_N "(cached) $ECHO_C" >&6
45460else
f10e38c4
VZ
45461 case $PKG_CONFIG in
45462 [\\/]* | ?:[\\/]*)
45463 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
45464 ;;
45465 *)
45466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dae87f93
RN
45467for as_dir in $PATH
45468do
45469 IFS=$as_save_IFS
45470 test -z "$as_dir" && as_dir=.
45471 for ac_exec_ext in '' $ac_executable_extensions; do
45472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f10e38c4 45473 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
dae87f93
RN
45474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45475 break 2
ce756cb0 45476 fi
dae87f93
RN
45477done
45478done
45479
f10e38c4
VZ
45480 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
45481 ;;
45482esac
dae87f93 45483fi
f10e38c4
VZ
45484PKG_CONFIG=$ac_cv_path_PKG_CONFIG
45485
45486if test -n "$PKG_CONFIG"; then
45487 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
45488echo "${ECHO_T}$PKG_CONFIG" >&6
dae87f93
RN
45489else
45490 echo "$as_me:$LINENO: result: no" >&5
45491echo "${ECHO_T}no" >&6
45492fi
45493
f10e38c4 45494 fi
ce756cb0 45495
f10e38c4
VZ
45496 if test "$PKG_CONFIG" = "no" ; then
45497 echo "*** The pkg-config script could not be found. Make sure it is"
45498 echo "*** in your path, or set the PKG_CONFIG environment variable"
45499 echo "*** to the full path to pkg-config."
45500 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
45501 else
45502 PKG_CONFIG_MIN_VERSION=0.9.0
45503 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
45504 echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR
45505 gstreamer-interfaces-$GST_MAJORMINOR
45506 gstreamer-gconf-$GST_MAJORMINOR" >&5
45507echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR
45508 gstreamer-interfaces-$GST_MAJORMINOR
45509 gstreamer-gconf-$GST_MAJORMINOR... $ECHO_C" >&6
45510
45511 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR
45512 gstreamer-interfaces-$GST_MAJORMINOR
45513 gstreamer-gconf-$GST_MAJORMINOR" ; then
45514 echo "$as_me:$LINENO: result: yes" >&5
45515echo "${ECHO_T}yes" >&6
45516 succeeded=yes
dae87f93 45517
f10e38c4
VZ
45518 echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
45519echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
45520 GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR
45521 gstreamer-interfaces-$GST_MAJORMINOR
45522 gstreamer-gconf-$GST_MAJORMINOR"`
45523 echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
45524echo "${ECHO_T}$GST_CFLAGS" >&6
45525
45526 echo "$as_me:$LINENO: checking GST_LIBS" >&5
45527echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
45528 GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR
45529 gstreamer-interfaces-$GST_MAJORMINOR
45530 gstreamer-gconf-$GST_MAJORMINOR"`
45531 echo "$as_me:$LINENO: result: $GST_LIBS" >&5
45532echo "${ECHO_T}$GST_LIBS" >&6
45533 else
45534 GST_CFLAGS=""
45535 GST_LIBS=""
45536 ## If we have a custom action on failure, don't print errors, but
45537 ## do set a variable so people can do so.
45538 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR
45539 gstreamer-interfaces-$GST_MAJORMINOR
45540 gstreamer-gconf-$GST_MAJORMINOR"`
dae87f93 45541
dae87f93
RN
45542 fi
45543
45544
ce756cb0 45545
f10e38c4
VZ
45546 else
45547 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
45548 echo "*** See http://www.freedesktop.org/software/pkgconfig"
45549 fi
45550 fi
ce756cb0 45551
f10e38c4 45552 if test $succeeded = yes; then
dae87f93 45553
f10e38c4
VZ
45554 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
45555 LIBS="$LIBS $GST_LIBS"
dae87f93 45556
f10e38c4 45557 else
ce756cb0 45558
f10e38c4
VZ
45559 { echo "$as_me:$LINENO: WARNING: Proper GStreamer .8/.10 installation not found" >&5
45560echo "$as_me: WARNING: Proper GStreamer .8/.10 installation not found" >&2;}
45561 wxUSE_GSTREAMER="no"
ce756cb0 45562
f10e38c4 45563 fi
ce756cb0 45564
dae87f93 45565 fi
ce756cb0 45566
f10e38c4 45567
dae87f93
RN
45568 if test "$wxUSE_GSTREAMER" = "yes"; then
45569 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
45570#define wxUSE_GSTREAMER 1
45571_ACEOF
45572
dae87f93
RN
45573 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
45574echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
45575 fi
45576 fi
f10e38c4 45577 USE_MEDIA=1
ce756cb0
RN
45578 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
45579 cat >>confdefs.h <<\_ACEOF
45580#define wxUSE_MEDIACTRL 1
45581_ACEOF
45582
45583fi
45584
45585
a848cd7e
SC
45586if test "$cross_compiling" = "yes"; then
45587 OSINFO="\"$host\""
45588else
45589 OSINFO=`uname -s -r -m`
45590 OSINFO="\"$OSINFO\""
45591fi
45592
45593cat >>confdefs.h <<_ACEOF
45594#define WXWIN_OS_DESCRIPTION $OSINFO
45595_ACEOF
45596
45597
45598
45599if test "x$prefix" != "xNONE"; then
45600 wxPREFIX=$prefix
45601else
45602 wxPREFIX=$ac_default_prefix
45603fi
45604
45605cat >>confdefs.h <<_ACEOF
45606#define wxINSTALL_PREFIX "$wxPREFIX"
45607_ACEOF
45608
45609
a848cd7e
SC
45610
45611
45612CORE_BASE_LIBS="net base"
45613CORE_GUI_LIBS="adv core"
45614
45615if test "$wxUSE_XML" = "yes" ; then
45616 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
45617fi
45618if test "$wxUSE_ODBC" != "no" ; then
45619 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
45620 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
45621fi
45622if test "$wxUSE_HTML" = "yes" ; then
45623 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
45624fi
61639efb
VZ
45625if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45626 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
45627fi
9a8f0513
VS
45628if test "$wxUSE_XRC" = "yes" ; then
45629 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
45630fi
3f60522a
JS
45631if test "$wxUSE_AUI" = "yes" ; then
45632 CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
45633fi
a848cd7e
SC
45634
45635if test "$wxUSE_GUI" != "yes"; then
45636 CORE_GUI_LIBS=""
45637fi
45638
45639
45640
45641
45642
5d7b7554
VZ
45643ac_ext=c
45644ac_cpp='$CPP $CPPFLAGS'
45645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45647ac_compiler_gnu=$ac_cv_c_compiler_gnu
45648
a848cd7e
SC
45649
45650
a848cd7e 45651if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 45652 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
45653 if test "$USE_DARWIN" = 1; then
45654 LDFLAGS="$LDFLAGS -framework QuickTime"
45655 else
45656 LDFLAGS="$LDFLAGS -lQuickTimeLib"
45657 fi
07bea8f0 45658 fi
5dcf30a0 45659 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
45660 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
45661 else
45662 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 45663 fi
a848cd7e
SC
45664fi
45665if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 45666 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
45667 if test "$wxUSE_MEDIACTRL" = "yes"; then
45668 LDFLAGS="$LDFLAGS -framework QuickTime"
45669 fi
a848cd7e 45670fi
19b27e78
MW
45671if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
45672 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
45673fi
a848cd7e 45674
a848cd7e
SC
45675LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
45676
a848cd7e
SC
45677if test "$wxUSE_GUI" = "yes"; then
45678
45679
8bce5cda
MW
45680 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
45681 dynamic erase event exec font image minimal mobile \
45682 mobile/wxedit mobile/styles propsize render \
9e39d889 45683 rotate shaped vscroll widgets"
a848cd7e
SC
45684
45685 if test "$wxUSE_MONOLITHIC" != "yes"; then
45686 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
45687 fi
0b78747f 45688 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
45689 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
45690 if test "$wxUSE_UNIVERSAL" != "yes"; then
45691 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
45692 fi
45693 fi
45694 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
45695 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 45696 fi
a848cd7e
SC
45697else
45698 SAMPLES_SUBDIRS="console"
45699fi
45700
45701
48f625bc 45702if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
45703 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
45704elif test "$GCC" = yes ; then
45705 CWARNINGS="-Wall -Wundef"
45706fi
45707
48f625bc 45708if test "x$INTELCXX" = "xyes" ; then
7f47faf4 45709 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
45710elif test "$GXX" = yes ; then
45711 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 45712fi
a848cd7e 45713
a848cd7e 45714
5ff751d6
VZ
45715WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
45716WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
45717
45718
c92ad099 45719CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 45720 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
45721 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
45722 $CPPFLAGS `
5ff751d6 45723
8aeeb05c 45724C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 45725CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 45726CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
45727
45728WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
45729
a848cd7e 45730
95986553
DE
45731if test "x$MWCC" = "xyes"; then
45732
45733 CC="$CC -cwd source -I-"
45734 CXX="$CXX -cwd source -I-"
45735fi
45736
a848cd7e 45737
0c3c69fc 45738LIBS=`echo $LIBS`
a848cd7e
SC
45739EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
45740EXTRALIBS_XML="$EXPAT_LINK"
45741EXTRALIBS_HTML="$MSPACK_LINK"
45742EXTRALIBS_ODBC="$ODBC_LINK"
45743if test "$wxUSE_GUI" = "yes"; then
2b850ae1 45744 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
45745fi
45746if test "$wxUSE_OPENGL" = "yes"; then
45747 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
45748fi
45749
8aeeb05c 45750LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 45751
5ff751d6 45752WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
45753
45754if test "$wxUSE_REGEX" = "builtin" ; then
74802184 45755 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
45756fi
45757if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 45758 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
45759fi
45760if test "$wxUSE_ODBC" = "builtin" ; then
74802184 45761 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
45762fi
45763if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 45764 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
45765fi
45766if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 45767 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
45768fi
45769if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 45770 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
45771fi
45772if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 45773 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
45774fi
45775
45776for i in $wxconfig_3rdparty ; do
5ff751d6 45777 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
45778done
45779
45780
45781if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
45782 WXUNIV=1
45783else
45784 WXUNIV=0
45785fi
45786
45787
45788
45789
45790
45791
45792
45793
45794
45795if test $wxUSE_MONOLITHIC = "yes" ; then
45796 MONOLITHIC=1
45797else
45798 MONOLITHIC=0
45799fi
45800
45801if test $wxUSE_PLUGINS = "yes" ; then
45802 USE_PLUGINS=1
45803else
45804 USE_PLUGINS=0
45805fi
45806
45807if test $wxUSE_ODBC != "no" ; then
45808 USE_ODBC=1
45809else
45810 USE_ODBC=0
45811fi
45812
16358932
VZ
45813if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45814 USE_QA=1
45815else
45816 USE_QA=0
45817fi
45818
a848cd7e
SC
45819if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
45820 OFFICIAL_BUILD=1
45821else
45822 OFFICIAL_BUILD=0
45823fi
45824
45825
45826
45827
45828
45829
45830
45831
45832
45833
45834
45835
45836
45837
45838
45839
45840
45841
45842
ceec2216 45843
d1c38808 45844
3565d135 45845
2b850ae1 45846
a848cd7e
SC
45847
45848
45849TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
45850
45851
45852
45853
45854
45855
45856
45857
4d4ff94c
VZ
45858case "$TOOLKIT" in
45859 GTK)
45860 TOOLKIT_USER="GTK+"
45861 if test "$WXGTK20" = 1; then
45862 TOOLKIT_USER="$TOOLKIT_USER 2"
45863 fi
9a8f0513 45864 ;;
4d4ff94c
VZ
45865
45866 *)
45867 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 45868 ;;
4d4ff94c 45869esac
a848cd7e 45870
fb00f58d
JS
45871if test "$wxUSE_WINE" = "yes"; then
45872 BAKEFILE_FORCE_PLATFORM=win32
45873fi
45874
7afc46ab
KO
45875if test "$wxUSE_MAC" = 1 ; then
45876 if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
45877 CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CXXFLAGS"
45878 CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CFLAGS"
45879 LDFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $LDFLAGS"
45880 bk_use_pch=no
45881 fi
45882 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
45883 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
45884 # TODO: how can we avoid a hardwired reference to the SDK, above? (Someone used -lSystemStubs to avoid it)
45885fi
45886
9a8f0513 45887
1e9e8aba
DE
45888
45889
a848cd7e 45890 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
45891 if test "x${host}" = "x" ; then
45892 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
45893echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
45894 { (exit 1); exit 1; }; }
45895 fi
45896
a848cd7e
SC
45897 BAKEFILE_HOST="${host}"
45898 fi
45899
45900 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
45901
45902 if test -n "$ac_tool_prefix"; then
45903 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
45904set dummy ${ac_tool_prefix}ranlib; ac_word=$2
45905echo "$as_me:$LINENO: checking for $ac_word" >&5
45906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45907if test "${ac_cv_prog_RANLIB+set}" = set; then
45908 echo $ECHO_N "(cached) $ECHO_C" >&6
45909else
45910 if test -n "$RANLIB"; then
45911 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
45912else
45913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45914for as_dir in $PATH
45915do
45916 IFS=$as_save_IFS
45917 test -z "$as_dir" && as_dir=.
45918 for ac_exec_ext in '' $ac_executable_extensions; do
45919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45920 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
45921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45922 break 2
45923 fi
45924done
45925done
45926
45927fi
45928fi
45929RANLIB=$ac_cv_prog_RANLIB
45930if test -n "$RANLIB"; then
45931 echo "$as_me:$LINENO: result: $RANLIB" >&5
45932echo "${ECHO_T}$RANLIB" >&6
45933else
45934 echo "$as_me:$LINENO: result: no" >&5
45935echo "${ECHO_T}no" >&6
45936fi
45937
45938fi
45939if test -z "$ac_cv_prog_RANLIB"; then
45940 ac_ct_RANLIB=$RANLIB
45941 # Extract the first word of "ranlib", so it can be a program name with args.
45942set dummy ranlib; ac_word=$2
45943echo "$as_me:$LINENO: checking for $ac_word" >&5
45944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45945if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
45946 echo $ECHO_N "(cached) $ECHO_C" >&6
45947else
45948 if test -n "$ac_ct_RANLIB"; then
45949 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
45950else
45951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45952for as_dir in $PATH
45953do
45954 IFS=$as_save_IFS
45955 test -z "$as_dir" && as_dir=.
45956 for ac_exec_ext in '' $ac_executable_extensions; do
45957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45958 ac_cv_prog_ac_ct_RANLIB="ranlib"
45959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45960 break 2
45961 fi
45962done
45963done
45964
45965 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
45966fi
45967fi
45968ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
45969if test -n "$ac_ct_RANLIB"; then
45970 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
45971echo "${ECHO_T}$ac_ct_RANLIB" >&6
45972else
45973 echo "$as_me:$LINENO: result: no" >&5
45974echo "${ECHO_T}no" >&6
45975fi
45976
45977 RANLIB=$ac_ct_RANLIB
45978else
45979 RANLIB="$ac_cv_prog_RANLIB"
45980fi
45981
45982 # Find a good install program. We prefer a C program (faster),
45983# so one script is as good as another. But avoid the broken or
45984# incompatible versions:
45985# SysV /etc/install, /usr/sbin/install
45986# SunOS /usr/etc/install
45987# IRIX /sbin/install
45988# AIX /bin/install
45989# AmigaOS /C/install, which installs bootblocks on floppy discs
45990# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
45991# AFS /usr/afsws/bin/install, which mishandles nonexistent args
45992# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 45993# OS/2's system install, which has a completely different semantic
a848cd7e
SC
45994# ./install, which can be erroneously created by make from ./install.sh.
45995echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
45996echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
45997if test -z "$INSTALL"; then
45998if test "${ac_cv_path_install+set}" = set; then
45999 echo $ECHO_N "(cached) $ECHO_C" >&6
46000else
46001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46002for as_dir in $PATH
46003do
46004 IFS=$as_save_IFS
46005 test -z "$as_dir" && as_dir=.
46006 # Account for people who put trailing slashes in PATH elements.
46007case $as_dir/ in
46008 ./ | .// | /cC/* | \
46009 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 46010 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
46011 /usr/ucb/* ) ;;
46012 *)
46013 # OSF1 and SCO ODT 3.0 have their own names for install.
46014 # Don't use installbsd from OSF since it installs stuff as root
46015 # by default.
46016 for ac_prog in ginstall scoinst install; do
46017 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
46018 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
46019 if test $ac_prog = install &&
46020 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46021 # AIX install. It has an incompatible calling convention.
46022 :
46023 elif test $ac_prog = install &&
46024 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46025 # program-specific install script used by HP pwplus--don't use.
46026 :
46027 else
46028 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
46029 break 3
46030 fi
46031 fi
a848cd7e
SC
46032 done
46033 done
46034 ;;
46035esac
46036done
46037
46038
46039fi
46040 if test "${ac_cv_path_install+set}" = set; then
46041 INSTALL=$ac_cv_path_install
46042 else
46043 # As a last resort, use the slow shell script. We don't cache a
46044 # path for INSTALL within a source directory, because that will
46045 # break other packages using the cache if that directory is
46046 # removed, or if the path is relative.
46047 INSTALL=$ac_install_sh
46048 fi
46049fi
46050echo "$as_me:$LINENO: result: $INSTALL" >&5
46051echo "${ECHO_T}$INSTALL" >&6
46052
46053# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
46054# It thinks the first close brace ends the variable substitution.
46055test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
46056
46057test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
46058
46059test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
46060
46061 echo "$as_me:$LINENO: checking whether ln -s works" >&5
46062echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
46063LN_S=$as_ln_s
46064if test "$LN_S" = "ln -s"; then
46065 echo "$as_me:$LINENO: result: yes" >&5
46066echo "${ECHO_T}yes" >&6
46067else
46068 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
46069echo "${ECHO_T}no, using $LN_S" >&6
46070fi
46071
46072
46073 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
46074echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 46075set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
46076if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
46077 echo $ECHO_N "(cached) $ECHO_C" >&6
46078else
46079 cat >conftest.make <<\_ACEOF
46080all:
46081 @echo 'ac_maketemp="$(MAKE)"'
46082_ACEOF
46083# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
46084eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
46085if test -n "$ac_maketemp"; then
46086 eval ac_cv_prog_make_${ac_make}_set=yes
46087else
46088 eval ac_cv_prog_make_${ac_make}_set=no
46089fi
46090rm -f conftest.make
46091fi
46092if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
46093 echo "$as_me:$LINENO: result: yes" >&5
46094echo "${ECHO_T}yes" >&6
46095 SET_MAKE=
46096else
46097 echo "$as_me:$LINENO: result: no" >&5
46098echo "${ECHO_T}no" >&6
46099 SET_MAKE="MAKE=${MAKE-make}"
46100fi
46101
46102
46103
46104 if test -n "$ac_tool_prefix"; then
46105 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
46106set dummy ${ac_tool_prefix}ar; ac_word=$2
46107echo "$as_me:$LINENO: checking for $ac_word" >&5
46108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46109if test "${ac_cv_prog_AR+set}" = set; then
46110 echo $ECHO_N "(cached) $ECHO_C" >&6
46111else
46112 if test -n "$AR"; then
46113 ac_cv_prog_AR="$AR" # Let the user override the test.
46114else
46115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46116for as_dir in $PATH
46117do
46118 IFS=$as_save_IFS
46119 test -z "$as_dir" && as_dir=.
46120 for ac_exec_ext in '' $ac_executable_extensions; do
46121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46122 ac_cv_prog_AR="${ac_tool_prefix}ar"
46123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46124 break 2
46125 fi
46126done
46127done
46128
46129fi
46130fi
46131AR=$ac_cv_prog_AR
46132if test -n "$AR"; then
46133 echo "$as_me:$LINENO: result: $AR" >&5
46134echo "${ECHO_T}$AR" >&6
46135else
46136 echo "$as_me:$LINENO: result: no" >&5
46137echo "${ECHO_T}no" >&6
46138fi
46139
46140fi
46141if test -z "$ac_cv_prog_AR"; then
46142 ac_ct_AR=$AR
46143 # Extract the first word of "ar", so it can be a program name with args.
46144set dummy ar; ac_word=$2
46145echo "$as_me:$LINENO: checking for $ac_word" >&5
46146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46147if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
46148 echo $ECHO_N "(cached) $ECHO_C" >&6
46149else
46150 if test -n "$ac_ct_AR"; then
46151 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
46152else
46153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46154for as_dir in $PATH
46155do
46156 IFS=$as_save_IFS
46157 test -z "$as_dir" && as_dir=.
46158 for ac_exec_ext in '' $ac_executable_extensions; do
46159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46160 ac_cv_prog_ac_ct_AR="ar"
46161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46162 break 2
46163 fi
46164done
46165done
46166
46167 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
46168fi
46169fi
46170ac_ct_AR=$ac_cv_prog_ac_ct_AR
46171if test -n "$ac_ct_AR"; then
46172 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
46173echo "${ECHO_T}$ac_ct_AR" >&6
46174else
46175 echo "$as_me:$LINENO: result: no" >&5
46176echo "${ECHO_T}no" >&6
46177fi
46178
46179 AR=$ac_ct_AR
46180else
46181 AR="$ac_cv_prog_AR"
46182fi
46183
46184 if test -n "$ac_tool_prefix"; then
46185 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
46186set dummy ${ac_tool_prefix}strip; ac_word=$2
46187echo "$as_me:$LINENO: checking for $ac_word" >&5
46188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46189if test "${ac_cv_prog_STRIP+set}" = set; then
46190 echo $ECHO_N "(cached) $ECHO_C" >&6
46191else
46192 if test -n "$STRIP"; then
46193 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
46194else
46195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46196for as_dir in $PATH
46197do
46198 IFS=$as_save_IFS
46199 test -z "$as_dir" && as_dir=.
46200 for ac_exec_ext in '' $ac_executable_extensions; do
46201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46202 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
46203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46204 break 2
46205 fi
46206done
46207done
46208
46209fi
46210fi
46211STRIP=$ac_cv_prog_STRIP
46212if test -n "$STRIP"; then
46213 echo "$as_me:$LINENO: result: $STRIP" >&5
46214echo "${ECHO_T}$STRIP" >&6
46215else
46216 echo "$as_me:$LINENO: result: no" >&5
46217echo "${ECHO_T}no" >&6
46218fi
46219
46220fi
46221if test -z "$ac_cv_prog_STRIP"; then
46222 ac_ct_STRIP=$STRIP
46223 # Extract the first word of "strip", so it can be a program name with args.
46224set dummy strip; ac_word=$2
46225echo "$as_me:$LINENO: checking for $ac_word" >&5
46226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46227if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
46228 echo $ECHO_N "(cached) $ECHO_C" >&6
46229else
46230 if test -n "$ac_ct_STRIP"; then
46231 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
46232else
46233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46234for as_dir in $PATH
46235do
46236 IFS=$as_save_IFS
46237 test -z "$as_dir" && as_dir=.
46238 for ac_exec_ext in '' $ac_executable_extensions; do
46239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46240 ac_cv_prog_ac_ct_STRIP="strip"
46241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46242 break 2
46243 fi
46244done
46245done
46246
46247 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
46248fi
46249fi
46250ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
46251if test -n "$ac_ct_STRIP"; then
46252 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
46253echo "${ECHO_T}$ac_ct_STRIP" >&6
46254else
46255 echo "$as_me:$LINENO: result: no" >&5
46256echo "${ECHO_T}no" >&6
46257fi
46258
46259 STRIP=$ac_ct_STRIP
46260else
46261 STRIP="$ac_cv_prog_STRIP"
46262fi
46263
46264 if test -n "$ac_tool_prefix"; then
46265 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
46266set dummy ${ac_tool_prefix}nm; ac_word=$2
46267echo "$as_me:$LINENO: checking for $ac_word" >&5
46268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46269if test "${ac_cv_prog_NM+set}" = set; then
46270 echo $ECHO_N "(cached) $ECHO_C" >&6
46271else
46272 if test -n "$NM"; then
46273 ac_cv_prog_NM="$NM" # Let the user override the test.
46274else
46275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46276for as_dir in $PATH
46277do
46278 IFS=$as_save_IFS
46279 test -z "$as_dir" && as_dir=.
46280 for ac_exec_ext in '' $ac_executable_extensions; do
46281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46282 ac_cv_prog_NM="${ac_tool_prefix}nm"
46283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46284 break 2
46285 fi
46286done
46287done
46288
46289fi
46290fi
46291NM=$ac_cv_prog_NM
46292if test -n "$NM"; then
46293 echo "$as_me:$LINENO: result: $NM" >&5
46294echo "${ECHO_T}$NM" >&6
46295else
46296 echo "$as_me:$LINENO: result: no" >&5
46297echo "${ECHO_T}no" >&6
46298fi
46299
46300fi
46301if test -z "$ac_cv_prog_NM"; then
46302 ac_ct_NM=$NM
46303 # Extract the first word of "nm", so it can be a program name with args.
46304set dummy nm; ac_word=$2
46305echo "$as_me:$LINENO: checking for $ac_word" >&5
46306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46307if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
46308 echo $ECHO_N "(cached) $ECHO_C" >&6
46309else
46310 if test -n "$ac_ct_NM"; then
46311 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
46312else
46313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46314for as_dir in $PATH
46315do
46316 IFS=$as_save_IFS
46317 test -z "$as_dir" && as_dir=.
46318 for ac_exec_ext in '' $ac_executable_extensions; do
46319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46320 ac_cv_prog_ac_ct_NM="nm"
46321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46322 break 2
46323 fi
46324done
46325done
46326
46327 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
46328fi
46329fi
46330ac_ct_NM=$ac_cv_prog_ac_ct_NM
46331if test -n "$ac_ct_NM"; then
46332 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
46333echo "${ECHO_T}$ac_ct_NM" >&6
46334else
46335 echo "$as_me:$LINENO: result: no" >&5
46336echo "${ECHO_T}no" >&6
46337fi
46338
46339 NM=$ac_ct_NM
46340else
46341 NM="$ac_cv_prog_NM"
46342fi
46343
46344
46345 case ${BAKEFILE_HOST} in
46346 *-hp-hpux* )
1e9e8aba 46347 INSTALL_DIR="mkdir -p"
a848cd7e
SC
46348 ;;
46349 *) INSTALL_DIR="$INSTALL -d"
46350 ;;
46351 esac
46352
46353
46354 LDFLAGS_GUI=
46355 case ${BAKEFILE_HOST} in
46356 *-*-cygwin* | *-*-mingw32* )
46357 LDFLAGS_GUI="-mwindows"
46358 esac
46359
46360
46361 fi
46362
46363 echo "$as_me:$LINENO: checking if make is GNU make" >&5
46364echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
46365if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
46366 echo $ECHO_N "(cached) $ECHO_C" >&6
46367else
46368
46369 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
46370 egrep -s GNU > /dev/null); then
46371 bakefile_cv_prog_makeisgnu="yes"
46372 else
46373 bakefile_cv_prog_makeisgnu="no"
46374 fi
46375
46376fi
46377echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
46378echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
46379
46380 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
46381 IF_GNU_MAKE=""
46382 else
46383 IF_GNU_MAKE="#"
46384 fi
46385
46386
46387
46388 PLATFORM_UNIX=0
46389 PLATFORM_WIN32=0
46390 PLATFORM_MSDOS=0
46391 PLATFORM_MAC=0
1e9e8aba 46392 PLATFORM_MACOS=0
a848cd7e
SC
46393 PLATFORM_MACOSX=0
46394 PLATFORM_OS2=0
1e9e8aba 46395 PLATFORM_BEOS=0
a848cd7e
SC
46396
46397 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
46398 case "${BAKEFILE_HOST}" in
810b94f0 46399 *-*-mingw32* )
a848cd7e
SC
46400 PLATFORM_WIN32=1
46401 ;;
46402 *-pc-msdosdjgpp )
46403 PLATFORM_MSDOS=1
46404 ;;
46405 *-pc-os2_emx | *-pc-os2-emx )
46406 PLATFORM_OS2=1
46407 ;;
47bd5406 46408 *-*-darwin* )
a848cd7e
SC
46409 PLATFORM_MAC=1
46410 PLATFORM_MACOSX=1
46411 ;;
1e9e8aba
DE
46412 *-*-beos* )
46413 PLATFORM_BEOS=1
46414 ;;
46415 powerpc-apple-macos* )
46416 PLATFORM_MAC=1
46417 PLATFORM_MACOS=1
46418 ;;
a848cd7e
SC
46419 * )
46420 PLATFORM_UNIX=1
46421 ;;
46422 esac
46423 else
46424 case "$BAKEFILE_FORCE_PLATFORM" in
46425 win32 )
46426 PLATFORM_WIN32=1
46427 ;;
46428 msdos )
46429 PLATFORM_MSDOS=1
46430 ;;
46431 os2 )
46432 PLATFORM_OS2=1
46433 ;;
46434 darwin )
46435 PLATFORM_MAC=1
46436 PLATFORM_MACOSX=1
46437 ;;
46438 unix )
46439 PLATFORM_UNIX=1
46440 ;;
1e9e8aba
DE
46441 beos )
46442 PLATFORM_BEOS=1
46443 ;;
a848cd7e
SC
46444 * )
46445 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
46446echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
46447 { (exit 1); exit 1; }; }
46448 ;;
46449 esac
46450 fi
46451
46452
46453
46454
46455
46456
46457
46458
46459
1e9e8aba
DE
46460
46461
a848cd7e
SC
46462 # Check whether --enable-omf or --disable-omf was given.
46463if test "${enable_omf+set}" = set; then
46464 enableval="$enable_omf"
46465 bk_os2_use_omf="$enableval"
46466fi;
46467
46468 case "${BAKEFILE_HOST}" in
46469 *-*-darwin* )
47bd5406
VZ
46470 if test "x$GCC" = "xyes"; then
46471 CFLAGS="$CFLAGS -fno-common"
46472 CXXFLAGS="$CXXFLAGS -fno-common"
46473 fi
46474 if test "x$XLCC" = "xyes"; then
46475 CFLAGS="$CFLAGS -qnocommon"
46476 CXXFLAGS="$CXXFLAGS -qnocommon"
46477 fi
a848cd7e
SC
46478 ;;
46479
46480 *-pc-os2_emx | *-pc-os2-emx )
46481 if test "x$bk_os2_use_omf" = "xyes" ; then
46482 AR=emxomfar
46483 RANLIB=:
46484 LDFLAGS="-Zomf $LDFLAGS"
46485 CFLAGS="-Zomf $CFLAGS"
46486 CXXFLAGS="-Zomf $CXXFLAGS"
46487 OS2_LIBEXT="lib"
46488 else
46489 OS2_LIBEXT="a"
46490 fi
46491 ;;
1e9e8aba
DE
46492
46493 i*86-*-beos* )
46494 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
46495 ;;
a848cd7e
SC
46496 esac
46497
46498
46499 SO_SUFFIX="so"
46500 SO_SUFFIX_MODULE="so"
46501 EXEEXT=""
46502 LIBPREFIX="lib"
46503 LIBEXT=".a"
46504 DLLPREFIX="lib"
46505 DLLPREFIX_MODULE=""
46506 DLLIMP_SUFFIX=""
810b94f0 46507 dlldir="$libdir"
a848cd7e
SC
46508
46509 case "${BAKEFILE_HOST}" in
46510 *-hp-hpux* )
46511 SO_SUFFIX="sl"
46512 SO_SUFFIX_MODULE="sl"
46513 ;;
46514 *-*-aix* )
46515 SO_SUFFIX="a"
46516 SO_SUFFIX_MODULE="a"
46517 ;;
810b94f0
MW
46518 *-*-cygwin* )
46519 SO_SUFFIX="dll"
46520 SO_SUFFIX_MODULE="dll"
46521 DLLIMP_SUFFIX="dll.a"
46522 EXEEXT=".exe"
46523 DLLPREFIX="cyg"
46524 dlldir="$bindir"
46525 ;;
46526 *-*-mingw32* )
a848cd7e
SC
46527 SO_SUFFIX="dll"
46528 SO_SUFFIX_MODULE="dll"
46529 DLLIMP_SUFFIX="dll.a"
46530 EXEEXT=".exe"
46531 DLLPREFIX=""
810b94f0 46532 dlldir="$bindir"
a848cd7e
SC
46533 ;;
46534 *-pc-msdosdjgpp )
46535 EXEEXT=".exe"
46536 DLLPREFIX=""
810b94f0 46537 dlldir="$bindir"
a848cd7e
SC
46538 ;;
46539 *-pc-os2_emx | *-pc-os2-emx )
46540 SO_SUFFIX="dll"
46541 SO_SUFFIX_MODULE="dll"
46542 DLLIMP_SUFFIX=$OS2_LIBEXT
46543 EXEEXT=".exe"
46544 DLLPREFIX=""
46545 LIBPREFIX=""
46546 LIBEXT=".$OS2_LIBEXT"
810b94f0 46547 dlldir="$bindir"
a848cd7e 46548 ;;
47bd5406 46549 *-*-darwin* )
a848cd7e
SC
46550 SO_SUFFIX="dylib"
46551 SO_SUFFIX_MODULE="bundle"
46552 ;;
46553 esac
46554
46555 if test "x$DLLIMP_SUFFIX" = "x" ; then
46556 DLLIMP_SUFFIX="$SO_SUFFIX"
46557 fi
46558
46559
46560
46561
46562
46563
46564
46565
46566
46567
46568
810b94f0 46569
1e9e8aba
DE
46570 PIC_FLAG=""
46571 if test "x$GCC" = "xyes"; then
a848cd7e
SC
46572 PIC_FLAG="-fPIC"
46573 fi
46574
1e9e8aba
DE
46575 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
46576 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 46577 WINDOWS_IMPLIB=0
1e9e8aba 46578
a848cd7e
SC
46579 case "${BAKEFILE_HOST}" in
46580 *-hp-hpux* )
1e9e8aba 46581 if test "x$GCC" != "xyes"; then
a848cd7e
SC
46582 LDFLAGS="$LDFLAGS -L/usr/lib"
46583
46584 SHARED_LD_CC="${CC} -b -o"
46585 SHARED_LD_CXX="${CXX} -b -o"
46586 PIC_FLAG="+Z"
46587 fi
46588 ;;
46589
46590 *-*-linux* )
46591 if test "x$GCC" != "xyes"; then
46592 echo "$as_me:$LINENO: checking for Intel compiler" >&5
46593echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
46594if test "${bakefile_cv_prog_icc+set}" = set; then
46595 echo $ECHO_N "(cached) $ECHO_C" >&6
46596else
46597
46598 cat >conftest.$ac_ext <<_ACEOF
46599/* confdefs.h. */
46600_ACEOF
46601cat confdefs.h >>conftest.$ac_ext
46602cat >>conftest.$ac_ext <<_ACEOF
46603/* end confdefs.h. */
46604
46605int
46606main ()
46607{
46608
46609 #ifndef __INTEL_COMPILER
e5efa97e 46610 This is not ICC
a848cd7e
SC
46611 #endif
46612
46613 ;
46614 return 0;
46615}
46616_ACEOF
46617rm -f conftest.$ac_objext
46618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 46619 (eval $ac_compile) 2>conftest.er1
a848cd7e 46620 ac_status=$?
ac1cb8d3
VS
46621 grep -v '^ *+' conftest.er1 >conftest.err
46622 rm -f conftest.er1
46623 cat conftest.err >&5
a848cd7e
SC
46624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46625 (exit $ac_status); } &&
3f60522a
JS
46626 { ac_try='test -z "$ac_c_werror_flag"
46627 || test ! -s conftest.err'
ac1cb8d3
VS
46628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46629 (eval $ac_try) 2>&5
46630 ac_status=$?
46631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46632 (exit $ac_status); }; } &&
46633 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
46634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46635 (eval $ac_try) 2>&5
46636 ac_status=$?
46637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46638 (exit $ac_status); }; }; then
46639 bakefile_cv_prog_icc=yes
46640else
46641 echo "$as_me: failed program was:" >&5
46642sed 's/^/| /' conftest.$ac_ext >&5
46643
46644bakefile_cv_prog_icc=no
46645
46646fi
ac1cb8d3 46647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
46648
46649fi
46650echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
46651echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
46652 if test "$bakefile_cv_prog_icc" = "yes"; then
46653 PIC_FLAG="-KPIC"
46654 fi
46655 fi
46656 ;;
46657
46658 *-*-solaris2* )
46659 if test "x$GCC" != xyes ; then
46660 SHARED_LD_CC="${CC} -G -o"
46661 SHARED_LD_CXX="${CXX} -G -o"
46662 PIC_FLAG="-KPIC"
46663 fi
46664 ;;
46665
46666 *-*-darwin* )
46667
473276a9
VS
46668D='$'
46669cat <<EOF >shared-ld-sh
a848cd7e
SC
46670#!/bin/sh
46671#-----------------------------------------------------------------------------
46672#-- Name: distrib/mac/shared-ld-sh
46673#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
46674#-- Author: Gilles Depeyrot
46675#-- Copyright: (c) 2002 Gilles Depeyrot
46676#-- Licence: any use permitted
46677#-----------------------------------------------------------------------------
46678
46679verbose=0
46680args=""
46681objects=""
46682linking_flag="-dynamiclib"
810b94f0 46683ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 46684
473276a9
VS
46685while test ${D}# -gt 0; do
46686 case ${D}1 in
a848cd7e
SC
46687
46688 -v)
46689 verbose=1
46690 ;;
46691
46692 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
46693 # collect these options and values
473276a9 46694 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
46695 shift
46696 ;;
46697
810b94f0
MW
46698 -s|-Wl,*)
46699 # collect these load args
46700 ldargs="${D}{ldargs} ${D}1"
2113bc77 46701 ;;
810b94f0
MW
46702
46703 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 46704 # collect these options
473276a9 46705 args="${D}{args} ${D}1"
a848cd7e
SC
46706 ;;
46707
46708 -dynamiclib|-bundle)
473276a9 46709 linking_flag="${D}1"
a848cd7e
SC
46710 ;;
46711
46712 -*)
473276a9 46713 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
46714 exit 1
46715 ;;
46716
46717 *.o | *.a | *.dylib)
46718 # collect object files
473276a9 46719 objects="${D}{objects} ${D}1"
a848cd7e
SC
46720 ;;
46721
46722 *)
473276a9 46723 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
46724 exit 1
46725 ;;
46726
46727 esac
46728 shift
46729done
46730
810b94f0
MW
46731status=0
46732
a848cd7e
SC
46733#
46734# Link one module containing all the others
46735#
473276a9 46736if test ${D}{verbose} = 1; then
810b94f0 46737 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 46738fi
810b94f0 46739c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 46740status=${D}?
a848cd7e
SC
46741
46742#
810b94f0
MW
46743# Link the shared library from the single module created, but only if the
46744# previous command didn't fail:
a848cd7e 46745#
810b94f0
MW
46746if test ${D}{status} = 0; then
46747 if test ${D}{verbose} = 1; then
46748 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
46749 fi
46750 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
46751 status=${D}?
a848cd7e
SC
46752fi
46753
46754#
46755# Remove intermediate module
46756#
473276a9 46757rm -f master.${D}${D}.o
a848cd7e 46758
810b94f0 46759exit ${D}status
a848cd7e 46760EOF
473276a9 46761
583d6b4b
VZ
46762 chmod +x shared-ld-sh
46763
46764 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
46765 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
46766
46767
46768 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
46769echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
46770if test "${bakefile_cv_gcc31+set}" = set; then
46771 echo $ECHO_N "(cached) $ECHO_C" >&6
46772else
46773
46774 cat >conftest.$ac_ext <<_ACEOF
46775/* confdefs.h. */
46776_ACEOF
46777cat confdefs.h >>conftest.$ac_ext
46778cat >>conftest.$ac_ext <<_ACEOF
46779/* end confdefs.h. */
46780
46781int
46782main ()
46783{
46784
46785 #if (__GNUC__ < 3) || \
46786 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 46787 This is old gcc
583d6b4b 46788 #endif
a848cd7e 46789
583d6b4b
VZ
46790 ;
46791 return 0;
46792}
46793_ACEOF
46794rm -f conftest.$ac_objext
46795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46796 (eval $ac_compile) 2>conftest.er1
46797 ac_status=$?
46798 grep -v '^ *+' conftest.er1 >conftest.err
46799 rm -f conftest.er1
46800 cat conftest.err >&5
46801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46802 (exit $ac_status); } &&
3f60522a
JS
46803 { ac_try='test -z "$ac_c_werror_flag"
46804 || test ! -s conftest.err'
583d6b4b
VZ
46805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46806 (eval $ac_try) 2>&5
46807 ac_status=$?
46808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46809 (exit $ac_status); }; } &&
46810 { ac_try='test -s conftest.$ac_objext'
46811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46812 (eval $ac_try) 2>&5
46813 ac_status=$?
46814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46815 (exit $ac_status); }; }; then
46816
46817 bakefile_cv_gcc31=yes
46818
46819else
46820 echo "$as_me: failed program was:" >&5
46821sed 's/^/| /' conftest.$ac_ext >&5
46822
46823
46824 bakefile_cv_gcc31=no
46825
46826
46827fi
46828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46829
46830fi
46831echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
46832echo "${ECHO_T}$bakefile_cv_gcc31" >&6
46833 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 46834 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 46835 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
46836 else
46837 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 46838 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
46839 fi
46840
47bd5406
VZ
46841 if test "x$GCC" == "xyes"; then
46842 PIC_FLAG="-dynamic -fPIC"
46843 fi
46844 if test "x$XLCC" = "xyes"; then
46845 PIC_FLAG="-dynamic -DPIC"
46846 fi
a848cd7e
SC
46847 ;;
46848
46849 *-*-aix* )
f6b50c59 46850 if test "x$GCC" = "xyes"; then
583d6b4b 46851 PIC_FLAG=""
f6b50c59 46852
583d6b4b
VZ
46853 case "${BAKEFILE_HOST}" in
46854 *-*-aix5* )
46855 LD_EXPFULL="-Wl,-bexpfull"
46856 ;;
46857 esac
f6b50c59 46858
583d6b4b
VZ
46859 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
46860 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
46861 else
46862 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
46863set dummy makeC++SharedLib; ac_word=$2
46864echo "$as_me:$LINENO: checking for $ac_word" >&5
46865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46866if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
46867 echo $ECHO_N "(cached) $ECHO_C" >&6
46868else
46869 if test -n "$AIX_CXX_LD"; then
46870 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
46871else
46872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46873for as_dir in $PATH
46874do
46875 IFS=$as_save_IFS
46876 test -z "$as_dir" && as_dir=.
46877 for ac_exec_ext in '' $ac_executable_extensions; do
46878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46879 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
46880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46881 break 2
46882 fi
46883done
46884done
46885
46886 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
46887fi
46888fi
46889AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
46890if test -n "$AIX_CXX_LD"; then
46891 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
46892echo "${ECHO_T}$AIX_CXX_LD" >&6
46893else
46894 echo "$as_me:$LINENO: result: no" >&5
46895echo "${ECHO_T}no" >&6
46896fi
46897
f6b50c59 46898 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
46899 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
46900 fi
46901 ;;
46902
46903 *-*-beos* )
1e9e8aba
DE
46904 SHARED_LD_CC="${LD} -nostart -o"
46905 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
46906 ;;
46907
46908 *-*-irix* )
46909 if test "x$GCC" != "xyes"; then
46910 PIC_FLAG="-KPIC"
46911 fi
46912 ;;
46913
46914 *-*-cygwin* | *-*-mingw32* )
46915 PIC_FLAG=""
1e9e8aba
DE
46916 SHARED_LD_CC="\$(CC) -shared -o"
46917 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 46918 WINDOWS_IMPLIB=1
a848cd7e
SC
46919 ;;
46920
46921 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
46922 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46923 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 46924 PIC_FLAG=""
473276a9
VS
46925
46926D='$'
46927cat <<EOF >dllar.sh
46928#!/bin/sh
46929#
46930# dllar - a tool to build both a .dll and an .a file
46931# from a set of object (.o) files for EMX/OS2.
46932#
46933# Written by Andrew Zabolotny, bit@freya.etu.ru
46934# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
46935#
46936# This script will accept a set of files on the command line.
46937# All the public symbols from the .o files will be exported into
46938# a .DEF file, then linker will be run (through gcc) against them to
46939# build a shared library consisting of all given .o files. All libraries
46940# (.a) will be first decompressed into component .o files then act as
46941# described above. You can optionally give a description (-d "description")
46942# which will be put into .DLL. To see the list of accepted options (as well
46943# as command-line format) simply run this program without options. The .DLL
46944# is built to be imported by name (there is no guarantee that new versions
46945# of the library you build will have same ordinals for same symbols).
46946#
46947# dllar is free software; you can redistribute it and/or modify
46948# it under the terms of the GNU General Public License as published by
46949# the Free Software Foundation; either version 2, or (at your option)
46950# any later version.
46951#
46952# dllar is distributed in the hope that it will be useful,
46953# but WITHOUT ANY WARRANTY; without even the implied warranty of
46954# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46955# GNU General Public License for more details.
46956#
46957# You should have received a copy of the GNU General Public License
46958# along with dllar; see the file COPYING. If not, write to the Free
46959# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
46960# 02111-1307, USA.
46961
46962# To successfuly run this program you will need:
46963# - Current drive should have LFN support (HPFS, ext2, network, etc)
46964# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
46965# - gcc
46966# (used to build the .dll)
46967# - emxexp
46968# (used to create .def file from .o files)
46969# - emximp
46970# (used to create .a file from .def file)
46971# - GNU text utilites (cat, sort, uniq)
46972# used to process emxexp output
46973# - GNU file utilities (mv, rm)
46974# - GNU sed
46975# - lxlite (optional, see flag below)
46976# (used for general .dll cleanup)
46977#
46978
46979flag_USE_LXLITE=1;
46980
46981#
46982# helper functions
46983# basnam, variant of basename, which does _not_ remove the path, _iff_
46984# second argument (suffix to remove) is given
46985basnam(){
46986 case ${D}# in
46987 1)
1e9e8aba 46988 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
46989 ;;
46990 2)
46991 echo ${D}1 | sed 's/'${D}2'${D}//'
46992 ;;
46993 *)
46994 echo "error in basnam ${D}*"
46995 exit 8
46996 ;;
46997 esac
46998}
46999
47000# Cleanup temporary files and output
47001CleanUp() {
47002 cd ${D}curDir
47003 for i in ${D}inputFiles ; do
47004 case ${D}i in
47005 *!)
47006 rm -rf \`basnam ${D}i !\`
47007 ;;
47008 *)
47009 ;;
47010 esac
47011 done
47012
47013 # Kill result in case of failure as there is just to many stupid make/nmake
47014 # things out there which doesn't do this.
1e9e8aba 47015 if [ ${D}# -eq 0 ]; then
473276a9
VS
47016 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
47017 fi
47018}
47019
47020# Print usage and exit script with rc=1.
47021PrintHelp() {
b1d22ded
DE
47022 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
47023 echo ' [-name-mangler-script script.sh]'
47024 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
47025 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
47026 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 47027 echo ' [*.o] [*.a]'
473276a9
VS
47028 echo '*> "output_file" should have no extension.'
47029 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
47030 echo ' The import library name is derived from this and is set to "name".a,'
47031 echo ' unless overridden by -import'
47032 echo '*> "importlib_name" should have no extension.'
47033 echo ' If it has the .o, or .a extension, it is automatically removed.'
47034 echo ' This name is used as the import library name and may be longer and'
47035 echo ' more descriptive than the DLL name which has to follow the old '
47036 echo ' 8.3 convention of FAT.'
b1d22ded
DE
47037 echo '*> "script.sh may be given to override the output_file name by a'
47038 echo ' different name. It is mainly useful if the regular make process'
47039 echo ' of some package does not take into account OS/2 restriction of'
47040 echo ' DLL name lengths. It takes the importlib name as input and is'
47041 echo ' supposed to procude a shorter name as output. The script should'
47042 echo ' expect to get importlib_name without extension and should produce'
47043 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
47044 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
47045 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
47046 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
47047 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
47048 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
47049 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
47050 echo ' If the last character of a symbol is "*", all symbols beginning'
47051 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 47052 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 47053 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 47054 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 47055 echo ' C runtime DLLs.'
b1d22ded 47056 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
47057 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
47058 echo ' unchanged to GCC at the end of command line.'
47059 echo '*> If you create a DLL from a library and you do not specify -o,'
47060 echo ' the basename for DLL and import library will be set to library name,'
47061 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
47062 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
47063 echo ' library will be renamed into gcc_s.a.'
47064 echo '--------'
47065 echo 'Example:'
47066 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
47067 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
47068 CleanUp
47069 exit 1
47070}
47071
47072# Execute a command.
47073# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
47074# @Uses Whatever CleanUp() uses.
47075doCommand() {
47076 echo "${D}*"
47077 eval ${D}*
47078 rcCmd=${D}?
47079
1e9e8aba 47080 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
47081 echo "command failed, exit code="${D}rcCmd
47082 CleanUp
47083 exit ${D}rcCmd
47084 fi
47085}
47086
47087# main routine
47088# setup globals
47089cmdLine=${D}*
47090outFile=""
47091outimpFile=""
47092inputFiles=""
b1d22ded 47093renameScript=""
473276a9
VS
47094description=""
47095CC=gcc.exe
47096CFLAGS="-s -Zcrtdll"
47097EXTRA_CFLAGS=""
47098EXPORT_BY_ORDINALS=0
47099exclude_symbols=""
47100library_flags=""
47101curDir=\`pwd\`
47102curDirS=curDir
47103case ${D}curDirS in
47104*/)
47105 ;;
47106*)
47107 curDirS=${D}{curDirS}"/"
47108 ;;
47109esac
47110# Parse commandline
47111libsToLink=0
b1d22ded 47112omfLinking=0
1e9e8aba 47113while [ ${D}1 ]; do
473276a9
VS
47114 case ${D}1 in
47115 -ord*)
47116 EXPORT_BY_ORDINALS=1;
47117 ;;
47118 -o*)
47119 shift
47120 outFile=${D}1
47121 ;;
47122 -i*)
47123 shift
47124 outimpFile=${D}1
47125 ;;
b1d22ded
DE
47126 -name-mangler-script)
47127 shift
47128 renameScript=${D}1
47129 ;;
473276a9
VS
47130 -d*)
47131 shift
47132 description=${D}1
47133 ;;
47134 -f*)
47135 shift
47136 CFLAGS=${D}1
47137 ;;
47138 -c*)
47139 shift
47140 CC=${D}1
47141 ;;
47142 -h*)
47143 PrintHelp
47144 ;;
47145 -ex*)
47146 shift
47147 exclude_symbols=${D}{exclude_symbols}${D}1" "
47148 ;;
47149 -libf*)
47150 shift
47151 library_flags=${D}{library_flags}${D}1" "
47152 ;;
47153 -nocrt*)
47154 CFLAGS="-s"
47155 ;;
47156 -nolxl*)
47157 flag_USE_LXLITE=0
47158 ;;
47159 -* | /*)
47160 case ${D}1 in
47161 -L* | -l*)
47162 libsToLink=1
47163 ;;
b1d22ded
DE
47164 -Zomf)
47165 omfLinking=1
47166 ;;
473276a9
VS
47167 *)
47168 ;;
47169 esac
47170 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47171 ;;
b1d22ded
DE
47172 *.dll)
47173 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
47174 if [ ${D}omfLinking -eq 1 ]; then
47175 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
47176 else
47177 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
47178 fi
47179 ;;
473276a9
VS
47180 *)
47181 found=0;
1e9e8aba 47182 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
47183 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47184 else
47185 for file in ${D}1 ; do
1e9e8aba 47186 if [ -f ${D}file ]; then
473276a9
VS
47187 inputFiles="${D}{inputFiles} ${D}file"
47188 found=1
47189 fi
47190 done
1e9e8aba 47191 if [ ${D}found -eq 0 ]; then
473276a9
VS
47192 echo "ERROR: No file(s) found: "${D}1
47193 exit 8
47194 fi
47195 fi
47196 ;;
47197 esac
47198 shift
47199done # iterate cmdline words
47200
47201#
1e9e8aba 47202if [ -z "${D}inputFiles" ]; then
473276a9
VS
47203 echo "dllar: no input files"
47204 PrintHelp
47205fi
47206
47207# Now extract all .o files from .a files
47208newInputFiles=""
47209for file in ${D}inputFiles ; do
47210 case ${D}file in
47211 *.a | *.lib)
47212 case ${D}file in
47213 *.a)
47214 suffix=".a"
47215 AR="ar"
47216 ;;
47217 *.lib)
47218 suffix=".lib"
47219 AR="emxomfar"
47220 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
47221 ;;
47222 *)
47223 ;;
47224 esac
47225 dirname=\`basnam ${D}file ${D}suffix\`"_%"
47226 mkdir ${D}dirname
1e9e8aba 47227 if [ ${D}? -ne 0 ]; then
473276a9
VS
47228 echo "Failed to create subdirectory ./${D}dirname"
47229 CleanUp
47230 exit 8;
47231 fi
47232 # Append '!' to indicate archive
47233 newInputFiles="${D}newInputFiles ${D}{dirname}!"
47234 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
47235 cd ${D}curDir
47236 found=0;
47237 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 47238 if [ -f ${D}subfile ]; then
473276a9 47239 found=1
1e9e8aba 47240 if [ -s ${D}subfile ]; then
473276a9
VS
47241 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
47242 newInputFiles="${D}newInputFiles ${D}subfile"
47243 fi
47244 fi
47245 done
1e9e8aba
DE
47246 if [ ${D}found -eq 0 ]; then
47247 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
47248 fi
47249 ;;
47250 *)
47251 newInputFiles="${D}{newInputFiles} ${D}file"
47252 ;;
47253 esac
47254done
47255inputFiles="${D}newInputFiles"
47256
47257# Output filename(s).
47258do_backup=0;
1e9e8aba 47259if [ -z ${D}outFile ]; then
473276a9
VS
47260 do_backup=1;
47261 set outFile ${D}inputFiles; outFile=${D}2
47262fi
47263
47264# If it is an archive, remove the '!' and the '_%' suffixes
47265case ${D}outFile in
47266*_%!)
47267 outFile=\`basnam ${D}outFile _%!\`
47268 ;;
47269*)
47270 ;;
47271esac
47272case ${D}outFile in
47273*.dll)
47274 outFile=\`basnam ${D}outFile .dll\`
47275 ;;
47276*.DLL)
47277 outFile=\`basnam ${D}outFile .DLL\`
47278 ;;
47279*.o)
47280 outFile=\`basnam ${D}outFile .o\`
47281 ;;
47282*.obj)
47283 outFile=\`basnam ${D}outFile .obj\`
47284 ;;
47285*.a)
47286 outFile=\`basnam ${D}outFile .a\`
47287 ;;
47288*.lib)
47289 outFile=\`basnam ${D}outFile .lib\`
47290 ;;
47291*)
47292 ;;
47293esac
47294case ${D}outimpFile in
47295*.a)
47296 outimpFile=\`basnam ${D}outimpFile .a\`
47297 ;;
47298*.lib)
47299 outimpFile=\`basnam ${D}outimpFile .lib\`
47300 ;;
47301*)
47302 ;;
47303esac
1e9e8aba 47304if [ -z ${D}outimpFile ]; then
473276a9
VS
47305 outimpFile=${D}outFile
47306fi
47307defFile="${D}{outFile}.def"
47308arcFile="${D}{outimpFile}.a"
47309arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
47310
47311#create ${D}dllFile as something matching 8.3 restrictions,
47312if [ -z ${D}renameScript ] ; then
47313 dllFile="${D}outFile"
47314else
47315 dllFile=\`${D}renameScript ${D}outimpFile\`
47316fi
473276a9 47317
1e9e8aba
DE
47318if [ ${D}do_backup -ne 0 ] ; then
47319 if [ -f ${D}arcFile ] ; then
473276a9
VS
47320 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
47321 fi
1e9e8aba 47322 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
47323 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
47324 fi
47325fi
47326
47327# Extract public symbols from all the object files.
47328tmpdefFile=${D}{defFile}_%
47329rm -f ${D}tmpdefFile
47330for file in ${D}inputFiles ; do
47331 case ${D}file in
47332 *!)
47333 ;;
47334 *)
47335 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
47336 ;;
47337 esac
47338done
47339
47340# Create the def file.
47341rm -f ${D}defFile
47342echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
47343dllFile="${D}{dllFile}.dll"
47344if [ ! -z ${D}description ]; then
1e9e8aba 47345 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
47346fi
47347echo "EXPORTS" >> ${D}defFile
47348
47349doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
47350grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
47351
47352# Checks if the export is ok or not.
47353for word in ${D}exclude_symbols; do
47354 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
47355 mv ${D}{tmpdefFile}% ${D}tmpdefFile
47356done
47357
47358
1e9e8aba
DE
47359if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
47360 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
47361 sed '
47362 N
47363 : loop
1e9e8aba 47364 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
47365 t loop
47366 ' > ${D}{tmpdefFile}%
47367 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
47368else
47369 rm -f ${D}{tmpdefFile}%
47370fi
47371cat ${D}tmpdefFile >> ${D}defFile
47372rm -f ${D}tmpdefFile
47373
47374# Do linking, create implib, and apply lxlite.
47375gccCmdl="";
47376for file in ${D}inputFiles ; do
47377 case ${D}file in
47378 *!)
47379 ;;
47380 *)
47381 gccCmdl="${D}gccCmdl ${D}file"
47382 ;;
47383 esac
47384done
47385doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
47386touch "${D}{outFile}.dll"
47387
47388doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 47389if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 47390 add_flags="";
1e9e8aba 47391 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
47392 add_flags="-ynd"
47393 fi
47394 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
47395fi
47396doCommand "emxomf -s -l ${D}arcFile"
47397
47398# Successful exit.
47399CleanUp 1
47400exit 0
47401EOF
47402
47403 chmod +x dllar.sh
a848cd7e
SC
47404 ;;
47405
1e9e8aba 47406 powerpc-apple-macos* | \
0ad5d837 47407 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
47408 *-*-sunos4* | \
47409 *-*-osf* | \
47410 *-*-dgux5* | \
47a7e797
MW
47411 *-*-sysv5* | \
47412 *-pc-msdosdjgpp )
a848cd7e
SC
47413 ;;
47414
47415 *)
47416 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
47417echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
47418 { (exit 1); exit 1; }; }
47419 esac
47420
2057db16
VS
47421 if test "x$PIC_FLAG" != "x" ; then
47422 PIC_FLAG="$PIC_FLAG -DPIC"
47423 fi
47424
a848cd7e
SC
47425 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
47426 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
47427 fi
47428 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
47429 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
47430 fi
47431
47432
47433
47434
47435
47436
47437
47438
810b94f0 47439
a848cd7e
SC
47440 USE_SOVERSION=0
47441 USE_SOVERLINUX=0
47442 USE_SOVERSOLARIS=0
810b94f0 47443 USE_SOVERCYGWIN=0
a848cd7e
SC
47444 USE_SOSYMLINKS=0
47445 USE_MACVERSION=0
47446 SONAME_FLAG=
47447
47448 case "${BAKEFILE_HOST}" in
0ad5d837 47449 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
47450 SONAME_FLAG="-Wl,-soname,"
47451 USE_SOVERSION=1
47452 USE_SOVERLINUX=1
47453 USE_SOSYMLINKS=1
47454 ;;
47455
a848cd7e
SC
47456 *-*-solaris2* )
47457 SONAME_FLAG="-h "
47458 USE_SOVERSION=1
47459 USE_SOVERSOLARIS=1
47460 USE_SOSYMLINKS=1
47461 ;;
47462
47463 *-*-darwin* )
47464 USE_MACVERSION=1
47465 USE_SOVERSION=1
47466 USE_SOSYMLINKS=1
47467 ;;
810b94f0
MW
47468
47469 *-*-cygwin* )
47470 USE_SOVERSION=1
47471 USE_SOVERCYGWIN=1
47472 ;;
a848cd7e
SC
47473 esac
47474
47475
47476
47477
47478
47479
47480
47481
47482
810b94f0 47483
f10e38c4
VZ
47484 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
47485if test "${enable_dependency_tracking+set}" = set; then
47486 enableval="$enable_dependency_tracking"
47487 bk_use_trackdeps="$enableval"
47488fi;
47489
a848cd7e
SC
47490 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
47491echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 47492
f10e38c4
VZ
47493 if test "x$bk_use_trackdeps" = "xno" ; then
47494 DEPS_TRACKING=0
47495 echo "$as_me:$LINENO: result: disabled" >&5
47496echo "${ECHO_T}disabled" >&6
47497 else
47498 DEPS_TRACKING=1
47499
47500 if test "x$GCC" = "xyes"; then
47501 DEPSMODE=gcc
47502 case "${BAKEFILE_HOST}" in
47503 *-*-darwin* )
47504 DEPSFLAG="-no-cpp-precomp -MMD"
47505 ;;
47506 * )
47507 DEPSFLAG="-MMD"
47508 ;;
47509 esac
47510 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 47511echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
47512 elif test "x$MWCC" = "xyes"; then
47513 DEPSMODE=mwcc
47514 DEPSFLAG="-MM"
47515 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 47516echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
47517 elif test "x$SUNCC" = "xyes"; then
47518 DEPSMODE=unixcc
47519 DEPSFLAG="-xM1"
47520 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 47521echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
47522 elif test "x$SGICC" = "xyes"; then
47523 DEPSMODE=unixcc
47524 DEPSFLAG="-M"
47525 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 47526echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
47527 elif test "x$HPCC" = "xyes"; then
47528 DEPSMODE=unixcc
47529 DEPSFLAG="+make"
47530 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 47531echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
47532 elif test "x$COMPAQCC" = "xyes"; then
47533 DEPSMODE=gcc
47534 DEPSFLAG="-MD"
47535 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 47536echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
47537 else
47538 DEPS_TRACKING=0
47539 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 47540echo "${ECHO_T}none" >&6
f10e38c4 47541 fi
a848cd7e 47542
f10e38c4 47543 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
47544
47545D='$'
47546cat <<EOF >bk-deps
a848cd7e
SC
47547#!/bin/sh
47548
47549# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47550# script. It is used to track C/C++ files dependencies in portable way.
47551#
47552# Permission is given to use this file in any way.
47553
473276a9 47554DEPSMODE=${DEPSMODE}
a848cd7e 47555DEPSDIR=.deps
0ad5d837 47556DEPSFLAG="${DEPSFLAG}"
a848cd7e 47557
473276a9 47558mkdir -p ${D}DEPSDIR
a848cd7e 47559
473276a9 47560if test ${D}DEPSMODE = gcc ; then
0ad5d837 47561 ${D}* ${D}{DEPSFLAG}
473276a9
VS
47562 status=${D}?
47563 if test ${D}{status} != 0 ; then
47564 exit ${D}{status}
a848cd7e
SC
47565 fi
47566 # move created file to the location we want it in:
473276a9
VS
47567 while test ${D}# -gt 0; do
47568 case "${D}1" in
a848cd7e
SC
47569 -o )
47570 shift
473276a9 47571 objfile=${D}1
a848cd7e
SC
47572 ;;
47573 -* )
47574 ;;
47575 * )
473276a9 47576 srcfile=${D}1
a848cd7e
SC
47577 ;;
47578 esac
47579 shift
47580 done
1e9e8aba
DE
47581 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
47582 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
47583 if test -f ${D}depfile ; then
47584 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47585 rm -f ${D}depfile
a848cd7e 47586 else
a1aa0349 47587 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 47588 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
47589 if test ! -f ${D}depfile ; then
47590 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
47591 depfile="${D}objfile.d"
47592 fi
473276a9
VS
47593 if test -f ${D}depfile ; then
47594 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47595 rm -f ${D}depfile
a848cd7e
SC
47596 fi
47597 fi
47598 exit 0
81f90336 47599elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 47600 ${D}* || exit ${D}?
81f90336
MW
47601 # Run mwcc again with -MM and redirect into the dep file we want
47602 # NOTE: We can't use shift here because we need ${D}* to be valid
47603 prevarg=
47604 for arg in ${D}* ; do
47605 if test "${D}prevarg" = "-o"; then
47606 objfile=${D}arg
47607 else
47608 case "${D}arg" in
47609 -* )
47610 ;;
47611 * )
47612 srcfile=${D}arg
47613 ;;
47614 esac
47615 fi
47616 prevarg="${D}arg"
47617 done
0ad5d837 47618 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 47619 exit 0
0ad5d837 47620elif test ${D}DEPSMODE = unixcc; then
f6b50c59 47621 ${D}* || exit ${D}?
a9e5b1f0
MW
47622 # Run compiler again with deps flag and redirect into the dep file.
47623 # It doesn't work if the '-o FILE' option is used, but without it the
47624 # dependency file will contain the wrong name for the object. So it is
47625 # removed from the command line, and the dep file is fixed with sed.
47626 cmd=""
47627 while test ${D}# -gt 0; do
47628 case "${D}1" in
47629 -o )
47630 shift
47631 objfile=${D}1
47632 ;;
47633 * )
47634 eval arg${D}#=\\${D}1
47635 cmd="${D}cmd \\${D}arg${D}#"
47636 ;;
47637 esac
47638 shift
47639 done
0ad5d837 47640 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 47641 exit 0
a848cd7e 47642else
473276a9
VS
47643 ${D}*
47644 exit ${D}?
a848cd7e
SC
47645fi
47646EOF
473276a9 47647
f10e38c4
VZ
47648 chmod +x bk-deps
47649 fi
a848cd7e
SC
47650 fi
47651
47652
47653
47654
a848cd7e
SC
47655 case ${BAKEFILE_HOST} in
47656 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
47657 if test -n "$ac_tool_prefix"; then
47658 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
47659set dummy ${ac_tool_prefix}windres; ac_word=$2
47660echo "$as_me:$LINENO: checking for $ac_word" >&5
47661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47662if test "${ac_cv_prog_WINDRES+set}" = set; then
47663 echo $ECHO_N "(cached) $ECHO_C" >&6
47664else
47665 if test -n "$WINDRES"; then
47666 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
47667else
47668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47669for as_dir in $PATH
47670do
47671 IFS=$as_save_IFS
47672 test -z "$as_dir" && as_dir=.
47673 for ac_exec_ext in '' $ac_executable_extensions; do
47674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47675 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
47676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47677 break 2
47678 fi
47679done
47680done
47681
47682fi
47683fi
47684WINDRES=$ac_cv_prog_WINDRES
47685if test -n "$WINDRES"; then
47686 echo "$as_me:$LINENO: result: $WINDRES" >&5
47687echo "${ECHO_T}$WINDRES" >&6
47688else
47689 echo "$as_me:$LINENO: result: no" >&5
47690echo "${ECHO_T}no" >&6
47691fi
47692
47693fi
47694if test -z "$ac_cv_prog_WINDRES"; then
47695 ac_ct_WINDRES=$WINDRES
47696 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
47697set dummy windres; ac_word=$2
47698echo "$as_me:$LINENO: checking for $ac_word" >&5
47699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47700if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
47701 echo $ECHO_N "(cached) $ECHO_C" >&6
47702else
8ced02f6
DE
47703 if test -n "$ac_ct_WINDRES"; then
47704 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
47705else
47706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47707for as_dir in $PATH
47708do
47709 IFS=$as_save_IFS
47710 test -z "$as_dir" && as_dir=.
47711 for ac_exec_ext in '' $ac_executable_extensions; do
47712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47713 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
47714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47715 break 2
47716 fi
47717done
47718done
47719
a848cd7e
SC
47720fi
47721fi
8ced02f6
DE
47722ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
47723if test -n "$ac_ct_WINDRES"; then
47724 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
47725echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
47726else
47727 echo "$as_me:$LINENO: result: no" >&5
47728echo "${ECHO_T}no" >&6
47729fi
47730
8ced02f6
DE
47731 WINDRES=$ac_ct_WINDRES
47732else
47733 WINDRES="$ac_cv_prog_WINDRES"
47734fi
47735
a848cd7e
SC
47736 ;;
47737
1e9e8aba 47738 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
47739 # Extract the first word of "Rez", so it can be a program name with args.
47740set dummy Rez; ac_word=$2
47741echo "$as_me:$LINENO: checking for $ac_word" >&5
47742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47743if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
47744 echo $ECHO_N "(cached) $ECHO_C" >&6
47745else
8ced02f6
DE
47746 if test -n "$REZ"; then
47747 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
47748else
47749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47750for as_dir in $PATH
47751do
47752 IFS=$as_save_IFS
47753 test -z "$as_dir" && as_dir=.
47754 for ac_exec_ext in '' $ac_executable_extensions; do
47755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47756 ac_cv_prog_REZ="Rez"
a848cd7e
SC
47757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47758 break 2
47759 fi
47760done
47761done
47762
8ced02f6 47763 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
47764fi
47765fi
8ced02f6
DE
47766REZ=$ac_cv_prog_REZ
47767if test -n "$REZ"; then
47768 echo "$as_me:$LINENO: result: $REZ" >&5
47769echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
47770else
47771 echo "$as_me:$LINENO: result: no" >&5
47772echo "${ECHO_T}no" >&6
47773fi
47774
47775 # Extract the first word of "SetFile", so it can be a program name with args.
47776set dummy SetFile; ac_word=$2
47777echo "$as_me:$LINENO: checking for $ac_word" >&5
47778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47779if test "${ac_cv_prog_SETFILE+set}" = set; then
47780 echo $ECHO_N "(cached) $ECHO_C" >&6
47781else
47782 if test -n "$SETFILE"; then
47783 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
47784else
47785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47786for as_dir in $PATH
47787do
47788 IFS=$as_save_IFS
47789 test -z "$as_dir" && as_dir=.
47790 for ac_exec_ext in '' $ac_executable_extensions; do
47791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47792 ac_cv_prog_SETFILE="SetFile"
47793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47794 break 2
47795 fi
47796done
47797done
47798
47799 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
47800fi
47801fi
47802SETFILE=$ac_cv_prog_SETFILE
47803if test -n "$SETFILE"; then
47804 echo "$as_me:$LINENO: result: $SETFILE" >&5
47805echo "${ECHO_T}$SETFILE" >&6
47806else
47807 echo "$as_me:$LINENO: result: no" >&5
47808echo "${ECHO_T}no" >&6
47809fi
47810
47811 ;;
47812 esac
47813
47814
47815
47816
47817
8ced02f6 47818
f10e38c4 47819 BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
a848cd7e 47820
dcc1b6ad 47821
f10e38c4 47822BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
a848cd7e 47823
646b6ec1 47824
74b84332 47825
a848cd7e
SC
47826 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
47827if test "${enable_precomp_headers+set}" = set; then
47828 enableval="$enable_precomp_headers"
47829 bk_use_pch="$enableval"
47830fi;
47831
47832 GCC_PCH=0
f10e38c4
VZ
47833 ICC_PCH=0
47834 USE_PCH=0
a848cd7e 47835
5c60e845
MW
47836 case ${BAKEFILE_HOST} in
47837 *-*-cygwin* )
47838 bk_use_pch="no"
47839 ;;
47840 esac
47841
a848cd7e
SC
47842 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
47843 if test "x$GCC" = "xyes"; then
47844 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
47845echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
47846 cat >conftest.$ac_ext <<_ACEOF
47847/* confdefs.h. */
47848_ACEOF
47849cat confdefs.h >>conftest.$ac_ext
47850cat >>conftest.$ac_ext <<_ACEOF
47851/* end confdefs.h. */
47852
47853int
47854main ()
47855{
47856
47857 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 47858 There is no PCH support
a848cd7e
SC
47859 #endif
47860 #if (__GNUC__ < 3)
e5efa97e 47861 There is no PCH support
a848cd7e
SC
47862 #endif
47863 #if (__GNUC__ == 3) && \
47864 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
47865 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
47866 ( defined(__INTEL_COMPILER) )
e5efa97e 47867 There is no PCH support
a848cd7e
SC
47868 #endif
47869
47870 ;
47871 return 0;
47872}
47873_ACEOF
47874rm -f conftest.$ac_objext
47875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 47876 (eval $ac_compile) 2>conftest.er1
a848cd7e 47877 ac_status=$?
ac1cb8d3
VS
47878 grep -v '^ *+' conftest.er1 >conftest.err
47879 rm -f conftest.er1
47880 cat conftest.err >&5
a848cd7e
SC
47881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47882 (exit $ac_status); } &&
3f60522a
JS
47883 { ac_try='test -z "$ac_c_werror_flag"
47884 || test ! -s conftest.err'
ac1cb8d3
VS
47885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47886 (eval $ac_try) 2>&5
47887 ac_status=$?
47888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47889 (exit $ac_status); }; } &&
47890 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
47891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47892 (eval $ac_try) 2>&5
47893 ac_status=$?
47894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47895 (exit $ac_status); }; }; then
47896
47897 echo "$as_me:$LINENO: result: yes" >&5
47898echo "${ECHO_T}yes" >&6
a848cd7e
SC
47899 GCC_PCH=1
47900
47901else
47902 echo "$as_me: failed program was:" >&5
47903sed 's/^/| /' conftest.$ac_ext >&5
47904
47905
f10e38c4
VZ
47906 cat >conftest.$ac_ext <<_ACEOF
47907/* confdefs.h. */
47908_ACEOF
47909cat confdefs.h >>conftest.$ac_ext
47910cat >>conftest.$ac_ext <<_ACEOF
47911/* end confdefs.h. */
47912
47913int
47914main ()
47915{
47916
47917 #if !defined(__INTEL_COMPILER) || \
47918 (__INTEL_COMPILER < 800)
e5efa97e 47919 There is no PCH support
f10e38c4
VZ
47920 #endif
47921
47922 ;
47923 return 0;
47924}
47925_ACEOF
47926rm -f conftest.$ac_objext
47927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47928 (eval $ac_compile) 2>conftest.er1
47929 ac_status=$?
47930 grep -v '^ *+' conftest.er1 >conftest.err
47931 rm -f conftest.er1
47932 cat conftest.err >&5
47933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47934 (exit $ac_status); } &&
3f60522a
JS
47935 { ac_try='test -z "$ac_c_werror_flag"
47936 || test ! -s conftest.err'
f10e38c4
VZ
47937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47938 (eval $ac_try) 2>&5
47939 ac_status=$?
47940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47941 (exit $ac_status); }; } &&
47942 { ac_try='test -s conftest.$ac_objext'
47943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47944 (eval $ac_try) 2>&5
47945 ac_status=$?
47946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47947 (exit $ac_status); }; }; then
47948
47949 echo "$as_me:$LINENO: result: yes" >&5
47950echo "${ECHO_T}yes" >&6
47951 ICC_PCH=1
47952
47953else
47954 echo "$as_me: failed program was:" >&5
47955sed 's/^/| /' conftest.$ac_ext >&5
47956
47957
47958 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
47959echo "${ECHO_T}no" >&6
47960
47961fi
ac1cb8d3 47962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
47963
47964fi
47965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47966 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
47967 USE_PCH=1
1e9e8aba
DE
47968
47969D='$'
47970cat <<EOF >bk-make-pch
a848cd7e
SC
47971#!/bin/sh
47972
47973# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47974# script. It is used to generated precompiled headers.
47975#
47976# Permission is given to use this file in any way.
47977
1e9e8aba
DE
47978outfile="${D}{1}"
47979header="${D}{2}"
a848cd7e
SC
47980shift
47981shift
47982
f10e38c4
VZ
47983compiler=""
47984headerfile=""
47985
1e9e8aba 47986while test ${D}{#} -gt 0; do
f10e38c4 47987 add_to_cmdline=1
1e9e8aba 47988 case "${D}{1}" in
a848cd7e 47989 -I* )
1e9e8aba
DE
47990 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
47991 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
47992 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
47993 fi
47994 ;;
f10e38c4
VZ
47995 -use-pch|-use_pch )
47996 shift
47997 add_to_cmdline=0
47998 ;;
a848cd7e 47999 esac
f10e38c4
VZ
48000 if test ${D}add_to_cmdline = 1 ; then
48001 compiler="${D}{compiler} ${D}{1}"
48002 fi
a848cd7e
SC
48003 shift
48004done
48005
1e9e8aba 48006if test "x${D}{headerfile}" = "x" ; then
f10e38c4 48007 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 48008else
1e9e8aba
DE
48009 if test -f ${D}{outfile} ; then
48010 rm -f ${D}{outfile}
a848cd7e 48011 else
1e9e8aba 48012 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 48013 fi
1e9e8aba 48014 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 48015 mkdir -p .deps
f10e38c4
VZ
48016 if test "x${GCC_PCH}" = "x1" ; then
48017 # can do this because gcc is >= 3.4:
48018 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
48019 elif test "x${ICC_PCH}" = "x1" ; then
48020 filename=pch_gen-${D}${D}
48021 file=${D}{filename}.c
48022 dfile=${D}{filename}.d
48023 cat > ${D}file <<EOT
48024#include "${D}header"
48025EOT
48026 # using -MF icc complains about differing command lines in creation/use
48027 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
48028 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
48029 rm -f ${D}file ${D}dfile ${D}{filename}.o
48030 fi
1e9e8aba 48031 exit ${D}{?}
a848cd7e
SC
48032fi
48033EOF
1e9e8aba 48034
a848cd7e
SC
48035 chmod +x bk-make-pch
48036 fi
48037 fi
48038 fi
48039
48040
48041
f10e38c4 48042
a848cd7e
SC
48043 COND_BUILD_DEBUG="#"
48044 if test "x$BUILD" = "xdebug" ; then
48045 COND_BUILD_DEBUG=""
48046 fi
48047
48048 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
48049 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
48050 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
48051 fi
48052
48053 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
48054 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
48055 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
48056 fi
48057
48058 COND_BUILD_DEBUG_UNICODE_0="#"
48059 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
48060 COND_BUILD_DEBUG_UNICODE_0=""
48061 fi
48062
48063 COND_BUILD_DEBUG_UNICODE_1="#"
48064 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
48065 COND_BUILD_DEBUG_UNICODE_1=""
48066 fi
48067
48068 COND_BUILD_RELEASE="#"
48069 if test "x$BUILD" = "xrelease" ; then
48070 COND_BUILD_RELEASE=""
48071 fi
48072
48073 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
48074 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
48075 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
48076 fi
48077
48078 COND_BUILD_RELEASE_UNICODE_0="#"
48079 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
48080 COND_BUILD_RELEASE_UNICODE_0=""
48081 fi
48082
48083 COND_BUILD_RELEASE_UNICODE_1="#"
48084 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
48085 COND_BUILD_RELEASE_UNICODE_1=""
48086 fi
48087
48088 COND_DEBUG_FLAG_1="#"
48089 if test "x$DEBUG_FLAG" = "x1" ; then
48090 COND_DEBUG_FLAG_1=""
48091 fi
48092
48093 COND_DEBUG_INFO_0="#"
48094 if test "x$DEBUG_INFO" = "x0" ; then
48095 COND_DEBUG_INFO_0=""
48096 fi
48097
48098 COND_DEBUG_INFO_1="#"
48099 if test "x$DEBUG_INFO" = "x1" ; then
48100 COND_DEBUG_INFO_1=""
48101 fi
48102
48103 COND_DEPS_TRACKING_0="#"
48104 if test "x$DEPS_TRACKING" = "x0" ; then
48105 COND_DEPS_TRACKING_0=""
48106 fi
48107
48108 COND_DEPS_TRACKING_1="#"
48109 if test "x$DEPS_TRACKING" = "x1" ; then
48110 COND_DEPS_TRACKING_1=""
48111 fi
48112
48113 COND_GCC_PCH_1="#"
48114 if test "x$GCC_PCH" = "x1" ; then
48115 COND_GCC_PCH_1=""
48116 fi
48117
f10e38c4
VZ
48118 COND_ICC_PCH_1="#"
48119 if test "x$ICC_PCH" = "x1" ; then
48120 COND_ICC_PCH_1=""
48121 fi
48122
a848cd7e
SC
48123 COND_MONOLITHIC_0="#"
48124 if test "x$MONOLITHIC" = "x0" ; then
48125 COND_MONOLITHIC_0=""
48126 fi
48127
48128 COND_MONOLITHIC_0_SHARED_0="#"
48129 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
48130 COND_MONOLITHIC_0_SHARED_0=""
48131 fi
48132
3f60522a
JS
48133 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
48134 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
48135 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
48136 fi
48137
a848cd7e
SC
48138 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
48139 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
48140 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
48141 fi
48142
90970d69
DE
48143 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
48144 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48145 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
48146 fi
48147
f10e38c4
VZ
48148 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
48149 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48150 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
48151 fi
48152
a848cd7e
SC
48153 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
48154 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48155 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
48156 fi
48157
6671c68b
VZ
48158 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
48159 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48160 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
48161 fi
48162
a848cd7e
SC
48163 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
48164 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
48165 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
48166 fi
48167
8b6682b9
JS
48168 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
48169 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
48170 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
48171 fi
48172
ceec2216
RL
48173 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
48174 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48175 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
48176 fi
48177
a848cd7e
SC
48178 COND_MONOLITHIC_0_SHARED_1="#"
48179 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
48180 COND_MONOLITHIC_0_SHARED_1=""
48181 fi
48182
3f60522a
JS
48183 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
48184 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
48185 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
48186 fi
48187
a848cd7e
SC
48188 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
48189 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
48190 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
48191 fi
48192
90970d69
DE
48193 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
48194 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48195 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
48196 fi
48197
f10e38c4
VZ
48198 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
48199 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48200 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
48201 fi
48202
a848cd7e
SC
48203 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
48204 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48205 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
48206 fi
48207
6671c68b
VZ
48208 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
48209 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48210 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
48211 fi
48212
a848cd7e
SC
48213 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
48214 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
48215 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
48216 fi
48217
8b6682b9
JS
48218 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
48219 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
48220 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
48221 fi
48222
ceec2216
RL
48223 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
48224 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48225 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
48226 fi
48227
e5efa97e
VZ
48228 COND_MONOLITHIC_0_USE_MEDIA_1="#"
48229 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
48230 COND_MONOLITHIC_0_USE_MEDIA_1=""
48231 fi
48232
a848cd7e
SC
48233 COND_MONOLITHIC_0_USE_ODBC_1="#"
48234 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
48235 COND_MONOLITHIC_0_USE_ODBC_1=""
48236 fi
48237
48238 COND_MONOLITHIC_1="#"
48239 if test "x$MONOLITHIC" = "x1" ; then
48240 COND_MONOLITHIC_1=""
48241 fi
48242
48243 COND_MONOLITHIC_1_SHARED_0="#"
48244 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
48245 COND_MONOLITHIC_1_SHARED_0=""
48246 fi
48247
48248 COND_MONOLITHIC_1_SHARED_1="#"
48249 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
48250 COND_MONOLITHIC_1_SHARED_1=""
48251 fi
48252
48253 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
48254 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
48255 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
48256 fi
48257
48258 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
48259 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
48260 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
48261 fi
48262
eb730a0c
JS
48263 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
48264 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
48265 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
48266 fi
48267
a848cd7e
SC
48268 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
48269 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
48270 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
48271 fi
48272
48273 COND_PLATFORM_MACOSX_1="#"
48274 if test "x$PLATFORM_MACOSX" = "x1" ; then
48275 COND_PLATFORM_MACOSX_1=""
48276 fi
48277
a30f955f
VS
48278 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
48279 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
48280 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
48281 fi
48282
a848cd7e
SC
48283 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
48284 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
48285 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
48286 fi
48287
48288 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
48289 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
48290 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
48291 fi
48292
48293 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
48294 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
48295 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
48296 fi
48297
fc480dc1
DE
48298 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
48299 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48300 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
48301 fi
48302
1e9e8aba
DE
48303 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
48304 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48305 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
48306 fi
48307
ebee3cd0
VS
48308 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
48309 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
48310 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
48311 fi
48312
48313 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
48314 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
48315 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
48316 fi
48317
a848cd7e
SC
48318 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
48319 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
48320 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
48321 fi
48322
48323 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
48324 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48325 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
48326 fi
48327
b48a2016
DE
48328 COND_PLATFORM_MACOS_1="#"
48329 if test "x$PLATFORM_MACOS" = "x1" ; then
48330 COND_PLATFORM_MACOS_1=""
48331 fi
48332
083508af
MW
48333 COND_PLATFORM_MAC_1="#"
48334 if test "x$PLATFORM_MAC" = "x1" ; then
48335 COND_PLATFORM_MAC_1=""
48336 fi
48337
e5efa97e
VZ
48338 COND_PLATFORM_MSDOS_0="#"
48339 if test "x$PLATFORM_MSDOS" = "x0" ; then
48340 COND_PLATFORM_MSDOS_0=""
48341 fi
48342
83d8eb47
MW
48343 COND_PLATFORM_MSDOS_1="#"
48344 if test "x$PLATFORM_MSDOS" = "x1" ; then
48345 COND_PLATFORM_MSDOS_1=""
48346 fi
48347
a848cd7e
SC
48348 COND_PLATFORM_OS2_1="#"
48349 if test "x$PLATFORM_OS2" = "x1" ; then
48350 COND_PLATFORM_OS2_1=""
48351 fi
48352
48353 COND_PLATFORM_UNIX_0="#"
48354 if test "x$PLATFORM_UNIX" = "x0" ; then
48355 COND_PLATFORM_UNIX_0=""
48356 fi
48357
48358 COND_PLATFORM_UNIX_1="#"
48359 if test "x$PLATFORM_UNIX" = "x1" ; then
48360 COND_PLATFORM_UNIX_1=""
48361 fi
48362
48363 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
48364 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
48365 COND_PLATFORM_UNIX_1_USE_GUI_1=""
48366 fi
48367
48368 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
48369 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
48370 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
48371 fi
48372
48373 COND_PLATFORM_WIN32_0="#"
48374 if test "x$PLATFORM_WIN32" = "x0" ; then
48375 COND_PLATFORM_WIN32_0=""
48376 fi
48377
48378 COND_PLATFORM_WIN32_1="#"
48379 if test "x$PLATFORM_WIN32" = "x1" ; then
48380 COND_PLATFORM_WIN32_1=""
48381 fi
48382
48383 COND_SHARED_0="#"
48384 if test "x$SHARED" = "x0" ; then
48385 COND_SHARED_0=""
48386 fi
48387
083508af
MW
48388 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
48389 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
48390 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
48391 fi
48392
48393 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
48394 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48395 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
48396 fi
48397
48398 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
48399 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
48400 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
48401 fi
48402
a848cd7e
SC
48403 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
48404 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
48405 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
48406 fi
48407
48408 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48409 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48410 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48411 fi
48412
48413 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48414 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48415 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48416 fi
48417
48418 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48419 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48420 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48421 fi
48422
083508af
MW
48423 COND_SHARED_0_USE_XRC_1="#"
48424 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48425 COND_SHARED_0_USE_XRC_1=""
48426 fi
48427
a848cd7e
SC
48428 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
48429 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
48430 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
48431 fi
48432
48433 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
48434 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
48435 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
48436 fi
48437
48438 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
48439 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
48440 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
48441 fi
48442
48443 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
48444 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
48445 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
48446 fi
48447
48448 COND_SHARED_1="#"
48449 if test "x$SHARED" = "x1" ; then
48450 COND_SHARED_1=""
48451 fi
48452
48453 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
48454 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
48455 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
48456 fi
48457
083508af
MW
48458 COND_SHARED_1_USE_XRC_1="#"
48459 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48460 COND_SHARED_1_USE_XRC_1=""
48461 fi
48462
a30f955f
VS
48463 COND_TOOLKIT_="#"
48464 if test "x$TOOLKIT" = "x" ; then
48465 COND_TOOLKIT_=""
48466 fi
48467
a848cd7e
SC
48468 COND_TOOLKIT_COCOA="#"
48469 if test "x$TOOLKIT" = "xCOCOA" ; then
48470 COND_TOOLKIT_COCOA=""
48471 fi
48472
a49baeab
DE
48473 COND_TOOLKIT_COCOA_USE_GUI_1="#"
48474 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
48475 COND_TOOLKIT_COCOA_USE_GUI_1=""
48476 fi
48477
a848cd7e
SC
48478 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
48479 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48480 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
48481 fi
48482
48483 COND_TOOLKIT_GTK="#"
48484 if test "x$TOOLKIT" = "xGTK" ; then
48485 COND_TOOLKIT_GTK=""
48486 fi
48487
d044deea
MW
48488 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
48489 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
48490 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
48491 fi
48492
48493 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
48494 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
48495 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
48496 fi
48497
48498 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
48499 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
48500 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
48501 fi
48502
48503 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
48504 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48505 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
48506 fi
48507
48508 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
48509 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
48510 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
48511 fi
48512
48513 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
48514 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48515 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
48516 fi
48517
a848cd7e
SC
48518 COND_TOOLKIT_GTK_USE_GUI_1="#"
48519 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
48520 COND_TOOLKIT_GTK_USE_GUI_1=""
48521 fi
48522
a848cd7e
SC
48523 COND_TOOLKIT_MAC="#"
48524 if test "x$TOOLKIT" = "xMAC" ; then
48525 COND_TOOLKIT_MAC=""
48526 fi
48527
48528 COND_TOOLKIT_MAC_USE_GUI_1="#"
48529 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48530 COND_TOOLKIT_MAC_USE_GUI_1=""
48531 fi
48532
48533 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
48534 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48535 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
48536 fi
48537
48538 COND_TOOLKIT_MGL="#"
48539 if test "x$TOOLKIT" = "xMGL" ; then
48540 COND_TOOLKIT_MGL=""
48541 fi
48542
48543 COND_TOOLKIT_MGL_USE_GUI_1="#"
48544 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
48545 COND_TOOLKIT_MGL_USE_GUI_1=""
48546 fi
48547
48548 COND_TOOLKIT_MOTIF="#"
48549 if test "x$TOOLKIT" = "xMOTIF" ; then
48550 COND_TOOLKIT_MOTIF=""
48551 fi
48552
48553 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
48554 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
48555 COND_TOOLKIT_MOTIF_USE_GUI_1=""
48556 fi
48557
48558 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
48559 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48560 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
48561 fi
48562
48563 COND_TOOLKIT_MSW="#"
48564 if test "x$TOOLKIT" = "xMSW" ; then
48565 COND_TOOLKIT_MSW=""
48566 fi
48567
48568 COND_TOOLKIT_MSW_USE_GUI_1="#"
48569 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
48570 COND_TOOLKIT_MSW_USE_GUI_1=""
48571 fi
48572
48573 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
48574 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48575 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
48576 fi
48577
0ee4059d
DE
48578 COND_TOOLKIT_MSW_WXUNIV_0="#"
48579 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48580 COND_TOOLKIT_MSW_WXUNIV_0=""
48581 fi
48582
a848cd7e
SC
48583 COND_TOOLKIT_PM="#"
48584 if test "x$TOOLKIT" = "xPM" ; then
48585 COND_TOOLKIT_PM=""
48586 fi
48587
48588 COND_TOOLKIT_PM_USE_GUI_1="#"
48589 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
48590 COND_TOOLKIT_PM_USE_GUI_1=""
48591 fi
48592
48593 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
48594 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48595 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
48596 fi
48597
3fd9c298
DE
48598 COND_TOOLKIT_WINCE="#"
48599 if test "x$TOOLKIT" = "xWINCE" ; then
48600 COND_TOOLKIT_WINCE=""
48601 fi
48602
48603 COND_TOOLKIT_WINCE_USE_GUI_1="#"
48604 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
48605 COND_TOOLKIT_WINCE_USE_GUI_1=""
48606 fi
48607
48608 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
48609 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48610 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
48611 fi
48612
0ee4059d
DE
48613 COND_TOOLKIT_WINCE_WXUNIV_0="#"
48614 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
48615 COND_TOOLKIT_WINCE_WXUNIV_0=""
48616 fi
48617
a848cd7e
SC
48618 COND_TOOLKIT_X11="#"
48619 if test "x$TOOLKIT" = "xX11" ; then
48620 COND_TOOLKIT_X11=""
48621 fi
48622
48623 COND_TOOLKIT_X11_USE_GUI_1="#"
48624 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
48625 COND_TOOLKIT_X11_USE_GUI_1=""
48626 fi
48627
48628 COND_UNICODE_1="#"
48629 if test "x$UNICODE" = "x1" ; then
48630 COND_UNICODE_1=""
48631 fi
48632
48633 COND_USE_EXCEPTIONS_0="#"
48634 if test "x$USE_EXCEPTIONS" = "x0" ; then
48635 COND_USE_EXCEPTIONS_0=""
48636 fi
48637
48638 COND_USE_EXCEPTIONS_1="#"
48639 if test "x$USE_EXCEPTIONS" = "x1" ; then
48640 COND_USE_EXCEPTIONS_1=""
48641 fi
48642
48643 COND_USE_GUI_0="#"
48644 if test "x$USE_GUI" = "x0" ; then
48645 COND_USE_GUI_0=""
48646 fi
48647
48648 COND_USE_GUI_1="#"
48649 if test "x$USE_GUI" = "x1" ; then
48650 COND_USE_GUI_1=""
48651 fi
48652
48653 COND_USE_GUI_1_WXUNIV_0="#"
48654 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48655 COND_USE_GUI_1_WXUNIV_0=""
48656 fi
48657
48658 COND_USE_GUI_1_WXUNIV_1="#"
48659 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
48660 COND_USE_GUI_1_WXUNIV_1=""
48661 fi
48662
48663 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48664 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48665 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48666 fi
48667
48668 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48669 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48670 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48671 fi
48672
48673 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48674 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48675 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48676 fi
48677
083508af
MW
48678 COND_USE_ODBC_1="#"
48679 if test "x$USE_ODBC" = "x1" ; then
48680 COND_USE_ODBC_1=""
48681 fi
48682
48683 COND_USE_OPENGL_1="#"
48684 if test "x$USE_OPENGL" = "x1" ; then
48685 COND_USE_OPENGL_1=""
48686 fi
48687
f10e38c4
VZ
48688 COND_USE_PCH_1="#"
48689 if test "x$USE_PCH" = "x1" ; then
48690 COND_USE_PCH_1=""
48691 fi
48692
a848cd7e
SC
48693 COND_USE_PLUGINS_0="#"
48694 if test "x$USE_PLUGINS" = "x0" ; then
48695 COND_USE_PLUGINS_0=""
48696 fi
48697
0b78747f
MW
48698 COND_USE_RTTI_0="#"
48699 if test "x$USE_RTTI" = "x0" ; then
48700 COND_USE_RTTI_0=""
48701 fi
48702
48703 COND_USE_RTTI_1="#"
48704 if test "x$USE_RTTI" = "x1" ; then
48705 COND_USE_RTTI_1=""
48706 fi
48707
a848cd7e
SC
48708 COND_USE_SOSYMLINKS_1="#"
48709 if test "x$USE_SOSYMLINKS" = "x1" ; then
48710 COND_USE_SOSYMLINKS_1=""
48711 fi
48712
eb730a0c
JS
48713 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
48714 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48715 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
48716 fi
48717
a848cd7e
SC
48718 COND_USE_SOVERLINUX_1="#"
48719 if test "x$USE_SOVERLINUX" = "x1" ; then
48720 COND_USE_SOVERLINUX_1=""
48721 fi
48722
48723 COND_USE_SOVERSION_0="#"
48724 if test "x$USE_SOVERSION" = "x0" ; then
48725 COND_USE_SOVERSION_0=""
48726 fi
48727
48728 COND_USE_SOVERSOLARIS_1="#"
48729 if test "x$USE_SOVERSOLARIS" = "x1" ; then
48730 COND_USE_SOVERSOLARIS_1=""
48731 fi
48732
0b78747f
MW
48733 COND_USE_THREADS_0="#"
48734 if test "x$USE_THREADS" = "x0" ; then
48735 COND_USE_THREADS_0=""
48736 fi
48737
48738 COND_USE_THREADS_1="#"
48739 if test "x$USE_THREADS" = "x1" ; then
48740 COND_USE_THREADS_1=""
48741 fi
48742
a13a7f89
RL
48743 COND_USE_XRC_1="#"
48744 if test "x$USE_XRC" = "x1" ; then
48745 COND_USE_XRC_1=""
48746 fi
48747
eb730a0c
JS
48748 COND_WINDOWS_IMPLIB_1="#"
48749 if test "x$WINDOWS_IMPLIB" = "x1" ; then
48750 COND_WINDOWS_IMPLIB_1=""
48751 fi
48752
a848cd7e
SC
48753 COND_WITH_PLUGIN_SDL_1="#"
48754 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
48755 COND_WITH_PLUGIN_SDL_1=""
48756 fi
48757
1e6eb025
VZ
48758 COND_WXUNIV_0="#"
48759 if test "x$WXUNIV" = "x0" ; then
48760 COND_WXUNIV_0=""
48761 fi
48762
a848cd7e
SC
48763 COND_WXUNIV_1="#"
48764 if test "x$WXUNIV" = "x1" ; then
48765 COND_WXUNIV_1=""
48766 fi
48767
48768 COND_WXUSE_EXPAT_BUILTIN="#"
48769 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
48770 COND_WXUSE_EXPAT_BUILTIN=""
48771 fi
48772
48773 COND_WXUSE_LIBJPEG_BUILTIN="#"
48774 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48775 COND_WXUSE_LIBJPEG_BUILTIN=""
48776 fi
48777
48778 COND_WXUSE_LIBPNG_BUILTIN="#"
48779 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48780 COND_WXUSE_LIBPNG_BUILTIN=""
48781 fi
48782
48783 COND_WXUSE_LIBTIFF_BUILTIN="#"
48784 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48785 COND_WXUSE_LIBTIFF_BUILTIN=""
48786 fi
48787
48788 COND_WXUSE_ODBC_BUILTIN="#"
48789 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
48790 COND_WXUSE_ODBC_BUILTIN=""
48791 fi
48792
48793 COND_WXUSE_REGEX_BUILTIN="#"
48794 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
48795 COND_WXUSE_REGEX_BUILTIN=""
48796 fi
48797
48798 COND_WXUSE_ZLIB_BUILTIN="#"
48799 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
48800 COND_WXUSE_ZLIB_BUILTIN=""
48801 fi
48802
48803
48804
810b94f0
MW
48805 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
48806 { { 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
48807echo "$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;}
48808 { (exit 1); exit 1; }; }
48809 fi
48810
2057db16
VS
48811 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
48812 { { 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
48813echo "$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;}
48814 { (exit 1); exit 1; }; }
48815 fi
48816
a848cd7e 48817
7afc46ab
KO
48818
48819if test "$wxUSE_MAC" = 1 ; then
48820 if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
48821 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
48822 mv temp bk-deps
48823 chmod +x bk-deps
48824 fi
48825fi
48826
ceec2216
RL
48827if test "$wxUSE_SHARED" = "yes"; then
48828
48829 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
48830 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
48831
5b674b9d
DE
48832 case "${host}" in
48833 *-pc-os2_emx | *-pc-os2-emx )
48834 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48835 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48836 cp -p ${srcdir}/src/os2/dllnames.sh .
48837 cp -p ${srcdir}/src/os2/dllar.sh .
48838 ;;
48839 esac
ceec2216
RL
48840else
48841
48842 EXE_LINKER="$CXX -o"
48843
48844fi
69120ee4
VZ
48845if test "$wxUSE_OMF" = "yes"; then
48846 case "${host}" in
48847 *-pc-os2_emx | *-pc-os2-emx )
48848 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
48849 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48850 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48851 ;;
48852 esac
48853fi
a848cd7e 48854
c08ebc62 48855if test $GCC_PCH = 1 ; then
254e8e29 48856 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 48857fi
a848cd7e 48858
5ff751d6 48859WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
48860
48861SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
48862
48863
48864
48865
48866
48867
48868
48869
48870
48871
48872
48873
48874
48875
48876
48877
48878
48879
48880
48881
48882
48883
48884
48885
48886
48887
48888
48889
48890
48891
48892
48893
48894
48895
48896
48897
48898
48899
48900
48901
48902
48903
a848cd7e
SC
48904
48905
48906
48907
48908
48909
48910
48911
48912
48913
48914
48915
a848cd7e
SC
48916
48917
ddd14b14 48918
370d2fd7 48919
8ced02f6 48920
a848cd7e
SC
48921
48922
48923echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
48924echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 48925set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
48926if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
48927 echo $ECHO_N "(cached) $ECHO_C" >&6
48928else
48929 cat >conftest.make <<\_ACEOF
48930all:
48931 @echo 'ac_maketemp="$(MAKE)"'
48932_ACEOF
48933# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
48934eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
48935if test -n "$ac_maketemp"; then
48936 eval ac_cv_prog_make_${ac_make}_set=yes
48937else
48938 eval ac_cv_prog_make_${ac_make}_set=no
48939fi
48940rm -f conftest.make
48941fi
48942if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
48943 echo "$as_me:$LINENO: result: yes" >&5
48944echo "${ECHO_T}yes" >&6
48945 SET_MAKE=
48946else
48947 echo "$as_me:$LINENO: result: no" >&5
48948echo "${ECHO_T}no" >&6
48949 SET_MAKE="MAKE=${MAKE-make}"
48950fi
48951
48952
a848cd7e 48953
ceec2216
RL
48954 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
48955
a848cd7e 48956
5c60e845
MW
48957if test "$USE_WIN32" = 1; then
48958 ac_config_commands="$ac_config_commands
48959 rcdefs.h
48960 "
48961
48962fi
48963
ceec2216 48964 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 48965
a848cd7e 48966
ceec2216 48967 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 48968
ceec2216
RL
48969
48970 ac_config_files="$ac_config_files version-script Makefile"
48971
48972
5c60e845 48973 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
48974
48975
9103d280 48976
1c14217d 48977if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
48978if test "$wxUSE_GUI" = "yes"; then
48979 SUBDIRS="samples demos utils contrib"
48980else SUBDIRS="samples utils"
48981fi
48982
48983
48984
48985# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
48986if test "${with_cppunit_prefix+set}" = set; then
48987 withval="$with_cppunit_prefix"
48988 cppunit_config_prefix="$withval"
48989else
48990 cppunit_config_prefix=""
48991fi;
48992
48993# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
48994if test "${with_cppunit_exec_prefix+set}" = set; then
48995 withval="$with_cppunit_exec_prefix"
48996 cppunit_config_exec_prefix="$withval"
48997else
48998 cppunit_config_exec_prefix=""
48999fi;
49000
49001 if test x$cppunit_config_exec_prefix != x ; then
49002 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
49003 if test x${CPPUNIT_CONFIG+set} != xset ; then
49004 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
49005 fi
49006 fi
49007 if test x$cppunit_config_prefix != x ; then
49008 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
49009 if test x${CPPUNIT_CONFIG+set} != xset ; then
49010 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
49011 fi
49012 fi
49013
49014 # Extract the first word of "cppunit-config", so it can be a program name with args.
49015set dummy cppunit-config; ac_word=$2
49016echo "$as_me:$LINENO: checking for $ac_word" >&5
49017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49018if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
49019 echo $ECHO_N "(cached) $ECHO_C" >&6
49020else
49021 case $CPPUNIT_CONFIG in
49022 [\\/]* | ?:[\\/]*)
49023 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
49024 ;;
49025 *)
49026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49027for as_dir in $PATH
49028do
49029 IFS=$as_save_IFS
49030 test -z "$as_dir" && as_dir=.
49031 for ac_exec_ext in '' $ac_executable_extensions; do
49032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49033 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49035 break 2
49036 fi
49037done
49038done
49039
49040 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
49041 ;;
49042esac
49043fi
49044CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
49045
49046if test -n "$CPPUNIT_CONFIG"; then
49047 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
49048echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
49049else
49050 echo "$as_me:$LINENO: result: no" >&5
49051echo "${ECHO_T}no" >&6
49052fi
49053
49054 cppunit_version_min=1.8.0
49055
49056 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
49057echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
49058 no_cppunit=""
49059 if test "$CPPUNIT_CONFIG" = "no" ; then
49060 no_cppunit=yes
49061 else
49062 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
49063 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
49064 cppunit_version=`$CPPUNIT_CONFIG --version`
49065
49066 cppunit_major_version=`echo $cppunit_version | \
49067 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49068 cppunit_minor_version=`echo $cppunit_version | \
49069 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49070 cppunit_micro_version=`echo $cppunit_version | \
49071 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49072
49073 cppunit_major_min=`echo $cppunit_version_min | \
49074 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49075 cppunit_minor_min=`echo $cppunit_version_min | \
49076 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49077 cppunit_micro_min=`echo $cppunit_version_min | \
49078 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49079
49080 cppunit_version_proper=`expr \
49081 $cppunit_major_version \> $cppunit_major_min \| \
49082 $cppunit_major_version \= $cppunit_major_min \& \
49083 $cppunit_minor_version \> $cppunit_minor_min \| \
49084 $cppunit_major_version \= $cppunit_major_min \& \
49085 $cppunit_minor_version \= $cppunit_minor_min \& \
49086 $cppunit_micro_version \>= $cppunit_micro_min `
49087
49088 if test "$cppunit_version_proper" = "1" ; then
49089 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
49090echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
49091 else
49092 echo "$as_me:$LINENO: result: no" >&5
49093echo "${ECHO_T}no" >&6
49094 no_cppunit=yes
49095 fi
49096 fi
49097
49098 if test "x$no_cppunit" = x ; then
c2218763 49099 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
49100 else
49101 CPPUNIT_CFLAGS=""
49102 CPPUNIT_LIBS=""
c2218763 49103 :
a848cd7e
SC
49104 fi
49105
49106
49107
49108
49109
49110for subdir in `echo $SUBDIRS`; do
49111 if test -d ${srcdir}/${subdir} ; then
49112 if test "$wxUSE_GUI" = "yes"; then
49113 if test ${subdir} = "samples"; then
49114 makefiles="samples/Makefile.in $makefiles"
49115 for sample in `echo $SAMPLES_SUBDIRS`; do
49116 if test -d $srcdir/samples/$sample; then
49117 makefiles="samples/$sample/Makefile.in $makefiles"
49118 fi
49119 done
9c112555
MW
49120 else
49121 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
49122 eval "disabled=\$$disabled_var"
49123 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
49124 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
49125 fi
49126 else if test ${subdir} = "samples"; then
49127 makefiles="samples/Makefile.in samples/console/Makefile.in"
49128 elif test ${subdir} = "utils"; then
6537ccf8
VS
49129 makefiles=""
49130 for util in HelpGen tex2rtf ; do
49131 if test -d $srcdir/utils/$util ; then
49132 makefiles="utils/$util/Makefile.in \
49133 utils/$util/src/Makefile.in \
49134 $makefiles"
49135 fi
49136 done
a848cd7e
SC
49137 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
49138 fi
49139 fi
49140
49141 for mkin in $makefiles ; do
49142 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
49143 ac_config_files="$ac_config_files $mk"
49144
49145 done
49146 fi
49147done
1c14217d 49148fi
a848cd7e
SC
49149cat >confcache <<\_ACEOF
49150# This file is a shell script that caches the results of configure
49151# tests run on this system so they can be shared between configure
49152# scripts and configure runs, see configure's option --config-cache.
49153# It is not useful on other systems. If it contains results you don't
49154# want to keep, you may remove or edit it.
49155#
49156# config.status only pays attention to the cache file if you give it
49157# the --recheck option to rerun configure.
49158#
49159# `ac_cv_env_foo' variables (set or unset) will be overridden when
49160# loading this file, other *unset* `ac_cv_foo' will be assigned the
49161# following values.
49162
49163_ACEOF
49164
49165# The following way of writing the cache mishandles newlines in values,
49166# but we know of no workaround that is simple, portable, and efficient.
49167# So, don't put newlines in cache variables' values.
49168# Ultrix sh set writes to stderr and can't be redirected directly,
49169# and sets the high bit in the cache file unless we assign to the vars.
49170{
49171 (set) 2>&1 |
49172 case `(ac_space=' '; set | grep ac_space) 2>&1` in
49173 *ac_space=\ *)
49174 # `set' does not quote correctly, so add quotes (double-quote
49175 # substitution turns \\\\ into \\, and sed turns \\ into \).
49176 sed -n \
ac1cb8d3
VS
49177 "s/'/'\\\\''/g;
49178 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
49179 ;;
49180 *)
49181 # `set' quotes correctly as required by POSIX, so do not add quotes.
49182 sed -n \
ac1cb8d3 49183 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
49184 ;;
49185 esac;
49186} |
49187 sed '
49188 t clear
49189 : clear
49190 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49191 t end
49192 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49193 : end' >>confcache
49194if diff $cache_file confcache >/dev/null 2>&1; then :; else
49195 if test -w $cache_file; then
49196 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
49197 cat confcache >$cache_file
49198 else
49199 echo "not updating unwritable cache $cache_file"
49200 fi
49201fi
49202rm -f confcache
49203
49204test "x$prefix" = xNONE && prefix=$ac_default_prefix
49205# Let make expand exec_prefix.
49206test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49207
49208# VPATH may cause trouble with some makes, so we remove $(srcdir),
49209# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
49210# trailing colons and then remove the whole line if VPATH becomes empty
49211# (actually we leave an empty line to preserve line numbers).
49212if test "x$srcdir" = x.; then
ac1cb8d3 49213 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
49214s/:*\$(srcdir):*/:/;
49215s/:*\${srcdir}:*/:/;
49216s/:*@srcdir@:*/:/;
ac1cb8d3 49217s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 49218s/:*$//;
ac1cb8d3 49219s/^[^=]*=[ ]*$//;
a848cd7e
SC
49220}'
49221fi
49222
49223DEFS=-DHAVE_CONFIG_H
49224
49225ac_libobjs=
49226ac_ltlibobjs=
49227for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49228 # 1. Remove the extension, and $U if already installed.
49229 ac_i=`echo "$ac_i" |
ac1cb8d3 49230 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
49231 # 2. Add them.
49232 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
49233 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
49234done
49235LIBOBJS=$ac_libobjs
49236
49237LTLIBOBJS=$ac_ltlibobjs
49238
49239
49240
49241: ${CONFIG_STATUS=./config.status}
49242ac_clean_files_save=$ac_clean_files
49243ac_clean_files="$ac_clean_files $CONFIG_STATUS"
49244{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
49245echo "$as_me: creating $CONFIG_STATUS" >&6;}
49246cat >$CONFIG_STATUS <<_ACEOF
49247#! $SHELL
49248# Generated by $as_me.
49249# Run this file to recreate the current configuration.
49250# Compiler output produced by configure, useful for debugging
49251# configure, is in config.log if it exists.
49252
49253debug=false
49254ac_cs_recheck=false
49255ac_cs_silent=false
49256SHELL=\${CONFIG_SHELL-$SHELL}
49257_ACEOF
49258
49259cat >>$CONFIG_STATUS <<\_ACEOF
49260## --------------------- ##
49261## M4sh Initialization. ##
49262## --------------------- ##
49263
49264# Be Bourne compatible
49265if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
49266 emulate sh
49267 NULLCMD=:
49268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
49269 # is contrary to our usage. Disable this feature.
49270 alias -g '${1+"$@"}'='"$@"'
49271elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
49272 set -o posix
49273fi
ac1cb8d3 49274DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
49275
49276# Support unset when possible.
ac1cb8d3 49277if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
49278 as_unset=unset
49279else
49280 as_unset=false
49281fi
49282
49283
49284# Work around bugs in pre-3.0 UWIN ksh.
49285$as_unset ENV MAIL MAILPATH
49286PS1='$ '
49287PS2='> '
49288PS4='+ '
49289
49290# NLS nuisances.
49291for as_var in \
49292 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49293 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
49294 LC_TELEPHONE LC_TIME
49295do
ac1cb8d3 49296 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
49297 eval $as_var=C; export $as_var
49298 else
49299 $as_unset $as_var
49300 fi
49301done
49302
49303# Required to use basename.
49304if expr a : '\(a\)' >/dev/null 2>&1; then
49305 as_expr=expr
49306else
49307 as_expr=false
49308fi
49309
49310if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
49311 as_basename=basename
49312else
49313 as_basename=false
49314fi
49315
49316
49317# Name of the executable.
49318as_me=`$as_basename "$0" ||
49319$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
49320 X"$0" : 'X\(//\)$' \| \
49321 X"$0" : 'X\(/\)$' \| \
49322 . : '\(.\)' 2>/dev/null ||
49323echo X/"$0" |
49324 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
49325 /^X\/\(\/\/\)$/{ s//\1/; q; }
49326 /^X\/\(\/\).*/{ s//\1/; q; }
49327 s/.*/./; q'`
49328
49329
49330# PATH needs CR, and LINENO needs CR and PATH.
49331# Avoid depending upon Character Ranges.
49332as_cr_letters='abcdefghijklmnopqrstuvwxyz'
49333as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
49334as_cr_Letters=$as_cr_letters$as_cr_LETTERS
49335as_cr_digits='0123456789'
49336as_cr_alnum=$as_cr_Letters$as_cr_digits
49337
49338# The user is always right.
49339if test "${PATH_SEPARATOR+set}" != set; then
49340 echo "#! /bin/sh" >conf$$.sh
49341 echo "exit 0" >>conf$$.sh
49342 chmod +x conf$$.sh
49343 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49344 PATH_SEPARATOR=';'
49345 else
49346 PATH_SEPARATOR=:
49347 fi
49348 rm -f conf$$.sh
49349fi
49350
49351
49352 as_lineno_1=$LINENO
49353 as_lineno_2=$LINENO
49354 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49355 test "x$as_lineno_1" != "x$as_lineno_2" &&
49356 test "x$as_lineno_3" = "x$as_lineno_2" || {
49357 # Find who we are. Look in the path if we contain no path at all
49358 # relative or not.
49359 case $0 in
49360 *[\\/]* ) as_myself=$0 ;;
49361 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49362for as_dir in $PATH
49363do
49364 IFS=$as_save_IFS
49365 test -z "$as_dir" && as_dir=.
49366 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
49367done
49368
49369 ;;
49370 esac
49371 # We did not find ourselves, most probably we were run as `sh COMMAND'
49372 # in which case we are not to be found in the path.
49373 if test "x$as_myself" = x; then
49374 as_myself=$0
49375 fi
49376 if test ! -f "$as_myself"; then
49377 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
49378echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
49379 { (exit 1); exit 1; }; }
49380 fi
49381 case $CONFIG_SHELL in
49382 '')
49383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49384for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
49385do
49386 IFS=$as_save_IFS
49387 test -z "$as_dir" && as_dir=.
49388 for as_base in sh bash ksh sh5; do
49389 case $as_dir in
49390 /*)
49391 if ("$as_dir/$as_base" -c '
49392 as_lineno_1=$LINENO
49393 as_lineno_2=$LINENO
49394 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49395 test "x$as_lineno_1" != "x$as_lineno_2" &&
49396 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
49397 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
49398 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
49399 CONFIG_SHELL=$as_dir/$as_base
49400 export CONFIG_SHELL
49401 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
49402 fi;;
49403 esac
49404 done
49405done
49406;;
49407 esac
49408
49409 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
49410 # uniformly replaced by the line number. The first 'sed' inserts a
49411 # line-number line before each line; the second 'sed' does the real
49412 # work. The second script uses 'N' to pair each line-number line
49413 # with the numbered line, and appends trailing '-' during
49414 # substitution so that $LINENO is not a special case at line end.
49415 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
49416 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
49417 sed '=' <$as_myself |
49418 sed '
49419 N
49420 s,$,-,
49421 : loop
49422 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
49423 t loop
49424 s,-$,,
49425 s,^['$as_cr_digits']*\n,,
49426 ' >$as_me.lineno &&
49427 chmod +x $as_me.lineno ||
49428 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
49429echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
49430 { (exit 1); exit 1; }; }
49431
49432 # Don't try to exec as it changes $[0], causing all sort of problems
49433 # (the dirname of $[0] is not the place where we might find the
49434 # original and so on. Autoconf is especially sensible to this).
49435 . ./$as_me.lineno
49436 # Exit status is that of the last command.
49437 exit
49438}
49439
49440
49441case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
49442 *c*,-n*) ECHO_N= ECHO_C='
49443' ECHO_T=' ' ;;
49444 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
49445 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
49446esac
49447
49448if expr a : '\(a\)' >/dev/null 2>&1; then
49449 as_expr=expr
49450else
49451 as_expr=false
49452fi
49453
49454rm -f conf$$ conf$$.exe conf$$.file
49455echo >conf$$.file
49456if ln -s conf$$.file conf$$ 2>/dev/null; then
49457 # We could just check for DJGPP; but this test a) works b) is more generic
49458 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
49459 if test -f conf$$.exe; then
49460 # Don't use ln at all; we don't have any links
49461 as_ln_s='cp -p'
49462 else
49463 as_ln_s='ln -s'
49464 fi
49465elif ln conf$$.file conf$$ 2>/dev/null; then
49466 as_ln_s=ln
49467else
49468 as_ln_s='cp -p'
49469fi
49470rm -f conf$$ conf$$.exe conf$$.file
49471
49472if mkdir -p . 2>/dev/null; then
49473 as_mkdir_p=:
49474else
ac1cb8d3 49475 test -d ./-p && rmdir ./-p
a848cd7e
SC
49476 as_mkdir_p=false
49477fi
49478
49479as_executable_p="test -f"
49480
49481# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 49482as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
49483
49484# Sed expression to map a string onto a valid variable name.
ac1cb8d3 49485as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
49486
49487
49488# IFS
49489# We need space, tab and new line, in precisely that order.
49490as_nl='
49491'
49492IFS=" $as_nl"
49493
49494# CDPATH.
49495$as_unset CDPATH
49496
49497exec 6>&1
49498
49499# Open the log real soon, to keep \$[0] and so on meaningful, and to
49500# report actual input values of CONFIG_FILES etc. instead of their
49501# values after options handling. Logging --version etc. is OK.
49502exec 5>>config.log
49503{
49504 echo
49505 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
49506## Running $as_me. ##
49507_ASBOX
49508} >&5
49509cat >&5 <<_CSEOF
49510
dd8df4fc 49511This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 49512generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
49513
49514 CONFIG_FILES = $CONFIG_FILES
49515 CONFIG_HEADERS = $CONFIG_HEADERS
49516 CONFIG_LINKS = $CONFIG_LINKS
49517 CONFIG_COMMANDS = $CONFIG_COMMANDS
49518 $ $0 $@
49519
49520_CSEOF
49521echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
49522echo >&5
49523_ACEOF
49524
49525# Files that config.status was made for.
49526if test -n "$ac_config_files"; then
49527 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
49528fi
49529
49530if test -n "$ac_config_headers"; then
49531 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
49532fi
49533
49534if test -n "$ac_config_links"; then
49535 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
49536fi
49537
49538if test -n "$ac_config_commands"; then
49539 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
49540fi
49541
49542cat >>$CONFIG_STATUS <<\_ACEOF
49543
49544ac_cs_usage="\
49545\`$as_me' instantiates files from templates according to the
49546current configuration.
49547
49548Usage: $0 [OPTIONS] [FILE]...
49549
49550 -h, --help print this help, then exit
49551 -V, --version print version number, then exit
49552 -q, --quiet do not print progress messages
49553 -d, --debug don't remove temporary files
49554 --recheck update $as_me by reconfiguring in the same conditions
49555 --file=FILE[:TEMPLATE]
ac1cb8d3 49556 instantiate the configuration file FILE
a848cd7e 49557 --header=FILE[:TEMPLATE]
ac1cb8d3 49558 instantiate the configuration header FILE
a848cd7e
SC
49559
49560Configuration files:
49561$config_files
49562
49563Configuration headers:
49564$config_headers
49565
49566Configuration commands:
49567$config_commands
49568
49569Report bugs to <bug-autoconf@gnu.org>."
49570_ACEOF
49571
49572cat >>$CONFIG_STATUS <<_ACEOF
49573ac_cs_version="\\
dd8df4fc 49574wxWidgets config.status 2.7.0
ac1cb8d3 49575configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
49576 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
49577
ac1cb8d3 49578Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
49579This config.status script is free software; the Free Software Foundation
49580gives unlimited permission to copy, distribute and modify it."
49581srcdir=$srcdir
49582INSTALL="$INSTALL"
49583_ACEOF
49584
49585cat >>$CONFIG_STATUS <<\_ACEOF
49586# If no file are specified by the user, then we need to provide default
49587# value. By we need to know if files were specified by the user.
49588ac_need_defaults=:
49589while test $# != 0
49590do
49591 case $1 in
49592 --*=*)
49593 ac_option=`expr "x$1" : 'x\([^=]*\)='`
49594 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
49595 ac_shift=:
49596 ;;
49597 -*)
49598 ac_option=$1
49599 ac_optarg=$2
49600 ac_shift=shift
49601 ;;
49602 *) # This is not an option, so the user has probably given explicit
49603 # arguments.
49604 ac_option=$1
49605 ac_need_defaults=false;;
49606 esac
49607
49608 case $ac_option in
49609 # Handling of the options.
49610_ACEOF
49611cat >>$CONFIG_STATUS <<\_ACEOF
49612 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
49613 ac_cs_recheck=: ;;
49614 --version | --vers* | -V )
49615 echo "$ac_cs_version"; exit 0 ;;
49616 --he | --h)
49617 # Conflict between --help and --header
49618 { { echo "$as_me:$LINENO: error: ambiguous option: $1
49619Try \`$0 --help' for more information." >&5
49620echo "$as_me: error: ambiguous option: $1
49621Try \`$0 --help' for more information." >&2;}
49622 { (exit 1); exit 1; }; };;
49623 --help | --hel | -h )
49624 echo "$ac_cs_usage"; exit 0 ;;
49625 --debug | --d* | -d )
49626 debug=: ;;
49627 --file | --fil | --fi | --f )
49628 $ac_shift
49629 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
49630 ac_need_defaults=false;;
49631 --header | --heade | --head | --hea )
49632 $ac_shift
49633 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
49634 ac_need_defaults=false;;
49635 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
49636 | -silent | --silent | --silen | --sile | --sil | --si | --s)
49637 ac_cs_silent=: ;;
49638
49639 # This is an error.
49640 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
49641Try \`$0 --help' for more information." >&5
49642echo "$as_me: error: unrecognized option: $1
49643Try \`$0 --help' for more information." >&2;}
49644 { (exit 1); exit 1; }; } ;;
49645
49646 *) ac_config_targets="$ac_config_targets $1" ;;
49647
49648 esac
49649 shift
49650done
49651
49652ac_configure_extra_args=
49653
49654if $ac_cs_silent; then
49655 exec 6>/dev/null
49656 ac_configure_extra_args="$ac_configure_extra_args --silent"
49657fi
49658
49659_ACEOF
49660cat >>$CONFIG_STATUS <<_ACEOF
49661if \$ac_cs_recheck; then
49662 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
49663 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
49664fi
49665
49666_ACEOF
49667
49668cat >>$CONFIG_STATUS <<_ACEOF
49669#
49670# INIT-COMMANDS section.
49671#
49672
5c60e845
MW
49673
49674 CPP="$CPP"
49675 infile="$srcdir/include/wx/msw/genrcdefs.h"
49676 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
49677
49678
ceec2216
RL
49679 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49680 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49681 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49682 LN_S="${LN_S}"
a848cd7e
SC
49683
49684
49685_ACEOF
49686
49687
49688
49689cat >>$CONFIG_STATUS <<\_ACEOF
49690for ac_config_target in $ac_config_targets
49691do
49692 case "$ac_config_target" in
49693 # Handling of arguments.
ceec2216
RL
49694 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
49695 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
49696 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
49697 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
49698 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 49699 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
49700 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
49701 "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
49702 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
49703echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
49704 { (exit 1); exit 1; }; };;
49705 esac
49706done
49707
49708# If the user did not use the arguments to specify the items to instantiate,
49709# then the envvar interface is used. Set only those that are not.
49710# We use the long form for the default assignment because of an extremely
49711# bizarre bug on SunOS 4.1.3.
49712if $ac_need_defaults; then
49713 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
49714 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
49715 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
49716fi
49717
49718# Have a temporary directory for convenience. Make it in the build tree
49719# simply because there is no reason to put it here, and in addition,
49720# creating and moving files from /tmp can sometimes cause problems.
49721# Create a temporary directory, and hook for its removal unless debugging.
49722$debug ||
49723{
49724 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
49725 trap '{ (exit 1); exit 1; }' 1 2 13 15
49726}
49727
49728# Create a (secure) tmp directory for tmp files.
49729
49730{
49731 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
49732 test -n "$tmp" && test -d "$tmp"
49733} ||
49734{
49735 tmp=./confstat$$-$RANDOM
49736 (umask 077 && mkdir $tmp)
49737} ||
49738{
49739 echo "$me: cannot create a temporary directory in ." >&2
49740 { (exit 1); exit 1; }
49741}
49742
49743_ACEOF
49744
49745cat >>$CONFIG_STATUS <<_ACEOF
49746
49747#
49748# CONFIG_FILES section.
49749#
49750
49751# No need to generate the scripts if there are no CONFIG_FILES.
49752# This happens for instance when ./config.status config.h
49753if test -n "\$CONFIG_FILES"; then
49754 # Protect against being on the right side of a sed subst in config.status.
49755 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
49756 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
49757s,@SHELL@,$SHELL,;t t
49758s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
49759s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
49760s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
49761s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
49762s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
49763s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
49764s,@exec_prefix@,$exec_prefix,;t t
49765s,@prefix@,$prefix,;t t
49766s,@program_transform_name@,$program_transform_name,;t t
49767s,@bindir@,$bindir,;t t
49768s,@sbindir@,$sbindir,;t t
49769s,@libexecdir@,$libexecdir,;t t
49770s,@datadir@,$datadir,;t t
49771s,@sysconfdir@,$sysconfdir,;t t
49772s,@sharedstatedir@,$sharedstatedir,;t t
49773s,@localstatedir@,$localstatedir,;t t
49774s,@libdir@,$libdir,;t t
49775s,@includedir@,$includedir,;t t
49776s,@oldincludedir@,$oldincludedir,;t t
49777s,@infodir@,$infodir,;t t
49778s,@mandir@,$mandir,;t t
49779s,@build_alias@,$build_alias,;t t
49780s,@host_alias@,$host_alias,;t t
49781s,@target_alias@,$target_alias,;t t
49782s,@DEFS@,$DEFS,;t t
49783s,@ECHO_C@,$ECHO_C,;t t
49784s,@ECHO_N@,$ECHO_N,;t t
49785s,@ECHO_T@,$ECHO_T,;t t
49786s,@LIBS@,$LIBS,;t t
49787s,@build@,$build,;t t
49788s,@build_cpu@,$build_cpu,;t t
49789s,@build_vendor@,$build_vendor,;t t
49790s,@build_os@,$build_os,;t t
49791s,@host@,$host,;t t
49792s,@host_cpu@,$host_cpu,;t t
49793s,@host_vendor@,$host_vendor,;t t
49794s,@host_os@,$host_os,;t t
49795s,@target@,$target,;t t
49796s,@target_cpu@,$target_cpu,;t t
49797s,@target_vendor@,$target_vendor,;t t
49798s,@target_os@,$target_os,;t t
49799s,@CC@,$CC,;t t
49800s,@CFLAGS@,$CFLAGS,;t t
49801s,@LDFLAGS@,$LDFLAGS,;t t
49802s,@CPPFLAGS@,$CPPFLAGS,;t t
49803s,@ac_ct_CC@,$ac_ct_CC,;t t
49804s,@EXEEXT@,$EXEEXT,;t t
49805s,@OBJEXT@,$OBJEXT,;t t
49806s,@CPP@,$CPP,;t t
49807s,@EGREP@,$EGREP,;t t
49808s,@CXX@,$CXX,;t t
49809s,@CXXFLAGS@,$CXXFLAGS,;t t
49810s,@ac_ct_CXX@,$ac_ct_CXX,;t t
49811s,@RANLIB@,$RANLIB,;t t
49812s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
49813s,@AR@,$AR,;t t
8c80d384 49814s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
49815s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
49816s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
49817s,@INSTALL_DATA@,$INSTALL_DATA,;t t
49818s,@STRIP@,$STRIP,;t t
8c80d384 49819s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
49820s,@WINDRES@,$WINDRES,;t t
49821s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
49822s,@DLLTOOL@,$DLLTOOL,;t t
49823s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
49824s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
49825s,@LN_S@,$LN_S,;t t
49826s,@CXXCPP@,$CXXCPP,;t t
49827s,@subdirs@,$subdirs,;t t
49828s,@PKG_CONFIG@,$PKG_CONFIG,;t t
49829s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
49830s,@GTK_LIBS@,$GTK_LIBS,;t t
49831s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
49832s,@X_CFLAGS@,$X_CFLAGS,;t t
49833s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
49834s,@X_LIBS@,$X_LIBS,;t t
49835s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
49836s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
49837s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
49838s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
49839s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
49840s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
49841s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 49842s,@REZ@,$REZ,;t t
a848cd7e
SC
49843s,@DEREZ@,$DEREZ,;t t
49844s,@SETFILE@,$SETFILE,;t t
49845s,@LIBICONV@,$LIBICONV,;t t
49846s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
49847s,@SDL_CONFIG@,$SDL_CONFIG,;t t
49848s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
49849s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
49850s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
49851s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
2b850ae1
RR
49852s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
49853s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
3565d135
RR
49854s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
49855s,@HILDON_LIBS@,$HILDON_LIBS,;t t
f10e38c4
VZ
49856s,@GST_CFLAGS@,$GST_CFLAGS,;t t
49857s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
49858s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
49859s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
49860s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
49861s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
49862s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
49863s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
49864s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
49865s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
49866s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
49867s,@VENDOR@,$VENDOR,;t t
49868s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
49869s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
49870s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
49871s,@WXUNIV@,$WXUNIV,;t t
49872s,@MONOLITHIC@,$MONOLITHIC,;t t
49873s,@USE_PLUGINS@,$USE_PLUGINS,;t t
49874s,@EXTRALIBS@,$EXTRALIBS,;t t
49875s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
49876s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
49877s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
49878s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
49879s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
49880s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
49881s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 49882s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
2b850ae1 49883s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
3565d135 49884s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
49885s,@UNICODE@,$UNICODE,;t t
49886s,@BUILD@,$BUILD,;t t
49887s,@DEBUG_INFO@,$DEBUG_INFO,;t t
49888s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
49889s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
49890s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
49891s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
49892s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
49893s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
49894s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
49895s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
49896s,@SET_MAKE@,$SET_MAKE,;t t
49897s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
49898s,@NM@,$NM,;t t
49899s,@ac_ct_NM@,$ac_ct_NM,;t t
49900s,@INSTALL_DIR@,$INSTALL_DIR,;t t
49901s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
49902s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
49903s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
49904s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
49905s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 49906s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
49907s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
49908s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 49909s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
49910s,@SO_SUFFIX@,$SO_SUFFIX,;t t
49911s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
49912s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
49913s,@LIBPREFIX@,$LIBPREFIX,;t t
49914s,@LIBEXT@,$LIBEXT,;t t
49915s,@DLLPREFIX@,$DLLPREFIX,;t t
49916s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 49917s,@dlldir@,$dlldir,;t t
a848cd7e
SC
49918s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
49919s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
49920s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
49921s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
49922s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
49923s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 49924s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
49925s,@USE_SOVERSION@,$USE_SOVERSION,;t t
49926s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
49927s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 49928s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
49929s,@USE_MACVERSION@,$USE_MACVERSION,;t t
49930s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
49931s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49932s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
49933s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 49934s,@ICC_PCH@,$ICC_PCH,;t t
a848cd7e
SC
49935s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
49936s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
49937s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
49938s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
49939s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
49940s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
49941s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
49942s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
49943s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
49944s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
49945s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
49946s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
49947s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
49948s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
49949s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 49950s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
49951s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
49952s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
3f60522a 49953s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
a848cd7e 49954s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 49955s,@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 49956s,@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 49957s,@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 49958s,@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 49959s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8b6682b9 49960s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
ceec2216 49961s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e 49962s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
3f60522a 49963s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
a848cd7e 49964s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 49965s,@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 49966s,@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 49967s,@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 49968s,@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 49969s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
8b6682b9 49970s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
ceec2216 49971s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 49972s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
49973s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
49974s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
49975s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
49976s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
49977s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
49978s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 49979s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
49980s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
49981s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 49982s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
49983s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
49984s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
49985s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 49986s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 49987s,@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
49988s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
49989s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
49990s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
49991s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 49992s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 49993s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 49994s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 49995s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
49996s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
49997s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
49998s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
49999s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
50000s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
50001s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
50002s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
50003s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
50004s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
50005s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
50006s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
50007s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
50008s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
50009s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
50010s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 50011s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
50012s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
50013s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
50014s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
50015s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
50016s,@COND_SHARED_1@,$COND_SHARED_1,;t t
50017s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 50018s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 50019s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 50020s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 50021s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
50022s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
50023s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
50024s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
50025s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
50026s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
50027s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
50028s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
50029s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 50030s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
50031s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
50032s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
50033s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
50034s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
50035s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
50036s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
50037s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
50038s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
50039s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
50040s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
50041s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 50042s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
50043s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
50044s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
50045s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
50046s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
50047s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
50048s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 50049s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
50050s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
50051s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
50052s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
50053s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
50054s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
50055s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
50056s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
50057s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
50058s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
50059s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
50060s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
50061s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
50062s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
50063s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 50064s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 50065s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
50066s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
50067s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 50068s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 50069s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
50070s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
50071s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
50072s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
50073s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
50074s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 50075s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 50076s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 50077s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 50078s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
50079s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
50080s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
50081s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
50082s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
50083s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
50084s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
50085s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
50086s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 50087s,@SHARED@,$SHARED,;t t
a848cd7e
SC
50088s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
50089s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
50090s,@USE_GUI@,$USE_GUI,;t t
50091s,@AFMINSTALL@,$AFMINSTALL,;t t
50092s,@WIN32INSTALL@,$WIN32INSTALL,;t t
50093s,@TOOLKIT@,$TOOLKIT,;t t
50094s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 50095s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 50096s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 50097s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
50098s,@WIDGET_SET@,$WIDGET_SET,;t t
50099s,@WX_RELEASE@,$WX_RELEASE,;t t
50100s,@WX_VERSION@,$WX_VERSION,;t t
50101s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
50102s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
50103s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
50104s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
50105s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
50106s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
50107s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
50108s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
50109s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 50110s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 50111s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 50112s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
50113s,@DISTDIR@,$DISTDIR,;t t
50114s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
50115s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
50116s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
50117s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
50118s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 50119s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
50120s,@RESFLAGS@,$RESFLAGS,;t t
50121s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
50122s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
50123s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
50124s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 50125s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 50126s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 50127s,@GCC@,$GCC,;t t
a848cd7e
SC
50128s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
50129s,@LIBOBJS@,$LIBOBJS,;t t
50130s,@LTLIBOBJS@,$LTLIBOBJS,;t t
50131CEOF
50132
50133_ACEOF
50134
50135 cat >>$CONFIG_STATUS <<\_ACEOF
50136 # Split the substitutions into bite-sized pieces for seds with
50137 # small command number limits, like on Digital OSF/1 and HP-UX.
50138 ac_max_sed_lines=48
50139 ac_sed_frag=1 # Number of current file.
50140 ac_beg=1 # First line for current file.
50141 ac_end=$ac_max_sed_lines # Line after last line for current file.
50142 ac_more_lines=:
50143 ac_sed_cmds=
50144 while $ac_more_lines; do
50145 if test $ac_beg -gt 1; then
50146 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50147 else
50148 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50149 fi
50150 if test ! -s $tmp/subs.frag; then
50151 ac_more_lines=false
50152 else
50153 # The purpose of the label and of the branching condition is to
50154 # speed up the sed processing (if there are no `@' at all, there
50155 # is no need to browse any of the substitutions).
50156 # These are the two extra sed commands mentioned above.
50157 (echo ':t
50158 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
50159 if test -z "$ac_sed_cmds"; then
ac1cb8d3 50160 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 50161 else
ac1cb8d3 50162 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
50163 fi
50164 ac_sed_frag=`expr $ac_sed_frag + 1`
50165 ac_beg=$ac_end
50166 ac_end=`expr $ac_end + $ac_max_sed_lines`
50167 fi
50168 done
50169 if test -z "$ac_sed_cmds"; then
50170 ac_sed_cmds=cat
50171 fi
50172fi # test -n "$CONFIG_FILES"
50173
50174_ACEOF
50175cat >>$CONFIG_STATUS <<\_ACEOF
50176for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
50177 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50178 case $ac_file in
50179 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
50180 cat >$tmp/stdin
50181 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50182 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 50183 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 50184 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
50185 * ) ac_file_in=$ac_file.in ;;
50186 esac
50187
50188 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
50189 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50190$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50191 X"$ac_file" : 'X\(//\)[^/]' \| \
50192 X"$ac_file" : 'X\(//\)$' \| \
50193 X"$ac_file" : 'X\(/\)' \| \
50194 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50195echo X"$ac_file" |
50196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50197 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50198 /^X\(\/\/\)$/{ s//\1/; q; }
50199 /^X\(\/\).*/{ s//\1/; q; }
50200 s/.*/./; q'`
50201 { if $as_mkdir_p; then
50202 mkdir -p "$ac_dir"
50203 else
50204 as_dir="$ac_dir"
50205 as_dirs=
50206 while test ! -d "$as_dir"; do
50207 as_dirs="$as_dir $as_dirs"
50208 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50209$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50210 X"$as_dir" : 'X\(//\)[^/]' \| \
50211 X"$as_dir" : 'X\(//\)$' \| \
50212 X"$as_dir" : 'X\(/\)' \| \
50213 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50214echo X"$as_dir" |
50215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50216 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50217 /^X\(\/\/\)$/{ s//\1/; q; }
50218 /^X\(\/\).*/{ s//\1/; q; }
50219 s/.*/./; q'`
50220 done
50221 test ! -n "$as_dirs" || mkdir $as_dirs
50222 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50223echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50224 { (exit 1); exit 1; }; }; }
50225
50226 ac_builddir=.
50227
50228if test "$ac_dir" != .; then
50229 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50230 # A "../" for each directory in $ac_dir_suffix.
50231 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50232else
50233 ac_dir_suffix= ac_top_builddir=
50234fi
50235
50236case $srcdir in
50237 .) # No --srcdir option. We are building in place.
50238 ac_srcdir=.
50239 if test -z "$ac_top_builddir"; then
50240 ac_top_srcdir=.
50241 else
50242 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50243 fi ;;
50244 [\\/]* | ?:[\\/]* ) # Absolute path.
50245 ac_srcdir=$srcdir$ac_dir_suffix;
50246 ac_top_srcdir=$srcdir ;;
50247 *) # Relative path.
50248 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50249 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50250esac
ac1cb8d3
VS
50251
50252# Do not use `cd foo && pwd` to compute absolute paths, because
50253# the directories may not exist.
50254case `pwd` in
50255.) ac_abs_builddir="$ac_dir";;
50256*)
50257 case "$ac_dir" in
50258 .) ac_abs_builddir=`pwd`;;
50259 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50260 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50261 esac;;
50262esac
50263case $ac_abs_builddir in
50264.) ac_abs_top_builddir=${ac_top_builddir}.;;
50265*)
50266 case ${ac_top_builddir}. in
50267 .) ac_abs_top_builddir=$ac_abs_builddir;;
50268 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50269 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50270 esac;;
50271esac
50272case $ac_abs_builddir in
50273.) ac_abs_srcdir=$ac_srcdir;;
50274*)
50275 case $ac_srcdir in
50276 .) ac_abs_srcdir=$ac_abs_builddir;;
50277 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50278 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50279 esac;;
50280esac
50281case $ac_abs_builddir in
50282.) ac_abs_top_srcdir=$ac_top_srcdir;;
50283*)
50284 case $ac_top_srcdir in
50285 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50286 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50287 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50288 esac;;
50289esac
a848cd7e
SC
50290
50291
50292 case $INSTALL in
50293 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
50294 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
50295 esac
50296
3f60522a
JS
50297 if test x"$ac_file" != x-; then
50298 { echo "$as_me:$LINENO: creating $ac_file" >&5
50299echo "$as_me: creating $ac_file" >&6;}
50300 rm -f "$ac_file"
50301 fi
a848cd7e
SC
50302 # Let's still pretend it is `configure' which instantiates (i.e., don't
50303 # use $as_me), people would be surprised to read:
50304 # /* config.h. Generated by config.status. */
50305 if test x"$ac_file" = x-; then
50306 configure_input=
50307 else
50308 configure_input="$ac_file. "
50309 fi
50310 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 50311 sed 's,.*/,,'` by configure."
a848cd7e
SC
50312
50313 # First look for the input files in the build tree, otherwise in the
50314 # src tree.
50315 ac_file_inputs=`IFS=:
50316 for f in $ac_file_in; do
50317 case $f in
50318 -) echo $tmp/stdin ;;
50319 [\\/$]*)
ac1cb8d3
VS
50320 # Absolute (can't be DOS-style, as IFS=:)
50321 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50322echo "$as_me: error: cannot find input file: $f" >&2;}
50323 { (exit 1); exit 1; }; }
ac1cb8d3 50324 echo "$f";;
a848cd7e 50325 *) # Relative
ac1cb8d3
VS
50326 if test -f "$f"; then
50327 # Build tree
50328 echo "$f"
50329 elif test -f "$srcdir/$f"; then
50330 # Source tree
50331 echo "$srcdir/$f"
50332 else
50333 # /dev/null tree
50334 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50335echo "$as_me: error: cannot find input file: $f" >&2;}
50336 { (exit 1); exit 1; }; }
ac1cb8d3 50337 fi;;
a848cd7e
SC
50338 esac
50339 done` || { (exit 1); exit 1; }
50340_ACEOF
50341cat >>$CONFIG_STATUS <<_ACEOF
50342 sed "$ac_vpsub
50343$extrasub
50344_ACEOF
50345cat >>$CONFIG_STATUS <<\_ACEOF
50346:t
50347/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50348s,@configure_input@,$configure_input,;t t
50349s,@srcdir@,$ac_srcdir,;t t
50350s,@abs_srcdir@,$ac_abs_srcdir,;t t
50351s,@top_srcdir@,$ac_top_srcdir,;t t
50352s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
50353s,@builddir@,$ac_builddir,;t t
50354s,@abs_builddir@,$ac_abs_builddir,;t t
50355s,@top_builddir@,$ac_top_builddir,;t t
50356s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
50357s,@INSTALL@,$ac_INSTALL,;t t
50358" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
50359 rm -f $tmp/stdin
50360 if test x"$ac_file" != x-; then
50361 mv $tmp/out $ac_file
50362 else
50363 cat $tmp/out
50364 rm -f $tmp/out
50365 fi
50366
ceec2216
RL
50367 # Run the commands associated with the file.
50368 case $ac_file in
50369 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
50370 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
50371 esac
a848cd7e
SC
50372done
50373_ACEOF
50374cat >>$CONFIG_STATUS <<\_ACEOF
50375
50376#
50377# CONFIG_HEADER section.
50378#
50379
50380# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
50381# NAME is the cpp macro being defined and VALUE is the value it is being given.
50382#
50383# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
50384ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
50385ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
50386ac_dC=' '
50387ac_dD=',;t'
50388# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 50389ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
50390ac_uB='$,\1#\2define\3'
50391ac_uC=' '
50392ac_uD=',;t'
50393
50394for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
50395 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50396 case $ac_file in
50397 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
50398 cat >$tmp/stdin
50399 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50400 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 50401 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 50402 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
50403 * ) ac_file_in=$ac_file.in ;;
50404 esac
50405
50406 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
50407echo "$as_me: creating $ac_file" >&6;}
50408
50409 # First look for the input files in the build tree, otherwise in the
50410 # src tree.
50411 ac_file_inputs=`IFS=:
50412 for f in $ac_file_in; do
50413 case $f in
50414 -) echo $tmp/stdin ;;
50415 [\\/$]*)
ac1cb8d3
VS
50416 # Absolute (can't be DOS-style, as IFS=:)
50417 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50418echo "$as_me: error: cannot find input file: $f" >&2;}
50419 { (exit 1); exit 1; }; }
ac1cb8d3
VS
50420 # Do quote $f, to prevent DOS paths from being IFS'd.
50421 echo "$f";;
a848cd7e 50422 *) # Relative
ac1cb8d3
VS
50423 if test -f "$f"; then
50424 # Build tree
50425 echo "$f"
50426 elif test -f "$srcdir/$f"; then
50427 # Source tree
50428 echo "$srcdir/$f"
50429 else
50430 # /dev/null tree
50431 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50432echo "$as_me: error: cannot find input file: $f" >&2;}
50433 { (exit 1); exit 1; }; }
ac1cb8d3 50434 fi;;
a848cd7e
SC
50435 esac
50436 done` || { (exit 1); exit 1; }
50437 # Remove the trailing spaces.
ac1cb8d3 50438 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
50439
50440_ACEOF
50441
50442# Transform confdefs.h into two sed scripts, `conftest.defines' and
50443# `conftest.undefs', that substitutes the proper values into
50444# config.h.in to produce config.h. The first handles `#define'
50445# templates, and the second `#undef' templates.
50446# And first: Protect against being on the right side of a sed subst in
50447# config.status. Protect against being in an unquoted here document
50448# in config.status.
50449rm -f conftest.defines conftest.undefs
50450# Using a here document instead of a string reduces the quoting nightmare.
50451# Putting comments in sed scripts is not portable.
50452#
50453# `end' is used to avoid that the second main sed command (meant for
50454# 0-ary CPP macros) applies to n-ary macro definitions.
50455# See the Autoconf documentation for `clear'.
50456cat >confdef2sed.sed <<\_ACEOF
50457s/[\\&,]/\\&/g
50458s,[\\$`],\\&,g
50459t clear
50460: clear
ac1cb8d3 50461s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 50462t end
ac1cb8d3 50463s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
50464: end
50465_ACEOF
50466# If some macros were called several times there might be several times
50467# the same #defines, which is useless. Nevertheless, we may not want to
50468# sort them, since we want the *last* AC-DEFINE to be honored.
50469uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
50470sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
50471rm -f confdef2sed.sed
50472
50473# This sed command replaces #undef with comments. This is necessary, for
50474# example, in the case of _POSIX_SOURCE, which is predefined and required
50475# on some systems where configure will not decide to define it.
50476cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 50477s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
50478_ACEOF
50479
50480# Break up conftest.defines because some shells have a limit on the size
50481# of here documents, and old seds have small limits too (100 cmds).
50482echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 50483echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
50484echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
50485echo ' :' >>$CONFIG_STATUS
50486rm -f conftest.tail
50487while grep . conftest.defines >/dev/null
50488do
50489 # Write a limited-size here document to $tmp/defines.sed.
50490 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
50491 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 50492 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
50493 # Work around the forget-to-reset-the-flag bug.
50494 echo 't clr' >>$CONFIG_STATUS
50495 echo ': clr' >>$CONFIG_STATUS
50496 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
50497 echo 'CEOF
50498 sed -f $tmp/defines.sed $tmp/in >$tmp/out
50499 rm -f $tmp/in
50500 mv $tmp/out $tmp/in
50501' >>$CONFIG_STATUS
50502 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
50503 rm -f conftest.defines
50504 mv conftest.tail conftest.defines
50505done
50506rm -f conftest.defines
50507echo ' fi # grep' >>$CONFIG_STATUS
50508echo >>$CONFIG_STATUS
50509
50510# Break up conftest.undefs because some shells have a limit on the size
50511# of here documents, and old seds have small limits too (100 cmds).
50512echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
50513rm -f conftest.tail
50514while grep . conftest.undefs >/dev/null
50515do
50516 # Write a limited-size here document to $tmp/undefs.sed.
50517 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
50518 # Speed up: don't consider the non `#undef'
ac1cb8d3 50519 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
50520 # Work around the forget-to-reset-the-flag bug.
50521 echo 't clr' >>$CONFIG_STATUS
50522 echo ': clr' >>$CONFIG_STATUS
50523 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
50524 echo 'CEOF
50525 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
50526 rm -f $tmp/in
50527 mv $tmp/out $tmp/in
50528' >>$CONFIG_STATUS
50529 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
50530 rm -f conftest.undefs
50531 mv conftest.tail conftest.undefs
50532done
50533rm -f conftest.undefs
50534
50535cat >>$CONFIG_STATUS <<\_ACEOF
50536 # Let's still pretend it is `configure' which instantiates (i.e., don't
50537 # use $as_me), people would be surprised to read:
50538 # /* config.h. Generated by config.status. */
50539 if test x"$ac_file" = x-; then
50540 echo "/* Generated by configure. */" >$tmp/config.h
50541 else
50542 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
50543 fi
50544 cat $tmp/in >>$tmp/config.h
50545 rm -f $tmp/in
50546 if test x"$ac_file" != x-; then
50547 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
50548 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
50549echo "$as_me: $ac_file is unchanged" >&6;}
50550 else
50551 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50552$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50553 X"$ac_file" : 'X\(//\)[^/]' \| \
50554 X"$ac_file" : 'X\(//\)$' \| \
50555 X"$ac_file" : 'X\(/\)' \| \
50556 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50557echo X"$ac_file" |
50558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50559 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50560 /^X\(\/\/\)$/{ s//\1/; q; }
50561 /^X\(\/\).*/{ s//\1/; q; }
50562 s/.*/./; q'`
50563 { if $as_mkdir_p; then
50564 mkdir -p "$ac_dir"
50565 else
50566 as_dir="$ac_dir"
50567 as_dirs=
50568 while test ! -d "$as_dir"; do
50569 as_dirs="$as_dir $as_dirs"
50570 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50571$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50572 X"$as_dir" : 'X\(//\)[^/]' \| \
50573 X"$as_dir" : 'X\(//\)$' \| \
50574 X"$as_dir" : 'X\(/\)' \| \
50575 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50576echo X"$as_dir" |
50577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50578 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50579 /^X\(\/\/\)$/{ s//\1/; q; }
50580 /^X\(\/\).*/{ s//\1/; q; }
50581 s/.*/./; q'`
50582 done
50583 test ! -n "$as_dirs" || mkdir $as_dirs
50584 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50585echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50586 { (exit 1); exit 1; }; }; }
50587
50588 rm -f $ac_file
50589 mv $tmp/config.h $ac_file
50590 fi
50591 else
50592 cat $tmp/config.h
50593 rm -f $tmp/config.h
50594 fi
50595done
50596_ACEOF
50597cat >>$CONFIG_STATUS <<\_ACEOF
50598
50599#
50600# CONFIG_COMMANDS section.
50601#
50602for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
50603 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
50604 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
50605 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
50606$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50607 X"$ac_dest" : 'X\(//\)[^/]' \| \
50608 X"$ac_dest" : 'X\(//\)$' \| \
50609 X"$ac_dest" : 'X\(/\)' \| \
50610 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50611echo X"$ac_dest" |
50612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50613 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50614 /^X\(\/\/\)$/{ s//\1/; q; }
50615 /^X\(\/\).*/{ s//\1/; q; }
50616 s/.*/./; q'`
ac1cb8d3
VS
50617 { if $as_mkdir_p; then
50618 mkdir -p "$ac_dir"
50619 else
50620 as_dir="$ac_dir"
50621 as_dirs=
50622 while test ! -d "$as_dir"; do
50623 as_dirs="$as_dir $as_dirs"
50624 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50625$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50626 X"$as_dir" : 'X\(//\)[^/]' \| \
50627 X"$as_dir" : 'X\(//\)$' \| \
50628 X"$as_dir" : 'X\(/\)' \| \
50629 . : '\(.\)' 2>/dev/null ||
50630echo X"$as_dir" |
50631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50632 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50633 /^X\(\/\/\)$/{ s//\1/; q; }
50634 /^X\(\/\).*/{ s//\1/; q; }
50635 s/.*/./; q'`
50636 done
50637 test ! -n "$as_dirs" || mkdir $as_dirs
50638 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50639echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50640 { (exit 1); exit 1; }; }; }
50641
a848cd7e
SC
50642 ac_builddir=.
50643
50644if test "$ac_dir" != .; then
50645 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50646 # A "../" for each directory in $ac_dir_suffix.
50647 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50648else
50649 ac_dir_suffix= ac_top_builddir=
50650fi
50651
50652case $srcdir in
50653 .) # No --srcdir option. We are building in place.
50654 ac_srcdir=.
50655 if test -z "$ac_top_builddir"; then
50656 ac_top_srcdir=.
50657 else
50658 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50659 fi ;;
50660 [\\/]* | ?:[\\/]* ) # Absolute path.
50661 ac_srcdir=$srcdir$ac_dir_suffix;
50662 ac_top_srcdir=$srcdir ;;
50663 *) # Relative path.
50664 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50665 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50666esac
ac1cb8d3
VS
50667
50668# Do not use `cd foo && pwd` to compute absolute paths, because
50669# the directories may not exist.
50670case `pwd` in
50671.) ac_abs_builddir="$ac_dir";;
50672*)
50673 case "$ac_dir" in
50674 .) ac_abs_builddir=`pwd`;;
50675 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50676 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50677 esac;;
50678esac
50679case $ac_abs_builddir in
50680.) ac_abs_top_builddir=${ac_top_builddir}.;;
50681*)
50682 case ${ac_top_builddir}. in
50683 .) ac_abs_top_builddir=$ac_abs_builddir;;
50684 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50685 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50686 esac;;
50687esac
50688case $ac_abs_builddir in
50689.) ac_abs_srcdir=$ac_srcdir;;
50690*)
50691 case $ac_srcdir in
50692 .) ac_abs_srcdir=$ac_abs_builddir;;
50693 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50694 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50695 esac;;
50696esac
50697case $ac_abs_builddir in
50698.) ac_abs_top_srcdir=$ac_top_srcdir;;
50699*)
50700 case $ac_top_srcdir in
50701 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50702 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50703 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50704 esac;;
50705esac
a848cd7e
SC
50706
50707
50708 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
50709echo "$as_me: executing $ac_dest commands" >&6;}
50710 case $ac_dest in
5c60e845
MW
50711 rcdefs.h )
50712 mkdir -p $outdir &&
50713 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
50714 ;;
ceec2216
RL
50715 wx-config ) rm -f wx-config
50716 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
50717 ;;
a848cd7e
SC
50718 esac
50719done
50720_ACEOF
50721
50722cat >>$CONFIG_STATUS <<\_ACEOF
50723
50724{ (exit 0); exit 0; }
50725_ACEOF
50726chmod +x $CONFIG_STATUS
50727ac_clean_files=$ac_clean_files_save
50728
50729
50730# configure is writing to config.log, and then calls config.status.
50731# config.status does its own redirection, appending to config.log.
50732# Unfortunately, on DOS this fails, as config.log is still kept open
50733# by configure, so config.status won't be able to write to it; its
50734# output is simply discarded. So we exec the FD to /dev/null,
50735# effectively closing config.log, so it can be properly (re)opened and
50736# appended to by config.status. When coming back to configure, we
50737# need to make the FD available again.
50738if test "$no_create" != yes; then
50739 ac_cs_success=:
50740 ac_config_status_args=
50741 test "$silent" = yes &&
50742 ac_config_status_args="$ac_config_status_args --quiet"
50743 exec 5>/dev/null
50744 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
50745 exec 5>>config.log
50746 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
50747 # would make configure fail if this is the last instruction.
50748 $ac_cs_success || { (exit 1); exit 1; }
50749fi
50750
50751#
50752# CONFIG_SUBDIRS section.
50753#
50754if test "$no_recursion" != yes; then
50755
50756 # Remove --cache-file and --srcdir arguments so they do not pile up.
50757 ac_sub_configure_args=
50758 ac_prev=
50759 for ac_arg in $ac_configure_args; do
50760 if test -n "$ac_prev"; then
50761 ac_prev=
50762 continue
50763 fi
50764 case $ac_arg in
50765 -cache-file | --cache-file | --cache-fil | --cache-fi \
50766 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
50767 ac_prev=cache_file ;;
50768 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
50769 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
50770 | --c=*)
50771 ;;
50772 --config-cache | -C)
50773 ;;
50774 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
50775 ac_prev=srcdir ;;
50776 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
50777 ;;
50778 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
50779 ac_prev=prefix ;;
50780 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
50781 ;;
50782 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
50783 esac
50784 done
50785
50786 # Always prepend --prefix to ensure using the same prefix
50787 # in subdir configurations.
50788 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
50789
50790 ac_popdir=`pwd`
50791 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
50792
50793 # Do not complain, so a configure script can configure whichever
50794 # parts of a large source tree are present.
50795 test -d $srcdir/$ac_dir || continue
50796
50797 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
50798echo "$as_me: configuring in $ac_dir" >&6;}
50799 { if $as_mkdir_p; then
50800 mkdir -p "$ac_dir"
50801 else
50802 as_dir="$ac_dir"
50803 as_dirs=
50804 while test ! -d "$as_dir"; do
50805 as_dirs="$as_dir $as_dirs"
50806 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50807$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50808 X"$as_dir" : 'X\(//\)[^/]' \| \
50809 X"$as_dir" : 'X\(//\)$' \| \
50810 X"$as_dir" : 'X\(/\)' \| \
50811 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50812echo X"$as_dir" |
50813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50814 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50815 /^X\(\/\/\)$/{ s//\1/; q; }
50816 /^X\(\/\).*/{ s//\1/; q; }
50817 s/.*/./; q'`
50818 done
50819 test ! -n "$as_dirs" || mkdir $as_dirs
50820 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50821echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50822 { (exit 1); exit 1; }; }; }
50823
50824 ac_builddir=.
50825
50826if test "$ac_dir" != .; then
50827 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50828 # A "../" for each directory in $ac_dir_suffix.
50829 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50830else
50831 ac_dir_suffix= ac_top_builddir=
50832fi
50833
50834case $srcdir in
50835 .) # No --srcdir option. We are building in place.
50836 ac_srcdir=.
50837 if test -z "$ac_top_builddir"; then
50838 ac_top_srcdir=.
50839 else
50840 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50841 fi ;;
50842 [\\/]* | ?:[\\/]* ) # Absolute path.
50843 ac_srcdir=$srcdir$ac_dir_suffix;
50844 ac_top_srcdir=$srcdir ;;
50845 *) # Relative path.
50846 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50847 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50848esac
ac1cb8d3
VS
50849
50850# Do not use `cd foo && pwd` to compute absolute paths, because
50851# the directories may not exist.
50852case `pwd` in
50853.) ac_abs_builddir="$ac_dir";;
50854*)
50855 case "$ac_dir" in
50856 .) ac_abs_builddir=`pwd`;;
50857 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50858 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50859 esac;;
50860esac
50861case $ac_abs_builddir in
50862.) ac_abs_top_builddir=${ac_top_builddir}.;;
50863*)
50864 case ${ac_top_builddir}. in
50865 .) ac_abs_top_builddir=$ac_abs_builddir;;
50866 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50867 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50868 esac;;
50869esac
50870case $ac_abs_builddir in
50871.) ac_abs_srcdir=$ac_srcdir;;
50872*)
50873 case $ac_srcdir in
50874 .) ac_abs_srcdir=$ac_abs_builddir;;
50875 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50876 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50877 esac;;
50878esac
50879case $ac_abs_builddir in
50880.) ac_abs_top_srcdir=$ac_top_srcdir;;
50881*)
50882 case $ac_top_srcdir in
50883 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50884 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50885 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50886 esac;;
50887esac
a848cd7e
SC
50888
50889
50890 cd $ac_dir
50891
50892 # Check for guested configure; otherwise get Cygnus style configure.
50893 if test -f $ac_srcdir/configure.gnu; then
50894 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
50895 elif test -f $ac_srcdir/configure; then
50896 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
50897 elif test -f $ac_srcdir/configure.in; then
50898 ac_sub_configure=$ac_configure
50899 else
50900 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
50901echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
50902 ac_sub_configure=
50903 fi
50904
50905 # The recursion is here.
50906 if test -n "$ac_sub_configure"; then
50907 # Make the cache file name correct relative to the subdirectory.
50908 case $cache_file in
50909 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
50910 *) # Relative path.
ac1cb8d3 50911 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
50912 esac
50913
50914 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
50915echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
50916 # The eval makes quoting arguments work.
50917 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
50918 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
50919 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
50920echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
50921 { (exit 1); exit 1; }; }
50922 fi
50923
3f60522a 50924 cd $ac_popdir
a848cd7e
SC
50925 done
50926fi
50927
50928
50929echo
77ffb593 50930echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 50931echo ""
4d4ff94c 50932echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 50933echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 50934
77ffb593
JS
50935echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
50936echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
50937echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 50938
77ffb593 50939echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
50940echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
50941echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 50942
77ffb593 50943echo " Which libraries should wxWidgets use?"
a848cd7e
SC
50944echo " jpeg ${wxUSE_LIBJPEG-none}"
50945echo " png ${wxUSE_LIBPNG-none}"
50946echo " regex ${wxUSE_REGEX}"
50947echo " tiff ${wxUSE_LIBTIFF-none}"
50948if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
50949echo " xpm ${wxUSE_LIBXPM-none}"
50950fi
50951echo " zlib ${wxUSE_ZLIB}"
50952echo " odbc ${wxUSE_ODBC}"
50953echo " expat ${wxUSE_EXPAT}"
50954echo " libmspack ${wxUSE_LIBMSPACK}"
50955echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 50956echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
2b850ae1 50957echo " gnomevfs ${wxUSE_LIBGNOMEVFS-none}"
3565d135 50958echo " hildon ${wxUSE_LIBHILDON-none}"
a848cd7e
SC
50959
50960echo ""
50961