]> git.saurik.com Git - wxWidgets.git/blame - configure
Change wxFSFile::DetachStream to NULL the m_Stream member. Add SetStream().
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
f1e3914f 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.7.1.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
f1e3914f
RR
273PACKAGE_VERSION='2.7.1'
274PACKAGE_STRING='wxWidgets 2.7.1'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
64b75e64 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG ac_pt_PKG_CONFIG DIRECTFB_CFLAGS DIRECTFB_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS CAIRO_CFLAGS CAIRO_LIBS GST_CFLAGS GST_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT EXTRALIBS_GNOMEVFS EXTRALIBS_HILDON UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH ICC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_ICC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_MEDIA_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_0 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_DFB COND_TOOLKIT_DFB_USE_GUI_1 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PCH_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
3ecd9f92
MW
789ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
790ac_env_PKG_CONFIG_value=$PKG_CONFIG
791ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
792ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
b3c86150
VS
793ac_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
794ac_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
795ac_cv_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
796ac_cv_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
797ac_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
798ac_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
799ac_cv_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
800ac_cv_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
3ecd9f92
MW
801ac_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
802ac_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
803ac_cv_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
804ac_cv_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
805ac_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
806ac_env_PANGOX_LIBS_value=$PANGOX_LIBS
807ac_cv_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
808ac_cv_env_PANGOX_LIBS_value=$PANGOX_LIBS
809ac_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
810ac_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
811ac_cv_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
812ac_cv_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
813ac_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
814ac_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
815ac_cv_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
816ac_cv_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
817ac_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
818ac_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
819ac_cv_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
820ac_cv_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
821ac_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
822ac_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
823ac_cv_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
824ac_cv_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
825ac_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
826ac_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
827ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
828ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
829ac_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
830ac_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
831ac_cv_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
832ac_cv_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
833ac_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
834ac_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
835ac_cv_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
836ac_cv_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
837ac_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
838ac_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
839ac_cv_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
840ac_cv_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
841ac_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
842ac_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
843ac_cv_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
844ac_cv_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
845ac_env_HILDON_LIBS_set=${HILDON_LIBS+set}
846ac_env_HILDON_LIBS_value=$HILDON_LIBS
847ac_cv_env_HILDON_LIBS_set=${HILDON_LIBS+set}
848ac_cv_env_HILDON_LIBS_value=$HILDON_LIBS
64b75e64
RD
849ac_env_CAIRO_CFLAGS_set=${CAIRO_CFLAGS+set}
850ac_env_CAIRO_CFLAGS_value=$CAIRO_CFLAGS
851ac_cv_env_CAIRO_CFLAGS_set=${CAIRO_CFLAGS+set}
852ac_cv_env_CAIRO_CFLAGS_value=$CAIRO_CFLAGS
853ac_env_CAIRO_LIBS_set=${CAIRO_LIBS+set}
854ac_env_CAIRO_LIBS_value=$CAIRO_LIBS
855ac_cv_env_CAIRO_LIBS_set=${CAIRO_LIBS+set}
856ac_cv_env_CAIRO_LIBS_value=$CAIRO_LIBS
3ecd9f92
MW
857ac_env_GST_CFLAGS_set=${GST_CFLAGS+set}
858ac_env_GST_CFLAGS_value=$GST_CFLAGS
859ac_cv_env_GST_CFLAGS_set=${GST_CFLAGS+set}
860ac_cv_env_GST_CFLAGS_value=$GST_CFLAGS
861ac_env_GST_LIBS_set=${GST_LIBS+set}
862ac_env_GST_LIBS_value=$GST_LIBS
863ac_cv_env_GST_LIBS_set=${GST_LIBS+set}
864ac_cv_env_GST_LIBS_value=$GST_LIBS
a848cd7e
SC
865
866#
867# Report the --help message.
868#
869if test "$ac_init_help" = "long"; then
870 # Omit some internal or obsolete options to make the list less imposing.
871 # This message is too long to be a string in the A/UX 3.1 sh.
872 cat <<_ACEOF
f1e3914f 873\`configure' configures wxWidgets 2.7.1 to adapt to many kinds of systems.
a848cd7e
SC
874
875Usage: $0 [OPTION]... [VAR=VALUE]...
876
877To assign environment variables (e.g., CC, CFLAGS...), specify them as
878VAR=VALUE. See below for descriptions of some of the useful variables.
879
880Defaults for the options are specified in brackets.
881
882Configuration:
883 -h, --help display this help and exit
884 --help=short display options specific to this package
885 --help=recursive display the short help of all the included packages
886 -V, --version display version information and exit
887 -q, --quiet, --silent do not print \`checking...' messages
888 --cache-file=FILE cache test results in FILE [disabled]
889 -C, --config-cache alias for \`--cache-file=config.cache'
890 -n, --no-create do not create output files
891 --srcdir=DIR find the sources in DIR [configure dir or \`..']
892
893_ACEOF
894
895 cat <<_ACEOF
896Installation directories:
897 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 898 [$ac_default_prefix]
a848cd7e 899 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 900 [PREFIX]
a848cd7e
SC
901
902By default, \`make install' will install all the files in
903\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
904an installation prefix other than \`$ac_default_prefix' using \`--prefix',
905for instance \`--prefix=\$HOME'.
906
907For better control, use the options below.
908
909Fine tuning of the installation directories:
910 --bindir=DIR user executables [EPREFIX/bin]
911 --sbindir=DIR system admin executables [EPREFIX/sbin]
912 --libexecdir=DIR program executables [EPREFIX/libexec]
913 --datadir=DIR read-only architecture-independent data [PREFIX/share]
914 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
915 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
916 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
917 --libdir=DIR object code libraries [EPREFIX/lib]
918 --includedir=DIR C header files [PREFIX/include]
919 --oldincludedir=DIR C header files for non-gcc [/usr/include]
920 --infodir=DIR info documentation [PREFIX/info]
921 --mandir=DIR man documentation [PREFIX/man]
922_ACEOF
923
924 cat <<\_ACEOF
925
926X features:
927 --x-includes=DIR X include files are in DIR
928 --x-libraries=DIR X library files are in DIR
929
930System types:
931 --build=BUILD configure for building on BUILD [guessed]
932 --host=HOST cross-compile to build programs to run on HOST [BUILD]
933 --target=TARGET configure for building compilers for TARGET [HOST]
934_ACEOF
935fi
936
937if test -n "$ac_init_help"; then
938 case $ac_init_help in
f1e3914f 939 short | recursive ) echo "Configuration of wxWidgets 2.7.1:";;
a848cd7e
SC
940 esac
941 cat <<\_ACEOF
942
943Optional Features:
944 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
945 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
946 --enable-gui use GUI classes
77ffb593
JS
947 --enable-monolithic build wxWidgets as single library
948 --enable-plugins build parts of wxWidgets as loadable components
949 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 950 --enable-nanox use NanoX
f34ca037 951 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
952 --enable-gpe use GNOME PDA Environment features if possible
953 --enable-shared create shared library code
954 --enable-optimise create optimised code
955 --enable-debug same as debug_flag and debug_info
956 --enable-stl use STL for containers
957 --enable-omf use OMF object format
958 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
959 --enable-debug_info create code with debugging information
960 --enable-debug_gdb create code with extra GDB debugging information
961 --enable-debug_cntxt use wxDebugContext
962 --enable-mem_tracing create code with memory tracing
963 --enable-profile create code with profiling information
964 --enable-no_rtti create code without RTTI information
965 --enable-no_exceptions create code without C++ exceptions handling
966 --enable-permissive compile code disregarding strict ANSI
967 --enable-no_deps create code without dependency information
95768535 968 --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working)
dee1a63f
MB
969 --enable-compat24 enable wxWidgets 2.4 compatibility
970 --disable-compat26 disable wxWidgets 2.6 compatibility
ffa0583f 971 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
972 --enable-intl use internationalization system
973 --enable-config use wxConfig (and derived) classes
974 --enable-protocols use wxProtocol and derived classes
975 --enable-ftp use wxFTP (requires wxProtocol
976 --enable-http use wxHTTP (requires wxProtocol
977 --enable-fileproto use wxFileProto class (requires wxProtocol
978 --enable-sockets use socket/network classes
979 --enable-ole use OLE classes (Win32 only)
980 --enable-dataobj use data object classes
981 --enable-ipc use interprocess communication (wxSocket etc.)
982 --enable-apple_ieee use the Apple IEEE codec
81f90336 983 --enable-arcstream use wxArchive streams
f8f6c91a 984 --enable-backingfile use wxBackingFile
eaff0f0d 985 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 986 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
987 --enable-cmdline use wxCmdLineParser class
988 --enable-datetime use wxDateTime class
36b6448c 989 --enable-debugreport use wxDebugReport class
a848cd7e
SC
990 --enable-dialupman use dialup network classes
991 --enable-dynlib use wxLibrary class for DLL loading
992 --enable-dynamicloader use (new) wxDynamicLibrary class
993 --enable-exceptions build exception-safe library
994 --enable-ffile use wxFFile class
995 --enable-file use wxFile class
996 --enable-filesystem use virtual file systems classes
997 --enable-fontmap use font encodings conversion classes
998 --enable-fs_inet use virtual HTTP/FTP filesystems
999 --enable-fs_zip use virtual ZIP filesystems
1000 --enable-geometry use geometry class
1001 --enable-log use logging system
1002 --enable-longlong use wxLongLong class
1003 --enable-mimetype use wxMimeTypesManager
1004 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
1005 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 1006 --enable-std_iostreams use standard C++ stream classes
59746b65 1007 --enable-std_string use standard C++ string classes
07158944 1008 --enable-stdpaths use wxStandardPaths class
a848cd7e 1009 --enable-stopwatch use wxStopWatch class
07158944 1010 --enable-streams use wxStream etc classes
a848cd7e
SC
1011 --enable-sysoptions use wxSystemOptions
1012 --enable-textbuf use wxTextBuffer class
1013 --enable-textfile use wxTextFile class
1014 --enable-timer use wxTimer class
1015 --enable-unicode compile wxString with Unicode support
1016 --enable-sound use wxSound class
3b57de8b 1017 --enable-mediactrl use wxMediaCtrl class
15291213 1018 --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
8b6682b9 1019 --enable-printfposparam use wxVsnprintf() which supports positional parameters
81f90336 1020 --enable-zipstream use wxZip streams
a848cd7e 1021 --enable-url use wxURL class
ca5c6ac3 1022 --enable-variant use wxVariant class
a848cd7e
SC
1023 --enable-protocol use wxProtocol class
1024 --enable-protocol-http HTTP support in wxProtocol
1025 --enable-protocol-ftp FTP support in wxProtocol
1026 --enable-protocol-file FILE support in wxProtocol
1027 --enable-threads use threads
1028 --enable-docview use document view architecture
1029 --enable-help use help subsystem
1030 --enable-mshtmlhelp use MS HTML Help (win32)
1031 --enable-html use wxHTML sub-library
1032 --enable-htmlhelp use wxHTML-based help
9a8f0513 1033 --enable-xrc use XRC resources sub-library
3f60522a 1034 --enable-aui use AUI docking library
a848cd7e
SC
1035 --enable-constraints use layout-constraints system
1036 --enable-printarch use printing architecture
1037 --enable-mdi use multiple document interface architecture
8a7b1113 1038 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
1039 --enable-loggui use standard GUI logger
1040 --enable-logwin use wxLogWindow
1041 --enable-logdialog use wxLogDialog
646b6ec1 1042 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 1043 --enable-richtext use wxRichTextCtrl
f43426c1 1044 --enable-graphics_ctx use graphics context 2D drawing API
a848cd7e
SC
1045 --enable-postscript use wxPostscriptDC device context (default for gtk+)
1046 --enable-prologio not available; see contrib
1047 --enable-resources not available; see contrib
1048 --enable-clipboard use wxClipboard class
1049 --enable-dnd use Drag'n'Drop classes
1050 --enable-metafile use win32 metafiles
1051 --enable-controls use all usual controls
1052 --enable-accel use accelerators
3ea50042 1053 --enable-animatectrl use wxAnimationCtrl class
a848cd7e
SC
1054 --enable-button use wxButton class
1055 --enable-bmpbutton use wxBitmapButton class
95a46303 1056 --enable-bmpcombobox use wxBitmapComboBox class
a848cd7e
SC
1057 --enable-calendar use wxCalendarCtrl class
1058 --enable-caret use wxCaret class
1059 --enable-checkbox use wxCheckBox class
1060 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
1061 --enable-choice use wxChoice class
92bbdbcd 1062 --enable-choicebook use wxChoicebook class
e9263684 1063 --enable-colourpicker use wxColourPickerCtrl class
a848cd7e 1064 --enable-combobox use wxComboBox class
a57d600f 1065 --enable-comboctrl use wxComboCtrl class
da98e9be 1066 --enable-datepick use wxDatePickerCtrl class
e9263684 1067 --enable-dirpicker use wxDirPickerCtrl class
a848cd7e 1068 --enable-display use wxDisplay class
88bbc332 1069 --enable-detect_sm use code to detect X11 session manager
e9263684
VZ
1070 --enable-filepicker use wxFilePickerCtrl class
1071 --enable-fontpicker use wxFontPickerCtrl class
a848cd7e
SC
1072 --enable-gauge use wxGauge class
1073 --enable-grid use wxGrid class
20e34ecc 1074 --enable-dataviewctrl, use wxDataViewCtrl class
6954625c 1075 --enable-hyperlink use wxHyperlinkCtrl class
a848cd7e
SC
1076 --enable-imaglist use wxImageList class
1077 --enable-listbook use wxListbook class
1078 --enable-listbox use wxListBox class
1079 --enable-listctrl use wxListCtrl class
1080 --enable-notebook use wxNotebook class
a57d600f 1081 --enable-odcombobox use wxOwnerDrawnComboBox class
a848cd7e
SC
1082 --enable-radiobox use wxRadioBox class
1083 --enable-radiobtn use wxRadioButton class
1084 --enable-sash use wxSashWindow class
1085 --enable-scrollbar use wxScrollBar class and scrollable windows
1086 --enable-slider use wxSlider class
1087 --enable-spinbtn use wxSpinButton class
1088 --enable-spinctrl use wxSpinCtrl class
1089 --enable-splitter use wxSplitterWindow class
1090 --enable-statbmp use wxStaticBitmap class
1091 --enable-statbox use wxStaticBox class
1092 --enable-statline use wxStaticLine class
1093 --enable-stattext use wxStaticText class
1094 --enable-statusbar use wxStatusBar class
1095 --enable-tabdialog use wxTabControl class
1096 --enable-textctrl use wxTextCtrl class
1097 --enable-togglebtn use wxToggleButton class
1098 --enable-toolbar use wxToolBar class
1099 --enable-tbarnative use native wxToolBar class
0093c2fc 1100 --enable-treebook use wxTreebook class
5ec3bc43 1101 --enable-toolbook use wxToolbook class
a848cd7e
SC
1102 --enable-treectrl use wxTreeCtrl class
1103 --enable-tipwindow use wxTipWindow class
1104 --enable-popupwin use wxPopUpWindow class
1105 --enable-commondlg use all common dialogs
319c5ed4 1106 --enable-aboutdlg use wxAboutBox
a848cd7e
SC
1107 --enable-choicedlg use wxChoiceDialog
1108 --enable-coldlg use wxColourDialog
1109 --enable-filedlg use wxFileDialog
1110 --enable-finddlg use wxFindReplaceDialog
1111 --enable-fontdlg use wxFontDialog
1112 --enable-dirdlg use wxDirDialog
1113 --enable-msgdlg use wxMessageDialog
1114 --enable-numberdlg use wxNumberEntryDialog
1115 --enable-splash use wxSplashScreen
1116 --enable-textdlg use wxTextDialog
1117 --enable-tipdlg use startup tips
1118 --enable-progressdlg use wxProgressDialog
1119 --enable-wizarddlg use wxWizard
1120 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1121 --enable-miniframe use wxMiniFrame class
1122 --enable-tooltips use wxToolTip class
1123 --enable-splines use spline drawing code
fbe2ca43 1124 --enable-mousewheel use mousewheel
a848cd7e
SC
1125 --enable-validators use wxValidator and derived classes
1126 --enable-busyinfo use wxBusyInfo
4cb1d3da 1127 --enable-joystick use wxJoystick
38b4a946 1128 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1129 --enable-dragimage use wxDragImage
1130 --enable-accessibility enable accessibility support
38b4a946 1131 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1132 --enable-palette use wxPalette class
1133 --enable-image use wxImage class
1134 --enable-gif use gif images (GIF file format)
1135 --enable-pcx use pcx images (PCX file format)
1136 --enable-iff use iff images (IFF file format)
1137 --enable-pnm use pnm images (PNM file format)
1138 --enable-xpm use xpm images (XPM file format)
1139 --enable-icocur use Windows ICO and CUR formats
77ffb593 1140 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1141 --enable-vendor=VENDOR vendor name (win32 DLL only)
1142 --disable-largefile omit support for large files
1143 --disable-gtktest do not try to compile and run a test GTK+ program
1144 --disable-gtktest Do not try to compile and run a test GTK program
1145 --disable-sdltest Do not try to compile and run a test SDL program
1146 --enable-omf use OMF object format (OS/2)
f10e38c4
VZ
1147 --disable-dependency-tracking
1148 don't use dependency tracking even if the compiler
1149 can
ebee3cd0
VS
1150 --disable-precomp-headers
1151 don't use precompiled headers even if compiler can
a848cd7e
SC
1152
1153Optional Packages:
1154 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1155 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1156 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1157 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1158 --with-motif use Motif/Lesstif
1159 --with-mac use Mac OS X
1160 --with-cocoa use Cocoa
1161 --with-wine use Wine
1162 --with-msw use MS-Windows
1163 --with-pm use OS/2 Presentation Manager
1164 --with-mgl use SciTech MGL
b3c86150 1165 --with-directfb use DirectFB
a848cd7e
SC
1166 --with-microwin use MicroWindows
1167 --with-x11 use X11
1168 --with-libpng use libpng (PNG image format)
1169 --with-libjpeg use libjpeg (JPEG file format)
1170 --with-libtiff use libtiff (TIFF file format)
1171 --with-libxpm use libxpm (XPM file format)
1172 --with-libmspack use libmspack (CHM help files loading)
1173 --with-sdl use SDL for audio on Unix
2b850ae1
RR
1174 --with-gnomeprint use GNOME print for printing under GNOME
1175 --with-gnomevfs use GNOME VFS for associating MIME types
3565d135 1176 --with-hildon use Hildon framework for Nokia 770
a848cd7e 1177 --with-opengl use OpenGL (or Mesa)
4353a8df 1178 --with-themes=all|list use only the specified comma-separated list of wxUniversal themes
a848cd7e
SC
1179 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1180 --with-regex enable support for wxRegEx class
1181 --with-zlib use zlib for LZW compression
1182 --with-odbc use the IODBC and wxODBC classes
1183 --with-expat enable XML support using expat parser
ceec2216 1184 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1185 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1186 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1187 --with-x use the X Window System
1188 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1189 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1190 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1191 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1192 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1193
1194Some influential environment variables:
dcc1b6ad
VS
1195 CC C compiler command
1196 CFLAGS C compiler flags
1197 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1198 nonstandard directory <lib dir>
1199 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1200 headers in a nonstandard directory <include dir>
1201 CPP C preprocessor
1202 CXX C++ compiler command
1203 CXXFLAGS C++ compiler flags
1204 CXXCPP C++ preprocessor
3ecd9f92 1205 PKG_CONFIG path to pkg-config utility
b3c86150
VS
1206 DIRECTFB_CFLAGS
1207 C compiler flags for DIRECTFB, overriding pkg-config
1208 DIRECTFB_LIBS
1209 linker flags for DIRECTFB, overriding pkg-config
3ecd9f92
MW
1210 PANGOX_CFLAGS
1211 C compiler flags for PANGOX, overriding pkg-config
1212 PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1213 PANGOFT2_CFLAGS
1214 C compiler flags for PANGOFT2, overriding pkg-config
1215 PANGOFT2_LIBS
1216 linker flags for PANGOFT2, overriding pkg-config
1217 PANGOXFT_CFLAGS
1218 C compiler flags for PANGOXFT, overriding pkg-config
1219 PANGOXFT_LIBS
1220 linker flags for PANGOXFT, overriding pkg-config
1221 LIBGNOMEPRINTUI_CFLAGS
1222 C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1223 LIBGNOMEPRINTUI_LIBS
1224 linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1225 GNOMEVFS_CFLAGS
1226 C compiler flags for GNOMEVFS, overriding pkg-config
1227 GNOMEVFS_LIBS
1228 linker flags for GNOMEVFS, overriding pkg-config
1229 HILDON_CFLAGS
1230 C compiler flags for HILDON, overriding pkg-config
1231 HILDON_LIBS linker flags for HILDON, overriding pkg-config
64b75e64
RD
1232 CAIRO_CFLAGS
1233 C compiler flags for CAIRO, overriding pkg-config
1234 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
3ecd9f92
MW
1235 GST_CFLAGS C compiler flags for GST, overriding pkg-config
1236 GST_LIBS linker flags for GST, overriding pkg-config
a848cd7e
SC
1237
1238Use these variables to override the choices made by `configure' or to help
1239it to find libraries and programs with nonstandard names/locations.
1240
77ffb593 1241Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1242_ACEOF
1243fi
1244
1245if test "$ac_init_help" = "recursive"; then
1246 # If there are subdirs, report their specific --help.
1247 ac_popdir=`pwd`
1248 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1249 test -d $ac_dir || continue
1250 ac_builddir=.
1251
1252if test "$ac_dir" != .; then
1253 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1254 # A "../" for each directory in $ac_dir_suffix.
1255 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1256else
1257 ac_dir_suffix= ac_top_builddir=
1258fi
1259
1260case $srcdir in
1261 .) # No --srcdir option. We are building in place.
1262 ac_srcdir=.
1263 if test -z "$ac_top_builddir"; then
1264 ac_top_srcdir=.
1265 else
1266 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1267 fi ;;
1268 [\\/]* | ?:[\\/]* ) # Absolute path.
1269 ac_srcdir=$srcdir$ac_dir_suffix;
1270 ac_top_srcdir=$srcdir ;;
1271 *) # Relative path.
1272 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1273 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1274esac
ac1cb8d3
VS
1275
1276# Do not use `cd foo && pwd` to compute absolute paths, because
1277# the directories may not exist.
1278case `pwd` in
1279.) ac_abs_builddir="$ac_dir";;
1280*)
1281 case "$ac_dir" in
1282 .) ac_abs_builddir=`pwd`;;
1283 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1284 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1285 esac;;
1286esac
1287case $ac_abs_builddir in
1288.) ac_abs_top_builddir=${ac_top_builddir}.;;
1289*)
1290 case ${ac_top_builddir}. in
1291 .) ac_abs_top_builddir=$ac_abs_builddir;;
1292 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1293 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1294 esac;;
1295esac
1296case $ac_abs_builddir in
1297.) ac_abs_srcdir=$ac_srcdir;;
1298*)
1299 case $ac_srcdir in
1300 .) ac_abs_srcdir=$ac_abs_builddir;;
1301 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1302 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1303 esac;;
1304esac
1305case $ac_abs_builddir in
1306.) ac_abs_top_srcdir=$ac_top_srcdir;;
1307*)
1308 case $ac_top_srcdir in
1309 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1310 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1311 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1312 esac;;
1313esac
a848cd7e
SC
1314
1315 cd $ac_dir
1316 # Check for guested configure; otherwise get Cygnus style configure.
1317 if test -f $ac_srcdir/configure.gnu; then
1318 echo
1319 $SHELL $ac_srcdir/configure.gnu --help=recursive
1320 elif test -f $ac_srcdir/configure; then
1321 echo
1322 $SHELL $ac_srcdir/configure --help=recursive
1323 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1324 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1325 echo
1326 $ac_configure --help
1327 else
1328 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1329 fi
479c790c 1330 cd "$ac_popdir"
a848cd7e
SC
1331 done
1332fi
1333
1334test -n "$ac_init_help" && exit 0
1335if $ac_init_version; then
1336 cat <<\_ACEOF
f1e3914f 1337wxWidgets configure 2.7.1
ac1cb8d3 1338generated by GNU Autoconf 2.59
a848cd7e 1339
ac1cb8d3 1340Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1341This configure script is free software; the Free Software Foundation
1342gives unlimited permission to copy, distribute and modify it.
1343_ACEOF
1344 exit 0
1345fi
1346exec 5>config.log
1347cat >&5 <<_ACEOF
1348This file contains any messages produced by compilers while
1349running configure, to aid debugging if configure makes a mistake.
1350
f1e3914f 1351It was created by wxWidgets $as_me 2.7.1, which was
ac1cb8d3 1352generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1353
1354 $ $0 $@
1355
1356_ACEOF
1357{
1358cat <<_ASUNAME
1359## --------- ##
1360## Platform. ##
1361## --------- ##
1362
1363hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1364uname -m = `(uname -m) 2>/dev/null || echo unknown`
1365uname -r = `(uname -r) 2>/dev/null || echo unknown`
1366uname -s = `(uname -s) 2>/dev/null || echo unknown`
1367uname -v = `(uname -v) 2>/dev/null || echo unknown`
1368
1369/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1370/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1371
1372/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1373/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1374/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1375hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1376/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1377/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1378/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1379
1380_ASUNAME
1381
1382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1383for as_dir in $PATH
1384do
1385 IFS=$as_save_IFS
1386 test -z "$as_dir" && as_dir=.
1387 echo "PATH: $as_dir"
1388done
1389
1390} >&5
1391
1392cat >&5 <<_ACEOF
1393
1394
1395## ----------- ##
1396## Core tests. ##
1397## ----------- ##
1398
1399_ACEOF
1400
1401
1402# Keep a trace of the command line.
1403# Strip out --no-create and --no-recursion so they do not pile up.
1404# Strip out --silent because we don't want to record it for future runs.
1405# Also quote any args containing shell meta-characters.
1406# Make two passes to allow for proper duplicate-argument suppression.
1407ac_configure_args=
1408ac_configure_args0=
1409ac_configure_args1=
1410ac_sep=
1411ac_must_keep_next=false
1412for ac_pass in 1 2
1413do
1414 for ac_arg
1415 do
1416 case $ac_arg in
1417 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1418 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1419 | -silent | --silent | --silen | --sile | --sil)
1420 continue ;;
1421 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1422 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1423 esac
1424 case $ac_pass in
1425 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1426 2)
1427 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1428 if test $ac_must_keep_next = true; then
ac1cb8d3 1429 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1430 else
ac1cb8d3
VS
1431 case $ac_arg in
1432 *=* | --config-cache | -C | -disable-* | --disable-* \
1433 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1434 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1435 | -with-* | --with-* | -without-* | --without-* | --x)
1436 case "$ac_configure_args0 " in
1437 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1438 esac
1439 ;;
1440 -* ) ac_must_keep_next=true ;;
1441 esac
a848cd7e
SC
1442 fi
1443 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1444 # Get rid of the leading space.
1445 ac_sep=" "
1446 ;;
1447 esac
1448 done
1449done
1450$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1451$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1452
1453# When interrupted or exit'd, cleanup temporary files, and complete
1454# config.log. We remove comments because anyway the quotes in there
1455# would cause problems or look ugly.
1456# WARNING: Be sure not to use single quotes in there, as some shells,
1457# such as our DU 5.0 friend, will then `close' the trap.
1458trap 'exit_status=$?
1459 # Save into config.log some information that might help in debugging.
1460 {
1461 echo
1462
1463 cat <<\_ASBOX
1464## ---------------- ##
1465## Cache variables. ##
1466## ---------------- ##
1467_ASBOX
1468 echo
1469 # The following way of writing the cache mishandles newlines in values,
1470{
1471 (set) 2>&1 |
1472 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1473 *ac_space=\ *)
1474 sed -n \
ac1cb8d3
VS
1475 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1476 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1477 ;;
1478 *)
1479 sed -n \
ac1cb8d3 1480 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1481 ;;
1482 esac;
1483}
1484 echo
1485
1486 cat <<\_ASBOX
1487## ----------------- ##
1488## Output variables. ##
1489## ----------------- ##
1490_ASBOX
1491 echo
1492 for ac_var in $ac_subst_vars
1493 do
1494 eval ac_val=$`echo $ac_var`
1495 echo "$ac_var='"'"'$ac_val'"'"'"
1496 done | sort
1497 echo
1498
1499 if test -n "$ac_subst_files"; then
1500 cat <<\_ASBOX
1501## ------------- ##
1502## Output files. ##
1503## ------------- ##
1504_ASBOX
1505 echo
1506 for ac_var in $ac_subst_files
1507 do
1508 eval ac_val=$`echo $ac_var`
ac1cb8d3 1509 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1510 done | sort
1511 echo
1512 fi
1513
1514 if test -s confdefs.h; then
1515 cat <<\_ASBOX
1516## ----------- ##
1517## confdefs.h. ##
1518## ----------- ##
1519_ASBOX
1520 echo
1521 sed "/^$/d" confdefs.h | sort
1522 echo
1523 fi
1524 test "$ac_signal" != 0 &&
1525 echo "$as_me: caught signal $ac_signal"
1526 echo "$as_me: exit $exit_status"
1527 } >&5
ac1cb8d3 1528 rm -f core *.core &&
a848cd7e
SC
1529 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1530 exit $exit_status
1531 ' 0
1532for ac_signal in 1 2 13 15; do
1533 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1534done
1535ac_signal=0
1536
1537# confdefs.h avoids OS command line length limits that DEFS can exceed.
1538rm -rf conftest* confdefs.h
1539# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1540echo >confdefs.h
1541
1542# Predefined preprocessor variables.
1543
1544cat >>confdefs.h <<_ACEOF
1545#define PACKAGE_NAME "$PACKAGE_NAME"
1546_ACEOF
1547
1548
1549cat >>confdefs.h <<_ACEOF
1550#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1551_ACEOF
1552
1553
1554cat >>confdefs.h <<_ACEOF
1555#define PACKAGE_VERSION "$PACKAGE_VERSION"
1556_ACEOF
1557
1558
1559cat >>confdefs.h <<_ACEOF
1560#define PACKAGE_STRING "$PACKAGE_STRING"
1561_ACEOF
1562
1563
1564cat >>confdefs.h <<_ACEOF
1565#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1566_ACEOF
1567
1568
1569# Let the site file select an alternate cache file if it wants to.
1570# Prefer explicitly selected file to automatically selected ones.
1571if test -z "$CONFIG_SITE"; then
1572 if test "x$prefix" != xNONE; then
1573 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1574 else
1575 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1576 fi
1577fi
1578for ac_site_file in $CONFIG_SITE; do
1579 if test -r "$ac_site_file"; then
1580 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1581echo "$as_me: loading site script $ac_site_file" >&6;}
1582 sed 's/^/| /' "$ac_site_file" >&5
1583 . "$ac_site_file"
1584 fi
1585done
1586
1587if test -r "$cache_file"; then
1588 # Some versions of bash will fail to source /dev/null (special
1589 # files actually), so we avoid doing that.
1590 if test -f "$cache_file"; then
1591 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1592echo "$as_me: loading cache $cache_file" >&6;}
1593 case $cache_file in
1594 [\\/]* | ?:[\\/]* ) . $cache_file;;
1595 *) . ./$cache_file;;
1596 esac
1597 fi
1598else
1599 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1600echo "$as_me: creating cache $cache_file" >&6;}
1601 >$cache_file
1602fi
1603
1604# Check that the precious variables saved in the cache have kept the same
1605# value.
1606ac_cache_corrupted=false
1607for ac_var in `(set) 2>&1 |
ac1cb8d3 1608 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1609 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1610 eval ac_new_set=\$ac_env_${ac_var}_set
1611 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1612 eval ac_new_val="\$ac_env_${ac_var}_value"
1613 case $ac_old_set,$ac_new_set in
1614 set,)
1615 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1616echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1617 ac_cache_corrupted=: ;;
1618 ,set)
1619 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1620echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1621 ac_cache_corrupted=: ;;
1622 ,);;
1623 *)
1624 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1625 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1626echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1627 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1628echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1629 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1630echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1631 ac_cache_corrupted=:
a848cd7e
SC
1632 fi;;
1633 esac
1634 # Pass precious variables to config.status.
1635 if test "$ac_new_set" = set; then
1636 case $ac_new_val in
1637 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1638 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1639 *) ac_arg=$ac_var=$ac_new_val ;;
1640 esac
1641 case " $ac_configure_args " in
1642 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1643 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1644 esac
1645 fi
1646done
1647if $ac_cache_corrupted; then
1648 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1649echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1650 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1651echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1652 { (exit 1); exit 1; }; }
1653fi
1654
1655ac_ext=c
1656ac_cpp='$CPP $CPPFLAGS'
1657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1659ac_compiler_gnu=$ac_cv_c_compiler_gnu
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690ac_aux_dir=
1691for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1692 if test -f $ac_dir/install-sh; then
1693 ac_aux_dir=$ac_dir
1694 ac_install_sh="$ac_aux_dir/install-sh -c"
1695 break
1696 elif test -f $ac_dir/install.sh; then
1697 ac_aux_dir=$ac_dir
1698 ac_install_sh="$ac_aux_dir/install.sh -c"
1699 break
1700 elif test -f $ac_dir/shtool; then
1701 ac_aux_dir=$ac_dir
1702 ac_install_sh="$ac_aux_dir/shtool install -c"
1703 break
1704 fi
1705done
1706if test -z "$ac_aux_dir"; then
1707 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1708echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1709 { (exit 1); exit 1; }; }
1710fi
1711ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1712ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1713ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1714
1715# Make sure we can run config.sub.
1716$ac_config_sub sun4 >/dev/null 2>&1 ||
1717 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1718echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1719 { (exit 1); exit 1; }; }
1720
1721echo "$as_me:$LINENO: checking build system type" >&5
1722echo $ECHO_N "checking build system type... $ECHO_C" >&6
1723if test "${ac_cv_build+set}" = set; then
1724 echo $ECHO_N "(cached) $ECHO_C" >&6
1725else
1726 ac_cv_build_alias=$build_alias
1727test -z "$ac_cv_build_alias" &&
1728 ac_cv_build_alias=`$ac_config_guess`
1729test -z "$ac_cv_build_alias" &&
1730 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1731echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1732 { (exit 1); exit 1; }; }
1733ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1734 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1735echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1736 { (exit 1); exit 1; }; }
1737
1738fi
1739echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1740echo "${ECHO_T}$ac_cv_build" >&6
1741build=$ac_cv_build
1742build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1743build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1744build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1745
1746
1747echo "$as_me:$LINENO: checking host system type" >&5
1748echo $ECHO_N "checking host system type... $ECHO_C" >&6
1749if test "${ac_cv_host+set}" = set; then
1750 echo $ECHO_N "(cached) $ECHO_C" >&6
1751else
1752 ac_cv_host_alias=$host_alias
1753test -z "$ac_cv_host_alias" &&
1754 ac_cv_host_alias=$ac_cv_build_alias
1755ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1756 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1757echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1758 { (exit 1); exit 1; }; }
1759
1760fi
1761echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1762echo "${ECHO_T}$ac_cv_host" >&6
1763host=$ac_cv_host
1764host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1765host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1766host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1767
1768
1769echo "$as_me:$LINENO: checking target system type" >&5
1770echo $ECHO_N "checking target system type... $ECHO_C" >&6
1771if test "${ac_cv_target+set}" = set; then
1772 echo $ECHO_N "(cached) $ECHO_C" >&6
1773else
1774 ac_cv_target_alias=$target_alias
1775test "x$ac_cv_target_alias" = "x" &&
1776 ac_cv_target_alias=$ac_cv_host_alias
1777ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1778 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1779echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1780 { (exit 1); exit 1; }; }
1781
1782fi
1783echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1784echo "${ECHO_T}$ac_cv_target" >&6
1785target=$ac_cv_target
1786target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1787target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1788target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1789
1790
1791# The aliases save the names the user supplied, while $host etc.
1792# will get canonicalized.
1793test -n "$target_alias" &&
1794 test "$program_prefix$program_suffix$program_transform_name" = \
1795 NONENONEs,x,x, &&
1796 program_prefix=${target_alias}-
1797
1798
1799
ceec2216 1800wx_major_version_number=2
dd8df4fc 1801wx_minor_version_number=7
f1e3914f 1802wx_release_number=1
f2b79dad 1803wx_subrelease_number=3
a848cd7e 1804
ceec2216
RL
1805WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1806WX_VERSION=$WX_RELEASE.$wx_release_number
1807WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1808
ceec2216 1809WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1810
a848cd7e
SC
1811
1812
1813
1814USE_UNIX=1
1815USE_OS2=0
1816USE_WIN32=0
1817USE_DOS=0
1818USE_BEOS=0
1819USE_MAC=0
1820
1821USE_AIX=
1822USE_BSD= USE_DARWIN= USE_FREEBSD=
1823USE_GNU= USE_HPUX=
1824USE_LINUX=
1825USE_NETBSD=
1826USE_OPENBSD=
1827USE_OSF= USE_SGI=
1828USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1829USE_ULTRIX=
1830USE_UNIXWARE=
1831
1832USE_ALPHA=
1833
1834NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1835
b3c86150 1836ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
a848cd7e
SC
1837
1838DEFAULT_wxUSE_COCOA=0
1839DEFAULT_wxUSE_GTK=0
1840DEFAULT_wxUSE_MAC=0
1841DEFAULT_wxUSE_MGL=0
1842DEFAULT_wxUSE_MICROWIN=0
1843DEFAULT_wxUSE_MOTIF=0
1844DEFAULT_wxUSE_MSW=0
1845DEFAULT_wxUSE_PM=0
1846DEFAULT_wxUSE_X11=0
b3c86150 1847DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1848
1849DEFAULT_DEFAULT_wxUSE_COCOA=0
1850DEFAULT_DEFAULT_wxUSE_GTK=0
1851DEFAULT_DEFAULT_wxUSE_MAC=0
1852DEFAULT_DEFAULT_wxUSE_MGL=0
1853DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1854DEFAULT_DEFAULT_wxUSE_MOTIF=0
1855DEFAULT_DEFAULT_wxUSE_MSW=0
1856DEFAULT_DEFAULT_wxUSE_PM=0
1857DEFAULT_DEFAULT_wxUSE_X11=0
b3c86150 1858DEFAULT_DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1859
1860PROGRAM_EXT=
1861SO_SUFFIX=so
1862SAMPLES_RPATH_FLAG=
1863SAMPLES_RPATH_POSTLINK=
1864
a03b8b04
RD
1865DEFAULT_STD_FLAG=yes
1866
a848cd7e
SC
1867case "${host}" in
1868 *-hp-hpux* )
1869 USE_HPUX=1
1870 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1871 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1872 SO_SUFFIX=sl
1873 cat >>confdefs.h <<\_ACEOF
1874#define __HPUX__ 1
1875_ACEOF
1876
2eef8513 1877
c92ad099 1878 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1879 ;;
1880 *-*-linux* )
1881 USE_LINUX=1
1882 cat >>confdefs.h <<\_ACEOF
1883#define __LINUX__ 1
1884_ACEOF
1885
1886 TMP=`uname -m`
1887 if test "x$TMP" = "xalpha"; then
1888 USE_ALPHA=1
1889 cat >>confdefs.h <<\_ACEOF
1890#define __ALPHA__ 1
1891_ACEOF
1892
1893 fi
1894 DEFAULT_DEFAULT_wxUSE_GTK=1
1895 ;;
1896 *-*-gnu* | *-*-k*bsd*-gnu )
1897 USE_GNU=1
1898 TMP=`uname -m`
1899 if test "x$TMP" = "xalpha"; then
1900 USE_ALPHA=1
1901 cat >>confdefs.h <<\_ACEOF
1902#define __ALPHA__ 1
1903_ACEOF
1904
1905 fi
1906 DEFAULT_DEFAULT_wxUSE_GTK=1
1907 ;;
1908 *-*-irix5* | *-*-irix6* )
1909 USE_SGI=1
1910 USE_SVR4=1
1911 cat >>confdefs.h <<\_ACEOF
1912#define __SGI__ 1
1913_ACEOF
1914
1915 cat >>confdefs.h <<\_ACEOF
1916#define __SVR4__ 1
1917_ACEOF
1918
1919 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1920 ;;
1921 *-*-solaris2* )
1922 USE_SUN=1
1923 USE_SOLARIS=1
1924 USE_SVR4=1
1925 cat >>confdefs.h <<\_ACEOF
1926#define __SUN__ 1
1927_ACEOF
1928
1929 cat >>confdefs.h <<\_ACEOF
1930#define __SOLARIS__ 1
1931_ACEOF
1932
1933 cat >>confdefs.h <<\_ACEOF
1934#define __SVR4__ 1
1935_ACEOF
1936
1937 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1938 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1939 ;;
1940 *-*-sunos4* )
1941 USE_SUN=1
1942 USE_SUNOS=1
1943 USE_BSD=1
1944 cat >>confdefs.h <<\_ACEOF
1945#define __SUN__ 1
1946_ACEOF
1947
1948 cat >>confdefs.h <<\_ACEOF
1949#define __SUNOS__ 1
1950_ACEOF
1951
1952 cat >>confdefs.h <<\_ACEOF
1953#define __BSD__ 1
1954_ACEOF
1955
1956 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1957 ;;
1958 *-*-freebsd*)
1959 USE_BSD=1
1960 USE_FREEBSD=1
1961 cat >>confdefs.h <<\_ACEOF
1962#define __FREEBSD__ 1
1963_ACEOF
1964
1965 cat >>confdefs.h <<\_ACEOF
1966#define __BSD__ 1
1967_ACEOF
1968
1969 DEFAULT_DEFAULT_wxUSE_GTK=1
1970 ;;
c9a66001 1971 *-*-openbsd*|*-*-mirbsd*)
a848cd7e
SC
1972 USE_BSD=1
1973 USE_OPENBSD=1
1974 cat >>confdefs.h <<\_ACEOF
1975#define __OPENBSD__ 1
1976_ACEOF
1977
1978 cat >>confdefs.h <<\_ACEOF
1979#define __BSD__ 1
1980_ACEOF
1981
1982 DEFAULT_DEFAULT_wxUSE_GTK=1
1983 ;;
1984 *-*-netbsd*)
1985 USE_BSD=1
1986 USE_NETBSD=1
1987 cat >>confdefs.h <<\_ACEOF
1988#define __NETBSD__ 1
1989_ACEOF
1990
1991 cat >>confdefs.h <<\_ACEOF
1992#define __BSD__ 1
1993_ACEOF
1994
1995 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 1996 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 1997
def7c04a 1998 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
1999 ;;
2000 *-*-osf* )
2001 USE_ALPHA=1
2002 USE_OSF=1
2003 cat >>confdefs.h <<\_ACEOF
2004#define __ALPHA__ 1
2005_ACEOF
2006
2007 cat >>confdefs.h <<\_ACEOF
2008#define __OSF__ 1
2009_ACEOF
2010
2011 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2012 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2013 ;;
2014 *-*-dgux5* )
2015 USE_ALPHA=1
2016 USE_SVR4=1
2017 cat >>confdefs.h <<\_ACEOF
2018#define __ALPHA__ 1
2019_ACEOF
2020
2021 cat >>confdefs.h <<\_ACEOF
2022#define __SVR4__ 1
2023_ACEOF
2024
2025 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2026 ;;
2027 *-*-sysv5* )
2028 USE_SYSV=1
2029 USE_SVR4=1
2030 cat >>confdefs.h <<\_ACEOF
2031#define __SYSV__ 1
2032_ACEOF
2033
2034 cat >>confdefs.h <<\_ACEOF
2035#define __SVR4__ 1
2036_ACEOF
2037
2038 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2039 ;;
2040 *-*-aix* )
2041 USE_AIX=1
2042 USE_SYSV=1
2043 USE_SVR4=1
2044 SO_SUFFIX=a
2045 cat >>confdefs.h <<\_ACEOF
2046#define __AIX__ 1
2047_ACEOF
2048
2049 cat >>confdefs.h <<\_ACEOF
2050#define __SYSV__ 1
2051_ACEOF
2052
2053 cat >>confdefs.h <<\_ACEOF
2054#define __SVR4__ 1
2055_ACEOF
2056
2057 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2058 ;;
2059
2060 *-*-*UnixWare*)
2061 USE_SYSV=1
2062 USE_SVR4=1
2063 USE_UNIXWARE=1
2064 cat >>confdefs.h <<\_ACEOF
2065#define __UNIXWARE__ 1
2066_ACEOF
2067
2068 ;;
2069
2070 *-*-cygwin* | *-*-mingw32* )
2071 SO_SUFFIX=dll
2072 PROGRAM_EXT=".exe"
a848cd7e
SC
2073 DEFAULT_DEFAULT_wxUSE_MSW=1
2074 ;;
2075
2076 *-pc-msdosdjgpp )
2077 USE_UNIX=0
2078 USE_DOS=1
2079 cat >>confdefs.h <<\_ACEOF
2080#define __DOS__ 1
2081_ACEOF
2082
2083 PROGRAM_EXT=".exe"
2084 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
2085 ;;
2086
2087 *-pc-os2_emx | *-pc-os2-emx )
2088 cat >>confdefs.h <<\_ACEOF
2089#define __EMX__ 1
2090_ACEOF
2091
2092 USE_OS2=1
2093 cat >>confdefs.h <<\_ACEOF
2094#define __OS2__ 1
2095_ACEOF
2096
2097 PROGRAM_EXT=".exe"
2098 DEFAULT_DEFAULT_wxUSE_PM=1
2099 CXX=gcc
2100 LDFLAGS="$LDFLAGS -Zcrtdll"
2101 ac_executable_extensions=".exe"
2102 export ac_executable_extensions
2103 ac_save_IFS="$IFS"
2104 IFS='\\'
2105 ac_TEMP_PATH=
2106 for ac_dir in $PATH; do
2107 IFS=$ac_save_IFS
2108 if test -z "$ac_TEMP_PATH"; then
2109 ac_TEMP_PATH="$ac_dir"
2110 else
2111 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2112 fi
2113 done
2114 export PATH="$ac_TEMP_PATH"
2115 unset ac_TEMP_PATH
a03b8b04 2116 DEFAULT_STD_FLAG=no
a848cd7e
SC
2117 ;;
2118
cfda0ea8 2119 *-*-darwin* )
a848cd7e
SC
2120 USE_BSD=1
2121 USE_DARWIN=1
2122 SO_SUFFIX=dylib
2123 cat >>confdefs.h <<\_ACEOF
2124#define __BSD__ 1
2125_ACEOF
2126
2127 cat >>confdefs.h <<\_ACEOF
2128#define __DARWIN__ 1
a848cd7e
SC
2129_ACEOF
2130
2131 cat >>confdefs.h <<\_ACEOF
2132#define TARGET_CARBON 1
2133_ACEOF
2134
2135 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2136 DEFAULT_STD_FLAG=no
a848cd7e 2137 ;;
1e9e8aba
DE
2138 powerpc-apple-macos* )
2139 USE_UNIX=0
2140 ac_cv_c_bigendian=yes
2141 SO_SUFFIX=shlib
2142 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2143 DEFAULT_STD_FLAG=no
1e9e8aba 2144 ;;
a848cd7e
SC
2145
2146 *-*-beos* )
2147 USE_BEOS=1
2148 cat >>confdefs.h <<\_ACEOF
2149#define __BEOS__ 1
2150_ACEOF
2151
2152 ;;
2153
2154 *)
c9a66001
VZ
2155 { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2156echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2157 { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2158echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
5acfd58d
MW
2159
2160 DEFAULT_DEFAULT_wxUSE_X11=1
2161 DEFAULT_wxUSE_SHARED=no
a848cd7e
SC
2162esac
2163
2164
2165
2166
2167 wx_arg_cache_file="configarg.cache"
2168 echo "loading argument cache $wx_arg_cache_file"
2169 rm -f ${wx_arg_cache_file}.tmp
2170 touch ${wx_arg_cache_file}.tmp
2171 touch ${wx_arg_cache_file}
2172
2173
2174DEBUG_CONFIGURE=0
2175if test $DEBUG_CONFIGURE = 1; then
2176 DEFAULT_wxUSE_UNIVERSAL=no
2177 DEFAULT_wxUSE_STL=no
2178
2179 DEFAULT_wxUSE_NANOX=no
2180
2181 DEFAULT_wxUSE_THREADS=yes
2182
5acfd58d 2183 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2184 DEFAULT_wxUSE_OPTIMISE=no
2185 DEFAULT_wxUSE_PROFILE=no
2186 DEFAULT_wxUSE_NO_DEPS=no
2187 DEFAULT_wxUSE_NO_RTTI=no
2188 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2189 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2190 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2191 DEFAULT_wxUSE_PERMISSIVE=no
2192 DEFAULT_wxUSE_DEBUG_FLAG=yes
2193 DEFAULT_wxUSE_DEBUG_INFO=yes
2194 DEFAULT_wxUSE_DEBUG_GDB=yes
2195 DEFAULT_wxUSE_MEM_TRACING=no
2196 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2197 DEFAULT_wxUSE_DMALLOC=no
2198 DEFAULT_wxUSE_APPLE_IEEE=no
2199
2200 DEFAULT_wxUSE_EXCEPTIONS=no
2201 DEFAULT_wxUSE_LOG=yes
2202 DEFAULT_wxUSE_LOGWINDOW=no
2203 DEFAULT_wxUSE_LOGGUI=no
2204 DEFAULT_wxUSE_LOGDIALOG=no
2205
2206 DEFAULT_wxUSE_GUI=yes
2207 DEFAULT_wxUSE_CONTROLS=no
2208
2209 DEFAULT_wxUSE_REGEX=no
2210 DEFAULT_wxUSE_XML=no
2211 DEFAULT_wxUSE_EXPAT=no
2212 DEFAULT_wxUSE_ZLIB=no
2213 DEFAULT_wxUSE_LIBPNG=no
2214 DEFAULT_wxUSE_LIBJPEG=no
2215 DEFAULT_wxUSE_LIBTIFF=no
2216 DEFAULT_wxUSE_LIBXPM=no
2217 DEFAULT_wxUSE_LIBMSPACK=no
2218 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2219 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2220 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2221 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2222 DEFAULT_wxUSE_ODBC=no
2223 DEFAULT_wxUSE_OPENGL=no
2224
2225 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2226 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2227 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2228 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2229 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2230 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2231 DEFAULT_wxUSE_CMDLINE_PARSER=no
2232 DEFAULT_wxUSE_DATETIME=no
2233 DEFAULT_wxUSE_TIMER=no
2234 DEFAULT_wxUSE_STOPWATCH=no
2235 DEFAULT_wxUSE_FILE=no
2236 DEFAULT_wxUSE_FFILE=no
07158944 2237 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2238 DEFAULT_wxUSE_TEXTBUFFER=no
2239 DEFAULT_wxUSE_TEXTFILE=no
2240 DEFAULT_wxUSE_SOUND=no
3b57de8b 2241 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2242 DEFAULT_wxUSE_GSTREAMER8=no
8f3773fd 2243 DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
a848cd7e
SC
2244 DEFAULT_wxUSE_INTL=no
2245 DEFAULT_wxUSE_CONFIG=no
2246 DEFAULT_wxUSE_FONTMAP=no
2247 DEFAULT_wxUSE_STREAMS=no
2248 DEFAULT_wxUSE_SOCKETS=no
2249 DEFAULT_wxUSE_OLE=no
2250 DEFAULT_wxUSE_DATAOBJ=no
2251 DEFAULT_wxUSE_DIALUP_MANAGER=no
2252 DEFAULT_wxUSE_JOYSTICK=no
2253 DEFAULT_wxUSE_DYNLIB_CLASS=no
2254 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2255 DEFAULT_wxUSE_LONGLONG=no
2256 DEFAULT_wxUSE_GEOMETRY=no
2257
2258 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2259 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2260 DEFAULT_wxUSE_POSTSCRIPT=no
2261
2262 DEFAULT_wxUSE_CLIPBOARD=no
2263 DEFAULT_wxUSE_TOOLTIPS=no
2264 DEFAULT_wxUSE_DRAG_AND_DROP=no
2265 DEFAULT_wxUSE_DRAGIMAGE=no
2266 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2267 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2268
8a7b1113 2269 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2270 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2271 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2272 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2273
2274 DEFAULT_wxUSE_RESOURCES=no
2275 DEFAULT_wxUSE_CONSTRAINTS=no
2276 DEFAULT_wxUSE_IPC=no
2277 DEFAULT_wxUSE_HELP=no
2278 DEFAULT_wxUSE_MS_HTML_HELP=no
2279 DEFAULT_wxUSE_WXHTML_HELP=no
2280 DEFAULT_wxUSE_TREELAYOUT=no
2281 DEFAULT_wxUSE_METAFILE=no
2282 DEFAULT_wxUSE_MIMETYPE=no
2283 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2284 DEFAULT_wxUSE_PROTOCOL=no
2285 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2286 DEFAULT_wxUSE_PROTOCOL_FTP=no
2287 DEFAULT_wxUSE_PROTOCOL_FILE=no
2288 DEFAULT_wxUSE_URL=no
ca5c6ac3 2289 DEFAULT_wxUSE_VARIANT=no
a848cd7e 2290
319c5ed4 2291 DEFAULT_wxUSE_ABOUTDLG=no
a848cd7e
SC
2292 DEFAULT_wxUSE_COMMONDLGS=no
2293 DEFAULT_wxUSE_CHOICEDLG=no
2294 DEFAULT_wxUSE_COLOURDLG=no
2295 DEFAULT_wxUSE_DIRDLG=no
2296 DEFAULT_wxUSE_FILEDLG=no
2297 DEFAULT_wxUSE_FINDREPLDLG=no
2298 DEFAULT_wxUSE_FONTDLG=no
2299 DEFAULT_wxUSE_MSGDLG=no
2300 DEFAULT_wxUSE_NUMBERDLG=no
2301 DEFAULT_wxUSE_TEXTDLG=no
2302 DEFAULT_wxUSE_SPLASH=no
2303 DEFAULT_wxUSE_STARTUP_TIPS=no
2304 DEFAULT_wxUSE_PROGRESSDLG=no
2305 DEFAULT_wxUSE_WIZARDDLG=no
2306
2307 DEFAULT_wxUSE_MENUS=no
2308 DEFAULT_wxUSE_MINIFRAME=no
2309 DEFAULT_wxUSE_HTML=no
91dea314 2310 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2311 DEFAULT_wxUSE_XRC=no
3f60522a 2312 DEFAULT_wxUSE_AUI=no
646b6ec1 2313 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2314 DEFAULT_wxUSE_FILESYSTEM=no
2315 DEFAULT_wxUSE_FS_INET=no
2316 DEFAULT_wxUSE_FS_ZIP=no
2317 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2318 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2319 DEFAULT_wxUSE_ZIPSTREAM=no
f8f6c91a 2320 DEFAULT_wxUSE_BACKINGFILE=no
a848cd7e
SC
2321 DEFAULT_wxUSE_VALIDATORS=no
2322
2323 DEFAULT_wxUSE_ACCEL=no
3ea50042 2324 DEFAULT_wxUSE_ANIMATIONCTRL=no
a848cd7e
SC
2325 DEFAULT_wxUSE_BUTTON=no
2326 DEFAULT_wxUSE_BMPBUTTON=no
95a46303 2327 DEFAULT_wxUSE_BITMAPCOMBOBOX=no
a848cd7e
SC
2328 DEFAULT_wxUSE_CALCTRL=no
2329 DEFAULT_wxUSE_CARET=no
2330 DEFAULT_wxUSE_CHECKBOX=no
2331 DEFAULT_wxUSE_CHECKLST=no
2332 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2333 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684 2334 DEFAULT_wxUSE_COLOURPICKERCTRL=no
a848cd7e 2335 DEFAULT_wxUSE_COMBOBOX=no
a57d600f 2336 DEFAULT_wxUSE_COMBOCTRL=no
da98e9be 2337 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e 2338 DEFAULT_wxUSE_DISPLAY=no
88bbc332 2339 DEFAULT_wxUSE_DETECT_SM=no
e9263684
VZ
2340 DEFAULT_wxUSE_DIRPICKERCTRL=no
2341 DEFAULT_wxUSE_FILEPICKERCTRL=no
2342 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e 2343 DEFAULT_wxUSE_GAUGE=no
f43426c1 2344 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
a848cd7e 2345 DEFAULT_wxUSE_GRID=no
6954625c 2346 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 2347 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2348 DEFAULT_wxUSE_IMAGLIST=no
2349 DEFAULT_wxUSE_LISTBOOK=no
2350 DEFAULT_wxUSE_LISTBOX=no
2351 DEFAULT_wxUSE_LISTCTRL=no
2352 DEFAULT_wxUSE_NOTEBOOK=no
a57d600f 2353 DEFAULT_wxUSE_ODCOMBOBOX=no
a848cd7e
SC
2354 DEFAULT_wxUSE_RADIOBOX=no
2355 DEFAULT_wxUSE_RADIOBTN=no
2356 DEFAULT_wxUSE_SASH=no
2357 DEFAULT_wxUSE_SCROLLBAR=no
2358 DEFAULT_wxUSE_SLIDER=no
2359 DEFAULT_wxUSE_SPINBTN=no
2360 DEFAULT_wxUSE_SPINCTRL=no
2361 DEFAULT_wxUSE_SPLITTER=no
2362 DEFAULT_wxUSE_STATBMP=no
2363 DEFAULT_wxUSE_STATBOX=no
2364 DEFAULT_wxUSE_STATLINE=no
2365 DEFAULT_wxUSE_STATTEXT=no
2366 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2367 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2368 DEFAULT_wxUSE_TEXTCTRL=no
2369 DEFAULT_wxUSE_TOGGLEBTN=no
2370 DEFAULT_wxUSE_TOOLBAR=no
2371 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
0093c2fc 2372 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 2373 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
2374 DEFAULT_wxUSE_TREECTRL=no
2375 DEFAULT_wxUSE_POPUPWIN=no
2376 DEFAULT_wxUSE_TIPWINDOW=no
2377
2378 DEFAULT_wxUSE_UNICODE=no
2379 DEFAULT_wxUSE_UNICODE_MSLU=no
2380 DEFAULT_wxUSE_WCSRTOMBS=no
2381
2382 DEFAULT_wxUSE_PALETTE=no
2383 DEFAULT_wxUSE_IMAGE=no
2384 DEFAULT_wxUSE_GIF=no
2385 DEFAULT_wxUSE_PCX=no
2386 DEFAULT_wxUSE_PNM=no
2387 DEFAULT_wxUSE_IFF=no
2388 DEFAULT_wxUSE_XPM=no
2389 DEFAULT_wxUSE_ICO_CUR=no
2390 DEFAULT_wxUSE_ACCESSIBILITY=no
2391
2392 DEFAULT_wxUSE_MONOLITHIC=no
2393 DEFAULT_wxUSE_PLUGINS=no
2394 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2395else
2396 DEFAULT_wxUSE_UNIVERSAL=no
2397 DEFAULT_wxUSE_STL=no
2398
2399 DEFAULT_wxUSE_NANOX=no
2400
2401 DEFAULT_wxUSE_THREADS=yes
2402
5acfd58d 2403 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2404 DEFAULT_wxUSE_OPTIMISE=yes
2405 DEFAULT_wxUSE_PROFILE=no
2406 DEFAULT_wxUSE_NO_DEPS=no
2407 DEFAULT_wxUSE_NO_RTTI=no
2408 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2409 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2410 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2411 DEFAULT_wxUSE_PERMISSIVE=no
2412 DEFAULT_wxUSE_DEBUG_FLAG=no
2413 DEFAULT_wxUSE_DEBUG_INFO=no
2414 DEFAULT_wxUSE_DEBUG_GDB=no
2415 DEFAULT_wxUSE_MEM_TRACING=no
2416 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2417 DEFAULT_wxUSE_DMALLOC=no
2418 DEFAULT_wxUSE_APPLE_IEEE=yes
2419
2420 DEFAULT_wxUSE_EXCEPTIONS=yes
2421 DEFAULT_wxUSE_LOG=yes
2422 DEFAULT_wxUSE_LOGWINDOW=yes
2423 DEFAULT_wxUSE_LOGGUI=yes
2424 DEFAULT_wxUSE_LOGDIALOG=yes
2425
2426 DEFAULT_wxUSE_GUI=yes
2427
2428 DEFAULT_wxUSE_REGEX=yes
2429 DEFAULT_wxUSE_XML=yes
2430 DEFAULT_wxUSE_EXPAT=yes
2431 DEFAULT_wxUSE_ZLIB=yes
2432 DEFAULT_wxUSE_LIBPNG=yes
2433 DEFAULT_wxUSE_LIBJPEG=yes
2434 DEFAULT_wxUSE_LIBTIFF=yes
2435 DEFAULT_wxUSE_LIBXPM=yes
2436 DEFAULT_wxUSE_LIBMSPACK=yes
2437 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2438 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2439 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2440 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2441 DEFAULT_wxUSE_ODBC=no
52cb607e 2442 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2443
2444 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2445 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2446 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2447 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2448 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2449 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2450 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2451 DEFAULT_wxUSE_DATETIME=yes
2452 DEFAULT_wxUSE_TIMER=yes
2453 DEFAULT_wxUSE_STOPWATCH=yes
2454 DEFAULT_wxUSE_FILE=yes
2455 DEFAULT_wxUSE_FFILE=yes
07158944 2456 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2457 DEFAULT_wxUSE_TEXTBUFFER=yes
2458 DEFAULT_wxUSE_TEXTFILE=yes
2459 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2460 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2461 DEFAULT_wxUSE_GSTREAMER8=no
15291213 2462 DEFAULT_wxUSE_PRINTF_POS_PARAMS=yes
a848cd7e
SC
2463 DEFAULT_wxUSE_INTL=yes
2464 DEFAULT_wxUSE_CONFIG=yes
2465 DEFAULT_wxUSE_FONTMAP=yes
2466 DEFAULT_wxUSE_STREAMS=yes
2467 DEFAULT_wxUSE_SOCKETS=yes
2468 DEFAULT_wxUSE_OLE=yes
2469 DEFAULT_wxUSE_DATAOBJ=yes
2470 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2471 DEFAULT_wxUSE_JOYSTICK=yes
2472 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2473 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2474 DEFAULT_wxUSE_LONGLONG=yes
2475 DEFAULT_wxUSE_GEOMETRY=yes
2476
2477 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2478 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2479 DEFAULT_wxUSE_POSTSCRIPT=yes
2480
2481 DEFAULT_wxUSE_CLIPBOARD=yes
2482 DEFAULT_wxUSE_TOOLTIPS=yes
2483 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2484 DEFAULT_wxUSE_DRAGIMAGE=yes
2485 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2486 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2487
8a7b1113 2488 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2489 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2490 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2491 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2492
2493 DEFAULT_wxUSE_RESOURCES=no
2494 DEFAULT_wxUSE_CONSTRAINTS=yes
2495 DEFAULT_wxUSE_IPC=yes
2496 DEFAULT_wxUSE_HELP=yes
2497 DEFAULT_wxUSE_MS_HTML_HELP=yes
2498 DEFAULT_wxUSE_WXHTML_HELP=yes
2499 DEFAULT_wxUSE_TREELAYOUT=yes
2500 DEFAULT_wxUSE_METAFILE=yes
2501 DEFAULT_wxUSE_MIMETYPE=yes
2502 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2503 DEFAULT_wxUSE_PROTOCOL=yes
2504 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2505 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2506 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2507 DEFAULT_wxUSE_URL=yes
ca5c6ac3 2508 DEFAULT_wxUSE_VARIANT=yes
a848cd7e 2509
319c5ed4 2510 DEFAULT_wxUSE_ABOUTDLG=yes
a848cd7e
SC
2511 DEFAULT_wxUSE_COMMONDLGS=yes
2512 DEFAULT_wxUSE_CHOICEDLG=yes
2513 DEFAULT_wxUSE_COLOURDLG=yes
2514 DEFAULT_wxUSE_DIRDLG=yes
2515 DEFAULT_wxUSE_FILEDLG=yes
2516 DEFAULT_wxUSE_FINDREPLDLG=yes
2517 DEFAULT_wxUSE_FONTDLG=yes
2518 DEFAULT_wxUSE_MSGDLG=yes
2519 DEFAULT_wxUSE_NUMBERDLG=yes
2520 DEFAULT_wxUSE_TEXTDLG=yes
2521 DEFAULT_wxUSE_SPLASH=yes
2522 DEFAULT_wxUSE_STARTUP_TIPS=yes
2523 DEFAULT_wxUSE_PROGRESSDLG=yes
2524 DEFAULT_wxUSE_WIZARDDLG=yes
2525
2526 DEFAULT_wxUSE_MENUS=yes
2527 DEFAULT_wxUSE_MINIFRAME=yes
2528 DEFAULT_wxUSE_HTML=yes
91dea314 2529 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2530 DEFAULT_wxUSE_XRC=yes
3f60522a 2531 DEFAULT_wxUSE_AUI=yes
646b6ec1 2532 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2533 DEFAULT_wxUSE_FILESYSTEM=yes
2534 DEFAULT_wxUSE_FS_INET=yes
2535 DEFAULT_wxUSE_FS_ZIP=yes
2536 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2537 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2538 DEFAULT_wxUSE_ZIPSTREAM=yes
f8f6c91a 2539 DEFAULT_wxUSE_BACKINGFILE=yes
a848cd7e
SC
2540 DEFAULT_wxUSE_VALIDATORS=yes
2541
2542 DEFAULT_wxUSE_ACCEL=yes
3ea50042 2543 DEFAULT_wxUSE_ANIMATIONCTRL=yes
a848cd7e
SC
2544 DEFAULT_wxUSE_BUTTON=yes
2545 DEFAULT_wxUSE_BMPBUTTON=yes
95a46303 2546 DEFAULT_wxUSE_BITMAPCOMBOBOX=yes
a848cd7e
SC
2547 DEFAULT_wxUSE_CALCTRL=yes
2548 DEFAULT_wxUSE_CARET=yes
2549 DEFAULT_wxUSE_CHECKBOX=yes
2550 DEFAULT_wxUSE_CHECKLST=yes
2551 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2552 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684 2553 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
a848cd7e 2554 DEFAULT_wxUSE_COMBOBOX=yes
a57d600f 2555 DEFAULT_wxUSE_COMBOCTRL=yes
da98e9be 2556 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e 2557 DEFAULT_wxUSE_DISPLAY=yes
88bbc332 2558 DEFAULT_wxUSE_DETECT_SM=yes
e9263684
VZ
2559 DEFAULT_wxUSE_DIRPICKERCTRL=yes
2560 DEFAULT_wxUSE_FILEPICKERCTRL=yes
2561 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
2562 DEFAULT_wxUSE_GAUGE=yes
2563 DEFAULT_wxUSE_GRID=yes
f43426c1 2564 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
6954625c 2565 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 2566 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2567 DEFAULT_wxUSE_IMAGLIST=yes
2568 DEFAULT_wxUSE_LISTBOOK=yes
2569 DEFAULT_wxUSE_LISTBOX=yes
2570 DEFAULT_wxUSE_LISTCTRL=yes
2571 DEFAULT_wxUSE_NOTEBOOK=yes
a57d600f 2572 DEFAULT_wxUSE_ODCOMBOBOX=yes
a848cd7e
SC
2573 DEFAULT_wxUSE_RADIOBOX=yes
2574 DEFAULT_wxUSE_RADIOBTN=yes
2575 DEFAULT_wxUSE_SASH=yes
2576 DEFAULT_wxUSE_SCROLLBAR=yes
2577 DEFAULT_wxUSE_SLIDER=yes
2578 DEFAULT_wxUSE_SPINBTN=yes
2579 DEFAULT_wxUSE_SPINCTRL=yes
2580 DEFAULT_wxUSE_SPLITTER=yes
2581 DEFAULT_wxUSE_STATBMP=yes
2582 DEFAULT_wxUSE_STATBOX=yes
2583 DEFAULT_wxUSE_STATLINE=yes
2584 DEFAULT_wxUSE_STATTEXT=yes
2585 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2586 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2587 DEFAULT_wxUSE_TEXTCTRL=yes
2588 DEFAULT_wxUSE_TOGGLEBTN=yes
2589 DEFAULT_wxUSE_TOOLBAR=yes
2590 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
0093c2fc 2591 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 2592 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
2593 DEFAULT_wxUSE_TREECTRL=yes
2594 DEFAULT_wxUSE_POPUPWIN=yes
2595 DEFAULT_wxUSE_TIPWINDOW=yes
2596
78de529b 2597 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2598 DEFAULT_wxUSE_UNICODE_MSLU=yes
2599 DEFAULT_wxUSE_WCSRTOMBS=no
2600
2601 DEFAULT_wxUSE_PALETTE=yes
2602 DEFAULT_wxUSE_IMAGE=yes
2603 DEFAULT_wxUSE_GIF=yes
2604 DEFAULT_wxUSE_PCX=yes
2605 DEFAULT_wxUSE_IFF=no
2606 DEFAULT_wxUSE_PNM=yes
2607 DEFAULT_wxUSE_XPM=yes
2608 DEFAULT_wxUSE_ICO_CUR=yes
2609 DEFAULT_wxUSE_ACCESSIBILITY=no
2610
2611 DEFAULT_wxUSE_MONOLITHIC=no
2612 DEFAULT_wxUSE_PLUGINS=no
2613 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2614
f34ca037 2615 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2616fi
2617
2618
2619
f34ca037 2620
a848cd7e
SC
2621for toolkit in `echo $ALL_TOOLKITS`; do
2622 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2623 if test "x$LINE" != "x" ; then
2624 has_toolkit_in_cache=1
2625 eval "DEFAULT_$LINE"
2626 eval "CACHE_$toolkit=1"
f34ca037
MW
2627
2628 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2629 if test "x$LINE" != "x" ; then
2630 eval "DEFAULT_$LINE"
2631 fi
a848cd7e
SC
2632 fi
2633done
2634
2635
2636
2637 enablestring=
2638 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2639echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2640 no_cache=0
2641 # Check whether --enable-gui or --disable-gui was given.
2642if test "${enable_gui+set}" = set; then
2643 enableval="$enable_gui"
2644
2645 if test "$enableval" = yes; then
2646 ac_cv_use_gui='wxUSE_GUI=yes'
2647 else
2648 ac_cv_use_gui='wxUSE_GUI=no'
2649 fi
2650
2651else
2652
2653 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2654 if test "x$LINE" != x ; then
2655 eval "DEFAULT_$LINE"
2656 else
2657 no_cache=1
2658 fi
2659
2660 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2661
2662fi;
2663
2664 eval "$ac_cv_use_gui"
2665 if test "$no_cache" != 1; then
2666 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2667 fi
2668
2669 if test "$wxUSE_GUI" = yes; then
2670 echo "$as_me:$LINENO: result: yes" >&5
2671echo "${ECHO_T}yes" >&6
2672 else
2673 echo "$as_me:$LINENO: result: no" >&5
2674echo "${ECHO_T}no" >&6
2675 fi
2676
2677
2678 enablestring=
2679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2680echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2681 no_cache=0
2682 # Check whether --enable-monolithic or --disable-monolithic was given.
2683if test "${enable_monolithic+set}" = set; then
2684 enableval="$enable_monolithic"
2685
2686 if test "$enableval" = yes; then
2687 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2688 else
2689 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2690 fi
2691
2692else
2693
2694 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2695 if test "x$LINE" != x ; then
2696 eval "DEFAULT_$LINE"
2697 else
2698 no_cache=1
2699 fi
2700
2701 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2702
2703fi;
2704
2705 eval "$ac_cv_use_monolithic"
2706 if test "$no_cache" != 1; then
2707 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2708 fi
2709
2710 if test "$wxUSE_MONOLITHIC" = yes; then
2711 echo "$as_me:$LINENO: result: yes" >&5
2712echo "${ECHO_T}yes" >&6
2713 else
2714 echo "$as_me:$LINENO: result: no" >&5
2715echo "${ECHO_T}no" >&6
2716 fi
2717
2718
2719 enablestring=
2720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2721echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2722 no_cache=0
2723 # Check whether --enable-plugins or --disable-plugins was given.
2724if test "${enable_plugins+set}" = set; then
2725 enableval="$enable_plugins"
2726
2727 if test "$enableval" = yes; then
2728 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2729 else
2730 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2731 fi
2732
2733else
2734
2735 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2736 if test "x$LINE" != x ; then
2737 eval "DEFAULT_$LINE"
2738 else
2739 no_cache=1
2740 fi
2741
2742 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2743
2744fi;
2745
2746 eval "$ac_cv_use_plugins"
2747 if test "$no_cache" != 1; then
2748 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2749 fi
2750
2751 if test "$wxUSE_PLUGINS" = yes; then
2752 echo "$as_me:$LINENO: result: yes" >&5
2753echo "${ECHO_T}yes" >&6
2754 else
2755 echo "$as_me:$LINENO: result: no" >&5
2756echo "${ECHO_T}no" >&6
2757 fi
2758
2759
1c14217d
VZ
2760 withstring=without
2761 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2762echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2763 no_cache=0
2764
2765# Check whether --with-subdirs or --without-subdirs was given.
2766if test "${with_subdirs+set}" = set; then
2767 withval="$with_subdirs"
2768
2769 if test "$withval" = yes; then
2770 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2771 else
2772 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2773 fi
2774
2775else
2776
2777 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2778 if test "x$LINE" != x ; then
2779 eval "DEFAULT_$LINE"
2780 else
2781 no_cache=1
2782 fi
2783
2784 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2785
2786fi;
2787
2788 eval "$ac_cv_use_subdirs"
2789 if test "$no_cache" != 1; then
2790 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2791 fi
2792
2793 if test "$wxWITH_SUBDIRS" = yes; then
2794 echo "$as_me:$LINENO: result: yes" >&5
2795echo "${ECHO_T}yes" >&6
2796 else
2797 echo "$as_me:$LINENO: result: no" >&5
2798echo "${ECHO_T}no" >&6
2799 fi
2800
2801
a848cd7e
SC
2802if test "$wxUSE_GUI" = "yes"; then
2803
2804
2805 enablestring=
2806 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2807echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2808 no_cache=0
2809 # Check whether --enable-universal or --disable-universal was given.
2810if test "${enable_universal+set}" = set; then
2811 enableval="$enable_universal"
2812
2813 if test "$enableval" = yes; then
2814 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2815 else
2816 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2817 fi
2818
2819else
2820
2821 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2822 if test "x$LINE" != x ; then
2823 eval "DEFAULT_$LINE"
2824 else
2825 no_cache=1
2826 fi
2827
2828 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2829
2830fi;
2831
2832 eval "$ac_cv_use_universal"
2833 if test "$no_cache" != 1; then
2834 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2835 fi
2836
2837 if test "$wxUSE_UNIVERSAL" = yes; then
2838 echo "$as_me:$LINENO: result: yes" >&5
2839echo "${ECHO_T}yes" >&6
2840 else
2841 echo "$as_me:$LINENO: result: no" >&5
2842echo "${ECHO_T}no" >&6
2843 fi
2844
2845
2846# Check whether --with-gtk or --without-gtk was given.
2847if test "${with_gtk+set}" = set; then
2848 withval="$with_gtk"
2849 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2850fi;
2851
2852# Check whether --with-motif or --without-motif was given.
2853if test "${with_motif+set}" = set; then
2854 withval="$with_motif"
2855 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2856fi;
2857
2858# Check whether --with-mac or --without-mac was given.
2859if test "${with_mac+set}" = set; then
2860 withval="$with_mac"
c228d3a4 2861 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2862fi;
2863
2864# Check whether --with-cocoa or --without-cocoa was given.
2865if test "${with_cocoa+set}" = set; then
2866 withval="$with_cocoa"
c228d3a4 2867 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2868fi;
2869
2870# Check whether --with-wine or --without-wine was given.
2871if test "${with_wine+set}" = set; then
2872 withval="$with_wine"
2873 wxUSE_WINE="$withval" CACHE_WINE=1
2874fi;
2875
2876# Check whether --with-msw or --without-msw was given.
2877if test "${with_msw+set}" = set; then
2878 withval="$with_msw"
2879 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2880fi;
2881
2882# Check whether --with-pm or --without-pm was given.
2883if test "${with_pm+set}" = set; then
2884 withval="$with_pm"
2885 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2886fi;
2887
2888# Check whether --with-mgl or --without-mgl was given.
2889if test "${with_mgl+set}" = set; then
2890 withval="$with_mgl"
2891 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2892fi;
2893
b3c86150
VS
2894# Check whether --with-directfb or --without-directfb was given.
2895if test "${with_directfb+set}" = set; then
2896 withval="$with_directfb"
2897 wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
2898fi;
2899
a848cd7e
SC
2900# Check whether --with-microwin or --without-microwin was given.
2901if test "${with_microwin+set}" = set; then
2902 withval="$with_microwin"
2903 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2904fi;
2905
2906# Check whether --with-x11 or --without-x11 was given.
2907if test "${with_x11+set}" = set; then
2908 withval="$with_x11"
2909 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2910fi;
2911
2912 enablestring=
2913 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2914echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2915 no_cache=0
2916 # Check whether --enable-nanox or --disable-nanox was given.
2917if test "${enable_nanox+set}" = set; then
2918 enableval="$enable_nanox"
2919
2920 if test "$enableval" = yes; then
2921 ac_cv_use_nanox='wxUSE_NANOX=yes'
2922 else
2923 ac_cv_use_nanox='wxUSE_NANOX=no'
2924 fi
2925
2926else
2927
2928 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2929 if test "x$LINE" != x ; then
2930 eval "DEFAULT_$LINE"
2931 else
2932 no_cache=1
2933 fi
2934
2935 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2936
2937fi;
2938
2939 eval "$ac_cv_use_nanox"
2940 if test "$no_cache" != 1; then
2941 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2942 fi
2943
2944 if test "$wxUSE_NANOX" = yes; then
2945 echo "$as_me:$LINENO: result: yes" >&5
2946echo "${ECHO_T}yes" >&6
2947 else
2948 echo "$as_me:$LINENO: result: no" >&5
2949echo "${ECHO_T}no" >&6
2950 fi
2951
2952
f34ca037
MW
2953# Check whether --enable-gtk2 or --disable-gtk2 was given.
2954if test "${enable_gtk2+set}" = set; then
2955 enableval="$enable_gtk2"
2956 wxUSE_GTK2="$enableval"
2957fi;
a848cd7e 2958
a848cd7e
SC
2959 enablestring=
2960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2961echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2962 no_cache=0
2963 # Check whether --enable-gpe or --disable-gpe was given.
2964if test "${enable_gpe+set}" = set; then
2965 enableval="$enable_gpe"
2966
2967 if test "$enableval" = yes; then
2968 ac_cv_use_gpe='wxUSE_GPE=yes'
2969 else
2970 ac_cv_use_gpe='wxUSE_GPE=no'
2971 fi
2972
2973else
2974
2975 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2976 if test "x$LINE" != x ; then
2977 eval "DEFAULT_$LINE"
2978 else
2979 no_cache=1
2980 fi
2981
2982 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2983
2984fi;
2985
2986 eval "$ac_cv_use_gpe"
2987 if test "$no_cache" != 1; then
2988 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2989 fi
2990
2991 if test "$wxUSE_GPE" = yes; then
2992 echo "$as_me:$LINENO: result: yes" >&5
2993echo "${ECHO_T}yes" >&6
2994 else
2995 echo "$as_me:$LINENO: result: no" >&5
2996echo "${ECHO_T}no" >&6
2997 fi
2998
2999
3000
3001 echo "$as_me:$LINENO: checking for --with-libpng" >&5
3002echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
3003 no_cache=0
3004
3005# Check whether --with-libpng or --without-libpng was given.
3006if test "${with_libpng+set}" = set; then
3007 withval="$with_libpng"
3008
3009 if test "$withval" = yes; then
3010 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
3011 elif test "$withval" = no; then
3012 ac_cv_use_libpng='wxUSE_LIBPNG=no'
3013 elif test "$withval" = sys; then
3014 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
3015 elif test "$withval" = builtin; then
3016 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
3017 else
3018 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3019echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3020 { (exit 1); exit 1; }; }
3021 fi
3022
3023else
3024
3025 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
3026 if test "x$LINE" != x ; then
3027 eval "DEFAULT_$LINE"
3028 else
3029 no_cache=1
3030 fi
3031
3032 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
3033
3034fi;
3035
3036 eval "$ac_cv_use_libpng"
3037 if test "$no_cache" != 1; then
3038 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
3039 fi
3040
3041 if test "$wxUSE_LIBPNG" = yes; then
3042 echo "$as_me:$LINENO: result: yes" >&5
3043echo "${ECHO_T}yes" >&6
3044 elif test "$wxUSE_LIBPNG" = no; then
3045 echo "$as_me:$LINENO: result: no" >&5
3046echo "${ECHO_T}no" >&6
3047 elif test "$wxUSE_LIBPNG" = sys; then
3048 echo "$as_me:$LINENO: result: system version" >&5
3049echo "${ECHO_T}system version" >&6
3050 elif test "$wxUSE_LIBPNG" = builtin; then
3051 echo "$as_me:$LINENO: result: builtin version" >&5
3052echo "${ECHO_T}builtin version" >&6
3053 else
3054 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3055echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3056 { (exit 1); exit 1; }; }
3057 fi
3058
3059
3060 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3061echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
3062 no_cache=0
3063
3064# Check whether --with-libjpeg or --without-libjpeg was given.
3065if test "${with_libjpeg+set}" = set; then
3066 withval="$with_libjpeg"
3067
3068 if test "$withval" = yes; then
3069 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3070 elif test "$withval" = no; then
3071 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3072 elif test "$withval" = sys; then
3073 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3074 elif test "$withval" = builtin; then
3075 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3076 else
3077 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3078echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3079 { (exit 1); exit 1; }; }
3080 fi
3081
3082else
3083
3084 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
3085 if test "x$LINE" != x ; then
3086 eval "DEFAULT_$LINE"
3087 else
3088 no_cache=1
3089 fi
3090
3091 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
3092
3093fi;
3094
3095 eval "$ac_cv_use_libjpeg"
3096 if test "$no_cache" != 1; then
3097 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3098 fi
3099
3100 if test "$wxUSE_LIBJPEG" = yes; then
3101 echo "$as_me:$LINENO: result: yes" >&5
3102echo "${ECHO_T}yes" >&6
3103 elif test "$wxUSE_LIBJPEG" = no; then
3104 echo "$as_me:$LINENO: result: no" >&5
3105echo "${ECHO_T}no" >&6
3106 elif test "$wxUSE_LIBJPEG" = sys; then
3107 echo "$as_me:$LINENO: result: system version" >&5
3108echo "${ECHO_T}system version" >&6
3109 elif test "$wxUSE_LIBJPEG" = builtin; then
3110 echo "$as_me:$LINENO: result: builtin version" >&5
3111echo "${ECHO_T}builtin version" >&6
3112 else
3113 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3114echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3115 { (exit 1); exit 1; }; }
3116 fi
3117
3118
3119 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3120echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
3121 no_cache=0
3122
3123# Check whether --with-libtiff or --without-libtiff was given.
3124if test "${with_libtiff+set}" = set; then
3125 withval="$with_libtiff"
3126
3127 if test "$withval" = yes; then
3128 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3129 elif test "$withval" = no; then
3130 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
3131 elif test "$withval" = sys; then
3132 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3133 elif test "$withval" = builtin; then
3134 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3135 else
3136 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3137echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3138 { (exit 1); exit 1; }; }
3139 fi
3140
3141else
3142
3143 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3144 if test "x$LINE" != x ; then
3145 eval "DEFAULT_$LINE"
3146 else
3147 no_cache=1
3148 fi
3149
3150 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3151
3152fi;
3153
3154 eval "$ac_cv_use_libtiff"
3155 if test "$no_cache" != 1; then
3156 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3157 fi
3158
3159 if test "$wxUSE_LIBTIFF" = yes; then
3160 echo "$as_me:$LINENO: result: yes" >&5
3161echo "${ECHO_T}yes" >&6
3162 elif test "$wxUSE_LIBTIFF" = no; then
3163 echo "$as_me:$LINENO: result: no" >&5
3164echo "${ECHO_T}no" >&6
3165 elif test "$wxUSE_LIBTIFF" = sys; then
3166 echo "$as_me:$LINENO: result: system version" >&5
3167echo "${ECHO_T}system version" >&6
3168 elif test "$wxUSE_LIBTIFF" = builtin; then
3169 echo "$as_me:$LINENO: result: builtin version" >&5
3170echo "${ECHO_T}builtin version" >&6
3171 else
3172 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3173echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3174 { (exit 1); exit 1; }; }
3175 fi
3176
3177
3178 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3179echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3180 no_cache=0
3181
3182# Check whether --with-libxpm or --without-libxpm was given.
3183if test "${with_libxpm+set}" = set; then
3184 withval="$with_libxpm"
3185
3186 if test "$withval" = yes; then
3187 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3188 elif test "$withval" = no; then
3189 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3190 elif test "$withval" = sys; then
3191 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3192 elif test "$withval" = builtin; then
3193 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3194 else
3195 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3196echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3197 { (exit 1); exit 1; }; }
3198 fi
3199
3200else
3201
3202 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3203 if test "x$LINE" != x ; then
3204 eval "DEFAULT_$LINE"
3205 else
3206 no_cache=1
3207 fi
3208
3209 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3210
3211fi;
3212
3213 eval "$ac_cv_use_libxpm"
3214 if test "$no_cache" != 1; then
3215 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3216 fi
3217
3218 if test "$wxUSE_LIBXPM" = yes; then
3219 echo "$as_me:$LINENO: result: yes" >&5
3220echo "${ECHO_T}yes" >&6
3221 elif test "$wxUSE_LIBXPM" = no; then
3222 echo "$as_me:$LINENO: result: no" >&5
3223echo "${ECHO_T}no" >&6
3224 elif test "$wxUSE_LIBXPM" = sys; then
3225 echo "$as_me:$LINENO: result: system version" >&5
3226echo "${ECHO_T}system version" >&6
3227 elif test "$wxUSE_LIBXPM" = builtin; then
3228 echo "$as_me:$LINENO: result: builtin version" >&5
3229echo "${ECHO_T}builtin version" >&6
3230 else
3231 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3232echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3233 { (exit 1); exit 1; }; }
3234 fi
3235
3236
1c14217d
VZ
3237 withstring=
3238 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3239echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3240 no_cache=0
3241
3242# Check whether --with-libmspack or --without-libmspack was given.
3243if test "${with_libmspack+set}" = set; then
3244 withval="$with_libmspack"
3245
3246 if test "$withval" = yes; then
3247 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3248 else
3249 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3250 fi
3251
3252else
3253
3254 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3255 if test "x$LINE" != x ; then
3256 eval "DEFAULT_$LINE"
3257 else
3258 no_cache=1
3259 fi
3260
3261 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3262
3263fi;
3264
3265 eval "$ac_cv_use_libmspack"
3266 if test "$no_cache" != 1; then
3267 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3268 fi
3269
3270 if test "$wxUSE_LIBMSPACK" = yes; then
3271 echo "$as_me:$LINENO: result: yes" >&5
3272echo "${ECHO_T}yes" >&6
3273 else
3274 echo "$as_me:$LINENO: result: no" >&5
3275echo "${ECHO_T}no" >&6
3276 fi
3277
3278
1c14217d
VZ
3279 withstring=
3280 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3281echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3282 no_cache=0
3283
3284# Check whether --with-sdl or --without-sdl was given.
3285if test "${with_sdl+set}" = set; then
3286 withval="$with_sdl"
3287
3288 if test "$withval" = yes; then
3289 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3290 else
3291 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3292 fi
3293
3294else
3295
3296 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3297 if test "x$LINE" != x ; then
3298 eval "DEFAULT_$LINE"
3299 else
3300 no_cache=1
3301 fi
3302
3303 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3304
3305fi;
3306
3307 eval "$ac_cv_use_sdl"
3308 if test "$no_cache" != 1; then
3309 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3310 fi
3311
3312 if test "$wxUSE_LIBSDL" = yes; then
3313 echo "$as_me:$LINENO: result: yes" >&5
3314echo "${ECHO_T}yes" >&6
3315 else
3316 echo "$as_me:$LINENO: result: no" >&5
3317echo "${ECHO_T}no" >&6
3318 fi
3319
3320
1c14217d
VZ
3321 withstring=
3322 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3323echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3324 no_cache=0
3325
3326# Check whether --with-gnomeprint or --without-gnomeprint was given.
3327if test "${with_gnomeprint+set}" = set; then
3328 withval="$with_gnomeprint"
3329
3330 if test "$withval" = yes; then
3331 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3332 else
3333 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3334 fi
3335
3336else
3337
3338 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3339 if test "x$LINE" != x ; then
3340 eval "DEFAULT_$LINE"
3341 else
3342 no_cache=1
3343 fi
3344
3345 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3346
3347fi;
3348
3349 eval "$ac_cv_use_gnomeprint"
3350 if test "$no_cache" != 1; then
3351 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3352 fi
3353
3354 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3355 echo "$as_me:$LINENO: result: yes" >&5
3356echo "${ECHO_T}yes" >&6
3357 else
3358 echo "$as_me:$LINENO: result: no" >&5
3359echo "${ECHO_T}no" >&6
3360 fi
3361
3362
2b850ae1
RR
3363 withstring=
3364 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3365echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3366 no_cache=0
3367
3368# Check whether --with-gnomevfs or --without-gnomevfs was given.
3369if test "${with_gnomevfs+set}" = set; then
3370 withval="$with_gnomevfs"
3371
3372 if test "$withval" = yes; then
3373 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3374 else
3375 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3376 fi
3377
3378else
3379
3380 LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3381 if test "x$LINE" != x ; then
3382 eval "DEFAULT_$LINE"
3383 else
3384 no_cache=1
3385 fi
3386
3387 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3388
3389fi;
3390
3391 eval "$ac_cv_use_gnomevfs"
3392 if test "$no_cache" != 1; then
3393 echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3394 fi
3395
3396 if test "$wxUSE_LIBGNOMEVFS" = yes; then
3397 echo "$as_me:$LINENO: result: yes" >&5
3398echo "${ECHO_T}yes" >&6
3399 else
3400 echo "$as_me:$LINENO: result: no" >&5
3401echo "${ECHO_T}no" >&6
3402 fi
3403
3404
3565d135
RR
3405 withstring=
3406 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3407echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3408 no_cache=0
3409
3410# Check whether --with-hildon or --without-hildon was given.
3411if test "${with_hildon+set}" = set; then
3412 withval="$with_hildon"
3413
3414 if test "$withval" = yes; then
3415 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3416 else
3417 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3418 fi
3419
3420else
3421
3422 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3423 if test "x$LINE" != x ; then
3424 eval "DEFAULT_$LINE"
3425 else
3426 no_cache=1
3427 fi
3428
3429 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3430
3431fi;
3432
3433 eval "$ac_cv_use_hildon"
3434 if test "$no_cache" != 1; then
3435 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3436 fi
3437
3438 if test "$wxUSE_LIBHILDON" = yes; then
3439 echo "$as_me:$LINENO: result: yes" >&5
3440echo "${ECHO_T}yes" >&6
3441 else
3442 echo "$as_me:$LINENO: result: no" >&5
3443echo "${ECHO_T}no" >&6
3444 fi
3445
3446
1c14217d
VZ
3447 withstring=
3448 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3449echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3450 no_cache=0
3451
3452# Check whether --with-opengl or --without-opengl was given.
3453if test "${with_opengl+set}" = set; then
3454 withval="$with_opengl"
3455
3456 if test "$withval" = yes; then
3457 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3458 else
3459 ac_cv_use_opengl='wxUSE_OPENGL=no'
3460 fi
3461
3462else
3463
3464 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3465 if test "x$LINE" != x ; then
3466 eval "DEFAULT_$LINE"
3467 else
3468 no_cache=1
3469 fi
3470
3471 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3472
3473fi;
3474
3475 eval "$ac_cv_use_opengl"
3476 if test "$no_cache" != 1; then
3477 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3478 fi
3479
3480 if test "$wxUSE_OPENGL" = yes; then
3481 echo "$as_me:$LINENO: result: yes" >&5
3482echo "${ECHO_T}yes" >&6
3483 else
3484 echo "$as_me:$LINENO: result: no" >&5
3485echo "${ECHO_T}no" >&6
3486 fi
3487
3488
4353a8df
VZ
3489if test "$wxUSE_UNIVERSAL" = "yes"; then
3490
3491# Check whether --with-themes or --without-themes was given.
3492if test "${with_themes+set}" = set; then
3493 withval="$with_themes"
3494 wxUNIV_THEMES="$withval"
3495fi;
3496fi
3497
a848cd7e
SC
3498fi
3499
3500
1c14217d
VZ
3501 withstring=
3502 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3503echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3504 no_cache=0
3505
3506# Check whether --with-dmalloc or --without-dmalloc was given.
3507if test "${with_dmalloc+set}" = set; then
3508 withval="$with_dmalloc"
3509
3510 if test "$withval" = yes; then
3511 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3512 else
3513 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3514 fi
3515
3516else
3517
3518 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3519 if test "x$LINE" != x ; then
3520 eval "DEFAULT_$LINE"
3521 else
3522 no_cache=1
3523 fi
3524
3525 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3526
3527fi;
3528
3529 eval "$ac_cv_use_dmalloc"
3530 if test "$no_cache" != 1; then
3531 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3532 fi
3533
3534 if test "$wxUSE_DMALLOC" = yes; then
3535 echo "$as_me:$LINENO: result: yes" >&5
3536echo "${ECHO_T}yes" >&6
3537 else
3538 echo "$as_me:$LINENO: result: no" >&5
3539echo "${ECHO_T}no" >&6
3540 fi
3541
3542
3543 echo "$as_me:$LINENO: checking for --with-regex" >&5
3544echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3545 no_cache=0
3546
3547# Check whether --with-regex or --without-regex was given.
3548if test "${with_regex+set}" = set; then
3549 withval="$with_regex"
3550
3551 if test "$withval" = yes; then
3552 ac_cv_use_regex='wxUSE_REGEX=yes'
3553 elif test "$withval" = no; then
3554 ac_cv_use_regex='wxUSE_REGEX=no'
3555 elif test "$withval" = sys; then
3556 ac_cv_use_regex='wxUSE_REGEX=sys'
3557 elif test "$withval" = builtin; then
3558 ac_cv_use_regex='wxUSE_REGEX=builtin'
3559 else
3560 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3561echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3562 { (exit 1); exit 1; }; }
3563 fi
3564
3565else
3566
3567 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3568 if test "x$LINE" != x ; then
3569 eval "DEFAULT_$LINE"
3570 else
3571 no_cache=1
3572 fi
3573
3574 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3575
3576fi;
3577
3578 eval "$ac_cv_use_regex"
3579 if test "$no_cache" != 1; then
3580 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3581 fi
3582
3583 if test "$wxUSE_REGEX" = yes; then
3584 echo "$as_me:$LINENO: result: yes" >&5
3585echo "${ECHO_T}yes" >&6
3586 elif test "$wxUSE_REGEX" = no; then
3587 echo "$as_me:$LINENO: result: no" >&5
3588echo "${ECHO_T}no" >&6
3589 elif test "$wxUSE_REGEX" = sys; then
3590 echo "$as_me:$LINENO: result: system version" >&5
3591echo "${ECHO_T}system version" >&6
3592 elif test "$wxUSE_REGEX" = builtin; then
3593 echo "$as_me:$LINENO: result: builtin version" >&5
3594echo "${ECHO_T}builtin version" >&6
3595 else
3596 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3597echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3598 { (exit 1); exit 1; }; }
3599 fi
3600
3601
3602 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3603echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3604 no_cache=0
3605
3606# Check whether --with-zlib or --without-zlib was given.
3607if test "${with_zlib+set}" = set; then
3608 withval="$with_zlib"
3609
3610 if test "$withval" = yes; then
3611 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3612 elif test "$withval" = no; then
3613 ac_cv_use_zlib='wxUSE_ZLIB=no'
3614 elif test "$withval" = sys; then
3615 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3616 elif test "$withval" = builtin; then
3617 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3618 else
3619 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3620echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3621 { (exit 1); exit 1; }; }
3622 fi
3623
3624else
3625
3626 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3627 if test "x$LINE" != x ; then
3628 eval "DEFAULT_$LINE"
3629 else
3630 no_cache=1
3631 fi
3632
3633 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3634
3635fi;
3636
3637 eval "$ac_cv_use_zlib"
3638 if test "$no_cache" != 1; then
3639 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3640 fi
3641
3642 if test "$wxUSE_ZLIB" = yes; then
3643 echo "$as_me:$LINENO: result: yes" >&5
3644echo "${ECHO_T}yes" >&6
3645 elif test "$wxUSE_ZLIB" = no; then
3646 echo "$as_me:$LINENO: result: no" >&5
3647echo "${ECHO_T}no" >&6
3648 elif test "$wxUSE_ZLIB" = sys; then
3649 echo "$as_me:$LINENO: result: system version" >&5
3650echo "${ECHO_T}system version" >&6
3651 elif test "$wxUSE_ZLIB" = builtin; then
3652 echo "$as_me:$LINENO: result: builtin version" >&5
3653echo "${ECHO_T}builtin version" >&6
3654 else
3655 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3656echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3657 { (exit 1); exit 1; }; }
3658 fi
3659
3660
3661 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3662echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3663 no_cache=0
3664
3665# Check whether --with-odbc or --without-odbc was given.
3666if test "${with_odbc+set}" = set; then
3667 withval="$with_odbc"
3668
3669 if test "$withval" = yes; then
3670 ac_cv_use_odbc='wxUSE_ODBC=yes'
3671 elif test "$withval" = no; then
3672 ac_cv_use_odbc='wxUSE_ODBC=no'
3673 elif test "$withval" = sys; then
3674 ac_cv_use_odbc='wxUSE_ODBC=sys'
3675 elif test "$withval" = builtin; then
3676 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3677 else
3678 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3679echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3680 { (exit 1); exit 1; }; }
3681 fi
3682
3683else
3684
3685 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3686 if test "x$LINE" != x ; then
3687 eval "DEFAULT_$LINE"
3688 else
3689 no_cache=1
3690 fi
3691
3692 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3693
3694fi;
3695
3696 eval "$ac_cv_use_odbc"
3697 if test "$no_cache" != 1; then
3698 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3699 fi
3700
3701 if test "$wxUSE_ODBC" = yes; then
3702 echo "$as_me:$LINENO: result: yes" >&5
3703echo "${ECHO_T}yes" >&6
3704 elif test "$wxUSE_ODBC" = no; then
3705 echo "$as_me:$LINENO: result: no" >&5
3706echo "${ECHO_T}no" >&6
3707 elif test "$wxUSE_ODBC" = sys; then
3708 echo "$as_me:$LINENO: result: system version" >&5
3709echo "${ECHO_T}system version" >&6
3710 elif test "$wxUSE_ODBC" = builtin; then
3711 echo "$as_me:$LINENO: result: builtin version" >&5
3712echo "${ECHO_T}builtin version" >&6
3713 else
3714 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3715echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3716 { (exit 1); exit 1; }; }
3717 fi
3718
3719
3720 echo "$as_me:$LINENO: checking for --with-expat" >&5
3721echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3722 no_cache=0
3723
3724# Check whether --with-expat or --without-expat was given.
3725if test "${with_expat+set}" = set; then
3726 withval="$with_expat"
3727
3728 if test "$withval" = yes; then
3729 ac_cv_use_expat='wxUSE_EXPAT=yes'
3730 elif test "$withval" = no; then
3731 ac_cv_use_expat='wxUSE_EXPAT=no'
3732 elif test "$withval" = sys; then
3733 ac_cv_use_expat='wxUSE_EXPAT=sys'
3734 elif test "$withval" = builtin; then
3735 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3736 else
3737 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3738echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3739 { (exit 1); exit 1; }; }
3740 fi
3741
3742else
3743
3744 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3745 if test "x$LINE" != x ; then
3746 eval "DEFAULT_$LINE"
3747 else
3748 no_cache=1
3749 fi
3750
3751 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3752
3753fi;
3754
3755 eval "$ac_cv_use_expat"
3756 if test "$no_cache" != 1; then
3757 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3758 fi
3759
3760 if test "$wxUSE_EXPAT" = yes; then
3761 echo "$as_me:$LINENO: result: yes" >&5
3762echo "${ECHO_T}yes" >&6
3763 elif test "$wxUSE_EXPAT" = no; then
3764 echo "$as_me:$LINENO: result: no" >&5
3765echo "${ECHO_T}no" >&6
3766 elif test "$wxUSE_EXPAT" = sys; then
3767 echo "$as_me:$LINENO: result: system version" >&5
3768echo "${ECHO_T}system version" >&6
3769 elif test "$wxUSE_EXPAT" = builtin; then
3770 echo "$as_me:$LINENO: result: builtin version" >&5
3771echo "${ECHO_T}builtin version" >&6
3772 else
3773 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3774echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3775 { (exit 1); exit 1; }; }
3776 fi
3777
3778
3779
3780
3781 enablestring=
3782 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3783echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3784 no_cache=0
3785 # Check whether --enable-shared or --disable-shared was given.
3786if test "${enable_shared+set}" = set; then
3787 enableval="$enable_shared"
3788
3789 if test "$enableval" = yes; then
3790 ac_cv_use_shared='wxUSE_SHARED=yes'
3791 else
3792 ac_cv_use_shared='wxUSE_SHARED=no'
3793 fi
3794
3795else
3796
3797 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3798 if test "x$LINE" != x ; then
3799 eval "DEFAULT_$LINE"
3800 else
3801 no_cache=1
3802 fi
3803
3804 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3805
3806fi;
3807
3808 eval "$ac_cv_use_shared"
3809 if test "$no_cache" != 1; then
3810 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3811 fi
3812
3813 if test "$wxUSE_SHARED" = yes; then
3814 echo "$as_me:$LINENO: result: yes" >&5
3815echo "${ECHO_T}yes" >&6
3816 else
3817 echo "$as_me:$LINENO: result: no" >&5
3818echo "${ECHO_T}no" >&6
3819 fi
3820
3821
3822 enablestring=
3823 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3824echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3825 no_cache=0
3826 # Check whether --enable-optimise or --disable-optimise was given.
3827if test "${enable_optimise+set}" = set; then
3828 enableval="$enable_optimise"
3829
3830 if test "$enableval" = yes; then
3831 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3832 else
3833 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3834 fi
3835
3836else
3837
3838 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3839 if test "x$LINE" != x ; then
3840 eval "DEFAULT_$LINE"
3841 else
3842 no_cache=1
3843 fi
3844
3845 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3846
3847fi;
3848
3849 eval "$ac_cv_use_optimise"
3850 if test "$no_cache" != 1; then
3851 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3852 fi
3853
3854 if test "$wxUSE_OPTIMISE" = yes; then
3855 echo "$as_me:$LINENO: result: yes" >&5
3856echo "${ECHO_T}yes" >&6
3857 else
3858 echo "$as_me:$LINENO: result: no" >&5
3859echo "${ECHO_T}no" >&6
3860 fi
3861
3862
3863 enablestring=
3864 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3865echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3866 no_cache=0
3867 # Check whether --enable-debug or --disable-debug was given.
3868if test "${enable_debug+set}" = set; then
3869 enableval="$enable_debug"
3870
3871 if test "$enableval" = yes; then
3872 ac_cv_use_debug='wxUSE_DEBUG=yes'
3873 else
3874 ac_cv_use_debug='wxUSE_DEBUG=no'
3875 fi
3876
3877else
3878
3879 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3880 if test "x$LINE" != x ; then
3881 eval "DEFAULT_$LINE"
3882 else
3883 no_cache=1
3884 fi
3885
3886 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3887
3888fi;
3889
3890 eval "$ac_cv_use_debug"
3891 if test "$no_cache" != 1; then
3892 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3893 fi
3894
3895 if test "$wxUSE_DEBUG" = yes; then
3896 echo "$as_me:$LINENO: result: yes" >&5
3897echo "${ECHO_T}yes" >&6
3898 else
3899 echo "$as_me:$LINENO: result: no" >&5
3900echo "${ECHO_T}no" >&6
3901 fi
3902
3903
3904 enablestring=
3905 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3906echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3907 no_cache=0
3908 # Check whether --enable-stl or --disable-stl was given.
3909if test "${enable_stl+set}" = set; then
3910 enableval="$enable_stl"
3911
3912 if test "$enableval" = yes; then
3913 ac_cv_use_stl='wxUSE_STL=yes'
3914 else
3915 ac_cv_use_stl='wxUSE_STL=no'
3916 fi
3917
3918else
3919
3920 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3921 if test "x$LINE" != x ; then
3922 eval "DEFAULT_$LINE"
3923 else
3924 no_cache=1
3925 fi
3926
3927 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3928
3929fi;
3930
3931 eval "$ac_cv_use_stl"
3932 if test "$no_cache" != 1; then
3933 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3934 fi
3935
3936 if test "$wxUSE_STL" = yes; then
3937 echo "$as_me:$LINENO: result: yes" >&5
3938echo "${ECHO_T}yes" >&6
3939 else
3940 echo "$as_me:$LINENO: result: no" >&5
3941echo "${ECHO_T}no" >&6
3942 fi
3943
3944if test "$USE_OS2" = "1"; then
69120ee4 3945 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3946
3947 enablestring=
3948 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3949echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3950 no_cache=0
3951 # Check whether --enable-omf or --disable-omf was given.
3952if test "${enable_omf+set}" = set; then
3953 enableval="$enable_omf"
3954
3955 if test "$enableval" = yes; then
3956 ac_cv_use_omf='wxUSE_OMF=yes'
3957 else
3958 ac_cv_use_omf='wxUSE_OMF=no'
3959 fi
3960
3961else
3962
3963 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3964 if test "x$LINE" != x ; then
3965 eval "DEFAULT_$LINE"
3966 else
3967 no_cache=1
3968 fi
3969
3970 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3971
3972fi;
3973
3974 eval "$ac_cv_use_omf"
3975 if test "$no_cache" != 1; then
3976 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3977 fi
3978
3979 if test "$wxUSE_OMF" = yes; then
3980 echo "$as_me:$LINENO: result: yes" >&5
3981echo "${ECHO_T}yes" >&6
3982 else
3983 echo "$as_me:$LINENO: result: no" >&5
3984echo "${ECHO_T}no" >&6
3985 fi
3986
3987fi
3988
3989if test "$wxUSE_DEBUG" = "yes"; then
3990 DEFAULT_wxUSE_DEBUG_FLAG=yes
3991 DEFAULT_wxUSE_DEBUG_INFO=yes
3992 BUILD=debug
3993elif test "$wxUSE_DEBUG" = "no"; then
3994 DEFAULT_wxUSE_DEBUG_FLAG=no
3995 DEFAULT_wxUSE_DEBUG_INFO=no
3996 BUILD=release
3997fi
3998
3999
4000 enablestring=
4001 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4002echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
4003 no_cache=0
4004 # Check whether --enable-debug_flag or --disable-debug_flag was given.
4005if test "${enable_debug_flag+set}" = set; then
4006 enableval="$enable_debug_flag"
4007
4008 if test "$enableval" = yes; then
4009 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4010 else
4011 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4012 fi
4013
4014else
4015
4016 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
4017 if test "x$LINE" != x ; then
4018 eval "DEFAULT_$LINE"
4019 else
4020 no_cache=1
4021 fi
4022
4023 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
4024
4025fi;
4026
4027 eval "$ac_cv_use_debug_flag"
4028 if test "$no_cache" != 1; then
4029 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
4030 fi
4031
4032 if test "$wxUSE_DEBUG_FLAG" = yes; then
4033 echo "$as_me:$LINENO: result: yes" >&5
4034echo "${ECHO_T}yes" >&6
4035 else
4036 echo "$as_me:$LINENO: result: no" >&5
4037echo "${ECHO_T}no" >&6
4038 fi
4039
4040
4041 enablestring=
4042 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4043echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
4044 no_cache=0
4045 # Check whether --enable-debug_info or --disable-debug_info was given.
4046if test "${enable_debug_info+set}" = set; then
4047 enableval="$enable_debug_info"
4048
4049 if test "$enableval" = yes; then
4050 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4051 else
4052 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4053 fi
4054
4055else
4056
4057 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
4058 if test "x$LINE" != x ; then
4059 eval "DEFAULT_$LINE"
4060 else
4061 no_cache=1
4062 fi
4063
4064 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4065
4066fi;
4067
4068 eval "$ac_cv_use_debug_info"
4069 if test "$no_cache" != 1; then
4070 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4071 fi
4072
4073 if test "$wxUSE_DEBUG_INFO" = yes; then
4074 echo "$as_me:$LINENO: result: yes" >&5
4075echo "${ECHO_T}yes" >&6
4076 else
4077 echo "$as_me:$LINENO: result: no" >&5
4078echo "${ECHO_T}no" >&6
4079 fi
4080
4081
4082 enablestring=
4083 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4084echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
4085 no_cache=0
4086 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
4087if test "${enable_debug_gdb+set}" = set; then
4088 enableval="$enable_debug_gdb"
4089
4090 if test "$enableval" = yes; then
4091 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4092 else
4093 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4094 fi
4095
4096else
4097
4098 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
4099 if test "x$LINE" != x ; then
4100 eval "DEFAULT_$LINE"
4101 else
4102 no_cache=1
4103 fi
4104
4105 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4106
4107fi;
4108
4109 eval "$ac_cv_use_debug_gdb"
4110 if test "$no_cache" != 1; then
4111 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4112 fi
4113
4114 if test "$wxUSE_DEBUG_GDB" = yes; then
4115 echo "$as_me:$LINENO: result: yes" >&5
4116echo "${ECHO_T}yes" >&6
4117 else
4118 echo "$as_me:$LINENO: result: no" >&5
4119echo "${ECHO_T}no" >&6
4120 fi
4121
4122
4123 enablestring=
4124 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4125echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
4126 no_cache=0
4127 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
4128if test "${enable_debug_cntxt+set}" = set; then
4129 enableval="$enable_debug_cntxt"
4130
4131 if test "$enableval" = yes; then
4132 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4133 else
4134 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4135 fi
4136
4137else
4138
4139 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
4140 if test "x$LINE" != x ; then
4141 eval "DEFAULT_$LINE"
4142 else
4143 no_cache=1
4144 fi
4145
4146 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4147
4148fi;
4149
4150 eval "$ac_cv_use_debug_cntxt"
4151 if test "$no_cache" != 1; then
4152 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4153 fi
4154
4155 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4156 echo "$as_me:$LINENO: result: yes" >&5
4157echo "${ECHO_T}yes" >&6
4158 else
4159 echo "$as_me:$LINENO: result: no" >&5
4160echo "${ECHO_T}no" >&6
4161 fi
4162
4163
4164 enablestring=
4165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4166echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4167 no_cache=0
4168 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4169if test "${enable_mem_tracing+set}" = set; then
4170 enableval="$enable_mem_tracing"
4171
4172 if test "$enableval" = yes; then
4173 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4174 else
4175 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4176 fi
4177
4178else
4179
4180 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4181 if test "x$LINE" != x ; then
4182 eval "DEFAULT_$LINE"
4183 else
4184 no_cache=1
4185 fi
4186
4187 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4188
4189fi;
4190
4191 eval "$ac_cv_use_mem_tracing"
4192 if test "$no_cache" != 1; then
4193 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4194 fi
4195
4196 if test "$wxUSE_MEM_TRACING" = yes; then
4197 echo "$as_me:$LINENO: result: yes" >&5
4198echo "${ECHO_T}yes" >&6
4199 else
4200 echo "$as_me:$LINENO: result: no" >&5
4201echo "${ECHO_T}no" >&6
4202 fi
4203
4204
4205 enablestring=
4206 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4207echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4208 no_cache=0
4209 # Check whether --enable-profile or --disable-profile was given.
4210if test "${enable_profile+set}" = set; then
4211 enableval="$enable_profile"
4212
4213 if test "$enableval" = yes; then
4214 ac_cv_use_profile='wxUSE_PROFILE=yes'
4215 else
4216 ac_cv_use_profile='wxUSE_PROFILE=no'
4217 fi
4218
4219else
4220
4221 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4222 if test "x$LINE" != x ; then
4223 eval "DEFAULT_$LINE"
4224 else
4225 no_cache=1
4226 fi
4227
4228 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4229
4230fi;
4231
4232 eval "$ac_cv_use_profile"
4233 if test "$no_cache" != 1; then
4234 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4235 fi
4236
4237 if test "$wxUSE_PROFILE" = yes; then
4238 echo "$as_me:$LINENO: result: yes" >&5
4239echo "${ECHO_T}yes" >&6
4240 else
4241 echo "$as_me:$LINENO: result: no" >&5
4242echo "${ECHO_T}no" >&6
4243 fi
4244
4245
4246 enablestring=
4247 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4248echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4249 no_cache=0
4250 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4251if test "${enable_no_rtti+set}" = set; then
4252 enableval="$enable_no_rtti"
4253
4254 if test "$enableval" = yes; then
4255 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4256 else
4257 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4258 fi
4259
4260else
4261
4262 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4263 if test "x$LINE" != x ; then
4264 eval "DEFAULT_$LINE"
4265 else
4266 no_cache=1
4267 fi
4268
4269 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4270
4271fi;
4272
4273 eval "$ac_cv_use_no_rtti"
4274 if test "$no_cache" != 1; then
4275 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4276 fi
4277
4278 if test "$wxUSE_NO_RTTI" = yes; then
4279 echo "$as_me:$LINENO: result: yes" >&5
4280echo "${ECHO_T}yes" >&6
4281 else
4282 echo "$as_me:$LINENO: result: no" >&5
4283echo "${ECHO_T}no" >&6
4284 fi
4285
4286
4287 enablestring=
4288 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4289echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4290 no_cache=0
4291 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4292if test "${enable_no_exceptions+set}" = set; then
4293 enableval="$enable_no_exceptions"
4294
4295 if test "$enableval" = yes; then
4296 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4297 else
4298 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4299 fi
4300
4301else
4302
4303 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4304 if test "x$LINE" != x ; then
4305 eval "DEFAULT_$LINE"
4306 else
4307 no_cache=1
4308 fi
4309
4310 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4311
4312fi;
4313
4314 eval "$ac_cv_use_no_exceptions"
4315 if test "$no_cache" != 1; then
4316 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4317 fi
4318
4319 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4320 echo "$as_me:$LINENO: result: yes" >&5
4321echo "${ECHO_T}yes" >&6
4322 else
4323 echo "$as_me:$LINENO: result: no" >&5
4324echo "${ECHO_T}no" >&6
4325 fi
4326
4327
4328 enablestring=
4329 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4330echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4331 no_cache=0
4332 # Check whether --enable-permissive or --disable-permissive was given.
4333if test "${enable_permissive+set}" = set; then
4334 enableval="$enable_permissive"
4335
4336 if test "$enableval" = yes; then
4337 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4338 else
4339 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4340 fi
4341
4342else
4343
4344 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4345 if test "x$LINE" != x ; then
4346 eval "DEFAULT_$LINE"
4347 else
4348 no_cache=1
4349 fi
4350
4351 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4352
4353fi;
4354
4355 eval "$ac_cv_use_permissive"
4356 if test "$no_cache" != 1; then
4357 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4358 fi
4359
4360 if test "$wxUSE_PERMISSIVE" = yes; then
4361 echo "$as_me:$LINENO: result: yes" >&5
4362echo "${ECHO_T}yes" >&6
4363 else
4364 echo "$as_me:$LINENO: result: no" >&5
4365echo "${ECHO_T}no" >&6
4366 fi
4367
4368
4369 enablestring=
4370 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4371echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4372 no_cache=0
4373 # Check whether --enable-no_deps or --disable-no_deps was given.
4374if test "${enable_no_deps+set}" = set; then
4375 enableval="$enable_no_deps"
4376
4377 if test "$enableval" = yes; then
4378 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4379 else
4380 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4381 fi
4382
4383else
4384
4385 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4386 if test "x$LINE" != x ; then
4387 eval "DEFAULT_$LINE"
4388 else
4389 no_cache=1
4390 fi
4391
4392 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4393
4394fi;
4395
4396 eval "$ac_cv_use_no_deps"
4397 if test "$no_cache" != 1; then
4398 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4399 fi
4400
4401 if test "$wxUSE_NO_DEPS" = yes; then
4402 echo "$as_me:$LINENO: result: yes" >&5
4403echo "${ECHO_T}yes" >&6
4404 else
4405 echo "$as_me:$LINENO: result: no" >&5
4406echo "${ECHO_T}no" >&6
4407 fi
4408
4409
95768535 4410 enablestring=
7afc46ab
KO
4411 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4412echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4413 no_cache=0
4414 # Check whether --enable-universal_binary or --disable-universal_binary was given.
4415if test "${enable_universal_binary+set}" = set; then
4416 enableval="$enable_universal_binary"
4417
95768535 4418 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
7afc46ab
KO
4419
4420else
4421
4422 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4423 if test "x$LINE" != x ; then
4424 eval "DEFAULT_$LINE"
95768535 4425 wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
7afc46ab
KO
4426 else
4427 no_cache=1
95768535 4428 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
7afc46ab
KO
4429 fi
4430
7afc46ab
KO
4431fi;
4432
95768535 4433 eval "$wx_cv_use_universal_binary"
7afc46ab 4434 if test "$no_cache" != 1; then
95768535 4435 echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
7afc46ab
KO
4436 fi
4437
95768535
MW
4438 echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
4439echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6
7afc46ab
KO
4440
4441
a848cd7e 4442
dee1a63f
MB
4443 enablestring=enable
4444 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4445echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4446 no_cache=0
dee1a63f
MB
4447 # Check whether --enable-compat24 or --disable-compat24 was given.
4448if test "${enable_compat24+set}" = set; then
4449 enableval="$enable_compat24"
a848cd7e
SC
4450
4451 if test "$enableval" = yes; then
dee1a63f 4452 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4453 else
dee1a63f 4454 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4455 fi
4456
4457else
4458
dee1a63f 4459 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4460 if test "x$LINE" != x ; then
4461 eval "DEFAULT_$LINE"
4462 else
4463 no_cache=1
4464 fi
4465
dee1a63f 4466 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4467
4468fi;
4469
dee1a63f 4470 eval "$ac_cv_use_compat24"
a848cd7e 4471 if test "$no_cache" != 1; then
dee1a63f 4472 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4473 fi
4474
dee1a63f 4475 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4476 echo "$as_me:$LINENO: result: yes" >&5
4477echo "${ECHO_T}yes" >&6
4478 else
4479 echo "$as_me:$LINENO: result: no" >&5
4480echo "${ECHO_T}no" >&6
4481 fi
4482
4483
4484 enablestring=disable
dee1a63f
MB
4485 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4486echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4487 no_cache=0
dee1a63f
MB
4488 # Check whether --enable-compat26 or --disable-compat26 was given.
4489if test "${enable_compat26+set}" = set; then
4490 enableval="$enable_compat26"
a848cd7e
SC
4491
4492 if test "$enableval" = yes; then
dee1a63f 4493 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4494 else
dee1a63f 4495 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4496 fi
4497
4498else
4499
dee1a63f 4500 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4501 if test "x$LINE" != x ; then
4502 eval "DEFAULT_$LINE"
4503 else
4504 no_cache=1
4505 fi
4506
dee1a63f 4507 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4508
4509fi;
4510
dee1a63f 4511 eval "$ac_cv_use_compat26"
a848cd7e 4512 if test "$no_cache" != 1; then
dee1a63f 4513 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4514 fi
4515
dee1a63f 4516 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4517 echo "$as_me:$LINENO: result: yes" >&5
4518echo "${ECHO_T}yes" >&6
4519 else
4520 echo "$as_me:$LINENO: result: no" >&5
4521echo "${ECHO_T}no" >&6
4522 fi
4523
4524
ffa0583f
RL
4525
4526 enablestring=
4527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4528echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4529 no_cache=0
4530 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4531if test "${enable_rpath+set}" = set; then
4532 enableval="$enable_rpath"
ffa0583f
RL
4533
4534 if test "$enableval" = yes; then
4535 ac_cv_use_rpath='wxUSE_RPATH=yes'
4536 else
4537 ac_cv_use_rpath='wxUSE_RPATH=no'
4538 fi
4539
4540else
4541
4542 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4543 if test "x$LINE" != x ; then
4544 eval "DEFAULT_$LINE"
4545 else
4546 no_cache=1
4547 fi
4548
4549 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4550
a848cd7e
SC
4551fi;
4552
ffa0583f
RL
4553 eval "$ac_cv_use_rpath"
4554 if test "$no_cache" != 1; then
4555 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4556 fi
4557
4558 if test "$wxUSE_RPATH" = yes; then
4559 echo "$as_me:$LINENO: result: yes" >&5
4560echo "${ECHO_T}yes" >&6
4561 else
4562 echo "$as_me:$LINENO: result: no" >&5
4563echo "${ECHO_T}no" >&6
4564 fi
4565
a848cd7e
SC
4566
4567
4568
4569
4570 enablestring=
4571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4572echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4573 no_cache=0
4574 # Check whether --enable-intl or --disable-intl was given.
4575if test "${enable_intl+set}" = set; then
4576 enableval="$enable_intl"
4577
4578 if test "$enableval" = yes; then
4579 ac_cv_use_intl='wxUSE_INTL=yes'
4580 else
4581 ac_cv_use_intl='wxUSE_INTL=no'
4582 fi
4583
4584else
4585
4586 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4587 if test "x$LINE" != x ; then
4588 eval "DEFAULT_$LINE"
4589 else
4590 no_cache=1
4591 fi
4592
4593 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4594
4595fi;
4596
4597 eval "$ac_cv_use_intl"
4598 if test "$no_cache" != 1; then
4599 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4600 fi
4601
4602 if test "$wxUSE_INTL" = yes; then
4603 echo "$as_me:$LINENO: result: yes" >&5
4604echo "${ECHO_T}yes" >&6
4605 else
4606 echo "$as_me:$LINENO: result: no" >&5
4607echo "${ECHO_T}no" >&6
4608 fi
4609
4610
4611 enablestring=
4612 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4613echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4614 no_cache=0
4615 # Check whether --enable-config or --disable-config was given.
4616if test "${enable_config+set}" = set; then
4617 enableval="$enable_config"
4618
4619 if test "$enableval" = yes; then
4620 ac_cv_use_config='wxUSE_CONFIG=yes'
4621 else
4622 ac_cv_use_config='wxUSE_CONFIG=no'
4623 fi
4624
4625else
4626
4627 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4628 if test "x$LINE" != x ; then
4629 eval "DEFAULT_$LINE"
4630 else
4631 no_cache=1
4632 fi
4633
4634 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4635
4636fi;
4637
4638 eval "$ac_cv_use_config"
4639 if test "$no_cache" != 1; then
4640 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4641 fi
4642
4643 if test "$wxUSE_CONFIG" = yes; then
4644 echo "$as_me:$LINENO: result: yes" >&5
4645echo "${ECHO_T}yes" >&6
4646 else
4647 echo "$as_me:$LINENO: result: no" >&5
4648echo "${ECHO_T}no" >&6
4649 fi
4650
4651
4652
4653 enablestring=
4654 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4655echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4656 no_cache=0
4657 # Check whether --enable-protocols or --disable-protocols was given.
4658if test "${enable_protocols+set}" = set; then
4659 enableval="$enable_protocols"
4660
4661 if test "$enableval" = yes; then
4662 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4663 else
4664 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4665 fi
4666
4667else
4668
4669 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4670 if test "x$LINE" != x ; then
4671 eval "DEFAULT_$LINE"
4672 else
4673 no_cache=1
4674 fi
4675
4676 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4677
4678fi;
4679
4680 eval "$ac_cv_use_protocols"
4681 if test "$no_cache" != 1; then
4682 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4683 fi
4684
4685 if test "$wxUSE_PROTOCOL" = yes; then
4686 echo "$as_me:$LINENO: result: yes" >&5
4687echo "${ECHO_T}yes" >&6
4688 else
4689 echo "$as_me:$LINENO: result: no" >&5
4690echo "${ECHO_T}no" >&6
4691 fi
4692
4693
4694 enablestring=
4695 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4696echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4697 no_cache=0
4698 # Check whether --enable-ftp or --disable-ftp was given.
4699if test "${enable_ftp+set}" = set; then
4700 enableval="$enable_ftp"
4701
4702 if test "$enableval" = yes; then
4703 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4704 else
4705 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4706 fi
4707
4708else
4709
4710 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4711 if test "x$LINE" != x ; then
4712 eval "DEFAULT_$LINE"
4713 else
4714 no_cache=1
4715 fi
4716
4717 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4718
4719fi;
4720
4721 eval "$ac_cv_use_ftp"
4722 if test "$no_cache" != 1; then
4723 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4724 fi
4725
4726 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4727 echo "$as_me:$LINENO: result: yes" >&5
4728echo "${ECHO_T}yes" >&6
4729 else
4730 echo "$as_me:$LINENO: result: no" >&5
4731echo "${ECHO_T}no" >&6
4732 fi
4733
4734
4735 enablestring=
4736 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4737echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4738 no_cache=0
4739 # Check whether --enable-http or --disable-http was given.
4740if test "${enable_http+set}" = set; then
4741 enableval="$enable_http"
4742
4743 if test "$enableval" = yes; then
4744 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4745 else
4746 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4747 fi
4748
4749else
4750
4751 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4752 if test "x$LINE" != x ; then
4753 eval "DEFAULT_$LINE"
4754 else
4755 no_cache=1
4756 fi
4757
4758 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4759
4760fi;
4761
4762 eval "$ac_cv_use_http"
4763 if test "$no_cache" != 1; then
4764 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4765 fi
4766
4767 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4768 echo "$as_me:$LINENO: result: yes" >&5
4769echo "${ECHO_T}yes" >&6
4770 else
4771 echo "$as_me:$LINENO: result: no" >&5
4772echo "${ECHO_T}no" >&6
4773 fi
4774
4775
4776 enablestring=
4777 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4778echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4779 no_cache=0
4780 # Check whether --enable-fileproto or --disable-fileproto was given.
4781if test "${enable_fileproto+set}" = set; then
4782 enableval="$enable_fileproto"
4783
4784 if test "$enableval" = yes; then
4785 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4786 else
4787 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4788 fi
4789
4790else
4791
4792 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4793 if test "x$LINE" != x ; then
4794 eval "DEFAULT_$LINE"
4795 else
4796 no_cache=1
4797 fi
4798
4799 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4800
4801fi;
4802
4803 eval "$ac_cv_use_fileproto"
4804 if test "$no_cache" != 1; then
4805 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4806 fi
4807
4808 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4809 echo "$as_me:$LINENO: result: yes" >&5
4810echo "${ECHO_T}yes" >&6
4811 else
4812 echo "$as_me:$LINENO: result: no" >&5
4813echo "${ECHO_T}no" >&6
4814 fi
4815
4816
4817 enablestring=
4818 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4819echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4820 no_cache=0
4821 # Check whether --enable-sockets or --disable-sockets was given.
4822if test "${enable_sockets+set}" = set; then
4823 enableval="$enable_sockets"
4824
4825 if test "$enableval" = yes; then
4826 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4827 else
4828 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4829 fi
4830
4831else
4832
4833 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4834 if test "x$LINE" != x ; then
4835 eval "DEFAULT_$LINE"
4836 else
4837 no_cache=1
4838 fi
4839
4840 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4841
4842fi;
4843
4844 eval "$ac_cv_use_sockets"
4845 if test "$no_cache" != 1; then
4846 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4847 fi
4848
4849 if test "$wxUSE_SOCKETS" = yes; then
4850 echo "$as_me:$LINENO: result: yes" >&5
4851echo "${ECHO_T}yes" >&6
4852 else
4853 echo "$as_me:$LINENO: result: no" >&5
4854echo "${ECHO_T}no" >&6
4855 fi
4856
4857
4858 enablestring=
4859 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4860echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4861 no_cache=0
4862 # Check whether --enable-ole or --disable-ole was given.
4863if test "${enable_ole+set}" = set; then
4864 enableval="$enable_ole"
4865
4866 if test "$enableval" = yes; then
4867 ac_cv_use_ole='wxUSE_OLE=yes'
4868 else
4869 ac_cv_use_ole='wxUSE_OLE=no'
4870 fi
4871
4872else
4873
4874 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4875 if test "x$LINE" != x ; then
4876 eval "DEFAULT_$LINE"
4877 else
4878 no_cache=1
4879 fi
4880
4881 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4882
4883fi;
4884
4885 eval "$ac_cv_use_ole"
4886 if test "$no_cache" != 1; then
4887 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4888 fi
4889
4890 if test "$wxUSE_OLE" = yes; then
4891 echo "$as_me:$LINENO: result: yes" >&5
4892echo "${ECHO_T}yes" >&6
4893 else
4894 echo "$as_me:$LINENO: result: no" >&5
4895echo "${ECHO_T}no" >&6
4896 fi
4897
4898
4899 enablestring=
4900 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4901echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4902 no_cache=0
4903 # Check whether --enable-dataobj or --disable-dataobj was given.
4904if test "${enable_dataobj+set}" = set; then
4905 enableval="$enable_dataobj"
4906
4907 if test "$enableval" = yes; then
4908 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4909 else
4910 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4911 fi
4912
4913else
4914
4915 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4916 if test "x$LINE" != x ; then
4917 eval "DEFAULT_$LINE"
4918 else
4919 no_cache=1
4920 fi
4921
4922 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4923
4924fi;
4925
4926 eval "$ac_cv_use_dataobj"
4927 if test "$no_cache" != 1; then
4928 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4929 fi
4930
4931 if test "$wxUSE_DATAOBJ" = yes; then
4932 echo "$as_me:$LINENO: result: yes" >&5
4933echo "${ECHO_T}yes" >&6
4934 else
4935 echo "$as_me:$LINENO: result: no" >&5
4936echo "${ECHO_T}no" >&6
4937 fi
4938
4939
4940
4941 enablestring=
4942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4943echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4944 no_cache=0
4945 # Check whether --enable-ipc or --disable-ipc was given.
4946if test "${enable_ipc+set}" = set; then
4947 enableval="$enable_ipc"
4948
4949 if test "$enableval" = yes; then
4950 ac_cv_use_ipc='wxUSE_IPC=yes'
4951 else
4952 ac_cv_use_ipc='wxUSE_IPC=no'
4953 fi
4954
4955else
4956
4957 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4958 if test "x$LINE" != x ; then
4959 eval "DEFAULT_$LINE"
4960 else
4961 no_cache=1
4962 fi
4963
4964 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4965
4966fi;
4967
4968 eval "$ac_cv_use_ipc"
4969 if test "$no_cache" != 1; then
4970 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4971 fi
4972
4973 if test "$wxUSE_IPC" = yes; then
4974 echo "$as_me:$LINENO: result: yes" >&5
4975echo "${ECHO_T}yes" >&6
4976 else
4977 echo "$as_me:$LINENO: result: no" >&5
4978echo "${ECHO_T}no" >&6
4979 fi
4980
4981
4982
4983 enablestring=
4984 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4985echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4986 no_cache=0
4987 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4988if test "${enable_apple_ieee+set}" = set; then
4989 enableval="$enable_apple_ieee"
4990
4991 if test "$enableval" = yes; then
4992 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4993 else
4994 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4995 fi
4996
4997else
4998
4999 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
5000 if test "x$LINE" != x ; then
5001 eval "DEFAULT_$LINE"
5002 else
5003 no_cache=1
5004 fi
5005
5006 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
5007
5008fi;
5009
5010 eval "$ac_cv_use_apple_ieee"
5011 if test "$no_cache" != 1; then
5012 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
5013 fi
5014
5015 if test "$wxUSE_APPLE_IEEE" = yes; then
5016 echo "$as_me:$LINENO: result: yes" >&5
5017echo "${ECHO_T}yes" >&6
5018 else
5019 echo "$as_me:$LINENO: result: no" >&5
5020echo "${ECHO_T}no" >&6
5021 fi
5022
5023
81f90336
MW
5024 enablestring=
5025 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
5026echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
5027 no_cache=0
5028 # Check whether --enable-arcstream or --disable-arcstream was given.
5029if test "${enable_arcstream+set}" = set; then
5030 enableval="$enable_arcstream"
5031
5032 if test "$enableval" = yes; then
9e8e867f 5033 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 5034 else
9e8e867f 5035 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
5036 fi
5037
5038else
5039
9e8e867f 5040 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
5041 if test "x$LINE" != x ; then
5042 eval "DEFAULT_$LINE"
5043 else
5044 no_cache=1
5045 fi
5046
9e8e867f 5047 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
5048
5049fi;
5050
5051 eval "$ac_cv_use_arcstream"
5052 if test "$no_cache" != 1; then
5053 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
5054 fi
5055
9e8e867f 5056 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
5057 echo "$as_me:$LINENO: result: yes" >&5
5058echo "${ECHO_T}yes" >&6
5059 else
5060 echo "$as_me:$LINENO: result: no" >&5
5061echo "${ECHO_T}no" >&6
5062 fi
5063
5064
f8f6c91a
MW
5065 enablestring=
5066 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backingfile" >&5
5067echo $ECHO_N "checking for --${enablestring:-enable}-backingfile... $ECHO_C" >&6
5068 no_cache=0
5069 # Check whether --enable-backingfile or --disable-backingfile was given.
5070if test "${enable_backingfile+set}" = set; then
5071 enableval="$enable_backingfile"
5072
5073 if test "$enableval" = yes; then
5074 ac_cv_use_backingfile='wxUSE_BACKINGFILE=yes'
5075 else
5076 ac_cv_use_backingfile='wxUSE_BACKINGFILE=no'
5077 fi
5078
5079else
5080
5081 LINE=`grep "wxUSE_BACKINGFILE" ${wx_arg_cache_file}`
5082 if test "x$LINE" != x ; then
5083 eval "DEFAULT_$LINE"
5084 else
5085 no_cache=1
5086 fi
5087
5088 ac_cv_use_backingfile='wxUSE_BACKINGFILE='$DEFAULT_wxUSE_BACKINGFILE
5089
5090fi;
5091
5092 eval "$ac_cv_use_backingfile"
5093 if test "$no_cache" != 1; then
5094 echo $ac_cv_use_backingfile >> ${wx_arg_cache_file}.tmp
5095 fi
5096
5097 if test "$wxUSE_BACKINGFILE" = yes; then
5098 echo "$as_me:$LINENO: result: yes" >&5
5099echo "${ECHO_T}yes" >&6
5100 else
5101 echo "$as_me:$LINENO: result: no" >&5
5102echo "${ECHO_T}no" >&6
5103 fi
5104
5105
a848cd7e 5106 enablestring=
36b6448c
VZ
5107 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5108echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 5109 no_cache=0
36b6448c
VZ
5110 # Check whether --enable-backtrace or --disable-backtrace was given.
5111if test "${enable_backtrace+set}" = set; then
5112 enableval="$enable_backtrace"
a848cd7e
SC
5113
5114 if test "$enableval" = yes; then
36b6448c 5115 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 5116 else
36b6448c 5117 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
5118 fi
5119
5120else
5121
36b6448c 5122 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
5123 if test "x$LINE" != x ; then
5124 eval "DEFAULT_$LINE"
5125 else
5126 no_cache=1
5127 fi
5128
36b6448c 5129 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
5130
5131fi;
5132
36b6448c 5133 eval "$ac_cv_use_backtrace"
a848cd7e 5134 if test "$no_cache" != 1; then
36b6448c 5135 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5136 fi
5137
36b6448c 5138 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
5139 echo "$as_me:$LINENO: result: yes" >&5
5140echo "${ECHO_T}yes" >&6
5141 else
5142 echo "$as_me:$LINENO: result: no" >&5
5143echo "${ECHO_T}no" >&6
5144 fi
5145
5146
eaff0f0d 5147 enablestring=
36b6448c
VZ
5148 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5149echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 5150 no_cache=0
36b6448c
VZ
5151 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5152if test "${enable_catch_segvs+set}" = set; then
5153 enableval="$enable_catch_segvs"
eaff0f0d
VZ
5154
5155 if test "$enableval" = yes; then
36b6448c 5156 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 5157 else
36b6448c 5158 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
5159 fi
5160
5161else
5162
36b6448c 5163 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
5164 if test "x$LINE" != x ; then
5165 eval "DEFAULT_$LINE"
5166 else
5167 no_cache=1
5168 fi
5169
36b6448c 5170 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
5171
5172fi;
5173
36b6448c 5174 eval "$ac_cv_use_catch_segvs"
eaff0f0d 5175 if test "$no_cache" != 1; then
36b6448c 5176 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
5177 fi
5178
36b6448c 5179 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
5180 echo "$as_me:$LINENO: result: yes" >&5
5181echo "${ECHO_T}yes" >&6
5182 else
5183 echo "$as_me:$LINENO: result: no" >&5
5184echo "${ECHO_T}no" >&6
5185 fi
5186
5187
a848cd7e
SC
5188 enablestring=
5189 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5190echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5191 no_cache=0
5192 # Check whether --enable-cmdline or --disable-cmdline was given.
5193if test "${enable_cmdline+set}" = set; then
5194 enableval="$enable_cmdline"
5195
5196 if test "$enableval" = yes; then
5197 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5198 else
5199 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5200 fi
5201
5202else
5203
5204 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5205 if test "x$LINE" != x ; then
5206 eval "DEFAULT_$LINE"
5207 else
5208 no_cache=1
5209 fi
5210
5211 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5212
5213fi;
5214
5215 eval "$ac_cv_use_cmdline"
5216 if test "$no_cache" != 1; then
5217 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5218 fi
5219
5220 if test "$wxUSE_CMDLINE_PARSER" = yes; then
5221 echo "$as_me:$LINENO: result: yes" >&5
5222echo "${ECHO_T}yes" >&6
5223 else
5224 echo "$as_me:$LINENO: result: no" >&5
5225echo "${ECHO_T}no" >&6
5226 fi
5227
5228
5229 enablestring=
5230 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5231echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5232 no_cache=0
5233 # Check whether --enable-datetime or --disable-datetime was given.
5234if test "${enable_datetime+set}" = set; then
5235 enableval="$enable_datetime"
5236
5237 if test "$enableval" = yes; then
5238 ac_cv_use_datetime='wxUSE_DATETIME=yes'
5239 else
5240 ac_cv_use_datetime='wxUSE_DATETIME=no'
5241 fi
5242
5243else
5244
5245 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5246 if test "x$LINE" != x ; then
5247 eval "DEFAULT_$LINE"
5248 else
5249 no_cache=1
5250 fi
5251
5252 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5253
5254fi;
5255
5256 eval "$ac_cv_use_datetime"
5257 if test "$no_cache" != 1; then
5258 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5259 fi
5260
5261 if test "$wxUSE_DATETIME" = yes; then
5262 echo "$as_me:$LINENO: result: yes" >&5
5263echo "${ECHO_T}yes" >&6
5264 else
5265 echo "$as_me:$LINENO: result: no" >&5
5266echo "${ECHO_T}no" >&6
5267 fi
5268
5269
36b6448c
VZ
5270 enablestring=
5271 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5272echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5273 no_cache=0
5274 # Check whether --enable-debugreport or --disable-debugreport was given.
5275if test "${enable_debugreport+set}" = set; then
5276 enableval="$enable_debugreport"
5277
5278 if test "$enableval" = yes; then
5279 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5280 else
5281 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5282 fi
5283
5284else
5285
5286 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5287 if test "x$LINE" != x ; then
5288 eval "DEFAULT_$LINE"
5289 else
5290 no_cache=1
5291 fi
5292
5293 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5294
5295fi;
5296
5297 eval "$ac_cv_use_debugreport"
5298 if test "$no_cache" != 1; then
5299 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5300 fi
5301
5302 if test "$wxUSE_DEBUGREPORT" = yes; then
5303 echo "$as_me:$LINENO: result: yes" >&5
5304echo "${ECHO_T}yes" >&6
5305 else
5306 echo "$as_me:$LINENO: result: no" >&5
5307echo "${ECHO_T}no" >&6
5308 fi
5309
5310
a848cd7e
SC
5311 enablestring=
5312 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5313echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5314 no_cache=0
5315 # Check whether --enable-dialupman or --disable-dialupman was given.
5316if test "${enable_dialupman+set}" = set; then
5317 enableval="$enable_dialupman"
5318
5319 if test "$enableval" = yes; then
5320 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5321 else
5322 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5323 fi
5324
5325else
5326
5327 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5328 if test "x$LINE" != x ; then
5329 eval "DEFAULT_$LINE"
5330 else
5331 no_cache=1
5332 fi
5333
5334 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5335
5336fi;
5337
5338 eval "$ac_cv_use_dialupman"
5339 if test "$no_cache" != 1; then
5340 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5341 fi
5342
5343 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5344 echo "$as_me:$LINENO: result: yes" >&5
5345echo "${ECHO_T}yes" >&6
5346 else
5347 echo "$as_me:$LINENO: result: no" >&5
5348echo "${ECHO_T}no" >&6
5349 fi
5350
5351
5352 enablestring=
5353 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5354echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5355 no_cache=0
5356 # Check whether --enable-dynlib or --disable-dynlib was given.
5357if test "${enable_dynlib+set}" = set; then
5358 enableval="$enable_dynlib"
5359
5360 if test "$enableval" = yes; then
5361 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5362 else
5363 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5364 fi
5365
5366else
5367
5368 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5369 if test "x$LINE" != x ; then
5370 eval "DEFAULT_$LINE"
5371 else
5372 no_cache=1
5373 fi
5374
5375 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5376
5377fi;
5378
5379 eval "$ac_cv_use_dynlib"
5380 if test "$no_cache" != 1; then
5381 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5382 fi
5383
5384 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5385 echo "$as_me:$LINENO: result: yes" >&5
5386echo "${ECHO_T}yes" >&6
5387 else
5388 echo "$as_me:$LINENO: result: no" >&5
5389echo "${ECHO_T}no" >&6
5390 fi
5391
5392
5393 enablestring=
5394 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5395echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5396 no_cache=0
5397 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5398if test "${enable_dynamicloader+set}" = set; then
5399 enableval="$enable_dynamicloader"
5400
5401 if test "$enableval" = yes; then
5402 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5403 else
5404 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5405 fi
5406
5407else
5408
5409 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5410 if test "x$LINE" != x ; then
5411 eval "DEFAULT_$LINE"
5412 else
5413 no_cache=1
5414 fi
5415
5416 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5417
5418fi;
5419
5420 eval "$ac_cv_use_dynamicloader"
5421 if test "$no_cache" != 1; then
5422 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5423 fi
5424
5425 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5426 echo "$as_me:$LINENO: result: yes" >&5
5427echo "${ECHO_T}yes" >&6
5428 else
5429 echo "$as_me:$LINENO: result: no" >&5
5430echo "${ECHO_T}no" >&6
5431 fi
5432
5433
5434 enablestring=
5435 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5436echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5437 no_cache=0
5438 # Check whether --enable-exceptions or --disable-exceptions was given.
5439if test "${enable_exceptions+set}" = set; then
5440 enableval="$enable_exceptions"
5441
5442 if test "$enableval" = yes; then
5443 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5444 else
5445 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5446 fi
5447
5448else
5449
5450 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5451 if test "x$LINE" != x ; then
5452 eval "DEFAULT_$LINE"
5453 else
5454 no_cache=1
5455 fi
5456
5457 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5458
5459fi;
5460
5461 eval "$ac_cv_use_exceptions"
5462 if test "$no_cache" != 1; then
5463 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5464 fi
5465
5466 if test "$wxUSE_EXCEPTIONS" = yes; then
5467 echo "$as_me:$LINENO: result: yes" >&5
5468echo "${ECHO_T}yes" >&6
5469 else
5470 echo "$as_me:$LINENO: result: no" >&5
5471echo "${ECHO_T}no" >&6
5472 fi
5473
5474
5475 enablestring=
5476 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5477echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5478 no_cache=0
5479 # Check whether --enable-ffile or --disable-ffile was given.
5480if test "${enable_ffile+set}" = set; then
5481 enableval="$enable_ffile"
5482
5483 if test "$enableval" = yes; then
5484 ac_cv_use_ffile='wxUSE_FFILE=yes'
5485 else
5486 ac_cv_use_ffile='wxUSE_FFILE=no'
5487 fi
5488
5489else
5490
5491 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5492 if test "x$LINE" != x ; then
5493 eval "DEFAULT_$LINE"
5494 else
5495 no_cache=1
5496 fi
5497
5498 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5499
5500fi;
5501
5502 eval "$ac_cv_use_ffile"
5503 if test "$no_cache" != 1; then
5504 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5505 fi
5506
5507 if test "$wxUSE_FFILE" = yes; then
5508 echo "$as_me:$LINENO: result: yes" >&5
5509echo "${ECHO_T}yes" >&6
5510 else
5511 echo "$as_me:$LINENO: result: no" >&5
5512echo "${ECHO_T}no" >&6
5513 fi
5514
5515
5516 enablestring=
5517 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5518echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5519 no_cache=0
5520 # Check whether --enable-file or --disable-file was given.
5521if test "${enable_file+set}" = set; then
5522 enableval="$enable_file"
5523
5524 if test "$enableval" = yes; then
5525 ac_cv_use_file='wxUSE_FILE=yes'
5526 else
5527 ac_cv_use_file='wxUSE_FILE=no'
5528 fi
5529
5530else
5531
5532 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5533 if test "x$LINE" != x ; then
5534 eval "DEFAULT_$LINE"
5535 else
5536 no_cache=1
5537 fi
5538
5539 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5540
5541fi;
5542
5543 eval "$ac_cv_use_file"
5544 if test "$no_cache" != 1; then
5545 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5546 fi
5547
5548 if test "$wxUSE_FILE" = yes; then
5549 echo "$as_me:$LINENO: result: yes" >&5
5550echo "${ECHO_T}yes" >&6
5551 else
5552 echo "$as_me:$LINENO: result: no" >&5
5553echo "${ECHO_T}no" >&6
5554 fi
5555
5556
5557 enablestring=
5558 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5559echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5560 no_cache=0
5561 # Check whether --enable-filesystem or --disable-filesystem was given.
5562if test "${enable_filesystem+set}" = set; then
5563 enableval="$enable_filesystem"
5564
5565 if test "$enableval" = yes; then
5566 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5567 else
5568 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5569 fi
5570
5571else
5572
5573 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5574 if test "x$LINE" != x ; then
5575 eval "DEFAULT_$LINE"
5576 else
5577 no_cache=1
5578 fi
5579
5580 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5581
5582fi;
5583
5584 eval "$ac_cv_use_filesystem"
5585 if test "$no_cache" != 1; then
5586 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5587 fi
5588
5589 if test "$wxUSE_FILESYSTEM" = yes; then
5590 echo "$as_me:$LINENO: result: yes" >&5
5591echo "${ECHO_T}yes" >&6
5592 else
5593 echo "$as_me:$LINENO: result: no" >&5
5594echo "${ECHO_T}no" >&6
5595 fi
5596
5597
5598 enablestring=
5599 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5600echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5601 no_cache=0
5602 # Check whether --enable-fontmap or --disable-fontmap was given.
5603if test "${enable_fontmap+set}" = set; then
5604 enableval="$enable_fontmap"
5605
5606 if test "$enableval" = yes; then
5607 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5608 else
5609 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5610 fi
5611
5612else
5613
5614 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5615 if test "x$LINE" != x ; then
5616 eval "DEFAULT_$LINE"
5617 else
5618 no_cache=1
5619 fi
5620
5621 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5622
5623fi;
5624
5625 eval "$ac_cv_use_fontmap"
5626 if test "$no_cache" != 1; then
5627 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5628 fi
5629
5630 if test "$wxUSE_FONTMAP" = yes; then
5631 echo "$as_me:$LINENO: result: yes" >&5
5632echo "${ECHO_T}yes" >&6
5633 else
5634 echo "$as_me:$LINENO: result: no" >&5
5635echo "${ECHO_T}no" >&6
5636 fi
5637
5638
5639 enablestring=
5640 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5641echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5642 no_cache=0
5643 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5644if test "${enable_fs_inet+set}" = set; then
5645 enableval="$enable_fs_inet"
5646
5647 if test "$enableval" = yes; then
5648 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5649 else
5650 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5651 fi
5652
5653else
5654
5655 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5656 if test "x$LINE" != x ; then
5657 eval "DEFAULT_$LINE"
5658 else
5659 no_cache=1
5660 fi
5661
5662 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5663
5664fi;
5665
5666 eval "$ac_cv_use_fs_inet"
5667 if test "$no_cache" != 1; then
5668 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5669 fi
5670
5671 if test "$wxUSE_FS_INET" = yes; then
5672 echo "$as_me:$LINENO: result: yes" >&5
5673echo "${ECHO_T}yes" >&6
5674 else
5675 echo "$as_me:$LINENO: result: no" >&5
5676echo "${ECHO_T}no" >&6
5677 fi
5678
5679
5680 enablestring=
5681 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5682echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5683 no_cache=0
5684 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5685if test "${enable_fs_zip+set}" = set; then
5686 enableval="$enable_fs_zip"
5687
5688 if test "$enableval" = yes; then
5689 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5690 else
5691 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5692 fi
5693
5694else
5695
5696 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5697 if test "x$LINE" != x ; then
5698 eval "DEFAULT_$LINE"
5699 else
5700 no_cache=1
5701 fi
5702
5703 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5704
5705fi;
5706
5707 eval "$ac_cv_use_fs_zip"
5708 if test "$no_cache" != 1; then
5709 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5710 fi
5711
5712 if test "$wxUSE_FS_ZIP" = yes; then
5713 echo "$as_me:$LINENO: result: yes" >&5
5714echo "${ECHO_T}yes" >&6
5715 else
5716 echo "$as_me:$LINENO: result: no" >&5
5717echo "${ECHO_T}no" >&6
5718 fi
5719
5720
5721 enablestring=
5722 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5723echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5724 no_cache=0
5725 # Check whether --enable-geometry or --disable-geometry was given.
5726if test "${enable_geometry+set}" = set; then
5727 enableval="$enable_geometry"
5728
5729 if test "$enableval" = yes; then
5730 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5731 else
5732 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5733 fi
5734
5735else
5736
5737 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5738 if test "x$LINE" != x ; then
5739 eval "DEFAULT_$LINE"
5740 else
5741 no_cache=1
5742 fi
5743
5744 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5745
5746fi;
5747
5748 eval "$ac_cv_use_geometry"
5749 if test "$no_cache" != 1; then
5750 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5751 fi
5752
5753 if test "$wxUSE_GEOMETRY" = yes; then
5754 echo "$as_me:$LINENO: result: yes" >&5
5755echo "${ECHO_T}yes" >&6
5756 else
5757 echo "$as_me:$LINENO: result: no" >&5
5758echo "${ECHO_T}no" >&6
5759 fi
5760
5761
5762 enablestring=
5763 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5764echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5765 no_cache=0
5766 # Check whether --enable-log or --disable-log was given.
5767if test "${enable_log+set}" = set; then
5768 enableval="$enable_log"
5769
5770 if test "$enableval" = yes; then
5771 ac_cv_use_log='wxUSE_LOG=yes'
5772 else
5773 ac_cv_use_log='wxUSE_LOG=no'
5774 fi
5775
5776else
5777
5778 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5779 if test "x$LINE" != x ; then
5780 eval "DEFAULT_$LINE"
5781 else
5782 no_cache=1
5783 fi
5784
5785 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5786
5787fi;
5788
5789 eval "$ac_cv_use_log"
5790 if test "$no_cache" != 1; then
5791 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5792 fi
5793
5794 if test "$wxUSE_LOG" = yes; then
5795 echo "$as_me:$LINENO: result: yes" >&5
5796echo "${ECHO_T}yes" >&6
5797 else
5798 echo "$as_me:$LINENO: result: no" >&5
5799echo "${ECHO_T}no" >&6
5800 fi
5801
5802
5803 enablestring=
5804 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5805echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5806 no_cache=0
5807 # Check whether --enable-longlong or --disable-longlong was given.
5808if test "${enable_longlong+set}" = set; then
5809 enableval="$enable_longlong"
5810
5811 if test "$enableval" = yes; then
5812 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5813 else
5814 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5815 fi
5816
5817else
5818
5819 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5820 if test "x$LINE" != x ; then
5821 eval "DEFAULT_$LINE"
5822 else
5823 no_cache=1
5824 fi
5825
5826 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5827
5828fi;
5829
5830 eval "$ac_cv_use_longlong"
5831 if test "$no_cache" != 1; then
5832 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5833 fi
5834
5835 if test "$wxUSE_LONGLONG" = yes; then
5836 echo "$as_me:$LINENO: result: yes" >&5
5837echo "${ECHO_T}yes" >&6
5838 else
5839 echo "$as_me:$LINENO: result: no" >&5
5840echo "${ECHO_T}no" >&6
5841 fi
5842
5843
5844 enablestring=
5845 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5846echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5847 no_cache=0
5848 # Check whether --enable-mimetype or --disable-mimetype was given.
5849if test "${enable_mimetype+set}" = set; then
5850 enableval="$enable_mimetype"
5851
5852 if test "$enableval" = yes; then
5853 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5854 else
5855 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5856 fi
5857
5858else
5859
5860 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5861 if test "x$LINE" != x ; then
5862 eval "DEFAULT_$LINE"
5863 else
5864 no_cache=1
5865 fi
5866
5867 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5868
5869fi;
5870
5871 eval "$ac_cv_use_mimetype"
5872 if test "$no_cache" != 1; then
5873 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5874 fi
5875
5876 if test "$wxUSE_MIMETYPE" = yes; then
5877 echo "$as_me:$LINENO: result: yes" >&5
5878echo "${ECHO_T}yes" >&6
5879 else
5880 echo "$as_me:$LINENO: result: no" >&5
5881echo "${ECHO_T}no" >&6
5882 fi
5883
5884
5885 enablestring=
5886 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5887echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5888 no_cache=0
5889 # Check whether --enable-mslu or --disable-mslu was given.
5890if test "${enable_mslu+set}" = set; then
5891 enableval="$enable_mslu"
5892
5893 if test "$enableval" = yes; then
5894 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5895 else
5896 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5897 fi
5898
5899else
5900
5901 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5902 if test "x$LINE" != x ; then
5903 eval "DEFAULT_$LINE"
5904 else
5905 no_cache=1
5906 fi
5907
5908 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5909
5910fi;
5911
5912 eval "$ac_cv_use_mslu"
5913 if test "$no_cache" != 1; then
5914 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5915 fi
5916
5917 if test "$wxUSE_UNICODE_MSLU" = yes; then
5918 echo "$as_me:$LINENO: result: yes" >&5
5919echo "${ECHO_T}yes" >&6
5920 else
5921 echo "$as_me:$LINENO: result: no" >&5
5922echo "${ECHO_T}no" >&6
5923 fi
5924
5925
5926 enablestring=
5927 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5928echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5929 no_cache=0
5930 # Check whether --enable-snglinst or --disable-snglinst was given.
5931if test "${enable_snglinst+set}" = set; then
5932 enableval="$enable_snglinst"
5933
5934 if test "$enableval" = yes; then
5935 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5936 else
5937 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5938 fi
5939
5940else
5941
5942 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5943 if test "x$LINE" != x ; then
5944 eval "DEFAULT_$LINE"
5945 else
5946 no_cache=1
5947 fi
5948
5949 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5950
5951fi;
5952
5953 eval "$ac_cv_use_snglinst"
5954 if test "$no_cache" != 1; then
5955 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5956 fi
5957
5958 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5959 echo "$as_me:$LINENO: result: yes" >&5
5960echo "${ECHO_T}yes" >&6
5961 else
5962 echo "$as_me:$LINENO: result: no" >&5
5963echo "${ECHO_T}no" >&6
5964 fi
5965
5966
5967 enablestring=
07158944
VZ
5968 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5969echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5970 no_cache=0
07158944
VZ
5971 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5972if test "${enable_std_iostreams+set}" = set; then
5973 enableval="$enable_std_iostreams"
a848cd7e
SC
5974
5975 if test "$enableval" = yes; then
07158944 5976 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5977 else
07158944 5978 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5979 fi
5980
5981else
5982
07158944 5983 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5984 if test "x$LINE" != x ; then
5985 eval "DEFAULT_$LINE"
5986 else
5987 no_cache=1
5988 fi
5989
07158944 5990 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5991
5992fi;
5993
07158944 5994 eval "$ac_cv_use_std_iostreams"
a848cd7e 5995 if test "$no_cache" != 1; then
07158944 5996 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5997 fi
5998
07158944 5999 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
6000 echo "$as_me:$LINENO: result: yes" >&5
6001echo "${ECHO_T}yes" >&6
6002 else
6003 echo "$as_me:$LINENO: result: no" >&5
6004echo "${ECHO_T}no" >&6
6005 fi
6006
6007
59746b65
MW
6008 enablestring=
6009 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
6010echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
6011 no_cache=0
6012 # Check whether --enable-std_string or --disable-std_string was given.
6013if test "${enable_std_string+set}" = set; then
6014 enableval="$enable_std_string"
6015
6016 if test "$enableval" = yes; then
6017 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
6018 else
6019 ac_cv_use_std_string='wxUSE_STD_STRING=no'
6020 fi
6021
6022else
6023
6024 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
6025 if test "x$LINE" != x ; then
6026 eval "DEFAULT_$LINE"
6027 else
6028 no_cache=1
6029 fi
6030
6031 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
6032
6033fi;
6034
6035 eval "$ac_cv_use_std_string"
6036 if test "$no_cache" != 1; then
6037 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
6038 fi
6039
6040 if test "$wxUSE_STD_STRING" = yes; then
6041 echo "$as_me:$LINENO: result: yes" >&5
6042echo "${ECHO_T}yes" >&6
6043 else
6044 echo "$as_me:$LINENO: result: no" >&5
6045echo "${ECHO_T}no" >&6
6046 fi
6047
6048
a848cd7e 6049 enablestring=
07158944
VZ
6050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
6051echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 6052 no_cache=0
07158944
VZ
6053 # Check whether --enable-stdpaths or --disable-stdpaths was given.
6054if test "${enable_stdpaths+set}" = set; then
6055 enableval="$enable_stdpaths"
a848cd7e
SC
6056
6057 if test "$enableval" = yes; then
07158944 6058 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 6059 else
07158944 6060 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
6061 fi
6062
6063else
6064
07158944 6065 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
6066 if test "x$LINE" != x ; then
6067 eval "DEFAULT_$LINE"
6068 else
6069 no_cache=1
6070 fi
6071
07158944 6072 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
6073
6074fi;
6075
07158944 6076 eval "$ac_cv_use_stdpaths"
a848cd7e 6077 if test "$no_cache" != 1; then
07158944 6078 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6079 fi
6080
07158944 6081 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
6082 echo "$as_me:$LINENO: result: yes" >&5
6083echo "${ECHO_T}yes" >&6
6084 else
6085 echo "$as_me:$LINENO: result: no" >&5
6086echo "${ECHO_T}no" >&6
6087 fi
6088
6089
6090 enablestring=
6091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
6092echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
6093 no_cache=0
6094 # Check whether --enable-stopwatch or --disable-stopwatch was given.
6095if test "${enable_stopwatch+set}" = set; then
6096 enableval="$enable_stopwatch"
6097
6098 if test "$enableval" = yes; then
6099 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
6100 else
6101 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
6102 fi
6103
6104else
6105
6106 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
6107 if test "x$LINE" != x ; then
6108 eval "DEFAULT_$LINE"
6109 else
6110 no_cache=1
6111 fi
6112
6113 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
6114
6115fi;
6116
6117 eval "$ac_cv_use_stopwatch"
6118 if test "$no_cache" != 1; then
6119 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
6120 fi
6121
6122 if test "$wxUSE_STOPWATCH" = yes; then
6123 echo "$as_me:$LINENO: result: yes" >&5
6124echo "${ECHO_T}yes" >&6
6125 else
6126 echo "$as_me:$LINENO: result: no" >&5
6127echo "${ECHO_T}no" >&6
6128 fi
6129
6130
07158944
VZ
6131 enablestring=
6132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
6133echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
6134 no_cache=0
6135 # Check whether --enable-streams or --disable-streams was given.
6136if test "${enable_streams+set}" = set; then
6137 enableval="$enable_streams"
6138
6139 if test "$enableval" = yes; then
6140 ac_cv_use_streams='wxUSE_STREAMS=yes'
6141 else
6142 ac_cv_use_streams='wxUSE_STREAMS=no'
6143 fi
6144
6145else
6146
6147 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
6148 if test "x$LINE" != x ; then
6149 eval "DEFAULT_$LINE"
6150 else
6151 no_cache=1
6152 fi
6153
6154 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6155
6156fi;
6157
6158 eval "$ac_cv_use_streams"
6159 if test "$no_cache" != 1; then
6160 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
6161 fi
6162
6163 if test "$wxUSE_STREAMS" = yes; then
6164 echo "$as_me:$LINENO: result: yes" >&5
6165echo "${ECHO_T}yes" >&6
6166 else
6167 echo "$as_me:$LINENO: result: no" >&5
6168echo "${ECHO_T}no" >&6
6169 fi
6170
6171
a848cd7e
SC
6172 enablestring=
6173 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
6174echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
6175 no_cache=0
6176 # Check whether --enable-system_options or --disable-system_options was given.
6177if test "${enable_system_options+set}" = set; then
6178 enableval="$enable_system_options"
6179
6180 if test "$enableval" = yes; then
6181 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6182 else
6183 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6184 fi
6185
6186else
6187
6188 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6189 if test "x$LINE" != x ; then
6190 eval "DEFAULT_$LINE"
6191 else
6192 no_cache=1
6193 fi
6194
6195 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6196
6197fi;
6198
6199 eval "$ac_cv_use_system_options"
6200 if test "$no_cache" != 1; then
6201 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6202 fi
6203
6204 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6205 echo "$as_me:$LINENO: result: yes" >&5
6206echo "${ECHO_T}yes" >&6
6207 else
6208 echo "$as_me:$LINENO: result: no" >&5
6209echo "${ECHO_T}no" >&6
6210 fi
6211
6212
6213 enablestring=
6214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6215echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6216 no_cache=0
6217 # Check whether --enable-textbuf or --disable-textbuf was given.
6218if test "${enable_textbuf+set}" = set; then
6219 enableval="$enable_textbuf"
6220
6221 if test "$enableval" = yes; then
6222 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6223 else
6224 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6225 fi
6226
6227else
6228
6229 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6230 if test "x$LINE" != x ; then
6231 eval "DEFAULT_$LINE"
6232 else
6233 no_cache=1
6234 fi
6235
6236 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6237
6238fi;
6239
6240 eval "$ac_cv_use_textbuf"
6241 if test "$no_cache" != 1; then
6242 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6243 fi
6244
6245 if test "$wxUSE_TEXTBUFFER" = yes; then
6246 echo "$as_me:$LINENO: result: yes" >&5
6247echo "${ECHO_T}yes" >&6
6248 else
6249 echo "$as_me:$LINENO: result: no" >&5
6250echo "${ECHO_T}no" >&6
6251 fi
6252
6253
6254 enablestring=
6255 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6256echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6257 no_cache=0
6258 # Check whether --enable-textfile or --disable-textfile was given.
6259if test "${enable_textfile+set}" = set; then
6260 enableval="$enable_textfile"
6261
6262 if test "$enableval" = yes; then
6263 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6264 else
6265 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6266 fi
6267
6268else
6269
6270 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6271 if test "x$LINE" != x ; then
6272 eval "DEFAULT_$LINE"
6273 else
6274 no_cache=1
6275 fi
6276
6277 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6278
6279fi;
6280
6281 eval "$ac_cv_use_textfile"
6282 if test "$no_cache" != 1; then
6283 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6284 fi
6285
6286 if test "$wxUSE_TEXTFILE" = yes; then
6287 echo "$as_me:$LINENO: result: yes" >&5
6288echo "${ECHO_T}yes" >&6
6289 else
6290 echo "$as_me:$LINENO: result: no" >&5
6291echo "${ECHO_T}no" >&6
6292 fi
6293
6294
6295 enablestring=
6296 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6297echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6298 no_cache=0
6299 # Check whether --enable-timer or --disable-timer was given.
6300if test "${enable_timer+set}" = set; then
6301 enableval="$enable_timer"
6302
6303 if test "$enableval" = yes; then
6304 ac_cv_use_timer='wxUSE_TIMER=yes'
6305 else
6306 ac_cv_use_timer='wxUSE_TIMER=no'
6307 fi
6308
6309else
6310
6311 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6312 if test "x$LINE" != x ; then
6313 eval "DEFAULT_$LINE"
6314 else
6315 no_cache=1
6316 fi
6317
6318 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6319
6320fi;
6321
6322 eval "$ac_cv_use_timer"
6323 if test "$no_cache" != 1; then
6324 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6325 fi
6326
6327 if test "$wxUSE_TIMER" = yes; then
6328 echo "$as_me:$LINENO: result: yes" >&5
6329echo "${ECHO_T}yes" >&6
6330 else
6331 echo "$as_me:$LINENO: result: no" >&5
6332echo "${ECHO_T}no" >&6
6333 fi
6334
6335
6336 enablestring=
6337 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6338echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6339 no_cache=0
6340 # Check whether --enable-unicode or --disable-unicode was given.
6341if test "${enable_unicode+set}" = set; then
6342 enableval="$enable_unicode"
6343
6344 if test "$enableval" = yes; then
6345 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6346 else
6347 ac_cv_use_unicode='wxUSE_UNICODE=no'
6348 fi
6349
6350else
6351
6352 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6353 if test "x$LINE" != x ; then
6354 eval "DEFAULT_$LINE"
6355 else
6356 no_cache=1
6357 fi
6358
6359 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6360
6361fi;
6362
6363 eval "$ac_cv_use_unicode"
6364 if test "$no_cache" != 1; then
6365 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6366 fi
6367
6368 if test "$wxUSE_UNICODE" = yes; then
6369 echo "$as_me:$LINENO: result: yes" >&5
6370echo "${ECHO_T}yes" >&6
6371 else
6372 echo "$as_me:$LINENO: result: no" >&5
6373echo "${ECHO_T}no" >&6
6374 fi
6375
6376
6377 enablestring=
6378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6379echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6380 no_cache=0
6381 # Check whether --enable-sound or --disable-sound was given.
6382if test "${enable_sound+set}" = set; then
6383 enableval="$enable_sound"
6384
6385 if test "$enableval" = yes; then
6386 ac_cv_use_sound='wxUSE_SOUND=yes'
6387 else
6388 ac_cv_use_sound='wxUSE_SOUND=no'
6389 fi
6390
6391else
6392
6393 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6394 if test "x$LINE" != x ; then
6395 eval "DEFAULT_$LINE"
6396 else
6397 no_cache=1
6398 fi
6399
6400 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6401
6402fi;
6403
6404 eval "$ac_cv_use_sound"
6405 if test "$no_cache" != 1; then
6406 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6407 fi
6408
6409 if test "$wxUSE_SOUND" = yes; then
6410 echo "$as_me:$LINENO: result: yes" >&5
6411echo "${ECHO_T}yes" >&6
6412 else
6413 echo "$as_me:$LINENO: result: no" >&5
6414echo "${ECHO_T}no" >&6
6415 fi
6416
6417
3b57de8b
RL
6418 enablestring=
6419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6420echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6421 no_cache=0
6422 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6423if test "${enable_mediactrl+set}" = set; then
6424 enableval="$enable_mediactrl"
6425
6426 if test "$enableval" = yes; then
6427 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6428 else
6429 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6430 fi
6431
6432else
6433
6434 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6435 if test "x$LINE" != x ; then
6436 eval "DEFAULT_$LINE"
6437 else
6438 no_cache=1
6439 fi
6440
6441 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6442
6443fi;
6444
6445 eval "$ac_cv_use_mediactrl"
6446 if test "$no_cache" != 1; then
6447 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6448 fi
6449
6450 if test "$wxUSE_MEDIACTRL" = yes; then
6451 echo "$as_me:$LINENO: result: yes" >&5
6452echo "${ECHO_T}yes" >&6
6453 else
6454 echo "$as_me:$LINENO: result: no" >&5
6455echo "${ECHO_T}no" >&6
6456 fi
6457
6458
f10e38c4
VZ
6459 enablestring=
6460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6461echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6462 no_cache=0
6463 # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6464if test "${enable_gstreamer8+set}" = set; then
6465 enableval="$enable_gstreamer8"
6466
6467 if test "$enableval" = yes; then
6468 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6469 else
6470 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6471 fi
6472
6473else
6474
6475 LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6476 if test "x$LINE" != x ; then
6477 eval "DEFAULT_$LINE"
6478 else
6479 no_cache=1
6480 fi
6481
6482 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6483
6484fi;
6485
6486 eval "$ac_cv_use_gstreamer8"
6487 if test "$no_cache" != 1; then
6488 echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6489 fi
6490
6491 if test "$wxUSE_GSTREAMER8" = yes; then
6492 echo "$as_me:$LINENO: result: yes" >&5
6493echo "${ECHO_T}yes" >&6
6494 else
6495 echo "$as_me:$LINENO: result: no" >&5
6496echo "${ECHO_T}no" >&6
6497 fi
6498
6499
a848cd7e 6500 enablestring=
8b6682b9
JS
6501 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6502echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
a848cd7e 6503 no_cache=0
8b6682b9
JS
6504 # Check whether --enable-printfposparam or --disable-printfposparam was given.
6505if test "${enable_printfposparam+set}" = set; then
6506 enableval="$enable_printfposparam"
a848cd7e
SC
6507
6508 if test "$enableval" = yes; then
8b6682b9 6509 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
a848cd7e 6510 else
8b6682b9 6511 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
a848cd7e
SC
6512 fi
6513
6514else
6515
8b6682b9 6516 LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
a848cd7e
SC
6517 if test "x$LINE" != x ; then
6518 eval "DEFAULT_$LINE"
6519 else
6520 no_cache=1
6521 fi
6522
8b6682b9 6523 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
a848cd7e
SC
6524
6525fi;
6526
8b6682b9 6527 eval "$ac_cv_use_printfposparam"
a848cd7e 6528 if test "$no_cache" != 1; then
8b6682b9 6529 echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6530 fi
6531
8b6682b9 6532 if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
a848cd7e
SC
6533 echo "$as_me:$LINENO: result: yes" >&5
6534echo "${ECHO_T}yes" >&6
6535 else
6536 echo "$as_me:$LINENO: result: no" >&5
6537echo "${ECHO_T}no" >&6
6538 fi
6539
6540
6541 enablestring=
6542 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6543echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6544 no_cache=0
6545 # Check whether --enable-zipstream or --disable-zipstream was given.
6546if test "${enable_zipstream+set}" = set; then
6547 enableval="$enable_zipstream"
6548
6549 if test "$enableval" = yes; then
6550 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6551 else
6552 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6553 fi
6554
6555else
6556
6557 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6558 if test "x$LINE" != x ; then
6559 eval "DEFAULT_$LINE"
6560 else
6561 no_cache=1
6562 fi
6563
6564 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6565
6566fi;
6567
6568 eval "$ac_cv_use_zipstream"
6569 if test "$no_cache" != 1; then
6570 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6571 fi
6572
6573 if test "$wxUSE_ZIPSTREAM" = yes; then
6574 echo "$as_me:$LINENO: result: yes" >&5
6575echo "${ECHO_T}yes" >&6
6576 else
6577 echo "$as_me:$LINENO: result: no" >&5
6578echo "${ECHO_T}no" >&6
6579 fi
6580
6581
a848cd7e
SC
6582
6583 enablestring=
6584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6585echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6586 no_cache=0
6587 # Check whether --enable-url or --disable-url was given.
6588if test "${enable_url+set}" = set; then
6589 enableval="$enable_url"
6590
6591 if test "$enableval" = yes; then
6592 ac_cv_use_url='wxUSE_URL=yes'
6593 else
6594 ac_cv_use_url='wxUSE_URL=no'
6595 fi
6596
6597else
6598
6599 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6600 if test "x$LINE" != x ; then
6601 eval "DEFAULT_$LINE"
6602 else
6603 no_cache=1
6604 fi
6605
6606 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6607
6608fi;
6609
6610 eval "$ac_cv_use_url"
6611 if test "$no_cache" != 1; then
6612 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6613 fi
6614
6615 if test "$wxUSE_URL" = yes; then
6616 echo "$as_me:$LINENO: result: yes" >&5
6617echo "${ECHO_T}yes" >&6
6618 else
6619 echo "$as_me:$LINENO: result: no" >&5
6620echo "${ECHO_T}no" >&6
6621 fi
6622
6623
ca5c6ac3
VZ
6624 enablestring=
6625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
6626echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6
6627 no_cache=0
6628 # Check whether --enable-variant or --disable-variant was given.
6629if test "${enable_variant+set}" = set; then
6630 enableval="$enable_variant"
6631
6632 if test "$enableval" = yes; then
6633 ac_cv_use_variant='wxUSE_VARIANT=yes'
6634 else
6635 ac_cv_use_variant='wxUSE_VARIANT=no'
6636 fi
6637
6638else
6639
6640 LINE=`grep "wxUSE_VARIANT" ${wx_arg_cache_file}`
6641 if test "x$LINE" != x ; then
6642 eval "DEFAULT_$LINE"
6643 else
6644 no_cache=1
6645 fi
6646
6647 ac_cv_use_variant='wxUSE_VARIANT='$DEFAULT_wxUSE_VARIANT
6648
6649fi;
6650
6651 eval "$ac_cv_use_variant"
6652 if test "$no_cache" != 1; then
6653 echo $ac_cv_use_variant >> ${wx_arg_cache_file}.tmp
6654 fi
6655
6656 if test "$wxUSE_VARIANT" = yes; then
6657 echo "$as_me:$LINENO: result: yes" >&5
6658echo "${ECHO_T}yes" >&6
6659 else
6660 echo "$as_me:$LINENO: result: no" >&5
6661echo "${ECHO_T}no" >&6
6662 fi
6663
6664
a848cd7e
SC
6665 enablestring=
6666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6667echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6668 no_cache=0
6669 # Check whether --enable-protocol or --disable-protocol was given.
6670if test "${enable_protocol+set}" = set; then
6671 enableval="$enable_protocol"
6672
6673 if test "$enableval" = yes; then
6674 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6675 else
6676 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6677 fi
6678
6679else
6680
6681 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6682 if test "x$LINE" != x ; then
6683 eval "DEFAULT_$LINE"
6684 else
6685 no_cache=1
6686 fi
6687
6688 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6689
6690fi;
6691
6692 eval "$ac_cv_use_protocol"
6693 if test "$no_cache" != 1; then
6694 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6695 fi
6696
6697 if test "$wxUSE_PROTOCOL" = yes; then
6698 echo "$as_me:$LINENO: result: yes" >&5
6699echo "${ECHO_T}yes" >&6
6700 else
6701 echo "$as_me:$LINENO: result: no" >&5
6702echo "${ECHO_T}no" >&6
6703 fi
6704
6705
6706 enablestring=
6707 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6708echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6709 no_cache=0
6710 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6711if test "${enable_protocol_http+set}" = set; then
6712 enableval="$enable_protocol_http"
6713
6714 if test "$enableval" = yes; then
6715 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6716 else
6717 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6718 fi
6719
6720else
6721
6722 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6723 if test "x$LINE" != x ; then
6724 eval "DEFAULT_$LINE"
6725 else
6726 no_cache=1
6727 fi
6728
6729 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6730
6731fi;
6732
6733 eval "$ac_cv_use_protocol_http"
6734 if test "$no_cache" != 1; then
6735 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6736 fi
6737
6738 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6739 echo "$as_me:$LINENO: result: yes" >&5
6740echo "${ECHO_T}yes" >&6
6741 else
6742 echo "$as_me:$LINENO: result: no" >&5
6743echo "${ECHO_T}no" >&6
6744 fi
6745
6746
6747 enablestring=
6748 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6749echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6750 no_cache=0
6751 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6752if test "${enable_protocol_ftp+set}" = set; then
6753 enableval="$enable_protocol_ftp"
6754
6755 if test "$enableval" = yes; then
6756 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6757 else
6758 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6759 fi
6760
6761else
6762
6763 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6764 if test "x$LINE" != x ; then
6765 eval "DEFAULT_$LINE"
6766 else
6767 no_cache=1
6768 fi
6769
6770 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6771
6772fi;
6773
6774 eval "$ac_cv_use_protocol_ftp"
6775 if test "$no_cache" != 1; then
6776 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6777 fi
6778
6779 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6780 echo "$as_me:$LINENO: result: yes" >&5
6781echo "${ECHO_T}yes" >&6
6782 else
6783 echo "$as_me:$LINENO: result: no" >&5
6784echo "${ECHO_T}no" >&6
6785 fi
6786
6787
6788 enablestring=
6789 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6790echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6791 no_cache=0
6792 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6793if test "${enable_protocol_file+set}" = set; then
6794 enableval="$enable_protocol_file"
6795
6796 if test "$enableval" = yes; then
6797 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6798 else
6799 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6800 fi
6801
6802else
6803
6804 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6805 if test "x$LINE" != x ; then
6806 eval "DEFAULT_$LINE"
6807 else
6808 no_cache=1
6809 fi
6810
6811 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6812
6813fi;
6814
6815 eval "$ac_cv_use_protocol_file"
6816 if test "$no_cache" != 1; then
6817 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6818 fi
6819
6820 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6821 echo "$as_me:$LINENO: result: yes" >&5
6822echo "${ECHO_T}yes" >&6
6823 else
6824 echo "$as_me:$LINENO: result: no" >&5
6825echo "${ECHO_T}no" >&6
6826 fi
6827
6828
6829
6830
6831
6832 enablestring=
6833 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6834echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6835 no_cache=0
6836 # Check whether --enable-threads or --disable-threads was given.
6837if test "${enable_threads+set}" = set; then
6838 enableval="$enable_threads"
6839
6840 if test "$enableval" = yes; then
6841 ac_cv_use_threads='wxUSE_THREADS=yes'
6842 else
6843 ac_cv_use_threads='wxUSE_THREADS=no'
6844 fi
6845
6846else
6847
6848 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6849 if test "x$LINE" != x ; then
6850 eval "DEFAULT_$LINE"
6851 else
6852 no_cache=1
6853 fi
6854
6855 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6856
6857fi;
6858
6859 eval "$ac_cv_use_threads"
6860 if test "$no_cache" != 1; then
6861 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6862 fi
6863
6864 if test "$wxUSE_THREADS" = yes; then
6865 echo "$as_me:$LINENO: result: yes" >&5
6866echo "${ECHO_T}yes" >&6
6867 else
6868 echo "$as_me:$LINENO: result: no" >&5
6869echo "${ECHO_T}no" >&6
6870 fi
6871
6872
6873if test "$wxUSE_GUI" = "yes"; then
6874
6875
6876
6877 enablestring=
6878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6879echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6880 no_cache=0
6881 # Check whether --enable-docview or --disable-docview was given.
6882if test "${enable_docview+set}" = set; then
6883 enableval="$enable_docview"
6884
6885 if test "$enableval" = yes; then
6886 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6887 else
6888 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6889 fi
6890
6891else
6892
6893 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6894 if test "x$LINE" != x ; then
6895 eval "DEFAULT_$LINE"
6896 else
6897 no_cache=1
6898 fi
6899
6900 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6901
6902fi;
6903
6904 eval "$ac_cv_use_docview"
6905 if test "$no_cache" != 1; then
6906 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6907 fi
6908
6909 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6910 echo "$as_me:$LINENO: result: yes" >&5
6911echo "${ECHO_T}yes" >&6
6912 else
6913 echo "$as_me:$LINENO: result: no" >&5
6914echo "${ECHO_T}no" >&6
6915 fi
6916
6917
6918 enablestring=
6919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6920echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6921 no_cache=0
6922 # Check whether --enable-help or --disable-help was given.
6923if test "${enable_help+set}" = set; then
6924 enableval="$enable_help"
6925
6926 if test "$enableval" = yes; then
6927 ac_cv_use_help='wxUSE_HELP=yes'
6928 else
6929 ac_cv_use_help='wxUSE_HELP=no'
6930 fi
6931
6932else
6933
6934 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6935 if test "x$LINE" != x ; then
6936 eval "DEFAULT_$LINE"
6937 else
6938 no_cache=1
6939 fi
6940
6941 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6942
6943fi;
6944
6945 eval "$ac_cv_use_help"
6946 if test "$no_cache" != 1; then
6947 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6948 fi
6949
6950 if test "$wxUSE_HELP" = yes; then
6951 echo "$as_me:$LINENO: result: yes" >&5
6952echo "${ECHO_T}yes" >&6
6953 else
6954 echo "$as_me:$LINENO: result: no" >&5
6955echo "${ECHO_T}no" >&6
6956 fi
6957
6958
6959 enablestring=
6960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6961echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6962 no_cache=0
6963 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6964if test "${enable_mshtmlhelp+set}" = set; then
6965 enableval="$enable_mshtmlhelp"
6966
6967 if test "$enableval" = yes; then
6968 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6969 else
6970 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6971 fi
6972
6973else
6974
6975 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6976 if test "x$LINE" != x ; then
6977 eval "DEFAULT_$LINE"
6978 else
6979 no_cache=1
6980 fi
6981
6982 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6983
6984fi;
6985
6986 eval "$ac_cv_use_mshtmlhelp"
6987 if test "$no_cache" != 1; then
6988 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6989 fi
6990
6991 if test "$wxUSE_MS_HTML_HELP" = yes; then
6992 echo "$as_me:$LINENO: result: yes" >&5
6993echo "${ECHO_T}yes" >&6
6994 else
6995 echo "$as_me:$LINENO: result: no" >&5
6996echo "${ECHO_T}no" >&6
6997 fi
6998
6999
7000 enablestring=
7001 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7002echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7003 no_cache=0
7004 # Check whether --enable-html or --disable-html was given.
7005if test "${enable_html+set}" = set; then
7006 enableval="$enable_html"
7007
7008 if test "$enableval" = yes; then
7009 ac_cv_use_html='wxUSE_HTML=yes'
7010 else
7011 ac_cv_use_html='wxUSE_HTML=no'
7012 fi
7013
7014else
7015
7016 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
7017 if test "x$LINE" != x ; then
7018 eval "DEFAULT_$LINE"
7019 else
7020 no_cache=1
7021 fi
7022
7023 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
7024
7025fi;
7026
7027 eval "$ac_cv_use_html"
7028 if test "$no_cache" != 1; then
7029 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7030 fi
7031
7032 if test "$wxUSE_HTML" = yes; then
7033 echo "$as_me:$LINENO: result: yes" >&5
7034echo "${ECHO_T}yes" >&6
7035 else
7036 echo "$as_me:$LINENO: result: no" >&5
7037echo "${ECHO_T}no" >&6
7038 fi
7039
7040
7041 enablestring=
7042 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
7043echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
7044 no_cache=0
7045 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
7046if test "${enable_htmlhelp+set}" = set; then
7047 enableval="$enable_htmlhelp"
7048
7049 if test "$enableval" = yes; then
7050 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
7051 else
7052 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
7053 fi
7054
7055else
7056
7057 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
7058 if test "x$LINE" != x ; then
7059 eval "DEFAULT_$LINE"
7060 else
7061 no_cache=1
7062 fi
7063
7064 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
7065
7066fi;
7067
7068 eval "$ac_cv_use_htmlhelp"
7069 if test "$no_cache" != 1; then
7070 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
7071 fi
7072
7073 if test "$wxUSE_WXHTML_HELP" = yes; then
7074 echo "$as_me:$LINENO: result: yes" >&5
7075echo "${ECHO_T}yes" >&6
7076 else
7077 echo "$as_me:$LINENO: result: no" >&5
7078echo "${ECHO_T}no" >&6
7079 fi
7080
7081
9a8f0513
VS
7082 enablestring=
7083 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
7084echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
7085 no_cache=0
7086 # Check whether --enable-xrc or --disable-xrc was given.
7087if test "${enable_xrc+set}" = set; then
7088 enableval="$enable_xrc"
7089
7090 if test "$enableval" = yes; then
7091 ac_cv_use_xrc='wxUSE_XRC=yes'
7092 else
7093 ac_cv_use_xrc='wxUSE_XRC=no'
7094 fi
7095
7096else
7097
7098 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
7099 if test "x$LINE" != x ; then
7100 eval "DEFAULT_$LINE"
7101 else
7102 no_cache=1
7103 fi
7104
7105 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
7106
7107fi;
7108
7109 eval "$ac_cv_use_xrc"
7110 if test "$no_cache" != 1; then
7111 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
7112 fi
7113
7114 if test "$wxUSE_XRC" = yes; then
7115 echo "$as_me:$LINENO: result: yes" >&5
7116echo "${ECHO_T}yes" >&6
7117 else
7118 echo "$as_me:$LINENO: result: no" >&5
7119echo "${ECHO_T}no" >&6
7120 fi
7121
7122
3f60522a
JS
7123 enablestring=
7124 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
7125echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
7126 no_cache=0
7127 # Check whether --enable-aui or --disable-aui was given.
7128if test "${enable_aui+set}" = set; then
7129 enableval="$enable_aui"
7130
7131 if test "$enableval" = yes; then
7132 ac_cv_use_aui='wxUSE_AUI=yes'
7133 else
7134 ac_cv_use_aui='wxUSE_AUI=no'
7135 fi
7136
7137else
7138
7139 LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
7140 if test "x$LINE" != x ; then
7141 eval "DEFAULT_$LINE"
7142 else
7143 no_cache=1
7144 fi
7145
7146 ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
7147
7148fi;
7149
7150 eval "$ac_cv_use_aui"
7151 if test "$no_cache" != 1; then
7152 echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
7153 fi
7154
7155 if test "$wxUSE_AUI" = yes; then
7156 echo "$as_me:$LINENO: result: yes" >&5
7157echo "${ECHO_T}yes" >&6
7158 else
7159 echo "$as_me:$LINENO: result: no" >&5
7160echo "${ECHO_T}no" >&6
7161 fi
7162
7163
a848cd7e
SC
7164 enablestring=
7165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
7166echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
7167 no_cache=0
7168 # Check whether --enable-constraints or --disable-constraints was given.
7169if test "${enable_constraints+set}" = set; then
7170 enableval="$enable_constraints"
7171
7172 if test "$enableval" = yes; then
7173 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
7174 else
7175 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
7176 fi
7177
7178else
7179
7180 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
7181 if test "x$LINE" != x ; then
7182 eval "DEFAULT_$LINE"
7183 else
7184 no_cache=1
7185 fi
7186
7187 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
7188
7189fi;
7190
7191 eval "$ac_cv_use_constraints"
7192 if test "$no_cache" != 1; then
7193 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
7194 fi
7195
7196 if test "$wxUSE_CONSTRAINTS" = yes; then
7197 echo "$as_me:$LINENO: result: yes" >&5
7198echo "${ECHO_T}yes" >&6
7199 else
7200 echo "$as_me:$LINENO: result: no" >&5
7201echo "${ECHO_T}no" >&6
7202 fi
7203
7204
7205 enablestring=
7206 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
7207echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
7208 no_cache=0
7209 # Check whether --enable-printarch or --disable-printarch was given.
7210if test "${enable_printarch+set}" = set; then
7211 enableval="$enable_printarch"
7212
7213 if test "$enableval" = yes; then
7214 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
7215 else
7216 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
7217 fi
7218
7219else
7220
7221 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
7222 if test "x$LINE" != x ; then
7223 eval "DEFAULT_$LINE"
7224 else
7225 no_cache=1
7226 fi
7227
7228 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7229
7230fi;
7231
7232 eval "$ac_cv_use_printarch"
7233 if test "$no_cache" != 1; then
7234 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7235 fi
7236
7237 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7238 echo "$as_me:$LINENO: result: yes" >&5
7239echo "${ECHO_T}yes" >&6
7240 else
7241 echo "$as_me:$LINENO: result: no" >&5
7242echo "${ECHO_T}no" >&6
7243 fi
7244
7245
7246 enablestring=
7247 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7248echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7249 no_cache=0
7250 # Check whether --enable-mdi or --disable-mdi was given.
7251if test "${enable_mdi+set}" = set; then
7252 enableval="$enable_mdi"
7253
7254 if test "$enableval" = yes; then
8a7b1113 7255 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 7256 else
8a7b1113 7257 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
7258 fi
7259
7260else
7261
8a7b1113 7262 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
7263 if test "x$LINE" != x ; then
7264 eval "DEFAULT_$LINE"
7265 else
7266 no_cache=1
7267 fi
7268
8a7b1113 7269 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
7270
7271fi;
7272
7273 eval "$ac_cv_use_mdi"
7274 if test "$no_cache" != 1; then
7275 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7276 fi
7277
8a7b1113
VZ
7278 if test "$wxUSE_MDI" = yes; then
7279 echo "$as_me:$LINENO: result: yes" >&5
7280echo "${ECHO_T}yes" >&6
7281 else
7282 echo "$as_me:$LINENO: result: no" >&5
7283echo "${ECHO_T}no" >&6
7284 fi
7285
7286
7287 enablestring=
7288 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7289echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7290 no_cache=0
7291 # Check whether --enable-mdidoc or --disable-mdidoc was given.
7292if test "${enable_mdidoc+set}" = set; then
7293 enableval="$enable_mdidoc"
7294
7295 if test "$enableval" = yes; then
7296 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7297 else
7298 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7299 fi
7300
7301else
7302
7303 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7304 if test "x$LINE" != x ; then
7305 eval "DEFAULT_$LINE"
7306 else
7307 no_cache=1
7308 fi
7309
7310 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7311
7312fi;
7313
7314 eval "$ac_cv_use_mdidoc"
7315 if test "$no_cache" != 1; then
7316 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7317 fi
7318
a848cd7e
SC
7319 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7320 echo "$as_me:$LINENO: result: yes" >&5
7321echo "${ECHO_T}yes" >&6
7322 else
7323 echo "$as_me:$LINENO: result: no" >&5
7324echo "${ECHO_T}no" >&6
7325 fi
7326
7327
7328 enablestring=
7329 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7330echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7331 no_cache=0
7332 # Check whether --enable-loggui or --disable-loggui was given.
7333if test "${enable_loggui+set}" = set; then
7334 enableval="$enable_loggui"
7335
7336 if test "$enableval" = yes; then
7337 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7338 else
7339 ac_cv_use_loggui='wxUSE_LOGGUI=no'
7340 fi
7341
7342else
7343
7344 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7345 if test "x$LINE" != x ; then
7346 eval "DEFAULT_$LINE"
7347 else
7348 no_cache=1
7349 fi
7350
7351 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7352
7353fi;
7354
7355 eval "$ac_cv_use_loggui"
7356 if test "$no_cache" != 1; then
7357 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7358 fi
7359
7360 if test "$wxUSE_LOGGUI" = yes; then
7361 echo "$as_me:$LINENO: result: yes" >&5
7362echo "${ECHO_T}yes" >&6
7363 else
7364 echo "$as_me:$LINENO: result: no" >&5
7365echo "${ECHO_T}no" >&6
7366 fi
7367
7368
7369 enablestring=
7370 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7371echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7372 no_cache=0
7373 # Check whether --enable-logwin or --disable-logwin was given.
7374if test "${enable_logwin+set}" = set; then
7375 enableval="$enable_logwin"
7376
7377 if test "$enableval" = yes; then
7378 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7379 else
7380 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7381 fi
7382
7383else
7384
7385 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7386 if test "x$LINE" != x ; then
7387 eval "DEFAULT_$LINE"
7388 else
7389 no_cache=1
7390 fi
7391
7392 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7393
7394fi;
7395
7396 eval "$ac_cv_use_logwin"
7397 if test "$no_cache" != 1; then
7398 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7399 fi
7400
7401 if test "$wxUSE_LOGWINDOW" = yes; then
7402 echo "$as_me:$LINENO: result: yes" >&5
7403echo "${ECHO_T}yes" >&6
7404 else
7405 echo "$as_me:$LINENO: result: no" >&5
7406echo "${ECHO_T}no" >&6
7407 fi
7408
7409
7410 enablestring=
7411 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7412echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7413 no_cache=0
7414 # Check whether --enable-logdialog or --disable-logdialog was given.
7415if test "${enable_logdialog+set}" = set; then
7416 enableval="$enable_logdialog"
7417
7418 if test "$enableval" = yes; then
7419 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7420 else
7421 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7422 fi
7423
7424else
7425
7426 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7427 if test "x$LINE" != x ; then
7428 eval "DEFAULT_$LINE"
7429 else
7430 no_cache=1
7431 fi
7432
7433 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7434
7435fi;
7436
7437 eval "$ac_cv_use_logdialog"
7438 if test "$no_cache" != 1; then
7439 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7440 fi
7441
7442 if test "$wxUSE_LOGDIALOG" = yes; then
7443 echo "$as_me:$LINENO: result: yes" >&5
7444echo "${ECHO_T}yes" >&6
7445 else
7446 echo "$as_me:$LINENO: result: no" >&5
7447echo "${ECHO_T}no" >&6
7448 fi
7449
7450
646b6ec1
VS
7451 enablestring=
7452 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7453echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7454 no_cache=0
7455 # Check whether --enable-webkit or --disable-webkit was given.
7456if test "${enable_webkit+set}" = set; then
7457 enableval="$enable_webkit"
7458
7459 if test "$enableval" = yes; then
7460 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7461 else
7462 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7463 fi
7464
7465else
7466
7467 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7468 if test "x$LINE" != x ; then
7469 eval "DEFAULT_$LINE"
7470 else
7471 no_cache=1
7472 fi
7473
7474 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7475
7476fi;
7477
7478 eval "$ac_cv_use_webkit"
7479 if test "$no_cache" != 1; then
7480 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7481 fi
7482
7483 if test "$wxUSE_WEBKIT" = yes; then
7484 echo "$as_me:$LINENO: result: yes" >&5
7485echo "${ECHO_T}yes" >&6
7486 else
7487 echo "$as_me:$LINENO: result: no" >&5
7488echo "${ECHO_T}no" >&6
7489 fi
7490
7491
91dea314
MW
7492 enablestring=
7493 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7494echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7495 no_cache=0
7496 # Check whether --enable-html or --disable-html was given.
7497if test "${enable_html+set}" = set; then
7498 enableval="$enable_html"
7499
7500 if test "$enableval" = yes; then
7501 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7502 else
7503 ac_cv_use_html='wxUSE_RICHTEXT=no'
7504 fi
7505
7506else
7507
7508 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7509 if test "x$LINE" != x ; then
7510 eval "DEFAULT_$LINE"
7511 else
7512 no_cache=1
7513 fi
7514
7515 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7516
7517fi;
7518
7519 eval "$ac_cv_use_html"
7520 if test "$no_cache" != 1; then
7521 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7522 fi
7523
7524 if test "$wxUSE_RICHTEXT" = yes; then
7525 echo "$as_me:$LINENO: result: yes" >&5
7526echo "${ECHO_T}yes" >&6
7527 else
7528 echo "$as_me:$LINENO: result: no" >&5
7529echo "${ECHO_T}no" >&6
7530 fi
7531
7532
f43426c1
RD
7533 enablestring=
7534 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
7535echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6
7536 no_cache=0
7537 # Check whether --enable-graphics_ctx or --disable-graphics_ctx was given.
7538if test "${enable_graphics_ctx+set}" = set; then
7539 enableval="$enable_graphics_ctx"
7540
7541 if test "$enableval" = yes; then
7542 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
7543 else
7544 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
7545 fi
7546
7547else
7548
7549 LINE=`grep "wxUSE_GRAPHICS_CONTEXT" ${wx_arg_cache_file}`
7550 if test "x$LINE" != x ; then
7551 eval "DEFAULT_$LINE"
7552 else
7553 no_cache=1
7554 fi
7555
7556 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT='$DEFAULT_wxUSE_GRAPHICS_CONTEXT
7557
7558fi;
7559
7560 eval "$ac_cv_use_graphics_ctx"
7561 if test "$no_cache" != 1; then
7562 echo $ac_cv_use_graphics_ctx >> ${wx_arg_cache_file}.tmp
7563 fi
7564
7565 if test "$wxUSE_GRAPHICS_CONTEXT" = yes; then
7566 echo "$as_me:$LINENO: result: yes" >&5
7567echo "${ECHO_T}yes" >&6
7568 else
7569 echo "$as_me:$LINENO: result: no" >&5
7570echo "${ECHO_T}no" >&6
7571 fi
7572
7573
a848cd7e
SC
7574
7575 enablestring=
7576 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7577echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7578 no_cache=0
7579 # Check whether --enable-postscript or --disable-postscript was given.
7580if test "${enable_postscript+set}" = set; then
7581 enableval="$enable_postscript"
7582
7583 if test "$enableval" = yes; then
7584 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7585 else
7586 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7587 fi
7588
7589else
7590
7591 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7592 if test "x$LINE" != x ; then
7593 eval "DEFAULT_$LINE"
7594 else
7595 no_cache=1
7596 fi
7597
7598 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7599
7600fi;
7601
7602 eval "$ac_cv_use_postscript"
7603 if test "$no_cache" != 1; then
7604 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7605 fi
7606
7607 if test "$wxUSE_POSTSCRIPT" = yes; then
7608 echo "$as_me:$LINENO: result: yes" >&5
7609echo "${ECHO_T}yes" >&6
7610 else
7611 echo "$as_me:$LINENO: result: no" >&5
7612echo "${ECHO_T}no" >&6
7613 fi
7614
7615
7616
7617
7618
7619 enablestring=
7620 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7621echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7622 no_cache=0
7623 # Check whether --enable-prologio or --disable-prologio was given.
7624if test "${enable_prologio+set}" = set; then
7625 enableval="$enable_prologio"
7626
7627 if test "$enableval" = yes; then
7628 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7629 else
7630 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7631 fi
7632
7633else
7634
7635 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7636 if test "x$LINE" != x ; then
7637 eval "DEFAULT_$LINE"
7638 else
7639 no_cache=1
7640 fi
7641
7642 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7643
7644fi;
7645
7646 eval "$ac_cv_use_prologio"
7647 if test "$no_cache" != 1; then
7648 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7649 fi
7650
7651 if test "$wxUSE_PROLOGIO" = yes; then
7652 echo "$as_me:$LINENO: result: yes" >&5
7653echo "${ECHO_T}yes" >&6
7654 else
7655 echo "$as_me:$LINENO: result: no" >&5
7656echo "${ECHO_T}no" >&6
7657 fi
7658
7659
7660 enablestring=
7661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7662echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7663 no_cache=0
7664 # Check whether --enable-resources or --disable-resources was given.
7665if test "${enable_resources+set}" = set; then
7666 enableval="$enable_resources"
7667
7668 if test "$enableval" = yes; then
7669 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7670 else
7671 ac_cv_use_resources='wxUSE_RESOURCES=no'
7672 fi
7673
7674else
7675
7676 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7677 if test "x$LINE" != x ; then
7678 eval "DEFAULT_$LINE"
7679 else
7680 no_cache=1
7681 fi
7682
7683 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7684
7685fi;
7686
7687 eval "$ac_cv_use_resources"
7688 if test "$no_cache" != 1; then
7689 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7690 fi
7691
7692 if test "$wxUSE_RESOURCES" = yes; then
7693 echo "$as_me:$LINENO: result: yes" >&5
7694echo "${ECHO_T}yes" >&6
7695 else
7696 echo "$as_me:$LINENO: result: no" >&5
7697echo "${ECHO_T}no" >&6
7698 fi
7699
7700
7701
7702
7703 enablestring=
7704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7705echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7706 no_cache=0
7707 # Check whether --enable-clipboard or --disable-clipboard was given.
7708if test "${enable_clipboard+set}" = set; then
7709 enableval="$enable_clipboard"
7710
7711 if test "$enableval" = yes; then
7712 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7713 else
7714 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7715 fi
7716
7717else
7718
7719 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7720 if test "x$LINE" != x ; then
7721 eval "DEFAULT_$LINE"
7722 else
7723 no_cache=1
7724 fi
7725
7726 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7727
7728fi;
7729
7730 eval "$ac_cv_use_clipboard"
7731 if test "$no_cache" != 1; then
7732 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7733 fi
7734
7735 if test "$wxUSE_CLIPBOARD" = yes; then
7736 echo "$as_me:$LINENO: result: yes" >&5
7737echo "${ECHO_T}yes" >&6
7738 else
7739 echo "$as_me:$LINENO: result: no" >&5
7740echo "${ECHO_T}no" >&6
7741 fi
7742
7743
7744 enablestring=
7745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7746echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7747 no_cache=0
7748 # Check whether --enable-dnd or --disable-dnd was given.
7749if test "${enable_dnd+set}" = set; then
7750 enableval="$enable_dnd"
7751
7752 if test "$enableval" = yes; then
7753 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7754 else
7755 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7756 fi
7757
7758else
7759
7760 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7761 if test "x$LINE" != x ; then
7762 eval "DEFAULT_$LINE"
7763 else
7764 no_cache=1
7765 fi
7766
7767 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7768
7769fi;
7770
7771 eval "$ac_cv_use_dnd"
7772 if test "$no_cache" != 1; then
7773 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7774 fi
7775
7776 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7777 echo "$as_me:$LINENO: result: yes" >&5
7778echo "${ECHO_T}yes" >&6
7779 else
7780 echo "$as_me:$LINENO: result: no" >&5
7781echo "${ECHO_T}no" >&6
7782 fi
7783
7784
7785 enablestring=
7786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7787echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7788 no_cache=0
7789 # Check whether --enable-metafile or --disable-metafile was given.
7790if test "${enable_metafile+set}" = set; then
7791 enableval="$enable_metafile"
7792
7793 if test "$enableval" = yes; then
7794 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7795 else
7796 ac_cv_use_metafile='wxUSE_METAFILE=no'
7797 fi
7798
7799else
7800
7801 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7802 if test "x$LINE" != x ; then
7803 eval "DEFAULT_$LINE"
7804 else
7805 no_cache=1
7806 fi
7807
7808 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7809
7810fi;
7811
7812 eval "$ac_cv_use_metafile"
7813 if test "$no_cache" != 1; then
7814 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7815 fi
7816
7817 if test "$wxUSE_METAFILE" = yes; then
7818 echo "$as_me:$LINENO: result: yes" >&5
7819echo "${ECHO_T}yes" >&6
7820 else
7821 echo "$as_me:$LINENO: result: no" >&5
7822echo "${ECHO_T}no" >&6
7823 fi
7824
7825
7826
7827
7828
7829 enablestring=
7830 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7831echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7832 no_cache=0
7833 # Check whether --enable-controls or --disable-controls was given.
7834if test "${enable_controls+set}" = set; then
7835 enableval="$enable_controls"
7836
7837 if test "$enableval" = yes; then
7838 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7839 else
7840 ac_cv_use_controls='wxUSE_CONTROLS=no'
7841 fi
7842
7843else
7844
7845 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7846 if test "x$LINE" != x ; then
7847 eval "DEFAULT_$LINE"
7848 else
7849 no_cache=1
7850 fi
7851
7852 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7853
7854fi;
7855
7856 eval "$ac_cv_use_controls"
7857 if test "$no_cache" != 1; then
7858 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7859 fi
7860
7861 if test "$wxUSE_CONTROLS" = yes; then
7862 echo "$as_me:$LINENO: result: yes" >&5
7863echo "${ECHO_T}yes" >&6
7864 else
7865 echo "$as_me:$LINENO: result: no" >&5
7866echo "${ECHO_T}no" >&6
7867 fi
7868
7869
7870if test "$wxUSE_CONTROLS" = "yes"; then
7871 DEFAULT_wxUSE_ACCEL=yes
3ea50042 7872 DEFAULT_wxUSE_ANIMATIONCTRL=yes
a848cd7e
SC
7873 DEFAULT_wxUSE_BMPBUTTON=yes
7874 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7875 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7876 DEFAULT_wxUSE_CARET=yes
7877 DEFAULT_wxUSE_COMBOBOX=yes
7878 DEFAULT_wxUSE_CHECKBOX=yes
7879 DEFAULT_wxUSE_CHECKLISTBOX=yes
7880 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7881 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684
VZ
7882 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7883 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 7884 DEFAULT_wxUSE_DATEPICKCTRL=yes
e9263684 7885 DEFAULT_wxUSE_DISPLAY=yes
88bbc332 7886 DEFAULT_wxUSE_DETECT_SM=yes
e9263684
VZ
7887 DEFAULT_wxUSE_DIRPICKERCTRL=yes
7888 DEFAULT_wxUSE_FILEPICKERCTRL=yes
7889 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
7890 DEFAULT_wxUSE_GAUGE=yes
7891 DEFAULT_wxUSE_GRID=yes
6954625c 7892 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 7893 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7894 DEFAULT_wxUSE_IMAGLIST=yes
7895 DEFAULT_wxUSE_LISTBOOK=yes
7896 DEFAULT_wxUSE_LISTBOX=yes
7897 DEFAULT_wxUSE_LISTCTRL=yes
7898 DEFAULT_wxUSE_NOTEBOOK=yes
7899 DEFAULT_wxUSE_RADIOBOX=yes
7900 DEFAULT_wxUSE_RADIOBTN=yes
7901 DEFAULT_wxUSE_SASH=yes
7902 DEFAULT_wxUSE_SCROLLBAR=yes
7903 DEFAULT_wxUSE_SLIDER=yes
7904 DEFAULT_wxUSE_SPINBTN=yes
7905 DEFAULT_wxUSE_SPINCTRL=yes
7906 DEFAULT_wxUSE_SPLITTER=yes
7907 DEFAULT_wxUSE_STATBMP=yes
7908 DEFAULT_wxUSE_STATBOX=yes
7909 DEFAULT_wxUSE_STATLINE=yes
7910 DEFAULT_wxUSE_STATUSBAR=yes
7911 DEFAULT_wxUSE_TAB_DIALOG=yes
7912 DEFAULT_wxUSE_TOGGLEBTN=yes
7913 DEFAULT_wxUSE_TOOLBAR=yes
7914 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
a848cd7e 7915 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7916 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 7917 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
7918 DEFAULT_wxUSE_TREECTRL=yes
7919 DEFAULT_wxUSE_POPUPWIN=yes
7920 DEFAULT_wxUSE_TIPWINDOW=yes
7921elif test "$wxUSE_CONTROLS" = "no"; then
7922 DEFAULT_wxUSE_ACCEL=no
3ea50042 7923 DEFAULT_wxUSE_ANIMATIONCTRL=no
a848cd7e
SC
7924 DEFAULT_wxUSE_BMPBUTTON=no
7925 DEFAULT_wxUSE_BUTTON=no
7926 DEFAULT_wxUSE_CALCTRL=no
7927 DEFAULT_wxUSE_CARET=no
7928 DEFAULT_wxUSE_COMBOBOX=no
7929 DEFAULT_wxUSE_CHECKBOX=no
7930 DEFAULT_wxUSE_CHECKLISTBOX=no
7931 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7932 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684
VZ
7933 DEFAULT_wxUSE_COLOURPICKERCTRL=no
7934 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 7935 DEFAULT_wxUSE_DATEPICKCTRL=no
e9263684 7936 DEFAULT_wxUSE_DISPLAY=no
88bbc332 7937 DEFAULT_wxUSE_DETECT_SM=no
e9263684
VZ
7938 DEFAULT_wxUSE_DIRPICKERCTRL=no
7939 DEFAULT_wxUSE_FILEPICKERCTRL=no
7940 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
7941 DEFAULT_wxUSE_GAUGE=no
7942 DEFAULT_wxUSE_GRID=no
6954625c 7943 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 7944 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7945 DEFAULT_wxUSE_IMAGLIST=no
7946 DEFAULT_wxUSE_LISTBOOK=no
7947 DEFAULT_wxUSE_LISTBOX=no
7948 DEFAULT_wxUSE_LISTCTRL=no
7949 DEFAULT_wxUSE_NOTEBOOK=no
7950 DEFAULT_wxUSE_RADIOBOX=no
7951 DEFAULT_wxUSE_RADIOBTN=no
7952 DEFAULT_wxUSE_SASH=no
7953 DEFAULT_wxUSE_SCROLLBAR=no
7954 DEFAULT_wxUSE_SLIDER=no
7955 DEFAULT_wxUSE_SPINBTN=no
7956 DEFAULT_wxUSE_SPINCTRL=no
7957 DEFAULT_wxUSE_SPLITTER=no
7958 DEFAULT_wxUSE_STATBMP=no
7959 DEFAULT_wxUSE_STATBOX=no
7960 DEFAULT_wxUSE_STATLINE=no
7961 DEFAULT_wxUSE_STATUSBAR=no
7962 DEFAULT_wxUSE_TAB_DIALOG=no
7963 DEFAULT_wxUSE_TOGGLEBTN=no
7964 DEFAULT_wxUSE_TOOLBAR=no
7965 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
a848cd7e 7966 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7967 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 7968 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
7969 DEFAULT_wxUSE_TREECTRL=no
7970 DEFAULT_wxUSE_POPUPWIN=no
7971 DEFAULT_wxUSE_TIPWINDOW=no
7972fi
7973
a848cd7e
SC
7974
7975 enablestring=
7976 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7977echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7978 no_cache=0
7979 # Check whether --enable-accel or --disable-accel was given.
7980if test "${enable_accel+set}" = set; then
7981 enableval="$enable_accel"
7982
7983 if test "$enableval" = yes; then
7984 ac_cv_use_accel='wxUSE_ACCEL=yes'
7985 else
7986 ac_cv_use_accel='wxUSE_ACCEL=no'
7987 fi
7988
7989else
7990
7991 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7992 if test "x$LINE" != x ; then
7993 eval "DEFAULT_$LINE"
7994 else
7995 no_cache=1
7996 fi
7997
7998 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7999
8000fi;
8001
8002 eval "$ac_cv_use_accel"
8003 if test "$no_cache" != 1; then
8004 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
8005 fi
8006
8007 if test "$wxUSE_ACCEL" = yes; then
8008 echo "$as_me:$LINENO: result: yes" >&5
8009echo "${ECHO_T}yes" >&6
8010 else
8011 echo "$as_me:$LINENO: result: no" >&5
8012echo "${ECHO_T}no" >&6
8013 fi
8014
8015
3ea50042
VZ
8016 enablestring=
8017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
8018echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6
8019 no_cache=0
8020 # Check whether --enable-animatectrl or --disable-animatectrl was given.
8021if test "${enable_animatectrl+set}" = set; then
8022 enableval="$enable_animatectrl"
8023
8024 if test "$enableval" = yes; then
8025 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
8026 else
8027 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
8028 fi
8029
8030else
8031
8032 LINE=`grep "wxUSE_ANIMATIONCTRL" ${wx_arg_cache_file}`
8033 if test "x$LINE" != x ; then
8034 eval "DEFAULT_$LINE"
8035 else
8036 no_cache=1
8037 fi
8038
8039 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL='$DEFAULT_wxUSE_ANIMATIONCTRL
8040
8041fi;
8042
8043 eval "$ac_cv_use_animatectrl"
8044 if test "$no_cache" != 1; then
8045 echo $ac_cv_use_animatectrl >> ${wx_arg_cache_file}.tmp
8046 fi
8047
8048 if test "$wxUSE_ANIMATIONCTRL" = yes; then
8049 echo "$as_me:$LINENO: result: yes" >&5
8050echo "${ECHO_T}yes" >&6
8051 else
8052 echo "$as_me:$LINENO: result: no" >&5
8053echo "${ECHO_T}no" >&6
8054 fi
8055
8056
a848cd7e
SC
8057 enablestring=
8058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
8059echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
8060 no_cache=0
8061 # Check whether --enable-button or --disable-button was given.
8062if test "${enable_button+set}" = set; then
8063 enableval="$enable_button"
8064
8065 if test "$enableval" = yes; then
8066 ac_cv_use_button='wxUSE_BUTTON=yes'
8067 else
8068 ac_cv_use_button='wxUSE_BUTTON=no'
8069 fi
8070
8071else
8072
8073 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
8074 if test "x$LINE" != x ; then
8075 eval "DEFAULT_$LINE"
8076 else
8077 no_cache=1
8078 fi
8079
8080 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
8081
8082fi;
8083
8084 eval "$ac_cv_use_button"
8085 if test "$no_cache" != 1; then
8086 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
8087 fi
8088
8089 if test "$wxUSE_BUTTON" = yes; then
8090 echo "$as_me:$LINENO: result: yes" >&5
8091echo "${ECHO_T}yes" >&6
8092 else
8093 echo "$as_me:$LINENO: result: no" >&5
8094echo "${ECHO_T}no" >&6
8095 fi
8096
8097
8098 enablestring=
8099 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
8100echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
8101 no_cache=0
8102 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
8103if test "${enable_bmpbutton+set}" = set; then
8104 enableval="$enable_bmpbutton"
8105
8106 if test "$enableval" = yes; then
8107 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
8108 else
8109 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
8110 fi
8111
8112else
8113
8114 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
8115 if test "x$LINE" != x ; then
8116 eval "DEFAULT_$LINE"
8117 else
8118 no_cache=1
8119 fi
8120
8121 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
8122
8123fi;
8124
8125 eval "$ac_cv_use_bmpbutton"
8126 if test "$no_cache" != 1; then
8127 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
8128 fi
8129
8130 if test "$wxUSE_BMPBUTTON" = yes; then
8131 echo "$as_me:$LINENO: result: yes" >&5
8132echo "${ECHO_T}yes" >&6
8133 else
8134 echo "$as_me:$LINENO: result: no" >&5
8135echo "${ECHO_T}no" >&6
8136 fi
8137
8138
95a46303
RR
8139 enablestring=
8140 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
8141echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6
8142 no_cache=0
8143 # Check whether --enable-bmpcombobox or --disable-bmpcombobox was given.
8144if test "${enable_bmpcombobox+set}" = set; then
8145 enableval="$enable_bmpcombobox"
8146
8147 if test "$enableval" = yes; then
8148 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
8149 else
8150 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
8151 fi
8152
8153else
8154
8155 LINE=`grep "wxUSE_BITMAPCOMBOBOX" ${wx_arg_cache_file}`
8156 if test "x$LINE" != x ; then
8157 eval "DEFAULT_$LINE"
8158 else
8159 no_cache=1
8160 fi
8161
8162 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX='$DEFAULT_wxUSE_BITMAPCOMBOBOX
8163
8164fi;
8165
8166 eval "$ac_cv_use_bmpcombobox"
8167 if test "$no_cache" != 1; then
8168 echo $ac_cv_use_bmpcombobox >> ${wx_arg_cache_file}.tmp
8169 fi
8170
8171 if test "$wxUSE_BITMAPCOMBOBOX" = yes; then
8172 echo "$as_me:$LINENO: result: yes" >&5
8173echo "${ECHO_T}yes" >&6
8174 else
8175 echo "$as_me:$LINENO: result: no" >&5
8176echo "${ECHO_T}no" >&6
8177 fi
8178
8179
a848cd7e
SC
8180 enablestring=
8181 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
8182echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
8183 no_cache=0
8184 # Check whether --enable-calendar or --disable-calendar was given.
8185if test "${enable_calendar+set}" = set; then
8186 enableval="$enable_calendar"
8187
8188 if test "$enableval" = yes; then
8189 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
8190 else
8191 ac_cv_use_calendar='wxUSE_CALCTRL=no'
8192 fi
8193
8194else
8195
8196 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
8197 if test "x$LINE" != x ; then
8198 eval "DEFAULT_$LINE"
8199 else
8200 no_cache=1
8201 fi
8202
8203 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
8204
8205fi;
8206
8207 eval "$ac_cv_use_calendar"
8208 if test "$no_cache" != 1; then
8209 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
8210 fi
8211
8212 if test "$wxUSE_CALCTRL" = yes; then
8213 echo "$as_me:$LINENO: result: yes" >&5
8214echo "${ECHO_T}yes" >&6
8215 else
8216 echo "$as_me:$LINENO: result: no" >&5
8217echo "${ECHO_T}no" >&6
8218 fi
8219
8220
8221 enablestring=
8222 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
8223echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
8224 no_cache=0
8225 # Check whether --enable-caret or --disable-caret was given.
8226if test "${enable_caret+set}" = set; then
8227 enableval="$enable_caret"
8228
8229 if test "$enableval" = yes; then
8230 ac_cv_use_caret='wxUSE_CARET=yes'
8231 else
8232 ac_cv_use_caret='wxUSE_CARET=no'
8233 fi
8234
8235else
8236
8237 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
8238 if test "x$LINE" != x ; then
8239 eval "DEFAULT_$LINE"
8240 else
8241 no_cache=1
8242 fi
8243
8244 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
8245
8246fi;
8247
8248 eval "$ac_cv_use_caret"
8249 if test "$no_cache" != 1; then
8250 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
8251 fi
8252
8253 if test "$wxUSE_CARET" = yes; then
8254 echo "$as_me:$LINENO: result: yes" >&5
8255echo "${ECHO_T}yes" >&6
8256 else
8257 echo "$as_me:$LINENO: result: no" >&5
8258echo "${ECHO_T}no" >&6
8259 fi
8260
8261
8262 enablestring=
8263 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
8264echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
8265 no_cache=0
8266 # Check whether --enable-checkbox or --disable-checkbox was given.
8267if test "${enable_checkbox+set}" = set; then
8268 enableval="$enable_checkbox"
8269
8270 if test "$enableval" = yes; then
8271 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
8272 else
8273 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
8274 fi
8275
8276else
8277
8278 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
8279 if test "x$LINE" != x ; then
8280 eval "DEFAULT_$LINE"
8281 else
8282 no_cache=1
8283 fi
8284
8285 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
8286
8287fi;
8288
8289 eval "$ac_cv_use_checkbox"
8290 if test "$no_cache" != 1; then
8291 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
8292 fi
8293
8294 if test "$wxUSE_CHECKBOX" = yes; then
8295 echo "$as_me:$LINENO: result: yes" >&5
8296echo "${ECHO_T}yes" >&6
8297 else
8298 echo "$as_me:$LINENO: result: no" >&5
8299echo "${ECHO_T}no" >&6
8300 fi
8301
8302
8303 enablestring=
8304 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
8305echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
8306 no_cache=0
8307 # Check whether --enable-checklst or --disable-checklst was given.
8308if test "${enable_checklst+set}" = set; then
8309 enableval="$enable_checklst"
8310
8311 if test "$enableval" = yes; then
8312 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
8313 else
8314 ac_cv_use_checklst='wxUSE_CHECKLST=no'
8315 fi
8316
8317else
8318
8319 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
8320 if test "x$LINE" != x ; then
8321 eval "DEFAULT_$LINE"
8322 else
8323 no_cache=1
8324 fi
8325
8326 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
8327
8328fi;
8329
8330 eval "$ac_cv_use_checklst"
8331 if test "$no_cache" != 1; then
8332 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
8333 fi
8334
8335 if test "$wxUSE_CHECKLST" = yes; then
8336 echo "$as_me:$LINENO: result: yes" >&5
8337echo "${ECHO_T}yes" >&6
8338 else
8339 echo "$as_me:$LINENO: result: no" >&5
8340echo "${ECHO_T}no" >&6
8341 fi
8342
8343
8344 enablestring=
8345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8346echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
8347 no_cache=0
8348 # Check whether --enable-choice or --disable-choice was given.
8349if test "${enable_choice+set}" = set; then
8350 enableval="$enable_choice"
8351
8352 if test "$enableval" = yes; then
8353 ac_cv_use_choice='wxUSE_CHOICE=yes'
8354 else
8355 ac_cv_use_choice='wxUSE_CHOICE=no'
8356 fi
8357
8358else
8359
8360 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8361 if test "x$LINE" != x ; then
8362 eval "DEFAULT_$LINE"
8363 else
8364 no_cache=1
8365 fi
8366
8367 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8368
8369fi;
8370
8371 eval "$ac_cv_use_choice"
8372 if test "$no_cache" != 1; then
8373 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8374 fi
8375
8376 if test "$wxUSE_CHOICE" = yes; then
8377 echo "$as_me:$LINENO: result: yes" >&5
8378echo "${ECHO_T}yes" >&6
8379 else
8380 echo "$as_me:$LINENO: result: no" >&5
8381echo "${ECHO_T}no" >&6
8382 fi
8383
8384
92bbdbcd
WS
8385 enablestring=
8386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8387echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8388 no_cache=0
8389 # Check whether --enable-choicebook or --disable-choicebook was given.
8390if test "${enable_choicebook+set}" = set; then
8391 enableval="$enable_choicebook"
8392
8393 if test "$enableval" = yes; then
8394 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8395 else
8396 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8397 fi
8398
8399else
8400
8401 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8402 if test "x$LINE" != x ; then
8403 eval "DEFAULT_$LINE"
8404 else
8405 no_cache=1
8406 fi
8407
8408 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8409
8410fi;
8411
8412 eval "$ac_cv_use_choicebook"
8413 if test "$no_cache" != 1; then
8414 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8415 fi
8416
8417 if test "$wxUSE_CHOICEBOOK" = yes; then
8418 echo "$as_me:$LINENO: result: yes" >&5
8419echo "${ECHO_T}yes" >&6
8420 else
8421 echo "$as_me:$LINENO: result: no" >&5
8422echo "${ECHO_T}no" >&6
8423 fi
8424
8425
e9263684
VZ
8426 enablestring=
8427 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8428echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8429 no_cache=0
8430 # Check whether --enable-colourpicker or --disable-colourpicker was given.
8431if test "${enable_colourpicker+set}" = set; then
8432 enableval="$enable_colourpicker"
8433
8434 if test "$enableval" = yes; then
8435 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8436 else
8437 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8438 fi
8439
8440else
8441
8442 LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8443 if test "x$LINE" != x ; then
8444 eval "DEFAULT_$LINE"
8445 else
8446 no_cache=1
8447 fi
8448
8449 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8450
8451fi;
8452
8453 eval "$ac_cv_use_colourpicker"
8454 if test "$no_cache" != 1; then
8455 echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8456 fi
8457
8458 if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8459 echo "$as_me:$LINENO: result: yes" >&5
8460echo "${ECHO_T}yes" >&6
8461 else
8462 echo "$as_me:$LINENO: result: no" >&5
8463echo "${ECHO_T}no" >&6
8464 fi
8465
8466
a848cd7e
SC
8467 enablestring=
8468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8469echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8470 no_cache=0
8471 # Check whether --enable-combobox or --disable-combobox was given.
8472if test "${enable_combobox+set}" = set; then
8473 enableval="$enable_combobox"
8474
8475 if test "$enableval" = yes; then
8476 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8477 else
8478 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8479 fi
8480
8481else
8482
8483 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8484 if test "x$LINE" != x ; then
8485 eval "DEFAULT_$LINE"
8486 else
8487 no_cache=1
8488 fi
8489
8490 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8491
8492fi;
8493
8494 eval "$ac_cv_use_combobox"
8495 if test "$no_cache" != 1; then
8496 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8497 fi
8498
8499 if test "$wxUSE_COMBOBOX" = yes; then
8500 echo "$as_me:$LINENO: result: yes" >&5
8501echo "${ECHO_T}yes" >&6
8502 else
8503 echo "$as_me:$LINENO: result: no" >&5
8504echo "${ECHO_T}no" >&6
8505 fi
8506
8507
642bcba9 8508 enablestring=
a57d600f
VZ
8509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8510echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
642bcba9 8511 no_cache=0
a57d600f
VZ
8512 # Check whether --enable-comboctrl or --disable-comboctrl was given.
8513if test "${enable_comboctrl+set}" = set; then
8514 enableval="$enable_comboctrl"
642bcba9
VZ
8515
8516 if test "$enableval" = yes; then
a57d600f 8517 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
642bcba9 8518 else
a57d600f 8519 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
642bcba9
VZ
8520 fi
8521
8522else
8523
a57d600f 8524 LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
642bcba9
VZ
8525 if test "x$LINE" != x ; then
8526 eval "DEFAULT_$LINE"
8527 else
8528 no_cache=1
8529 fi
8530
a57d600f 8531 ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
642bcba9
VZ
8532
8533fi;
8534
a57d600f 8535 eval "$ac_cv_use_comboctrl"
642bcba9 8536 if test "$no_cache" != 1; then
a57d600f 8537 echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8538 fi
8539
a57d600f 8540 if test "$wxUSE_COMBOCTRL" = yes; then
642bcba9
VZ
8541 echo "$as_me:$LINENO: result: yes" >&5
8542echo "${ECHO_T}yes" >&6
8543 else
8544 echo "$as_me:$LINENO: result: no" >&5
8545echo "${ECHO_T}no" >&6
8546 fi
8547
8548
da98e9be
VZ
8549 enablestring=
8550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8551echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8552 no_cache=0
8553 # Check whether --enable-datepick or --disable-datepick was given.
8554if test "${enable_datepick+set}" = set; then
8555 enableval="$enable_datepick"
8556
8557 if test "$enableval" = yes; then
8558 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8559 else
8560 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8561 fi
8562
8563else
8564
8565 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8566 if test "x$LINE" != x ; then
8567 eval "DEFAULT_$LINE"
8568 else
8569 no_cache=1
8570 fi
8571
8572 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8573
8574fi;
8575
8576 eval "$ac_cv_use_datepick"
8577 if test "$no_cache" != 1; then
8578 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8579 fi
8580
8581 if test "$wxUSE_DATEPICKCTRL" = yes; then
8582 echo "$as_me:$LINENO: result: yes" >&5
8583echo "${ECHO_T}yes" >&6
8584 else
8585 echo "$as_me:$LINENO: result: no" >&5
8586echo "${ECHO_T}no" >&6
8587 fi
8588
8589
e9263684
VZ
8590 enablestring=
8591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8592echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8593 no_cache=0
8594 # Check whether --enable-dirpicker or --disable-dirpicker was given.
8595if test "${enable_dirpicker+set}" = set; then
8596 enableval="$enable_dirpicker"
8597
8598 if test "$enableval" = yes; then
8599 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8600 else
8601 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8602 fi
8603
8604else
8605
8606 LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8607 if test "x$LINE" != x ; then
8608 eval "DEFAULT_$LINE"
8609 else
8610 no_cache=1
8611 fi
8612
8613 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8614
8615fi;
8616
8617 eval "$ac_cv_use_dirpicker"
8618 if test "$no_cache" != 1; then
8619 echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8620 fi
8621
8622 if test "$wxUSE_DIRPICKERCTRL" = yes; then
8623 echo "$as_me:$LINENO: result: yes" >&5
8624echo "${ECHO_T}yes" >&6
8625 else
8626 echo "$as_me:$LINENO: result: no" >&5
8627echo "${ECHO_T}no" >&6
8628 fi
8629
8630
a848cd7e
SC
8631 enablestring=
8632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8633echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8634 no_cache=0
8635 # Check whether --enable-display or --disable-display was given.
8636if test "${enable_display+set}" = set; then
8637 enableval="$enable_display"
8638
8639 if test "$enableval" = yes; then
8640 ac_cv_use_display='wxUSE_DISPLAY=yes'
8641 else
8642 ac_cv_use_display='wxUSE_DISPLAY=no'
8643 fi
8644
8645else
8646
8647 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8648 if test "x$LINE" != x ; then
8649 eval "DEFAULT_$LINE"
8650 else
8651 no_cache=1
8652 fi
8653
8654 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8655
8656fi;
8657
8658 eval "$ac_cv_use_display"
8659 if test "$no_cache" != 1; then
8660 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8661 fi
8662
8663 if test "$wxUSE_DISPLAY" = yes; then
8664 echo "$as_me:$LINENO: result: yes" >&5
8665echo "${ECHO_T}yes" >&6
8666 else
8667 echo "$as_me:$LINENO: result: no" >&5
8668echo "${ECHO_T}no" >&6
8669 fi
8670
8671
88bbc332
RR
8672 enablestring=
8673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
8674echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6
8675 no_cache=0
8676 # Check whether --enable-detect_sm or --disable-detect_sm was given.
8677if test "${enable_detect_sm+set}" = set; then
8678 enableval="$enable_detect_sm"
8679
8680 if test "$enableval" = yes; then
8681 ac_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
8682 else
8683 ac_cv_use_detect_sm='wxUSE_DETECT_SM=no'
8684 fi
8685
8686else
8687
8688 LINE=`grep "wxUSE_DETECT_SM" ${wx_arg_cache_file}`
8689 if test "x$LINE" != x ; then
8690 eval "DEFAULT_$LINE"
8691 else
8692 no_cache=1
8693 fi
8694
8695 ac_cv_use_detect_sm='wxUSE_DETECT_SM='$DEFAULT_wxUSE_DETECT_SM
8696
8697fi;
8698
8699 eval "$ac_cv_use_detect_sm"
8700 if test "$no_cache" != 1; then
8701 echo $ac_cv_use_detect_sm >> ${wx_arg_cache_file}.tmp
8702 fi
8703
8704 if test "$wxUSE_DETECT_SM" = yes; then
8705 echo "$as_me:$LINENO: result: yes" >&5
8706echo "${ECHO_T}yes" >&6
8707 else
8708 echo "$as_me:$LINENO: result: no" >&5
8709echo "${ECHO_T}no" >&6
8710 fi
8711
8712
e9263684
VZ
8713 enablestring=
8714 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8715echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8716 no_cache=0
8717 # Check whether --enable-filepicker or --disable-filepicker was given.
8718if test "${enable_filepicker+set}" = set; then
8719 enableval="$enable_filepicker"
8720
8721 if test "$enableval" = yes; then
8722 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8723 else
8724 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8725 fi
8726
8727else
8728
8729 LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8730 if test "x$LINE" != x ; then
8731 eval "DEFAULT_$LINE"
8732 else
8733 no_cache=1
8734 fi
8735
8736 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8737
8738fi;
8739
8740 eval "$ac_cv_use_filepicker"
8741 if test "$no_cache" != 1; then
8742 echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8743 fi
8744
8745 if test "$wxUSE_FILEPICKERCTRL" = yes; then
8746 echo "$as_me:$LINENO: result: yes" >&5
8747echo "${ECHO_T}yes" >&6
8748 else
8749 echo "$as_me:$LINENO: result: no" >&5
8750echo "${ECHO_T}no" >&6
8751 fi
8752
8753
8754 enablestring=
8755 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8756echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8757 no_cache=0
8758 # Check whether --enable-fontpicker or --disable-fontpicker was given.
8759if test "${enable_fontpicker+set}" = set; then
8760 enableval="$enable_fontpicker"
8761
8762 if test "$enableval" = yes; then
8763 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8764 else
8765 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8766 fi
8767
8768else
8769
8770 LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8771 if test "x$LINE" != x ; then
8772 eval "DEFAULT_$LINE"
8773 else
8774 no_cache=1
8775 fi
8776
8777 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8778
8779fi;
8780
8781 eval "$ac_cv_use_fontpicker"
8782 if test "$no_cache" != 1; then
8783 echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8784 fi
8785
8786 if test "$wxUSE_FONTPICKERCTRL" = yes; then
8787 echo "$as_me:$LINENO: result: yes" >&5
8788echo "${ECHO_T}yes" >&6
8789 else
8790 echo "$as_me:$LINENO: result: no" >&5
8791echo "${ECHO_T}no" >&6
8792 fi
8793
8794
a848cd7e
SC
8795 enablestring=
8796 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8797echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8798 no_cache=0
8799 # Check whether --enable-gauge or --disable-gauge was given.
8800if test "${enable_gauge+set}" = set; then
8801 enableval="$enable_gauge"
8802
8803 if test "$enableval" = yes; then
8804 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8805 else
8806 ac_cv_use_gauge='wxUSE_GAUGE=no'
8807 fi
8808
8809else
8810
8811 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8812 if test "x$LINE" != x ; then
8813 eval "DEFAULT_$LINE"
8814 else
8815 no_cache=1
8816 fi
8817
8818 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8819
8820fi;
8821
8822 eval "$ac_cv_use_gauge"
8823 if test "$no_cache" != 1; then
8824 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8825 fi
8826
8827 if test "$wxUSE_GAUGE" = yes; then
8828 echo "$as_me:$LINENO: result: yes" >&5
8829echo "${ECHO_T}yes" >&6
8830 else
8831 echo "$as_me:$LINENO: result: no" >&5
8832echo "${ECHO_T}no" >&6
8833 fi
8834
8835
8836 enablestring=
8837 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8838echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8839 no_cache=0
8840 # Check whether --enable-grid or --disable-grid was given.
8841if test "${enable_grid+set}" = set; then
8842 enableval="$enable_grid"
8843
8844 if test "$enableval" = yes; then
8845 ac_cv_use_grid='wxUSE_GRID=yes'
8846 else
8847 ac_cv_use_grid='wxUSE_GRID=no'
8848 fi
8849
8850else
8851
8852 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8853 if test "x$LINE" != x ; then
8854 eval "DEFAULT_$LINE"
8855 else
8856 no_cache=1
8857 fi
8858
8859 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8860
8861fi;
8862
8863 eval "$ac_cv_use_grid"
8864 if test "$no_cache" != 1; then
8865 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8866 fi
8867
8868 if test "$wxUSE_GRID" = yes; then
8869 echo "$as_me:$LINENO: result: yes" >&5
8870echo "${ECHO_T}yes" >&6
8871 else
8872 echo "$as_me:$LINENO: result: no" >&5
8873echo "${ECHO_T}no" >&6
8874 fi
8875
8876
20e34ecc
RR
8877 enablestring=
8878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8879echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8880 no_cache=0
8881 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8882if test "${enable_dataviewctrl+set}" = set; then
8883 enableval="$enable_dataviewctrl"
8884
8885 if test "$enableval" = yes; then
8886 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8887 else
8888 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8889 fi
8890
8891else
8892
8893 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8894 if test "x$LINE" != x ; then
8895 eval "DEFAULT_$LINE"
8896 else
8897 no_cache=1
8898 fi
8899
8900 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8901
8902fi;
8903
8904 eval "$ac_cv_use_dataviewctrl"
8905 if test "$no_cache" != 1; then
8906 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8907 fi
8908
8909 if test "$wxUSE_DATAVIEWCTRL" = yes; then
8910 echo "$as_me:$LINENO: result: yes" >&5
8911echo "${ECHO_T}yes" >&6
8912 else
8913 echo "$as_me:$LINENO: result: no" >&5
8914echo "${ECHO_T}no" >&6
8915 fi
8916
8917
6954625c
VZ
8918 enablestring=
8919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
8920echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
8921 no_cache=0
8922 # Check whether --enable-hyperlink or --disable-hyperlink was given.
8923if test "${enable_hyperlink+set}" = set; then
8924 enableval="$enable_hyperlink"
8925
8926 if test "$enableval" = yes; then
8927 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
8928 else
8929 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
8930 fi
8931
8932else
8933
8934 LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
8935 if test "x$LINE" != x ; then
8936 eval "DEFAULT_$LINE"
8937 else
8938 no_cache=1
8939 fi
8940
8941 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
8942
8943fi;
8944
8945 eval "$ac_cv_use_hyperlink"
8946 if test "$no_cache" != 1; then
8947 echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
8948 fi
8949
8950 if test "$wxUSE_HYPERLINKCTRL" = yes; then
8951 echo "$as_me:$LINENO: result: yes" >&5
8952echo "${ECHO_T}yes" >&6
8953 else
8954 echo "$as_me:$LINENO: result: no" >&5
8955echo "${ECHO_T}no" >&6
8956 fi
8957
8958
a848cd7e
SC
8959 enablestring=
8960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8961echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8962 no_cache=0
8963 # Check whether --enable-imaglist or --disable-imaglist was given.
8964if test "${enable_imaglist+set}" = set; then
8965 enableval="$enable_imaglist"
8966
8967 if test "$enableval" = yes; then
8968 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8969 else
8970 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8971 fi
8972
8973else
8974
8975 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8976 if test "x$LINE" != x ; then
8977 eval "DEFAULT_$LINE"
8978 else
8979 no_cache=1
8980 fi
8981
8982 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8983
8984fi;
8985
8986 eval "$ac_cv_use_imaglist"
8987 if test "$no_cache" != 1; then
8988 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8989 fi
8990
8991 if test "$wxUSE_IMAGLIST" = yes; then
8992 echo "$as_me:$LINENO: result: yes" >&5
8993echo "${ECHO_T}yes" >&6
8994 else
8995 echo "$as_me:$LINENO: result: no" >&5
8996echo "${ECHO_T}no" >&6
8997 fi
8998
8999
9000 enablestring=
9001 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
9002echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
9003 no_cache=0
9004 # Check whether --enable-listbook or --disable-listbook was given.
9005if test "${enable_listbook+set}" = set; then
9006 enableval="$enable_listbook"
9007
9008 if test "$enableval" = yes; then
9009 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
9010 else
9011 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
9012 fi
9013
9014else
9015
9016 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
9017 if test "x$LINE" != x ; then
9018 eval "DEFAULT_$LINE"
9019 else
9020 no_cache=1
9021 fi
9022
9023 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
9024
9025fi;
9026
9027 eval "$ac_cv_use_listbook"
9028 if test "$no_cache" != 1; then
9029 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
9030 fi
9031
9032 if test "$wxUSE_LISTBOOK" = yes; then
9033 echo "$as_me:$LINENO: result: yes" >&5
9034echo "${ECHO_T}yes" >&6
9035 else
9036 echo "$as_me:$LINENO: result: no" >&5
9037echo "${ECHO_T}no" >&6
9038 fi
9039
9040
9041 enablestring=
9042 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
9043echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
9044 no_cache=0
9045 # Check whether --enable-listbox or --disable-listbox was given.
9046if test "${enable_listbox+set}" = set; then
9047 enableval="$enable_listbox"
9048
9049 if test "$enableval" = yes; then
9050 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
9051 else
9052 ac_cv_use_listbox='wxUSE_LISTBOX=no'
9053 fi
9054
9055else
9056
9057 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
9058 if test "x$LINE" != x ; then
9059 eval "DEFAULT_$LINE"
9060 else
9061 no_cache=1
9062 fi
9063
9064 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
9065
9066fi;
9067
9068 eval "$ac_cv_use_listbox"
9069 if test "$no_cache" != 1; then
9070 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
9071 fi
9072
9073 if test "$wxUSE_LISTBOX" = yes; then
9074 echo "$as_me:$LINENO: result: yes" >&5
9075echo "${ECHO_T}yes" >&6
9076 else
9077 echo "$as_me:$LINENO: result: no" >&5
9078echo "${ECHO_T}no" >&6
9079 fi
9080
9081
9082 enablestring=
9083 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
9084echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
9085 no_cache=0
9086 # Check whether --enable-listctrl or --disable-listctrl was given.
9087if test "${enable_listctrl+set}" = set; then
9088 enableval="$enable_listctrl"
9089
9090 if test "$enableval" = yes; then
9091 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
9092 else
9093 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
9094 fi
9095
9096else
9097
9098 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
9099 if test "x$LINE" != x ; then
9100 eval "DEFAULT_$LINE"
9101 else
9102 no_cache=1
9103 fi
9104
9105 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
9106
9107fi;
9108
9109 eval "$ac_cv_use_listctrl"
9110 if test "$no_cache" != 1; then
9111 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
9112 fi
9113
9114 if test "$wxUSE_LISTCTRL" = yes; then
9115 echo "$as_me:$LINENO: result: yes" >&5
9116echo "${ECHO_T}yes" >&6
9117 else
9118 echo "$as_me:$LINENO: result: no" >&5
9119echo "${ECHO_T}no" >&6
9120 fi
9121
9122
9123 enablestring=
9124 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
9125echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
9126 no_cache=0
9127 # Check whether --enable-notebook or --disable-notebook was given.
9128if test "${enable_notebook+set}" = set; then
9129 enableval="$enable_notebook"
9130
9131 if test "$enableval" = yes; then
9132 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
9133 else
9134 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
9135 fi
9136
9137else
9138
9139 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
9140 if test "x$LINE" != x ; then
9141 eval "DEFAULT_$LINE"
9142 else
9143 no_cache=1
9144 fi
9145
9146 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
9147
9148fi;
9149
9150 eval "$ac_cv_use_notebook"
9151 if test "$no_cache" != 1; then
9152 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
9153 fi
9154
9155 if test "$wxUSE_NOTEBOOK" = yes; then
9156 echo "$as_me:$LINENO: result: yes" >&5
9157echo "${ECHO_T}yes" >&6
9158 else
9159 echo "$as_me:$LINENO: result: no" >&5
9160echo "${ECHO_T}no" >&6
9161 fi
9162
9163
642bcba9 9164 enablestring=
a57d600f
VZ
9165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
9166echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
642bcba9 9167 no_cache=0
a57d600f
VZ
9168 # Check whether --enable-odcombobox or --disable-odcombobox was given.
9169if test "${enable_odcombobox+set}" = set; then
9170 enableval="$enable_odcombobox"
642bcba9
VZ
9171
9172 if test "$enableval" = yes; then
a57d600f 9173 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
642bcba9 9174 else
a57d600f 9175 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
642bcba9
VZ
9176 fi
9177
9178else
9179
a57d600f 9180 LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
642bcba9
VZ
9181 if test "x$LINE" != x ; then
9182 eval "DEFAULT_$LINE"
9183 else
9184 no_cache=1
9185 fi
9186
a57d600f 9187 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
642bcba9
VZ
9188
9189fi;
9190
a57d600f 9191 eval "$ac_cv_use_odcombobox"
642bcba9 9192 if test "$no_cache" != 1; then
a57d600f 9193 echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
9194 fi
9195
a57d600f 9196 if test "$wxUSE_ODCOMBOBOX" = yes; then
642bcba9
VZ
9197 echo "$as_me:$LINENO: result: yes" >&5
9198echo "${ECHO_T}yes" >&6
9199 else
9200 echo "$as_me:$LINENO: result: no" >&5
9201echo "${ECHO_T}no" >&6
9202 fi
9203
9204
a848cd7e
SC
9205 enablestring=
9206 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
9207echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
9208 no_cache=0
9209 # Check whether --enable-radiobox or --disable-radiobox was given.
9210if test "${enable_radiobox+set}" = set; then
9211 enableval="$enable_radiobox"
9212
9213 if test "$enableval" = yes; then
9214 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
9215 else
9216 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
9217 fi
9218
9219else
9220
9221 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
9222 if test "x$LINE" != x ; then
9223 eval "DEFAULT_$LINE"
9224 else
9225 no_cache=1
9226 fi
9227
9228 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
9229
9230fi;
9231
9232 eval "$ac_cv_use_radiobox"
9233 if test "$no_cache" != 1; then
9234 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
9235 fi
9236
9237 if test "$wxUSE_RADIOBOX" = yes; then
9238 echo "$as_me:$LINENO: result: yes" >&5
9239echo "${ECHO_T}yes" >&6
9240 else
9241 echo "$as_me:$LINENO: result: no" >&5
9242echo "${ECHO_T}no" >&6
9243 fi
9244
9245
9246 enablestring=
9247 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
9248echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
9249 no_cache=0
9250 # Check whether --enable-radiobtn or --disable-radiobtn was given.
9251if test "${enable_radiobtn+set}" = set; then
9252 enableval="$enable_radiobtn"
9253
9254 if test "$enableval" = yes; then
9255 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
9256 else
9257 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
9258 fi
9259
9260else
9261
9262 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
9263 if test "x$LINE" != x ; then
9264 eval "DEFAULT_$LINE"
9265 else
9266 no_cache=1
9267 fi
9268
9269 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
9270
9271fi;
9272
9273 eval "$ac_cv_use_radiobtn"
9274 if test "$no_cache" != 1; then
9275 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
9276 fi
9277
9278 if test "$wxUSE_RADIOBTN" = yes; then
9279 echo "$as_me:$LINENO: result: yes" >&5
9280echo "${ECHO_T}yes" >&6
9281 else
9282 echo "$as_me:$LINENO: result: no" >&5
9283echo "${ECHO_T}no" >&6
9284 fi
9285
9286
9287 enablestring=
9288 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
9289echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
9290 no_cache=0
9291 # Check whether --enable-sash or --disable-sash was given.
9292if test "${enable_sash+set}" = set; then
9293 enableval="$enable_sash"
9294
9295 if test "$enableval" = yes; then
9296 ac_cv_use_sash='wxUSE_SASH=yes'
9297 else
9298 ac_cv_use_sash='wxUSE_SASH=no'
9299 fi
9300
9301else
9302
9303 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
9304 if test "x$LINE" != x ; then
9305 eval "DEFAULT_$LINE"
9306 else
9307 no_cache=1
9308 fi
9309
9310 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
9311
9312fi;
9313
9314 eval "$ac_cv_use_sash"
9315 if test "$no_cache" != 1; then
9316 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
9317 fi
9318
9319 if test "$wxUSE_SASH" = yes; then
9320 echo "$as_me:$LINENO: result: yes" >&5
9321echo "${ECHO_T}yes" >&6
9322 else
9323 echo "$as_me:$LINENO: result: no" >&5
9324echo "${ECHO_T}no" >&6
9325 fi
9326
9327
9328 enablestring=
9329 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
9330echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
9331 no_cache=0
9332 # Check whether --enable-scrollbar or --disable-scrollbar was given.
9333if test "${enable_scrollbar+set}" = set; then
9334 enableval="$enable_scrollbar"
9335
9336 if test "$enableval" = yes; then
9337 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
9338 else
9339 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
9340 fi
9341
9342else
9343
9344 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
9345 if test "x$LINE" != x ; then
9346 eval "DEFAULT_$LINE"
9347 else
9348 no_cache=1
9349 fi
9350
9351 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
9352
9353fi;
9354
9355 eval "$ac_cv_use_scrollbar"
9356 if test "$no_cache" != 1; then
9357 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
9358 fi
9359
9360 if test "$wxUSE_SCROLLBAR" = yes; then
9361 echo "$as_me:$LINENO: result: yes" >&5
9362echo "${ECHO_T}yes" >&6
9363 else
9364 echo "$as_me:$LINENO: result: no" >&5
9365echo "${ECHO_T}no" >&6
9366 fi
9367
9368
9369 enablestring=
9370 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
9371echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
9372 no_cache=0
9373 # Check whether --enable-slider or --disable-slider was given.
9374if test "${enable_slider+set}" = set; then
9375 enableval="$enable_slider"
9376
9377 if test "$enableval" = yes; then
9378 ac_cv_use_slider='wxUSE_SLIDER=yes'
9379 else
9380 ac_cv_use_slider='wxUSE_SLIDER=no'
9381 fi
9382
9383else
9384
9385 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
9386 if test "x$LINE" != x ; then
9387 eval "DEFAULT_$LINE"
9388 else
9389 no_cache=1
9390 fi
9391
9392 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9393
9394fi;
9395
9396 eval "$ac_cv_use_slider"
9397 if test "$no_cache" != 1; then
9398 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9399 fi
9400
9401 if test "$wxUSE_SLIDER" = yes; then
9402 echo "$as_me:$LINENO: result: yes" >&5
9403echo "${ECHO_T}yes" >&6
9404 else
9405 echo "$as_me:$LINENO: result: no" >&5
9406echo "${ECHO_T}no" >&6
9407 fi
9408
9409
9410 enablestring=
9411 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9412echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9413 no_cache=0
9414 # Check whether --enable-spinbtn or --disable-spinbtn was given.
9415if test "${enable_spinbtn+set}" = set; then
9416 enableval="$enable_spinbtn"
9417
9418 if test "$enableval" = yes; then
9419 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9420 else
9421 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9422 fi
9423
9424else
9425
9426 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9427 if test "x$LINE" != x ; then
9428 eval "DEFAULT_$LINE"
9429 else
9430 no_cache=1
9431 fi
9432
9433 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9434
9435fi;
9436
9437 eval "$ac_cv_use_spinbtn"
9438 if test "$no_cache" != 1; then
9439 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9440 fi
9441
9442 if test "$wxUSE_SPINBTN" = yes; then
9443 echo "$as_me:$LINENO: result: yes" >&5
9444echo "${ECHO_T}yes" >&6
9445 else
9446 echo "$as_me:$LINENO: result: no" >&5
9447echo "${ECHO_T}no" >&6
9448 fi
9449
9450
9451 enablestring=
9452 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9453echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9454 no_cache=0
9455 # Check whether --enable-spinctrl or --disable-spinctrl was given.
9456if test "${enable_spinctrl+set}" = set; then
9457 enableval="$enable_spinctrl"
9458
9459 if test "$enableval" = yes; then
9460 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9461 else
9462 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9463 fi
9464
9465else
9466
9467 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9468 if test "x$LINE" != x ; then
9469 eval "DEFAULT_$LINE"
9470 else
9471 no_cache=1
9472 fi
9473
9474 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9475
9476fi;
9477
9478 eval "$ac_cv_use_spinctrl"
9479 if test "$no_cache" != 1; then
9480 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9481 fi
9482
9483 if test "$wxUSE_SPINCTRL" = yes; then
9484 echo "$as_me:$LINENO: result: yes" >&5
9485echo "${ECHO_T}yes" >&6
9486 else
9487 echo "$as_me:$LINENO: result: no" >&5
9488echo "${ECHO_T}no" >&6
9489 fi
9490
9491
9492 enablestring=
9493 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9494echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9495 no_cache=0
9496 # Check whether --enable-splitter or --disable-splitter was given.
9497if test "${enable_splitter+set}" = set; then
9498 enableval="$enable_splitter"
9499
9500 if test "$enableval" = yes; then
9501 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9502 else
9503 ac_cv_use_splitter='wxUSE_SPLITTER=no'
9504 fi
9505
9506else
9507
9508 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9509 if test "x$LINE" != x ; then
9510 eval "DEFAULT_$LINE"
9511 else
9512 no_cache=1
9513 fi
9514
9515 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9516
9517fi;
9518
9519 eval "$ac_cv_use_splitter"
9520 if test "$no_cache" != 1; then
9521 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9522 fi
9523
9524 if test "$wxUSE_SPLITTER" = yes; then
9525 echo "$as_me:$LINENO: result: yes" >&5
9526echo "${ECHO_T}yes" >&6
9527 else
9528 echo "$as_me:$LINENO: result: no" >&5
9529echo "${ECHO_T}no" >&6
9530 fi
9531
9532
9533 enablestring=
9534 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9535echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9536 no_cache=0
9537 # Check whether --enable-statbmp or --disable-statbmp was given.
9538if test "${enable_statbmp+set}" = set; then
9539 enableval="$enable_statbmp"
9540
9541 if test "$enableval" = yes; then
9542 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9543 else
9544 ac_cv_use_statbmp='wxUSE_STATBMP=no'
9545 fi
9546
9547else
9548
9549 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9550 if test "x$LINE" != x ; then
9551 eval "DEFAULT_$LINE"
9552 else
9553 no_cache=1
9554 fi
9555
9556 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9557
9558fi;
9559
9560 eval "$ac_cv_use_statbmp"
9561 if test "$no_cache" != 1; then
9562 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9563 fi
9564
9565 if test "$wxUSE_STATBMP" = yes; then
9566 echo "$as_me:$LINENO: result: yes" >&5
9567echo "${ECHO_T}yes" >&6
9568 else
9569 echo "$as_me:$LINENO: result: no" >&5
9570echo "${ECHO_T}no" >&6
9571 fi
9572
9573
9574 enablestring=
9575 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9576echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9577 no_cache=0
9578 # Check whether --enable-statbox or --disable-statbox was given.
9579if test "${enable_statbox+set}" = set; then
9580 enableval="$enable_statbox"
9581
9582 if test "$enableval" = yes; then
9583 ac_cv_use_statbox='wxUSE_STATBOX=yes'
9584 else
9585 ac_cv_use_statbox='wxUSE_STATBOX=no'
9586 fi
9587
9588else
9589
9590 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9591 if test "x$LINE" != x ; then
9592 eval "DEFAULT_$LINE"
9593 else
9594 no_cache=1
9595 fi
9596
9597 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9598
9599fi;
9600
9601 eval "$ac_cv_use_statbox"
9602 if test "$no_cache" != 1; then
9603 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9604 fi
9605
9606 if test "$wxUSE_STATBOX" = yes; then
9607 echo "$as_me:$LINENO: result: yes" >&5
9608echo "${ECHO_T}yes" >&6
9609 else
9610 echo "$as_me:$LINENO: result: no" >&5
9611echo "${ECHO_T}no" >&6
9612 fi
9613
9614
9615 enablestring=
9616 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9617echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9618 no_cache=0
9619 # Check whether --enable-statline or --disable-statline was given.
9620if test "${enable_statline+set}" = set; then
9621 enableval="$enable_statline"
9622
9623 if test "$enableval" = yes; then
9624 ac_cv_use_statline='wxUSE_STATLINE=yes'
9625 else
9626 ac_cv_use_statline='wxUSE_STATLINE=no'
9627 fi
9628
9629else
9630
9631 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9632 if test "x$LINE" != x ; then
9633 eval "DEFAULT_$LINE"
9634 else
9635 no_cache=1
9636 fi
9637
9638 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9639
9640fi;
9641
9642 eval "$ac_cv_use_statline"
9643 if test "$no_cache" != 1; then
9644 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9645 fi
9646
9647 if test "$wxUSE_STATLINE" = yes; then
9648 echo "$as_me:$LINENO: result: yes" >&5
9649echo "${ECHO_T}yes" >&6
9650 else
9651 echo "$as_me:$LINENO: result: no" >&5
9652echo "${ECHO_T}no" >&6
9653 fi
9654
9655
9656 enablestring=
9657 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9658echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9659 no_cache=0
9660 # Check whether --enable-stattext or --disable-stattext was given.
9661if test "${enable_stattext+set}" = set; then
9662 enableval="$enable_stattext"
9663
9664 if test "$enableval" = yes; then
9665 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9666 else
9667 ac_cv_use_stattext='wxUSE_STATTEXT=no'
9668 fi
9669
9670else
9671
9672 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9673 if test "x$LINE" != x ; then
9674 eval "DEFAULT_$LINE"
9675 else
9676 no_cache=1
9677 fi
9678
9679 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9680
9681fi;
9682
9683 eval "$ac_cv_use_stattext"
9684 if test "$no_cache" != 1; then
9685 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9686 fi
9687
9688 if test "$wxUSE_STATTEXT" = yes; then
9689 echo "$as_me:$LINENO: result: yes" >&5
9690echo "${ECHO_T}yes" >&6
9691 else
9692 echo "$as_me:$LINENO: result: no" >&5
9693echo "${ECHO_T}no" >&6
9694 fi
9695
9696
9697 enablestring=
9698 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9699echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9700 no_cache=0
9701 # Check whether --enable-statusbar or --disable-statusbar was given.
9702if test "${enable_statusbar+set}" = set; then
9703 enableval="$enable_statusbar"
9704
9705 if test "$enableval" = yes; then
9706 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9707 else
9708 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9709 fi
9710
9711else
9712
9713 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9714 if test "x$LINE" != x ; then
9715 eval "DEFAULT_$LINE"
9716 else
9717 no_cache=1
9718 fi
9719
9720 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9721
9722fi;
9723
9724 eval "$ac_cv_use_statusbar"
9725 if test "$no_cache" != 1; then
9726 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9727 fi
9728
9729 if test "$wxUSE_STATUSBAR" = yes; then
9730 echo "$as_me:$LINENO: result: yes" >&5
9731echo "${ECHO_T}yes" >&6
9732 else
9733 echo "$as_me:$LINENO: result: no" >&5
9734echo "${ECHO_T}no" >&6
9735 fi
9736
9737
9738 enablestring=
9739 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9740echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9741 no_cache=0
9742 # Check whether --enable-tabdialog or --disable-tabdialog was given.
9743if test "${enable_tabdialog+set}" = set; then
9744 enableval="$enable_tabdialog"
9745
9746 if test "$enableval" = yes; then
f10e38c4 9747 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 9748 else
f10e38c4 9749 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e
SC
9750 fi
9751
9752else
9753
f10e38c4 9754 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
a848cd7e
SC
9755 if test "x$LINE" != x ; then
9756 eval "DEFAULT_$LINE"
9757 else
9758 no_cache=1
9759 fi
9760
f10e38c4 9761 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
a848cd7e
SC
9762
9763fi;
9764
9765 eval "$ac_cv_use_tabdialog"
9766 if test "$no_cache" != 1; then
9767 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9768 fi
9769
f10e38c4 9770 if test "$wxUSE_TAB_DIALOG" = yes; then
a848cd7e
SC
9771 echo "$as_me:$LINENO: result: yes" >&5
9772echo "${ECHO_T}yes" >&6
9773 else
9774 echo "$as_me:$LINENO: result: no" >&5
9775echo "${ECHO_T}no" >&6
9776 fi
9777
9778
9779 enablestring=
9780 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9781echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9782 no_cache=0
9783 # Check whether --enable-textctrl or --disable-textctrl was given.
9784if test "${enable_textctrl+set}" = set; then
9785 enableval="$enable_textctrl"
9786
9787 if test "$enableval" = yes; then
9788 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9789 else
9790 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9791 fi
9792
9793else
9794
9795 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9796 if test "x$LINE" != x ; then
9797 eval "DEFAULT_$LINE"
9798 else
9799 no_cache=1
9800 fi
9801
9802 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9803
9804fi;
9805
9806 eval "$ac_cv_use_textctrl"
9807 if test "$no_cache" != 1; then
9808 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9809 fi
9810
9811 if test "$wxUSE_TEXTCTRL" = yes; then
9812 echo "$as_me:$LINENO: result: yes" >&5
9813echo "${ECHO_T}yes" >&6
9814 else
9815 echo "$as_me:$LINENO: result: no" >&5
9816echo "${ECHO_T}no" >&6
9817 fi
9818
9819
9820 enablestring=
9821 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9822echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9823 no_cache=0
9824 # Check whether --enable-togglebtn or --disable-togglebtn was given.
9825if test "${enable_togglebtn+set}" = set; then
9826 enableval="$enable_togglebtn"
9827
9828 if test "$enableval" = yes; then
9829 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9830 else
9831 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9832 fi
9833
9834else
9835
9836 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9837 if test "x$LINE" != x ; then
9838 eval "DEFAULT_$LINE"
9839 else
9840 no_cache=1
9841 fi
9842
9843 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9844
9845fi;
9846
9847 eval "$ac_cv_use_togglebtn"
9848 if test "$no_cache" != 1; then
9849 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9850 fi
9851
9852 if test "$wxUSE_TOGGLEBTN" = yes; then
9853 echo "$as_me:$LINENO: result: yes" >&5
9854echo "${ECHO_T}yes" >&6
9855 else
9856 echo "$as_me:$LINENO: result: no" >&5
9857echo "${ECHO_T}no" >&6
9858 fi
9859
9860
9861 enablestring=
9862 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9863echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9864 no_cache=0
9865 # Check whether --enable-toolbar or --disable-toolbar was given.
9866if test "${enable_toolbar+set}" = set; then
9867 enableval="$enable_toolbar"
9868
9869 if test "$enableval" = yes; then
9870 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9871 else
9872 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9873 fi
9874
9875else
9876
9877 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9878 if test "x$LINE" != x ; then
9879 eval "DEFAULT_$LINE"
9880 else
9881 no_cache=1
9882 fi
9883
9884 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9885
9886fi;
9887
9888 eval "$ac_cv_use_toolbar"
9889 if test "$no_cache" != 1; then
9890 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9891 fi
9892
9893 if test "$wxUSE_TOOLBAR" = yes; then
9894 echo "$as_me:$LINENO: result: yes" >&5
9895echo "${ECHO_T}yes" >&6
9896 else
9897 echo "$as_me:$LINENO: result: no" >&5
9898echo "${ECHO_T}no" >&6
9899 fi
9900
9901
9902 enablestring=
9903 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9904echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9905 no_cache=0
9906 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9907if test "${enable_tbarnative+set}" = set; then
9908 enableval="$enable_tbarnative"
9909
9910 if test "$enableval" = yes; then
9911 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9912 else
9913 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9914 fi
9915
9916else
9917
9918 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9919 if test "x$LINE" != x ; then
9920 eval "DEFAULT_$LINE"
9921 else
9922 no_cache=1
9923 fi
9924
9925 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9926
9927fi;
9928
9929 eval "$ac_cv_use_tbarnative"
9930 if test "$no_cache" != 1; then
9931 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9932 fi
9933
9934 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9935 echo "$as_me:$LINENO: result: yes" >&5
9936echo "${ECHO_T}yes" >&6
9937 else
9938 echo "$as_me:$LINENO: result: no" >&5
9939echo "${ECHO_T}no" >&6
9940 fi
9941
9942
0093c2fc
VZ
9943 enablestring=
9944 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9945echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9946 no_cache=0
9947 # Check whether --enable-treebook or --disable-treebook was given.
9948if test "${enable_treebook+set}" = set; then
9949 enableval="$enable_treebook"
9950
9951 if test "$enableval" = yes; then
9952 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9953 else
9954 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9955 fi
9956
9957else
9958
9959 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9960 if test "x$LINE" != x ; then
9961 eval "DEFAULT_$LINE"
9962 else
9963 no_cache=1
9964 fi
9965
9966 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9967
9968fi;
9969
9970 eval "$ac_cv_use_treebook"
9971 if test "$no_cache" != 1; then
9972 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9973 fi
9974
9975 if test "$wxUSE_TREEBOOK" = yes; then
9976 echo "$as_me:$LINENO: result: yes" >&5
9977echo "${ECHO_T}yes" >&6
9978 else
9979 echo "$as_me:$LINENO: result: no" >&5
9980echo "${ECHO_T}no" >&6
9981 fi
9982
9983
5ec3bc43
JS
9984 enablestring=
9985 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9986echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9987 no_cache=0
9988 # Check whether --enable-toolbook or --disable-toolbook was given.
9989if test "${enable_toolbook+set}" = set; then
9990 enableval="$enable_toolbook"
9991
9992 if test "$enableval" = yes; then
9993 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9994 else
9995 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9996 fi
9997
9998else
9999
10000 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
10001 if test "x$LINE" != x ; then
10002 eval "DEFAULT_$LINE"
10003 else
10004 no_cache=1
10005 fi
10006
10007 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
10008
10009fi;
10010
10011 eval "$ac_cv_use_toolbook"
10012 if test "$no_cache" != 1; then
10013 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
10014 fi
10015
10016 if test "$wxUSE_TOOLBOOK" = yes; then
10017 echo "$as_me:$LINENO: result: yes" >&5
10018echo "${ECHO_T}yes" >&6
10019 else
10020 echo "$as_me:$LINENO: result: no" >&5
10021echo "${ECHO_T}no" >&6
10022 fi
10023
10024
a848cd7e
SC
10025 enablestring=
10026 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
10027echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10028 no_cache=0
10029 # Check whether --enable-treectrl or --disable-treectrl was given.
10030if test "${enable_treectrl+set}" = set; then
10031 enableval="$enable_treectrl"
10032
10033 if test "$enableval" = yes; then
10034 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
10035 else
10036 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
10037 fi
10038
10039else
10040
10041 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
10042 if test "x$LINE" != x ; then
10043 eval "DEFAULT_$LINE"
10044 else
10045 no_cache=1
10046 fi
10047
10048 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10049
10050fi;
10051
10052 eval "$ac_cv_use_treectrl"
10053 if test "$no_cache" != 1; then
10054 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
10055 fi
10056
10057 if test "$wxUSE_TREECTRL" = yes; then
10058 echo "$as_me:$LINENO: result: yes" >&5
10059echo "${ECHO_T}yes" >&6
10060 else
10061 echo "$as_me:$LINENO: result: no" >&5
10062echo "${ECHO_T}no" >&6
10063 fi
10064
10065
10066 enablestring=
10067 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
10068echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
10069 no_cache=0
10070 # Check whether --enable-tipwindow or --disable-tipwindow was given.
10071if test "${enable_tipwindow+set}" = set; then
10072 enableval="$enable_tipwindow"
10073
10074 if test "$enableval" = yes; then
10075 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
10076 else
10077 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
10078 fi
10079
10080else
10081
10082 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
10083 if test "x$LINE" != x ; then
10084 eval "DEFAULT_$LINE"
10085 else
10086 no_cache=1
10087 fi
10088
10089 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
10090
10091fi;
10092
10093 eval "$ac_cv_use_tipwindow"
10094 if test "$no_cache" != 1; then
10095 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
10096 fi
10097
10098 if test "$wxUSE_TIPWINDOW" = yes; then
10099 echo "$as_me:$LINENO: result: yes" >&5
10100echo "${ECHO_T}yes" >&6
10101 else
10102 echo "$as_me:$LINENO: result: no" >&5
10103echo "${ECHO_T}no" >&6
10104 fi
10105
10106
10107 enablestring=
10108 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
10109echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
10110 no_cache=0
10111 # Check whether --enable-popupwin or --disable-popupwin was given.
10112if test "${enable_popupwin+set}" = set; then
10113 enableval="$enable_popupwin"
10114
10115 if test "$enableval" = yes; then
10116 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
10117 else
10118 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
10119 fi
10120
10121else
10122
10123 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
10124 if test "x$LINE" != x ; then
10125 eval "DEFAULT_$LINE"
10126 else
10127 no_cache=1
10128 fi
10129
10130 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
10131
10132fi;
10133
10134 eval "$ac_cv_use_popupwin"
10135 if test "$no_cache" != 1; then
10136 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
10137 fi
10138
10139 if test "$wxUSE_POPUPWIN" = yes; then
10140 echo "$as_me:$LINENO: result: yes" >&5
10141echo "${ECHO_T}yes" >&6
10142 else
10143 echo "$as_me:$LINENO: result: no" >&5
10144echo "${ECHO_T}no" >&6
10145 fi
10146
10147
10148
10149
10150 enablestring=
10151 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
10152echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
10153 no_cache=0
10154 # Check whether --enable-commondlg or --disable-commondlg was given.
10155if test "${enable_commondlg+set}" = set; then
10156 enableval="$enable_commondlg"
10157
10158 if test "$enableval" = yes; then
10159 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
10160 else
10161 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
10162 fi
10163
10164else
10165
10166 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
10167 if test "x$LINE" != x ; then
10168 eval "DEFAULT_$LINE"
10169 else
10170 no_cache=1
10171 fi
10172
10173 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
10174
10175fi;
10176
10177 eval "$ac_cv_use_commondlg"
10178 if test "$no_cache" != 1; then
10179 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
10180 fi
10181
10182 if test "$wxUSE_COMMONDLGS" = yes; then
10183 echo "$as_me:$LINENO: result: yes" >&5
10184echo "${ECHO_T}yes" >&6
10185 else
10186 echo "$as_me:$LINENO: result: no" >&5
10187echo "${ECHO_T}no" >&6
10188 fi
10189
10190
319c5ed4
VZ
10191 enablestring=
10192 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
10193echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6
10194 no_cache=0
10195 # Check whether --enable-aboutdlg or --disable-aboutdlg was given.
10196if test "${enable_aboutdlg+set}" = set; then
10197 enableval="$enable_aboutdlg"
10198
10199 if test "$enableval" = yes; then
10200 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
10201 else
10202 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
10203 fi
10204
10205else
10206
10207 LINE=`grep "wxUSE_ABOUTDLG" ${wx_arg_cache_file}`
10208 if test "x$LINE" != x ; then
10209 eval "DEFAULT_$LINE"
10210 else
10211 no_cache=1
10212 fi
10213
10214 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG='$DEFAULT_wxUSE_ABOUTDLG
10215
10216fi;
10217
10218 eval "$ac_cv_use_aboutdlg"
10219 if test "$no_cache" != 1; then
10220 echo $ac_cv_use_aboutdlg >> ${wx_arg_cache_file}.tmp
10221 fi
10222
10223 if test "$wxUSE_ABOUTDLG" = yes; then
10224 echo "$as_me:$LINENO: result: yes" >&5
10225echo "${ECHO_T}yes" >&6
10226 else
10227 echo "$as_me:$LINENO: result: no" >&5
10228echo "${ECHO_T}no" >&6
10229 fi
10230
10231
a848cd7e
SC
10232 enablestring=
10233 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
10234echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
10235 no_cache=0
10236 # Check whether --enable-choicedlg or --disable-choicedlg was given.
10237if test "${enable_choicedlg+set}" = set; then
10238 enableval="$enable_choicedlg"
10239
10240 if test "$enableval" = yes; then
10241 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
10242 else
10243 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
10244 fi
10245
10246else
10247
10248 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
10249 if test "x$LINE" != x ; then
10250 eval "DEFAULT_$LINE"
10251 else
10252 no_cache=1
10253 fi
10254
10255 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
10256
10257fi;
10258
10259 eval "$ac_cv_use_choicedlg"
10260 if test "$no_cache" != 1; then
10261 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
10262 fi
10263
10264 if test "$wxUSE_CHOICEDLG" = yes; then
10265 echo "$as_me:$LINENO: result: yes" >&5
10266echo "${ECHO_T}yes" >&6
10267 else
10268 echo "$as_me:$LINENO: result: no" >&5
10269echo "${ECHO_T}no" >&6
10270 fi
10271
10272
10273 enablestring=
10274 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
10275echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
10276 no_cache=0
10277 # Check whether --enable-coldlg or --disable-coldlg was given.
10278if test "${enable_coldlg+set}" = set; then
10279 enableval="$enable_coldlg"
10280
10281 if test "$enableval" = yes; then
10282 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
10283 else
10284 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
10285 fi
10286
10287else
10288
10289 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
10290 if test "x$LINE" != x ; then
10291 eval "DEFAULT_$LINE"
10292 else
10293 no_cache=1
10294 fi
10295
10296 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
10297
10298fi;
10299
10300 eval "$ac_cv_use_coldlg"
10301 if test "$no_cache" != 1; then
10302 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
10303 fi
10304
10305 if test "$wxUSE_COLOURDLG" = yes; then
10306 echo "$as_me:$LINENO: result: yes" >&5
10307echo "${ECHO_T}yes" >&6
10308 else
10309 echo "$as_me:$LINENO: result: no" >&5
10310echo "${ECHO_T}no" >&6
10311 fi
10312
10313
10314 enablestring=
10315 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
10316echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
10317 no_cache=0
10318 # Check whether --enable-filedlg or --disable-filedlg was given.
10319if test "${enable_filedlg+set}" = set; then
10320 enableval="$enable_filedlg"
10321
10322 if test "$enableval" = yes; then
10323 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
10324 else
10325 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
10326 fi
10327
10328else
10329
10330 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
10331 if test "x$LINE" != x ; then
10332 eval "DEFAULT_$LINE"
10333 else
10334 no_cache=1
10335 fi
10336
10337 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
10338
10339fi;
10340
10341 eval "$ac_cv_use_filedlg"
10342 if test "$no_cache" != 1; then
10343 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
10344 fi
10345
10346 if test "$wxUSE_FILEDLG" = yes; then
10347 echo "$as_me:$LINENO: result: yes" >&5
10348echo "${ECHO_T}yes" >&6
10349 else
10350 echo "$as_me:$LINENO: result: no" >&5
10351echo "${ECHO_T}no" >&6
10352 fi
10353
10354
10355 enablestring=
10356 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
10357echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
10358 no_cache=0
10359 # Check whether --enable-finddlg or --disable-finddlg was given.
10360if test "${enable_finddlg+set}" = set; then
10361 enableval="$enable_finddlg"
10362
10363 if test "$enableval" = yes; then
10364 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
10365 else
10366 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
10367 fi
10368
10369else
10370
10371 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
10372 if test "x$LINE" != x ; then
10373 eval "DEFAULT_$LINE"
10374 else
10375 no_cache=1
10376 fi
10377
10378 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
10379
10380fi;
10381
10382 eval "$ac_cv_use_finddlg"
10383 if test "$no_cache" != 1; then
10384 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
10385 fi
10386
10387 if test "$wxUSE_FINDREPLDLG" = yes; then
10388 echo "$as_me:$LINENO: result: yes" >&5
10389echo "${ECHO_T}yes" >&6
10390 else
10391 echo "$as_me:$LINENO: result: no" >&5
10392echo "${ECHO_T}no" >&6
10393 fi
10394
10395
10396 enablestring=
10397 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10398echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10399 no_cache=0
10400 # Check whether --enable-fontdlg or --disable-fontdlg was given.
10401if test "${enable_fontdlg+set}" = set; then
10402 enableval="$enable_fontdlg"
10403
10404 if test "$enableval" = yes; then
10405 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10406 else
10407 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10408 fi
10409
10410else
10411
10412 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10413 if test "x$LINE" != x ; then
10414 eval "DEFAULT_$LINE"
10415 else
10416 no_cache=1
10417 fi
10418
10419 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10420
10421fi;
10422
10423 eval "$ac_cv_use_fontdlg"
10424 if test "$no_cache" != 1; then
10425 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10426 fi
10427
10428 if test "$wxUSE_FONTDLG" = yes; then
10429 echo "$as_me:$LINENO: result: yes" >&5
10430echo "${ECHO_T}yes" >&6
10431 else
10432 echo "$as_me:$LINENO: result: no" >&5
10433echo "${ECHO_T}no" >&6
10434 fi
10435
10436
10437 enablestring=
10438 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10439echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10440 no_cache=0
10441 # Check whether --enable-dirdlg or --disable-dirdlg was given.
10442if test "${enable_dirdlg+set}" = set; then
10443 enableval="$enable_dirdlg"
10444
10445 if test "$enableval" = yes; then
10446 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10447 else
10448 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10449 fi
10450
10451else
10452
10453 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10454 if test "x$LINE" != x ; then
10455 eval "DEFAULT_$LINE"
10456 else
10457 no_cache=1
10458 fi
10459
10460 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10461
10462fi;
10463
10464 eval "$ac_cv_use_dirdlg"
10465 if test "$no_cache" != 1; then
10466 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10467 fi
10468
10469 if test "$wxUSE_DIRDLG" = yes; then
10470 echo "$as_me:$LINENO: result: yes" >&5
10471echo "${ECHO_T}yes" >&6
10472 else
10473 echo "$as_me:$LINENO: result: no" >&5
10474echo "${ECHO_T}no" >&6
10475 fi
10476
10477
10478 enablestring=
10479 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10480echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10481 no_cache=0
10482 # Check whether --enable-msgdlg or --disable-msgdlg was given.
10483if test "${enable_msgdlg+set}" = set; then
10484 enableval="$enable_msgdlg"
10485
10486 if test "$enableval" = yes; then
10487 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10488 else
10489 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10490 fi
10491
10492else
10493
10494 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10495 if test "x$LINE" != x ; then
10496 eval "DEFAULT_$LINE"
10497 else
10498 no_cache=1
10499 fi
10500
10501 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10502
10503fi;
10504
10505 eval "$ac_cv_use_msgdlg"
10506 if test "$no_cache" != 1; then
10507 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10508 fi
10509
10510 if test "$wxUSE_MSGDLG" = yes; then
10511 echo "$as_me:$LINENO: result: yes" >&5
10512echo "${ECHO_T}yes" >&6
10513 else
10514 echo "$as_me:$LINENO: result: no" >&5
10515echo "${ECHO_T}no" >&6
10516 fi
10517
10518
10519 enablestring=
10520 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10521echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10522 no_cache=0
10523 # Check whether --enable-numberdlg or --disable-numberdlg was given.
10524if test "${enable_numberdlg+set}" = set; then
10525 enableval="$enable_numberdlg"
10526
10527 if test "$enableval" = yes; then
10528 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10529 else
10530 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10531 fi
10532
10533else
10534
10535 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10536 if test "x$LINE" != x ; then
10537 eval "DEFAULT_$LINE"
10538 else
10539 no_cache=1
10540 fi
10541
10542 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10543
10544fi;
10545
10546 eval "$ac_cv_use_numberdlg"
10547 if test "$no_cache" != 1; then
10548 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10549 fi
10550
10551 if test "$wxUSE_NUMBERDLG" = yes; then
10552 echo "$as_me:$LINENO: result: yes" >&5
10553echo "${ECHO_T}yes" >&6
10554 else
10555 echo "$as_me:$LINENO: result: no" >&5
10556echo "${ECHO_T}no" >&6
10557 fi
10558
10559
10560 enablestring=
10561 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10562echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10563 no_cache=0
10564 # Check whether --enable-splash or --disable-splash was given.
10565if test "${enable_splash+set}" = set; then
10566 enableval="$enable_splash"
10567
10568 if test "$enableval" = yes; then
10569 ac_cv_use_splash='wxUSE_SPLASH=yes'
10570 else
10571 ac_cv_use_splash='wxUSE_SPLASH=no'
10572 fi
10573
10574else
10575
10576 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10577 if test "x$LINE" != x ; then
10578 eval "DEFAULT_$LINE"
10579 else
10580 no_cache=1
10581 fi
10582
10583 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10584
10585fi;
10586
10587 eval "$ac_cv_use_splash"
10588 if test "$no_cache" != 1; then
10589 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10590 fi
10591
10592 if test "$wxUSE_SPLASH" = yes; then
10593 echo "$as_me:$LINENO: result: yes" >&5
10594echo "${ECHO_T}yes" >&6
10595 else
10596 echo "$as_me:$LINENO: result: no" >&5
10597echo "${ECHO_T}no" >&6
10598 fi
10599
10600
10601 enablestring=
10602 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10603echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10604 no_cache=0
10605 # Check whether --enable-textdlg or --disable-textdlg was given.
10606if test "${enable_textdlg+set}" = set; then
10607 enableval="$enable_textdlg"
10608
10609 if test "$enableval" = yes; then
10610 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10611 else
10612 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10613 fi
10614
10615else
10616
10617 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10618 if test "x$LINE" != x ; then
10619 eval "DEFAULT_$LINE"
10620 else
10621 no_cache=1
10622 fi
10623
10624 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10625
10626fi;
10627
10628 eval "$ac_cv_use_textdlg"
10629 if test "$no_cache" != 1; then
10630 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10631 fi
10632
10633 if test "$wxUSE_TEXTDLG" = yes; then
10634 echo "$as_me:$LINENO: result: yes" >&5
10635echo "${ECHO_T}yes" >&6
10636 else
10637 echo "$as_me:$LINENO: result: no" >&5
10638echo "${ECHO_T}no" >&6
10639 fi
10640
10641
10642 enablestring=
10643 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10644echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10645 no_cache=0
10646 # Check whether --enable-tipdlg or --disable-tipdlg was given.
10647if test "${enable_tipdlg+set}" = set; then
10648 enableval="$enable_tipdlg"
10649
10650 if test "$enableval" = yes; then
10651 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10652 else
10653 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10654 fi
10655
10656else
10657
10658 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10659 if test "x$LINE" != x ; then
10660 eval "DEFAULT_$LINE"
10661 else
10662 no_cache=1
10663 fi
10664
10665 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10666
10667fi;
10668
10669 eval "$ac_cv_use_tipdlg"
10670 if test "$no_cache" != 1; then
10671 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10672 fi
10673
10674 if test "$wxUSE_STARTUP_TIPS" = yes; then
10675 echo "$as_me:$LINENO: result: yes" >&5
10676echo "${ECHO_T}yes" >&6
10677 else
10678 echo "$as_me:$LINENO: result: no" >&5
10679echo "${ECHO_T}no" >&6
10680 fi
10681
10682
10683 enablestring=
10684 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10685echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10686 no_cache=0
10687 # Check whether --enable-progressdlg or --disable-progressdlg was given.
10688if test "${enable_progressdlg+set}" = set; then
10689 enableval="$enable_progressdlg"
10690
10691 if test "$enableval" = yes; then
10692 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10693 else
10694 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10695 fi
10696
10697else
10698
10699 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10700 if test "x$LINE" != x ; then
10701 eval "DEFAULT_$LINE"
10702 else
10703 no_cache=1
10704 fi
10705
10706 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10707
10708fi;
10709
10710 eval "$ac_cv_use_progressdlg"
10711 if test "$no_cache" != 1; then
10712 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10713 fi
10714
10715 if test "$wxUSE_PROGRESSDLG" = yes; then
10716 echo "$as_me:$LINENO: result: yes" >&5
10717echo "${ECHO_T}yes" >&6
10718 else
10719 echo "$as_me:$LINENO: result: no" >&5
10720echo "${ECHO_T}no" >&6
10721 fi
10722
10723
10724 enablestring=
10725 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10726echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10727 no_cache=0
10728 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10729if test "${enable_wizarddlg+set}" = set; then
10730 enableval="$enable_wizarddlg"
10731
10732 if test "$enableval" = yes; then
10733 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10734 else
10735 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10736 fi
10737
10738else
10739
10740 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10741 if test "x$LINE" != x ; then
10742 eval "DEFAULT_$LINE"
10743 else
10744 no_cache=1
10745 fi
10746
10747 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10748
10749fi;
10750
10751 eval "$ac_cv_use_wizarddlg"
10752 if test "$no_cache" != 1; then
10753 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10754 fi
10755
10756 if test "$wxUSE_WIZARDDLG" = yes; then
10757 echo "$as_me:$LINENO: result: yes" >&5
10758echo "${ECHO_T}yes" >&6
10759 else
10760 echo "$as_me:$LINENO: result: no" >&5
10761echo "${ECHO_T}no" >&6
10762 fi
10763
10764
10765
10766
10767 enablestring=
10768 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10769echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10770 no_cache=0
10771 # Check whether --enable-menus or --disable-menus was given.
10772if test "${enable_menus+set}" = set; then
10773 enableval="$enable_menus"
10774
10775 if test "$enableval" = yes; then
10776 ac_cv_use_menus='wxUSE_MENUS=yes'
10777 else
10778 ac_cv_use_menus='wxUSE_MENUS=no'
10779 fi
10780
10781else
10782
10783 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10784 if test "x$LINE" != x ; then
10785 eval "DEFAULT_$LINE"
10786 else
10787 no_cache=1
10788 fi
10789
10790 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10791
10792fi;
10793
10794 eval "$ac_cv_use_menus"
10795 if test "$no_cache" != 1; then
10796 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10797 fi
10798
10799 if test "$wxUSE_MENUS" = yes; then
10800 echo "$as_me:$LINENO: result: yes" >&5
10801echo "${ECHO_T}yes" >&6
10802 else
10803 echo "$as_me:$LINENO: result: no" >&5
10804echo "${ECHO_T}no" >&6
10805 fi
10806
10807
10808 enablestring=
10809 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10810echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10811 no_cache=0
10812 # Check whether --enable-miniframe or --disable-miniframe was given.
10813if test "${enable_miniframe+set}" = set; then
10814 enableval="$enable_miniframe"
10815
10816 if test "$enableval" = yes; then
10817 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10818 else
10819 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10820 fi
10821
10822else
10823
10824 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10825 if test "x$LINE" != x ; then
10826 eval "DEFAULT_$LINE"
10827 else
10828 no_cache=1
10829 fi
10830
10831 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10832
10833fi;
10834
10835 eval "$ac_cv_use_miniframe"
10836 if test "$no_cache" != 1; then
10837 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10838 fi
10839
10840 if test "$wxUSE_MINIFRAME" = yes; then
10841 echo "$as_me:$LINENO: result: yes" >&5
10842echo "${ECHO_T}yes" >&6
10843 else
10844 echo "$as_me:$LINENO: result: no" >&5
10845echo "${ECHO_T}no" >&6
10846 fi
10847
10848
10849 enablestring=
10850 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10851echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10852 no_cache=0
10853 # Check whether --enable-tooltips or --disable-tooltips was given.
10854if test "${enable_tooltips+set}" = set; then
10855 enableval="$enable_tooltips"
10856
10857 if test "$enableval" = yes; then
10858 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10859 else
10860 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10861 fi
10862
10863else
10864
10865 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10866 if test "x$LINE" != x ; then
10867 eval "DEFAULT_$LINE"
10868 else
10869 no_cache=1
10870 fi
10871
10872 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10873
10874fi;
10875
10876 eval "$ac_cv_use_tooltips"
10877 if test "$no_cache" != 1; then
10878 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10879 fi
10880
10881 if test "$wxUSE_TOOLTIPS" = yes; then
10882 echo "$as_me:$LINENO: result: yes" >&5
10883echo "${ECHO_T}yes" >&6
10884 else
10885 echo "$as_me:$LINENO: result: no" >&5
10886echo "${ECHO_T}no" >&6
10887 fi
10888
10889
10890 enablestring=
10891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10892echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10893 no_cache=0
10894 # Check whether --enable-splines or --disable-splines was given.
10895if test "${enable_splines+set}" = set; then
10896 enableval="$enable_splines"
10897
10898 if test "$enableval" = yes; then
10899 ac_cv_use_splines='wxUSE_SPLINES=yes'
10900 else
10901 ac_cv_use_splines='wxUSE_SPLINES=no'
10902 fi
10903
10904else
10905
10906 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10907 if test "x$LINE" != x ; then
10908 eval "DEFAULT_$LINE"
10909 else
10910 no_cache=1
10911 fi
10912
10913 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10914
10915fi;
10916
10917 eval "$ac_cv_use_splines"
10918 if test "$no_cache" != 1; then
10919 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10920 fi
10921
10922 if test "$wxUSE_SPLINES" = yes; then
10923 echo "$as_me:$LINENO: result: yes" >&5
10924echo "${ECHO_T}yes" >&6
10925 else
10926 echo "$as_me:$LINENO: result: no" >&5
10927echo "${ECHO_T}no" >&6
10928 fi
10929
10930
fbe2ca43
SN
10931 enablestring=
10932 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10933echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10934 no_cache=0
10935 # Check whether --enable-mousewheel or --disable-mousewheel was given.
10936if test "${enable_mousewheel+set}" = set; then
10937 enableval="$enable_mousewheel"
10938
10939 if test "$enableval" = yes; then
10940 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10941 else
10942 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10943 fi
10944
10945else
10946
10947 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10948 if test "x$LINE" != x ; then
10949 eval "DEFAULT_$LINE"
10950 else
10951 no_cache=1
10952 fi
10953
10954 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10955
10956fi;
10957
10958 eval "$ac_cv_use_mousewheel"
10959 if test "$no_cache" != 1; then
10960 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10961 fi
10962
10963 if test "$wxUSE_MOUSEWHEEL" = yes; then
10964 echo "$as_me:$LINENO: result: yes" >&5
10965echo "${ECHO_T}yes" >&6
10966 else
10967 echo "$as_me:$LINENO: result: no" >&5
10968echo "${ECHO_T}no" >&6
10969 fi
10970
10971
a848cd7e
SC
10972 enablestring=
10973 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10974echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10975 no_cache=0
10976 # Check whether --enable-validators or --disable-validators was given.
10977if test "${enable_validators+set}" = set; then
10978 enableval="$enable_validators"
10979
10980 if test "$enableval" = yes; then
10981 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10982 else
10983 ac_cv_use_validators='wxUSE_VALIDATORS=no'
10984 fi
10985
10986else
10987
10988 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10989 if test "x$LINE" != x ; then
10990 eval "DEFAULT_$LINE"
10991 else
10992 no_cache=1
10993 fi
10994
10995 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10996
10997fi;
10998
10999 eval "$ac_cv_use_validators"
11000 if test "$no_cache" != 1; then
11001 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
11002 fi
11003
11004 if test "$wxUSE_VALIDATORS" = yes; then
11005 echo "$as_me:$LINENO: result: yes" >&5
11006echo "${ECHO_T}yes" >&6
11007 else
11008 echo "$as_me:$LINENO: result: no" >&5
11009echo "${ECHO_T}no" >&6
11010 fi
11011
11012
11013 enablestring=
11014 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
11015echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
11016 no_cache=0
11017 # Check whether --enable-busyinfo or --disable-busyinfo was given.
11018if test "${enable_busyinfo+set}" = set; then
11019 enableval="$enable_busyinfo"
11020
11021 if test "$enableval" = yes; then
11022 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
11023 else
11024 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
11025 fi
11026
11027else
11028
11029 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
11030 if test "x$LINE" != x ; then
11031 eval "DEFAULT_$LINE"
11032 else
11033 no_cache=1
11034 fi
11035
11036 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
11037
11038fi;
11039
11040 eval "$ac_cv_use_busyinfo"
11041 if test "$no_cache" != 1; then
11042 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
11043 fi
11044
11045 if test "$wxUSE_BUSYINFO" = yes; then
11046 echo "$as_me:$LINENO: result: yes" >&5
11047echo "${ECHO_T}yes" >&6
11048 else
11049 echo "$as_me:$LINENO: result: no" >&5
11050echo "${ECHO_T}no" >&6
11051 fi
11052
11053
11054 enablestring=
11055 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
11056echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
11057 no_cache=0
11058 # Check whether --enable-joystick or --disable-joystick was given.
11059if test "${enable_joystick+set}" = set; then
11060 enableval="$enable_joystick"
11061
11062 if test "$enableval" = yes; then
11063 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
11064 else
11065 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
11066 fi
11067
11068else
11069
11070 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
11071 if test "x$LINE" != x ; then
11072 eval "DEFAULT_$LINE"
11073 else
11074 no_cache=1
11075 fi
11076
11077 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
11078
11079fi;
11080
11081 eval "$ac_cv_use_joystick"
11082 if test "$no_cache" != 1; then
11083 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
11084 fi
11085
11086 if test "$wxUSE_JOYSTICK" = yes; then
11087 echo "$as_me:$LINENO: result: yes" >&5
11088echo "${ECHO_T}yes" >&6
11089 else
11090 echo "$as_me:$LINENO: result: no" >&5
11091echo "${ECHO_T}no" >&6
11092 fi
11093
11094
11095 enablestring=
11096 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
11097echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
11098 no_cache=0
11099 # Check whether --enable-metafile or --disable-metafile was given.
11100if test "${enable_metafile+set}" = set; then
11101 enableval="$enable_metafile"
11102
11103 if test "$enableval" = yes; then
11104 ac_cv_use_metafile='wxUSE_METAFILE=yes'
11105 else
11106 ac_cv_use_metafile='wxUSE_METAFILE=no'
11107 fi
11108
11109else
11110
11111 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
11112 if test "x$LINE" != x ; then
11113 eval "DEFAULT_$LINE"
11114 else
11115 no_cache=1
11116 fi
11117
11118 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
11119
11120fi;
11121
11122 eval "$ac_cv_use_metafile"
11123 if test "$no_cache" != 1; then
11124 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
11125 fi
11126
11127 if test "$wxUSE_METAFILE" = yes; then
11128 echo "$as_me:$LINENO: result: yes" >&5
11129echo "${ECHO_T}yes" >&6
11130 else
11131 echo "$as_me:$LINENO: result: no" >&5
11132echo "${ECHO_T}no" >&6
11133 fi
11134
11135
11136 enablestring=
11137 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
11138echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
11139 no_cache=0
11140 # Check whether --enable-dragimage or --disable-dragimage was given.
11141if test "${enable_dragimage+set}" = set; then
11142 enableval="$enable_dragimage"
11143
11144 if test "$enableval" = yes; then
11145 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
11146 else
11147 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
11148 fi
11149
11150else
11151
11152 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
11153 if test "x$LINE" != x ; then
11154 eval "DEFAULT_$LINE"
11155 else
11156 no_cache=1
11157 fi
11158
11159 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
11160
11161fi;
11162
11163 eval "$ac_cv_use_dragimage"
11164 if test "$no_cache" != 1; then
11165 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
11166 fi
11167
11168 if test "$wxUSE_DRAGIMAGE" = yes; then
11169 echo "$as_me:$LINENO: result: yes" >&5
11170echo "${ECHO_T}yes" >&6
11171 else
11172 echo "$as_me:$LINENO: result: no" >&5
11173echo "${ECHO_T}no" >&6
11174 fi
11175
11176
11177 enablestring=
11178 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
11179echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
11180 no_cache=0
11181 # Check whether --enable-accessibility or --disable-accessibility was given.
11182if test "${enable_accessibility+set}" = set; then
11183 enableval="$enable_accessibility"
11184
11185 if test "$enableval" = yes; then
11186 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
11187 else
11188 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
11189 fi
11190
11191else
11192
11193 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
11194 if test "x$LINE" != x ; then
11195 eval "DEFAULT_$LINE"
11196 else
11197 no_cache=1
11198 fi
11199
11200 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
11201
11202fi;
11203
11204 eval "$ac_cv_use_accessibility"
11205 if test "$no_cache" != 1; then
11206 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
11207 fi
11208
11209 if test "$wxUSE_ACCESSIBILITY" = yes; then
11210 echo "$as_me:$LINENO: result: yes" >&5
11211echo "${ECHO_T}yes" >&6
11212 else
11213 echo "$as_me:$LINENO: result: no" >&5
11214echo "${ECHO_T}no" >&6
11215 fi
11216
11217
38b4a946
VZ
11218if test "$wxUSE_MSW" = "1"; then
11219
11220 enablestring=
11221 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
11222echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
11223 no_cache=0
11224 # Check whether --enable-dccache or --disable-dccache was given.
11225if test "${enable_dccache+set}" = set; then
11226 enableval="$enable_dccache"
11227
11228 if test "$enableval" = yes; then
11229 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
11230 else
11231 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
11232 fi
11233
11234else
11235
11236 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
11237 if test "x$LINE" != x ; then
11238 eval "DEFAULT_$LINE"
11239 else
11240 no_cache=1
11241 fi
11242
11243 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
11244
11245fi;
11246
11247 eval "$ac_cv_use_dccache"
11248 if test "$no_cache" != 1; then
11249 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
11250 fi
11251
11252 if test "$wxUSE_DC_CACHEING" = yes; then
11253 echo "$as_me:$LINENO: result: yes" >&5
11254echo "${ECHO_T}yes" >&6
11255 else
11256 echo "$as_me:$LINENO: result: no" >&5
11257echo "${ECHO_T}no" >&6
11258 fi
11259
11260fi
11261
a848cd7e
SC
11262
11263
11264 enablestring=
11265 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
11266echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
11267 no_cache=0
11268 # Check whether --enable-palette or --disable-palette was given.
11269if test "${enable_palette+set}" = set; then
11270 enableval="$enable_palette"
11271
11272 if test "$enableval" = yes; then
11273 ac_cv_use_palette='wxUSE_PALETTE=yes'
11274 else
11275 ac_cv_use_palette='wxUSE_PALETTE=no'
11276 fi
11277
11278else
11279
11280 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
11281 if test "x$LINE" != x ; then
11282 eval "DEFAULT_$LINE"
11283 else
11284 no_cache=1
11285 fi
11286
11287 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
11288
11289fi;
11290
11291 eval "$ac_cv_use_palette"
11292 if test "$no_cache" != 1; then
11293 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
11294 fi
11295
11296 if test "$wxUSE_PALETTE" = yes; then
11297 echo "$as_me:$LINENO: result: yes" >&5
11298echo "${ECHO_T}yes" >&6
11299 else
11300 echo "$as_me:$LINENO: result: no" >&5
11301echo "${ECHO_T}no" >&6
11302 fi
11303
11304
11305 enablestring=
11306 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
11307echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
11308 no_cache=0
11309 # Check whether --enable-image or --disable-image was given.
11310if test "${enable_image+set}" = set; then
11311 enableval="$enable_image"
11312
11313 if test "$enableval" = yes; then
11314 ac_cv_use_image='wxUSE_IMAGE=yes'
11315 else
11316 ac_cv_use_image='wxUSE_IMAGE=no'
11317 fi
11318
11319else
11320
11321 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
11322 if test "x$LINE" != x ; then
11323 eval "DEFAULT_$LINE"
11324 else
11325 no_cache=1
11326 fi
11327
11328 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
11329
11330fi;
11331
11332 eval "$ac_cv_use_image"
11333 if test "$no_cache" != 1; then
11334 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
11335 fi
11336
11337 if test "$wxUSE_IMAGE" = yes; then
11338 echo "$as_me:$LINENO: result: yes" >&5
11339echo "${ECHO_T}yes" >&6
11340 else
11341 echo "$as_me:$LINENO: result: no" >&5
11342echo "${ECHO_T}no" >&6
11343 fi
11344
11345
11346 enablestring=
11347 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
11348echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
11349 no_cache=0
11350 # Check whether --enable-gif or --disable-gif was given.
11351if test "${enable_gif+set}" = set; then
11352 enableval="$enable_gif"
11353
11354 if test "$enableval" = yes; then
11355 ac_cv_use_gif='wxUSE_GIF=yes'
11356 else
11357 ac_cv_use_gif='wxUSE_GIF=no'
11358 fi
11359
11360else
11361
11362 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
11363 if test "x$LINE" != x ; then
11364 eval "DEFAULT_$LINE"
11365 else
11366 no_cache=1
11367 fi
11368
11369 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
11370
11371fi;
11372
11373 eval "$ac_cv_use_gif"
11374 if test "$no_cache" != 1; then
11375 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
11376 fi
11377
11378 if test "$wxUSE_GIF" = yes; then
11379 echo "$as_me:$LINENO: result: yes" >&5
11380echo "${ECHO_T}yes" >&6
11381 else
11382 echo "$as_me:$LINENO: result: no" >&5
11383echo "${ECHO_T}no" >&6
11384 fi
11385
11386
11387 enablestring=
11388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11389echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11390 no_cache=0
11391 # Check whether --enable-pcx or --disable-pcx was given.
11392if test "${enable_pcx+set}" = set; then
11393 enableval="$enable_pcx"
11394
11395 if test "$enableval" = yes; then
11396 ac_cv_use_pcx='wxUSE_PCX=yes'
11397 else
11398 ac_cv_use_pcx='wxUSE_PCX=no'
11399 fi
11400
11401else
11402
11403 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11404 if test "x$LINE" != x ; then
11405 eval "DEFAULT_$LINE"
11406 else
11407 no_cache=1
11408 fi
11409
11410 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11411
11412fi;
11413
11414 eval "$ac_cv_use_pcx"
11415 if test "$no_cache" != 1; then
11416 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11417 fi
11418
11419 if test "$wxUSE_PCX" = yes; then
11420 echo "$as_me:$LINENO: result: yes" >&5
11421echo "${ECHO_T}yes" >&6
11422 else
11423 echo "$as_me:$LINENO: result: no" >&5
11424echo "${ECHO_T}no" >&6
11425 fi
11426
11427
11428 enablestring=
11429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11430echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11431 no_cache=0
11432 # Check whether --enable-iff or --disable-iff was given.
11433if test "${enable_iff+set}" = set; then
11434 enableval="$enable_iff"
11435
11436 if test "$enableval" = yes; then
11437 ac_cv_use_iff='wxUSE_IFF=yes'
11438 else
11439 ac_cv_use_iff='wxUSE_IFF=no'
11440 fi
11441
11442else
11443
11444 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11445 if test "x$LINE" != x ; then
11446 eval "DEFAULT_$LINE"
11447 else
11448 no_cache=1
11449 fi
11450
11451 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11452
11453fi;
11454
11455 eval "$ac_cv_use_iff"
11456 if test "$no_cache" != 1; then
11457 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11458 fi
11459
11460 if test "$wxUSE_IFF" = yes; then
11461 echo "$as_me:$LINENO: result: yes" >&5
11462echo "${ECHO_T}yes" >&6
11463 else
11464 echo "$as_me:$LINENO: result: no" >&5
11465echo "${ECHO_T}no" >&6
11466 fi
11467
11468
11469 enablestring=
11470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11471echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11472 no_cache=0
11473 # Check whether --enable-pnm or --disable-pnm was given.
11474if test "${enable_pnm+set}" = set; then
11475 enableval="$enable_pnm"
11476
11477 if test "$enableval" = yes; then
11478 ac_cv_use_pnm='wxUSE_PNM=yes'
11479 else
11480 ac_cv_use_pnm='wxUSE_PNM=no'
11481 fi
11482
11483else
11484
11485 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11486 if test "x$LINE" != x ; then
11487 eval "DEFAULT_$LINE"
11488 else
11489 no_cache=1
11490 fi
11491
11492 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11493
11494fi;
11495
11496 eval "$ac_cv_use_pnm"
11497 if test "$no_cache" != 1; then
11498 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11499 fi
11500
11501 if test "$wxUSE_PNM" = yes; then
11502 echo "$as_me:$LINENO: result: yes" >&5
11503echo "${ECHO_T}yes" >&6
11504 else
11505 echo "$as_me:$LINENO: result: no" >&5
11506echo "${ECHO_T}no" >&6
11507 fi
11508
11509
11510 enablestring=
11511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11512echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11513 no_cache=0
11514 # Check whether --enable-xpm or --disable-xpm was given.
11515if test "${enable_xpm+set}" = set; then
11516 enableval="$enable_xpm"
11517
11518 if test "$enableval" = yes; then
11519 ac_cv_use_xpm='wxUSE_XPM=yes'
11520 else
11521 ac_cv_use_xpm='wxUSE_XPM=no'
11522 fi
11523
11524else
11525
11526 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11527 if test "x$LINE" != x ; then
11528 eval "DEFAULT_$LINE"
11529 else
11530 no_cache=1
11531 fi
11532
11533 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11534
11535fi;
11536
11537 eval "$ac_cv_use_xpm"
11538 if test "$no_cache" != 1; then
11539 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11540 fi
11541
11542 if test "$wxUSE_XPM" = yes; then
11543 echo "$as_me:$LINENO: result: yes" >&5
11544echo "${ECHO_T}yes" >&6
11545 else
11546 echo "$as_me:$LINENO: result: no" >&5
11547echo "${ECHO_T}no" >&6
11548 fi
11549
11550
11551 enablestring=
11552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11553echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11554 no_cache=0
11555 # Check whether --enable-ico_cur or --disable-ico_cur was given.
11556if test "${enable_ico_cur+set}" = set; then
11557 enableval="$enable_ico_cur"
11558
11559 if test "$enableval" = yes; then
11560 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11561 else
11562 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11563 fi
11564
11565else
11566
11567 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11568 if test "x$LINE" != x ; then
11569 eval "DEFAULT_$LINE"
11570 else
11571 no_cache=1
11572 fi
11573
11574 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11575
11576fi;
11577
11578 eval "$ac_cv_use_ico_cur"
11579 if test "$no_cache" != 1; then
11580 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11581 fi
11582
11583 if test "$wxUSE_ICO_CUR" = yes; then
11584 echo "$as_me:$LINENO: result: yes" >&5
11585echo "${ECHO_T}yes" >&6
11586 else
11587 echo "$as_me:$LINENO: result: no" >&5
11588echo "${ECHO_T}no" >&6
11589 fi
11590
11591
11592fi
11593
11594
11595
ceec2216
RL
11596# Check whether --with-flavour or --without-flavour was given.
11597if test "${with_flavour+set}" = set; then
11598 withval="$with_flavour"
11599 WX_FLAVOUR="$withval"
11600fi;
11601
11602
11603
a848cd7e
SC
11604 enablestring=
11605 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11606echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11607 no_cache=0
11608 # Check whether --enable-official_build or --disable-official_build was given.
11609if test "${enable_official_build+set}" = set; then
11610 enableval="$enable_official_build"
11611
11612 if test "$enableval" = yes; then
11613 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11614 else
11615 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11616 fi
11617
11618else
11619
11620 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11621 if test "x$LINE" != x ; then
11622 eval "DEFAULT_$LINE"
11623 else
11624 no_cache=1
11625 fi
11626
11627 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11628
11629fi;
11630
11631 eval "$ac_cv_use_official_build"
11632 if test "$no_cache" != 1; then
11633 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11634 fi
11635
11636 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11637 echo "$as_me:$LINENO: result: yes" >&5
11638echo "${ECHO_T}yes" >&6
11639 else
11640 echo "$as_me:$LINENO: result: no" >&5
11641echo "${ECHO_T}no" >&6
11642 fi
11643
11644# Check whether --enable-vendor or --disable-vendor was given.
11645if test "${enable_vendor+set}" = set; then
11646 enableval="$enable_vendor"
11647 VENDOR="$enableval"
11648fi;
11649if test "x$VENDOR" = "x"; then
11650 VENDOR="custom"
11651fi
11652
a848cd7e
SC
11653
11654
11655
11656 echo "saving argument cache $wx_arg_cache_file"
11657 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11658
11659
11660
11661echo "$as_me:$LINENO: checking for toolkit" >&5
11662echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11663
11664# In Wine, we need to default to MSW, not GTK or MOTIF
11665if test "$wxUSE_WINE" = "yes"; then
11666 DEFAULT_DEFAULT_wxUSE_GTK=0
11667 DEFAULT_DEFAULT_wxUSE_MOTIF=0
11668 DEFAULT_DEFAULT_wxUSE_MSW=1
11669 wxUSE_SHARED=no
11670fi
11671
f597b41c 11672
a848cd7e
SC
11673if test "$wxUSE_GUI" = "yes"; then
11674
11675 if test "$USE_BEOS" = 1; then
11676 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11677echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11678 { (exit 1); exit 1; }; }
11679 fi
11680
11681 if test "$TOOLKIT_GIVEN" = 1; then
11682 for toolkit in `echo $ALL_TOOLKITS`; do
11683 var=wxUSE_$toolkit
11684 eval "value=\$${var}"
f34ca037
MW
11685 if test "x$value" = "xno"; then
11686 eval "$var=0"
11687 elif test "x$value" != "x"; then
11688 eval "$var=1"
11689 fi
11690
11691 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11692 eval "wx${toolkit}_VERSION=$value"
11693 fi
a848cd7e
SC
11694 done
11695 else
11696 for toolkit in `echo $ALL_TOOLKITS`; do
11697 if test "$has_toolkit_in_cache" != 1; then
11698 var=DEFAULT_DEFAULT_wxUSE_$toolkit
11699 else
11700 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
11701
11702 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11703 if test "x$version" != "x"; then
11704 eval "wx${toolkit}_VERSION=$version"
11705 fi
a848cd7e
SC
11706 fi
11707 eval "wxUSE_$toolkit=\$${var}"
11708 done
11709 fi
11710
11711 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
b3c86150 11712 + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
a848cd7e
SC
11713 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11714
11715 case "${host}" in
11716 *-pc-os2_emx | *-pc-os2-emx )
11717 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11718 esac
11719
11720 case "$NUM_TOOLKITS" in
11721 1)
11722 ;;
11723 0)
11724 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11725echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11726 { (exit 1); exit 1; }; }
11727 ;;
11728 *)
11729 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11730echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11731 { (exit 1); exit 1; }; }
11732 esac
11733
f34ca037
MW
11734 # to be removed when --disable-gtk2 isn't needed
11735 if test "x$wxUSE_GTK2" = "xyes"; then
11736 wxGTK_VERSION=2
11737 elif test "x$wxUSE_GTK2" = "xno"; then
11738 wxGTK_VERSION=1
11739 fi
11740
a848cd7e
SC
11741 for toolkit in `echo $ALL_TOOLKITS`; do
11742 var=wxUSE_$toolkit
11743 eval "value=\$${var}"
11744 if test "x$value" != x; then
11745 cache_var=CACHE_$toolkit
11746 eval "cache=\$${cache_var}"
11747 if test "$cache" = 1; then
11748 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
11749 eval "version=\$wx${toolkit}_VERSION"
11750 if test "x$version" != "x"; then
11751 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11752 fi
a848cd7e
SC
11753 fi
11754 if test "$value" = 1; then
11755 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11756 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11757echo "${ECHO_T}$toolkit_echo" >&6
11758 fi
11759 fi
11760 done
11761else
11762 if test "x$host_alias" != "x"; then
11763 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11764echo "${ECHO_T}base ($host_alias hosted) only" >&6
11765 else
11766 echo "$as_me:$LINENO: result: base only" >&5
11767echo "${ECHO_T}base only" >&6
11768 fi
11769fi
11770
11771wants_win32=0
11772doesnt_want_win32=0
11773case "${host}" in
11774 *-*-cygwin*)
11775 if test "$wxUSE_MSW" = 1 ; then
11776 wants_win32=1
7275146d 11777 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
11778 else
11779 doesnt_want_win32=1
11780 fi
11781 ;;
11782 *-*-mingw*)
11783 wants_win32=1
11784 ;;
11785esac
11786
11787if test "$wxUSE_WINE" = "yes"; then
11788 wants_win32=1
11789 CC=winegcc
11790 CXX=wineg++
a848cd7e
SC
11791 LDFLAGS_GUI="-mwindows"
11792fi
11793
11794if test "$wants_win32" = 1 ; then
11795 USE_UNIX=0
11796 USE_WIN32=1
11797 cat >>confdefs.h <<\_ACEOF
11798#define __WIN32__ 1
11799_ACEOF
11800
11801 cat >>confdefs.h <<\_ACEOF
11802#define __WIN95__ 1
11803_ACEOF
11804
11805 cat >>confdefs.h <<\_ACEOF
11806#define __WINDOWS__ 1
11807_ACEOF
11808
11809 cat >>confdefs.h <<\_ACEOF
11810#define __GNUWIN32__ 1
11811_ACEOF
11812
11813 cat >>confdefs.h <<\_ACEOF
11814#define STRICT 1
11815_ACEOF
11816
11817 cat >>confdefs.h <<\_ACEOF
11818#define WINVER 0x0400
11819_ACEOF
11820
11821fi
11822if test "$doesnt_want_win32" = 1 ; then
11823 USE_UNIX=1
11824 USE_WIN32=0
11825fi
11826
11827if test "$USE_UNIX" = 1 ; then
11828 wxUSE_UNIX=yes
11829 cat >>confdefs.h <<\_ACEOF
11830#define __UNIX__ 1
11831_ACEOF
11832
11833fi
11834
11835
11836cat >confcache <<\_ACEOF
11837# This file is a shell script that caches the results of configure
11838# tests run on this system so they can be shared between configure
11839# scripts and configure runs, see configure's option --config-cache.
11840# It is not useful on other systems. If it contains results you don't
11841# want to keep, you may remove or edit it.
11842#
11843# config.status only pays attention to the cache file if you give it
11844# the --recheck option to rerun configure.
11845#
11846# `ac_cv_env_foo' variables (set or unset) will be overridden when
11847# loading this file, other *unset* `ac_cv_foo' will be assigned the
11848# following values.
11849
11850_ACEOF
11851
11852# The following way of writing the cache mishandles newlines in values,
11853# but we know of no workaround that is simple, portable, and efficient.
11854# So, don't put newlines in cache variables' values.
11855# Ultrix sh set writes to stderr and can't be redirected directly,
11856# and sets the high bit in the cache file unless we assign to the vars.
11857{
11858 (set) 2>&1 |
11859 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11860 *ac_space=\ *)
11861 # `set' does not quote correctly, so add quotes (double-quote
11862 # substitution turns \\\\ into \\, and sed turns \\ into \).
11863 sed -n \
ac1cb8d3
VS
11864 "s/'/'\\\\''/g;
11865 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
11866 ;;
11867 *)
11868 # `set' quotes correctly as required by POSIX, so do not add quotes.
11869 sed -n \
ac1cb8d3 11870 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
11871 ;;
11872 esac;
11873} |
11874 sed '
11875 t clear
11876 : clear
11877 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11878 t end
11879 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11880 : end' >>confcache
11881if diff $cache_file confcache >/dev/null 2>&1; then :; else
11882 if test -w $cache_file; then
11883 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11884 cat confcache >$cache_file
11885 else
11886 echo "not updating unwritable cache $cache_file"
11887 fi
11888fi
11889rm -f confcache
11890
a848cd7e 11891CFLAGS=${CFLAGS:=}
6dcfc289
DE
11892
11893
3006edc0 11894
6dcfc289 11895 ac_ext=c
a848cd7e
SC
11896ac_cpp='$CPP $CPPFLAGS'
11897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11899ac_compiler_gnu=$ac_cv_c_compiler_gnu
11900if test -n "$ac_tool_prefix"; then
11901 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11902set dummy ${ac_tool_prefix}gcc; ac_word=$2
11903echo "$as_me:$LINENO: checking for $ac_word" >&5
11904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11905if test "${ac_cv_prog_CC+set}" = set; then
11906 echo $ECHO_N "(cached) $ECHO_C" >&6
11907else
11908 if test -n "$CC"; then
11909 ac_cv_prog_CC="$CC" # Let the user override the test.
11910else
11911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11912for as_dir in $PATH
11913do
11914 IFS=$as_save_IFS
11915 test -z "$as_dir" && as_dir=.
11916 for ac_exec_ext in '' $ac_executable_extensions; do
11917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11918 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11920 break 2
11921 fi
11922done
11923done
11924
11925fi
11926fi
11927CC=$ac_cv_prog_CC
11928if test -n "$CC"; then
11929 echo "$as_me:$LINENO: result: $CC" >&5
11930echo "${ECHO_T}$CC" >&6
11931else
11932 echo "$as_me:$LINENO: result: no" >&5
11933echo "${ECHO_T}no" >&6
11934fi
11935
11936fi
11937if test -z "$ac_cv_prog_CC"; then
11938 ac_ct_CC=$CC
11939 # Extract the first word of "gcc", so it can be a program name with args.
11940set dummy gcc; ac_word=$2
11941echo "$as_me:$LINENO: checking for $ac_word" >&5
11942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11943if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11944 echo $ECHO_N "(cached) $ECHO_C" >&6
11945else
11946 if test -n "$ac_ct_CC"; then
11947 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11948else
11949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950for as_dir in $PATH
11951do
11952 IFS=$as_save_IFS
11953 test -z "$as_dir" && as_dir=.
11954 for ac_exec_ext in '' $ac_executable_extensions; do
11955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11956 ac_cv_prog_ac_ct_CC="gcc"
11957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11958 break 2
11959 fi
11960done
11961done
11962
11963fi
11964fi
11965ac_ct_CC=$ac_cv_prog_ac_ct_CC
11966if test -n "$ac_ct_CC"; then
11967 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11968echo "${ECHO_T}$ac_ct_CC" >&6
11969else
11970 echo "$as_me:$LINENO: result: no" >&5
11971echo "${ECHO_T}no" >&6
11972fi
11973
11974 CC=$ac_ct_CC
11975else
11976 CC="$ac_cv_prog_CC"
11977fi
11978
11979if test -z "$CC"; then
11980 if test -n "$ac_tool_prefix"; then
11981 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11982set dummy ${ac_tool_prefix}cc; ac_word=$2
11983echo "$as_me:$LINENO: checking for $ac_word" >&5
11984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11985if test "${ac_cv_prog_CC+set}" = set; then
11986 echo $ECHO_N "(cached) $ECHO_C" >&6
11987else
11988 if test -n "$CC"; then
11989 ac_cv_prog_CC="$CC" # Let the user override the test.
11990else
11991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11992for as_dir in $PATH
11993do
11994 IFS=$as_save_IFS
11995 test -z "$as_dir" && as_dir=.
11996 for ac_exec_ext in '' $ac_executable_extensions; do
11997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11998 ac_cv_prog_CC="${ac_tool_prefix}cc"
11999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12000 break 2
12001 fi
12002done
12003done
12004
12005fi
12006fi
12007CC=$ac_cv_prog_CC
12008if test -n "$CC"; then
12009 echo "$as_me:$LINENO: result: $CC" >&5
12010echo "${ECHO_T}$CC" >&6
12011else
12012 echo "$as_me:$LINENO: result: no" >&5
12013echo "${ECHO_T}no" >&6
12014fi
12015
12016fi
12017if test -z "$ac_cv_prog_CC"; then
12018 ac_ct_CC=$CC
12019 # Extract the first word of "cc", so it can be a program name with args.
12020set dummy cc; ac_word=$2
12021echo "$as_me:$LINENO: checking for $ac_word" >&5
12022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12023if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12024 echo $ECHO_N "(cached) $ECHO_C" >&6
12025else
12026 if test -n "$ac_ct_CC"; then
12027 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12028else
12029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12030for as_dir in $PATH
12031do
12032 IFS=$as_save_IFS
12033 test -z "$as_dir" && as_dir=.
12034 for ac_exec_ext in '' $ac_executable_extensions; do
12035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12036 ac_cv_prog_ac_ct_CC="cc"
12037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12038 break 2
12039 fi
12040done
12041done
12042
12043fi
12044fi
12045ac_ct_CC=$ac_cv_prog_ac_ct_CC
12046if test -n "$ac_ct_CC"; then
12047 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12048echo "${ECHO_T}$ac_ct_CC" >&6
12049else
12050 echo "$as_me:$LINENO: result: no" >&5
12051echo "${ECHO_T}no" >&6
12052fi
12053
12054 CC=$ac_ct_CC
12055else
12056 CC="$ac_cv_prog_CC"
12057fi
12058
12059fi
12060if test -z "$CC"; then
12061 # Extract the first word of "cc", so it can be a program name with args.
12062set dummy cc; ac_word=$2
12063echo "$as_me:$LINENO: checking for $ac_word" >&5
12064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12065if test "${ac_cv_prog_CC+set}" = set; then
12066 echo $ECHO_N "(cached) $ECHO_C" >&6
12067else
12068 if test -n "$CC"; then
12069 ac_cv_prog_CC="$CC" # Let the user override the test.
12070else
12071 ac_prog_rejected=no
12072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12073for as_dir in $PATH
12074do
12075 IFS=$as_save_IFS
12076 test -z "$as_dir" && as_dir=.
12077 for ac_exec_ext in '' $ac_executable_extensions; do
12078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12079 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12080 ac_prog_rejected=yes
12081 continue
12082 fi
12083 ac_cv_prog_CC="cc"
12084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12085 break 2
12086 fi
12087done
12088done
12089
12090if test $ac_prog_rejected = yes; then
12091 # We found a bogon in the path, so make sure we never use it.
12092 set dummy $ac_cv_prog_CC
12093 shift
12094 if test $# != 0; then
12095 # We chose a different compiler from the bogus one.
12096 # However, it has the same basename, so the bogon will be chosen
12097 # first if we set CC to just the basename; use the full file name.
12098 shift
12099 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12100 fi
12101fi
12102fi
12103fi
12104CC=$ac_cv_prog_CC
12105if test -n "$CC"; then
12106 echo "$as_me:$LINENO: result: $CC" >&5
12107echo "${ECHO_T}$CC" >&6
12108else
12109 echo "$as_me:$LINENO: result: no" >&5
12110echo "${ECHO_T}no" >&6
12111fi
12112
12113fi
12114if test -z "$CC"; then
12115 if test -n "$ac_tool_prefix"; then
12116 for ac_prog in cl
12117 do
12118 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12119set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12120echo "$as_me:$LINENO: checking for $ac_word" >&5
12121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12122if test "${ac_cv_prog_CC+set}" = set; then
12123 echo $ECHO_N "(cached) $ECHO_C" >&6
12124else
12125 if test -n "$CC"; then
12126 ac_cv_prog_CC="$CC" # Let the user override the test.
12127else
12128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12129for as_dir in $PATH
12130do
12131 IFS=$as_save_IFS
12132 test -z "$as_dir" && as_dir=.
12133 for ac_exec_ext in '' $ac_executable_extensions; do
12134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12135 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12137 break 2
12138 fi
12139done
12140done
12141
12142fi
12143fi
12144CC=$ac_cv_prog_CC
12145if test -n "$CC"; then
12146 echo "$as_me:$LINENO: result: $CC" >&5
12147echo "${ECHO_T}$CC" >&6
12148else
12149 echo "$as_me:$LINENO: result: no" >&5
12150echo "${ECHO_T}no" >&6
12151fi
12152
12153 test -n "$CC" && break
12154 done
12155fi
12156if test -z "$CC"; then
12157 ac_ct_CC=$CC
12158 for ac_prog in cl
12159do
12160 # Extract the first word of "$ac_prog", so it can be a program name with args.
12161set dummy $ac_prog; ac_word=$2
12162echo "$as_me:$LINENO: checking for $ac_word" >&5
12163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12164if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12165 echo $ECHO_N "(cached) $ECHO_C" >&6
12166else
12167 if test -n "$ac_ct_CC"; then
12168 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12169else
12170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12171for as_dir in $PATH
12172do
12173 IFS=$as_save_IFS
12174 test -z "$as_dir" && as_dir=.
12175 for ac_exec_ext in '' $ac_executable_extensions; do
12176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12177 ac_cv_prog_ac_ct_CC="$ac_prog"
12178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12179 break 2
12180 fi
12181done
12182done
12183
12184fi
12185fi
12186ac_ct_CC=$ac_cv_prog_ac_ct_CC
12187if test -n "$ac_ct_CC"; then
12188 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12189echo "${ECHO_T}$ac_ct_CC" >&6
12190else
12191 echo "$as_me:$LINENO: result: no" >&5
12192echo "${ECHO_T}no" >&6
12193fi
12194
12195 test -n "$ac_ct_CC" && break
12196done
12197
12198 CC=$ac_ct_CC
12199fi
12200
12201fi
12202
12203
12204test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12205See \`config.log' for more details." >&5
12206echo "$as_me: error: no acceptable C compiler found in \$PATH
12207See \`config.log' for more details." >&2;}
12208 { (exit 1); exit 1; }; }
12209
12210# Provide some information about the compiler.
12211echo "$as_me:$LINENO:" \
12212 "checking for C compiler version" >&5
12213ac_compiler=`set X $ac_compile; echo $2`
12214{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12215 (eval $ac_compiler --version </dev/null >&5) 2>&5
12216 ac_status=$?
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }
12219{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12220 (eval $ac_compiler -v </dev/null >&5) 2>&5
12221 ac_status=$?
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }
12224{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12225 (eval $ac_compiler -V </dev/null >&5) 2>&5
12226 ac_status=$?
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }
12229
12230cat >conftest.$ac_ext <<_ACEOF
12231/* confdefs.h. */
12232_ACEOF
12233cat confdefs.h >>conftest.$ac_ext
12234cat >>conftest.$ac_ext <<_ACEOF
12235/* end confdefs.h. */
12236
12237int
12238main ()
12239{
12240
12241 ;
12242 return 0;
12243}
12244_ACEOF
12245ac_clean_files_save=$ac_clean_files
12246ac_clean_files="$ac_clean_files a.out a.exe b.out"
12247# Try to create an executable without -o first, disregard a.out.
12248# It will help us diagnose broken compilers, and finding out an intuition
12249# of exeext.
ac1cb8d3
VS
12250echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
12251echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
12252ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
12253if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
12254 (eval $ac_link_default) 2>&5
12255 ac_status=$?
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); }; then
12258 # Find the output, starting from the most likely. This scheme is
12259# not robust to junk in `.', hence go to wildcards (a.*) only as a last
12260# resort.
12261
12262# Be careful to initialize this variable, since it used to be cached.
12263# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
12264ac_cv_exeext=
12265# b.out is created by i960 compilers.
12266for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
12267do
12268 test -f "$ac_file" || continue
12269 case $ac_file in
12270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 12271 ;;
a848cd7e 12272 conftest.$ac_ext )
ac1cb8d3
VS
12273 # This is the source file.
12274 ;;
a848cd7e 12275 [ab].out )
ac1cb8d3
VS
12276 # We found the default executable, but exeext='' is most
12277 # certainly right.
12278 break;;
a848cd7e 12279 *.* )
ac1cb8d3
VS
12280 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12281 # FIXME: I believe we export ac_cv_exeext for Libtool,
12282 # but it would be cool to find out if it's true. Does anybody
12283 # maintain Libtool? --akim.
12284 export ac_cv_exeext
12285 break;;
a848cd7e 12286 * )
ac1cb8d3 12287 break;;
a848cd7e
SC
12288 esac
12289done
12290else
12291 echo "$as_me: failed program was:" >&5
12292sed 's/^/| /' conftest.$ac_ext >&5
12293
12294{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
12295See \`config.log' for more details." >&5
12296echo "$as_me: error: C compiler cannot create executables
12297See \`config.log' for more details." >&2;}
12298 { (exit 77); exit 77; }; }
12299fi
12300
12301ac_exeext=$ac_cv_exeext
12302echo "$as_me:$LINENO: result: $ac_file" >&5
12303echo "${ECHO_T}$ac_file" >&6
12304
12305# Check the compiler produces executables we can run. If not, either
12306# the compiler is broken, or we cross compile.
12307echo "$as_me:$LINENO: checking whether the C compiler works" >&5
12308echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
12309# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
12310# If not cross compiling, check that we can run a simple program.
12311if test "$cross_compiling" != yes; then
12312 if { ac_try='./$ac_file'
12313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314 (eval $ac_try) 2>&5
12315 ac_status=$?
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }; }; then
12318 cross_compiling=no
12319 else
12320 if test "$cross_compiling" = maybe; then
12321 cross_compiling=yes
12322 else
12323 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
12324If you meant to cross compile, use \`--host'.
12325See \`config.log' for more details." >&5
12326echo "$as_me: error: cannot run C compiled programs.
12327If you meant to cross compile, use \`--host'.
12328See \`config.log' for more details." >&2;}
12329 { (exit 1); exit 1; }; }
12330 fi
12331 fi
12332fi
12333echo "$as_me:$LINENO: result: yes" >&5
12334echo "${ECHO_T}yes" >&6
12335
12336rm -f a.out a.exe conftest$ac_cv_exeext b.out
12337ac_clean_files=$ac_clean_files_save
12338# Check the compiler produces executables we can run. If not, either
12339# the compiler is broken, or we cross compile.
12340echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12341echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12342echo "$as_me:$LINENO: result: $cross_compiling" >&5
12343echo "${ECHO_T}$cross_compiling" >&6
12344
12345echo "$as_me:$LINENO: checking for suffix of executables" >&5
12346echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12348 (eval $ac_link) 2>&5
12349 ac_status=$?
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; then
12352 # If both `conftest.exe' and `conftest' are `present' (well, observable)
12353# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
12354# work properly (i.e., refer to `conftest.exe'), while it won't with
12355# `rm'.
12356for ac_file in conftest.exe conftest conftest.*; do
12357 test -f "$ac_file" || continue
12358 case $ac_file in
12359 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12360 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
12361 export ac_cv_exeext
12362 break;;
a848cd7e
SC
12363 * ) break;;
12364 esac
12365done
12366else
12367 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12368See \`config.log' for more details." >&5
12369echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12370See \`config.log' for more details." >&2;}
12371 { (exit 1); exit 1; }; }
12372fi
12373
12374rm -f conftest$ac_cv_exeext
12375echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12376echo "${ECHO_T}$ac_cv_exeext" >&6
12377
12378rm -f conftest.$ac_ext
12379EXEEXT=$ac_cv_exeext
12380ac_exeext=$EXEEXT
12381echo "$as_me:$LINENO: checking for suffix of object files" >&5
12382echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12383if test "${ac_cv_objext+set}" = set; then
12384 echo $ECHO_N "(cached) $ECHO_C" >&6
12385else
12386 cat >conftest.$ac_ext <<_ACEOF
12387/* confdefs.h. */
12388_ACEOF
12389cat confdefs.h >>conftest.$ac_ext
12390cat >>conftest.$ac_ext <<_ACEOF
12391/* end confdefs.h. */
12392
12393int
12394main ()
12395{
12396
12397 ;
12398 return 0;
12399}
12400_ACEOF
12401rm -f conftest.o conftest.obj
12402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12403 (eval $ac_compile) 2>&5
12404 ac_status=$?
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; then
12407 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12408 case $ac_file in
12409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12410 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12411 break;;
12412 esac
12413done
12414else
12415 echo "$as_me: failed program was:" >&5
12416sed 's/^/| /' conftest.$ac_ext >&5
12417
12418{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12419See \`config.log' for more details." >&5
12420echo "$as_me: error: cannot compute suffix of object files: cannot compile
12421See \`config.log' for more details." >&2;}
12422 { (exit 1); exit 1; }; }
12423fi
12424
12425rm -f conftest.$ac_cv_objext conftest.$ac_ext
12426fi
12427echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12428echo "${ECHO_T}$ac_cv_objext" >&6
12429OBJEXT=$ac_cv_objext
12430ac_objext=$OBJEXT
12431echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12432echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12433if test "${ac_cv_c_compiler_gnu+set}" = set; then
12434 echo $ECHO_N "(cached) $ECHO_C" >&6
12435else
12436 cat >conftest.$ac_ext <<_ACEOF
12437/* confdefs.h. */
12438_ACEOF
12439cat confdefs.h >>conftest.$ac_ext
12440cat >>conftest.$ac_ext <<_ACEOF
12441/* end confdefs.h. */
12442
12443int
12444main ()
12445{
12446#ifndef __GNUC__
12447 choke me
12448#endif
12449
12450 ;
12451 return 0;
12452}
12453_ACEOF
12454rm -f conftest.$ac_objext
12455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12456 (eval $ac_compile) 2>conftest.er1
a848cd7e 12457 ac_status=$?
ac1cb8d3
VS
12458 grep -v '^ *+' conftest.er1 >conftest.err
12459 rm -f conftest.er1
12460 cat conftest.err >&5
a848cd7e
SC
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); } &&
479c790c 12463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12465 (eval $ac_try) 2>&5
12466 ac_status=$?
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }; } &&
12469 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471 (eval $ac_try) 2>&5
12472 ac_status=$?
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); }; }; then
12475 ac_compiler_gnu=yes
12476else
12477 echo "$as_me: failed program was:" >&5
12478sed 's/^/| /' conftest.$ac_ext >&5
12479
12480ac_compiler_gnu=no
12481fi
ac1cb8d3 12482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12483ac_cv_c_compiler_gnu=$ac_compiler_gnu
12484
12485fi
12486echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12487echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12488GCC=`test $ac_compiler_gnu = yes && echo yes`
12489ac_test_CFLAGS=${CFLAGS+set}
12490ac_save_CFLAGS=$CFLAGS
15291213 12491CFLAGS="-g"
a848cd7e
SC
12492echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12493echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12494if test "${ac_cv_prog_cc_g+set}" = set; then
12495 echo $ECHO_N "(cached) $ECHO_C" >&6
12496else
12497 cat >conftest.$ac_ext <<_ACEOF
12498/* confdefs.h. */
12499_ACEOF
12500cat confdefs.h >>conftest.$ac_ext
12501cat >>conftest.$ac_ext <<_ACEOF
12502/* end confdefs.h. */
12503
12504int
12505main ()
12506{
12507
12508 ;
12509 return 0;
12510}
12511_ACEOF
12512rm -f conftest.$ac_objext
12513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12514 (eval $ac_compile) 2>conftest.er1
a848cd7e 12515 ac_status=$?
ac1cb8d3
VS
12516 grep -v '^ *+' conftest.er1 >conftest.err
12517 rm -f conftest.er1
12518 cat conftest.err >&5
a848cd7e
SC
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); } &&
479c790c 12521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523 (eval $ac_try) 2>&5
12524 ac_status=$?
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); }; } &&
12527 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12529 (eval $ac_try) 2>&5
12530 ac_status=$?
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); }; }; then
12533 ac_cv_prog_cc_g=yes
12534else
12535 echo "$as_me: failed program was:" >&5
12536sed 's/^/| /' conftest.$ac_ext >&5
12537
12538ac_cv_prog_cc_g=no
12539fi
ac1cb8d3 12540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12541fi
12542echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12543echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12544if test "$ac_test_CFLAGS" = set; then
12545 CFLAGS=$ac_save_CFLAGS
12546elif test $ac_cv_prog_cc_g = yes; then
12547 if test "$GCC" = yes; then
12548 CFLAGS="-g -O2"
12549 else
12550 CFLAGS="-g"
12551 fi
12552else
12553 if test "$GCC" = yes; then
12554 CFLAGS="-O2"
12555 else
12556 CFLAGS=
12557 fi
12558fi
12559echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12560echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12561if test "${ac_cv_prog_cc_stdc+set}" = set; then
12562 echo $ECHO_N "(cached) $ECHO_C" >&6
12563else
12564 ac_cv_prog_cc_stdc=no
12565ac_save_CC=$CC
12566cat >conftest.$ac_ext <<_ACEOF
12567/* confdefs.h. */
12568_ACEOF
12569cat confdefs.h >>conftest.$ac_ext
12570cat >>conftest.$ac_ext <<_ACEOF
12571/* end confdefs.h. */
12572#include <stdarg.h>
12573#include <stdio.h>
12574#include <sys/types.h>
12575#include <sys/stat.h>
12576/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12577struct buf { int x; };
12578FILE * (*rcsopen) (struct buf *, struct stat *, int);
12579static char *e (p, i)
12580 char **p;
12581 int i;
12582{
12583 return p[i];
12584}
12585static char *f (char * (*g) (char **, int), char **p, ...)
12586{
12587 char *s;
12588 va_list v;
12589 va_start (v,p);
12590 s = g (p, va_arg (v,int));
12591 va_end (v);
12592 return s;
12593}
ac1cb8d3
VS
12594
12595/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12596 function prototypes and stuff, but not '\xHH' hex character constants.
12597 These don't provoke an error unfortunately, instead are silently treated
12598 as 'x'. The following induces an error, until -std1 is added to get
12599 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12600 array size at least. It's necessary to write '\x00'==0 to get something
12601 that's true only with -std1. */
12602int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12603
a848cd7e
SC
12604int test (int i, double x);
12605struct s1 {int (*f) (int a);};
12606struct s2 {int (*f) (double a);};
12607int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12608int argc;
12609char **argv;
12610int
12611main ()
12612{
12613return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12614 ;
12615 return 0;
12616}
12617_ACEOF
12618# Don't try gcc -ansi; that turns off useful extensions and
12619# breaks some systems' header files.
12620# AIX -qlanglvl=ansi
12621# Ultrix and OSF/1 -std1
12622# HP-UX 10.20 and later -Ae
12623# HP-UX older versions -Aa -D_HPUX_SOURCE
12624# SVR4 -Xc -D__EXTENSIONS__
12625for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12626do
12627 CC="$ac_save_CC $ac_arg"
12628 rm -f conftest.$ac_objext
12629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12630 (eval $ac_compile) 2>conftest.er1
a848cd7e 12631 ac_status=$?
ac1cb8d3
VS
12632 grep -v '^ *+' conftest.er1 >conftest.err
12633 rm -f conftest.er1
12634 cat conftest.err >&5
a848cd7e
SC
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); } &&
479c790c 12637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12639 (eval $ac_try) 2>&5
12640 ac_status=$?
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); }; } &&
12643 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12645 (eval $ac_try) 2>&5
12646 ac_status=$?
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; }; then
12649 ac_cv_prog_cc_stdc=$ac_arg
12650break
12651else
12652 echo "$as_me: failed program was:" >&5
12653sed 's/^/| /' conftest.$ac_ext >&5
12654
12655fi
ac1cb8d3 12656rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
12657done
12658rm -f conftest.$ac_ext conftest.$ac_objext
12659CC=$ac_save_CC
12660
12661fi
12662
12663case "x$ac_cv_prog_cc_stdc" in
12664 x|xno)
12665 echo "$as_me:$LINENO: result: none needed" >&5
12666echo "${ECHO_T}none needed" >&6 ;;
12667 *)
12668 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12669echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12670 CC="$CC $ac_cv_prog_cc_stdc" ;;
12671esac
12672
12673# Some people use a C++ compiler to compile C. Since we use `exit',
12674# in C++ we need to declare it. In case someone uses the same compiler
12675# for both compiling C and C++ we need to have the C++ compiler decide
12676# the declaration of exit, since it's the most demanding environment.
12677cat >conftest.$ac_ext <<_ACEOF
12678#ifndef __cplusplus
12679 choke me
12680#endif
12681_ACEOF
12682rm -f conftest.$ac_objext
12683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12684 (eval $ac_compile) 2>conftest.er1
a848cd7e 12685 ac_status=$?
ac1cb8d3
VS
12686 grep -v '^ *+' conftest.er1 >conftest.err
12687 rm -f conftest.er1
12688 cat conftest.err >&5
a848cd7e
SC
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); } &&
479c790c 12691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12693 (eval $ac_try) 2>&5
12694 ac_status=$?
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); }; } &&
12697 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12699 (eval $ac_try) 2>&5
12700 ac_status=$?
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); }; }; then
12703 for ac_declaration in \
ac1cb8d3 12704 '' \
a848cd7e
SC
12705 'extern "C" void std::exit (int) throw (); using std::exit;' \
12706 'extern "C" void std::exit (int); using std::exit;' \
12707 'extern "C" void exit (int) throw ();' \
12708 'extern "C" void exit (int);' \
12709 'void exit (int);'
12710do
12711 cat >conftest.$ac_ext <<_ACEOF
12712/* confdefs.h. */
12713_ACEOF
12714cat confdefs.h >>conftest.$ac_ext
12715cat >>conftest.$ac_ext <<_ACEOF
12716/* end confdefs.h. */
de59c161 12717$ac_declaration
ac1cb8d3 12718#include <stdlib.h>
a848cd7e
SC
12719int
12720main ()
12721{
12722exit (42);
12723 ;
12724 return 0;
12725}
12726_ACEOF
12727rm -f conftest.$ac_objext
12728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12729 (eval $ac_compile) 2>conftest.er1
a848cd7e 12730 ac_status=$?
ac1cb8d3
VS
12731 grep -v '^ *+' conftest.er1 >conftest.err
12732 rm -f conftest.er1
12733 cat conftest.err >&5
a848cd7e
SC
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } &&
479c790c 12736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738 (eval $ac_try) 2>&5
12739 ac_status=$?
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; } &&
12742 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12744 (eval $ac_try) 2>&5
12745 ac_status=$?
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); }; }; then
12748 :
12749else
12750 echo "$as_me: failed program was:" >&5
12751sed 's/^/| /' conftest.$ac_ext >&5
12752
12753continue
12754fi
ac1cb8d3 12755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12756 cat >conftest.$ac_ext <<_ACEOF
12757/* confdefs.h. */
12758_ACEOF
12759cat confdefs.h >>conftest.$ac_ext
12760cat >>conftest.$ac_ext <<_ACEOF
12761/* end confdefs.h. */
12762$ac_declaration
12763int
12764main ()
12765{
12766exit (42);
12767 ;
12768 return 0;
12769}
12770_ACEOF
12771rm -f conftest.$ac_objext
12772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12773 (eval $ac_compile) 2>conftest.er1
a848cd7e 12774 ac_status=$?
ac1cb8d3
VS
12775 grep -v '^ *+' conftest.er1 >conftest.err
12776 rm -f conftest.er1
12777 cat conftest.err >&5
a848cd7e
SC
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } &&
479c790c 12780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12782 (eval $ac_try) 2>&5
12783 ac_status=$?
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); }; } &&
12786 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788 (eval $ac_try) 2>&5
12789 ac_status=$?
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; }; then
12792 break
12793else
12794 echo "$as_me: failed program was:" >&5
12795sed 's/^/| /' conftest.$ac_ext >&5
12796
12797fi
ac1cb8d3 12798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12799done
12800rm -f conftest*
12801if test -n "$ac_declaration"; then
12802 echo '#ifdef __cplusplus' >>confdefs.h
12803 echo $ac_declaration >>confdefs.h
12804 echo '#endif' >>confdefs.h
12805fi
12806
12807else
12808 echo "$as_me: failed program was:" >&5
12809sed 's/^/| /' conftest.$ac_ext >&5
12810
12811fi
ac1cb8d3 12812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12813ac_ext=c
12814ac_cpp='$CPP $CPPFLAGS'
12815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12817ac_compiler_gnu=$ac_cv_c_compiler_gnu
12818
ab0ad5f1
VZ
12819
12820
12821 ac_ext=c
12822ac_cpp='$CPP $CPPFLAGS'
12823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12825ac_compiler_gnu=$ac_cv_c_compiler_gnu
12826
12827 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12828echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12829if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12830 echo $ECHO_N "(cached) $ECHO_C" >&6
12831else
12832 cat >conftest.$ac_ext <<_ACEOF
12833/* confdefs.h. */
12834_ACEOF
12835cat confdefs.h >>conftest.$ac_ext
12836cat >>conftest.$ac_ext <<_ACEOF
12837/* end confdefs.h. */
12838
12839int
12840main ()
12841{
12842
12843 #ifndef __INTEL_COMPILER
12844 choke me
12845 #endif
12846
12847 ;
12848 return 0;
12849}
12850_ACEOF
12851rm -f conftest.$ac_objext
12852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12853 (eval $ac_compile) 2>conftest.er1
12854 ac_status=$?
12855 grep -v '^ *+' conftest.er1 >conftest.err
12856 rm -f conftest.er1
12857 cat conftest.err >&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } &&
479c790c 12860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
12861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12862 (eval $ac_try) 2>&5
12863 ac_status=$?
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; } &&
12866 { ac_try='test -s conftest.$ac_objext'
12867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868 (eval $ac_try) 2>&5
12869 ac_status=$?
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); }; }; then
12872 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12873else
12874 echo "$as_me: failed program was:" >&5
12875sed 's/^/| /' conftest.$ac_ext >&5
12876
12877bakefile_cv_c_compiler___INTEL_COMPILER=no
12878
12879fi
12880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12881
12882
12883fi
12884echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12885echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12886 ac_ext=c
12887ac_cpp='$CPP $CPPFLAGS'
12888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12890ac_compiler_gnu=$ac_cv_c_compiler_gnu
12891
12892 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12893 :; INTELCC=yes
12894 else
12895 :;
12896 fi
12897
12898
12899 if test "x$GCC" != "xyes"; then
3006edc0
VZ
12900 if test "xCC" = "xC"; then
12901 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 12902echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 12903if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
12904 echo $ECHO_N "(cached) $ECHO_C" >&6
12905else
12906 cat >conftest.$ac_ext <<_ACEOF
12907/* confdefs.h. */
12908_ACEOF
12909cat confdefs.h >>conftest.$ac_ext
12910cat >>conftest.$ac_ext <<_ACEOF
12911/* end confdefs.h. */
12912
12913int
12914main ()
12915{
12916
12917 ;
12918 return 0;
12919}
12920_ACEOF
12921rm -f conftest.$ac_objext conftest.$ac_ext.o
12922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12923 (eval $ac_compile) 2>&5
12924 ac_status=$?
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); }; then
12927 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12928 case $ac_file in
12929 conftest.$ac_ext.o)
0093c2fc 12930 bakefile_cv_c_exto="-ext o"
480ccd21
DE
12931 ;;
12932 *)
12933 ;;
12934 esac
12935done
12936else
12937 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12938See \`config.log' for more details." >&5
12939echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12940See \`config.log' for more details." >&2;}
12941 { (exit 1); exit 1; }; }
12942
12943fi
12944
12945rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12946
12947fi
0093c2fc
VZ
12948echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12949echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12950if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 12951 if test "c" = "c"; then
0093c2fc 12952 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
12953 fi
12954 if test "c" = "cxx"; then
0093c2fc 12955 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
12956 fi
12957fi
12958
0093c2fc 12959 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
12960 unset ac_cv_prog_cc_g
12961 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 12962ac_save_CFLAGS=$CFLAGS
15291213 12963CFLAGS="-g"
480ccd21
DE
12964echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12965echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12966if test "${ac_cv_prog_cc_g+set}" = set; then
12967 echo $ECHO_N "(cached) $ECHO_C" >&6
12968else
12969 cat >conftest.$ac_ext <<_ACEOF
12970/* confdefs.h. */
12971_ACEOF
12972cat confdefs.h >>conftest.$ac_ext
12973cat >>conftest.$ac_ext <<_ACEOF
12974/* end confdefs.h. */
12975
12976int
12977main ()
12978{
12979
12980 ;
12981 return 0;
12982}
12983_ACEOF
12984rm -f conftest.$ac_objext
12985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12986 (eval $ac_compile) 2>conftest.er1
12987 ac_status=$?
12988 grep -v '^ *+' conftest.er1 >conftest.err
12989 rm -f conftest.er1
12990 cat conftest.err >&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); } &&
479c790c 12993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12995 (eval $ac_try) 2>&5
12996 ac_status=$?
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; } &&
12999 { ac_try='test -s conftest.$ac_objext'
13000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13001 (eval $ac_try) 2>&5
13002 ac_status=$?
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); }; }; then
13005 ac_cv_prog_cc_g=yes
13006else
13007 echo "$as_me: failed program was:" >&5
13008sed 's/^/| /' conftest.$ac_ext >&5
13009
13010ac_cv_prog_cc_g=no
13011fi
13012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13013fi
13014echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13015echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13016if test "$ac_test_CFLAGS" = set; then
13017 CFLAGS=$ac_save_CFLAGS
13018elif test $ac_cv_prog_cc_g = yes; then
13019 if test "$GCC" = yes; then
13020 CFLAGS="-g -O2"
13021 else
13022 CFLAGS="-g"
13023 fi
13024else
13025 if test "$GCC" = yes; then
13026 CFLAGS="-O2"
13027 else
13028 CFLAGS=
13029 fi
13030fi
3006edc0 13031 fi
ab0ad5f1 13032 fi
3006edc0
VZ
13033
13034 case `uname -s` in
13035 AIX*)
13036 ac_ext=c
13037ac_cpp='$CPP $CPPFLAGS'
13038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13040ac_compiler_gnu=$ac_cv_c_compiler_gnu
13041
13042echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
13043echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 13044if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
13045 echo $ECHO_N "(cached) $ECHO_C" >&6
13046else
13047 cat >conftest.$ac_ext <<_ACEOF
13048/* confdefs.h. */
13049_ACEOF
13050cat confdefs.h >>conftest.$ac_ext
13051cat >>conftest.$ac_ext <<_ACEOF
13052/* end confdefs.h. */
13053
13054int
13055main ()
13056{
13057#ifndef __xlC__
13058 choke me
13059#endif
13060
13061 ;
13062 return 0;
13063}
13064_ACEOF
13065rm -f conftest.$ac_objext
13066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13067 (eval $ac_compile) 2>conftest.er1
13068 ac_status=$?
13069 grep -v '^ *+' conftest.er1 >conftest.err
13070 rm -f conftest.er1
13071 cat conftest.err >&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); } &&
479c790c 13074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13076 (eval $ac_try) 2>&5
13077 ac_status=$?
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; } &&
13080 { ac_try='test -s conftest.$ac_objext'
13081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13082 (eval $ac_try) 2>&5
13083 ac_status=$?
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); }; }; then
0093c2fc 13086 bakefile_compiler_xlc=yes
3006edc0
VZ
13087else
13088 echo "$as_me: failed program was:" >&5
13089sed 's/^/| /' conftest.$ac_ext >&5
13090
0093c2fc 13091bakefile_compiler_xlc=no
3006edc0
VZ
13092fi
13093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13094 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
13095
13096fi
0093c2fc
VZ
13097echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13098echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 13099
0093c2fc 13100XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
13101ac_ext=c
13102ac_cpp='$CPP $CPPFLAGS'
13103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13105ac_compiler_gnu=$ac_cv_c_compiler_gnu
13106
13107
13108 ;;
13109
13110 Darwin)
13111 ac_ext=c
95986553
DE
13112ac_cpp='$CPP $CPPFLAGS'
13113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13115ac_compiler_gnu=$ac_cv_c_compiler_gnu
13116
13117echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
13118echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
13119if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
13120 echo $ECHO_N "(cached) $ECHO_C" >&6
13121else
13122 cat >conftest.$ac_ext <<_ACEOF
13123/* confdefs.h. */
13124_ACEOF
13125cat confdefs.h >>conftest.$ac_ext
13126cat >>conftest.$ac_ext <<_ACEOF
13127/* end confdefs.h. */
13128
13129int
13130main ()
13131{
13132#ifndef __MWERKS__
13133 choke me
13134#endif
13135
13136 ;
13137 return 0;
13138}
13139_ACEOF
13140rm -f conftest.$ac_objext
13141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13142 (eval $ac_compile) 2>conftest.er1
13143 ac_status=$?
13144 grep -v '^ *+' conftest.er1 >conftest.err
13145 rm -f conftest.er1
13146 cat conftest.err >&5
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); } &&
479c790c 13149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
13150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13151 (eval $ac_try) 2>&5
13152 ac_status=$?
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); }; } &&
13155 { ac_try='test -s conftest.$ac_objext'
13156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13157 (eval $ac_try) 2>&5
13158 ac_status=$?
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); }; }; then
13161 bakefile_compiler_mwerks=yes
13162else
13163 echo "$as_me: failed program was:" >&5
13164sed 's/^/| /' conftest.$ac_ext >&5
13165
13166bakefile_compiler_mwerks=no
13167fi
13168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13169 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
13170
13171fi
13172echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
13173echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
13174
0e6fa1d9 13175MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
13176ac_ext=c
13177ac_cpp='$CPP $CPPFLAGS'
13178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13180ac_compiler_gnu=$ac_cv_c_compiler_gnu
13181
13182
3006edc0 13183 ac_ext=c
9273ffba
DE
13184ac_cpp='$CPP $CPPFLAGS'
13185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13187ac_compiler_gnu=$ac_cv_c_compiler_gnu
13188
13189echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
13190echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 13191if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
13192 echo $ECHO_N "(cached) $ECHO_C" >&6
13193else
13194 cat >conftest.$ac_ext <<_ACEOF
13195/* confdefs.h. */
13196_ACEOF
13197cat confdefs.h >>conftest.$ac_ext
13198cat >>conftest.$ac_ext <<_ACEOF
13199/* end confdefs.h. */
13200
13201int
13202main ()
13203{
13204#ifndef __xlC__
13205 choke me
13206#endif
13207
13208 ;
13209 return 0;
13210}
13211_ACEOF
13212rm -f conftest.$ac_objext
13213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13214 (eval $ac_compile) 2>conftest.er1
13215 ac_status=$?
13216 grep -v '^ *+' conftest.er1 >conftest.err
13217 rm -f conftest.er1
13218 cat conftest.err >&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); } &&
479c790c 13221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
13222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13223 (eval $ac_try) 2>&5
13224 ac_status=$?
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; } &&
13227 { ac_try='test -s conftest.$ac_objext'
13228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13229 (eval $ac_try) 2>&5
13230 ac_status=$?
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; }; then
0093c2fc 13233 bakefile_compiler_xlc=yes
9273ffba
DE
13234else
13235 echo "$as_me: failed program was:" >&5
13236sed 's/^/| /' conftest.$ac_ext >&5
13237
0093c2fc 13238bakefile_compiler_xlc=no
9273ffba
DE
13239fi
13240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13241 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
13242
13243fi
0093c2fc
VZ
13244echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13245echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 13246
0093c2fc 13247XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
13248ac_ext=c
13249ac_cpp='$CPP $CPPFLAGS'
13250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13252ac_compiler_gnu=$ac_cv_c_compiler_gnu
13253
13254
3006edc0
VZ
13255 ;;
13256
13257 IRIX*)
a848cd7e 13258
6dcfc289 13259
0ad5d837
VZ
13260 ac_ext=c
13261ac_cpp='$CPP $CPPFLAGS'
13262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13264ac_compiler_gnu=$ac_cv_c_compiler_gnu
13265
13266 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
13267echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
13268if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
13269 echo $ECHO_N "(cached) $ECHO_C" >&6
13270else
13271 cat >conftest.$ac_ext <<_ACEOF
13272/* confdefs.h. */
13273_ACEOF
13274cat confdefs.h >>conftest.$ac_ext
13275cat >>conftest.$ac_ext <<_ACEOF
13276/* end confdefs.h. */
13277
13278int
13279main ()
13280{
13281
13282 #ifndef _SGI_COMPILER_VERSION
13283 choke me
13284 #endif
13285
13286 ;
13287 return 0;
13288}
13289_ACEOF
13290rm -f conftest.$ac_objext
13291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13292 (eval $ac_compile) 2>conftest.er1
13293 ac_status=$?
13294 grep -v '^ *+' conftest.er1 >conftest.err
13295 rm -f conftest.er1
13296 cat conftest.err >&5
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); } &&
479c790c 13299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
13300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13301 (eval $ac_try) 2>&5
13302 ac_status=$?
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); }; } &&
13305 { ac_try='test -s conftest.$ac_objext'
13306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13307 (eval $ac_try) 2>&5
13308 ac_status=$?
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); }; }; then
13311 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
13312else
13313 echo "$as_me: failed program was:" >&5
13314sed 's/^/| /' conftest.$ac_ext >&5
13315
13316bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
13317
13318fi
13319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13320
13321
13322fi
13323echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
13324echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
13325 ac_ext=c
13326ac_cpp='$CPP $CPPFLAGS'
13327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13329ac_compiler_gnu=$ac_cv_c_compiler_gnu
13330
13331 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13332 :; SGICC=yes
13333 else
13334 :;
13335 fi
13336
13337
3006edc0
VZ
13338 ;;
13339
0093c2fc 13340 HP-UX*)
3006edc0
VZ
13341
13342
13343 ac_ext=c
13344ac_cpp='$CPP $CPPFLAGS'
13345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13347ac_compiler_gnu=$ac_cv_c_compiler_gnu
13348
0093c2fc
VZ
13349 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
13350echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
13351if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
13352 echo $ECHO_N "(cached) $ECHO_C" >&6
13353else
13354 cat >conftest.$ac_ext <<_ACEOF
13355/* confdefs.h. */
13356_ACEOF
13357cat confdefs.h >>conftest.$ac_ext
13358cat >>conftest.$ac_ext <<_ACEOF
13359/* end confdefs.h. */
13360
13361int
13362main ()
13363{
13364
0093c2fc 13365 #ifndef __HP_cc
3006edc0
VZ
13366 choke me
13367 #endif
13368
13369 ;
13370 return 0;
13371}
13372_ACEOF
13373rm -f conftest.$ac_objext
13374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13375 (eval $ac_compile) 2>conftest.er1
13376 ac_status=$?
13377 grep -v '^ *+' conftest.er1 >conftest.err
13378 rm -f conftest.er1
13379 cat conftest.err >&5
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); } &&
479c790c 13382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13384 (eval $ac_try) 2>&5
13385 ac_status=$?
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); }; } &&
13388 { ac_try='test -s conftest.$ac_objext'
13389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13390 (eval $ac_try) 2>&5
13391 ac_status=$?
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); }; }; then
0093c2fc 13394 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
13395else
13396 echo "$as_me: failed program was:" >&5
13397sed 's/^/| /' conftest.$ac_ext >&5
13398
0093c2fc 13399bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
13400
13401fi
13402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13403
13404
13405fi
0093c2fc
VZ
13406echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13407echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
13408 ac_ext=c
13409ac_cpp='$CPP $CPPFLAGS'
13410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13412ac_compiler_gnu=$ac_cv_c_compiler_gnu
13413
0093c2fc
VZ
13414 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13415 :; HPCC=yes
a1aa0349
VZ
13416 else
13417 :;
13418 fi
13419
13420
13421 ;;
13422
0093c2fc 13423 OSF1)
a1aa0349
VZ
13424
13425
13426 ac_ext=c
13427ac_cpp='$CPP $CPPFLAGS'
13428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13430ac_compiler_gnu=$ac_cv_c_compiler_gnu
13431
0093c2fc
VZ
13432 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13433echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13434if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
13435 echo $ECHO_N "(cached) $ECHO_C" >&6
13436else
13437 cat >conftest.$ac_ext <<_ACEOF
13438/* confdefs.h. */
13439_ACEOF
13440cat confdefs.h >>conftest.$ac_ext
13441cat >>conftest.$ac_ext <<_ACEOF
13442/* end confdefs.h. */
13443
13444int
13445main ()
13446{
13447
0093c2fc 13448 #ifndef __DECC
a1aa0349
VZ
13449 choke me
13450 #endif
13451
13452 ;
13453 return 0;
13454}
13455_ACEOF
13456rm -f conftest.$ac_objext
13457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13458 (eval $ac_compile) 2>conftest.er1
13459 ac_status=$?
13460 grep -v '^ *+' conftest.er1 >conftest.err
13461 rm -f conftest.er1
13462 cat conftest.err >&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); } &&
479c790c 13465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
13466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13467 (eval $ac_try) 2>&5
13468 ac_status=$?
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; } &&
13471 { ac_try='test -s conftest.$ac_objext'
13472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473 (eval $ac_try) 2>&5
13474 ac_status=$?
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); }; }; then
0093c2fc 13477 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
13478else
13479 echo "$as_me: failed program was:" >&5
13480sed 's/^/| /' conftest.$ac_ext >&5
13481
0093c2fc 13482bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
13483
13484fi
13485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13486
13487
13488fi
0093c2fc
VZ
13489echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13490echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
13491 ac_ext=c
13492ac_cpp='$CPP $CPPFLAGS'
13493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13495ac_compiler_gnu=$ac_cv_c_compiler_gnu
13496
0093c2fc
VZ
13497 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13498 :; COMPAQCC=yes
13499 else
13500 :;
13501 fi
13502
13503
13504 ;;
13505
13506 SunOS)
13507
13508
13509 ac_ext=c
13510ac_cpp='$CPP $CPPFLAGS'
13511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13513ac_compiler_gnu=$ac_cv_c_compiler_gnu
13514
13515 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13516echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13517if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13518 echo $ECHO_N "(cached) $ECHO_C" >&6
13519else
13520 cat >conftest.$ac_ext <<_ACEOF
13521/* confdefs.h. */
13522_ACEOF
13523cat confdefs.h >>conftest.$ac_ext
13524cat >>conftest.$ac_ext <<_ACEOF
13525/* end confdefs.h. */
13526
13527int
13528main ()
13529{
13530
13531 #ifndef __SUNPRO_C
13532 choke me
13533 #endif
13534
13535 ;
13536 return 0;
13537}
13538_ACEOF
13539rm -f conftest.$ac_objext
13540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13541 (eval $ac_compile) 2>conftest.er1
13542 ac_status=$?
13543 grep -v '^ *+' conftest.er1 >conftest.err
13544 rm -f conftest.er1
13545 cat conftest.err >&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); } &&
479c790c 13548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13551 ac_status=$?
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; } &&
13554 { ac_try='test -s conftest.$ac_objext'
13555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13556 (eval $ac_try) 2>&5
13557 ac_status=$?
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); }; }; then
13560 bakefile_cv_c_compiler___SUNPRO_C=yes
13561else
13562 echo "$as_me: failed program was:" >&5
13563sed 's/^/| /' conftest.$ac_ext >&5
13564
13565bakefile_cv_c_compiler___SUNPRO_C=no
13566
13567fi
13568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13569
13570
13571fi
13572echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13573echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13574 ac_ext=c
13575ac_cpp='$CPP $CPPFLAGS'
13576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13578ac_compiler_gnu=$ac_cv_c_compiler_gnu
13579
13580 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13581 :; SUNCC=yes
3006edc0
VZ
13582 else
13583 :;
13584 fi
13585
13586
13587 ;;
13588 esac
ab0ad5f1 13589 fi
a9e5b1f0
MW
13590
13591
3006edc0 13592
a848cd7e
SC
13593ac_ext=c
13594ac_cpp='$CPP $CPPFLAGS'
13595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13597ac_compiler_gnu=$ac_cv_c_compiler_gnu
13598echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13599echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13600# On Suns, sometimes $CPP names a directory.
13601if test -n "$CPP" && test -d "$CPP"; then
13602 CPP=
13603fi
13604if test -z "$CPP"; then
13605 if test "${ac_cv_prog_CPP+set}" = set; then
13606 echo $ECHO_N "(cached) $ECHO_C" >&6
13607else
13608 # Double quotes because CPP needs to be expanded
13609 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13610 do
13611 ac_preproc_ok=false
13612for ac_c_preproc_warn_flag in '' yes
13613do
13614 # Use a header file that comes with gcc, so configuring glibc
13615 # with a fresh cross-compiler works.
13616 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13617 # <limits.h> exists even on freestanding compilers.
13618 # On the NeXT, cc -E runs the code through the compiler's parser,
13619 # not just through cpp. "Syntax error" is here to catch this case.
13620 cat >conftest.$ac_ext <<_ACEOF
13621/* confdefs.h. */
13622_ACEOF
13623cat confdefs.h >>conftest.$ac_ext
13624cat >>conftest.$ac_ext <<_ACEOF
13625/* end confdefs.h. */
13626#ifdef __STDC__
13627# include <limits.h>
13628#else
13629# include <assert.h>
13630#endif
ac1cb8d3 13631 Syntax error
a848cd7e
SC
13632_ACEOF
13633if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13634 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13635 ac_status=$?
13636 grep -v '^ *+' conftest.er1 >conftest.err
13637 rm -f conftest.er1
13638 cat conftest.err >&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); } >/dev/null; then
13641 if test -s conftest.err; then
13642 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13644 else
13645 ac_cpp_err=
13646 fi
13647else
13648 ac_cpp_err=yes
13649fi
13650if test -z "$ac_cpp_err"; then
13651 :
13652else
13653 echo "$as_me: failed program was:" >&5
13654sed 's/^/| /' conftest.$ac_ext >&5
13655
13656 # Broken: fails on valid input.
13657continue
13658fi
13659rm -f conftest.err conftest.$ac_ext
13660
13661 # OK, works on sane cases. Now check whether non-existent headers
13662 # can be detected and how.
13663 cat >conftest.$ac_ext <<_ACEOF
13664/* confdefs.h. */
13665_ACEOF
13666cat confdefs.h >>conftest.$ac_ext
13667cat >>conftest.$ac_ext <<_ACEOF
13668/* end confdefs.h. */
13669#include <ac_nonexistent.h>
13670_ACEOF
13671if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13673 ac_status=$?
13674 grep -v '^ *+' conftest.er1 >conftest.err
13675 rm -f conftest.er1
13676 cat conftest.err >&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); } >/dev/null; then
13679 if test -s conftest.err; then
13680 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13682 else
13683 ac_cpp_err=
13684 fi
13685else
13686 ac_cpp_err=yes
13687fi
13688if test -z "$ac_cpp_err"; then
13689 # Broken: success on invalid input.
13690continue
13691else
13692 echo "$as_me: failed program was:" >&5
13693sed 's/^/| /' conftest.$ac_ext >&5
13694
13695 # Passes both tests.
13696ac_preproc_ok=:
13697break
13698fi
13699rm -f conftest.err conftest.$ac_ext
13700
13701done
13702# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13703rm -f conftest.err conftest.$ac_ext
13704if $ac_preproc_ok; then
13705 break
13706fi
13707
13708 done
13709 ac_cv_prog_CPP=$CPP
13710
13711fi
13712 CPP=$ac_cv_prog_CPP
13713else
13714 ac_cv_prog_CPP=$CPP
13715fi
13716echo "$as_me:$LINENO: result: $CPP" >&5
13717echo "${ECHO_T}$CPP" >&6
13718ac_preproc_ok=false
13719for ac_c_preproc_warn_flag in '' yes
13720do
13721 # Use a header file that comes with gcc, so configuring glibc
13722 # with a fresh cross-compiler works.
13723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13724 # <limits.h> exists even on freestanding compilers.
13725 # On the NeXT, cc -E runs the code through the compiler's parser,
13726 # not just through cpp. "Syntax error" is here to catch this case.
13727 cat >conftest.$ac_ext <<_ACEOF
13728/* confdefs.h. */
13729_ACEOF
13730cat confdefs.h >>conftest.$ac_ext
13731cat >>conftest.$ac_ext <<_ACEOF
13732/* end confdefs.h. */
13733#ifdef __STDC__
13734# include <limits.h>
13735#else
13736# include <assert.h>
13737#endif
ac1cb8d3 13738 Syntax error
a848cd7e
SC
13739_ACEOF
13740if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13742 ac_status=$?
13743 grep -v '^ *+' conftest.er1 >conftest.err
13744 rm -f conftest.er1
13745 cat conftest.err >&5
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); } >/dev/null; then
13748 if test -s conftest.err; then
13749 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13750 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13751 else
13752 ac_cpp_err=
13753 fi
13754else
13755 ac_cpp_err=yes
13756fi
13757if test -z "$ac_cpp_err"; then
13758 :
13759else
13760 echo "$as_me: failed program was:" >&5
13761sed 's/^/| /' conftest.$ac_ext >&5
13762
13763 # Broken: fails on valid input.
13764continue
13765fi
13766rm -f conftest.err conftest.$ac_ext
13767
13768 # OK, works on sane cases. Now check whether non-existent headers
13769 # can be detected and how.
13770 cat >conftest.$ac_ext <<_ACEOF
13771/* confdefs.h. */
13772_ACEOF
13773cat confdefs.h >>conftest.$ac_ext
13774cat >>conftest.$ac_ext <<_ACEOF
13775/* end confdefs.h. */
13776#include <ac_nonexistent.h>
13777_ACEOF
13778if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13780 ac_status=$?
13781 grep -v '^ *+' conftest.er1 >conftest.err
13782 rm -f conftest.er1
13783 cat conftest.err >&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } >/dev/null; then
13786 if test -s conftest.err; then
13787 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13789 else
13790 ac_cpp_err=
13791 fi
13792else
13793 ac_cpp_err=yes
13794fi
13795if test -z "$ac_cpp_err"; then
13796 # Broken: success on invalid input.
13797continue
13798else
13799 echo "$as_me: failed program was:" >&5
13800sed 's/^/| /' conftest.$ac_ext >&5
13801
13802 # Passes both tests.
13803ac_preproc_ok=:
13804break
13805fi
13806rm -f conftest.err conftest.$ac_ext
13807
13808done
13809# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13810rm -f conftest.err conftest.$ac_ext
13811if $ac_preproc_ok; then
13812 :
13813else
13814 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13815See \`config.log' for more details." >&5
13816echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13817See \`config.log' for more details." >&2;}
13818 { (exit 1); exit 1; }; }
13819fi
13820
13821ac_ext=c
13822ac_cpp='$CPP $CPPFLAGS'
13823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13825ac_compiler_gnu=$ac_cv_c_compiler_gnu
13826
13827
13828echo "$as_me:$LINENO: checking for egrep" >&5
13829echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13830if test "${ac_cv_prog_egrep+set}" = set; then
13831 echo $ECHO_N "(cached) $ECHO_C" >&6
13832else
13833 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13834 then ac_cv_prog_egrep='grep -E'
13835 else ac_cv_prog_egrep='egrep'
13836 fi
13837fi
13838echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13839echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13840 EGREP=$ac_cv_prog_egrep
13841
13842
13843if test $ac_cv_c_compiler_gnu = yes; then
13844 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13845echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13846if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13847 echo $ECHO_N "(cached) $ECHO_C" >&6
13848else
13849 ac_pattern="Autoconf.*'x'"
13850 cat >conftest.$ac_ext <<_ACEOF
13851/* confdefs.h. */
13852_ACEOF
13853cat confdefs.h >>conftest.$ac_ext
13854cat >>conftest.$ac_ext <<_ACEOF
13855/* end confdefs.h. */
13856#include <sgtty.h>
13857Autoconf TIOCGETP
13858_ACEOF
13859if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13860 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13861 ac_cv_prog_gcc_traditional=yes
13862else
13863 ac_cv_prog_gcc_traditional=no
13864fi
13865rm -f conftest*
13866
13867
13868 if test $ac_cv_prog_gcc_traditional = no; then
13869 cat >conftest.$ac_ext <<_ACEOF
13870/* confdefs.h. */
13871_ACEOF
13872cat confdefs.h >>conftest.$ac_ext
13873cat >>conftest.$ac_ext <<_ACEOF
13874/* end confdefs.h. */
13875#include <termio.h>
13876Autoconf TCGETA
13877_ACEOF
13878if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13879 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13880 ac_cv_prog_gcc_traditional=yes
13881fi
13882rm -f conftest*
13883
13884 fi
13885fi
13886echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13887echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13888 if test $ac_cv_prog_gcc_traditional = yes; then
13889 CC="$CC -traditional"
13890 fi
13891fi
13892
13893
a848cd7e
SC
13894ac_ext=cc
13895ac_cpp='$CXXCPP $CPPFLAGS'
13896ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13897ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13898ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13899
13900
13901CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
13902
13903
3006edc0 13904
6dcfc289 13905 ac_ext=cc
a848cd7e
SC
13906ac_cpp='$CXXCPP $CPPFLAGS'
13907ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13908ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13909ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13910if test -n "$ac_tool_prefix"; then
13911 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13912 do
13913 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13914set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13915echo "$as_me:$LINENO: checking for $ac_word" >&5
13916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13917if test "${ac_cv_prog_CXX+set}" = set; then
13918 echo $ECHO_N "(cached) $ECHO_C" >&6
13919else
13920 if test -n "$CXX"; then
13921 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13922else
13923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13924for as_dir in $PATH
13925do
13926 IFS=$as_save_IFS
13927 test -z "$as_dir" && as_dir=.
13928 for ac_exec_ext in '' $ac_executable_extensions; do
13929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13930 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13932 break 2
13933 fi
13934done
13935done
13936
13937fi
13938fi
13939CXX=$ac_cv_prog_CXX
13940if test -n "$CXX"; then
13941 echo "$as_me:$LINENO: result: $CXX" >&5
13942echo "${ECHO_T}$CXX" >&6
13943else
13944 echo "$as_me:$LINENO: result: no" >&5
13945echo "${ECHO_T}no" >&6
13946fi
13947
13948 test -n "$CXX" && break
13949 done
13950fi
13951if test -z "$CXX"; then
13952 ac_ct_CXX=$CXX
13953 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13954do
13955 # Extract the first word of "$ac_prog", so it can be a program name with args.
13956set dummy $ac_prog; ac_word=$2
13957echo "$as_me:$LINENO: checking for $ac_word" >&5
13958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13959if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13960 echo $ECHO_N "(cached) $ECHO_C" >&6
13961else
13962 if test -n "$ac_ct_CXX"; then
13963 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13964else
13965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13966for as_dir in $PATH
13967do
13968 IFS=$as_save_IFS
13969 test -z "$as_dir" && as_dir=.
13970 for ac_exec_ext in '' $ac_executable_extensions; do
13971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13972 ac_cv_prog_ac_ct_CXX="$ac_prog"
13973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13974 break 2
13975 fi
13976done
13977done
13978
13979fi
13980fi
13981ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13982if test -n "$ac_ct_CXX"; then
13983 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13984echo "${ECHO_T}$ac_ct_CXX" >&6
13985else
13986 echo "$as_me:$LINENO: result: no" >&5
13987echo "${ECHO_T}no" >&6
13988fi
13989
13990 test -n "$ac_ct_CXX" && break
13991done
13992test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13993
13994 CXX=$ac_ct_CXX
13995fi
13996
13997
13998# Provide some information about the compiler.
13999echo "$as_me:$LINENO:" \
14000 "checking for C++ compiler version" >&5
14001ac_compiler=`set X $ac_compile; echo $2`
14002{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
14003 (eval $ac_compiler --version </dev/null >&5) 2>&5
14004 ac_status=$?
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); }
14007{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
14008 (eval $ac_compiler -v </dev/null >&5) 2>&5
14009 ac_status=$?
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); }
14012{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
14013 (eval $ac_compiler -V </dev/null >&5) 2>&5
14014 ac_status=$?
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); }
14017
14018echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
14019echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
14020if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
14021 echo $ECHO_N "(cached) $ECHO_C" >&6
14022else
14023 cat >conftest.$ac_ext <<_ACEOF
14024/* confdefs.h. */
14025_ACEOF
14026cat confdefs.h >>conftest.$ac_ext
14027cat >>conftest.$ac_ext <<_ACEOF
14028/* end confdefs.h. */
14029
14030int
14031main ()
14032{
14033#ifndef __GNUC__
14034 choke me
14035#endif
14036
14037 ;
14038 return 0;
14039}
14040_ACEOF
14041rm -f conftest.$ac_objext
14042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14043 (eval $ac_compile) 2>conftest.er1
a848cd7e 14044 ac_status=$?
ac1cb8d3
VS
14045 grep -v '^ *+' conftest.er1 >conftest.err
14046 rm -f conftest.er1
14047 cat conftest.err >&5
a848cd7e
SC
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); } &&
479c790c 14050 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14053 ac_status=$?
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; } &&
14056 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058 (eval $ac_try) 2>&5
14059 ac_status=$?
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; }; then
14062 ac_compiler_gnu=yes
14063else
14064 echo "$as_me: failed program was:" >&5
14065sed 's/^/| /' conftest.$ac_ext >&5
14066
14067ac_compiler_gnu=no
14068fi
ac1cb8d3 14069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14070ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14071
14072fi
14073echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
14074echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
14075GXX=`test $ac_compiler_gnu = yes && echo yes`
14076ac_test_CXXFLAGS=${CXXFLAGS+set}
14077ac_save_CXXFLAGS=$CXXFLAGS
14078CXXFLAGS="-g"
14079echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
14080echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
14081if test "${ac_cv_prog_cxx_g+set}" = set; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14083else
14084 cat >conftest.$ac_ext <<_ACEOF
14085/* confdefs.h. */
14086_ACEOF
14087cat confdefs.h >>conftest.$ac_ext
14088cat >>conftest.$ac_ext <<_ACEOF
14089/* end confdefs.h. */
14090
14091int
14092main ()
14093{
14094
14095 ;
14096 return 0;
14097}
14098_ACEOF
14099rm -f conftest.$ac_objext
14100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14101 (eval $ac_compile) 2>conftest.er1
a848cd7e 14102 ac_status=$?
ac1cb8d3
VS
14103 grep -v '^ *+' conftest.er1 >conftest.err
14104 rm -f conftest.er1
14105 cat conftest.err >&5
a848cd7e
SC
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } &&
479c790c 14108 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14111 ac_status=$?
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; } &&
14114 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14116 (eval $ac_try) 2>&5
14117 ac_status=$?
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); }; }; then
14120 ac_cv_prog_cxx_g=yes
14121else
14122 echo "$as_me: failed program was:" >&5
14123sed 's/^/| /' conftest.$ac_ext >&5
14124
14125ac_cv_prog_cxx_g=no
14126fi
ac1cb8d3 14127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14128fi
14129echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
14130echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
14131if test "$ac_test_CXXFLAGS" = set; then
14132 CXXFLAGS=$ac_save_CXXFLAGS
14133elif test $ac_cv_prog_cxx_g = yes; then
14134 if test "$GXX" = yes; then
15291213 14135 CXXFLAGS="-g -O2"
a848cd7e 14136 else
15291213 14137 CXXFLAGS="-g"
a848cd7e
SC
14138 fi
14139else
14140 if test "$GXX" = yes; then
14141 CXXFLAGS="-O2"
14142 else
14143 CXXFLAGS=
14144 fi
14145fi
14146for ac_declaration in \
ac1cb8d3 14147 '' \
a848cd7e
SC
14148 'extern "C" void std::exit (int) throw (); using std::exit;' \
14149 'extern "C" void std::exit (int); using std::exit;' \
14150 'extern "C" void exit (int) throw ();' \
14151 'extern "C" void exit (int);' \
14152 'void exit (int);'
14153do
14154 cat >conftest.$ac_ext <<_ACEOF
14155/* confdefs.h. */
14156_ACEOF
14157cat confdefs.h >>conftest.$ac_ext
14158cat >>conftest.$ac_ext <<_ACEOF
14159/* end confdefs.h. */
de59c161 14160$ac_declaration
ac1cb8d3 14161#include <stdlib.h>
a848cd7e
SC
14162int
14163main ()
14164{
14165exit (42);
14166 ;
14167 return 0;
14168}
14169_ACEOF
14170rm -f conftest.$ac_objext
14171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14172 (eval $ac_compile) 2>conftest.er1
a848cd7e 14173 ac_status=$?
ac1cb8d3
VS
14174 grep -v '^ *+' conftest.er1 >conftest.err
14175 rm -f conftest.er1
14176 cat conftest.err >&5
a848cd7e
SC
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); } &&
479c790c 14179 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14182 ac_status=$?
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; } &&
14185 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187 (eval $ac_try) 2>&5
14188 ac_status=$?
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); }; }; then
14191 :
14192else
14193 echo "$as_me: failed program was:" >&5
14194sed 's/^/| /' conftest.$ac_ext >&5
14195
14196continue
14197fi
ac1cb8d3 14198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14199 cat >conftest.$ac_ext <<_ACEOF
14200/* confdefs.h. */
14201_ACEOF
14202cat confdefs.h >>conftest.$ac_ext
14203cat >>conftest.$ac_ext <<_ACEOF
14204/* end confdefs.h. */
14205$ac_declaration
14206int
14207main ()
14208{
14209exit (42);
14210 ;
14211 return 0;
14212}
14213_ACEOF
14214rm -f conftest.$ac_objext
14215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14216 (eval $ac_compile) 2>conftest.er1
a848cd7e 14217 ac_status=$?
ac1cb8d3
VS
14218 grep -v '^ *+' conftest.er1 >conftest.err
14219 rm -f conftest.er1
14220 cat conftest.err >&5
a848cd7e
SC
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); } &&
479c790c 14223 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14225 (eval $ac_try) 2>&5
14226 ac_status=$?
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); }; } &&
14229 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231 (eval $ac_try) 2>&5
14232 ac_status=$?
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; }; then
14235 break
14236else
14237 echo "$as_me: failed program was:" >&5
14238sed 's/^/| /' conftest.$ac_ext >&5
14239
14240fi
ac1cb8d3 14241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14242done
14243rm -f conftest*
14244if test -n "$ac_declaration"; then
14245 echo '#ifdef __cplusplus' >>confdefs.h
14246 echo $ac_declaration >>confdefs.h
14247 echo '#endif' >>confdefs.h
14248fi
14249
14250ac_ext=cc
14251ac_cpp='$CXXCPP $CPPFLAGS'
14252ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14253ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14254ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14255
ab0ad5f1
VZ
14256
14257
14258 ac_ext=cc
14259ac_cpp='$CXXCPP $CPPFLAGS'
14260ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14261ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14262ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14263
14264 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
14265echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
14266if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
14267 echo $ECHO_N "(cached) $ECHO_C" >&6
14268else
14269 cat >conftest.$ac_ext <<_ACEOF
14270/* confdefs.h. */
14271_ACEOF
14272cat confdefs.h >>conftest.$ac_ext
14273cat >>conftest.$ac_ext <<_ACEOF
14274/* end confdefs.h. */
14275
14276int
14277main ()
14278{
14279
14280 #ifndef __INTEL_COMPILER
14281 choke me
14282 #endif
14283
14284 ;
14285 return 0;
14286}
14287_ACEOF
14288rm -f conftest.$ac_objext
14289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14290 (eval $ac_compile) 2>conftest.er1
14291 ac_status=$?
14292 grep -v '^ *+' conftest.er1 >conftest.err
14293 rm -f conftest.er1
14294 cat conftest.err >&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } &&
479c790c 14297 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
14298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14299 (eval $ac_try) 2>&5
14300 ac_status=$?
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); }; } &&
14303 { ac_try='test -s conftest.$ac_objext'
14304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14305 (eval $ac_try) 2>&5
14306 ac_status=$?
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; }; then
14309 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
14310else
14311 echo "$as_me: failed program was:" >&5
14312sed 's/^/| /' conftest.$ac_ext >&5
14313
14314bakefile_cv_cxx_compiler___INTEL_COMPILER=no
14315
14316fi
14317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14318
14319
14320fi
14321echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
14322echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
14323 ac_ext=cc
14324ac_cpp='$CXXCPP $CPPFLAGS'
14325ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14326ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14327ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14328
14329 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
14330 :; INTELCXX=yes
14331 else
14332 :;
14333 fi
14334
14335
3006edc0
VZ
14336 if test "x$GCXX" != "xyes"; then
14337 if test "xCXX" = "xC"; then
14338 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 14339echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 14340if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
14341 echo $ECHO_N "(cached) $ECHO_C" >&6
14342else
14343 cat >conftest.$ac_ext <<_ACEOF
14344/* confdefs.h. */
14345_ACEOF
14346cat confdefs.h >>conftest.$ac_ext
14347cat >>conftest.$ac_ext <<_ACEOF
14348/* end confdefs.h. */
14349
14350int
14351main ()
14352{
14353
14354 ;
14355 return 0;
14356}
14357_ACEOF
14358rm -f conftest.$ac_objext conftest.$ac_ext.o
14359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14360 (eval $ac_compile) 2>&5
14361 ac_status=$?
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); }; then
14364 for ac_file in `(ls conftest.* 2>/dev/null)`; do
14365 case $ac_file in
14366 conftest.$ac_ext.o)
0093c2fc 14367 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
14368 ;;
14369 *)
14370 ;;
14371 esac
14372done
14373else
14374 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14375See \`config.log' for more details." >&5
14376echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14377See \`config.log' for more details." >&2;}
14378 { (exit 1); exit 1; }; }
14379
14380fi
14381
14382rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14383
14384fi
0093c2fc
VZ
14385echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
14386echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
14387if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 14388 if test "cxx" = "c"; then
0093c2fc 14389 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
14390 fi
14391 if test "cxx" = "cxx"; then
0093c2fc 14392 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
14393 fi
14394fi
14395
0093c2fc 14396 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
14397 unset ac_cv_prog_cc_g
14398 ac_test_CFLAGS=${CFLAGS+set}
14399ac_save_CFLAGS=$CFLAGS
15291213 14400CFLAGS="-g"
3006edc0
VZ
14401echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14402echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14403if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
14404 echo $ECHO_N "(cached) $ECHO_C" >&6
14405else
14406 cat >conftest.$ac_ext <<_ACEOF
14407/* confdefs.h. */
14408_ACEOF
14409cat confdefs.h >>conftest.$ac_ext
14410cat >>conftest.$ac_ext <<_ACEOF
14411/* end confdefs.h. */
14412
14413int
14414main ()
14415{
14416
14417 ;
14418 return 0;
14419}
14420_ACEOF
14421rm -f conftest.$ac_objext
14422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14423 (eval $ac_compile) 2>conftest.er1
14424 ac_status=$?
14425 grep -v '^ *+' conftest.er1 >conftest.err
14426 rm -f conftest.er1
14427 cat conftest.err >&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); } &&
479c790c 14430 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
14431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14432 (eval $ac_try) 2>&5
14433 ac_status=$?
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); }; } &&
14436 { ac_try='test -s conftest.$ac_objext'
14437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14438 (eval $ac_try) 2>&5
14439 ac_status=$?
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); }; }; then
3006edc0 14442 ac_cv_prog_cc_g=yes
480ccd21
DE
14443else
14444 echo "$as_me: failed program was:" >&5
14445sed 's/^/| /' conftest.$ac_ext >&5
14446
3006edc0 14447ac_cv_prog_cc_g=no
480ccd21
DE
14448fi
14449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14450fi
3006edc0
VZ
14451echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14452echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14453if test "$ac_test_CFLAGS" = set; then
14454 CFLAGS=$ac_save_CFLAGS
14455elif test $ac_cv_prog_cc_g = yes; then
14456 if test "$GCC" = yes; then
14457 CFLAGS="-g -O2"
480ccd21 14458 else
3006edc0 14459 CFLAGS="-g"
480ccd21
DE
14460 fi
14461else
3006edc0
VZ
14462 if test "$GCC" = yes; then
14463 CFLAGS="-O2"
480ccd21 14464 else
3006edc0 14465 CFLAGS=
480ccd21
DE
14466 fi
14467fi
3006edc0 14468 fi
ab0ad5f1 14469 fi
3006edc0
VZ
14470
14471 case `uname -s` in
14472 AIX*)
14473 ac_ext=cc
14474ac_cpp='$CXXCPP $CPPFLAGS'
14475ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14476ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14477ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14478
14479echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14480echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14481if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
14482 echo $ECHO_N "(cached) $ECHO_C" >&6
14483else
14484 cat >conftest.$ac_ext <<_ACEOF
14485/* confdefs.h. */
14486_ACEOF
14487cat confdefs.h >>conftest.$ac_ext
14488cat >>conftest.$ac_ext <<_ACEOF
14489/* end confdefs.h. */
14490
14491int
14492main ()
14493{
14494#ifndef __xlC__
14495 choke me
14496#endif
14497
14498 ;
14499 return 0;
14500}
14501_ACEOF
14502rm -f conftest.$ac_objext
14503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14504 (eval $ac_compile) 2>conftest.er1
14505 ac_status=$?
14506 grep -v '^ *+' conftest.er1 >conftest.err
14507 rm -f conftest.er1
14508 cat conftest.err >&5
14509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510 (exit $ac_status); } &&
479c790c 14511 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14513 (eval $ac_try) 2>&5
14514 ac_status=$?
14515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516 (exit $ac_status); }; } &&
14517 { ac_try='test -s conftest.$ac_objext'
14518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519 (eval $ac_try) 2>&5
14520 ac_status=$?
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; }; then
0093c2fc 14523 bakefile_compiler_xlc=yes
3006edc0
VZ
14524else
14525 echo "$as_me: failed program was:" >&5
14526sed 's/^/| /' conftest.$ac_ext >&5
14527
0093c2fc 14528bakefile_compiler_xlc=no
3006edc0
VZ
14529fi
14530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14531 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
14532
14533fi
0093c2fc
VZ
14534echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14535echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 14536
0093c2fc 14537XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
14538ac_ext=cc
14539ac_cpp='$CXXCPP $CPPFLAGS'
14540ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14541ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14542ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14543
14544
14545 ;;
14546
14547 Darwin)
14548 ac_ext=cc
95986553
DE
14549ac_cpp='$CXXCPP $CPPFLAGS'
14550ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14551ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14552ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14553
14554echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14555echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14556if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14557 echo $ECHO_N "(cached) $ECHO_C" >&6
14558else
14559 cat >conftest.$ac_ext <<_ACEOF
14560/* confdefs.h. */
14561_ACEOF
14562cat confdefs.h >>conftest.$ac_ext
14563cat >>conftest.$ac_ext <<_ACEOF
14564/* end confdefs.h. */
14565
14566int
14567main ()
14568{
14569#ifndef __MWERKS__
14570 choke me
14571#endif
14572
14573 ;
14574 return 0;
14575}
14576_ACEOF
14577rm -f conftest.$ac_objext
14578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14579 (eval $ac_compile) 2>conftest.er1
14580 ac_status=$?
14581 grep -v '^ *+' conftest.er1 >conftest.err
14582 rm -f conftest.er1
14583 cat conftest.err >&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); } &&
479c790c 14586 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588 (eval $ac_try) 2>&5
14589 ac_status=$?
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; } &&
14592 { ac_try='test -s conftest.$ac_objext'
14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594 (eval $ac_try) 2>&5
14595 ac_status=$?
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; }; then
14598 bakefile_compiler_mwerks=yes
14599else
14600 echo "$as_me: failed program was:" >&5
14601sed 's/^/| /' conftest.$ac_ext >&5
14602
14603bakefile_compiler_mwerks=no
14604fi
14605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14606 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14607
14608fi
14609echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14610echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14611
0e6fa1d9 14612MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
14613ac_ext=cc
14614ac_cpp='$CXXCPP $CPPFLAGS'
14615ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14616ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14617ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14618
14619
3006edc0 14620 ac_ext=cc
9273ffba
DE
14621ac_cpp='$CXXCPP $CPPFLAGS'
14622ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14623ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14624ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14625
14626echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14627echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14628if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
14629 echo $ECHO_N "(cached) $ECHO_C" >&6
14630else
14631 cat >conftest.$ac_ext <<_ACEOF
14632/* confdefs.h. */
14633_ACEOF
14634cat confdefs.h >>conftest.$ac_ext
14635cat >>conftest.$ac_ext <<_ACEOF
14636/* end confdefs.h. */
14637
14638int
14639main ()
14640{
14641#ifndef __xlC__
14642 choke me
14643#endif
14644
14645 ;
14646 return 0;
14647}
14648_ACEOF
14649rm -f conftest.$ac_objext
14650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14651 (eval $ac_compile) 2>conftest.er1
14652 ac_status=$?
14653 grep -v '^ *+' conftest.er1 >conftest.err
14654 rm -f conftest.er1
14655 cat conftest.err >&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); } &&
479c790c 14658 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
14659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660 (eval $ac_try) 2>&5
14661 ac_status=$?
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); }; } &&
14664 { ac_try='test -s conftest.$ac_objext'
14665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14666 (eval $ac_try) 2>&5
14667 ac_status=$?
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); }; }; then
0093c2fc 14670 bakefile_compiler_xlc=yes
9273ffba
DE
14671else
14672 echo "$as_me: failed program was:" >&5
14673sed 's/^/| /' conftest.$ac_ext >&5
14674
0093c2fc 14675bakefile_compiler_xlc=no
9273ffba
DE
14676fi
14677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14678 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
14679
14680fi
0093c2fc
VZ
14681echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14682echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 14683
0093c2fc 14684XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
14685ac_ext=cc
14686ac_cpp='$CXXCPP $CPPFLAGS'
14687ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14688ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14689ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14690
14691
3006edc0
VZ
14692 ;;
14693
14694 IRIX*)
95986553 14695
6dcfc289 14696
0ad5d837
VZ
14697 ac_ext=cc
14698ac_cpp='$CXXCPP $CPPFLAGS'
14699ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14700ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14701ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14702
14703 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14704echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14705if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14706 echo $ECHO_N "(cached) $ECHO_C" >&6
14707else
14708 cat >conftest.$ac_ext <<_ACEOF
14709/* confdefs.h. */
14710_ACEOF
14711cat confdefs.h >>conftest.$ac_ext
14712cat >>conftest.$ac_ext <<_ACEOF
14713/* end confdefs.h. */
14714
14715int
14716main ()
14717{
14718
14719 #ifndef _SGI_COMPILER_VERSION
14720 choke me
14721 #endif
14722
14723 ;
14724 return 0;
14725}
14726_ACEOF
14727rm -f conftest.$ac_objext
14728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14729 (eval $ac_compile) 2>conftest.er1
14730 ac_status=$?
14731 grep -v '^ *+' conftest.er1 >conftest.err
14732 rm -f conftest.er1
14733 cat conftest.err >&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); } &&
479c790c 14736 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
14737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738 (eval $ac_try) 2>&5
14739 ac_status=$?
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }; } &&
14742 { ac_try='test -s conftest.$ac_objext'
14743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14744 (eval $ac_try) 2>&5
14745 ac_status=$?
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); }; }; then
14748 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14749else
14750 echo "$as_me: failed program was:" >&5
14751sed 's/^/| /' conftest.$ac_ext >&5
14752
14753bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14754
14755fi
14756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14757
14758
14759fi
14760echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14761echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14762 ac_ext=cc
14763ac_cpp='$CXXCPP $CPPFLAGS'
14764ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14765ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14766ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14767
14768 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14769 :; SGICXX=yes
14770 else
14771 :;
14772 fi
14773
14774
3006edc0
VZ
14775 ;;
14776
0093c2fc 14777 HP-UX*)
3006edc0
VZ
14778
14779
14780 ac_ext=cc
14781ac_cpp='$CXXCPP $CPPFLAGS'
14782ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14783ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14784ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14785
0093c2fc
VZ
14786 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14787echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14788if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14789 echo $ECHO_N "(cached) $ECHO_C" >&6
14790else
14791 cat >conftest.$ac_ext <<_ACEOF
14792/* confdefs.h. */
14793_ACEOF
14794cat confdefs.h >>conftest.$ac_ext
14795cat >>conftest.$ac_ext <<_ACEOF
14796/* end confdefs.h. */
14797
14798int
14799main ()
14800{
14801
0093c2fc 14802 #ifndef __HP_aCC
3006edc0
VZ
14803 choke me
14804 #endif
14805
14806 ;
14807 return 0;
14808}
14809_ACEOF
14810rm -f conftest.$ac_objext
14811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14812 (eval $ac_compile) 2>conftest.er1
14813 ac_status=$?
14814 grep -v '^ *+' conftest.er1 >conftest.err
14815 rm -f conftest.er1
14816 cat conftest.err >&5
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); } &&
479c790c 14819 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14821 (eval $ac_try) 2>&5
14822 ac_status=$?
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); }; } &&
14825 { ac_try='test -s conftest.$ac_objext'
14826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14827 (eval $ac_try) 2>&5
14828 ac_status=$?
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); }; }; then
0093c2fc 14831 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14832else
14833 echo "$as_me: failed program was:" >&5
14834sed 's/^/| /' conftest.$ac_ext >&5
14835
0093c2fc 14836bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14837
14838fi
14839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14840
14841
14842fi
0093c2fc
VZ
14843echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14844echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
14845 ac_ext=cc
14846ac_cpp='$CXXCPP $CPPFLAGS'
14847ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14848ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14849ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14850
0093c2fc
VZ
14851 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14852 :; HPCXX=yes
a1aa0349
VZ
14853 else
14854 :;
14855 fi
14856
14857
14858 ;;
14859
0093c2fc 14860 OSF1)
a1aa0349
VZ
14861
14862
14863 ac_ext=cc
14864ac_cpp='$CXXCPP $CPPFLAGS'
14865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14868
0093c2fc
VZ
14869 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14870echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14871if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14872 echo $ECHO_N "(cached) $ECHO_C" >&6
14873else
14874 cat >conftest.$ac_ext <<_ACEOF
14875/* confdefs.h. */
14876_ACEOF
14877cat confdefs.h >>conftest.$ac_ext
14878cat >>conftest.$ac_ext <<_ACEOF
14879/* end confdefs.h. */
14880
14881int
14882main ()
14883{
14884
0093c2fc 14885 #ifndef __DECCXX
a1aa0349
VZ
14886 choke me
14887 #endif
14888
14889 ;
14890 return 0;
14891}
14892_ACEOF
14893rm -f conftest.$ac_objext
14894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14895 (eval $ac_compile) 2>conftest.er1
14896 ac_status=$?
14897 grep -v '^ *+' conftest.er1 >conftest.err
14898 rm -f conftest.er1
14899 cat conftest.err >&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); } &&
479c790c 14902 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
14903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14904 (eval $ac_try) 2>&5
14905 ac_status=$?
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); }; } &&
14908 { ac_try='test -s conftest.$ac_objext'
14909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14910 (eval $ac_try) 2>&5
14911 ac_status=$?
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); }; }; then
0093c2fc 14914 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14915else
14916 echo "$as_me: failed program was:" >&5
14917sed 's/^/| /' conftest.$ac_ext >&5
14918
0093c2fc 14919bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14920
14921fi
14922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14923
14924
14925fi
0093c2fc
VZ
14926echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14927echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
14928 ac_ext=cc
14929ac_cpp='$CXXCPP $CPPFLAGS'
14930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14933
0093c2fc
VZ
14934 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14935 :; COMPAQCXX=yes
14936 else
14937 :;
14938 fi
14939
14940
14941 ;;
14942
14943 SunOS)
14944
14945
14946 ac_ext=cc
14947ac_cpp='$CXXCPP $CPPFLAGS'
14948ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14949ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14950ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14951
14952 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14953echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14954if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14955 echo $ECHO_N "(cached) $ECHO_C" >&6
14956else
14957 cat >conftest.$ac_ext <<_ACEOF
14958/* confdefs.h. */
14959_ACEOF
14960cat confdefs.h >>conftest.$ac_ext
14961cat >>conftest.$ac_ext <<_ACEOF
14962/* end confdefs.h. */
14963
14964int
14965main ()
14966{
14967
14968 #ifndef __SUNPRO_CC
14969 choke me
14970 #endif
14971
14972 ;
14973 return 0;
14974}
14975_ACEOF
14976rm -f conftest.$ac_objext
14977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14978 (eval $ac_compile) 2>conftest.er1
14979 ac_status=$?
14980 grep -v '^ *+' conftest.er1 >conftest.err
14981 rm -f conftest.er1
14982 cat conftest.err >&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); } &&
479c790c 14985 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
14986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14987 (eval $ac_try) 2>&5
14988 ac_status=$?
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; } &&
14991 { ac_try='test -s conftest.$ac_objext'
14992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993 (eval $ac_try) 2>&5
14994 ac_status=$?
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); }; }; then
14997 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14998else
14999 echo "$as_me: failed program was:" >&5
15000sed 's/^/| /' conftest.$ac_ext >&5
15001
15002bakefile_cv_cxx_compiler___SUNPRO_CC=no
15003
15004fi
15005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15006
15007
15008fi
15009echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
15010echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
15011 ac_ext=cc
15012ac_cpp='$CXXCPP $CPPFLAGS'
15013ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15014ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15015ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15016
15017 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
15018 :; SUNCXX=yes
3006edc0
VZ
15019 else
15020 :;
ab0ad5f1 15021 fi
a9e5b1f0
MW
15022
15023
3006edc0
VZ
15024 ;;
15025 esac
15026 fi
15027
15028
15029
a848cd7e
SC
15030if test -n "$ac_tool_prefix"; then
15031 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15032set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15033echo "$as_me:$LINENO: checking for $ac_word" >&5
15034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15035if test "${ac_cv_prog_RANLIB+set}" = set; then
15036 echo $ECHO_N "(cached) $ECHO_C" >&6
15037else
15038 if test -n "$RANLIB"; then
15039 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15040else
15041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15042for as_dir in $PATH
15043do
15044 IFS=$as_save_IFS
15045 test -z "$as_dir" && as_dir=.
15046 for ac_exec_ext in '' $ac_executable_extensions; do
15047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15048 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15050 break 2
15051 fi
15052done
15053done
15054
15055fi
15056fi
15057RANLIB=$ac_cv_prog_RANLIB
15058if test -n "$RANLIB"; then
15059 echo "$as_me:$LINENO: result: $RANLIB" >&5
15060echo "${ECHO_T}$RANLIB" >&6
15061else
15062 echo "$as_me:$LINENO: result: no" >&5
15063echo "${ECHO_T}no" >&6
15064fi
15065
15066fi
15067if test -z "$ac_cv_prog_RANLIB"; then
15068 ac_ct_RANLIB=$RANLIB
15069 # Extract the first word of "ranlib", so it can be a program name with args.
15070set dummy ranlib; ac_word=$2
15071echo "$as_me:$LINENO: checking for $ac_word" >&5
15072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15073if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15074 echo $ECHO_N "(cached) $ECHO_C" >&6
15075else
15076 if test -n "$ac_ct_RANLIB"; then
15077 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15078else
15079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15080for as_dir in $PATH
15081do
15082 IFS=$as_save_IFS
15083 test -z "$as_dir" && as_dir=.
15084 for ac_exec_ext in '' $ac_executable_extensions; do
15085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15086 ac_cv_prog_ac_ct_RANLIB="ranlib"
15087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15088 break 2
15089 fi
15090done
15091done
15092
15093 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15094fi
15095fi
15096ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15097if test -n "$ac_ct_RANLIB"; then
15098 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15099echo "${ECHO_T}$ac_ct_RANLIB" >&6
15100else
15101 echo "$as_me:$LINENO: result: no" >&5
15102echo "${ECHO_T}no" >&6
15103fi
15104
15105 RANLIB=$ac_ct_RANLIB
15106else
15107 RANLIB="$ac_cv_prog_RANLIB"
15108fi
15109
15110
8c80d384
DE
15111if test -n "$ac_tool_prefix"; then
15112 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15113set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
15114echo "$as_me:$LINENO: checking for $ac_word" >&5
15115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15116if test "${ac_cv_prog_AR+set}" = set; then
15117 echo $ECHO_N "(cached) $ECHO_C" >&6
15118else
15119 if test -n "$AR"; then
15120 ac_cv_prog_AR="$AR" # Let the user override the test.
15121else
15122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15123for as_dir in $PATH
15124do
15125 IFS=$as_save_IFS
15126 test -z "$as_dir" && as_dir=.
15127 for ac_exec_ext in '' $ac_executable_extensions; do
15128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 15129 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
15130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15131 break 2
15132 fi
15133done
15134done
15135
15136fi
15137fi
15138AR=$ac_cv_prog_AR
15139if test -n "$AR"; then
15140 echo "$as_me:$LINENO: result: $AR" >&5
15141echo "${ECHO_T}$AR" >&6
15142else
15143 echo "$as_me:$LINENO: result: no" >&5
15144echo "${ECHO_T}no" >&6
15145fi
15146
8c80d384
DE
15147fi
15148if test -z "$ac_cv_prog_AR"; then
15149 ac_ct_AR=$AR
15150 # Extract the first word of "ar", so it can be a program name with args.
15151set dummy ar; ac_word=$2
15152echo "$as_me:$LINENO: checking for $ac_word" >&5
15153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15154if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15155 echo $ECHO_N "(cached) $ECHO_C" >&6
15156else
15157 if test -n "$ac_ct_AR"; then
15158 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15159else
15160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15161for as_dir in $PATH
15162do
15163 IFS=$as_save_IFS
15164 test -z "$as_dir" && as_dir=.
15165 for ac_exec_ext in '' $ac_executable_extensions; do
15166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15167 ac_cv_prog_ac_ct_AR="ar"
15168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15169 break 2
15170 fi
15171done
15172done
15173
15174fi
15175fi
15176ac_ct_AR=$ac_cv_prog_ac_ct_AR
15177if test -n "$ac_ct_AR"; then
15178 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15179echo "${ECHO_T}$ac_ct_AR" >&6
15180else
15181 echo "$as_me:$LINENO: result: no" >&5
15182echo "${ECHO_T}no" >&6
15183fi
15184
15185 AR=$ac_ct_AR
15186else
15187 AR="$ac_cv_prog_AR"
15188fi
15189
a848cd7e 15190if test "x$AR" = "x" ; then
77ffb593
JS
15191 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
15192echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
15193 { (exit 1); exit 1; }; }
15194fi
15195
15196# Find a good install program. We prefer a C program (faster),
15197# so one script is as good as another. But avoid the broken or
15198# incompatible versions:
15199# SysV /etc/install, /usr/sbin/install
15200# SunOS /usr/etc/install
15201# IRIX /sbin/install
15202# AIX /bin/install
15203# AmigaOS /C/install, which installs bootblocks on floppy discs
15204# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15205# AFS /usr/afsws/bin/install, which mishandles nonexistent args
15206# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 15207# OS/2's system install, which has a completely different semantic
a848cd7e
SC
15208# ./install, which can be erroneously created by make from ./install.sh.
15209echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
15210echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
15211if test -z "$INSTALL"; then
15212if test "${ac_cv_path_install+set}" = set; then
15213 echo $ECHO_N "(cached) $ECHO_C" >&6
15214else
15215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15216for as_dir in $PATH
15217do
15218 IFS=$as_save_IFS
15219 test -z "$as_dir" && as_dir=.
15220 # Account for people who put trailing slashes in PATH elements.
15221case $as_dir/ in
15222 ./ | .// | /cC/* | \
15223 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 15224 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
15225 /usr/ucb/* ) ;;
15226 *)
15227 # OSF1 and SCO ODT 3.0 have their own names for install.
15228 # Don't use installbsd from OSF since it installs stuff as root
15229 # by default.
15230 for ac_prog in ginstall scoinst install; do
15231 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
15232 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15233 if test $ac_prog = install &&
15234 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15235 # AIX install. It has an incompatible calling convention.
15236 :
15237 elif test $ac_prog = install &&
15238 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15239 # program-specific install script used by HP pwplus--don't use.
15240 :
15241 else
15242 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15243 break 3
15244 fi
15245 fi
a848cd7e
SC
15246 done
15247 done
15248 ;;
15249esac
15250done
15251
15252
15253fi
15254 if test "${ac_cv_path_install+set}" = set; then
15255 INSTALL=$ac_cv_path_install
15256 else
15257 # As a last resort, use the slow shell script. We don't cache a
15258 # path for INSTALL within a source directory, because that will
15259 # break other packages using the cache if that directory is
15260 # removed, or if the path is relative.
15261 INSTALL=$ac_install_sh
15262 fi
15263fi
15264echo "$as_me:$LINENO: result: $INSTALL" >&5
15265echo "${ECHO_T}$INSTALL" >&6
15266
15267# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15268# It thinks the first close brace ends the variable substitution.
15269test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15270
15271test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15272
15273test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15274
15275
15276case ${INSTALL} in
15277 /* ) # Absolute
15278 ;;
15279 ?:* ) # Drive letter, considered as absolute.
15280 ;;
15281 *)
15282 INSTALL=`pwd`/${INSTALL} ;;
15283esac
15284
a848cd7e
SC
15285
15286case "${host}" in
15287
cfda0ea8 15288 *-*-darwin* )
a848cd7e
SC
15289 INSTALL_PROGRAM="cp -fp"
15290 INSTALL_DATA="cp -fp"
15291 ;;
15292 *)
15293 ;;
15294esac
15295
8c80d384
DE
15296if test -n "$ac_tool_prefix"; then
15297 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15298set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
15299echo "$as_me:$LINENO: checking for $ac_word" >&5
15300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15301if test "${ac_cv_prog_STRIP+set}" = set; then
15302 echo $ECHO_N "(cached) $ECHO_C" >&6
15303else
15304 if test -n "$STRIP"; then
15305 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15306else
15307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15308for as_dir in $PATH
15309do
15310 IFS=$as_save_IFS
15311 test -z "$as_dir" && as_dir=.
15312 for ac_exec_ext in '' $ac_executable_extensions; do
15313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 15314 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
15315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15316 break 2
15317 fi
15318done
15319done
15320
a848cd7e
SC
15321fi
15322fi
15323STRIP=$ac_cv_prog_STRIP
15324if test -n "$STRIP"; then
15325 echo "$as_me:$LINENO: result: $STRIP" >&5
15326echo "${ECHO_T}$STRIP" >&6
15327else
15328 echo "$as_me:$LINENO: result: no" >&5
15329echo "${ECHO_T}no" >&6
15330fi
15331
8c80d384
DE
15332fi
15333if test -z "$ac_cv_prog_STRIP"; then
15334 ac_ct_STRIP=$STRIP
15335 # Extract the first word of "strip", so it can be a program name with args.
15336set dummy strip; ac_word=$2
15337echo "$as_me:$LINENO: checking for $ac_word" >&5
15338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15339if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15340 echo $ECHO_N "(cached) $ECHO_C" >&6
15341else
15342 if test -n "$ac_ct_STRIP"; then
15343 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15344else
15345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15346for as_dir in $PATH
15347do
15348 IFS=$as_save_IFS
15349 test -z "$as_dir" && as_dir=.
15350 for ac_exec_ext in '' $ac_executable_extensions; do
15351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15352 ac_cv_prog_ac_ct_STRIP="strip"
15353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15354 break 2
15355 fi
15356done
15357done
15358
15359 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
15360fi
15361fi
15362ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15363if test -n "$ac_ct_STRIP"; then
15364 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15365echo "${ECHO_T}$ac_ct_STRIP" >&6
15366else
15367 echo "$as_me:$LINENO: result: no" >&5
15368echo "${ECHO_T}no" >&6
15369fi
15370
15371 STRIP=$ac_ct_STRIP
15372else
15373 STRIP="$ac_cv_prog_STRIP"
15374fi
15375
15376
15377if test "$wxUSE_WINE" = "yes"; then
15378 if test -n "$ac_tool_prefix"; then
15379 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
15380set dummy ${ac_tool_prefix}wrc; ac_word=$2
15381echo "$as_me:$LINENO: checking for $ac_word" >&5
15382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15383if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
15384 echo $ECHO_N "(cached) $ECHO_C" >&6
15385else
8ced02f6
DE
15386 if test -n "$WINDRES"; then
15387 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
15388else
15389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15390for as_dir in $PATH
15391do
15392 IFS=$as_save_IFS
15393 test -z "$as_dir" && as_dir=.
15394 for ac_exec_ext in '' $ac_executable_extensions; do
15395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15396 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
15397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15398 break 2
15399 fi
15400done
15401done
15402
15403fi
15404fi
8ced02f6
DE
15405WINDRES=$ac_cv_prog_WINDRES
15406if test -n "$WINDRES"; then
15407 echo "$as_me:$LINENO: result: $WINDRES" >&5
15408echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
15409else
15410 echo "$as_me:$LINENO: result: no" >&5
15411echo "${ECHO_T}no" >&6
15412fi
15413
15414fi
8ced02f6
DE
15415if test -z "$ac_cv_prog_WINDRES"; then
15416 ac_ct_WINDRES=$WINDRES
8c80d384
DE
15417 # Extract the first word of "wrc", so it can be a program name with args.
15418set dummy wrc; ac_word=$2
15419echo "$as_me:$LINENO: checking for $ac_word" >&5
15420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15421if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
15422 echo $ECHO_N "(cached) $ECHO_C" >&6
15423else
8ced02f6
DE
15424 if test -n "$ac_ct_WINDRES"; then
15425 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
15426else
15427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15428for as_dir in $PATH
15429do
15430 IFS=$as_save_IFS
15431 test -z "$as_dir" && as_dir=.
15432 for ac_exec_ext in '' $ac_executable_extensions; do
15433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15434 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
15435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15436 break 2
15437 fi
15438done
15439done
15440
15441fi
15442fi
8ced02f6
DE
15443ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15444if test -n "$ac_ct_WINDRES"; then
15445 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15446echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
15447else
15448 echo "$as_me:$LINENO: result: no" >&5
15449echo "${ECHO_T}no" >&6
15450fi
15451
8ced02f6 15452 WINDRES=$ac_ct_WINDRES
8c80d384 15453else
8ced02f6 15454 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
15455fi
15456
004ee6da 15457 RESCOMP="$WINDRES"
8c80d384
DE
15458else
15459 case "${host}" in
15460 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
15461 if test -n "$ac_tool_prefix"; then
15462 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15463set dummy ${ac_tool_prefix}windres; ac_word=$2
15464echo "$as_me:$LINENO: checking for $ac_word" >&5
15465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15466if test "${ac_cv_prog_WINDRES+set}" = set; then
15467 echo $ECHO_N "(cached) $ECHO_C" >&6
15468else
15469 if test -n "$WINDRES"; then
15470 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15471else
15472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15473for as_dir in $PATH
15474do
15475 IFS=$as_save_IFS
15476 test -z "$as_dir" && as_dir=.
15477 for ac_exec_ext in '' $ac_executable_extensions; do
15478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15479 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15481 break 2
15482 fi
15483done
15484done
15485
15486fi
15487fi
15488WINDRES=$ac_cv_prog_WINDRES
15489if test -n "$WINDRES"; then
15490 echo "$as_me:$LINENO: result: $WINDRES" >&5
15491echo "${ECHO_T}$WINDRES" >&6
15492else
15493 echo "$as_me:$LINENO: result: no" >&5
15494echo "${ECHO_T}no" >&6
15495fi
15496
15497fi
15498if test -z "$ac_cv_prog_WINDRES"; then
15499 ac_ct_WINDRES=$WINDRES
15500 # Extract the first word of "windres", so it can be a program name with args.
15501set dummy windres; ac_word=$2
15502echo "$as_me:$LINENO: checking for $ac_word" >&5
15503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15504if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15505 echo $ECHO_N "(cached) $ECHO_C" >&6
15506else
15507 if test -n "$ac_ct_WINDRES"; then
15508 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15509else
15510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15511for as_dir in $PATH
15512do
15513 IFS=$as_save_IFS
15514 test -z "$as_dir" && as_dir=.
15515 for ac_exec_ext in '' $ac_executable_extensions; do
15516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15517 ac_cv_prog_ac_ct_WINDRES="windres"
15518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15519 break 2
15520 fi
15521done
15522done
15523
15524fi
15525fi
15526ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15527if test -n "$ac_ct_WINDRES"; then
15528 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15529echo "${ECHO_T}$ac_ct_WINDRES" >&6
15530else
15531 echo "$as_me:$LINENO: result: no" >&5
15532echo "${ECHO_T}no" >&6
15533fi
15534
15535 WINDRES=$ac_ct_WINDRES
15536else
15537 WINDRES="$ac_cv_prog_WINDRES"
15538fi
15539
15540 RESCOMP="$WINDRES"
15541 if test -n "$ac_tool_prefix"; then
8c80d384
DE
15542 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15543set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15544echo "$as_me:$LINENO: checking for $ac_word" >&5
15545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15546if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15547 echo $ECHO_N "(cached) $ECHO_C" >&6
15548else
15549 if test -n "$DLLTOOL"; then
15550 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15551else
15552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15553for as_dir in $PATH
15554do
15555 IFS=$as_save_IFS
15556 test -z "$as_dir" && as_dir=.
15557 for ac_exec_ext in '' $ac_executable_extensions; do
15558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15559 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15561 break 2
15562 fi
15563done
15564done
15565
15566fi
15567fi
15568DLLTOOL=$ac_cv_prog_DLLTOOL
15569if test -n "$DLLTOOL"; then
15570 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15571echo "${ECHO_T}$DLLTOOL" >&6
15572else
15573 echo "$as_me:$LINENO: result: no" >&5
15574echo "${ECHO_T}no" >&6
15575fi
15576
15577fi
15578if test -z "$ac_cv_prog_DLLTOOL"; then
15579 ac_ct_DLLTOOL=$DLLTOOL
15580 # Extract the first word of "dlltool", so it can be a program name with args.
15581set dummy dlltool; ac_word=$2
15582echo "$as_me:$LINENO: checking for $ac_word" >&5
15583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15584if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15585 echo $ECHO_N "(cached) $ECHO_C" >&6
15586else
15587 if test -n "$ac_ct_DLLTOOL"; then
15588 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15589else
15590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15591for as_dir in $PATH
15592do
15593 IFS=$as_save_IFS
15594 test -z "$as_dir" && as_dir=.
15595 for ac_exec_ext in '' $ac_executable_extensions; do
15596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15597 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15599 break 2
15600 fi
15601done
15602done
15603
15604fi
15605fi
15606ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15607if test -n "$ac_ct_DLLTOOL"; then
15608 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15609echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15610else
15611 echo "$as_me:$LINENO: result: no" >&5
15612echo "${ECHO_T}no" >&6
15613fi
15614
15615 DLLTOOL=$ac_ct_DLLTOOL
15616else
15617 DLLTOOL="$ac_cv_prog_DLLTOOL"
15618fi
15619
15620 ;;
15621 esac
15622fi
a848cd7e
SC
15623
15624echo "$as_me:$LINENO: checking if make is GNU make" >&5
15625echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15626if test "${wx_cv_prog_makeisgnu+set}" = set; then
15627 echo $ECHO_N "(cached) $ECHO_C" >&6
15628else
15629
15630 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15631 egrep -s GNU > /dev/null); then
15632 wx_cv_prog_makeisgnu="yes"
15633 else
15634 wx_cv_prog_makeisgnu="no"
15635 fi
15636
15637fi
15638echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15639echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15640
15641if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15642 IF_GNU_MAKE=""
15643else
15644 IF_GNU_MAKE="#"
15645fi
15646
15647
15648
15649if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15650echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15651echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15652if test "${wx_cv_prog_makevpath+set}" = set; then
15653 echo $ECHO_N "(cached) $ECHO_C" >&6
15654else
15655
15656cat - << EOF > confMake
15657check : file
15658 cp \$? \$@
15659 cp \$? final_file
15660EOF
15661
15662if test ! -d sub ; then
15663 mkdir sub
15664fi
15665echo dummy > sub/file
15666${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15667RESULT=$?
15668rm -f sub/file check final_file confMake
15669rmdir sub
15670if test "$RESULT" = 0; then
15671 wx_cv_prog_makevpath="yes"
15672else
15673 wx_cv_prog_makevpath="no"
15674fi
15675
15676fi
15677echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15678echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15679
15680if test "x$wx_cv_prog_makevpath" != "xyes"; then
15681{ { echo "$as_me:$LINENO: error:
15682You need a make-utility that is able to use the variable
15683VPATH correctly.
15684If your version of make does not support VPATH correctly,
15685please install GNU-make (possibly as gmake), and start
15686configure with the following command:
15687export MAKE=gmake; ./configure for sh-type shells
15688setenv MAKE gmake; ./configure for csh-type shells
15689Also please do remember to use gmake in this case every time
15690you are trying to compile.
15691" >&5
15692echo "$as_me: error:
15693You need a make-utility that is able to use the variable
15694VPATH correctly.
15695If your version of make does not support VPATH correctly,
15696please install GNU-make (possibly as gmake), and start
15697configure with the following command:
15698export MAKE=gmake; ./configure for sh-type shells
15699setenv MAKE gmake; ./configure for csh-type shells
15700Also please do remember to use gmake in this case every time
15701you are trying to compile.
15702" >&2;}
15703 { (exit 1); exit 1; }; }
15704fi fi
15705echo "$as_me:$LINENO: checking whether ln -s works" >&5
15706echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15707LN_S=$as_ln_s
15708if test "$LN_S" = "ln -s"; then
15709 echo "$as_me:$LINENO: result: yes" >&5
15710echo "${ECHO_T}yes" >&6
15711else
15712 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15713echo "${ECHO_T}no, using $LN_S" >&6
15714fi
15715
15716
bcaab0f9 15717
a848cd7e 15718
2113bc77 15719if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 15720 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
15721fi
15722
4d7ec9f1
DE
15723case "${host}" in
15724 powerpc-*-darwin* )
15725 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15726echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15727 cat >conftest.$ac_ext <<_ACEOF
15728/* confdefs.h. */
15729_ACEOF
15730cat confdefs.h >>conftest.$ac_ext
15731cat >>conftest.$ac_ext <<_ACEOF
15732/* end confdefs.h. */
15733
15734int
15735main ()
15736{
15737#ifndef __POWERPC__
15738 choke me for lack of PowerPC
15739#endif
15740
15741 ;
15742 return 0;
15743}
15744_ACEOF
15745rm -f conftest.$ac_objext
15746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15747 (eval $ac_compile) 2>conftest.er1
15748 ac_status=$?
15749 grep -v '^ *+' conftest.er1 >conftest.err
15750 rm -f conftest.er1
15751 cat conftest.err >&5
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); } &&
479c790c 15754 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15756 (eval $ac_try) 2>&5
15757 ac_status=$?
15758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); }; } &&
15760 { ac_try='test -s conftest.$ac_objext'
15761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15762 (eval $ac_try) 2>&5
15763 ac_status=$?
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); }; }; then
15766 echo "$as_me:$LINENO: result: yes" >&5
15767echo "${ECHO_T}yes" >&6
15768else
15769 echo "$as_me: failed program was:" >&5
15770sed 's/^/| /' conftest.$ac_ext >&5
15771
15772echo "$as_me:$LINENO: result: no" >&5
15773echo "${ECHO_T}no" >&6
15774 cat >>confdefs.h <<\_ACEOF
15775#define __POWERPC__ 1
15776_ACEOF
15777
15778
15779fi
15780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15781 ;;
15782esac
15783
15784case "${host}" in
15785 *-*-darwin* )
4d7ec9f1
DE
15786 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15787echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15788 cat >conftest.$ac_ext <<_ACEOF
15789/* confdefs.h. */
15790_ACEOF
15791cat confdefs.h >>conftest.$ac_ext
15792cat >>conftest.$ac_ext <<_ACEOF
15793/* end confdefs.h. */
15794#include <CoreFoundation/CFBase.h>
15795
15796int
15797main ()
15798{
15799
15800 ;
15801 return 0;
15802}
15803_ACEOF
15804rm -f conftest.$ac_objext
15805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15806 (eval $ac_compile) 2>conftest.er1
15807 ac_status=$?
15808 grep -v '^ *+' conftest.er1 >conftest.err
15809 rm -f conftest.er1
15810 cat conftest.err >&5
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); } &&
479c790c 15813 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15815 (eval $ac_try) 2>&5
15816 ac_status=$?
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); }; } &&
15819 { ac_try='test -s conftest.$ac_objext'
15820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821 (eval $ac_try) 2>&5
15822 ac_status=$?
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; }; then
15825 echo "$as_me:$LINENO: result: yes" >&5
15826echo "${ECHO_T}yes" >&6
15827else
15828 echo "$as_me: failed program was:" >&5
15829sed 's/^/| /' conftest.$ac_ext >&5
15830
15831echo "$as_me:$LINENO: result: no" >&5
15832echo "${ECHO_T}no" >&6
15833 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15834echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15835 cat >conftest.$ac_ext <<_ACEOF
15836/* confdefs.h. */
15837_ACEOF
15838cat confdefs.h >>conftest.$ac_ext
15839cat >>conftest.$ac_ext <<_ACEOF
15840/* end confdefs.h. */
15841#define __CF_USE_FRAMEWORK_INCLUDES__
15842#include <CoreFoundation/CFBase.h>
15843
15844int
15845main ()
15846{
15847
15848 ;
15849 return 0;
15850}
15851_ACEOF
15852rm -f conftest.$ac_objext
15853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15854 (eval $ac_compile) 2>conftest.er1
15855 ac_status=$?
15856 grep -v '^ *+' conftest.er1 >conftest.err
15857 rm -f conftest.er1
15858 cat conftest.err >&5
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); } &&
479c790c 15861 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15863 (eval $ac_try) 2>&5
15864 ac_status=$?
15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); }; } &&
15867 { ac_try='test -s conftest.$ac_objext'
15868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15869 (eval $ac_try) 2>&5
15870 ac_status=$?
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); }; }; then
15873 echo "$as_me:$LINENO: result: yes" >&5
15874echo "${ECHO_T}yes" >&6
c92ad099 15875 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15876else
15877 echo "$as_me: failed program was:" >&5
15878sed 's/^/| /' conftest.$ac_ext >&5
15879
15880{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15881See \`config.log' for more details." >&5
15882echo "$as_me: error: no. CoreFoundation not available.
15883See \`config.log' for more details." >&2;}
15884 { (exit 1); exit 1; }; }
15885
15886fi
15887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15888
15889
15890fi
15891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15892 ;;
15893esac
15894
a848cd7e
SC
15895case "${host}" in
15896 *-pc-os2_emx | *-pc-os2-emx )
6ba87b06
SN
15897 ac_ext=c
15898ac_cpp='$CPP $CPPFLAGS'
15899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15901ac_compiler_gnu=$ac_cv_c_compiler_gnu
15902
15903 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
a848cd7e
SC
15904 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15905echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15906if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15907 echo $ECHO_N "(cached) $ECHO_C" >&6
15908else
15909 ac_check_lib_save_LIBS=$LIBS
15910LIBS="-lcExt $LIBS"
15911cat >conftest.$ac_ext <<_ACEOF
15912/* confdefs.h. */
15913_ACEOF
15914cat confdefs.h >>conftest.$ac_ext
15915cat >>conftest.$ac_ext <<_ACEOF
15916/* end confdefs.h. */
15917
15918/* Override any gcc2 internal prototype to avoid an error. */
15919#ifdef __cplusplus
15920extern "C"
15921#endif
15922/* We use char because int might match the return type of a gcc2
15923 builtin and then its argument prototype would still apply. */
15924char drand48 ();
15925int
15926main ()
15927{
15928drand48 ();
15929 ;
15930 return 0;
15931}
15932_ACEOF
15933rm -f conftest.$ac_objext conftest$ac_exeext
15934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15935 (eval $ac_link) 2>conftest.er1
a848cd7e 15936 ac_status=$?
ac1cb8d3
VS
15937 grep -v '^ *+' conftest.er1 >conftest.err
15938 rm -f conftest.er1
15939 cat conftest.err >&5
a848cd7e
SC
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } &&
479c790c 15942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15945 ac_status=$?
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; } &&
15948 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15951 ac_status=$?
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; }; then
15954 ac_cv_lib_cExt_drand48=yes
15955else
15956 echo "$as_me: failed program was:" >&5
15957sed 's/^/| /' conftest.$ac_ext >&5
15958
15959ac_cv_lib_cExt_drand48=no
15960fi
ac1cb8d3
VS
15961rm -f conftest.err conftest.$ac_objext \
15962 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15963LIBS=$ac_check_lib_save_LIBS
15964fi
15965echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15966echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15967if test $ac_cv_lib_cExt_drand48 = yes; then
15968 LIBS="$LIBS -lcExt"
15969fi
15970
15971 else
15972 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15973 fi
69120ee4
VZ
15974 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15975echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15976if test "${wx_cv_gccversion+set}" = set; then
15977 echo $ECHO_N "(cached) $ECHO_C" >&6
15978else
15979
391a765e
VS
15980 if test "$cross_compiling" = yes; then
15981 wx_cv_gccversion="EMX2"
15982
15983else
15984 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15985/* confdefs.h. */
15986_ACEOF
15987cat confdefs.h >>conftest.$ac_ext
15988cat >>conftest.$ac_ext <<_ACEOF
15989/* end confdefs.h. */
15990
391a765e 15991 #include <stdio.h>
a848cd7e 15992
391a765e
VS
15993 int main()
15994 {
15995 FILE *f=fopen("conftestval", "w");
15996 if (!f) exit(1);
15997 fprintf(f,
a848cd7e 15998 #if (__GNUC__ < 3)
391a765e
VS
15999 "EMX2"
16000 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
16001 "EMX3"
16002 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
16003 "Innotek5"
16004 #else
16005 "Innotek6"
a848cd7e 16006 #endif
5039a2df 16007 );
391a765e
VS
16008 exit(0);
16009 }
a848cd7e 16010
a848cd7e 16011_ACEOF
391a765e
VS
16012rm -f conftest$ac_exeext
16013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16014 (eval $ac_link) 2>&5
ac1cb8d3
VS
16015 ac_status=$?
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 16017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
16018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16019 (eval $ac_try) 2>&5
16020 ac_status=$?
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; }; then
391a765e 16023 wx_cv_gccversion=`cat conftestval`
a848cd7e 16024else
391a765e
VS
16025 echo "$as_me: program exited with status $ac_status" >&5
16026echo "$as_me: failed program was:" >&5
a848cd7e
SC
16027sed 's/^/| /' conftest.$ac_ext >&5
16028
391a765e
VS
16029( exit $ac_status )
16030wx_cv_gccversion="EMX2"
a848cd7e 16031fi
391a765e 16032rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 16033fi
a848cd7e
SC
16034
16035fi
16036echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
16037echo "${ECHO_T}$wx_cv_gccversion" >&6
6ba87b06
SN
16038 ac_ext=cc
16039ac_cpp='$CXXCPP $CPPFLAGS'
16040ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16041ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16042ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16043
391a765e 16044 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
16045 LIBS="$LIBS -lstdcpp"
16046 LDFLAGS="$LDFLAGS -Zsysv-signals"
16047 else
391a765e 16048 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 16049 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
16050 LDFLAGS="$LDFLAGS -Zsysv-signals"
16051 else
16052 LIBS="$LIBS -lstdc++"
16053 fi
16054 fi
94acd38e
DE
16055 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
16056 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
16057echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
16058 wxUSE_OMF=yes
2da0c077 16059 enable_omf=yes
a848cd7e
SC
16060 fi
16061 ;;
16062 *)
16063
95986553 16064 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
16065echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
16066if test "${ac_cv_string_strcasecmp+set}" = set; then
16067 echo $ECHO_N "(cached) $ECHO_C" >&6
16068else
16069
16070 cat >conftest.$ac_ext <<_ACEOF
16071/* confdefs.h. */
16072_ACEOF
16073cat confdefs.h >>conftest.$ac_ext
16074cat >>conftest.$ac_ext <<_ACEOF
16075/* end confdefs.h. */
16076
16077 #include <string.h>
16078
16079int
16080main ()
16081{
16082
16083 strcasecmp("foo", "bar");
16084
16085 ;
16086 return 0;
16087}
16088_ACEOF
16089rm -f conftest.$ac_objext conftest$ac_exeext
16090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 16091 (eval $ac_link) 2>conftest.er1
a848cd7e 16092 ac_status=$?
ac1cb8d3
VS
16093 grep -v '^ *+' conftest.er1 >conftest.err
16094 rm -f conftest.er1
16095 cat conftest.err >&5
a848cd7e
SC
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } &&
479c790c 16098 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16100 (eval $ac_try) 2>&5
16101 ac_status=$?
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); }; } &&
16104 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
16105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16106 (eval $ac_try) 2>&5
16107 ac_status=$?
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); }; }; then
16110 ac_cv_string_strcasecmp=yes
16111else
16112 echo "$as_me: failed program was:" >&5
16113sed 's/^/| /' conftest.$ac_ext >&5
16114
16115ac_cv_string_strcasecmp=no
16116
16117fi
ac1cb8d3
VS
16118rm -f conftest.err conftest.$ac_objext \
16119 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
16120
16121fi
16122echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
16123echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
16124
16125 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
16126 cat >>confdefs.h <<\_ACEOF
16127#define HAVE_STRCASECMP_IN_STRING_H 1
16128_ACEOF
16129
16130 else
16131 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
16132echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
16133if test "${ac_cv_strings_strcasecmp+set}" = set; then
16134 echo $ECHO_N "(cached) $ECHO_C" >&6
16135else
16136
16137 cat >conftest.$ac_ext <<_ACEOF
16138/* confdefs.h. */
16139_ACEOF
16140cat confdefs.h >>conftest.$ac_ext
16141cat >>conftest.$ac_ext <<_ACEOF
16142/* end confdefs.h. */
16143
16144 #include <strings.h>
16145
16146int
16147main ()
16148{
16149
16150 strcasecmp("foo", "bar");
16151
16152 ;
16153 return 0;
16154}
16155_ACEOF
16156rm -f conftest.$ac_objext conftest$ac_exeext
16157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 16158 (eval $ac_link) 2>conftest.er1
a848cd7e 16159 ac_status=$?
ac1cb8d3
VS
16160 grep -v '^ *+' conftest.er1 >conftest.err
16161 rm -f conftest.er1
16162 cat conftest.err >&5
a848cd7e
SC
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); } &&
479c790c 16165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16167 (eval $ac_try) 2>&5
16168 ac_status=$?
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); }; } &&
16171 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
16172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16173 (eval $ac_try) 2>&5
16174 ac_status=$?
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); }; }; then
16177 ac_cv_strings_strcasecmp=yes
16178else
16179 echo "$as_me: failed program was:" >&5
16180sed 's/^/| /' conftest.$ac_ext >&5
16181
16182ac_cv_strings_strcasecmp=no
16183
16184fi
ac1cb8d3
VS
16185rm -f conftest.err conftest.$ac_objext \
16186 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
16187
16188fi
16189echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
16190echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
16191
0c3c69fc 16192 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
16193 cat >>confdefs.h <<\_ACEOF
16194#define HAVE_STRCASECMP_IN_STRINGS_H 1
16195_ACEOF
16196
16197 else
16198 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
16199echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
16200 { (exit 1); exit 1; }; }
16201 fi
16202 fi
16203
a848cd7e
SC
16204 ;;
16205esac
16206
16207
5d7b7554
VZ
16208ac_ext=cc
16209ac_cpp='$CXXCPP $CPPFLAGS'
16210ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16211ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16212ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16213echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16214echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
16215if test -z "$CXXCPP"; then
16216 if test "${ac_cv_prog_CXXCPP+set}" = set; then
16217 echo $ECHO_N "(cached) $ECHO_C" >&6
16218else
16219 # Double quotes because CXXCPP needs to be expanded
16220 for CXXCPP in "$CXX -E" "/lib/cpp"
16221 do
16222 ac_preproc_ok=false
16223for ac_cxx_preproc_warn_flag in '' yes
16224do
16225 # Use a header file that comes with gcc, so configuring glibc
16226 # with a fresh cross-compiler works.
16227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16228 # <limits.h> exists even on freestanding compilers.
16229 # On the NeXT, cc -E runs the code through the compiler's parser,
16230 # not just through cpp. "Syntax error" is here to catch this case.
16231 cat >conftest.$ac_ext <<_ACEOF
16232/* confdefs.h. */
16233_ACEOF
16234cat confdefs.h >>conftest.$ac_ext
16235cat >>conftest.$ac_ext <<_ACEOF
16236/* end confdefs.h. */
16237#ifdef __STDC__
16238# include <limits.h>
16239#else
16240# include <assert.h>
16241#endif
16242 Syntax error
16243_ACEOF
16244if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16246 ac_status=$?
16247 grep -v '^ *+' conftest.er1 >conftest.err
16248 rm -f conftest.er1
16249 cat conftest.err >&5
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); } >/dev/null; then
16252 if test -s conftest.err; then
16253 ac_cpp_err=$ac_cxx_preproc_warn_flag
16254 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16255 else
16256 ac_cpp_err=
16257 fi
16258else
16259 ac_cpp_err=yes
16260fi
16261if test -z "$ac_cpp_err"; then
16262 :
16263else
16264 echo "$as_me: failed program was:" >&5
16265sed 's/^/| /' conftest.$ac_ext >&5
16266
16267 # Broken: fails on valid input.
16268continue
16269fi
16270rm -f conftest.err conftest.$ac_ext
16271
16272 # OK, works on sane cases. Now check whether non-existent headers
16273 # can be detected and how.
16274 cat >conftest.$ac_ext <<_ACEOF
16275/* confdefs.h. */
16276_ACEOF
16277cat confdefs.h >>conftest.$ac_ext
16278cat >>conftest.$ac_ext <<_ACEOF
16279/* end confdefs.h. */
16280#include <ac_nonexistent.h>
16281_ACEOF
16282if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16284 ac_status=$?
16285 grep -v '^ *+' conftest.er1 >conftest.err
16286 rm -f conftest.er1
16287 cat conftest.err >&5
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); } >/dev/null; then
16290 if test -s conftest.err; then
16291 ac_cpp_err=$ac_cxx_preproc_warn_flag
16292 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16293 else
16294 ac_cpp_err=
16295 fi
16296else
16297 ac_cpp_err=yes
16298fi
16299if test -z "$ac_cpp_err"; then
16300 # Broken: success on invalid input.
16301continue
16302else
16303 echo "$as_me: failed program was:" >&5
16304sed 's/^/| /' conftest.$ac_ext >&5
16305
16306 # Passes both tests.
16307ac_preproc_ok=:
16308break
16309fi
16310rm -f conftest.err conftest.$ac_ext
16311
16312done
16313# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16314rm -f conftest.err conftest.$ac_ext
16315if $ac_preproc_ok; then
16316 break
16317fi
16318
16319 done
16320 ac_cv_prog_CXXCPP=$CXXCPP
16321
16322fi
16323 CXXCPP=$ac_cv_prog_CXXCPP
16324else
16325 ac_cv_prog_CXXCPP=$CXXCPP
16326fi
16327echo "$as_me:$LINENO: result: $CXXCPP" >&5
16328echo "${ECHO_T}$CXXCPP" >&6
16329ac_preproc_ok=false
16330for ac_cxx_preproc_warn_flag in '' yes
16331do
16332 # Use a header file that comes with gcc, so configuring glibc
16333 # with a fresh cross-compiler works.
16334 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16335 # <limits.h> exists even on freestanding compilers.
16336 # On the NeXT, cc -E runs the code through the compiler's parser,
16337 # not just through cpp. "Syntax error" is here to catch this case.
16338 cat >conftest.$ac_ext <<_ACEOF
16339/* confdefs.h. */
16340_ACEOF
16341cat confdefs.h >>conftest.$ac_ext
16342cat >>conftest.$ac_ext <<_ACEOF
16343/* end confdefs.h. */
16344#ifdef __STDC__
16345# include <limits.h>
16346#else
16347# include <assert.h>
16348#endif
16349 Syntax error
16350_ACEOF
16351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16353 ac_status=$?
16354 grep -v '^ *+' conftest.er1 >conftest.err
16355 rm -f conftest.er1
16356 cat conftest.err >&5
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); } >/dev/null; then
16359 if test -s conftest.err; then
16360 ac_cpp_err=$ac_cxx_preproc_warn_flag
16361 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16362 else
16363 ac_cpp_err=
16364 fi
16365else
16366 ac_cpp_err=yes
16367fi
16368if test -z "$ac_cpp_err"; then
16369 :
16370else
16371 echo "$as_me: failed program was:" >&5
16372sed 's/^/| /' conftest.$ac_ext >&5
16373
16374 # Broken: fails on valid input.
16375continue
16376fi
16377rm -f conftest.err conftest.$ac_ext
16378
16379 # OK, works on sane cases. Now check whether non-existent headers
16380 # can be detected and how.
16381 cat >conftest.$ac_ext <<_ACEOF
16382/* confdefs.h. */
16383_ACEOF
16384cat confdefs.h >>conftest.$ac_ext
16385cat >>conftest.$ac_ext <<_ACEOF
16386/* end confdefs.h. */
16387#include <ac_nonexistent.h>
16388_ACEOF
16389if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16391 ac_status=$?
16392 grep -v '^ *+' conftest.er1 >conftest.err
16393 rm -f conftest.er1
16394 cat conftest.err >&5
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); } >/dev/null; then
16397 if test -s conftest.err; then
16398 ac_cpp_err=$ac_cxx_preproc_warn_flag
16399 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16400 else
16401 ac_cpp_err=
16402 fi
16403else
16404 ac_cpp_err=yes
16405fi
16406if test -z "$ac_cpp_err"; then
16407 # Broken: success on invalid input.
16408continue
16409else
16410 echo "$as_me: failed program was:" >&5
16411sed 's/^/| /' conftest.$ac_ext >&5
16412
16413 # Passes both tests.
16414ac_preproc_ok=:
16415break
16416fi
16417rm -f conftest.err conftest.$ac_ext
16418
16419done
16420# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16421rm -f conftest.err conftest.$ac_ext
16422if $ac_preproc_ok; then
16423 :
16424else
16425 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16426See \`config.log' for more details." >&5
16427echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16428See \`config.log' for more details." >&2;}
16429 { (exit 1); exit 1; }; }
16430fi
16431
16432ac_ext=cc
16433ac_cpp='$CXXCPP $CPPFLAGS'
16434ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16435ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16436ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16437
16438
a848cd7e
SC
16439echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16440echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16441if test "${ac_cv_header_stdc+set}" = set; then
16442 echo $ECHO_N "(cached) $ECHO_C" >&6
16443else
16444 cat >conftest.$ac_ext <<_ACEOF
16445/* confdefs.h. */
16446_ACEOF
16447cat confdefs.h >>conftest.$ac_ext
16448cat >>conftest.$ac_ext <<_ACEOF
16449/* end confdefs.h. */
16450#include <stdlib.h>
16451#include <stdarg.h>
16452#include <string.h>
16453#include <float.h>
16454
16455int
16456main ()
16457{
16458
16459 ;
16460 return 0;
16461}
16462_ACEOF
16463rm -f conftest.$ac_objext
16464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16465 (eval $ac_compile) 2>conftest.er1
a848cd7e 16466 ac_status=$?
ac1cb8d3
VS
16467 grep -v '^ *+' conftest.er1 >conftest.err
16468 rm -f conftest.er1
16469 cat conftest.err >&5
a848cd7e
SC
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); } &&
479c790c 16472 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16474 (eval $ac_try) 2>&5
16475 ac_status=$?
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); }; } &&
16478 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16480 (eval $ac_try) 2>&5
16481 ac_status=$?
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); }; }; then
16484 ac_cv_header_stdc=yes
16485else
16486 echo "$as_me: failed program was:" >&5
16487sed 's/^/| /' conftest.$ac_ext >&5
16488
16489ac_cv_header_stdc=no
16490fi
ac1cb8d3 16491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16492
16493if test $ac_cv_header_stdc = yes; then
16494 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16495 cat >conftest.$ac_ext <<_ACEOF
16496/* confdefs.h. */
16497_ACEOF
16498cat confdefs.h >>conftest.$ac_ext
16499cat >>conftest.$ac_ext <<_ACEOF
16500/* end confdefs.h. */
16501#include <string.h>
16502
16503_ACEOF
16504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16505 $EGREP "memchr" >/dev/null 2>&1; then
16506 :
16507else
16508 ac_cv_header_stdc=no
16509fi
16510rm -f conftest*
16511
16512fi
16513
16514if test $ac_cv_header_stdc = yes; then
16515 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16516 cat >conftest.$ac_ext <<_ACEOF
16517/* confdefs.h. */
16518_ACEOF
16519cat confdefs.h >>conftest.$ac_ext
16520cat >>conftest.$ac_ext <<_ACEOF
16521/* end confdefs.h. */
16522#include <stdlib.h>
16523
16524_ACEOF
16525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16526 $EGREP "free" >/dev/null 2>&1; then
16527 :
16528else
16529 ac_cv_header_stdc=no
16530fi
16531rm -f conftest*
16532
16533fi
16534
16535if test $ac_cv_header_stdc = yes; then
16536 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16537 if test "$cross_compiling" = yes; then
16538 :
16539else
16540 cat >conftest.$ac_ext <<_ACEOF
16541/* confdefs.h. */
16542_ACEOF
16543cat confdefs.h >>conftest.$ac_ext
16544cat >>conftest.$ac_ext <<_ACEOF
16545/* end confdefs.h. */
16546#include <ctype.h>
16547#if ((' ' & 0x0FF) == 0x020)
16548# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16549# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16550#else
16551# define ISLOWER(c) \
ac1cb8d3
VS
16552 (('a' <= (c) && (c) <= 'i') \
16553 || ('j' <= (c) && (c) <= 'r') \
16554 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
16555# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16556#endif
16557
16558#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16559int
16560main ()
16561{
16562 int i;
16563 for (i = 0; i < 256; i++)
16564 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 16565 || toupper (i) != TOUPPER (i))
a848cd7e
SC
16566 exit(2);
16567 exit (0);
16568}
16569_ACEOF
16570rm -f conftest$ac_exeext
16571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16572 (eval $ac_link) 2>&5
16573 ac_status=$?
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16577 (eval $ac_try) 2>&5
16578 ac_status=$?
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); }; }; then
16581 :
16582else
16583 echo "$as_me: program exited with status $ac_status" >&5
16584echo "$as_me: failed program was:" >&5
16585sed 's/^/| /' conftest.$ac_ext >&5
16586
16587( exit $ac_status )
16588ac_cv_header_stdc=no
16589fi
ac1cb8d3 16590rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16591fi
16592fi
16593fi
16594echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16595echo "${ECHO_T}$ac_cv_header_stdc" >&6
16596if test $ac_cv_header_stdc = yes; then
16597
16598cat >>confdefs.h <<\_ACEOF
16599#define STDC_HEADERS 1
16600_ACEOF
16601
16602fi
16603
16604# On IRIX 5.3, sys/types and inttypes.h are conflicting.
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 16615 inttypes.h stdint.h unistd.h
a848cd7e
SC
16616do
16617as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16618echo "$as_me:$LINENO: checking for $ac_header" >&5
16619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16620if eval "test \"\${$as_ac_Header+set}\" = set"; then
16621 echo $ECHO_N "(cached) $ECHO_C" >&6
16622else
16623 cat >conftest.$ac_ext <<_ACEOF
16624/* confdefs.h. */
16625_ACEOF
16626cat confdefs.h >>conftest.$ac_ext
16627cat >>conftest.$ac_ext <<_ACEOF
16628/* end confdefs.h. */
16629$ac_includes_default
16630
16631#include <$ac_header>
16632_ACEOF
16633rm -f conftest.$ac_objext
16634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16635 (eval $ac_compile) 2>conftest.er1
a848cd7e 16636 ac_status=$?
ac1cb8d3
VS
16637 grep -v '^ *+' conftest.er1 >conftest.err
16638 rm -f conftest.er1
16639 cat conftest.err >&5
a848cd7e
SC
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); } &&
479c790c 16642 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16644 (eval $ac_try) 2>&5
16645 ac_status=$?
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; } &&
16648 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16650 (eval $ac_try) 2>&5
16651 ac_status=$?
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); }; }; then
16654 eval "$as_ac_Header=yes"
16655else
16656 echo "$as_me: failed program was:" >&5
16657sed 's/^/| /' conftest.$ac_ext >&5
16658
16659eval "$as_ac_Header=no"
16660fi
ac1cb8d3 16661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16662fi
16663echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16664echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16665if test `eval echo '${'$as_ac_Header'}'` = yes; then
16666 cat >>confdefs.h <<_ACEOF
16667#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16668_ACEOF
16669
16670fi
16671
16672done
16673
16674
16675
16676for ac_header in stdlib.h
16677do
16678as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16679if eval "test \"\${$as_ac_Header+set}\" = set"; then
16680 echo "$as_me:$LINENO: checking for $ac_header" >&5
16681echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16682if eval "test \"\${$as_ac_Header+set}\" = set"; then
16683 echo $ECHO_N "(cached) $ECHO_C" >&6
16684fi
16685echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16686echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16687else
16688 # Is the header compilable?
16689echo "$as_me:$LINENO: checking $ac_header usability" >&5
16690echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16691cat >conftest.$ac_ext <<_ACEOF
16692/* confdefs.h. */
16693_ACEOF
16694cat confdefs.h >>conftest.$ac_ext
16695cat >>conftest.$ac_ext <<_ACEOF
16696/* end confdefs.h. */
16697$ac_includes_default
16698#include <$ac_header>
16699_ACEOF
16700rm -f conftest.$ac_objext
16701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16702 (eval $ac_compile) 2>conftest.er1
a848cd7e 16703 ac_status=$?
ac1cb8d3
VS
16704 grep -v '^ *+' conftest.er1 >conftest.err
16705 rm -f conftest.er1
16706 cat conftest.err >&5
a848cd7e
SC
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } &&
479c790c 16709 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16711 (eval $ac_try) 2>&5
16712 ac_status=$?
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); }; } &&
16715 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717 (eval $ac_try) 2>&5
16718 ac_status=$?
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; }; then
16721 ac_header_compiler=yes
16722else
16723 echo "$as_me: failed program was:" >&5
16724sed 's/^/| /' conftest.$ac_ext >&5
16725
16726ac_header_compiler=no
16727fi
ac1cb8d3 16728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16729echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16730echo "${ECHO_T}$ac_header_compiler" >&6
16731
16732# Is the header present?
16733echo "$as_me:$LINENO: checking $ac_header presence" >&5
16734echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16735cat >conftest.$ac_ext <<_ACEOF
16736/* confdefs.h. */
16737_ACEOF
16738cat confdefs.h >>conftest.$ac_ext
16739cat >>conftest.$ac_ext <<_ACEOF
16740/* end confdefs.h. */
16741#include <$ac_header>
16742_ACEOF
16743if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16745 ac_status=$?
16746 grep -v '^ *+' conftest.er1 >conftest.err
16747 rm -f conftest.er1
16748 cat conftest.err >&5
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); } >/dev/null; then
16751 if test -s conftest.err; then
5d7b7554
VZ
16752 ac_cpp_err=$ac_cxx_preproc_warn_flag
16753 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16754 else
16755 ac_cpp_err=
16756 fi
16757else
16758 ac_cpp_err=yes
16759fi
16760if test -z "$ac_cpp_err"; then
16761 ac_header_preproc=yes
16762else
16763 echo "$as_me: failed program was:" >&5
16764sed 's/^/| /' conftest.$ac_ext >&5
16765
16766 ac_header_preproc=no
16767fi
16768rm -f conftest.err conftest.$ac_ext
16769echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16770echo "${ECHO_T}$ac_header_preproc" >&6
16771
16772# So? What about this header?
5d7b7554 16773case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16774 yes:no: )
a848cd7e
SC
16775 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16776echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16778echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16779 ac_header_preproc=yes
a848cd7e 16780 ;;
ac1cb8d3 16781 no:yes:* )
a848cd7e
SC
16782 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16783echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16784 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16785echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16786 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16787echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16788 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16789echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16791echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16792 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16793echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16794 (
16795 cat <<\_ASBOX
ac1cb8d3
VS
16796## ----------------------------------------- ##
16797## Report this to wx-dev@lists.wxwidgets.org ##
16798## ----------------------------------------- ##
a848cd7e
SC
16799_ASBOX
16800 ) |
16801 sed "s/^/$as_me: WARNING: /" >&2
16802 ;;
16803esac
16804echo "$as_me:$LINENO: checking for $ac_header" >&5
16805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16806if eval "test \"\${$as_ac_Header+set}\" = set"; then
16807 echo $ECHO_N "(cached) $ECHO_C" >&6
16808else
ac1cb8d3 16809 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16810fi
16811echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16812echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16813
16814fi
16815if test `eval echo '${'$as_ac_Header'}'` = yes; then
16816 cat >>confdefs.h <<_ACEOF
16817#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16818_ACEOF
16819
16820fi
16821
16822done
16823
16824
16825for ac_header in malloc.h
16826do
16827as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16828if eval "test \"\${$as_ac_Header+set}\" = set"; then
16829 echo "$as_me:$LINENO: checking for $ac_header" >&5
16830echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16831if eval "test \"\${$as_ac_Header+set}\" = set"; then
16832 echo $ECHO_N "(cached) $ECHO_C" >&6
16833fi
16834echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16835echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16836else
16837 # Is the header compilable?
16838echo "$as_me:$LINENO: checking $ac_header usability" >&5
16839echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16840cat >conftest.$ac_ext <<_ACEOF
16841/* confdefs.h. */
16842_ACEOF
16843cat confdefs.h >>conftest.$ac_ext
16844cat >>conftest.$ac_ext <<_ACEOF
16845/* end confdefs.h. */
16846$ac_includes_default
16847#include <$ac_header>
16848_ACEOF
16849rm -f conftest.$ac_objext
16850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16851 (eval $ac_compile) 2>conftest.er1
a848cd7e 16852 ac_status=$?
ac1cb8d3
VS
16853 grep -v '^ *+' conftest.er1 >conftest.err
16854 rm -f conftest.er1
16855 cat conftest.err >&5
a848cd7e
SC
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); } &&
479c790c 16858 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860 (eval $ac_try) 2>&5
16861 ac_status=$?
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; } &&
16864 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16866 (eval $ac_try) 2>&5
16867 ac_status=$?
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); }; }; then
16870 ac_header_compiler=yes
16871else
16872 echo "$as_me: failed program was:" >&5
16873sed 's/^/| /' conftest.$ac_ext >&5
16874
16875ac_header_compiler=no
16876fi
ac1cb8d3 16877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16878echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16879echo "${ECHO_T}$ac_header_compiler" >&6
16880
16881# Is the header present?
16882echo "$as_me:$LINENO: checking $ac_header presence" >&5
16883echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16884cat >conftest.$ac_ext <<_ACEOF
16885/* confdefs.h. */
16886_ACEOF
16887cat confdefs.h >>conftest.$ac_ext
16888cat >>conftest.$ac_ext <<_ACEOF
16889/* end confdefs.h. */
16890#include <$ac_header>
16891_ACEOF
16892if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16894 ac_status=$?
16895 grep -v '^ *+' conftest.er1 >conftest.err
16896 rm -f conftest.er1
16897 cat conftest.err >&5
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); } >/dev/null; then
16900 if test -s conftest.err; then
5d7b7554
VZ
16901 ac_cpp_err=$ac_cxx_preproc_warn_flag
16902 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16903 else
16904 ac_cpp_err=
16905 fi
16906else
16907 ac_cpp_err=yes
16908fi
16909if test -z "$ac_cpp_err"; then
16910 ac_header_preproc=yes
16911else
16912 echo "$as_me: failed program was:" >&5
16913sed 's/^/| /' conftest.$ac_ext >&5
16914
16915 ac_header_preproc=no
16916fi
16917rm -f conftest.err conftest.$ac_ext
16918echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16919echo "${ECHO_T}$ac_header_preproc" >&6
16920
16921# So? What about this header?
5d7b7554 16922case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16923 yes:no: )
a848cd7e
SC
16924 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16925echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16927echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16928 ac_header_preproc=yes
a848cd7e 16929 ;;
ac1cb8d3 16930 no:yes:* )
a848cd7e
SC
16931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16932echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16934echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16935 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16936echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16937 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16938echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16940echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16941 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16942echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16943 (
16944 cat <<\_ASBOX
ac1cb8d3
VS
16945## ----------------------------------------- ##
16946## Report this to wx-dev@lists.wxwidgets.org ##
16947## ----------------------------------------- ##
a848cd7e
SC
16948_ASBOX
16949 ) |
16950 sed "s/^/$as_me: WARNING: /" >&2
16951 ;;
16952esac
16953echo "$as_me:$LINENO: checking for $ac_header" >&5
16954echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16955if eval "test \"\${$as_ac_Header+set}\" = set"; then
16956 echo $ECHO_N "(cached) $ECHO_C" >&6
16957else
ac1cb8d3 16958 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16959fi
16960echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16961echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16962
16963fi
16964if test `eval echo '${'$as_ac_Header'}'` = yes; then
16965 cat >>confdefs.h <<_ACEOF
16966#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16967_ACEOF
16968
16969fi
16970
16971done
16972
16973
16974for ac_header in unistd.h
16975do
16976as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16977if eval "test \"\${$as_ac_Header+set}\" = set"; then
16978 echo "$as_me:$LINENO: checking for $ac_header" >&5
16979echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16980if eval "test \"\${$as_ac_Header+set}\" = set"; then
16981 echo $ECHO_N "(cached) $ECHO_C" >&6
16982fi
16983echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16984echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16985else
16986 # Is the header compilable?
16987echo "$as_me:$LINENO: checking $ac_header usability" >&5
16988echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16989cat >conftest.$ac_ext <<_ACEOF
16990/* confdefs.h. */
16991_ACEOF
16992cat confdefs.h >>conftest.$ac_ext
16993cat >>conftest.$ac_ext <<_ACEOF
16994/* end confdefs.h. */
16995$ac_includes_default
16996#include <$ac_header>
16997_ACEOF
16998rm -f conftest.$ac_objext
16999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17000 (eval $ac_compile) 2>conftest.er1
a848cd7e 17001 ac_status=$?
ac1cb8d3
VS
17002 grep -v '^ *+' conftest.er1 >conftest.err
17003 rm -f conftest.er1
17004 cat conftest.err >&5
a848cd7e
SC
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); } &&
479c790c 17007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17009 (eval $ac_try) 2>&5
17010 ac_status=$?
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); }; } &&
17013 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17015 (eval $ac_try) 2>&5
17016 ac_status=$?
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); }; }; then
17019 ac_header_compiler=yes
17020else
17021 echo "$as_me: failed program was:" >&5
17022sed 's/^/| /' conftest.$ac_ext >&5
17023
17024ac_header_compiler=no
17025fi
ac1cb8d3 17026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17027echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17028echo "${ECHO_T}$ac_header_compiler" >&6
17029
17030# Is the header present?
17031echo "$as_me:$LINENO: checking $ac_header presence" >&5
17032echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17033cat >conftest.$ac_ext <<_ACEOF
17034/* confdefs.h. */
17035_ACEOF
17036cat confdefs.h >>conftest.$ac_ext
17037cat >>conftest.$ac_ext <<_ACEOF
17038/* end confdefs.h. */
17039#include <$ac_header>
17040_ACEOF
17041if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17043 ac_status=$?
17044 grep -v '^ *+' conftest.er1 >conftest.err
17045 rm -f conftest.er1
17046 cat conftest.err >&5
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); } >/dev/null; then
17049 if test -s conftest.err; then
5d7b7554
VZ
17050 ac_cpp_err=$ac_cxx_preproc_warn_flag
17051 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17052 else
17053 ac_cpp_err=
17054 fi
17055else
17056 ac_cpp_err=yes
17057fi
17058if test -z "$ac_cpp_err"; then
17059 ac_header_preproc=yes
17060else
17061 echo "$as_me: failed program was:" >&5
17062sed 's/^/| /' conftest.$ac_ext >&5
17063
17064 ac_header_preproc=no
17065fi
17066rm -f conftest.err conftest.$ac_ext
17067echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17068echo "${ECHO_T}$ac_header_preproc" >&6
17069
17070# So? What about this header?
5d7b7554 17071case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17072 yes:no: )
a848cd7e
SC
17073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17074echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17076echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17077 ac_header_preproc=yes
a848cd7e 17078 ;;
ac1cb8d3 17079 no:yes:* )
a848cd7e
SC
17080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17081echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17083echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17085echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17087echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17089echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17091echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17092 (
17093 cat <<\_ASBOX
ac1cb8d3
VS
17094## ----------------------------------------- ##
17095## Report this to wx-dev@lists.wxwidgets.org ##
17096## ----------------------------------------- ##
a848cd7e
SC
17097_ASBOX
17098 ) |
17099 sed "s/^/$as_me: WARNING: /" >&2
17100 ;;
17101esac
17102echo "$as_me:$LINENO: checking for $ac_header" >&5
17103echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17104if eval "test \"\${$as_ac_Header+set}\" = set"; then
17105 echo $ECHO_N "(cached) $ECHO_C" >&6
17106else
ac1cb8d3 17107 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17108fi
17109echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17110echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17111
17112fi
17113if test `eval echo '${'$as_ac_Header'}'` = yes; then
17114 cat >>confdefs.h <<_ACEOF
17115#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17116_ACEOF
17117
17118fi
17119
17120done
17121
17122
17123for ac_header in wchar.h
17124do
17125as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17126if eval "test \"\${$as_ac_Header+set}\" = set"; then
17127 echo "$as_me:$LINENO: checking for $ac_header" >&5
17128echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17129if eval "test \"\${$as_ac_Header+set}\" = set"; then
17130 echo $ECHO_N "(cached) $ECHO_C" >&6
17131fi
17132echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17133echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17134else
17135 # Is the header compilable?
17136echo "$as_me:$LINENO: checking $ac_header usability" >&5
17137echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17138cat >conftest.$ac_ext <<_ACEOF
17139/* confdefs.h. */
17140_ACEOF
17141cat confdefs.h >>conftest.$ac_ext
17142cat >>conftest.$ac_ext <<_ACEOF
17143/* end confdefs.h. */
17144$ac_includes_default
17145#include <$ac_header>
17146_ACEOF
17147rm -f conftest.$ac_objext
17148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17149 (eval $ac_compile) 2>conftest.er1
a848cd7e 17150 ac_status=$?
ac1cb8d3
VS
17151 grep -v '^ *+' conftest.er1 >conftest.err
17152 rm -f conftest.er1
17153 cat conftest.err >&5
a848cd7e
SC
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } &&
479c790c 17156 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17158 (eval $ac_try) 2>&5
17159 ac_status=$?
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); }; } &&
17162 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164 (eval $ac_try) 2>&5
17165 ac_status=$?
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; }; then
17168 ac_header_compiler=yes
17169else
17170 echo "$as_me: failed program was:" >&5
17171sed 's/^/| /' conftest.$ac_ext >&5
17172
17173ac_header_compiler=no
17174fi
ac1cb8d3 17175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17176echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17177echo "${ECHO_T}$ac_header_compiler" >&6
17178
17179# Is the header present?
17180echo "$as_me:$LINENO: checking $ac_header presence" >&5
17181echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17182cat >conftest.$ac_ext <<_ACEOF
17183/* confdefs.h. */
17184_ACEOF
17185cat confdefs.h >>conftest.$ac_ext
17186cat >>conftest.$ac_ext <<_ACEOF
17187/* end confdefs.h. */
17188#include <$ac_header>
17189_ACEOF
17190if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17192 ac_status=$?
17193 grep -v '^ *+' conftest.er1 >conftest.err
17194 rm -f conftest.er1
17195 cat conftest.err >&5
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); } >/dev/null; then
17198 if test -s conftest.err; then
5d7b7554
VZ
17199 ac_cpp_err=$ac_cxx_preproc_warn_flag
17200 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17201 else
17202 ac_cpp_err=
17203 fi
17204else
17205 ac_cpp_err=yes
17206fi
17207if test -z "$ac_cpp_err"; then
17208 ac_header_preproc=yes
17209else
17210 echo "$as_me: failed program was:" >&5
17211sed 's/^/| /' conftest.$ac_ext >&5
17212
17213 ac_header_preproc=no
17214fi
17215rm -f conftest.err conftest.$ac_ext
17216echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17217echo "${ECHO_T}$ac_header_preproc" >&6
17218
17219# So? What about this header?
5d7b7554 17220case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17221 yes:no: )
a848cd7e
SC
17222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17223echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17225echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17226 ac_header_preproc=yes
a848cd7e 17227 ;;
ac1cb8d3 17228 no:yes:* )
a848cd7e
SC
17229 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17230echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17231 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17232echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17233 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17234echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17235 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17236echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17238echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17239 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17240echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17241 (
17242 cat <<\_ASBOX
ac1cb8d3
VS
17243## ----------------------------------------- ##
17244## Report this to wx-dev@lists.wxwidgets.org ##
17245## ----------------------------------------- ##
a848cd7e
SC
17246_ASBOX
17247 ) |
17248 sed "s/^/$as_me: WARNING: /" >&2
17249 ;;
17250esac
17251echo "$as_me:$LINENO: checking for $ac_header" >&5
17252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17253if eval "test \"\${$as_ac_Header+set}\" = set"; then
17254 echo $ECHO_N "(cached) $ECHO_C" >&6
17255else
ac1cb8d3 17256 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17257fi
17258echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17259echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17260
17261fi
17262if test `eval echo '${'$as_ac_Header'}'` = yes; then
17263 cat >>confdefs.h <<_ACEOF
17264#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17265_ACEOF
17266
17267fi
17268
17269done
17270
17271
17272if test "$ac_cv_header_wchar_h" != "yes"; then
17273
17274for ac_header in wcstr.h
17275do
17276as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17277if eval "test \"\${$as_ac_Header+set}\" = set"; then
17278 echo "$as_me:$LINENO: checking for $ac_header" >&5
17279echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17280if eval "test \"\${$as_ac_Header+set}\" = set"; then
17281 echo $ECHO_N "(cached) $ECHO_C" >&6
17282fi
17283echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17284echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17285else
17286 # Is the header compilable?
17287echo "$as_me:$LINENO: checking $ac_header usability" >&5
17288echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17289cat >conftest.$ac_ext <<_ACEOF
17290/* confdefs.h. */
17291_ACEOF
17292cat confdefs.h >>conftest.$ac_ext
17293cat >>conftest.$ac_ext <<_ACEOF
17294/* end confdefs.h. */
17295$ac_includes_default
17296#include <$ac_header>
17297_ACEOF
17298rm -f conftest.$ac_objext
17299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17300 (eval $ac_compile) 2>conftest.er1
a848cd7e 17301 ac_status=$?
ac1cb8d3
VS
17302 grep -v '^ *+' conftest.er1 >conftest.err
17303 rm -f conftest.er1
17304 cat conftest.err >&5
a848cd7e
SC
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); } &&
479c790c 17307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17309 (eval $ac_try) 2>&5
17310 ac_status=$?
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); }; } &&
17313 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17315 (eval $ac_try) 2>&5
17316 ac_status=$?
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); }; }; then
17319 ac_header_compiler=yes
17320else
17321 echo "$as_me: failed program was:" >&5
17322sed 's/^/| /' conftest.$ac_ext >&5
17323
17324ac_header_compiler=no
17325fi
ac1cb8d3 17326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17327echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17328echo "${ECHO_T}$ac_header_compiler" >&6
17329
17330# Is the header present?
17331echo "$as_me:$LINENO: checking $ac_header presence" >&5
17332echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17333cat >conftest.$ac_ext <<_ACEOF
17334/* confdefs.h. */
17335_ACEOF
17336cat confdefs.h >>conftest.$ac_ext
17337cat >>conftest.$ac_ext <<_ACEOF
17338/* end confdefs.h. */
17339#include <$ac_header>
17340_ACEOF
17341if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17343 ac_status=$?
17344 grep -v '^ *+' conftest.er1 >conftest.err
17345 rm -f conftest.er1
17346 cat conftest.err >&5
17347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); } >/dev/null; then
17349 if test -s conftest.err; then
5d7b7554
VZ
17350 ac_cpp_err=$ac_cxx_preproc_warn_flag
17351 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17352 else
17353 ac_cpp_err=
17354 fi
17355else
17356 ac_cpp_err=yes
17357fi
17358if test -z "$ac_cpp_err"; then
17359 ac_header_preproc=yes
17360else
17361 echo "$as_me: failed program was:" >&5
17362sed 's/^/| /' conftest.$ac_ext >&5
17363
17364 ac_header_preproc=no
17365fi
17366rm -f conftest.err conftest.$ac_ext
17367echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17368echo "${ECHO_T}$ac_header_preproc" >&6
17369
17370# So? What about this header?
5d7b7554 17371case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17372 yes:no: )
a848cd7e
SC
17373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17374echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17376echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17377 ac_header_preproc=yes
a848cd7e 17378 ;;
ac1cb8d3 17379 no:yes:* )
a848cd7e
SC
17380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17381echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17383echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17385echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17387echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17389echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17391echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17392 (
17393 cat <<\_ASBOX
ac1cb8d3
VS
17394## ----------------------------------------- ##
17395## Report this to wx-dev@lists.wxwidgets.org ##
17396## ----------------------------------------- ##
a848cd7e
SC
17397_ASBOX
17398 ) |
17399 sed "s/^/$as_me: WARNING: /" >&2
17400 ;;
17401esac
17402echo "$as_me:$LINENO: checking for $ac_header" >&5
17403echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17404if eval "test \"\${$as_ac_Header+set}\" = set"; then
17405 echo $ECHO_N "(cached) $ECHO_C" >&6
17406else
ac1cb8d3 17407 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17408fi
17409echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17410echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17411
17412fi
17413if test `eval echo '${'$as_ac_Header'}'` = yes; then
17414 cat >>confdefs.h <<_ACEOF
17415#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17416_ACEOF
17417
17418fi
17419
17420done
17421
17422fi
17423
17424
17425for ac_header in fnmatch.h
17426do
17427as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17428if eval "test \"\${$as_ac_Header+set}\" = set"; then
17429 echo "$as_me:$LINENO: checking for $ac_header" >&5
17430echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17431if eval "test \"\${$as_ac_Header+set}\" = set"; then
17432 echo $ECHO_N "(cached) $ECHO_C" >&6
17433fi
17434echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17435echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17436else
17437 # Is the header compilable?
17438echo "$as_me:$LINENO: checking $ac_header usability" >&5
17439echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17440cat >conftest.$ac_ext <<_ACEOF
17441/* confdefs.h. */
17442_ACEOF
17443cat confdefs.h >>conftest.$ac_ext
17444cat >>conftest.$ac_ext <<_ACEOF
17445/* end confdefs.h. */
17446$ac_includes_default
17447#include <$ac_header>
17448_ACEOF
17449rm -f conftest.$ac_objext
17450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17451 (eval $ac_compile) 2>conftest.er1
a848cd7e 17452 ac_status=$?
ac1cb8d3
VS
17453 grep -v '^ *+' conftest.er1 >conftest.err
17454 rm -f conftest.er1
17455 cat conftest.err >&5
a848cd7e
SC
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); } &&
479c790c 17458 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17460 (eval $ac_try) 2>&5
17461 ac_status=$?
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; } &&
17464 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466 (eval $ac_try) 2>&5
17467 ac_status=$?
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; }; then
17470 ac_header_compiler=yes
17471else
17472 echo "$as_me: failed program was:" >&5
17473sed 's/^/| /' conftest.$ac_ext >&5
17474
17475ac_header_compiler=no
17476fi
ac1cb8d3 17477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17478echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17479echo "${ECHO_T}$ac_header_compiler" >&6
17480
17481# Is the header present?
17482echo "$as_me:$LINENO: checking $ac_header presence" >&5
17483echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17484cat >conftest.$ac_ext <<_ACEOF
17485/* confdefs.h. */
17486_ACEOF
17487cat confdefs.h >>conftest.$ac_ext
17488cat >>conftest.$ac_ext <<_ACEOF
17489/* end confdefs.h. */
17490#include <$ac_header>
17491_ACEOF
17492if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17494 ac_status=$?
17495 grep -v '^ *+' conftest.er1 >conftest.err
17496 rm -f conftest.er1
17497 cat conftest.err >&5
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); } >/dev/null; then
17500 if test -s conftest.err; then
5d7b7554
VZ
17501 ac_cpp_err=$ac_cxx_preproc_warn_flag
17502 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17503 else
17504 ac_cpp_err=
17505 fi
17506else
17507 ac_cpp_err=yes
17508fi
17509if test -z "$ac_cpp_err"; then
17510 ac_header_preproc=yes
17511else
17512 echo "$as_me: failed program was:" >&5
17513sed 's/^/| /' conftest.$ac_ext >&5
17514
17515 ac_header_preproc=no
17516fi
17517rm -f conftest.err conftest.$ac_ext
17518echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17519echo "${ECHO_T}$ac_header_preproc" >&6
17520
17521# So? What about this header?
5d7b7554 17522case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17523 yes:no: )
a848cd7e
SC
17524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17525echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17527echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17528 ac_header_preproc=yes
a848cd7e 17529 ;;
ac1cb8d3 17530 no:yes:* )
a848cd7e
SC
17531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17532echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17534echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17536echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17538echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17540echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17542echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17543 (
17544 cat <<\_ASBOX
ac1cb8d3
VS
17545## ----------------------------------------- ##
17546## Report this to wx-dev@lists.wxwidgets.org ##
17547## ----------------------------------------- ##
a848cd7e
SC
17548_ASBOX
17549 ) |
17550 sed "s/^/$as_me: WARNING: /" >&2
17551 ;;
17552esac
17553echo "$as_me:$LINENO: checking for $ac_header" >&5
17554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17555if eval "test \"\${$as_ac_Header+set}\" = set"; then
17556 echo $ECHO_N "(cached) $ECHO_C" >&6
17557else
ac1cb8d3 17558 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17559fi
17560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17561echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17562
17563fi
17564if test `eval echo '${'$as_ac_Header'}'` = yes; then
17565 cat >>confdefs.h <<_ACEOF
17566#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17567_ACEOF
17568
17569fi
17570
17571done
17572
17573
a848cd7e
SC
17574
17575for ac_header in langinfo.h
17576do
17577as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17578if eval "test \"\${$as_ac_Header+set}\" = set"; then
17579 echo "$as_me:$LINENO: checking for $ac_header" >&5
17580echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17581if eval "test \"\${$as_ac_Header+set}\" = set"; then
17582 echo $ECHO_N "(cached) $ECHO_C" >&6
17583fi
17584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17585echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17586else
17587 # Is the header compilable?
17588echo "$as_me:$LINENO: checking $ac_header usability" >&5
17589echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17590cat >conftest.$ac_ext <<_ACEOF
17591/* confdefs.h. */
17592_ACEOF
17593cat confdefs.h >>conftest.$ac_ext
17594cat >>conftest.$ac_ext <<_ACEOF
17595/* end confdefs.h. */
17596$ac_includes_default
17597#include <$ac_header>
17598_ACEOF
17599rm -f conftest.$ac_objext
17600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17601 (eval $ac_compile) 2>conftest.er1
a848cd7e 17602 ac_status=$?
ac1cb8d3
VS
17603 grep -v '^ *+' conftest.er1 >conftest.err
17604 rm -f conftest.er1
17605 cat conftest.err >&5
a848cd7e
SC
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); } &&
479c790c 17608 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17610 (eval $ac_try) 2>&5
17611 ac_status=$?
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); }; } &&
17614 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17616 (eval $ac_try) 2>&5
17617 ac_status=$?
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); }; }; then
17620 ac_header_compiler=yes
17621else
17622 echo "$as_me: failed program was:" >&5
17623sed 's/^/| /' conftest.$ac_ext >&5
17624
17625ac_header_compiler=no
17626fi
ac1cb8d3 17627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17628echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17629echo "${ECHO_T}$ac_header_compiler" >&6
17630
17631# Is the header present?
17632echo "$as_me:$LINENO: checking $ac_header presence" >&5
17633echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17634cat >conftest.$ac_ext <<_ACEOF
17635/* confdefs.h. */
17636_ACEOF
17637cat confdefs.h >>conftest.$ac_ext
17638cat >>conftest.$ac_ext <<_ACEOF
17639/* end confdefs.h. */
17640#include <$ac_header>
17641_ACEOF
17642if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17644 ac_status=$?
17645 grep -v '^ *+' conftest.er1 >conftest.err
17646 rm -f conftest.er1
17647 cat conftest.err >&5
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); } >/dev/null; then
17650 if test -s conftest.err; then
5d7b7554
VZ
17651 ac_cpp_err=$ac_cxx_preproc_warn_flag
17652 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17653 else
17654 ac_cpp_err=
17655 fi
17656else
17657 ac_cpp_err=yes
17658fi
17659if test -z "$ac_cpp_err"; then
17660 ac_header_preproc=yes
17661else
17662 echo "$as_me: failed program was:" >&5
17663sed 's/^/| /' conftest.$ac_ext >&5
17664
17665 ac_header_preproc=no
17666fi
17667rm -f conftest.err conftest.$ac_ext
17668echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17669echo "${ECHO_T}$ac_header_preproc" >&6
17670
17671# So? What about this header?
5d7b7554 17672case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17673 yes:no: )
a848cd7e
SC
17674 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17675echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17677echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17678 ac_header_preproc=yes
a848cd7e 17679 ;;
ac1cb8d3 17680 no:yes:* )
a848cd7e
SC
17681 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17682echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17683 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17684echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17685 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17686echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17687 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17688echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17690echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17691 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17692echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17693 (
17694 cat <<\_ASBOX
ac1cb8d3
VS
17695## ----------------------------------------- ##
17696## Report this to wx-dev@lists.wxwidgets.org ##
17697## ----------------------------------------- ##
a848cd7e
SC
17698_ASBOX
17699 ) |
17700 sed "s/^/$as_me: WARNING: /" >&2
17701 ;;
17702esac
17703echo "$as_me:$LINENO: checking for $ac_header" >&5
17704echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17705if eval "test \"\${$as_ac_Header+set}\" = set"; then
17706 echo $ECHO_N "(cached) $ECHO_C" >&6
17707else
ac1cb8d3 17708 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17709fi
17710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17711echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17712
17713fi
17714if test `eval echo '${'$as_ac_Header'}'` = yes; then
17715 cat >>confdefs.h <<_ACEOF
17716#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17717_ACEOF
17718
17719fi
17720
17721done
17722
17723
17724case "${host}" in
17725 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
17726 if test $ac_cv_header_langinfo_h = "yes" \
17727 -a \( "$wx_cv_gccversion" = "EMX2" \
17728 -o "$wx_cv_gccversion" = "EMX3" \
17729 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
17730 LIBS="$LIBS -lintl"
17731 fi
17732 ;;
17733esac
17734
bc023abb
MW
17735if test "$USE_UNIX" = 1 ; then
17736
17737for ac_header in sys/select.h
17738do
17739as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17740if eval "test \"\${$as_ac_Header+set}\" = set"; then
17741 echo "$as_me:$LINENO: checking for $ac_header" >&5
17742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17743if eval "test \"\${$as_ac_Header+set}\" = set"; then
17744 echo $ECHO_N "(cached) $ECHO_C" >&6
17745fi
17746echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17747echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17748else
17749 # Is the header compilable?
17750echo "$as_me:$LINENO: checking $ac_header usability" >&5
17751echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17752cat >conftest.$ac_ext <<_ACEOF
17753/* confdefs.h. */
17754_ACEOF
17755cat confdefs.h >>conftest.$ac_ext
17756cat >>conftest.$ac_ext <<_ACEOF
17757/* end confdefs.h. */
17758$ac_includes_default
17759#include <$ac_header>
17760_ACEOF
17761rm -f conftest.$ac_objext
17762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17763 (eval $ac_compile) 2>conftest.er1
17764 ac_status=$?
17765 grep -v '^ *+' conftest.er1 >conftest.err
17766 rm -f conftest.er1
17767 cat conftest.err >&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); } &&
479c790c 17770 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
bc023abb
MW
17771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772 (eval $ac_try) 2>&5
17773 ac_status=$?
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; } &&
17776 { ac_try='test -s conftest.$ac_objext'
17777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17778 (eval $ac_try) 2>&5
17779 ac_status=$?
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); }; }; then
17782 ac_header_compiler=yes
17783else
17784 echo "$as_me: failed program was:" >&5
17785sed 's/^/| /' conftest.$ac_ext >&5
17786
17787ac_header_compiler=no
17788fi
17789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17790echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17791echo "${ECHO_T}$ac_header_compiler" >&6
17792
17793# Is the header present?
17794echo "$as_me:$LINENO: checking $ac_header presence" >&5
17795echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17796cat >conftest.$ac_ext <<_ACEOF
17797/* confdefs.h. */
17798_ACEOF
17799cat confdefs.h >>conftest.$ac_ext
17800cat >>conftest.$ac_ext <<_ACEOF
17801/* end confdefs.h. */
17802#include <$ac_header>
17803_ACEOF
17804if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17806 ac_status=$?
17807 grep -v '^ *+' conftest.er1 >conftest.err
17808 rm -f conftest.er1
17809 cat conftest.err >&5
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); } >/dev/null; then
17812 if test -s conftest.err; then
17813 ac_cpp_err=$ac_cxx_preproc_warn_flag
17814 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17815 else
17816 ac_cpp_err=
17817 fi
17818else
17819 ac_cpp_err=yes
17820fi
17821if test -z "$ac_cpp_err"; then
17822 ac_header_preproc=yes
17823else
17824 echo "$as_me: failed program was:" >&5
17825sed 's/^/| /' conftest.$ac_ext >&5
17826
17827 ac_header_preproc=no
17828fi
17829rm -f conftest.err conftest.$ac_ext
17830echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17831echo "${ECHO_T}$ac_header_preproc" >&6
17832
17833# So? What about this header?
17834case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17835 yes:no: )
17836 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17837echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17839echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17840 ac_header_preproc=yes
17841 ;;
17842 no:yes:* )
17843 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17844echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17845 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17846echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17847 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17848echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17849 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17850echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17852echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17853 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17854echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17855 (
17856 cat <<\_ASBOX
17857## ----------------------------------------- ##
17858## Report this to wx-dev@lists.wxwidgets.org ##
17859## ----------------------------------------- ##
17860_ASBOX
17861 ) |
17862 sed "s/^/$as_me: WARNING: /" >&2
17863 ;;
17864esac
17865echo "$as_me:$LINENO: checking for $ac_header" >&5
17866echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17867if eval "test \"\${$as_ac_Header+set}\" = set"; then
17868 echo $ECHO_N "(cached) $ECHO_C" >&6
17869else
17870 eval "$as_ac_Header=\$ac_header_preproc"
17871fi
17872echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17873echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17874
17875fi
17876if test `eval echo '${'$as_ac_Header'}'` = yes; then
17877 cat >>confdefs.h <<_ACEOF
17878#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17879_ACEOF
17880
17881fi
17882
17883done
17884
17885fi
17886
a848cd7e
SC
17887
17888echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17889echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17890if test "${ac_cv_c_const+set}" = set; then
17891 echo $ECHO_N "(cached) $ECHO_C" >&6
17892else
17893 cat >conftest.$ac_ext <<_ACEOF
17894/* confdefs.h. */
17895_ACEOF
17896cat confdefs.h >>conftest.$ac_ext
17897cat >>conftest.$ac_ext <<_ACEOF
17898/* end confdefs.h. */
17899
17900int
17901main ()
17902{
17903/* FIXME: Include the comments suggested by Paul. */
17904#ifndef __cplusplus
17905 /* Ultrix mips cc rejects this. */
17906 typedef int charset[2];
17907 const charset x;
17908 /* SunOS 4.1.1 cc rejects this. */
17909 char const *const *ccp;
17910 char **p;
17911 /* NEC SVR4.0.2 mips cc rejects this. */
17912 struct point {int x, y;};
17913 static struct point const zero = {0,0};
17914 /* AIX XL C 1.02.0.0 rejects this.
17915 It does not let you subtract one const X* pointer from another in
17916 an arm of an if-expression whose if-part is not a constant
17917 expression */
17918 const char *g = "string";
17919 ccp = &g + (g ? g-g : 0);
17920 /* HPUX 7.0 cc rejects these. */
17921 ++ccp;
17922 p = (char**) ccp;
17923 ccp = (char const *const *) p;
17924 { /* SCO 3.2v4 cc rejects this. */
17925 char *t;
17926 char const *s = 0 ? (char *) 0 : (char const *) 0;
17927
17928 *t++ = 0;
17929 }
17930 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17931 int x[] = {25, 17};
17932 const int *foo = &x[0];
17933 ++foo;
17934 }
17935 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17936 typedef const int *iptr;
17937 iptr p = 0;
17938 ++p;
17939 }
17940 { /* AIX XL C 1.02.0.0 rejects this saying
17941 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17942 struct s { int j; const int *ap[3]; };
17943 struct s *b; b->j = 5;
17944 }
17945 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17946 const int foo = 10;
17947 }
17948#endif
17949
17950 ;
17951 return 0;
17952}
17953_ACEOF
17954rm -f conftest.$ac_objext
17955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17956 (eval $ac_compile) 2>conftest.er1
a848cd7e 17957 ac_status=$?
ac1cb8d3
VS
17958 grep -v '^ *+' conftest.er1 >conftest.err
17959 rm -f conftest.er1
17960 cat conftest.err >&5
a848cd7e
SC
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); } &&
479c790c 17963 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17965 (eval $ac_try) 2>&5
17966 ac_status=$?
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); }; } &&
17969 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17971 (eval $ac_try) 2>&5
17972 ac_status=$?
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); }; }; then
17975 ac_cv_c_const=yes
17976else
17977 echo "$as_me: failed program was:" >&5
17978sed 's/^/| /' conftest.$ac_ext >&5
17979
17980ac_cv_c_const=no
17981fi
ac1cb8d3 17982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17983fi
17984echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17985echo "${ECHO_T}$ac_cv_c_const" >&6
17986if test $ac_cv_c_const = no; then
17987
17988cat >>confdefs.h <<\_ACEOF
17989#define const
17990_ACEOF
17991
17992fi
17993
17994echo "$as_me:$LINENO: checking for inline" >&5
17995echo $ECHO_N "checking for inline... $ECHO_C" >&6
17996if test "${ac_cv_c_inline+set}" = set; then
17997 echo $ECHO_N "(cached) $ECHO_C" >&6
17998else
17999 ac_cv_c_inline=no
18000for ac_kw in inline __inline__ __inline; do
18001 cat >conftest.$ac_ext <<_ACEOF
18002/* confdefs.h. */
18003_ACEOF
18004cat confdefs.h >>conftest.$ac_ext
18005cat >>conftest.$ac_ext <<_ACEOF
18006/* end confdefs.h. */
18007#ifndef __cplusplus
18008typedef int foo_t;
18009static $ac_kw foo_t static_foo () {return 0; }
18010$ac_kw foo_t foo () {return 0; }
18011#endif
18012
18013_ACEOF
18014rm -f conftest.$ac_objext
18015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18016 (eval $ac_compile) 2>conftest.er1
a848cd7e 18017 ac_status=$?
ac1cb8d3
VS
18018 grep -v '^ *+' conftest.er1 >conftest.err
18019 rm -f conftest.er1
18020 cat conftest.err >&5
a848cd7e
SC
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); } &&
479c790c 18023 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18025 (eval $ac_try) 2>&5
18026 ac_status=$?
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); }; } &&
18029 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18031 (eval $ac_try) 2>&5
18032 ac_status=$?
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); }; }; then
18035 ac_cv_c_inline=$ac_kw; break
18036else
18037 echo "$as_me: failed program was:" >&5
18038sed 's/^/| /' conftest.$ac_ext >&5
18039
18040fi
ac1cb8d3 18041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18042done
18043
18044fi
18045echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18046echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
18047
18048
a848cd7e
SC
18049case $ac_cv_c_inline in
18050 inline | yes) ;;
ac1cb8d3
VS
18051 *)
18052 case $ac_cv_c_inline in
18053 no) ac_val=;;
18054 *) ac_val=$ac_cv_c_inline;;
18055 esac
18056 cat >>confdefs.h <<_ACEOF
18057#ifndef __cplusplus
18058#define inline $ac_val
18059#endif
de59c161 18060_ACEOF
ac1cb8d3 18061 ;;
a848cd7e
SC
18062esac
18063
18064
18065echo "$as_me:$LINENO: checking for char" >&5
18066echo $ECHO_N "checking for char... $ECHO_C" >&6
18067if test "${ac_cv_type_char+set}" = set; then
18068 echo $ECHO_N "(cached) $ECHO_C" >&6
18069else
18070 cat >conftest.$ac_ext <<_ACEOF
18071/* confdefs.h. */
18072_ACEOF
18073cat confdefs.h >>conftest.$ac_ext
18074cat >>conftest.$ac_ext <<_ACEOF
18075/* end confdefs.h. */
18076$ac_includes_default
18077int
18078main ()
18079{
18080if ((char *) 0)
18081 return 0;
18082if (sizeof (char))
18083 return 0;
18084 ;
18085 return 0;
18086}
18087_ACEOF
18088rm -f conftest.$ac_objext
18089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18090 (eval $ac_compile) 2>conftest.er1
a848cd7e 18091 ac_status=$?
ac1cb8d3
VS
18092 grep -v '^ *+' conftest.er1 >conftest.err
18093 rm -f conftest.er1
18094 cat conftest.err >&5
a848cd7e
SC
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); } &&
479c790c 18097 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18099 (eval $ac_try) 2>&5
18100 ac_status=$?
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); }; } &&
18103 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18105 (eval $ac_try) 2>&5
18106 ac_status=$?
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); }; }; then
18109 ac_cv_type_char=yes
18110else
18111 echo "$as_me: failed program was:" >&5
18112sed 's/^/| /' conftest.$ac_ext >&5
18113
18114ac_cv_type_char=no
18115fi
ac1cb8d3 18116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18117fi
18118echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
18119echo "${ECHO_T}$ac_cv_type_char" >&6
18120
18121echo "$as_me:$LINENO: checking size of char" >&5
18122echo $ECHO_N "checking size of char... $ECHO_C" >&6
18123if test "${ac_cv_sizeof_char+set}" = set; then
18124 echo $ECHO_N "(cached) $ECHO_C" >&6
18125else
18126 if test "$ac_cv_type_char" = yes; then
18127 # The cast to unsigned long works around a bug in the HP C Compiler
18128 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18129 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18130 # This bug is HP SR number 8606223364.
18131 if test "$cross_compiling" = yes; then
18132 # Depending upon the size, compute the lo and hi bounds.
18133cat >conftest.$ac_ext <<_ACEOF
18134/* confdefs.h. */
18135_ACEOF
18136cat confdefs.h >>conftest.$ac_ext
18137cat >>conftest.$ac_ext <<_ACEOF
18138/* end confdefs.h. */
18139$ac_includes_default
18140int
18141main ()
18142{
18143static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
18144test_array [0] = 0
18145
18146 ;
18147 return 0;
18148}
18149_ACEOF
18150rm -f conftest.$ac_objext
18151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18152 (eval $ac_compile) 2>conftest.er1
a848cd7e 18153 ac_status=$?
ac1cb8d3
VS
18154 grep -v '^ *+' conftest.er1 >conftest.err
18155 rm -f conftest.er1
18156 cat conftest.err >&5
a848cd7e
SC
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); } &&
479c790c 18159 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18161 (eval $ac_try) 2>&5
18162 ac_status=$?
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; } &&
18165 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18167 (eval $ac_try) 2>&5
18168 ac_status=$?
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); }; }; then
18171 ac_lo=0 ac_mid=0
18172 while :; do
18173 cat >conftest.$ac_ext <<_ACEOF
18174/* confdefs.h. */
18175_ACEOF
18176cat confdefs.h >>conftest.$ac_ext
18177cat >>conftest.$ac_ext <<_ACEOF
18178/* end confdefs.h. */
18179$ac_includes_default
18180int
18181main ()
18182{
18183static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18184test_array [0] = 0
18185
18186 ;
18187 return 0;
18188}
18189_ACEOF
18190rm -f conftest.$ac_objext
18191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18192 (eval $ac_compile) 2>conftest.er1
a848cd7e 18193 ac_status=$?
ac1cb8d3
VS
18194 grep -v '^ *+' conftest.er1 >conftest.err
18195 rm -f conftest.er1
18196 cat conftest.err >&5
a848cd7e
SC
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); } &&
479c790c 18199 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18201 (eval $ac_try) 2>&5
18202 ac_status=$?
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); }; } &&
18205 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18207 (eval $ac_try) 2>&5
18208 ac_status=$?
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; }; then
18211 ac_hi=$ac_mid; break
18212else
18213 echo "$as_me: failed program was:" >&5
18214sed 's/^/| /' conftest.$ac_ext >&5
18215
18216ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18217 if test $ac_lo -le $ac_mid; then
18218 ac_lo= ac_hi=
18219 break
18220 fi
18221 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18222fi
ac1cb8d3 18223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18224 done
18225else
18226 echo "$as_me: failed program was:" >&5
18227sed 's/^/| /' conftest.$ac_ext >&5
18228
18229cat >conftest.$ac_ext <<_ACEOF
18230/* confdefs.h. */
18231_ACEOF
18232cat confdefs.h >>conftest.$ac_ext
18233cat >>conftest.$ac_ext <<_ACEOF
18234/* end confdefs.h. */
18235$ac_includes_default
18236int
18237main ()
18238{
18239static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
18240test_array [0] = 0
18241
18242 ;
18243 return 0;
18244}
18245_ACEOF
18246rm -f conftest.$ac_objext
18247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18248 (eval $ac_compile) 2>conftest.er1
a848cd7e 18249 ac_status=$?
ac1cb8d3
VS
18250 grep -v '^ *+' conftest.er1 >conftest.err
18251 rm -f conftest.er1
18252 cat conftest.err >&5
a848cd7e
SC
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); } &&
479c790c 18255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18257 (eval $ac_try) 2>&5
18258 ac_status=$?
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); }; } &&
18261 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18263 (eval $ac_try) 2>&5
18264 ac_status=$?
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; }; then
18267 ac_hi=-1 ac_mid=-1
18268 while :; do
18269 cat >conftest.$ac_ext <<_ACEOF
18270/* confdefs.h. */
18271_ACEOF
18272cat confdefs.h >>conftest.$ac_ext
18273cat >>conftest.$ac_ext <<_ACEOF
18274/* end confdefs.h. */
18275$ac_includes_default
18276int
18277main ()
18278{
18279static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
18280test_array [0] = 0
18281
18282 ;
18283 return 0;
18284}
18285_ACEOF
18286rm -f conftest.$ac_objext
18287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18288 (eval $ac_compile) 2>conftest.er1
a848cd7e 18289 ac_status=$?
ac1cb8d3
VS
18290 grep -v '^ *+' conftest.er1 >conftest.err
18291 rm -f conftest.er1
18292 cat conftest.err >&5
a848cd7e
SC
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); } &&
479c790c 18295 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18297 (eval $ac_try) 2>&5
18298 ac_status=$?
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); }; } &&
18301 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303 (eval $ac_try) 2>&5
18304 ac_status=$?
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; }; then
18307 ac_lo=$ac_mid; break
18308else
18309 echo "$as_me: failed program was:" >&5
18310sed 's/^/| /' conftest.$ac_ext >&5
18311
18312ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18313 if test $ac_mid -le $ac_hi; then
18314 ac_lo= ac_hi=
18315 break
18316 fi
18317 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18318fi
ac1cb8d3 18319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18320 done
18321else
18322 echo "$as_me: failed program was:" >&5
18323sed 's/^/| /' conftest.$ac_ext >&5
18324
18325ac_lo= ac_hi=
18326fi
ac1cb8d3 18327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18328fi
ac1cb8d3 18329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18330# Binary search between lo and hi bounds.
18331while test "x$ac_lo" != "x$ac_hi"; do
18332 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18333 cat >conftest.$ac_ext <<_ACEOF
18334/* confdefs.h. */
18335_ACEOF
18336cat confdefs.h >>conftest.$ac_ext
18337cat >>conftest.$ac_ext <<_ACEOF
18338/* end confdefs.h. */
18339$ac_includes_default
18340int
18341main ()
18342{
18343static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18344test_array [0] = 0
18345
18346 ;
18347 return 0;
18348}
18349_ACEOF
18350rm -f conftest.$ac_objext
18351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18352 (eval $ac_compile) 2>conftest.er1
a848cd7e 18353 ac_status=$?
ac1cb8d3
VS
18354 grep -v '^ *+' conftest.er1 >conftest.err
18355 rm -f conftest.er1
18356 cat conftest.err >&5
a848cd7e
SC
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); } &&
479c790c 18359 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18361 (eval $ac_try) 2>&5
18362 ac_status=$?
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); }; } &&
18365 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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_hi=$ac_mid
18372else
18373 echo "$as_me: failed program was:" >&5
18374sed 's/^/| /' conftest.$ac_ext >&5
18375
18376ac_lo=`expr '(' $ac_mid ')' + 1`
18377fi
ac1cb8d3 18378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18379done
18380case $ac_lo in
18381?*) ac_cv_sizeof_char=$ac_lo;;
18382'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18383See \`config.log' for more details." >&5
18384echo "$as_me: error: cannot compute sizeof (char), 77
18385See \`config.log' for more details." >&2;}
18386 { (exit 1); exit 1; }; } ;;
18387esac
18388else
18389 if test "$cross_compiling" = yes; then
479c790c
VZ
18390 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18391echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18392 { (exit 1); exit 1; }; }
18393else
18394 cat >conftest.$ac_ext <<_ACEOF
18395/* confdefs.h. */
18396_ACEOF
18397cat confdefs.h >>conftest.$ac_ext
18398cat >>conftest.$ac_ext <<_ACEOF
18399/* end confdefs.h. */
18400$ac_includes_default
18401long longval () { return (long) (sizeof (char)); }
18402unsigned long ulongval () { return (long) (sizeof (char)); }
18403#include <stdio.h>
18404#include <stdlib.h>
18405int
18406main ()
18407{
18408
18409 FILE *f = fopen ("conftest.val", "w");
18410 if (! f)
18411 exit (1);
18412 if (((long) (sizeof (char))) < 0)
18413 {
18414 long i = longval ();
18415 if (i != ((long) (sizeof (char))))
18416 exit (1);
18417 fprintf (f, "%ld\n", i);
18418 }
18419 else
18420 {
18421 unsigned long i = ulongval ();
18422 if (i != ((long) (sizeof (char))))
18423 exit (1);
18424 fprintf (f, "%lu\n", i);
18425 }
18426 exit (ferror (f) || fclose (f) != 0);
18427
18428 ;
18429 return 0;
18430}
18431_ACEOF
18432rm -f conftest$ac_exeext
18433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18434 (eval $ac_link) 2>&5
18435 ac_status=$?
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439 (eval $ac_try) 2>&5
18440 ac_status=$?
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); }; }; then
18443 ac_cv_sizeof_char=`cat conftest.val`
18444else
18445 echo "$as_me: program exited with status $ac_status" >&5
18446echo "$as_me: failed program was:" >&5
18447sed 's/^/| /' conftest.$ac_ext >&5
18448
18449( exit $ac_status )
18450{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18451See \`config.log' for more details." >&5
18452echo "$as_me: error: cannot compute sizeof (char), 77
18453See \`config.log' for more details." >&2;}
18454 { (exit 1); exit 1; }; }
18455fi
ac1cb8d3 18456rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18457fi
18458fi
18459rm -f conftest.val
18460else
18461 ac_cv_sizeof_char=0
18462fi
18463fi
18464echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18465echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18466cat >>confdefs.h <<_ACEOF
18467#define SIZEOF_CHAR $ac_cv_sizeof_char
18468_ACEOF
18469
18470
18471echo "$as_me:$LINENO: checking for short" >&5
18472echo $ECHO_N "checking for short... $ECHO_C" >&6
18473if test "${ac_cv_type_short+set}" = set; then
18474 echo $ECHO_N "(cached) $ECHO_C" >&6
18475else
18476 cat >conftest.$ac_ext <<_ACEOF
18477/* confdefs.h. */
18478_ACEOF
18479cat confdefs.h >>conftest.$ac_ext
18480cat >>conftest.$ac_ext <<_ACEOF
18481/* end confdefs.h. */
18482$ac_includes_default
18483int
18484main ()
18485{
18486if ((short *) 0)
18487 return 0;
18488if (sizeof (short))
18489 return 0;
18490 ;
18491 return 0;
18492}
18493_ACEOF
18494rm -f conftest.$ac_objext
18495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18496 (eval $ac_compile) 2>conftest.er1
a848cd7e 18497 ac_status=$?
ac1cb8d3
VS
18498 grep -v '^ *+' conftest.er1 >conftest.err
18499 rm -f conftest.er1
18500 cat conftest.err >&5
a848cd7e
SC
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); } &&
479c790c 18503 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18505 (eval $ac_try) 2>&5
18506 ac_status=$?
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); }; } &&
18509 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18511 (eval $ac_try) 2>&5
18512 ac_status=$?
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); }; }; then
18515 ac_cv_type_short=yes
18516else
18517 echo "$as_me: failed program was:" >&5
18518sed 's/^/| /' conftest.$ac_ext >&5
18519
18520ac_cv_type_short=no
18521fi
ac1cb8d3 18522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18523fi
18524echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18525echo "${ECHO_T}$ac_cv_type_short" >&6
18526
18527echo "$as_me:$LINENO: checking size of short" >&5
18528echo $ECHO_N "checking size of short... $ECHO_C" >&6
18529if test "${ac_cv_sizeof_short+set}" = set; then
18530 echo $ECHO_N "(cached) $ECHO_C" >&6
18531else
18532 if test "$ac_cv_type_short" = yes; then
18533 # The cast to unsigned long works around a bug in the HP C Compiler
18534 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18535 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18536 # This bug is HP SR number 8606223364.
18537 if test "$cross_compiling" = yes; then
18538 # Depending upon the size, compute the lo and hi bounds.
18539cat >conftest.$ac_ext <<_ACEOF
18540/* confdefs.h. */
18541_ACEOF
18542cat confdefs.h >>conftest.$ac_ext
18543cat >>conftest.$ac_ext <<_ACEOF
18544/* end confdefs.h. */
18545$ac_includes_default
18546int
18547main ()
18548{
18549static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18550test_array [0] = 0
18551
18552 ;
18553 return 0;
18554}
18555_ACEOF
18556rm -f conftest.$ac_objext
18557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18558 (eval $ac_compile) 2>conftest.er1
a848cd7e 18559 ac_status=$?
ac1cb8d3
VS
18560 grep -v '^ *+' conftest.er1 >conftest.err
18561 rm -f conftest.er1
18562 cat conftest.err >&5
a848cd7e
SC
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); } &&
479c790c 18565 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18567 (eval $ac_try) 2>&5
18568 ac_status=$?
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); }; } &&
18571 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18573 (eval $ac_try) 2>&5
18574 ac_status=$?
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); }; }; then
18577 ac_lo=0 ac_mid=0
18578 while :; do
18579 cat >conftest.$ac_ext <<_ACEOF
18580/* confdefs.h. */
18581_ACEOF
18582cat confdefs.h >>conftest.$ac_ext
18583cat >>conftest.$ac_ext <<_ACEOF
18584/* end confdefs.h. */
18585$ac_includes_default
18586int
18587main ()
18588{
18589static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18590test_array [0] = 0
18591
18592 ;
18593 return 0;
18594}
18595_ACEOF
18596rm -f conftest.$ac_objext
18597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18598 (eval $ac_compile) 2>conftest.er1
a848cd7e 18599 ac_status=$?
ac1cb8d3
VS
18600 grep -v '^ *+' conftest.er1 >conftest.err
18601 rm -f conftest.er1
18602 cat conftest.err >&5
a848cd7e
SC
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); } &&
479c790c 18605 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18607 (eval $ac_try) 2>&5
18608 ac_status=$?
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); }; } &&
18611 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18613 (eval $ac_try) 2>&5
18614 ac_status=$?
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); }; }; then
18617 ac_hi=$ac_mid; break
18618else
18619 echo "$as_me: failed program was:" >&5
18620sed 's/^/| /' conftest.$ac_ext >&5
18621
18622ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18623 if test $ac_lo -le $ac_mid; then
18624 ac_lo= ac_hi=
18625 break
18626 fi
18627 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18628fi
ac1cb8d3 18629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18630 done
18631else
18632 echo "$as_me: failed program was:" >&5
18633sed 's/^/| /' conftest.$ac_ext >&5
18634
18635cat >conftest.$ac_ext <<_ACEOF
18636/* confdefs.h. */
18637_ACEOF
18638cat confdefs.h >>conftest.$ac_ext
18639cat >>conftest.$ac_ext <<_ACEOF
18640/* end confdefs.h. */
18641$ac_includes_default
18642int
18643main ()
18644{
18645static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18646test_array [0] = 0
18647
18648 ;
18649 return 0;
18650}
18651_ACEOF
18652rm -f conftest.$ac_objext
18653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18654 (eval $ac_compile) 2>conftest.er1
a848cd7e 18655 ac_status=$?
ac1cb8d3
VS
18656 grep -v '^ *+' conftest.er1 >conftest.err
18657 rm -f conftest.er1
18658 cat conftest.err >&5
a848cd7e
SC
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); } &&
479c790c 18661 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18663 (eval $ac_try) 2>&5
18664 ac_status=$?
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); }; } &&
18667 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18669 (eval $ac_try) 2>&5
18670 ac_status=$?
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); }; }; then
18673 ac_hi=-1 ac_mid=-1
18674 while :; do
18675 cat >conftest.$ac_ext <<_ACEOF
18676/* confdefs.h. */
18677_ACEOF
18678cat confdefs.h >>conftest.$ac_ext
18679cat >>conftest.$ac_ext <<_ACEOF
18680/* end confdefs.h. */
18681$ac_includes_default
18682int
18683main ()
18684{
18685static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18686test_array [0] = 0
18687
18688 ;
18689 return 0;
18690}
18691_ACEOF
18692rm -f conftest.$ac_objext
18693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18694 (eval $ac_compile) 2>conftest.er1
a848cd7e 18695 ac_status=$?
ac1cb8d3
VS
18696 grep -v '^ *+' conftest.er1 >conftest.err
18697 rm -f conftest.er1
18698 cat conftest.err >&5
a848cd7e
SC
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); } &&
479c790c 18701 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18703 (eval $ac_try) 2>&5
18704 ac_status=$?
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); }; } &&
18707 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18709 (eval $ac_try) 2>&5
18710 ac_status=$?
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); }; }; then
18713 ac_lo=$ac_mid; break
18714else
18715 echo "$as_me: failed program was:" >&5
18716sed 's/^/| /' conftest.$ac_ext >&5
18717
18718ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18719 if test $ac_mid -le $ac_hi; then
18720 ac_lo= ac_hi=
18721 break
18722 fi
18723 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18724fi
ac1cb8d3 18725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18726 done
18727else
18728 echo "$as_me: failed program was:" >&5
18729sed 's/^/| /' conftest.$ac_ext >&5
18730
18731ac_lo= ac_hi=
18732fi
ac1cb8d3 18733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18734fi
ac1cb8d3 18735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18736# Binary search between lo and hi bounds.
18737while test "x$ac_lo" != "x$ac_hi"; do
18738 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18739 cat >conftest.$ac_ext <<_ACEOF
18740/* confdefs.h. */
18741_ACEOF
18742cat confdefs.h >>conftest.$ac_ext
18743cat >>conftest.$ac_ext <<_ACEOF
18744/* end confdefs.h. */
18745$ac_includes_default
18746int
18747main ()
18748{
18749static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18750test_array [0] = 0
18751
18752 ;
18753 return 0;
18754}
18755_ACEOF
18756rm -f conftest.$ac_objext
18757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18758 (eval $ac_compile) 2>conftest.er1
a848cd7e 18759 ac_status=$?
ac1cb8d3
VS
18760 grep -v '^ *+' conftest.er1 >conftest.err
18761 rm -f conftest.er1
18762 cat conftest.err >&5
a848cd7e
SC
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); } &&
479c790c 18765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18767 (eval $ac_try) 2>&5
18768 ac_status=$?
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); }; } &&
18771 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18773 (eval $ac_try) 2>&5
18774 ac_status=$?
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); }; }; then
18777 ac_hi=$ac_mid
18778else
18779 echo "$as_me: failed program was:" >&5
18780sed 's/^/| /' conftest.$ac_ext >&5
18781
18782ac_lo=`expr '(' $ac_mid ')' + 1`
18783fi
ac1cb8d3 18784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18785done
18786case $ac_lo in
18787?*) ac_cv_sizeof_short=$ac_lo;;
18788'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18789See \`config.log' for more details." >&5
18790echo "$as_me: error: cannot compute sizeof (short), 77
18791See \`config.log' for more details." >&2;}
18792 { (exit 1); exit 1; }; } ;;
18793esac
18794else
18795 if test "$cross_compiling" = yes; then
479c790c
VZ
18796 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18797echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18798 { (exit 1); exit 1; }; }
18799else
18800 cat >conftest.$ac_ext <<_ACEOF
18801/* confdefs.h. */
18802_ACEOF
18803cat confdefs.h >>conftest.$ac_ext
18804cat >>conftest.$ac_ext <<_ACEOF
18805/* end confdefs.h. */
18806$ac_includes_default
18807long longval () { return (long) (sizeof (short)); }
18808unsigned long ulongval () { return (long) (sizeof (short)); }
18809#include <stdio.h>
18810#include <stdlib.h>
18811int
18812main ()
18813{
18814
18815 FILE *f = fopen ("conftest.val", "w");
18816 if (! f)
18817 exit (1);
18818 if (((long) (sizeof (short))) < 0)
18819 {
18820 long i = longval ();
18821 if (i != ((long) (sizeof (short))))
18822 exit (1);
18823 fprintf (f, "%ld\n", i);
18824 }
18825 else
18826 {
18827 unsigned long i = ulongval ();
18828 if (i != ((long) (sizeof (short))))
18829 exit (1);
18830 fprintf (f, "%lu\n", i);
18831 }
18832 exit (ferror (f) || fclose (f) != 0);
18833
18834 ;
18835 return 0;
18836}
18837_ACEOF
18838rm -f conftest$ac_exeext
18839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18840 (eval $ac_link) 2>&5
18841 ac_status=$?
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18845 (eval $ac_try) 2>&5
18846 ac_status=$?
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); }; }; then
18849 ac_cv_sizeof_short=`cat conftest.val`
18850else
18851 echo "$as_me: program exited with status $ac_status" >&5
18852echo "$as_me: failed program was:" >&5
18853sed 's/^/| /' conftest.$ac_ext >&5
18854
18855( exit $ac_status )
18856{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18857See \`config.log' for more details." >&5
18858echo "$as_me: error: cannot compute sizeof (short), 77
18859See \`config.log' for more details." >&2;}
18860 { (exit 1); exit 1; }; }
18861fi
ac1cb8d3 18862rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18863fi
18864fi
18865rm -f conftest.val
18866else
18867 ac_cv_sizeof_short=0
18868fi
18869fi
18870echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18871echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18872cat >>confdefs.h <<_ACEOF
18873#define SIZEOF_SHORT $ac_cv_sizeof_short
18874_ACEOF
18875
18876
18877echo "$as_me:$LINENO: checking for void *" >&5
18878echo $ECHO_N "checking for void *... $ECHO_C" >&6
18879if test "${ac_cv_type_void_p+set}" = set; then
18880 echo $ECHO_N "(cached) $ECHO_C" >&6
18881else
18882 cat >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{
18892if ((void * *) 0)
18893 return 0;
18894if (sizeof (void *))
18895 return 0;
18896 ;
18897 return 0;
18898}
18899_ACEOF
18900rm -f conftest.$ac_objext
18901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18902 (eval $ac_compile) 2>conftest.er1
a848cd7e 18903 ac_status=$?
ac1cb8d3
VS
18904 grep -v '^ *+' conftest.er1 >conftest.err
18905 rm -f conftest.er1
18906 cat conftest.err >&5
a848cd7e
SC
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); } &&
479c790c 18909 { ac_try='test -z "$ac_cxx_werror_flag" || 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_cv_type_void_p=yes
18922else
18923 echo "$as_me: failed program was:" >&5
18924sed 's/^/| /' conftest.$ac_ext >&5
18925
18926ac_cv_type_void_p=no
18927fi
ac1cb8d3 18928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18929fi
18930echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18931echo "${ECHO_T}$ac_cv_type_void_p" >&6
18932
18933echo "$as_me:$LINENO: checking size of void *" >&5
18934echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18935if test "${ac_cv_sizeof_void_p+set}" = set; then
18936 echo $ECHO_N "(cached) $ECHO_C" >&6
18937else
18938 if test "$ac_cv_type_void_p" = yes; then
18939 # The cast to unsigned long works around a bug in the HP C Compiler
18940 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18941 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18942 # This bug is HP SR number 8606223364.
18943 if test "$cross_compiling" = yes; then
18944 # Depending upon the size, compute the lo and hi bounds.
18945cat >conftest.$ac_ext <<_ACEOF
18946/* confdefs.h. */
18947_ACEOF
18948cat confdefs.h >>conftest.$ac_ext
18949cat >>conftest.$ac_ext <<_ACEOF
18950/* end confdefs.h. */
18951$ac_includes_default
18952int
18953main ()
18954{
18955static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18956test_array [0] = 0
18957
18958 ;
18959 return 0;
18960}
18961_ACEOF
18962rm -f conftest.$ac_objext
18963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18964 (eval $ac_compile) 2>conftest.er1
a848cd7e 18965 ac_status=$?
ac1cb8d3
VS
18966 grep -v '^ *+' conftest.er1 >conftest.err
18967 rm -f conftest.er1
18968 cat conftest.err >&5
a848cd7e
SC
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); } &&
479c790c 18971 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18973 (eval $ac_try) 2>&5
18974 ac_status=$?
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); }; } &&
18977 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979 (eval $ac_try) 2>&5
18980 ac_status=$?
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; }; then
18983 ac_lo=0 ac_mid=0
18984 while :; do
18985 cat >conftest.$ac_ext <<_ACEOF
18986/* confdefs.h. */
18987_ACEOF
18988cat confdefs.h >>conftest.$ac_ext
18989cat >>conftest.$ac_ext <<_ACEOF
18990/* end confdefs.h. */
18991$ac_includes_default
18992int
18993main ()
18994{
18995static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18996test_array [0] = 0
18997
18998 ;
18999 return 0;
19000}
19001_ACEOF
19002rm -f conftest.$ac_objext
19003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19004 (eval $ac_compile) 2>conftest.er1
a848cd7e 19005 ac_status=$?
ac1cb8d3
VS
19006 grep -v '^ *+' conftest.er1 >conftest.err
19007 rm -f conftest.er1
19008 cat conftest.err >&5
a848cd7e
SC
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); } &&
479c790c 19011 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19013 (eval $ac_try) 2>&5
19014 ac_status=$?
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); }; } &&
19017 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19019 (eval $ac_try) 2>&5
19020 ac_status=$?
19021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022 (exit $ac_status); }; }; then
19023 ac_hi=$ac_mid; break
19024else
19025 echo "$as_me: failed program was:" >&5
19026sed 's/^/| /' conftest.$ac_ext >&5
19027
19028ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19029 if test $ac_lo -le $ac_mid; then
19030 ac_lo= ac_hi=
19031 break
19032 fi
19033 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19034fi
ac1cb8d3 19035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19036 done
19037else
19038 echo "$as_me: failed program was:" >&5
19039sed 's/^/| /' conftest.$ac_ext >&5
19040
19041cat >conftest.$ac_ext <<_ACEOF
19042/* confdefs.h. */
19043_ACEOF
19044cat confdefs.h >>conftest.$ac_ext
19045cat >>conftest.$ac_ext <<_ACEOF
19046/* end confdefs.h. */
19047$ac_includes_default
19048int
19049main ()
19050{
19051static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
19052test_array [0] = 0
19053
19054 ;
19055 return 0;
19056}
19057_ACEOF
19058rm -f conftest.$ac_objext
19059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19060 (eval $ac_compile) 2>conftest.er1
a848cd7e 19061 ac_status=$?
ac1cb8d3
VS
19062 grep -v '^ *+' conftest.er1 >conftest.err
19063 rm -f conftest.er1
19064 cat conftest.err >&5
a848cd7e
SC
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); } &&
479c790c 19067 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19070 ac_status=$?
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; } &&
19073 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075 (eval $ac_try) 2>&5
19076 ac_status=$?
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; }; then
19079 ac_hi=-1 ac_mid=-1
19080 while :; do
19081 cat >conftest.$ac_ext <<_ACEOF
19082/* confdefs.h. */
19083_ACEOF
19084cat confdefs.h >>conftest.$ac_ext
19085cat >>conftest.$ac_ext <<_ACEOF
19086/* end confdefs.h. */
19087$ac_includes_default
19088int
19089main ()
19090{
19091static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
19092test_array [0] = 0
19093
19094 ;
19095 return 0;
19096}
19097_ACEOF
19098rm -f conftest.$ac_objext
19099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19100 (eval $ac_compile) 2>conftest.er1
a848cd7e 19101 ac_status=$?
ac1cb8d3
VS
19102 grep -v '^ *+' conftest.er1 >conftest.err
19103 rm -f conftest.er1
19104 cat conftest.err >&5
a848cd7e
SC
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); } &&
479c790c 19107 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19109 (eval $ac_try) 2>&5
19110 ac_status=$?
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); }; } &&
19113 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
19119 ac_lo=$ac_mid; break
19120else
19121 echo "$as_me: failed program was:" >&5
19122sed 's/^/| /' conftest.$ac_ext >&5
19123
19124ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19125 if test $ac_mid -le $ac_hi; then
19126 ac_lo= ac_hi=
19127 break
19128 fi
19129 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19130fi
ac1cb8d3 19131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19132 done
19133else
19134 echo "$as_me: failed program was:" >&5
19135sed 's/^/| /' conftest.$ac_ext >&5
19136
19137ac_lo= ac_hi=
19138fi
ac1cb8d3 19139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19140fi
ac1cb8d3 19141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19142# Binary search between lo and hi bounds.
19143while test "x$ac_lo" != "x$ac_hi"; do
19144 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19145 cat >conftest.$ac_ext <<_ACEOF
19146/* confdefs.h. */
19147_ACEOF
19148cat confdefs.h >>conftest.$ac_ext
19149cat >>conftest.$ac_ext <<_ACEOF
19150/* end confdefs.h. */
19151$ac_includes_default
19152int
19153main ()
19154{
19155static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
19156test_array [0] = 0
19157
19158 ;
19159 return 0;
19160}
19161_ACEOF
19162rm -f conftest.$ac_objext
19163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19164 (eval $ac_compile) 2>conftest.er1
a848cd7e 19165 ac_status=$?
ac1cb8d3
VS
19166 grep -v '^ *+' conftest.er1 >conftest.err
19167 rm -f conftest.er1
19168 cat conftest.err >&5
a848cd7e
SC
19169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); } &&
479c790c 19171 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19173 (eval $ac_try) 2>&5
19174 ac_status=$?
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); }; } &&
19177 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19179 (eval $ac_try) 2>&5
19180 ac_status=$?
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); }; }; then
19183 ac_hi=$ac_mid
19184else
19185 echo "$as_me: failed program was:" >&5
19186sed 's/^/| /' conftest.$ac_ext >&5
19187
19188ac_lo=`expr '(' $ac_mid ')' + 1`
19189fi
ac1cb8d3 19190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19191done
19192case $ac_lo in
19193?*) ac_cv_sizeof_void_p=$ac_lo;;
19194'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19195See \`config.log' for more details." >&5
19196echo "$as_me: error: cannot compute sizeof (void *), 77
19197See \`config.log' for more details." >&2;}
19198 { (exit 1); exit 1; }; } ;;
19199esac
19200else
19201 if test "$cross_compiling" = yes; then
479c790c
VZ
19202 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19203echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19204 { (exit 1); exit 1; }; }
19205else
19206 cat >conftest.$ac_ext <<_ACEOF
19207/* confdefs.h. */
19208_ACEOF
19209cat confdefs.h >>conftest.$ac_ext
19210cat >>conftest.$ac_ext <<_ACEOF
19211/* end confdefs.h. */
19212$ac_includes_default
19213long longval () { return (long) (sizeof (void *)); }
19214unsigned long ulongval () { return (long) (sizeof (void *)); }
19215#include <stdio.h>
19216#include <stdlib.h>
19217int
19218main ()
19219{
19220
19221 FILE *f = fopen ("conftest.val", "w");
19222 if (! f)
19223 exit (1);
19224 if (((long) (sizeof (void *))) < 0)
19225 {
19226 long i = longval ();
19227 if (i != ((long) (sizeof (void *))))
19228 exit (1);
19229 fprintf (f, "%ld\n", i);
19230 }
19231 else
19232 {
19233 unsigned long i = ulongval ();
19234 if (i != ((long) (sizeof (void *))))
19235 exit (1);
19236 fprintf (f, "%lu\n", i);
19237 }
19238 exit (ferror (f) || fclose (f) != 0);
19239
19240 ;
19241 return 0;
19242}
19243_ACEOF
19244rm -f conftest$ac_exeext
19245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19246 (eval $ac_link) 2>&5
19247 ac_status=$?
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19251 (eval $ac_try) 2>&5
19252 ac_status=$?
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); }; }; then
19255 ac_cv_sizeof_void_p=`cat conftest.val`
19256else
19257 echo "$as_me: program exited with status $ac_status" >&5
19258echo "$as_me: failed program was:" >&5
19259sed 's/^/| /' conftest.$ac_ext >&5
19260
19261( exit $ac_status )
19262{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19263See \`config.log' for more details." >&5
19264echo "$as_me: error: cannot compute sizeof (void *), 77
19265See \`config.log' for more details." >&2;}
19266 { (exit 1); exit 1; }; }
19267fi
ac1cb8d3 19268rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19269fi
19270fi
19271rm -f conftest.val
19272else
19273 ac_cv_sizeof_void_p=0
19274fi
19275fi
19276echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
19277echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
19278cat >>confdefs.h <<_ACEOF
19279#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
19280_ACEOF
19281
19282
19283echo "$as_me:$LINENO: checking for int" >&5
19284echo $ECHO_N "checking for int... $ECHO_C" >&6
19285if test "${ac_cv_type_int+set}" = set; then
19286 echo $ECHO_N "(cached) $ECHO_C" >&6
19287else
19288 cat >conftest.$ac_ext <<_ACEOF
19289/* confdefs.h. */
19290_ACEOF
19291cat confdefs.h >>conftest.$ac_ext
19292cat >>conftest.$ac_ext <<_ACEOF
19293/* end confdefs.h. */
19294$ac_includes_default
19295int
19296main ()
19297{
19298if ((int *) 0)
19299 return 0;
19300if (sizeof (int))
19301 return 0;
19302 ;
19303 return 0;
19304}
19305_ACEOF
19306rm -f conftest.$ac_objext
19307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19308 (eval $ac_compile) 2>conftest.er1
a848cd7e 19309 ac_status=$?
ac1cb8d3
VS
19310 grep -v '^ *+' conftest.er1 >conftest.err
19311 rm -f conftest.er1
19312 cat conftest.err >&5
a848cd7e
SC
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); } &&
479c790c 19315 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19317 (eval $ac_try) 2>&5
19318 ac_status=$?
19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320 (exit $ac_status); }; } &&
19321 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19323 (eval $ac_try) 2>&5
19324 ac_status=$?
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); }; }; then
19327 ac_cv_type_int=yes
19328else
19329 echo "$as_me: failed program was:" >&5
19330sed 's/^/| /' conftest.$ac_ext >&5
19331
19332ac_cv_type_int=no
19333fi
ac1cb8d3 19334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19335fi
19336echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19337echo "${ECHO_T}$ac_cv_type_int" >&6
19338
19339echo "$as_me:$LINENO: checking size of int" >&5
19340echo $ECHO_N "checking size of int... $ECHO_C" >&6
19341if test "${ac_cv_sizeof_int+set}" = set; then
19342 echo $ECHO_N "(cached) $ECHO_C" >&6
19343else
19344 if test "$ac_cv_type_int" = yes; then
19345 # The cast to unsigned long works around a bug in the HP C Compiler
19346 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19347 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19348 # This bug is HP SR number 8606223364.
19349 if test "$cross_compiling" = yes; then
19350 # Depending upon the size, compute the lo and hi bounds.
19351cat >conftest.$ac_ext <<_ACEOF
19352/* confdefs.h. */
19353_ACEOF
19354cat confdefs.h >>conftest.$ac_ext
19355cat >>conftest.$ac_ext <<_ACEOF
19356/* end confdefs.h. */
19357$ac_includes_default
19358int
19359main ()
19360{
19361static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
19362test_array [0] = 0
19363
19364 ;
19365 return 0;
19366}
19367_ACEOF
19368rm -f conftest.$ac_objext
19369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19370 (eval $ac_compile) 2>conftest.er1
a848cd7e 19371 ac_status=$?
ac1cb8d3
VS
19372 grep -v '^ *+' conftest.er1 >conftest.err
19373 rm -f conftest.er1
19374 cat conftest.err >&5
a848cd7e
SC
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); } &&
479c790c 19377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379 (eval $ac_try) 2>&5
19380 ac_status=$?
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); }; } &&
19383 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385 (eval $ac_try) 2>&5
19386 ac_status=$?
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); }; }; then
19389 ac_lo=0 ac_mid=0
19390 while :; do
19391 cat >conftest.$ac_ext <<_ACEOF
19392/* confdefs.h. */
19393_ACEOF
19394cat confdefs.h >>conftest.$ac_ext
19395cat >>conftest.$ac_ext <<_ACEOF
19396/* end confdefs.h. */
19397$ac_includes_default
19398int
19399main ()
19400{
19401static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19402test_array [0] = 0
19403
19404 ;
19405 return 0;
19406}
19407_ACEOF
19408rm -f conftest.$ac_objext
19409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19410 (eval $ac_compile) 2>conftest.er1
a848cd7e 19411 ac_status=$?
ac1cb8d3
VS
19412 grep -v '^ *+' conftest.er1 >conftest.err
19413 rm -f conftest.er1
19414 cat conftest.err >&5
a848cd7e
SC
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); } &&
479c790c 19417 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19419 (eval $ac_try) 2>&5
19420 ac_status=$?
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); }; } &&
19423 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19425 (eval $ac_try) 2>&5
19426 ac_status=$?
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); }; }; then
19429 ac_hi=$ac_mid; break
19430else
19431 echo "$as_me: failed program was:" >&5
19432sed 's/^/| /' conftest.$ac_ext >&5
19433
19434ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19435 if test $ac_lo -le $ac_mid; then
19436 ac_lo= ac_hi=
19437 break
19438 fi
19439 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19440fi
ac1cb8d3 19441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19442 done
19443else
19444 echo "$as_me: failed program was:" >&5
19445sed 's/^/| /' conftest.$ac_ext >&5
19446
19447cat >conftest.$ac_ext <<_ACEOF
19448/* confdefs.h. */
19449_ACEOF
19450cat confdefs.h >>conftest.$ac_ext
19451cat >>conftest.$ac_ext <<_ACEOF
19452/* end confdefs.h. */
19453$ac_includes_default
19454int
19455main ()
19456{
19457static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19458test_array [0] = 0
19459
19460 ;
19461 return 0;
19462}
19463_ACEOF
19464rm -f conftest.$ac_objext
19465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19466 (eval $ac_compile) 2>conftest.er1
a848cd7e 19467 ac_status=$?
ac1cb8d3
VS
19468 grep -v '^ *+' conftest.er1 >conftest.err
19469 rm -f conftest.er1
19470 cat conftest.err >&5
a848cd7e
SC
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); } &&
479c790c 19473 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19475 (eval $ac_try) 2>&5
19476 ac_status=$?
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); }; } &&
19479 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481 (eval $ac_try) 2>&5
19482 ac_status=$?
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); }; }; then
19485 ac_hi=-1 ac_mid=-1
19486 while :; do
19487 cat >conftest.$ac_ext <<_ACEOF
19488/* confdefs.h. */
19489_ACEOF
19490cat confdefs.h >>conftest.$ac_ext
19491cat >>conftest.$ac_ext <<_ACEOF
19492/* end confdefs.h. */
19493$ac_includes_default
19494int
19495main ()
19496{
19497static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19498test_array [0] = 0
19499
19500 ;
19501 return 0;
19502}
19503_ACEOF
19504rm -f conftest.$ac_objext
19505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19506 (eval $ac_compile) 2>conftest.er1
a848cd7e 19507 ac_status=$?
ac1cb8d3
VS
19508 grep -v '^ *+' conftest.er1 >conftest.err
19509 rm -f conftest.er1
19510 cat conftest.err >&5
a848cd7e
SC
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); } &&
479c790c 19513 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19515 (eval $ac_try) 2>&5
19516 ac_status=$?
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); }; } &&
19519 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521 (eval $ac_try) 2>&5
19522 ac_status=$?
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; }; then
19525 ac_lo=$ac_mid; break
19526else
19527 echo "$as_me: failed program was:" >&5
19528sed 's/^/| /' conftest.$ac_ext >&5
19529
19530ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19531 if test $ac_mid -le $ac_hi; then
19532 ac_lo= ac_hi=
19533 break
19534 fi
19535 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19536fi
ac1cb8d3 19537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19538 done
19539else
19540 echo "$as_me: failed program was:" >&5
19541sed 's/^/| /' conftest.$ac_ext >&5
19542
19543ac_lo= ac_hi=
19544fi
ac1cb8d3 19545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19546fi
ac1cb8d3 19547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19548# Binary search between lo and hi bounds.
19549while test "x$ac_lo" != "x$ac_hi"; do
19550 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19551 cat >conftest.$ac_ext <<_ACEOF
19552/* confdefs.h. */
19553_ACEOF
19554cat confdefs.h >>conftest.$ac_ext
19555cat >>conftest.$ac_ext <<_ACEOF
19556/* end confdefs.h. */
19557$ac_includes_default
19558int
19559main ()
19560{
19561static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19562test_array [0] = 0
19563
19564 ;
19565 return 0;
19566}
19567_ACEOF
19568rm -f conftest.$ac_objext
19569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19570 (eval $ac_compile) 2>conftest.er1
a848cd7e 19571 ac_status=$?
ac1cb8d3
VS
19572 grep -v '^ *+' conftest.er1 >conftest.err
19573 rm -f conftest.er1
19574 cat conftest.err >&5
a848cd7e
SC
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); } &&
479c790c 19577 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19579 (eval $ac_try) 2>&5
19580 ac_status=$?
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); }; } &&
19583 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585 (eval $ac_try) 2>&5
19586 ac_status=$?
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; }; then
19589 ac_hi=$ac_mid
19590else
19591 echo "$as_me: failed program was:" >&5
19592sed 's/^/| /' conftest.$ac_ext >&5
19593
19594ac_lo=`expr '(' $ac_mid ')' + 1`
19595fi
ac1cb8d3 19596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19597done
19598case $ac_lo in
19599?*) ac_cv_sizeof_int=$ac_lo;;
19600'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19601See \`config.log' for more details." >&5
19602echo "$as_me: error: cannot compute sizeof (int), 77
19603See \`config.log' for more details." >&2;}
19604 { (exit 1); exit 1; }; } ;;
19605esac
19606else
19607 if test "$cross_compiling" = yes; then
479c790c
VZ
19608 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19609echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19610 { (exit 1); exit 1; }; }
19611else
19612 cat >conftest.$ac_ext <<_ACEOF
19613/* confdefs.h. */
19614_ACEOF
19615cat confdefs.h >>conftest.$ac_ext
19616cat >>conftest.$ac_ext <<_ACEOF
19617/* end confdefs.h. */
19618$ac_includes_default
19619long longval () { return (long) (sizeof (int)); }
19620unsigned long ulongval () { return (long) (sizeof (int)); }
19621#include <stdio.h>
19622#include <stdlib.h>
19623int
19624main ()
19625{
19626
19627 FILE *f = fopen ("conftest.val", "w");
19628 if (! f)
19629 exit (1);
19630 if (((long) (sizeof (int))) < 0)
19631 {
19632 long i = longval ();
19633 if (i != ((long) (sizeof (int))))
19634 exit (1);
19635 fprintf (f, "%ld\n", i);
19636 }
19637 else
19638 {
19639 unsigned long i = ulongval ();
19640 if (i != ((long) (sizeof (int))))
19641 exit (1);
19642 fprintf (f, "%lu\n", i);
19643 }
19644 exit (ferror (f) || fclose (f) != 0);
19645
19646 ;
19647 return 0;
19648}
19649_ACEOF
19650rm -f conftest$ac_exeext
19651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19652 (eval $ac_link) 2>&5
19653 ac_status=$?
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19657 (eval $ac_try) 2>&5
19658 ac_status=$?
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); }; }; then
19661 ac_cv_sizeof_int=`cat conftest.val`
19662else
19663 echo "$as_me: program exited with status $ac_status" >&5
19664echo "$as_me: failed program was:" >&5
19665sed 's/^/| /' conftest.$ac_ext >&5
19666
19667( exit $ac_status )
19668{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19669See \`config.log' for more details." >&5
19670echo "$as_me: error: cannot compute sizeof (int), 77
19671See \`config.log' for more details." >&2;}
19672 { (exit 1); exit 1; }; }
19673fi
ac1cb8d3 19674rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19675fi
19676fi
19677rm -f conftest.val
19678else
19679 ac_cv_sizeof_int=0
19680fi
19681fi
19682echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19683echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19684cat >>confdefs.h <<_ACEOF
19685#define SIZEOF_INT $ac_cv_sizeof_int
19686_ACEOF
19687
19688
19689echo "$as_me:$LINENO: checking for long" >&5
19690echo $ECHO_N "checking for long... $ECHO_C" >&6
19691if test "${ac_cv_type_long+set}" = set; then
19692 echo $ECHO_N "(cached) $ECHO_C" >&6
19693else
19694 cat >conftest.$ac_ext <<_ACEOF
19695/* confdefs.h. */
19696_ACEOF
19697cat confdefs.h >>conftest.$ac_ext
19698cat >>conftest.$ac_ext <<_ACEOF
19699/* end confdefs.h. */
19700$ac_includes_default
19701int
19702main ()
19703{
19704if ((long *) 0)
19705 return 0;
19706if (sizeof (long))
19707 return 0;
19708 ;
19709 return 0;
19710}
19711_ACEOF
19712rm -f conftest.$ac_objext
19713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19714 (eval $ac_compile) 2>conftest.er1
a848cd7e 19715 ac_status=$?
ac1cb8d3
VS
19716 grep -v '^ *+' conftest.er1 >conftest.err
19717 rm -f conftest.er1
19718 cat conftest.err >&5
a848cd7e
SC
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); } &&
479c790c 19721 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19723 (eval $ac_try) 2>&5
19724 ac_status=$?
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); }; } &&
19727 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19729 (eval $ac_try) 2>&5
19730 ac_status=$?
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); }; }; then
19733 ac_cv_type_long=yes
19734else
19735 echo "$as_me: failed program was:" >&5
19736sed 's/^/| /' conftest.$ac_ext >&5
19737
19738ac_cv_type_long=no
19739fi
ac1cb8d3 19740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19741fi
19742echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19743echo "${ECHO_T}$ac_cv_type_long" >&6
19744
19745echo "$as_me:$LINENO: checking size of long" >&5
19746echo $ECHO_N "checking size of long... $ECHO_C" >&6
19747if test "${ac_cv_sizeof_long+set}" = set; then
19748 echo $ECHO_N "(cached) $ECHO_C" >&6
19749else
19750 if test "$ac_cv_type_long" = yes; then
19751 # The cast to unsigned long works around a bug in the HP C Compiler
19752 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19753 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19754 # This bug is HP SR number 8606223364.
19755 if test "$cross_compiling" = yes; then
19756 # Depending upon the size, compute the lo and hi bounds.
19757cat >conftest.$ac_ext <<_ACEOF
19758/* confdefs.h. */
19759_ACEOF
19760cat confdefs.h >>conftest.$ac_ext
19761cat >>conftest.$ac_ext <<_ACEOF
19762/* end confdefs.h. */
19763$ac_includes_default
19764int
19765main ()
19766{
19767static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19768test_array [0] = 0
19769
19770 ;
19771 return 0;
19772}
19773_ACEOF
19774rm -f conftest.$ac_objext
19775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19776 (eval $ac_compile) 2>conftest.er1
a848cd7e 19777 ac_status=$?
ac1cb8d3
VS
19778 grep -v '^ *+' conftest.er1 >conftest.err
19779 rm -f conftest.er1
19780 cat conftest.err >&5
a848cd7e
SC
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); } &&
479c790c 19783 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19785 (eval $ac_try) 2>&5
19786 ac_status=$?
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); }; } &&
19789 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19791 (eval $ac_try) 2>&5
19792 ac_status=$?
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); }; }; then
19795 ac_lo=0 ac_mid=0
19796 while :; do
19797 cat >conftest.$ac_ext <<_ACEOF
19798/* confdefs.h. */
19799_ACEOF
19800cat confdefs.h >>conftest.$ac_ext
19801cat >>conftest.$ac_ext <<_ACEOF
19802/* end confdefs.h. */
19803$ac_includes_default
19804int
19805main ()
19806{
19807static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19808test_array [0] = 0
19809
19810 ;
19811 return 0;
19812}
19813_ACEOF
19814rm -f conftest.$ac_objext
19815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19816 (eval $ac_compile) 2>conftest.er1
a848cd7e 19817 ac_status=$?
ac1cb8d3
VS
19818 grep -v '^ *+' conftest.er1 >conftest.err
19819 rm -f conftest.er1
19820 cat conftest.err >&5
a848cd7e
SC
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); } &&
479c790c 19823 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19825 (eval $ac_try) 2>&5
19826 ac_status=$?
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); }; } &&
19829 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19831 (eval $ac_try) 2>&5
19832 ac_status=$?
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); }; }; then
19835 ac_hi=$ac_mid; break
19836else
19837 echo "$as_me: failed program was:" >&5
19838sed 's/^/| /' conftest.$ac_ext >&5
19839
19840ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19841 if test $ac_lo -le $ac_mid; then
19842 ac_lo= ac_hi=
19843 break
19844 fi
19845 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19846fi
ac1cb8d3 19847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19848 done
19849else
19850 echo "$as_me: failed program was:" >&5
19851sed 's/^/| /' conftest.$ac_ext >&5
19852
19853cat >conftest.$ac_ext <<_ACEOF
19854/* confdefs.h. */
19855_ACEOF
19856cat confdefs.h >>conftest.$ac_ext
19857cat >>conftest.$ac_ext <<_ACEOF
19858/* end confdefs.h. */
19859$ac_includes_default
19860int
19861main ()
19862{
19863static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19864test_array [0] = 0
19865
19866 ;
19867 return 0;
19868}
19869_ACEOF
19870rm -f conftest.$ac_objext
19871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19872 (eval $ac_compile) 2>conftest.er1
a848cd7e 19873 ac_status=$?
ac1cb8d3
VS
19874 grep -v '^ *+' conftest.er1 >conftest.err
19875 rm -f conftest.er1
19876 cat conftest.err >&5
a848cd7e
SC
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); } &&
479c790c 19879 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19881 (eval $ac_try) 2>&5
19882 ac_status=$?
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); }; } &&
19885 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887 (eval $ac_try) 2>&5
19888 ac_status=$?
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); }; }; then
19891 ac_hi=-1 ac_mid=-1
19892 while :; do
19893 cat >conftest.$ac_ext <<_ACEOF
19894/* confdefs.h. */
19895_ACEOF
19896cat confdefs.h >>conftest.$ac_ext
19897cat >>conftest.$ac_ext <<_ACEOF
19898/* end confdefs.h. */
19899$ac_includes_default
19900int
19901main ()
19902{
19903static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19904test_array [0] = 0
19905
19906 ;
19907 return 0;
19908}
19909_ACEOF
19910rm -f conftest.$ac_objext
19911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19912 (eval $ac_compile) 2>conftest.er1
a848cd7e 19913 ac_status=$?
ac1cb8d3
VS
19914 grep -v '^ *+' conftest.er1 >conftest.err
19915 rm -f conftest.er1
19916 cat conftest.err >&5
a848cd7e
SC
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); } &&
479c790c 19919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19921 (eval $ac_try) 2>&5
19922 ac_status=$?
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); }; } &&
19925 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19927 (eval $ac_try) 2>&5
19928 ac_status=$?
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); }; }; then
19931 ac_lo=$ac_mid; break
19932else
19933 echo "$as_me: failed program was:" >&5
19934sed 's/^/| /' conftest.$ac_ext >&5
19935
19936ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19937 if test $ac_mid -le $ac_hi; then
19938 ac_lo= ac_hi=
19939 break
19940 fi
19941 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19942fi
ac1cb8d3 19943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19944 done
19945else
19946 echo "$as_me: failed program was:" >&5
19947sed 's/^/| /' conftest.$ac_ext >&5
19948
19949ac_lo= ac_hi=
19950fi
ac1cb8d3 19951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19952fi
ac1cb8d3 19953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19954# Binary search between lo and hi bounds.
19955while test "x$ac_lo" != "x$ac_hi"; do
19956 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19957 cat >conftest.$ac_ext <<_ACEOF
19958/* confdefs.h. */
19959_ACEOF
19960cat confdefs.h >>conftest.$ac_ext
19961cat >>conftest.$ac_ext <<_ACEOF
19962/* end confdefs.h. */
19963$ac_includes_default
19964int
19965main ()
19966{
19967static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19968test_array [0] = 0
19969
19970 ;
19971 return 0;
19972}
19973_ACEOF
19974rm -f conftest.$ac_objext
19975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19976 (eval $ac_compile) 2>conftest.er1
a848cd7e 19977 ac_status=$?
ac1cb8d3
VS
19978 grep -v '^ *+' conftest.er1 >conftest.err
19979 rm -f conftest.er1
19980 cat conftest.err >&5
a848cd7e
SC
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); } &&
479c790c 19983 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19985 (eval $ac_try) 2>&5
19986 ac_status=$?
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); }; } &&
19989 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19991 (eval $ac_try) 2>&5
19992 ac_status=$?
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); }; }; then
19995 ac_hi=$ac_mid
19996else
19997 echo "$as_me: failed program was:" >&5
19998sed 's/^/| /' conftest.$ac_ext >&5
19999
20000ac_lo=`expr '(' $ac_mid ')' + 1`
20001fi
ac1cb8d3 20002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20003done
20004case $ac_lo in
20005?*) ac_cv_sizeof_long=$ac_lo;;
20006'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20007See \`config.log' for more details." >&5
20008echo "$as_me: error: cannot compute sizeof (long), 77
20009See \`config.log' for more details." >&2;}
20010 { (exit 1); exit 1; }; } ;;
20011esac
20012else
20013 if test "$cross_compiling" = yes; then
479c790c
VZ
20014 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20015echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20016 { (exit 1); exit 1; }; }
20017else
20018 cat >conftest.$ac_ext <<_ACEOF
20019/* confdefs.h. */
20020_ACEOF
20021cat confdefs.h >>conftest.$ac_ext
20022cat >>conftest.$ac_ext <<_ACEOF
20023/* end confdefs.h. */
20024$ac_includes_default
20025long longval () { return (long) (sizeof (long)); }
20026unsigned long ulongval () { return (long) (sizeof (long)); }
20027#include <stdio.h>
20028#include <stdlib.h>
20029int
20030main ()
20031{
20032
20033 FILE *f = fopen ("conftest.val", "w");
20034 if (! f)
20035 exit (1);
20036 if (((long) (sizeof (long))) < 0)
20037 {
20038 long i = longval ();
20039 if (i != ((long) (sizeof (long))))
20040 exit (1);
20041 fprintf (f, "%ld\n", i);
20042 }
20043 else
20044 {
20045 unsigned long i = ulongval ();
20046 if (i != ((long) (sizeof (long))))
20047 exit (1);
20048 fprintf (f, "%lu\n", i);
20049 }
20050 exit (ferror (f) || fclose (f) != 0);
20051
20052 ;
20053 return 0;
20054}
20055_ACEOF
20056rm -f conftest$ac_exeext
20057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20058 (eval $ac_link) 2>&5
20059 ac_status=$?
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20063 (eval $ac_try) 2>&5
20064 ac_status=$?
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); }; }; then
20067 ac_cv_sizeof_long=`cat conftest.val`
20068else
20069 echo "$as_me: program exited with status $ac_status" >&5
20070echo "$as_me: failed program was:" >&5
20071sed 's/^/| /' conftest.$ac_ext >&5
20072
20073( exit $ac_status )
20074{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20075See \`config.log' for more details." >&5
20076echo "$as_me: error: cannot compute sizeof (long), 77
20077See \`config.log' for more details." >&2;}
20078 { (exit 1); exit 1; }; }
20079fi
ac1cb8d3 20080rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20081fi
20082fi
20083rm -f conftest.val
20084else
20085 ac_cv_sizeof_long=0
20086fi
20087fi
20088echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
20089echo "${ECHO_T}$ac_cv_sizeof_long" >&6
20090cat >>confdefs.h <<_ACEOF
20091#define SIZEOF_LONG $ac_cv_sizeof_long
20092_ACEOF
20093
20094
20095echo "$as_me:$LINENO: checking for size_t" >&5
20096echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20097if test "${ac_cv_type_size_t+set}" = set; then
20098 echo $ECHO_N "(cached) $ECHO_C" >&6
20099else
20100 cat >conftest.$ac_ext <<_ACEOF
20101/* confdefs.h. */
20102_ACEOF
20103cat confdefs.h >>conftest.$ac_ext
20104cat >>conftest.$ac_ext <<_ACEOF
20105/* end confdefs.h. */
20106$ac_includes_default
20107int
20108main ()
20109{
20110if ((size_t *) 0)
20111 return 0;
20112if (sizeof (size_t))
20113 return 0;
20114 ;
20115 return 0;
20116}
20117_ACEOF
20118rm -f conftest.$ac_objext
20119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20120 (eval $ac_compile) 2>conftest.er1
a848cd7e 20121 ac_status=$?
ac1cb8d3
VS
20122 grep -v '^ *+' conftest.er1 >conftest.err
20123 rm -f conftest.er1
20124 cat conftest.err >&5
a848cd7e
SC
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); } &&
479c790c 20127 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20129 (eval $ac_try) 2>&5
20130 ac_status=$?
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); }; } &&
20133 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20135 (eval $ac_try) 2>&5
20136 ac_status=$?
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); }; }; then
20139 ac_cv_type_size_t=yes
20140else
20141 echo "$as_me: failed program was:" >&5
20142sed 's/^/| /' conftest.$ac_ext >&5
20143
20144ac_cv_type_size_t=no
20145fi
ac1cb8d3 20146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20147fi
20148echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20149echo "${ECHO_T}$ac_cv_type_size_t" >&6
20150
20151echo "$as_me:$LINENO: checking size of size_t" >&5
20152echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
20153if test "${ac_cv_sizeof_size_t+set}" = set; then
20154 echo $ECHO_N "(cached) $ECHO_C" >&6
20155else
20156 if test "$ac_cv_type_size_t" = yes; then
20157 # The cast to unsigned long works around a bug in the HP C Compiler
20158 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20159 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20160 # This bug is HP SR number 8606223364.
20161 if test "$cross_compiling" = yes; then
20162 # Depending upon the size, compute the lo and hi bounds.
20163cat >conftest.$ac_ext <<_ACEOF
20164/* confdefs.h. */
20165_ACEOF
20166cat confdefs.h >>conftest.$ac_ext
20167cat >>conftest.$ac_ext <<_ACEOF
20168/* end confdefs.h. */
20169$ac_includes_default
20170int
20171main ()
20172{
20173static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
20174test_array [0] = 0
20175
20176 ;
20177 return 0;
20178}
20179_ACEOF
20180rm -f conftest.$ac_objext
20181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20182 (eval $ac_compile) 2>conftest.er1
a848cd7e 20183 ac_status=$?
ac1cb8d3
VS
20184 grep -v '^ *+' conftest.er1 >conftest.err
20185 rm -f conftest.er1
20186 cat conftest.err >&5
a848cd7e
SC
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); } &&
479c790c 20189 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20191 (eval $ac_try) 2>&5
20192 ac_status=$?
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); }; } &&
20195 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
20201 ac_lo=0 ac_mid=0
20202 while :; do
20203 cat >conftest.$ac_ext <<_ACEOF
20204/* confdefs.h. */
20205_ACEOF
20206cat confdefs.h >>conftest.$ac_ext
20207cat >>conftest.$ac_ext <<_ACEOF
20208/* end confdefs.h. */
20209$ac_includes_default
20210int
20211main ()
20212{
20213static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20214test_array [0] = 0
20215
20216 ;
20217 return 0;
20218}
20219_ACEOF
20220rm -f conftest.$ac_objext
20221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20222 (eval $ac_compile) 2>conftest.er1
a848cd7e 20223 ac_status=$?
ac1cb8d3
VS
20224 grep -v '^ *+' conftest.er1 >conftest.err
20225 rm -f conftest.er1
20226 cat conftest.err >&5
a848cd7e
SC
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); } &&
479c790c 20229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231 (eval $ac_try) 2>&5
20232 ac_status=$?
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); }; } &&
20235 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20237 (eval $ac_try) 2>&5
20238 ac_status=$?
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); }; }; then
20241 ac_hi=$ac_mid; break
20242else
20243 echo "$as_me: failed program was:" >&5
20244sed 's/^/| /' conftest.$ac_ext >&5
20245
20246ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20247 if test $ac_lo -le $ac_mid; then
20248 ac_lo= ac_hi=
20249 break
20250 fi
20251 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20252fi
ac1cb8d3 20253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20254 done
20255else
20256 echo "$as_me: failed program was:" >&5
20257sed 's/^/| /' conftest.$ac_ext >&5
20258
20259cat >conftest.$ac_ext <<_ACEOF
20260/* confdefs.h. */
20261_ACEOF
20262cat confdefs.h >>conftest.$ac_ext
20263cat >>conftest.$ac_ext <<_ACEOF
20264/* end confdefs.h. */
20265$ac_includes_default
20266int
20267main ()
20268{
20269static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
20270test_array [0] = 0
20271
20272 ;
20273 return 0;
20274}
20275_ACEOF
20276rm -f conftest.$ac_objext
20277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20278 (eval $ac_compile) 2>conftest.er1
a848cd7e 20279 ac_status=$?
ac1cb8d3
VS
20280 grep -v '^ *+' conftest.er1 >conftest.err
20281 rm -f conftest.er1
20282 cat conftest.err >&5
a848cd7e
SC
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); } &&
479c790c 20285 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20287 (eval $ac_try) 2>&5
20288 ac_status=$?
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); }; } &&
20291 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20293 (eval $ac_try) 2>&5
20294 ac_status=$?
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); }; }; then
20297 ac_hi=-1 ac_mid=-1
20298 while :; do
20299 cat >conftest.$ac_ext <<_ACEOF
20300/* confdefs.h. */
20301_ACEOF
20302cat confdefs.h >>conftest.$ac_ext
20303cat >>conftest.$ac_ext <<_ACEOF
20304/* end confdefs.h. */
20305$ac_includes_default
20306int
20307main ()
20308{
20309static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
20310test_array [0] = 0
20311
20312 ;
20313 return 0;
20314}
20315_ACEOF
20316rm -f conftest.$ac_objext
20317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20318 (eval $ac_compile) 2>conftest.er1
a848cd7e 20319 ac_status=$?
ac1cb8d3
VS
20320 grep -v '^ *+' conftest.er1 >conftest.err
20321 rm -f conftest.er1
20322 cat conftest.err >&5
a848cd7e
SC
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324 (exit $ac_status); } &&
479c790c 20325 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20327 (eval $ac_try) 2>&5
20328 ac_status=$?
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); }; } &&
20331 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20333 (eval $ac_try) 2>&5
20334 ac_status=$?
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); }; }; then
20337 ac_lo=$ac_mid; break
20338else
20339 echo "$as_me: failed program was:" >&5
20340sed 's/^/| /' conftest.$ac_ext >&5
20341
20342ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20343 if test $ac_mid -le $ac_hi; then
20344 ac_lo= ac_hi=
20345 break
20346 fi
20347 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20348fi
ac1cb8d3 20349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20350 done
20351else
20352 echo "$as_me: failed program was:" >&5
20353sed 's/^/| /' conftest.$ac_ext >&5
20354
20355ac_lo= ac_hi=
20356fi
ac1cb8d3 20357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20358fi
ac1cb8d3 20359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20360# Binary search between lo and hi bounds.
20361while test "x$ac_lo" != "x$ac_hi"; do
20362 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20363 cat >conftest.$ac_ext <<_ACEOF
20364/* confdefs.h. */
20365_ACEOF
20366cat confdefs.h >>conftest.$ac_ext
20367cat >>conftest.$ac_ext <<_ACEOF
20368/* end confdefs.h. */
20369$ac_includes_default
20370int
20371main ()
20372{
20373static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20374test_array [0] = 0
20375
20376 ;
20377 return 0;
20378}
20379_ACEOF
20380rm -f conftest.$ac_objext
20381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20382 (eval $ac_compile) 2>conftest.er1
a848cd7e 20383 ac_status=$?
ac1cb8d3
VS
20384 grep -v '^ *+' conftest.er1 >conftest.err
20385 rm -f conftest.er1
20386 cat conftest.err >&5
a848cd7e
SC
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); } &&
479c790c 20389 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20391 (eval $ac_try) 2>&5
20392 ac_status=$?
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); }; } &&
20395 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20397 (eval $ac_try) 2>&5
20398 ac_status=$?
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); }; }; then
20401 ac_hi=$ac_mid
20402else
20403 echo "$as_me: failed program was:" >&5
20404sed 's/^/| /' conftest.$ac_ext >&5
20405
20406ac_lo=`expr '(' $ac_mid ')' + 1`
20407fi
ac1cb8d3 20408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20409done
20410case $ac_lo in
20411?*) ac_cv_sizeof_size_t=$ac_lo;;
20412'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20413See \`config.log' for more details." >&5
20414echo "$as_me: error: cannot compute sizeof (size_t), 77
20415See \`config.log' for more details." >&2;}
20416 { (exit 1); exit 1; }; } ;;
20417esac
20418else
20419 if test "$cross_compiling" = yes; then
479c790c
VZ
20420 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20421echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20422 { (exit 1); exit 1; }; }
20423else
20424 cat >conftest.$ac_ext <<_ACEOF
20425/* confdefs.h. */
20426_ACEOF
20427cat confdefs.h >>conftest.$ac_ext
20428cat >>conftest.$ac_ext <<_ACEOF
20429/* end confdefs.h. */
20430$ac_includes_default
20431long longval () { return (long) (sizeof (size_t)); }
20432unsigned long ulongval () { return (long) (sizeof (size_t)); }
20433#include <stdio.h>
20434#include <stdlib.h>
20435int
20436main ()
20437{
20438
20439 FILE *f = fopen ("conftest.val", "w");
20440 if (! f)
20441 exit (1);
20442 if (((long) (sizeof (size_t))) < 0)
20443 {
20444 long i = longval ();
20445 if (i != ((long) (sizeof (size_t))))
20446 exit (1);
20447 fprintf (f, "%ld\n", i);
20448 }
20449 else
20450 {
20451 unsigned long i = ulongval ();
20452 if (i != ((long) (sizeof (size_t))))
20453 exit (1);
20454 fprintf (f, "%lu\n", i);
20455 }
20456 exit (ferror (f) || fclose (f) != 0);
20457
20458 ;
20459 return 0;
20460}
20461_ACEOF
20462rm -f conftest$ac_exeext
20463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20464 (eval $ac_link) 2>&5
20465 ac_status=$?
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20469 (eval $ac_try) 2>&5
20470 ac_status=$?
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); }; }; then
20473 ac_cv_sizeof_size_t=`cat conftest.val`
20474else
20475 echo "$as_me: program exited with status $ac_status" >&5
20476echo "$as_me: failed program was:" >&5
20477sed 's/^/| /' conftest.$ac_ext >&5
20478
20479( exit $ac_status )
20480{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20481See \`config.log' for more details." >&5
20482echo "$as_me: error: cannot compute sizeof (size_t), 77
20483See \`config.log' for more details." >&2;}
20484 { (exit 1); exit 1; }; }
20485fi
ac1cb8d3 20486rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20487fi
20488fi
20489rm -f conftest.val
20490else
20491 ac_cv_sizeof_size_t=0
20492fi
20493fi
20494echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20495echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20496cat >>confdefs.h <<_ACEOF
20497#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20498_ACEOF
20499
20500
20501
20502case "${host}" in
20503 arm-*-linux* )
20504 echo "$as_me:$LINENO: checking for long long" >&5
20505echo $ECHO_N "checking for long long... $ECHO_C" >&6
20506if test "${ac_cv_type_long_long+set}" = set; then
20507 echo $ECHO_N "(cached) $ECHO_C" >&6
20508else
20509 cat >conftest.$ac_ext <<_ACEOF
20510/* confdefs.h. */
20511_ACEOF
20512cat confdefs.h >>conftest.$ac_ext
20513cat >>conftest.$ac_ext <<_ACEOF
20514/* end confdefs.h. */
20515$ac_includes_default
20516int
20517main ()
20518{
20519if ((long long *) 0)
20520 return 0;
20521if (sizeof (long long))
20522 return 0;
20523 ;
20524 return 0;
20525}
20526_ACEOF
20527rm -f conftest.$ac_objext
20528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20529 (eval $ac_compile) 2>conftest.er1
a848cd7e 20530 ac_status=$?
ac1cb8d3
VS
20531 grep -v '^ *+' conftest.er1 >conftest.err
20532 rm -f conftest.er1
20533 cat conftest.err >&5
a848cd7e
SC
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); } &&
479c790c 20536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20538 (eval $ac_try) 2>&5
20539 ac_status=$?
20540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541 (exit $ac_status); }; } &&
20542 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20544 (eval $ac_try) 2>&5
20545 ac_status=$?
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); }; }; then
20548 ac_cv_type_long_long=yes
20549else
20550 echo "$as_me: failed program was:" >&5
20551sed 's/^/| /' conftest.$ac_ext >&5
20552
20553ac_cv_type_long_long=no
20554fi
ac1cb8d3 20555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20556fi
20557echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20558echo "${ECHO_T}$ac_cv_type_long_long" >&6
20559
20560echo "$as_me:$LINENO: checking size of long long" >&5
20561echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20562if test "${ac_cv_sizeof_long_long+set}" = set; then
20563 echo $ECHO_N "(cached) $ECHO_C" >&6
20564else
20565 if test "$ac_cv_type_long_long" = yes; then
20566 # The cast to unsigned long works around a bug in the HP C Compiler
20567 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20568 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20569 # This bug is HP SR number 8606223364.
20570 if test "$cross_compiling" = yes; then
20571 # Depending upon the size, compute the lo and hi bounds.
20572cat >conftest.$ac_ext <<_ACEOF
20573/* confdefs.h. */
20574_ACEOF
20575cat confdefs.h >>conftest.$ac_ext
20576cat >>conftest.$ac_ext <<_ACEOF
20577/* end confdefs.h. */
20578$ac_includes_default
20579int
20580main ()
20581{
20582static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20583test_array [0] = 0
20584
20585 ;
20586 return 0;
20587}
20588_ACEOF
20589rm -f conftest.$ac_objext
20590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20591 (eval $ac_compile) 2>conftest.er1
a848cd7e 20592 ac_status=$?
ac1cb8d3
VS
20593 grep -v '^ *+' conftest.er1 >conftest.err
20594 rm -f conftest.er1
20595 cat conftest.err >&5
a848cd7e
SC
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); } &&
479c790c 20598 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20600 (eval $ac_try) 2>&5
20601 ac_status=$?
20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603 (exit $ac_status); }; } &&
20604 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606 (eval $ac_try) 2>&5
20607 ac_status=$?
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); }; }; then
20610 ac_lo=0 ac_mid=0
20611 while :; do
20612 cat >conftest.$ac_ext <<_ACEOF
20613/* confdefs.h. */
20614_ACEOF
20615cat confdefs.h >>conftest.$ac_ext
20616cat >>conftest.$ac_ext <<_ACEOF
20617/* end confdefs.h. */
20618$ac_includes_default
20619int
20620main ()
20621{
20622static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20623test_array [0] = 0
20624
20625 ;
20626 return 0;
20627}
20628_ACEOF
20629rm -f conftest.$ac_objext
20630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20631 (eval $ac_compile) 2>conftest.er1
a848cd7e 20632 ac_status=$?
ac1cb8d3
VS
20633 grep -v '^ *+' conftest.er1 >conftest.err
20634 rm -f conftest.er1
20635 cat conftest.err >&5
a848cd7e
SC
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); } &&
479c790c 20638 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20640 (eval $ac_try) 2>&5
20641 ac_status=$?
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); }; } &&
20644 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20646 (eval $ac_try) 2>&5
20647 ac_status=$?
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); }; }; then
20650 ac_hi=$ac_mid; break
20651else
20652 echo "$as_me: failed program was:" >&5
20653sed 's/^/| /' conftest.$ac_ext >&5
20654
20655ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20656 if test $ac_lo -le $ac_mid; then
20657 ac_lo= ac_hi=
20658 break
20659 fi
20660 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20661fi
ac1cb8d3 20662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20663 done
20664else
20665 echo "$as_me: failed program was:" >&5
20666sed 's/^/| /' conftest.$ac_ext >&5
20667
20668cat >conftest.$ac_ext <<_ACEOF
20669/* confdefs.h. */
20670_ACEOF
20671cat confdefs.h >>conftest.$ac_ext
20672cat >>conftest.$ac_ext <<_ACEOF
20673/* end confdefs.h. */
20674$ac_includes_default
20675int
20676main ()
20677{
20678static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20679test_array [0] = 0
20680
20681 ;
20682 return 0;
20683}
20684_ACEOF
20685rm -f conftest.$ac_objext
20686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20687 (eval $ac_compile) 2>conftest.er1
a848cd7e 20688 ac_status=$?
ac1cb8d3
VS
20689 grep -v '^ *+' conftest.er1 >conftest.err
20690 rm -f conftest.er1
20691 cat conftest.err >&5
a848cd7e
SC
20692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693 (exit $ac_status); } &&
479c790c 20694 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20696 (eval $ac_try) 2>&5
20697 ac_status=$?
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); }; } &&
20700 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20702 (eval $ac_try) 2>&5
20703 ac_status=$?
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); }; }; then
20706 ac_hi=-1 ac_mid=-1
20707 while :; do
20708 cat >conftest.$ac_ext <<_ACEOF
20709/* confdefs.h. */
20710_ACEOF
20711cat confdefs.h >>conftest.$ac_ext
20712cat >>conftest.$ac_ext <<_ACEOF
20713/* end confdefs.h. */
20714$ac_includes_default
20715int
20716main ()
20717{
20718static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20719test_array [0] = 0
20720
20721 ;
20722 return 0;
20723}
20724_ACEOF
20725rm -f conftest.$ac_objext
20726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20727 (eval $ac_compile) 2>conftest.er1
a848cd7e 20728 ac_status=$?
ac1cb8d3
VS
20729 grep -v '^ *+' conftest.er1 >conftest.err
20730 rm -f conftest.er1
20731 cat conftest.err >&5
a848cd7e
SC
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); } &&
479c790c 20734 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20736 (eval $ac_try) 2>&5
20737 ac_status=$?
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); }; } &&
20740 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742 (eval $ac_try) 2>&5
20743 ac_status=$?
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); }; }; then
20746 ac_lo=$ac_mid; break
20747else
20748 echo "$as_me: failed program was:" >&5
20749sed 's/^/| /' conftest.$ac_ext >&5
20750
20751ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20752 if test $ac_mid -le $ac_hi; then
20753 ac_lo= ac_hi=
20754 break
20755 fi
20756 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20757fi
ac1cb8d3 20758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20759 done
20760else
20761 echo "$as_me: failed program was:" >&5
20762sed 's/^/| /' conftest.$ac_ext >&5
20763
20764ac_lo= ac_hi=
20765fi
ac1cb8d3 20766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20767fi
ac1cb8d3 20768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20769# Binary search between lo and hi bounds.
20770while test "x$ac_lo" != "x$ac_hi"; do
20771 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20772 cat >conftest.$ac_ext <<_ACEOF
20773/* confdefs.h. */
20774_ACEOF
20775cat confdefs.h >>conftest.$ac_ext
20776cat >>conftest.$ac_ext <<_ACEOF
20777/* end confdefs.h. */
20778$ac_includes_default
20779int
20780main ()
20781{
20782static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20783test_array [0] = 0
20784
20785 ;
20786 return 0;
20787}
20788_ACEOF
20789rm -f conftest.$ac_objext
20790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20791 (eval $ac_compile) 2>conftest.er1
a848cd7e 20792 ac_status=$?
ac1cb8d3
VS
20793 grep -v '^ *+' conftest.er1 >conftest.err
20794 rm -f conftest.er1
20795 cat conftest.err >&5
a848cd7e
SC
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); } &&
479c790c 20798 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20800 (eval $ac_try) 2>&5
20801 ac_status=$?
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); }; } &&
20804 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20806 (eval $ac_try) 2>&5
20807 ac_status=$?
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; }; then
20810 ac_hi=$ac_mid
20811else
20812 echo "$as_me: failed program was:" >&5
20813sed 's/^/| /' conftest.$ac_ext >&5
20814
20815ac_lo=`expr '(' $ac_mid ')' + 1`
20816fi
ac1cb8d3 20817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20818done
20819case $ac_lo in
20820?*) ac_cv_sizeof_long_long=$ac_lo;;
20821'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20822See \`config.log' for more details." >&5
20823echo "$as_me: error: cannot compute sizeof (long long), 77
20824See \`config.log' for more details." >&2;}
20825 { (exit 1); exit 1; }; } ;;
20826esac
20827else
20828 if test "$cross_compiling" = yes; then
479c790c
VZ
20829 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20830echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20831 { (exit 1); exit 1; }; }
20832else
20833 cat >conftest.$ac_ext <<_ACEOF
20834/* confdefs.h. */
20835_ACEOF
20836cat confdefs.h >>conftest.$ac_ext
20837cat >>conftest.$ac_ext <<_ACEOF
20838/* end confdefs.h. */
20839$ac_includes_default
20840long longval () { return (long) (sizeof (long long)); }
20841unsigned long ulongval () { return (long) (sizeof (long long)); }
20842#include <stdio.h>
20843#include <stdlib.h>
20844int
20845main ()
20846{
20847
20848 FILE *f = fopen ("conftest.val", "w");
20849 if (! f)
20850 exit (1);
20851 if (((long) (sizeof (long long))) < 0)
20852 {
20853 long i = longval ();
20854 if (i != ((long) (sizeof (long long))))
20855 exit (1);
20856 fprintf (f, "%ld\n", i);
20857 }
20858 else
20859 {
20860 unsigned long i = ulongval ();
20861 if (i != ((long) (sizeof (long long))))
20862 exit (1);
20863 fprintf (f, "%lu\n", i);
20864 }
20865 exit (ferror (f) || fclose (f) != 0);
20866
20867 ;
20868 return 0;
20869}
20870_ACEOF
20871rm -f conftest$ac_exeext
20872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20873 (eval $ac_link) 2>&5
20874 ac_status=$?
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20878 (eval $ac_try) 2>&5
20879 ac_status=$?
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); }; }; then
20882 ac_cv_sizeof_long_long=`cat conftest.val`
20883else
20884 echo "$as_me: program exited with status $ac_status" >&5
20885echo "$as_me: failed program was:" >&5
20886sed 's/^/| /' conftest.$ac_ext >&5
20887
20888( exit $ac_status )
20889{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20890See \`config.log' for more details." >&5
20891echo "$as_me: error: cannot compute sizeof (long long), 77
20892See \`config.log' for more details." >&2;}
20893 { (exit 1); exit 1; }; }
20894fi
ac1cb8d3 20895rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20896fi
20897fi
20898rm -f conftest.val
20899else
20900 ac_cv_sizeof_long_long=0
20901fi
20902fi
20903echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20904echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20905cat >>confdefs.h <<_ACEOF
20906#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20907_ACEOF
20908
20909
20910 ;;
20911 *-hp-hpux* )
20912 echo "$as_me:$LINENO: checking for long long" >&5
20913echo $ECHO_N "checking for long long... $ECHO_C" >&6
20914if test "${ac_cv_type_long_long+set}" = set; then
20915 echo $ECHO_N "(cached) $ECHO_C" >&6
20916else
20917 cat >conftest.$ac_ext <<_ACEOF
20918/* confdefs.h. */
20919_ACEOF
20920cat confdefs.h >>conftest.$ac_ext
20921cat >>conftest.$ac_ext <<_ACEOF
20922/* end confdefs.h. */
20923$ac_includes_default
20924int
20925main ()
20926{
20927if ((long long *) 0)
20928 return 0;
20929if (sizeof (long long))
20930 return 0;
20931 ;
20932 return 0;
20933}
20934_ACEOF
20935rm -f conftest.$ac_objext
20936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20937 (eval $ac_compile) 2>conftest.er1
a848cd7e 20938 ac_status=$?
ac1cb8d3
VS
20939 grep -v '^ *+' conftest.er1 >conftest.err
20940 rm -f conftest.er1
20941 cat conftest.err >&5
a848cd7e
SC
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); } &&
479c790c 20944 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20946 (eval $ac_try) 2>&5
20947 ac_status=$?
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); }; } &&
20950 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20952 (eval $ac_try) 2>&5
20953 ac_status=$?
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); }; }; then
20956 ac_cv_type_long_long=yes
20957else
20958 echo "$as_me: failed program was:" >&5
20959sed 's/^/| /' conftest.$ac_ext >&5
20960
20961ac_cv_type_long_long=no
20962fi
ac1cb8d3 20963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20964fi
20965echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20966echo "${ECHO_T}$ac_cv_type_long_long" >&6
20967
20968echo "$as_me:$LINENO: checking size of long long" >&5
20969echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20970if test "${ac_cv_sizeof_long_long+set}" = set; then
20971 echo $ECHO_N "(cached) $ECHO_C" >&6
20972else
20973 if test "$ac_cv_type_long_long" = yes; then
20974 # The cast to unsigned long works around a bug in the HP C Compiler
20975 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20976 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20977 # This bug is HP SR number 8606223364.
20978 if test "$cross_compiling" = yes; then
20979 # Depending upon the size, compute the lo and hi bounds.
20980cat >conftest.$ac_ext <<_ACEOF
20981/* confdefs.h. */
20982_ACEOF
20983cat confdefs.h >>conftest.$ac_ext
20984cat >>conftest.$ac_ext <<_ACEOF
20985/* end confdefs.h. */
20986$ac_includes_default
20987int
20988main ()
20989{
20990static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20991test_array [0] = 0
20992
20993 ;
20994 return 0;
20995}
20996_ACEOF
20997rm -f conftest.$ac_objext
20998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20999 (eval $ac_compile) 2>conftest.er1
a848cd7e 21000 ac_status=$?
ac1cb8d3
VS
21001 grep -v '^ *+' conftest.er1 >conftest.err
21002 rm -f conftest.er1
21003 cat conftest.err >&5
a848cd7e
SC
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); } &&
479c790c 21006 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21008 (eval $ac_try) 2>&5
21009 ac_status=$?
21010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011 (exit $ac_status); }; } &&
21012 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21014 (eval $ac_try) 2>&5
21015 ac_status=$?
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); }; }; then
21018 ac_lo=0 ac_mid=0
21019 while :; do
21020 cat >conftest.$ac_ext <<_ACEOF
21021/* confdefs.h. */
21022_ACEOF
21023cat confdefs.h >>conftest.$ac_ext
21024cat >>conftest.$ac_ext <<_ACEOF
21025/* end confdefs.h. */
21026$ac_includes_default
21027int
21028main ()
21029{
21030static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21031test_array [0] = 0
21032
21033 ;
21034 return 0;
21035}
21036_ACEOF
21037rm -f conftest.$ac_objext
21038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21039 (eval $ac_compile) 2>conftest.er1
a848cd7e 21040 ac_status=$?
ac1cb8d3
VS
21041 grep -v '^ *+' conftest.er1 >conftest.err
21042 rm -f conftest.er1
21043 cat conftest.err >&5
a848cd7e
SC
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); } &&
479c790c 21046 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21048 (eval $ac_try) 2>&5
21049 ac_status=$?
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); }; } &&
21052 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21054 (eval $ac_try) 2>&5
21055 ac_status=$?
21056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057 (exit $ac_status); }; }; then
21058 ac_hi=$ac_mid; break
21059else
21060 echo "$as_me: failed program was:" >&5
21061sed 's/^/| /' conftest.$ac_ext >&5
21062
21063ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
21064 if test $ac_lo -le $ac_mid; then
21065 ac_lo= ac_hi=
21066 break
21067 fi
21068 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 21069fi
ac1cb8d3 21070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21071 done
21072else
21073 echo "$as_me: failed program was:" >&5
21074sed 's/^/| /' conftest.$ac_ext >&5
21075
21076cat >conftest.$ac_ext <<_ACEOF
21077/* confdefs.h. */
21078_ACEOF
21079cat confdefs.h >>conftest.$ac_ext
21080cat >>conftest.$ac_ext <<_ACEOF
21081/* end confdefs.h. */
21082$ac_includes_default
21083int
21084main ()
21085{
21086static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21087test_array [0] = 0
21088
21089 ;
21090 return 0;
21091}
21092_ACEOF
21093rm -f conftest.$ac_objext
21094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21095 (eval $ac_compile) 2>conftest.er1
a848cd7e 21096 ac_status=$?
ac1cb8d3
VS
21097 grep -v '^ *+' conftest.er1 >conftest.err
21098 rm -f conftest.er1
21099 cat conftest.err >&5
a848cd7e
SC
21100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); } &&
479c790c 21102 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21104 (eval $ac_try) 2>&5
21105 ac_status=$?
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); }; } &&
21108 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21110 (eval $ac_try) 2>&5
21111 ac_status=$?
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); }; }; then
21114 ac_hi=-1 ac_mid=-1
21115 while :; do
21116 cat >conftest.$ac_ext <<_ACEOF
21117/* confdefs.h. */
21118_ACEOF
21119cat confdefs.h >>conftest.$ac_ext
21120cat >>conftest.$ac_ext <<_ACEOF
21121/* end confdefs.h. */
21122$ac_includes_default
21123int
21124main ()
21125{
21126static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21127test_array [0] = 0
21128
21129 ;
21130 return 0;
21131}
21132_ACEOF
21133rm -f conftest.$ac_objext
21134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21135 (eval $ac_compile) 2>conftest.er1
a848cd7e 21136 ac_status=$?
ac1cb8d3
VS
21137 grep -v '^ *+' conftest.er1 >conftest.err
21138 rm -f conftest.er1
21139 cat conftest.err >&5
a848cd7e
SC
21140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141 (exit $ac_status); } &&
479c790c 21142 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21144 (eval $ac_try) 2>&5
21145 ac_status=$?
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); }; } &&
21148 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21150 (eval $ac_try) 2>&5
21151 ac_status=$?
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); }; }; then
21154 ac_lo=$ac_mid; break
21155else
21156 echo "$as_me: failed program was:" >&5
21157sed 's/^/| /' conftest.$ac_ext >&5
21158
21159ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
21160 if test $ac_mid -le $ac_hi; then
21161 ac_lo= ac_hi=
21162 break
21163 fi
21164 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21165fi
ac1cb8d3 21166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21167 done
21168else
21169 echo "$as_me: failed program was:" >&5
21170sed 's/^/| /' conftest.$ac_ext >&5
21171
21172ac_lo= ac_hi=
21173fi
ac1cb8d3 21174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21175fi
ac1cb8d3 21176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21177# Binary search between lo and hi bounds.
21178while test "x$ac_lo" != "x$ac_hi"; do
21179 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21180 cat >conftest.$ac_ext <<_ACEOF
21181/* confdefs.h. */
21182_ACEOF
21183cat confdefs.h >>conftest.$ac_ext
21184cat >>conftest.$ac_ext <<_ACEOF
21185/* end confdefs.h. */
21186$ac_includes_default
21187int
21188main ()
21189{
21190static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21191test_array [0] = 0
21192
21193 ;
21194 return 0;
21195}
21196_ACEOF
21197rm -f conftest.$ac_objext
21198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21199 (eval $ac_compile) 2>conftest.er1
a848cd7e 21200 ac_status=$?
ac1cb8d3
VS
21201 grep -v '^ *+' conftest.er1 >conftest.err
21202 rm -f conftest.er1
21203 cat conftest.err >&5
a848cd7e
SC
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); } &&
479c790c 21206 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21208 (eval $ac_try) 2>&5
21209 ac_status=$?
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); }; } &&
21212 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21214 (eval $ac_try) 2>&5
21215 ac_status=$?
21216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217 (exit $ac_status); }; }; then
21218 ac_hi=$ac_mid
21219else
21220 echo "$as_me: failed program was:" >&5
21221sed 's/^/| /' conftest.$ac_ext >&5
21222
21223ac_lo=`expr '(' $ac_mid ')' + 1`
21224fi
ac1cb8d3 21225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21226done
21227case $ac_lo in
21228?*) ac_cv_sizeof_long_long=$ac_lo;;
21229'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21230See \`config.log' for more details." >&5
21231echo "$as_me: error: cannot compute sizeof (long long), 77
21232See \`config.log' for more details." >&2;}
21233 { (exit 1); exit 1; }; } ;;
21234esac
21235else
21236 if test "$cross_compiling" = yes; then
479c790c
VZ
21237 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21238echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
21239 { (exit 1); exit 1; }; }
21240else
21241 cat >conftest.$ac_ext <<_ACEOF
21242/* confdefs.h. */
21243_ACEOF
21244cat confdefs.h >>conftest.$ac_ext
21245cat >>conftest.$ac_ext <<_ACEOF
21246/* end confdefs.h. */
21247$ac_includes_default
21248long longval () { return (long) (sizeof (long long)); }
21249unsigned long ulongval () { return (long) (sizeof (long long)); }
21250#include <stdio.h>
21251#include <stdlib.h>
21252int
21253main ()
21254{
21255
21256 FILE *f = fopen ("conftest.val", "w");
21257 if (! f)
21258 exit (1);
21259 if (((long) (sizeof (long long))) < 0)
21260 {
21261 long i = longval ();
21262 if (i != ((long) (sizeof (long long))))
21263 exit (1);
21264 fprintf (f, "%ld\n", i);
21265 }
21266 else
21267 {
21268 unsigned long i = ulongval ();
21269 if (i != ((long) (sizeof (long long))))
21270 exit (1);
21271 fprintf (f, "%lu\n", i);
21272 }
21273 exit (ferror (f) || fclose (f) != 0);
21274
21275 ;
21276 return 0;
21277}
21278_ACEOF
21279rm -f conftest$ac_exeext
21280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21281 (eval $ac_link) 2>&5
21282 ac_status=$?
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21286 (eval $ac_try) 2>&5
21287 ac_status=$?
21288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289 (exit $ac_status); }; }; then
21290 ac_cv_sizeof_long_long=`cat conftest.val`
21291else
21292 echo "$as_me: program exited with status $ac_status" >&5
21293echo "$as_me: failed program was:" >&5
21294sed 's/^/| /' conftest.$ac_ext >&5
21295
21296( exit $ac_status )
21297{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21298See \`config.log' for more details." >&5
21299echo "$as_me: error: cannot compute sizeof (long long), 77
21300See \`config.log' for more details." >&2;}
21301 { (exit 1); exit 1; }; }
21302fi
ac1cb8d3 21303rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21304fi
21305fi
21306rm -f conftest.val
21307else
21308 ac_cv_sizeof_long_long=0
21309fi
21310fi
21311echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21312echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21313cat >>confdefs.h <<_ACEOF
21314#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21315_ACEOF
21316
21317
21318 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 21319 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
21320 fi
21321 ;;
21322 * )
21323 echo "$as_me:$LINENO: checking for long long" >&5
21324echo $ECHO_N "checking for long long... $ECHO_C" >&6
21325if test "${ac_cv_type_long_long+set}" = set; then
21326 echo $ECHO_N "(cached) $ECHO_C" >&6
21327else
21328 cat >conftest.$ac_ext <<_ACEOF
21329/* confdefs.h. */
21330_ACEOF
21331cat confdefs.h >>conftest.$ac_ext
21332cat >>conftest.$ac_ext <<_ACEOF
21333/* end confdefs.h. */
21334$ac_includes_default
21335int
21336main ()
21337{
21338if ((long long *) 0)
21339 return 0;
21340if (sizeof (long long))
21341 return 0;
21342 ;
21343 return 0;
21344}
21345_ACEOF
21346rm -f conftest.$ac_objext
21347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21348 (eval $ac_compile) 2>conftest.er1
a848cd7e 21349 ac_status=$?
ac1cb8d3
VS
21350 grep -v '^ *+' conftest.er1 >conftest.err
21351 rm -f conftest.er1
21352 cat conftest.err >&5
a848cd7e
SC
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); } &&
479c790c 21355 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21357 (eval $ac_try) 2>&5
21358 ac_status=$?
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); }; } &&
21361 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21363 (eval $ac_try) 2>&5
21364 ac_status=$?
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); }; }; then
21367 ac_cv_type_long_long=yes
21368else
21369 echo "$as_me: failed program was:" >&5
21370sed 's/^/| /' conftest.$ac_ext >&5
21371
21372ac_cv_type_long_long=no
21373fi
ac1cb8d3 21374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21375fi
21376echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21377echo "${ECHO_T}$ac_cv_type_long_long" >&6
21378
21379echo "$as_me:$LINENO: checking size of long long" >&5
21380echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21381if test "${ac_cv_sizeof_long_long+set}" = set; then
21382 echo $ECHO_N "(cached) $ECHO_C" >&6
21383else
21384 if test "$ac_cv_type_long_long" = yes; then
21385 # The cast to unsigned long works around a bug in the HP C Compiler
21386 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21387 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21388 # This bug is HP SR number 8606223364.
21389 if test "$cross_compiling" = yes; then
21390 # Depending upon the size, compute the lo and hi bounds.
21391cat >conftest.$ac_ext <<_ACEOF
21392/* confdefs.h. */
21393_ACEOF
21394cat confdefs.h >>conftest.$ac_ext
21395cat >>conftest.$ac_ext <<_ACEOF
21396/* end confdefs.h. */
21397$ac_includes_default
21398int
21399main ()
21400{
21401static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21402test_array [0] = 0
21403
21404 ;
21405 return 0;
21406}
21407_ACEOF
21408rm -f conftest.$ac_objext
21409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21410 (eval $ac_compile) 2>conftest.er1
a848cd7e 21411 ac_status=$?
ac1cb8d3
VS
21412 grep -v '^ *+' conftest.er1 >conftest.err
21413 rm -f conftest.er1
21414 cat conftest.err >&5
a848cd7e
SC
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); } &&
479c790c 21417 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21419 (eval $ac_try) 2>&5
21420 ac_status=$?
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); }; } &&
21423 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21425 (eval $ac_try) 2>&5
21426 ac_status=$?
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); }; }; then
21429 ac_lo=0 ac_mid=0
21430 while :; do
21431 cat >conftest.$ac_ext <<_ACEOF
21432/* confdefs.h. */
21433_ACEOF
21434cat confdefs.h >>conftest.$ac_ext
21435cat >>conftest.$ac_ext <<_ACEOF
21436/* end confdefs.h. */
21437$ac_includes_default
21438int
21439main ()
21440{
21441static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21442test_array [0] = 0
21443
21444 ;
21445 return 0;
21446}
21447_ACEOF
21448rm -f conftest.$ac_objext
21449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21450 (eval $ac_compile) 2>conftest.er1
a848cd7e 21451 ac_status=$?
ac1cb8d3
VS
21452 grep -v '^ *+' conftest.er1 >conftest.err
21453 rm -f conftest.er1
21454 cat conftest.err >&5
a848cd7e
SC
21455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456 (exit $ac_status); } &&
479c790c 21457 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21459 (eval $ac_try) 2>&5
21460 ac_status=$?
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); }; } &&
21463 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21465 (eval $ac_try) 2>&5
21466 ac_status=$?
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); }; }; then
21469 ac_hi=$ac_mid; break
21470else
21471 echo "$as_me: failed program was:" >&5
21472sed 's/^/| /' conftest.$ac_ext >&5
21473
21474ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
21475 if test $ac_lo -le $ac_mid; then
21476 ac_lo= ac_hi=
21477 break
21478 fi
21479 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 21480fi
ac1cb8d3 21481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21482 done
21483else
21484 echo "$as_me: failed program was:" >&5
21485sed 's/^/| /' conftest.$ac_ext >&5
21486
21487cat >conftest.$ac_ext <<_ACEOF
21488/* confdefs.h. */
21489_ACEOF
21490cat confdefs.h >>conftest.$ac_ext
21491cat >>conftest.$ac_ext <<_ACEOF
21492/* end confdefs.h. */
21493$ac_includes_default
21494int
21495main ()
21496{
21497static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21498test_array [0] = 0
21499
21500 ;
21501 return 0;
21502}
21503_ACEOF
21504rm -f conftest.$ac_objext
21505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21506 (eval $ac_compile) 2>conftest.er1
a848cd7e 21507 ac_status=$?
ac1cb8d3
VS
21508 grep -v '^ *+' conftest.er1 >conftest.err
21509 rm -f conftest.er1
21510 cat conftest.err >&5
a848cd7e
SC
21511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); } &&
479c790c 21513 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21515 (eval $ac_try) 2>&5
21516 ac_status=$?
21517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518 (exit $ac_status); }; } &&
21519 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21521 (eval $ac_try) 2>&5
21522 ac_status=$?
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); }; }; then
21525 ac_hi=-1 ac_mid=-1
21526 while :; do
21527 cat >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$ac_includes_default
21534int
21535main ()
21536{
21537static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21538test_array [0] = 0
21539
21540 ;
21541 return 0;
21542}
21543_ACEOF
21544rm -f conftest.$ac_objext
21545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21546 (eval $ac_compile) 2>conftest.er1
a848cd7e 21547 ac_status=$?
ac1cb8d3
VS
21548 grep -v '^ *+' conftest.er1 >conftest.err
21549 rm -f conftest.er1
21550 cat conftest.err >&5
a848cd7e
SC
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); } &&
479c790c 21553 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21555 (eval $ac_try) 2>&5
21556 ac_status=$?
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); }; } &&
21559 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561 (eval $ac_try) 2>&5
21562 ac_status=$?
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); }; }; then
21565 ac_lo=$ac_mid; break
21566else
21567 echo "$as_me: failed program was:" >&5
21568sed 's/^/| /' conftest.$ac_ext >&5
21569
21570ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
21571 if test $ac_mid -le $ac_hi; then
21572 ac_lo= ac_hi=
21573 break
21574 fi
21575 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21576fi
ac1cb8d3 21577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21578 done
21579else
21580 echo "$as_me: failed program was:" >&5
21581sed 's/^/| /' conftest.$ac_ext >&5
21582
21583ac_lo= ac_hi=
21584fi
ac1cb8d3 21585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21586fi
ac1cb8d3 21587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21588# Binary search between lo and hi bounds.
21589while test "x$ac_lo" != "x$ac_hi"; do
21590 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21591 cat >conftest.$ac_ext <<_ACEOF
21592/* confdefs.h. */
21593_ACEOF
21594cat confdefs.h >>conftest.$ac_ext
21595cat >>conftest.$ac_ext <<_ACEOF
21596/* end confdefs.h. */
21597$ac_includes_default
21598int
21599main ()
21600{
21601static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21602test_array [0] = 0
21603
21604 ;
21605 return 0;
21606}
21607_ACEOF
21608rm -f conftest.$ac_objext
21609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21610 (eval $ac_compile) 2>conftest.er1
a848cd7e 21611 ac_status=$?
ac1cb8d3
VS
21612 grep -v '^ *+' conftest.er1 >conftest.err
21613 rm -f conftest.er1
21614 cat conftest.err >&5
a848cd7e
SC
21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616 (exit $ac_status); } &&
479c790c 21617 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21619 (eval $ac_try) 2>&5
21620 ac_status=$?
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); }; } &&
21623 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21625 (eval $ac_try) 2>&5
21626 ac_status=$?
21627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); }; }; then
21629 ac_hi=$ac_mid
21630else
21631 echo "$as_me: failed program was:" >&5
21632sed 's/^/| /' conftest.$ac_ext >&5
21633
21634ac_lo=`expr '(' $ac_mid ')' + 1`
21635fi
ac1cb8d3 21636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21637done
21638case $ac_lo in
21639?*) ac_cv_sizeof_long_long=$ac_lo;;
21640'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21641See \`config.log' for more details." >&5
21642echo "$as_me: error: cannot compute sizeof (long long), 77
21643See \`config.log' for more details." >&2;}
21644 { (exit 1); exit 1; }; } ;;
21645esac
21646else
21647 if test "$cross_compiling" = yes; then
479c790c
VZ
21648 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21649echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
21650 { (exit 1); exit 1; }; }
21651else
21652 cat >conftest.$ac_ext <<_ACEOF
21653/* confdefs.h. */
21654_ACEOF
21655cat confdefs.h >>conftest.$ac_ext
21656cat >>conftest.$ac_ext <<_ACEOF
21657/* end confdefs.h. */
21658$ac_includes_default
21659long longval () { return (long) (sizeof (long long)); }
21660unsigned long ulongval () { return (long) (sizeof (long long)); }
21661#include <stdio.h>
21662#include <stdlib.h>
21663int
21664main ()
21665{
21666
21667 FILE *f = fopen ("conftest.val", "w");
21668 if (! f)
21669 exit (1);
21670 if (((long) (sizeof (long long))) < 0)
21671 {
21672 long i = longval ();
21673 if (i != ((long) (sizeof (long long))))
21674 exit (1);
21675 fprintf (f, "%ld\n", i);
21676 }
21677 else
21678 {
21679 unsigned long i = ulongval ();
21680 if (i != ((long) (sizeof (long long))))
21681 exit (1);
21682 fprintf (f, "%lu\n", i);
21683 }
21684 exit (ferror (f) || fclose (f) != 0);
21685
21686 ;
21687 return 0;
21688}
21689_ACEOF
21690rm -f conftest$ac_exeext
21691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21692 (eval $ac_link) 2>&5
21693 ac_status=$?
21694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21697 (eval $ac_try) 2>&5
21698 ac_status=$?
21699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); }; }; then
21701 ac_cv_sizeof_long_long=`cat conftest.val`
21702else
21703 echo "$as_me: program exited with status $ac_status" >&5
21704echo "$as_me: failed program was:" >&5
21705sed 's/^/| /' conftest.$ac_ext >&5
21706
21707( exit $ac_status )
21708{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21709See \`config.log' for more details." >&5
21710echo "$as_me: error: cannot compute sizeof (long long), 77
21711See \`config.log' for more details." >&2;}
21712 { (exit 1); exit 1; }; }
21713fi
ac1cb8d3 21714rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21715fi
21716fi
21717rm -f conftest.val
21718else
21719 ac_cv_sizeof_long_long=0
21720fi
21721fi
21722echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21723echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21724cat >>confdefs.h <<_ACEOF
21725#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21726_ACEOF
21727
21728
21729esac
21730
238ecede
MW
21731echo "$as_me:$LINENO: checking for wchar_t" >&5
21732echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21733if test "${ac_cv_type_wchar_t+set}" = set; then
21734 echo $ECHO_N "(cached) $ECHO_C" >&6
21735else
21736 cat >conftest.$ac_ext <<_ACEOF
21737/* confdefs.h. */
21738_ACEOF
21739cat confdefs.h >>conftest.$ac_ext
21740cat >>conftest.$ac_ext <<_ACEOF
21741/* end confdefs.h. */
21742
83d8eb47
MW
21743 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21744 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21745 # error "fake wchar_t"
21746 #endif
21747 #ifdef HAVE_WCHAR_H
21748 # ifdef __CYGWIN__
21749 # include <stddef.h>
21750 # endif
21751 # include <wchar.h>
21752 #endif
21753 #ifdef HAVE_STDLIB_H
21754 # include <stdlib.h>
21755 #endif
21756 #include <stdio.h>
21757
21758
21759
21760int
21761main ()
21762{
21763if ((wchar_t *) 0)
21764 return 0;
21765if (sizeof (wchar_t))
21766 return 0;
21767 ;
21768 return 0;
21769}
21770_ACEOF
21771rm -f conftest.$ac_objext
21772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21773 (eval $ac_compile) 2>conftest.er1
21774 ac_status=$?
21775 grep -v '^ *+' conftest.er1 >conftest.err
21776 rm -f conftest.er1
21777 cat conftest.err >&5
21778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779 (exit $ac_status); } &&
479c790c 21780 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21782 (eval $ac_try) 2>&5
21783 ac_status=$?
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); }; } &&
21786 { ac_try='test -s conftest.$ac_objext'
21787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21788 (eval $ac_try) 2>&5
21789 ac_status=$?
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); }; }; then
21792 ac_cv_type_wchar_t=yes
21793else
21794 echo "$as_me: failed program was:" >&5
21795sed 's/^/| /' conftest.$ac_ext >&5
21796
21797ac_cv_type_wchar_t=no
21798fi
21799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21800fi
21801echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21802echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21803
a848cd7e
SC
21804echo "$as_me:$LINENO: checking size of wchar_t" >&5
21805echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 21806if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
21807 echo $ECHO_N "(cached) $ECHO_C" >&6
21808else
238ecede
MW
21809 if test "$ac_cv_type_wchar_t" = yes; then
21810 # The cast to unsigned long works around a bug in the HP C Compiler
21811 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21812 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21813 # This bug is HP SR number 8606223364.
21814 if test "$cross_compiling" = yes; then
21815 # Depending upon the size, compute the lo and hi bounds.
21816cat >conftest.$ac_ext <<_ACEOF
21817/* confdefs.h. */
21818_ACEOF
21819cat confdefs.h >>conftest.$ac_ext
21820cat >>conftest.$ac_ext <<_ACEOF
21821/* end confdefs.h. */
21822
83d8eb47
MW
21823 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21824 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21825 # error "fake wchar_t"
21826 #endif
21827 #ifdef HAVE_WCHAR_H
21828 # ifdef __CYGWIN__
21829 # include <stddef.h>
21830 # endif
21831 # include <wchar.h>
21832 #endif
21833 #ifdef HAVE_STDLIB_H
21834 # include <stdlib.h>
21835 #endif
21836 #include <stdio.h>
21837
21838
21839
21840int
21841main ()
21842{
21843static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21844test_array [0] = 0
21845
21846 ;
21847 return 0;
21848}
21849_ACEOF
21850rm -f conftest.$ac_objext
21851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21852 (eval $ac_compile) 2>conftest.er1
21853 ac_status=$?
21854 grep -v '^ *+' conftest.er1 >conftest.err
21855 rm -f conftest.er1
21856 cat conftest.err >&5
21857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858 (exit $ac_status); } &&
479c790c 21859 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21861 (eval $ac_try) 2>&5
21862 ac_status=$?
21863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864 (exit $ac_status); }; } &&
21865 { ac_try='test -s conftest.$ac_objext'
21866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21867 (eval $ac_try) 2>&5
21868 ac_status=$?
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); }; }; then
21871 ac_lo=0 ac_mid=0
21872 while :; do
21873 cat >conftest.$ac_ext <<_ACEOF
21874/* confdefs.h. */
21875_ACEOF
21876cat confdefs.h >>conftest.$ac_ext
21877cat >>conftest.$ac_ext <<_ACEOF
21878/* end confdefs.h. */
21879
83d8eb47
MW
21880 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21881 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21882 # error "fake wchar_t"
21883 #endif
21884 #ifdef HAVE_WCHAR_H
21885 # ifdef __CYGWIN__
21886 # include <stddef.h>
21887 # endif
21888 # include <wchar.h>
21889 #endif
21890 #ifdef HAVE_STDLIB_H
21891 # include <stdlib.h>
21892 #endif
21893 #include <stdio.h>
21894
21895
21896
21897int
21898main ()
21899{
21900static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21901test_array [0] = 0
21902
21903 ;
21904 return 0;
21905}
21906_ACEOF
21907rm -f conftest.$ac_objext
21908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21909 (eval $ac_compile) 2>conftest.er1
21910 ac_status=$?
21911 grep -v '^ *+' conftest.er1 >conftest.err
21912 rm -f conftest.er1
21913 cat conftest.err >&5
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); } &&
479c790c 21916 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21918 (eval $ac_try) 2>&5
21919 ac_status=$?
21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); }; } &&
21922 { ac_try='test -s conftest.$ac_objext'
21923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21924 (eval $ac_try) 2>&5
21925 ac_status=$?
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); }; }; then
21928 ac_hi=$ac_mid; break
21929else
21930 echo "$as_me: failed program was:" >&5
21931sed 's/^/| /' conftest.$ac_ext >&5
21932
21933ac_lo=`expr $ac_mid + 1`
21934 if test $ac_lo -le $ac_mid; then
21935 ac_lo= ac_hi=
21936 break
21937 fi
21938 ac_mid=`expr 2 '*' $ac_mid + 1`
21939fi
21940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21941 done
21942else
21943 echo "$as_me: failed program was:" >&5
21944sed 's/^/| /' conftest.$ac_ext >&5
21945
21946cat >conftest.$ac_ext <<_ACEOF
21947/* confdefs.h. */
21948_ACEOF
21949cat confdefs.h >>conftest.$ac_ext
21950cat >>conftest.$ac_ext <<_ACEOF
21951/* end confdefs.h. */
21952
83d8eb47
MW
21953 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21954 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21955 # error "fake wchar_t"
21956 #endif
21957 #ifdef HAVE_WCHAR_H
21958 # ifdef __CYGWIN__
21959 # include <stddef.h>
21960 # endif
21961 # include <wchar.h>
21962 #endif
21963 #ifdef HAVE_STDLIB_H
21964 # include <stdlib.h>
21965 #endif
21966 #include <stdio.h>
21967
21968
21969
21970int
21971main ()
21972{
21973static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21974test_array [0] = 0
21975
21976 ;
21977 return 0;
21978}
21979_ACEOF
21980rm -f conftest.$ac_objext
21981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21982 (eval $ac_compile) 2>conftest.er1
21983 ac_status=$?
21984 grep -v '^ *+' conftest.er1 >conftest.err
21985 rm -f conftest.er1
21986 cat conftest.err >&5
21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); } &&
479c790c 21989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21991 (eval $ac_try) 2>&5
21992 ac_status=$?
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); }; } &&
21995 { ac_try='test -s conftest.$ac_objext'
21996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21997 (eval $ac_try) 2>&5
21998 ac_status=$?
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); }; }; then
22001 ac_hi=-1 ac_mid=-1
22002 while :; do
22003 cat >conftest.$ac_ext <<_ACEOF
22004/* confdefs.h. */
22005_ACEOF
22006cat confdefs.h >>conftest.$ac_ext
22007cat >>conftest.$ac_ext <<_ACEOF
22008/* end confdefs.h. */
22009
83d8eb47
MW
22010 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22011 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
22012 # error "fake wchar_t"
22013 #endif
22014 #ifdef HAVE_WCHAR_H
22015 # ifdef __CYGWIN__
22016 # include <stddef.h>
22017 # endif
22018 # include <wchar.h>
22019 #endif
22020 #ifdef HAVE_STDLIB_H
22021 # include <stdlib.h>
22022 #endif
22023 #include <stdio.h>
22024
22025
22026
22027int
22028main ()
22029{
22030static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
22031test_array [0] = 0
22032
22033 ;
22034 return 0;
22035}
22036_ACEOF
22037rm -f conftest.$ac_objext
22038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22039 (eval $ac_compile) 2>conftest.er1
22040 ac_status=$?
22041 grep -v '^ *+' conftest.er1 >conftest.err
22042 rm -f conftest.er1
22043 cat conftest.err >&5
22044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045 (exit $ac_status); } &&
479c790c 22046 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
22047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22048 (eval $ac_try) 2>&5
22049 ac_status=$?
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); }; } &&
22052 { ac_try='test -s conftest.$ac_objext'
22053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22054 (eval $ac_try) 2>&5
22055 ac_status=$?
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); }; }; then
22058 ac_lo=$ac_mid; break
22059else
22060 echo "$as_me: failed program was:" >&5
22061sed 's/^/| /' conftest.$ac_ext >&5
22062
22063ac_hi=`expr '(' $ac_mid ')' - 1`
22064 if test $ac_mid -le $ac_hi; then
22065 ac_lo= ac_hi=
22066 break
22067 fi
22068 ac_mid=`expr 2 '*' $ac_mid`
22069fi
22070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22071 done
22072else
22073 echo "$as_me: failed program was:" >&5
22074sed 's/^/| /' conftest.$ac_ext >&5
22075
22076ac_lo= ac_hi=
22077fi
22078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22079fi
22080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22081# Binary search between lo and hi bounds.
22082while test "x$ac_lo" != "x$ac_hi"; do
22083 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22084 cat >conftest.$ac_ext <<_ACEOF
22085/* confdefs.h. */
22086_ACEOF
22087cat confdefs.h >>conftest.$ac_ext
22088cat >>conftest.$ac_ext <<_ACEOF
22089/* end confdefs.h. */
22090
83d8eb47
MW
22091 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22092 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
22093 # error "fake wchar_t"
22094 #endif
22095 #ifdef HAVE_WCHAR_H
22096 # ifdef __CYGWIN__
22097 # include <stddef.h>
22098 # endif
22099 # include <wchar.h>
22100 #endif
22101 #ifdef HAVE_STDLIB_H
22102 # include <stdlib.h>
22103 #endif
22104 #include <stdio.h>
a848cd7e 22105
a848cd7e 22106
a848cd7e 22107
238ecede
MW
22108int
22109main ()
22110{
22111static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
22112test_array [0] = 0
a848cd7e 22113
238ecede
MW
22114 ;
22115 return 0;
22116}
22117_ACEOF
22118rm -f conftest.$ac_objext
22119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22120 (eval $ac_compile) 2>conftest.er1
22121 ac_status=$?
22122 grep -v '^ *+' conftest.er1 >conftest.err
22123 rm -f conftest.er1
22124 cat conftest.err >&5
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); } &&
479c790c 22127 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
22128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22129 (eval $ac_try) 2>&5
22130 ac_status=$?
22131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132 (exit $ac_status); }; } &&
22133 { ac_try='test -s conftest.$ac_objext'
22134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22135 (eval $ac_try) 2>&5
22136 ac_status=$?
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); }; }; then
22139 ac_hi=$ac_mid
22140else
22141 echo "$as_me: failed program was:" >&5
22142sed 's/^/| /' conftest.$ac_ext >&5
22143
22144ac_lo=`expr '(' $ac_mid ')' + 1`
22145fi
22146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22147done
22148case $ac_lo in
22149?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22150'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
22151See \`config.log' for more details." >&5
22152echo "$as_me: error: cannot compute sizeof (wchar_t), 77
22153See \`config.log' for more details." >&2;}
22154 { (exit 1); exit 1; }; } ;;
22155esac
22156else
22157 if test "$cross_compiling" = yes; then
479c790c
VZ
22158 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
22159echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 22160 { (exit 1); exit 1; }; }
a848cd7e
SC
22161else
22162 cat >conftest.$ac_ext <<_ACEOF
22163/* confdefs.h. */
22164_ACEOF
22165cat confdefs.h >>conftest.$ac_ext
22166cat >>conftest.$ac_ext <<_ACEOF
22167/* end confdefs.h. */
22168
83d8eb47
MW
22169 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22170 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
22171 # error "fake wchar_t"
22172 #endif
22173 #ifdef HAVE_WCHAR_H
22174 # ifdef __CYGWIN__
22175 # include <stddef.h>
22176 # endif
22177 # include <wchar.h>
22178 #endif
22179 #ifdef HAVE_STDLIB_H
22180 # include <stdlib.h>
22181 #endif
22182 #include <stdio.h>
22183
22184
22185
22186long longval () { return (long) (sizeof (wchar_t)); }
22187unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
22188#include <stdio.h>
22189#include <stdlib.h>
22190int
22191main ()
22192{
a848cd7e 22193
238ecede
MW
22194 FILE *f = fopen ("conftest.val", "w");
22195 if (! f)
22196 exit (1);
22197 if (((long) (sizeof (wchar_t))) < 0)
22198 {
22199 long i = longval ();
22200 if (i != ((long) (sizeof (wchar_t))))
22201 exit (1);
22202 fprintf (f, "%ld\n", i);
22203 }
22204 else
22205 {
22206 unsigned long i = ulongval ();
22207 if (i != ((long) (sizeof (wchar_t))))
22208 exit (1);
22209 fprintf (f, "%lu\n", i);
22210 }
22211 exit (ferror (f) || fclose (f) != 0);
22212
22213 ;
22214 return 0;
22215}
a848cd7e
SC
22216_ACEOF
22217rm -f conftest$ac_exeext
22218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22219 (eval $ac_link) 2>&5
22220 ac_status=$?
22221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22224 (eval $ac_try) 2>&5
22225 ac_status=$?
22226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227 (exit $ac_status); }; }; then
238ecede 22228 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
22229else
22230 echo "$as_me: program exited with status $ac_status" >&5
22231echo "$as_me: failed program was:" >&5
22232sed 's/^/| /' conftest.$ac_ext >&5
22233
22234( exit $ac_status )
238ecede
MW
22235{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
22236See \`config.log' for more details." >&5
22237echo "$as_me: error: cannot compute sizeof (wchar_t), 77
22238See \`config.log' for more details." >&2;}
22239 { (exit 1); exit 1; }; }
a848cd7e 22240fi
ac1cb8d3 22241rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 22242fi
a848cd7e 22243fi
238ecede
MW
22244rm -f conftest.val
22245else
22246 ac_cv_sizeof_wchar_t=0
22247fi
22248fi
22249echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22250echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 22251cat >>confdefs.h <<_ACEOF
238ecede 22252#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
22253_ACEOF
22254
22255
47a7e797
MW
22256if test "$ac_cv_sizeof_wchar_t" != "0"; then
22257 wxUSE_WCHAR_T=yes
22258else
22259 wxUSE_WCHAR_T=no
22260fi
238ecede 22261
ba3d13e1
VZ
22262echo "$as_me:$LINENO: checking for va_copy" >&5
22263echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
22264if test "${wx_cv_func_va_copy+set}" = set; then
22265 echo $ECHO_N "(cached) $ECHO_C" >&6
22266else
22267
22268 cat >conftest.$ac_ext <<_ACEOF
22269
22270 #include <stdarg.h>
22271 void foo(char *f, ...)
22272 {
22273 va_list ap1, ap2;
22274 va_start(ap1, f);
22275 va_copy(ap2, ap1);
22276 va_end(ap2);
22277 va_end(ap1);
22278 }
5886b072
VZ
22279 int main()
22280 {
b902e639
VZ
22281 foo("hi", 17);
22282 return 0;
5886b072 22283 }
ba3d13e1
VZ
22284_ACEOF
22285rm -f conftest.$ac_objext conftest$ac_exeext
22286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22287 (eval $ac_link) 2>conftest.er1
22288 ac_status=$?
22289 grep -v '^ *+' conftest.er1 >conftest.err
22290 rm -f conftest.er1
22291 cat conftest.err >&5
22292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); } &&
479c790c 22294 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
22295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22296 (eval $ac_try) 2>&5
22297 ac_status=$?
22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); }; } &&
22300 { ac_try='test -s conftest$ac_exeext'
22301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22302 (eval $ac_try) 2>&5
22303 ac_status=$?
22304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305 (exit $ac_status); }; }; then
22306 wx_cv_func_va_copy=yes
22307else
22308 echo "$as_me: failed program was:" >&5
22309sed 's/^/| /' conftest.$ac_ext >&5
22310
22311wx_cv_func_va_copy=no
22312
22313fi
22314rm -f conftest.err conftest.$ac_objext \
22315 conftest$ac_exeext conftest.$ac_ext
22316
22317
22318fi
22319echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
22320echo "${ECHO_T}$wx_cv_func_va_copy" >&6
22321
22322if test $wx_cv_func_va_copy = "yes"; then
22323 cat >>confdefs.h <<\_ACEOF
22324#define HAVE_VA_COPY 1
22325_ACEOF
22326
22327else
22328 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
22329echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
22330if test "${wx_cv_type_va_list_lvalue+set}" = set; then
22331 echo $ECHO_N "(cached) $ECHO_C" >&6
22332else
22333
22334 if test "$cross_compiling" = yes; then
22335 wx_cv_type_va_list_lvalue=yes
22336
22337else
22338 cat >conftest.$ac_ext <<_ACEOF
22339
22340 #include <stdarg.h>
22341 int foo(char *f, ...)
22342 {
22343 va_list ap1, ap2;
22344 va_start(ap1, f);
22345 ap2 = ap1;
22346 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
22347 return 1;
22348 va_end(ap2);
22349 va_end(ap1);
22350 return 0;
22351 }
22352 int main()
22353 {
22354 return foo("hi", 17);
22355 }
22356_ACEOF
22357rm -f conftest$ac_exeext
22358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22359 (eval $ac_link) 2>&5
22360 ac_status=$?
22361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22364 (eval $ac_try) 2>&5
22365 ac_status=$?
22366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367 (exit $ac_status); }; }; then
22368 wx_cv_type_va_list_lvalue=yes
22369else
22370 echo "$as_me: program exited with status $ac_status" >&5
22371echo "$as_me: failed program was:" >&5
22372sed 's/^/| /' conftest.$ac_ext >&5
22373
22374( exit $ac_status )
22375wx_cv_type_va_list_lvalue=no
22376fi
22377rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22378fi
22379
22380
22381fi
22382echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
22383echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
22384
22385 if test $wx_cv_type_va_list_lvalue != "yes"; then
22386 cat >>confdefs.h <<\_ACEOF
22387#define VA_LIST_IS_ARRAY 1
22388_ACEOF
22389
22390 fi
22391fi
22392
ca766534
VS
22393echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
22394echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6
22395if test "${wx_cv_have_variadic_macros+set}" = set; then
22396 echo $ECHO_N "(cached) $ECHO_C" >&6
22397else
22398
22399 cat >conftest.$ac_ext <<_ACEOF
22400/* confdefs.h. */
22401_ACEOF
22402cat confdefs.h >>conftest.$ac_ext
22403cat >>conftest.$ac_ext <<_ACEOF
22404/* end confdefs.h. */
22405
22406 #include <stdio.h>
22407 #define test(fmt, ...) printf(fmt, __VA_ARGS__)
22408
22409int
22410main ()
22411{
22412
22413 test("%s %d %p", "test", 1, 0);
22414
22415
22416 ;
22417 return 0;
22418}
22419_ACEOF
22420rm -f conftest.$ac_objext
22421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22422 (eval $ac_compile) 2>conftest.er1
22423 ac_status=$?
22424 grep -v '^ *+' conftest.er1 >conftest.err
22425 rm -f conftest.er1
22426 cat conftest.err >&5
22427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428 (exit $ac_status); } &&
479c790c 22429 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ca766534
VS
22430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22431 (eval $ac_try) 2>&5
22432 ac_status=$?
22433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434 (exit $ac_status); }; } &&
22435 { ac_try='test -s conftest.$ac_objext'
22436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22437 (eval $ac_try) 2>&5
22438 ac_status=$?
22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); }; }; then
22441 wx_cv_have_variadic_macros=yes
22442else
22443 echo "$as_me: failed program was:" >&5
22444sed 's/^/| /' conftest.$ac_ext >&5
22445
22446wx_cv_have_variadic_macros=no
22447
22448fi
22449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22450
22451
22452fi
22453echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
22454echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6
22455
22456if test $wx_cv_have_variadic_macros = "yes"; then
22457 cat >>confdefs.h <<\_ACEOF
22458#define HAVE_VARIADIC_MACROS 1
22459_ACEOF
22460
22461fi
22462
a848cd7e
SC
22463# Check whether --enable-largefile or --disable-largefile was given.
22464if test "${enable_largefile+set}" = set; then
22465 enableval="$enable_largefile"
22466
22467fi;
22468if test "$enable_largefile" != no; then
22469 wx_largefile=no
22470
22471 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22472echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
22473if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22474 echo $ECHO_N "(cached) $ECHO_C" >&6
22475else
22476
22477 cat >conftest.$ac_ext <<_ACEOF
22478/* confdefs.h. */
22479_ACEOF
22480cat confdefs.h >>conftest.$ac_ext
22481cat >>conftest.$ac_ext <<_ACEOF
22482/* end confdefs.h. */
22483#define _FILE_OFFSET_BITS 64
22484 #include <sys/types.h>
22485int
22486main ()
22487{
22488typedef struct {
22489 unsigned int field: sizeof(off_t) == 8;
22490} wxlf;
22491
22492 ;
22493 return 0;
22494}
22495_ACEOF
22496rm -f conftest.$ac_objext
22497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22498 (eval $ac_compile) 2>conftest.er1
a848cd7e 22499 ac_status=$?
ac1cb8d3
VS
22500 grep -v '^ *+' conftest.er1 >conftest.err
22501 rm -f conftest.er1
22502 cat conftest.err >&5
a848cd7e
SC
22503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504 (exit $ac_status); } &&
479c790c 22505 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22507 (eval $ac_try) 2>&5
22508 ac_status=$?
22509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22510 (exit $ac_status); }; } &&
22511 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22513 (eval $ac_try) 2>&5
22514 ac_status=$?
22515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22516 (exit $ac_status); }; }; then
22517 ac_cv_sys_file_offset_bits=64
22518else
22519 echo "$as_me: failed program was:" >&5
22520sed 's/^/| /' conftest.$ac_ext >&5
22521
22522ac_cv_sys_file_offset_bits=no
22523fi
ac1cb8d3 22524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22525
22526
22527fi
22528echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22529echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
22530
22531 if test "$ac_cv_sys_file_offset_bits" != no; then
22532 wx_largefile=yes
22533 cat >>confdefs.h <<_ACEOF
22534#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22535_ACEOF
22536
22537 fi
22538
22539 if test "x$wx_largefile" != "xyes"; then
22540
22541 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22542echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
22543if test "${ac_cv_sys_large_files+set}" = set; then
22544 echo $ECHO_N "(cached) $ECHO_C" >&6
22545else
22546
22547 cat >conftest.$ac_ext <<_ACEOF
22548/* confdefs.h. */
22549_ACEOF
22550cat confdefs.h >>conftest.$ac_ext
22551cat >>conftest.$ac_ext <<_ACEOF
22552/* end confdefs.h. */
22553#define _LARGE_FILES 1
22554 #include <sys/types.h>
22555int
22556main ()
22557{
22558typedef struct {
22559 unsigned int field: sizeof(off_t) == 8;
22560} wxlf;
22561
22562 ;
22563 return 0;
22564}
22565_ACEOF
22566rm -f conftest.$ac_objext
22567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22568 (eval $ac_compile) 2>conftest.er1
a848cd7e 22569 ac_status=$?
ac1cb8d3
VS
22570 grep -v '^ *+' conftest.er1 >conftest.err
22571 rm -f conftest.er1
22572 cat conftest.err >&5
a848cd7e
SC
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); } &&
479c790c 22575 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22577 (eval $ac_try) 2>&5
22578 ac_status=$?
22579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580 (exit $ac_status); }; } &&
22581 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22583 (eval $ac_try) 2>&5
22584 ac_status=$?
22585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22586 (exit $ac_status); }; }; then
22587 ac_cv_sys_large_files=1
22588else
22589 echo "$as_me: failed program was:" >&5
22590sed 's/^/| /' conftest.$ac_ext >&5
22591
22592ac_cv_sys_large_files=no
22593fi
ac1cb8d3 22594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22595
22596
22597fi
22598echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22599echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22600
22601 if test "$ac_cv_sys_large_files" != no; then
22602 wx_largefile=yes
22603 cat >>confdefs.h <<_ACEOF
22604#define _LARGE_FILES $ac_cv_sys_large_files
22605_ACEOF
22606
22607 fi
22608
22609 fi
22610
22611 echo "$as_me:$LINENO: checking if large file support is available" >&5
22612echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
22613 if test "x$wx_largefile" = "xyes"; then
22614 cat >>confdefs.h <<\_ACEOF
22615#define HAVE_LARGEFILE_SUPPORT 1
22616_ACEOF
22617
22618 fi
22619 echo "$as_me:$LINENO: result: $wx_largefile" >&5
22620echo "${ECHO_T}$wx_largefile" >&6
22621fi
22622
5b674b9d
DE
22623
22624if test "x$wx_largefile" = "xyes"; then
22625 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 22626 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
22627
22628 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
22629 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
22630echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
22631if test "${wx_cv_STDC_EXT_required+set}" = set; then
22632 echo $ECHO_N "(cached) $ECHO_C" >&6
22633else
22634
00421666
MW
22635 cat >conftest.$ac_ext <<_ACEOF
22636/* confdefs.h. */
22637_ACEOF
22638cat confdefs.h >>conftest.$ac_ext
22639cat >>conftest.$ac_ext <<_ACEOF
22640/* end confdefs.h. */
22641
22642int
22643main ()
22644{
22645
22646 #ifndef __STDC_EXT__
22647 choke me
22648 #endif
22649
22650 ;
22651 return 0;
22652}
22653_ACEOF
22654rm -f conftest.$ac_objext
22655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22656 (eval $ac_compile) 2>conftest.er1
22657 ac_status=$?
22658 grep -v '^ *+' conftest.er1 >conftest.err
22659 rm -f conftest.er1
22660 cat conftest.err >&5
22661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22662 (exit $ac_status); } &&
479c790c 22663 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
00421666
MW
22664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22665 (eval $ac_try) 2>&5
22666 ac_status=$?
22667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668 (exit $ac_status); }; } &&
22669 { ac_try='test -s conftest.$ac_objext'
22670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22671 (eval $ac_try) 2>&5
22672 ac_status=$?
22673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674 (exit $ac_status); }; }; then
22675 wx_cv_STDC_EXT_required=no
22676else
22677 echo "$as_me: failed program was:" >&5
22678sed 's/^/| /' conftest.$ac_ext >&5
22679
22680wx_cv_STDC_EXT_required=yes
22681
22682fi
22683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
00421666
MW
22684
22685
22686fi
22687echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22688echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22689 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 22690 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
22691 fi
22692 fi
5b674b9d 22693 else
5ff751d6 22694 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
22695 fi
22696 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
22697echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22698if test "${ac_cv_sys_largefile_source+set}" = set; then
22699 echo $ECHO_N "(cached) $ECHO_C" >&6
22700else
22701 while :; do
22702 ac_cv_sys_largefile_source=no
22703 cat >conftest.$ac_ext <<_ACEOF
22704/* confdefs.h. */
22705_ACEOF
22706cat confdefs.h >>conftest.$ac_ext
22707cat >>conftest.$ac_ext <<_ACEOF
22708/* end confdefs.h. */
22709#include <stdio.h>
22710int
22711main ()
22712{
22713return !fseeko;
22714 ;
22715 return 0;
22716}
22717_ACEOF
22718rm -f conftest.$ac_objext
22719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22720 (eval $ac_compile) 2>conftest.er1
22721 ac_status=$?
22722 grep -v '^ *+' conftest.er1 >conftest.err
22723 rm -f conftest.er1
22724 cat conftest.err >&5
22725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22726 (exit $ac_status); } &&
479c790c 22727 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22729 (eval $ac_try) 2>&5
22730 ac_status=$?
22731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22732 (exit $ac_status); }; } &&
22733 { ac_try='test -s conftest.$ac_objext'
22734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22735 (eval $ac_try) 2>&5
22736 ac_status=$?
22737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738 (exit $ac_status); }; }; then
22739 break
22740else
22741 echo "$as_me: failed program was:" >&5
22742sed 's/^/| /' conftest.$ac_ext >&5
22743
22744fi
22745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22746 cat >conftest.$ac_ext <<_ACEOF
22747/* confdefs.h. */
22748_ACEOF
22749cat confdefs.h >>conftest.$ac_ext
22750cat >>conftest.$ac_ext <<_ACEOF
22751/* end confdefs.h. */
22752#define _LARGEFILE_SOURCE 1
22753#include <stdio.h>
22754int
22755main ()
22756{
22757return !fseeko;
22758 ;
22759 return 0;
22760}
22761_ACEOF
22762rm -f conftest.$ac_objext
22763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22764 (eval $ac_compile) 2>conftest.er1
22765 ac_status=$?
22766 grep -v '^ *+' conftest.er1 >conftest.err
22767 rm -f conftest.er1
22768 cat conftest.err >&5
22769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770 (exit $ac_status); } &&
479c790c 22771 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22773 (eval $ac_try) 2>&5
22774 ac_status=$?
22775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776 (exit $ac_status); }; } &&
22777 { ac_try='test -s conftest.$ac_objext'
22778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22779 (eval $ac_try) 2>&5
22780 ac_status=$?
22781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); }; }; then
22783 ac_cv_sys_largefile_source=1; break
22784else
22785 echo "$as_me: failed program was:" >&5
22786sed 's/^/| /' conftest.$ac_ext >&5
22787
22788fi
22789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22790 break
22791done
22792fi
22793echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22794echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22795if test "$ac_cv_sys_largefile_source" != no; then
22796
22797cat >>confdefs.h <<_ACEOF
22798#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22799_ACEOF
22800
22801fi
22802rm -f conftest*
22803
22804# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22805# in glibc 2.1.3, but that breaks too many other things.
22806# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22807echo "$as_me:$LINENO: checking for fseeko" >&5
22808echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22809if test "${ac_cv_func_fseeko+set}" = set; then
22810 echo $ECHO_N "(cached) $ECHO_C" >&6
22811else
22812 cat >conftest.$ac_ext <<_ACEOF
22813/* confdefs.h. */
22814_ACEOF
22815cat confdefs.h >>conftest.$ac_ext
22816cat >>conftest.$ac_ext <<_ACEOF
22817/* end confdefs.h. */
22818#include <stdio.h>
22819int
22820main ()
22821{
22822return fseeko && fseeko (stdin, 0, 0);
22823 ;
22824 return 0;
22825}
22826_ACEOF
22827rm -f conftest.$ac_objext conftest$ac_exeext
22828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22829 (eval $ac_link) 2>conftest.er1
22830 ac_status=$?
22831 grep -v '^ *+' conftest.er1 >conftest.err
22832 rm -f conftest.er1
22833 cat conftest.err >&5
22834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835 (exit $ac_status); } &&
479c790c 22836 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22838 (eval $ac_try) 2>&5
22839 ac_status=$?
22840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22841 (exit $ac_status); }; } &&
22842 { ac_try='test -s conftest$ac_exeext'
22843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22844 (eval $ac_try) 2>&5
22845 ac_status=$?
22846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847 (exit $ac_status); }; }; then
22848 ac_cv_func_fseeko=yes
22849else
22850 echo "$as_me: failed program was:" >&5
22851sed 's/^/| /' conftest.$ac_ext >&5
22852
22853ac_cv_func_fseeko=no
22854fi
22855rm -f conftest.err conftest.$ac_objext \
22856 conftest$ac_exeext conftest.$ac_ext
22857fi
22858echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22859echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22860if test $ac_cv_func_fseeko = yes; then
22861
22862cat >>confdefs.h <<\_ACEOF
22863#define HAVE_FSEEKO 1
22864_ACEOF
22865
22866fi
22867
5b674b9d 22868 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 22869 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 22870 fi
a848cd7e
SC
22871fi
22872
22873echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22874echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22875if test "${ac_cv_c_bigendian+set}" = set; then
22876 echo $ECHO_N "(cached) $ECHO_C" >&6
22877else
22878 ac_cv_c_bigendian=unknown
22879# See if sys/param.h defines the BYTE_ORDER macro.
22880cat >conftest.$ac_ext <<_ACEOF
22881/* confdefs.h. */
22882_ACEOF
22883cat confdefs.h >>conftest.$ac_ext
22884cat >>conftest.$ac_ext <<_ACEOF
22885/* end confdefs.h. */
22886#include <sys/types.h>
22887#include <sys/param.h>
22888int
22889main ()
22890{
22891
22892#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22893 bogus endian macros
22894#endif
22895 ;
22896 return 0;
22897}
22898_ACEOF
22899rm -f conftest.$ac_objext
22900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22901 (eval $ac_compile) 2>conftest.er1
a848cd7e 22902 ac_status=$?
ac1cb8d3
VS
22903 grep -v '^ *+' conftest.er1 >conftest.err
22904 rm -f conftest.er1
22905 cat conftest.err >&5
a848cd7e
SC
22906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907 (exit $ac_status); } &&
479c790c 22908 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22910 (eval $ac_try) 2>&5
22911 ac_status=$?
22912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913 (exit $ac_status); }; } &&
22914 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22916 (eval $ac_try) 2>&5
22917 ac_status=$?
22918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22919 (exit $ac_status); }; }; then
22920 # It does; now see whether it defined to BIG_ENDIAN or not.
22921cat >conftest.$ac_ext <<_ACEOF
22922/* confdefs.h. */
22923_ACEOF
22924cat confdefs.h >>conftest.$ac_ext
22925cat >>conftest.$ac_ext <<_ACEOF
22926/* end confdefs.h. */
22927#include <sys/types.h>
22928#include <sys/param.h>
22929int
22930main ()
22931{
22932
22933#if BYTE_ORDER != BIG_ENDIAN
22934 not big endian
22935#endif
22936 ;
22937 return 0;
22938}
22939_ACEOF
22940rm -f conftest.$ac_objext
22941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22942 (eval $ac_compile) 2>conftest.er1
a848cd7e 22943 ac_status=$?
ac1cb8d3
VS
22944 grep -v '^ *+' conftest.er1 >conftest.err
22945 rm -f conftest.er1
22946 cat conftest.err >&5
a848cd7e
SC
22947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 (exit $ac_status); } &&
479c790c 22949 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22951 (eval $ac_try) 2>&5
22952 ac_status=$?
22953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954 (exit $ac_status); }; } &&
22955 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22957 (eval $ac_try) 2>&5
22958 ac_status=$?
22959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960 (exit $ac_status); }; }; then
22961 ac_cv_c_bigendian=yes
22962else
22963 echo "$as_me: failed program was:" >&5
22964sed 's/^/| /' conftest.$ac_ext >&5
22965
22966ac_cv_c_bigendian=no
22967fi
ac1cb8d3 22968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22969else
22970 echo "$as_me: failed program was:" >&5
22971sed 's/^/| /' conftest.$ac_ext >&5
22972
22973fi
ac1cb8d3 22974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22975if test $ac_cv_c_bigendian = unknown; then
22976if test "$cross_compiling" = yes; then
22977 ac_cv_c_bigendian=unknown
22978else
22979 cat >conftest.$ac_ext <<_ACEOF
22980/* confdefs.h. */
22981_ACEOF
22982cat confdefs.h >>conftest.$ac_ext
22983cat >>conftest.$ac_ext <<_ACEOF
22984/* end confdefs.h. */
22985main () {
22986 /* Are we little or big endian? From Harbison&Steele. */
22987 union
22988 {
22989 long l;
22990 char c[sizeof (long)];
22991 } u;
22992 u.l = 1;
22993 exit (u.c[sizeof (long) - 1] == 1);
22994}
22995_ACEOF
22996rm -f conftest$ac_exeext
22997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22998 (eval $ac_link) 2>&5
22999 ac_status=$?
23000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23003 (eval $ac_try) 2>&5
23004 ac_status=$?
23005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006 (exit $ac_status); }; }; then
23007 ac_cv_c_bigendian=no
23008else
23009 echo "$as_me: program exited with status $ac_status" >&5
23010echo "$as_me: failed program was:" >&5
23011sed 's/^/| /' conftest.$ac_ext >&5
23012
23013( exit $ac_status )
23014ac_cv_c_bigendian=yes
23015fi
ac1cb8d3 23016rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23017fi
23018fi
23019fi
23020echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23021echo "${ECHO_T}$ac_cv_c_bigendian" >&6
23022if test $ac_cv_c_bigendian = unknown; then
23023 { 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
23024echo "$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;}
23025fi
23026if test $ac_cv_c_bigendian = yes; then
23027 cat >>confdefs.h <<\_ACEOF
23028#define WORDS_BIGENDIAN 1
23029_ACEOF
23030
23031fi
23032
23033
a848cd7e
SC
23034
23035
23036
23037 ac_ext=cc
23038ac_cpp='$CXXCPP $CPPFLAGS'
23039ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23040ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23041ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23042
23043
23044
23045for ac_header in iostream
23046do
23047as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23048if eval "test \"\${$as_ac_Header+set}\" = set"; then
23049 echo "$as_me:$LINENO: checking for $ac_header" >&5
23050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23051if eval "test \"\${$as_ac_Header+set}\" = set"; then
23052 echo $ECHO_N "(cached) $ECHO_C" >&6
23053fi
23054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23055echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23056else
23057 # Is the header compilable?
23058echo "$as_me:$LINENO: checking $ac_header usability" >&5
23059echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23060cat >conftest.$ac_ext <<_ACEOF
23061/* confdefs.h. */
23062_ACEOF
23063cat confdefs.h >>conftest.$ac_ext
23064cat >>conftest.$ac_ext <<_ACEOF
23065/* end confdefs.h. */
23066$ac_includes_default
23067#include <$ac_header>
23068_ACEOF
23069rm -f conftest.$ac_objext
23070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23071 (eval $ac_compile) 2>conftest.er1
a848cd7e 23072 ac_status=$?
ac1cb8d3
VS
23073 grep -v '^ *+' conftest.er1 >conftest.err
23074 rm -f conftest.er1
23075 cat conftest.err >&5
a848cd7e
SC
23076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077 (exit $ac_status); } &&
479c790c 23078 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23080 (eval $ac_try) 2>&5
23081 ac_status=$?
23082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23083 (exit $ac_status); }; } &&
23084 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23086 (eval $ac_try) 2>&5
23087 ac_status=$?
23088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089 (exit $ac_status); }; }; then
23090 ac_header_compiler=yes
23091else
23092 echo "$as_me: failed program was:" >&5
23093sed 's/^/| /' conftest.$ac_ext >&5
23094
23095ac_header_compiler=no
23096fi
ac1cb8d3 23097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23098echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23099echo "${ECHO_T}$ac_header_compiler" >&6
23100
23101# Is the header present?
23102echo "$as_me:$LINENO: checking $ac_header presence" >&5
23103echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23104cat >conftest.$ac_ext <<_ACEOF
23105/* confdefs.h. */
23106_ACEOF
23107cat confdefs.h >>conftest.$ac_ext
23108cat >>conftest.$ac_ext <<_ACEOF
23109/* end confdefs.h. */
23110#include <$ac_header>
23111_ACEOF
23112if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23113 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23114 ac_status=$?
23115 grep -v '^ *+' conftest.er1 >conftest.err
23116 rm -f conftest.er1
23117 cat conftest.err >&5
23118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119 (exit $ac_status); } >/dev/null; then
23120 if test -s conftest.err; then
23121 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23122 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
23123 else
23124 ac_cpp_err=
23125 fi
23126else
23127 ac_cpp_err=yes
23128fi
23129if test -z "$ac_cpp_err"; then
23130 ac_header_preproc=yes
23131else
23132 echo "$as_me: failed program was:" >&5
23133sed 's/^/| /' conftest.$ac_ext >&5
23134
23135 ac_header_preproc=no
23136fi
23137rm -f conftest.err conftest.$ac_ext
23138echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23139echo "${ECHO_T}$ac_header_preproc" >&6
23140
23141# So? What about this header?
ac1cb8d3
VS
23142case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23143 yes:no: )
a848cd7e
SC
23144 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23145echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23147echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23148 ac_header_preproc=yes
a848cd7e 23149 ;;
ac1cb8d3 23150 no:yes:* )
a848cd7e
SC
23151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23152echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23154echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23155 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23156echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23157 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23158echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23160echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23161 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23162echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23163 (
23164 cat <<\_ASBOX
ac1cb8d3
VS
23165## ----------------------------------------- ##
23166## Report this to wx-dev@lists.wxwidgets.org ##
23167## ----------------------------------------- ##
a848cd7e
SC
23168_ASBOX
23169 ) |
23170 sed "s/^/$as_me: WARNING: /" >&2
23171 ;;
23172esac
23173echo "$as_me:$LINENO: checking for $ac_header" >&5
23174echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23175if eval "test \"\${$as_ac_Header+set}\" = set"; then
23176 echo $ECHO_N "(cached) $ECHO_C" >&6
23177else
ac1cb8d3 23178 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
23179fi
23180echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23181echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23182
23183fi
23184if test `eval echo '${'$as_ac_Header'}'` = yes; then
23185 cat >>confdefs.h <<_ACEOF
23186#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23187_ACEOF
23188
23189fi
23190
23191done
23192
23193
23194 if test "$ac_cv_header_iostream" = "yes" ; then
23195 :
23196 else
23197 cat >>confdefs.h <<\_ACEOF
23198#define wxUSE_IOSTREAMH 1
23199_ACEOF
23200
23201 fi
23202
5d7b7554
VZ
23203 ac_ext=cc
23204ac_cpp='$CXXCPP $CPPFLAGS'
23205ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23206ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23207ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23208
23209
23210
23211
23212 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
23213echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
23214if test "${wx_cv_cpp_bool+set}" = set; then
23215 echo $ECHO_N "(cached) $ECHO_C" >&6
23216else
23217
23218
23219
23220 ac_ext=cc
23221ac_cpp='$CXXCPP $CPPFLAGS'
23222ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23223ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23224ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23225
23226
23227 cat >conftest.$ac_ext <<_ACEOF
23228/* confdefs.h. */
23229_ACEOF
23230cat confdefs.h >>conftest.$ac_ext
23231cat >>conftest.$ac_ext <<_ACEOF
23232/* end confdefs.h. */
23233
23234
23235int
23236main ()
23237{
23238
23239 bool b = true;
23240
23241 return 0;
23242
23243 ;
23244 return 0;
23245}
23246_ACEOF
23247rm -f conftest.$ac_objext
23248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23249 (eval $ac_compile) 2>conftest.er1
a848cd7e 23250 ac_status=$?
ac1cb8d3
VS
23251 grep -v '^ *+' conftest.er1 >conftest.err
23252 rm -f conftest.er1
23253 cat conftest.err >&5
a848cd7e
SC
23254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255 (exit $ac_status); } &&
479c790c 23256 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23258 (eval $ac_try) 2>&5
23259 ac_status=$?
23260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23261 (exit $ac_status); }; } &&
23262 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23264 (eval $ac_try) 2>&5
23265 ac_status=$?
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); }; }; then
23268
23269 wx_cv_cpp_bool=yes
23270
23271else
23272 echo "$as_me: failed program was:" >&5
23273sed 's/^/| /' conftest.$ac_ext >&5
23274
23275
23276 wx_cv_cpp_bool=no
23277
23278
23279fi
ac1cb8d3 23280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23281
5d7b7554
VZ
23282 ac_ext=cc
23283ac_cpp='$CXXCPP $CPPFLAGS'
23284ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23285ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23286ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23287
23288
23289fi
23290echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
23291echo "${ECHO_T}$wx_cv_cpp_bool" >&6
23292
23293 if test "$wx_cv_cpp_bool" = "yes"; then
23294 cat >>confdefs.h <<\_ACEOF
23295#define HAVE_BOOL 1
23296_ACEOF
23297
23298 fi
23299
23300
23301
23302 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
23303echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
23304if test "${wx_cv_explicit+set}" = set; then
23305 echo $ECHO_N "(cached) $ECHO_C" >&6
23306else
23307
23308
23309
23310 ac_ext=cc
23311ac_cpp='$CXXCPP $CPPFLAGS'
23312ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23313ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23314ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23315
23316
23317 cat >conftest.$ac_ext <<_ACEOF
23318/* confdefs.h. */
23319_ACEOF
23320cat confdefs.h >>conftest.$ac_ext
23321cat >>conftest.$ac_ext <<_ACEOF
23322/* end confdefs.h. */
23323
23324 class Foo { public: explicit Foo(int) {} };
23325
23326int
23327main ()
23328{
23329
23330 return 0;
23331
23332 ;
23333 return 0;
23334}
23335_ACEOF
23336rm -f conftest.$ac_objext
23337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23338 (eval $ac_compile) 2>conftest.er1
a848cd7e 23339 ac_status=$?
ac1cb8d3
VS
23340 grep -v '^ *+' conftest.er1 >conftest.err
23341 rm -f conftest.er1
23342 cat conftest.err >&5
a848cd7e
SC
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); } &&
479c790c 23345 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23347 (eval $ac_try) 2>&5
23348 ac_status=$?
23349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); }; } &&
23351 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23353 (eval $ac_try) 2>&5
23354 ac_status=$?
23355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); }; }; then
23357
23358 cat >conftest.$ac_ext <<_ACEOF
23359/* confdefs.h. */
23360_ACEOF
23361cat confdefs.h >>conftest.$ac_ext
23362cat >>conftest.$ac_ext <<_ACEOF
23363/* end confdefs.h. */
23364
23365 class Foo { public: explicit Foo(int) {} };
23366 static void TakeFoo(const Foo& foo) { }
23367
23368int
23369main ()
23370{
23371
23372 TakeFoo(17);
23373 return 0;
23374
23375 ;
23376 return 0;
23377}
23378_ACEOF
23379rm -f conftest.$ac_objext
23380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23381 (eval $ac_compile) 2>conftest.er1
a848cd7e 23382 ac_status=$?
ac1cb8d3
VS
23383 grep -v '^ *+' conftest.er1 >conftest.err
23384 rm -f conftest.er1
23385 cat conftest.err >&5
a848cd7e
SC
23386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); } &&
479c790c 23388 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23390 (eval $ac_try) 2>&5
23391 ac_status=$?
23392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); }; } &&
23394 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23396 (eval $ac_try) 2>&5
23397 ac_status=$?
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); }; }; then
23400 wx_cv_explicit=no
23401else
23402 echo "$as_me: failed program was:" >&5
23403sed 's/^/| /' conftest.$ac_ext >&5
23404
23405wx_cv_explicit=yes
23406
23407fi
ac1cb8d3 23408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23409
23410else
23411 echo "$as_me: failed program was:" >&5
23412sed 's/^/| /' conftest.$ac_ext >&5
23413
23414wx_cv_explicit=no
23415
23416fi
ac1cb8d3 23417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23418
5d7b7554
VZ
23419 ac_ext=cc
23420ac_cpp='$CXXCPP $CPPFLAGS'
23421ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23422ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23423ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23424
23425
23426fi
23427echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
23428echo "${ECHO_T}$wx_cv_explicit" >&6
23429
23430 if test "$wx_cv_explicit" = "yes"; then
23431 cat >>confdefs.h <<\_ACEOF
23432#define HAVE_EXPLICIT 1
23433_ACEOF
23434
23435 fi
23436
23437
23438echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
23439echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
23440if test "${ac_cv_cxx_const_cast+set}" = set; then
23441 echo $ECHO_N "(cached) $ECHO_C" >&6
23442else
23443
23444
23445 ac_ext=cc
23446ac_cpp='$CXXCPP $CPPFLAGS'
23447ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23448ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23449ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23450
23451 cat >conftest.$ac_ext <<_ACEOF
23452/* confdefs.h. */
23453_ACEOF
23454cat confdefs.h >>conftest.$ac_ext
23455cat >>conftest.$ac_ext <<_ACEOF
23456/* end confdefs.h. */
23457
23458int
23459main ()
23460{
23461int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
23462 ;
23463 return 0;
23464}
23465_ACEOF
23466rm -f conftest.$ac_objext
23467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23468 (eval $ac_compile) 2>conftest.er1
a848cd7e 23469 ac_status=$?
ac1cb8d3
VS
23470 grep -v '^ *+' conftest.er1 >conftest.err
23471 rm -f conftest.er1
23472 cat conftest.err >&5
a848cd7e
SC
23473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474 (exit $ac_status); } &&
479c790c 23475 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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'
a848cd7e
SC
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_cxx_const_cast=yes
23488else
23489 echo "$as_me: failed program was:" >&5
23490sed 's/^/| /' conftest.$ac_ext >&5
23491
23492ac_cv_cxx_const_cast=no
23493fi
ac1cb8d3 23494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23495 ac_ext=cc
23496ac_cpp='$CXXCPP $CPPFLAGS'
23497ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23498ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23499ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23500
23501
23502fi
23503echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23504echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
23505if test "$ac_cv_cxx_const_cast" = yes; then
23506
23507cat >>confdefs.h <<\_ACEOF
23508#define HAVE_CONST_CAST
23509_ACEOF
23510
23511fi
23512
7714864e
RL
23513echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23514echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
23515if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23516 echo $ECHO_N "(cached) $ECHO_C" >&6
23517else
23518
23519
23520 ac_ext=cc
23521ac_cpp='$CXXCPP $CPPFLAGS'
23522ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23523ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23524ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23525
23526 cat >conftest.$ac_ext <<_ACEOF
23527/* confdefs.h. */
23528_ACEOF
23529cat confdefs.h >>conftest.$ac_ext
23530cat >>conftest.$ac_ext <<_ACEOF
23531/* end confdefs.h. */
23532#include <typeinfo>
23533class Base { public : Base () {} virtual void f () = 0;};
23534class Derived : public Base { public : Derived () {} virtual void f () {} };
23535class Unrelated { public : Unrelated () {} };
23536int g (Unrelated&) { return 0; }
23537int
23538main ()
23539{
23540
23541Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23542 ;
23543 return 0;
23544}
23545_ACEOF
23546rm -f conftest.$ac_objext
23547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23548 (eval $ac_compile) 2>conftest.er1
23549 ac_status=$?
23550 grep -v '^ *+' conftest.er1 >conftest.err
23551 rm -f conftest.er1
23552 cat conftest.err >&5
23553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23554 (exit $ac_status); } &&
479c790c 23555 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
23556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23557 (eval $ac_try) 2>&5
23558 ac_status=$?
23559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23560 (exit $ac_status); }; } &&
23561 { ac_try='test -s conftest.$ac_objext'
23562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23563 (eval $ac_try) 2>&5
23564 ac_status=$?
23565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566 (exit $ac_status); }; }; then
23567 ac_cv_cxx_reinterpret_cast=yes
23568else
23569 echo "$as_me: failed program was:" >&5
23570sed 's/^/| /' conftest.$ac_ext >&5
23571
23572ac_cv_cxx_reinterpret_cast=no
23573fi
23574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23575 ac_ext=cc
23576ac_cpp='$CXXCPP $CPPFLAGS'
23577ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23578ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23579ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7714864e
RL
23580
23581
23582fi
23583echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23584echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
23585if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23586
23587cat >>confdefs.h <<\_ACEOF
23588#define HAVE_REINTERPRET_CAST
23589_ACEOF
23590
23591fi
23592
a848cd7e
SC
23593echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23594echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
23595if test "${ac_cv_cxx_static_cast+set}" = set; then
23596 echo $ECHO_N "(cached) $ECHO_C" >&6
23597else
23598
23599
23600 ac_ext=cc
23601ac_cpp='$CXXCPP $CPPFLAGS'
23602ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23603ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23604ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23605
23606 cat >conftest.$ac_ext <<_ACEOF
23607/* confdefs.h. */
23608_ACEOF
23609cat confdefs.h >>conftest.$ac_ext
23610cat >>conftest.$ac_ext <<_ACEOF
23611/* end confdefs.h. */
23612#include <typeinfo>
23613class Base { public : Base () {} virtual void f () = 0; };
23614class Derived : public Base { public : Derived () {} virtual void f () {} };
23615int g (Derived&) { return 0; }
23616int
23617main ()
23618{
23619
23620Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23621 ;
23622 return 0;
23623}
23624_ACEOF
23625rm -f conftest.$ac_objext
23626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23627 (eval $ac_compile) 2>conftest.er1
a848cd7e 23628 ac_status=$?
ac1cb8d3
VS
23629 grep -v '^ *+' conftest.er1 >conftest.err
23630 rm -f conftest.er1
23631 cat conftest.err >&5
a848cd7e
SC
23632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633 (exit $ac_status); } &&
479c790c 23634 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23636 (eval $ac_try) 2>&5
23637 ac_status=$?
23638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639 (exit $ac_status); }; } &&
23640 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23642 (eval $ac_try) 2>&5
23643 ac_status=$?
23644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645 (exit $ac_status); }; }; then
23646 ac_cv_cxx_static_cast=yes
23647else
23648 echo "$as_me: failed program was:" >&5
23649sed 's/^/| /' conftest.$ac_ext >&5
23650
23651ac_cv_cxx_static_cast=no
23652fi
ac1cb8d3 23653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23654 ac_ext=cc
23655ac_cpp='$CXXCPP $CPPFLAGS'
23656ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23657ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23658ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23659
23660
23661fi
23662echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23663echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23664if test "$ac_cv_cxx_static_cast" = yes; then
23665
23666cat >>confdefs.h <<\_ACEOF
23667#define HAVE_STATIC_CAST
23668_ACEOF
23669
23670fi
23671
23672
3c28b7cb 23673if test "x$SUNCXX" = xyes; then
c92ad099 23674 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
23675fi
23676
9122d155 23677if test "x$SUNCC" = xyes; then
c92ad099 23678 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
23679fi
23680
0ad5d837 23681if test "x$SGICC" = "xyes"; then
c92ad099 23682 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
23683fi
23684if test "x$SGICXX" = "xyes"; then
c92ad099 23685 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
23686fi
23687
2eef8513 23688if test "x$HPCC" = "xyes"; then
c92ad099 23689 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
23690fi
23691if test "x$HPCXX" = "xyes"; then
c92ad099 23692 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
23693fi
23694
23695if test "x$COMPAQCXX" = "xyes"; then
23696 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23697fi
23698
f56c22b4 23699if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
23700 if test "$wxUSE_UNICODE" = "yes"; then
23701 std_string="std::wstring"
23702 char_type="wchar_t"
23703 else
23704 std_string="std::string"
23705 char_type="char"
23706 fi
23707
23708 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23709echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
23710 cat >conftest.$ac_ext <<_ACEOF
23711/* confdefs.h. */
23712_ACEOF
23713cat confdefs.h >>conftest.$ac_ext
23714cat >>conftest.$ac_ext <<_ACEOF
23715/* end confdefs.h. */
23716#include <string>
a848cd7e
SC
23717int
23718main ()
23719{
f56c22b4 23720$std_string foo;
a848cd7e
SC
23721 ;
23722 return 0;
23723}
23724_ACEOF
23725rm -f conftest.$ac_objext
23726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23727 (eval $ac_compile) 2>conftest.er1
a848cd7e 23728 ac_status=$?
ac1cb8d3
VS
23729 grep -v '^ *+' conftest.er1 >conftest.err
23730 rm -f conftest.er1
23731 cat conftest.err >&5
a848cd7e
SC
23732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733 (exit $ac_status); } &&
479c790c 23734 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23736 (eval $ac_try) 2>&5
23737 ac_status=$?
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); }; } &&
23740 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23742 (eval $ac_try) 2>&5
23743 ac_status=$?
23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745 (exit $ac_status); }; }; then
23746 echo "$as_me:$LINENO: result: yes" >&5
23747echo "${ECHO_T}yes" >&6
0a08f02a
MB
23748 cat >>confdefs.h <<\_ACEOF
23749#define HAVE_STD_WSTRING 1
23750_ACEOF
23751
a848cd7e
SC
23752else
23753 echo "$as_me: failed program was:" >&5
23754sed 's/^/| /' conftest.$ac_ext >&5
23755
23756echo "$as_me:$LINENO: result: no" >&5
23757echo "${ECHO_T}no" >&6
f56c22b4
MW
23758 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23759echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
23760 cat >conftest.$ac_ext <<_ACEOF
23761/* confdefs.h. */
23762_ACEOF
23763cat confdefs.h >>conftest.$ac_ext
23764cat >>conftest.$ac_ext <<_ACEOF
23765/* end confdefs.h. */
23766
23767 #ifdef HAVE_WCHAR_H
23768 # ifdef __CYGWIN__
23769 # include <stddef.h>
23770 # endif
23771 # include <wchar.h>
23772 #endif
23773 #ifdef HAVE_STDLIB_H
23774 # include <stdlib.h>
23775 #endif
23776 #include <stdio.h>
23777 #include <string>
23778
23779int
23780main ()
23781{
f56c22b4
MW
23782std::basic_string<$char_type> foo;
23783 const $char_type* dummy = foo.c_str();
0a08f02a
MB
23784 ;
23785 return 0;
23786}
23787_ACEOF
23788rm -f conftest.$ac_objext
23789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23790 (eval $ac_compile) 2>conftest.er1
23791 ac_status=$?
23792 grep -v '^ *+' conftest.er1 >conftest.err
23793 rm -f conftest.er1
23794 cat conftest.err >&5
23795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23796 (exit $ac_status); } &&
479c790c 23797 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
23798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23799 (eval $ac_try) 2>&5
23800 ac_status=$?
23801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23802 (exit $ac_status); }; } &&
23803 { ac_try='test -s conftest.$ac_objext'
23804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23805 (eval $ac_try) 2>&5
23806 ac_status=$?
23807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23808 (exit $ac_status); }; }; then
23809 echo "$as_me:$LINENO: result: yes" >&5
23810echo "${ECHO_T}yes" >&6
23811else
23812 echo "$as_me: failed program was:" >&5
23813sed 's/^/| /' conftest.$ac_ext >&5
23814
23815echo "$as_me:$LINENO: result: no" >&5
23816echo "${ECHO_T}no" >&6
f56c22b4 23817 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
23818 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23819echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23820 { (exit 1); exit 1; }; }
23821 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23822 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23823echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 23824 { (exit 1); exit 1; }; }
f56c22b4
MW
23825 else
23826 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23827echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23828 wxUSE_STD_STRING=no
23829 fi
23830
0a08f02a 23831
a848cd7e 23832fi
ac1cb8d3 23833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23834
0a08f02a
MB
23835fi
23836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4
MW
23837fi
23838
23839if test "$wxUSE_STD_IOSTREAM" = "yes"; then
f56c22b4
MW
23840 echo "$as_me:$LINENO: checking for std::istream" >&5
23841echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23842if test "${ac_cv_type_std__istream+set}" = set; then
23843 echo $ECHO_N "(cached) $ECHO_C" >&6
23844else
23845 cat >conftest.$ac_ext <<_ACEOF
23846/* confdefs.h. */
23847_ACEOF
23848cat confdefs.h >>conftest.$ac_ext
23849cat >>conftest.$ac_ext <<_ACEOF
23850/* end confdefs.h. */
23851#include <iostream>
23852
23853int
23854main ()
23855{
23856if ((std::istream *) 0)
23857 return 0;
23858if (sizeof (std::istream))
23859 return 0;
23860 ;
23861 return 0;
23862}
23863_ACEOF
23864rm -f conftest.$ac_objext
23865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23866 (eval $ac_compile) 2>conftest.er1
23867 ac_status=$?
23868 grep -v '^ *+' conftest.er1 >conftest.err
23869 rm -f conftest.er1
23870 cat conftest.err >&5
23871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23872 (exit $ac_status); } &&
479c790c 23873 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23875 (eval $ac_try) 2>&5
23876 ac_status=$?
23877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878 (exit $ac_status); }; } &&
23879 { ac_try='test -s conftest.$ac_objext'
23880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23881 (eval $ac_try) 2>&5
23882 ac_status=$?
23883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884 (exit $ac_status); }; }; then
23885 ac_cv_type_std__istream=yes
23886else
23887 echo "$as_me: failed program was:" >&5
23888sed 's/^/| /' conftest.$ac_ext >&5
23889
23890ac_cv_type_std__istream=no
23891fi
23892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23893fi
23894echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23895echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23896if test $ac_cv_type_std__istream = yes; then
23897
23898cat >>confdefs.h <<_ACEOF
23899#define HAVE_STD__ISTREAM 1
23900_ACEOF
23901
23902
23903else
23904 wxUSE_STD_IOSTREAM=no
23905fi
23906echo "$as_me:$LINENO: checking for std::ostream" >&5
23907echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23908if test "${ac_cv_type_std__ostream+set}" = set; then
23909 echo $ECHO_N "(cached) $ECHO_C" >&6
23910else
23911 cat >conftest.$ac_ext <<_ACEOF
23912/* confdefs.h. */
23913_ACEOF
23914cat confdefs.h >>conftest.$ac_ext
23915cat >>conftest.$ac_ext <<_ACEOF
23916/* end confdefs.h. */
23917#include <iostream>
23918
23919int
23920main ()
23921{
23922if ((std::ostream *) 0)
23923 return 0;
23924if (sizeof (std::ostream))
23925 return 0;
23926 ;
23927 return 0;
23928}
23929_ACEOF
23930rm -f conftest.$ac_objext
23931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23932 (eval $ac_compile) 2>conftest.er1
23933 ac_status=$?
23934 grep -v '^ *+' conftest.er1 >conftest.err
23935 rm -f conftest.er1
23936 cat conftest.err >&5
23937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938 (exit $ac_status); } &&
479c790c 23939 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23941 (eval $ac_try) 2>&5
23942 ac_status=$?
23943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944 (exit $ac_status); }; } &&
23945 { ac_try='test -s conftest.$ac_objext'
23946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23947 (eval $ac_try) 2>&5
23948 ac_status=$?
23949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23950 (exit $ac_status); }; }; then
23951 ac_cv_type_std__ostream=yes
23952else
23953 echo "$as_me: failed program was:" >&5
23954sed 's/^/| /' conftest.$ac_ext >&5
23955
23956ac_cv_type_std__ostream=no
23957fi
23958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23959fi
23960echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23961echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23962if test $ac_cv_type_std__ostream = yes; then
23963
23964cat >>confdefs.h <<_ACEOF
23965#define HAVE_STD__OSTREAM 1
23966_ACEOF
23967
23968
23969else
23970 wxUSE_STD_IOSTREAM=no
23971fi
23972
23973
23974 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
23975 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23976 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23977echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23978 { (exit 1); exit 1; }; }
23979 else
23980 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23981echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23982 fi
f56c22b4 23983 fi
0a08f02a
MB
23984fi
23985
23986if test "$wxUSE_STL" = "yes"; then
0a08f02a
MB
23987 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23988echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
23989 cat >conftest.$ac_ext <<_ACEOF
23990/* confdefs.h. */
23991_ACEOF
23992cat confdefs.h >>conftest.$ac_ext
23993cat >>conftest.$ac_ext <<_ACEOF
23994/* end confdefs.h. */
23995#include <string>
0a08f02a
MB
23996 #include <functional>
23997 #include <algorithm>
23998 #include <vector>
23999 #include <list>
a848cd7e
SC
24000int
24001main ()
24002{
0a08f02a
MB
24003std::vector<int> moo;
24004 std::list<int> foo;
24005 std::vector<int>::iterator it =
24006 std::find_if(moo.begin(), moo.end(),
24007 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
24008 ;
24009 return 0;
24010}
24011_ACEOF
24012rm -f conftest.$ac_objext
24013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24014 (eval $ac_compile) 2>conftest.er1
a848cd7e 24015 ac_status=$?
ac1cb8d3
VS
24016 grep -v '^ *+' conftest.er1 >conftest.err
24017 rm -f conftest.er1
24018 cat conftest.err >&5
a848cd7e
SC
24019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020 (exit $ac_status); } &&
479c790c 24021 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24023 (eval $ac_try) 2>&5
24024 ac_status=$?
24025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026 (exit $ac_status); }; } &&
24027 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24029 (eval $ac_try) 2>&5
24030 ac_status=$?
24031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24032 (exit $ac_status); }; }; then
24033 echo "$as_me:$LINENO: result: yes" >&5
24034echo "${ECHO_T}yes" >&6
a848cd7e
SC
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
0a08f02a
MB
24041 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
24042echo "$as_me: error: Basic STL functionality missing" >&2;}
24043 { (exit 1); exit 1; }; }
a848cd7e 24044fi
ac1cb8d3 24045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24046
24047 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
24048echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
24049 cat >conftest.$ac_ext <<_ACEOF
24050/* confdefs.h. */
24051_ACEOF
24052cat confdefs.h >>conftest.$ac_ext
24053cat >>conftest.$ac_ext <<_ACEOF
24054/* end confdefs.h. */
24055#include <string>
24056int
24057main ()
24058{
24059std::string foo, bar;
24060 foo.compare(bar);
24061 foo.compare(1, 1, bar);
24062 foo.compare(1, 1, bar, 1, 1);
24063 foo.compare("");
24064 foo.compare(1, 1, "");
24065 foo.compare(1, 1, "", 2);
24066 ;
24067 return 0;
24068}
24069_ACEOF
24070rm -f conftest.$ac_objext
24071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24072 (eval $ac_compile) 2>conftest.er1
a848cd7e 24073 ac_status=$?
ac1cb8d3
VS
24074 grep -v '^ *+' conftest.er1 >conftest.err
24075 rm -f conftest.er1
24076 cat conftest.err >&5
a848cd7e
SC
24077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24078 (exit $ac_status); } &&
479c790c 24079 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24081 (eval $ac_try) 2>&5
24082 ac_status=$?
24083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24084 (exit $ac_status); }; } &&
24085 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24087 (eval $ac_try) 2>&5
24088 ac_status=$?
24089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24090 (exit $ac_status); }; }; then
24091 echo "$as_me:$LINENO: result: yes" >&5
24092echo "${ECHO_T}yes" >&6
24093 cat >>confdefs.h <<\_ACEOF
24094#define HAVE_STD_STRING_COMPARE 1
24095_ACEOF
24096
24097else
24098 echo "$as_me: failed program was:" >&5
24099sed 's/^/| /' conftest.$ac_ext >&5
24100
24101echo "$as_me:$LINENO: result: no" >&5
24102echo "${ECHO_T}no" >&6
24103fi
ac1cb8d3 24104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24105
24106 if test "${ac_cv_header_hash_map+set}" = set; then
24107 echo "$as_me:$LINENO: checking for hash_map" >&5
24108echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
24109if test "${ac_cv_header_hash_map+set}" = set; then
24110 echo $ECHO_N "(cached) $ECHO_C" >&6
24111fi
24112echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24113echo "${ECHO_T}$ac_cv_header_hash_map" >&6
24114else
24115 # Is the header compilable?
24116echo "$as_me:$LINENO: checking hash_map usability" >&5
24117echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
24118cat >conftest.$ac_ext <<_ACEOF
24119/* confdefs.h. */
24120_ACEOF
24121cat confdefs.h >>conftest.$ac_ext
24122cat >>conftest.$ac_ext <<_ACEOF
24123/* end confdefs.h. */
24124$ac_includes_default
24125#include <hash_map>
24126_ACEOF
24127rm -f conftest.$ac_objext
24128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24129 (eval $ac_compile) 2>conftest.er1
bdcade0a 24130 ac_status=$?
ac1cb8d3
VS
24131 grep -v '^ *+' conftest.er1 >conftest.err
24132 rm -f conftest.er1
24133 cat conftest.err >&5
bdcade0a
MB
24134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135 (exit $ac_status); } &&
479c790c 24136 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24138 (eval $ac_try) 2>&5
24139 ac_status=$?
24140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24141 (exit $ac_status); }; } &&
24142 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24144 (eval $ac_try) 2>&5
24145 ac_status=$?
24146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147 (exit $ac_status); }; }; then
24148 ac_header_compiler=yes
24149else
24150 echo "$as_me: failed program was:" >&5
24151sed 's/^/| /' conftest.$ac_ext >&5
24152
24153ac_header_compiler=no
24154fi
ac1cb8d3 24155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24156echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24157echo "${ECHO_T}$ac_header_compiler" >&6
24158
24159# Is the header present?
24160echo "$as_me:$LINENO: checking hash_map presence" >&5
24161echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
24162cat >conftest.$ac_ext <<_ACEOF
24163/* confdefs.h. */
24164_ACEOF
24165cat confdefs.h >>conftest.$ac_ext
24166cat >>conftest.$ac_ext <<_ACEOF
24167/* end confdefs.h. */
24168#include <hash_map>
24169_ACEOF
24170if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24172 ac_status=$?
24173 grep -v '^ *+' conftest.er1 >conftest.err
24174 rm -f conftest.er1
24175 cat conftest.err >&5
24176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24177 (exit $ac_status); } >/dev/null; then
24178 if test -s conftest.err; then
24179 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 24180 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
24181 else
24182 ac_cpp_err=
24183 fi
24184else
24185 ac_cpp_err=yes
24186fi
24187if test -z "$ac_cpp_err"; then
24188 ac_header_preproc=yes
24189else
24190 echo "$as_me: failed program was:" >&5
24191sed 's/^/| /' conftest.$ac_ext >&5
24192
24193 ac_header_preproc=no
24194fi
24195rm -f conftest.err conftest.$ac_ext
24196echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24197echo "${ECHO_T}$ac_header_preproc" >&6
24198
24199# So? What about this header?
ac1cb8d3
VS
24200case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24201 yes:no: )
bdcade0a
MB
24202 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24203echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24204 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
24205echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
24206 ac_header_preproc=yes
bdcade0a 24207 ;;
ac1cb8d3 24208 no:yes:* )
bdcade0a
MB
24209 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
24210echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24211 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
24212echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
24213 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
24214echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
24215 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
24216echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
24217 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
24218echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24219 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
24220echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
24221 (
24222 cat <<\_ASBOX
ac1cb8d3
VS
24223## ----------------------------------------- ##
24224## Report this to wx-dev@lists.wxwidgets.org ##
24225## ----------------------------------------- ##
bdcade0a
MB
24226_ASBOX
24227 ) |
24228 sed "s/^/$as_me: WARNING: /" >&2
24229 ;;
24230esac
24231echo "$as_me:$LINENO: checking for hash_map" >&5
24232echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
24233if test "${ac_cv_header_hash_map+set}" = set; then
24234 echo $ECHO_N "(cached) $ECHO_C" >&6
24235else
24236 ac_cv_header_hash_map=$ac_header_preproc
24237fi
24238echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24239echo "${ECHO_T}$ac_cv_header_hash_map" >&6
24240
24241fi
24242if test $ac_cv_header_hash_map = yes; then
24243 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24244echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24245 cat >conftest.$ac_ext <<_ACEOF
24246/* confdefs.h. */
24247_ACEOF
24248cat confdefs.h >>conftest.$ac_ext
24249cat >>conftest.$ac_ext <<_ACEOF
24250/* end confdefs.h. */
24251#include <hash_map>
24252 #include <hash_set>
24253int
24254main ()
24255{
24256std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
24257 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
24258 ;
24259 return 0;
24260}
24261_ACEOF
24262rm -f conftest.$ac_objext
24263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24264 (eval $ac_compile) 2>conftest.er1
bdcade0a 24265 ac_status=$?
ac1cb8d3
VS
24266 grep -v '^ *+' conftest.er1 >conftest.err
24267 rm -f conftest.er1
24268 cat conftest.err >&5
bdcade0a
MB
24269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270 (exit $ac_status); } &&
479c790c 24271 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24273 (eval $ac_try) 2>&5
24274 ac_status=$?
24275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24276 (exit $ac_status); }; } &&
24277 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24279 (eval $ac_try) 2>&5
24280 ac_status=$?
24281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24282 (exit $ac_status); }; }; then
24283 echo "$as_me:$LINENO: result: yes" >&5
24284echo "${ECHO_T}yes" >&6
24285 cat >>confdefs.h <<\_ACEOF
24286#define HAVE_HASH_MAP 1
24287_ACEOF
24288
24289 cat >>confdefs.h <<\_ACEOF
24290#define HAVE_STD_HASH_MAP 1
24291_ACEOF
24292
24293else
24294 echo "$as_me: failed program was:" >&5
24295sed 's/^/| /' conftest.$ac_ext >&5
24296
24297echo "$as_me:$LINENO: result: no" >&5
24298echo "${ECHO_T}no" >&6
24299fi
ac1cb8d3 24300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24301
24302fi
24303
24304
24305
24306 if test "${ac_cv_header_ext_hash_map+set}" = set; then
24307 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24308echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24309if test "${ac_cv_header_ext_hash_map+set}" = set; then
24310 echo $ECHO_N "(cached) $ECHO_C" >&6
24311fi
24312echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24313echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24314else
24315 # Is the header compilable?
24316echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
24317echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
24318cat >conftest.$ac_ext <<_ACEOF
24319/* confdefs.h. */
24320_ACEOF
24321cat confdefs.h >>conftest.$ac_ext
24322cat >>conftest.$ac_ext <<_ACEOF
24323/* end confdefs.h. */
24324$ac_includes_default
24325#include <ext/hash_map>
24326_ACEOF
24327rm -f conftest.$ac_objext
24328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24329 (eval $ac_compile) 2>conftest.er1
bdcade0a 24330 ac_status=$?
ac1cb8d3
VS
24331 grep -v '^ *+' conftest.er1 >conftest.err
24332 rm -f conftest.er1
24333 cat conftest.err >&5
bdcade0a
MB
24334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335 (exit $ac_status); } &&
479c790c 24336 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24338 (eval $ac_try) 2>&5
24339 ac_status=$?
24340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24341 (exit $ac_status); }; } &&
24342 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24344 (eval $ac_try) 2>&5
24345 ac_status=$?
24346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24347 (exit $ac_status); }; }; then
24348 ac_header_compiler=yes
24349else
24350 echo "$as_me: failed program was:" >&5
24351sed 's/^/| /' conftest.$ac_ext >&5
24352
24353ac_header_compiler=no
24354fi
ac1cb8d3 24355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24356echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24357echo "${ECHO_T}$ac_header_compiler" >&6
24358
24359# Is the header present?
24360echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
24361echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
24362cat >conftest.$ac_ext <<_ACEOF
24363/* confdefs.h. */
24364_ACEOF
24365cat confdefs.h >>conftest.$ac_ext
24366cat >>conftest.$ac_ext <<_ACEOF
24367/* end confdefs.h. */
24368#include <ext/hash_map>
24369_ACEOF
24370if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24372 ac_status=$?
24373 grep -v '^ *+' conftest.er1 >conftest.err
24374 rm -f conftest.er1
24375 cat conftest.err >&5
24376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377 (exit $ac_status); } >/dev/null; then
24378 if test -s conftest.err; then
24379 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 24380 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
24381 else
24382 ac_cpp_err=
24383 fi
24384else
24385 ac_cpp_err=yes
24386fi
24387if test -z "$ac_cpp_err"; then
24388 ac_header_preproc=yes
24389else
24390 echo "$as_me: failed program was:" >&5
24391sed 's/^/| /' conftest.$ac_ext >&5
24392
24393 ac_header_preproc=no
24394fi
24395rm -f conftest.err conftest.$ac_ext
24396echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24397echo "${ECHO_T}$ac_header_preproc" >&6
24398
24399# So? What about this header?
ac1cb8d3
VS
24400case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24401 yes:no: )
bdcade0a
MB
24402 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24403echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24404 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
24405echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
24406 ac_header_preproc=yes
bdcade0a 24407 ;;
ac1cb8d3 24408 no:yes:* )
bdcade0a
MB
24409 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
24410echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24411 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
24412echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
24413 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
24414echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
24415 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
24416echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
24417 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
24418echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24419 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
24420echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
24421 (
24422 cat <<\_ASBOX
ac1cb8d3
VS
24423## ----------------------------------------- ##
24424## Report this to wx-dev@lists.wxwidgets.org ##
24425## ----------------------------------------- ##
bdcade0a
MB
24426_ASBOX
24427 ) |
24428 sed "s/^/$as_me: WARNING: /" >&2
24429 ;;
24430esac
24431echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24432echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24433if test "${ac_cv_header_ext_hash_map+set}" = set; then
24434 echo $ECHO_N "(cached) $ECHO_C" >&6
24435else
24436 ac_cv_header_ext_hash_map=$ac_header_preproc
24437fi
24438echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24439echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24440
24441fi
24442if test $ac_cv_header_ext_hash_map = yes; then
24443 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24444echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24445 cat >conftest.$ac_ext <<_ACEOF
24446/* confdefs.h. */
24447_ACEOF
24448cat confdefs.h >>conftest.$ac_ext
24449cat >>conftest.$ac_ext <<_ACEOF
24450/* end confdefs.h. */
24451#include <ext/hash_map>
24452 #include <ext/hash_set>
24453int
24454main ()
24455{
24456__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
24457 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
24458 ;
24459 return 0;
24460}
24461_ACEOF
24462rm -f conftest.$ac_objext
24463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24464 (eval $ac_compile) 2>conftest.er1
bdcade0a 24465 ac_status=$?
ac1cb8d3
VS
24466 grep -v '^ *+' conftest.er1 >conftest.err
24467 rm -f conftest.er1
24468 cat conftest.err >&5
bdcade0a
MB
24469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470 (exit $ac_status); } &&
479c790c 24471 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24473 (eval $ac_try) 2>&5
24474 ac_status=$?
24475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476 (exit $ac_status); }; } &&
24477 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479 (eval $ac_try) 2>&5
24480 ac_status=$?
24481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482 (exit $ac_status); }; }; then
24483 echo "$as_me:$LINENO: result: yes" >&5
24484echo "${ECHO_T}yes" >&6
24485 cat >>confdefs.h <<\_ACEOF
24486#define HAVE_EXT_HASH_MAP 1
24487_ACEOF
24488
24489 cat >>confdefs.h <<\_ACEOF
24490#define HAVE_GNU_CXX_HASH_MAP 1
24491_ACEOF
24492
24493else
24494 echo "$as_me: failed program was:" >&5
24495sed 's/^/| /' conftest.$ac_ext >&5
24496
24497echo "$as_me:$LINENO: result: no" >&5
24498echo "${ECHO_T}no" >&6
24499fi
ac1cb8d3 24500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24501
24502fi
24503
24504
a848cd7e
SC
24505fi
24506
24507
24508SEARCH_INCLUDE="\
24509 /usr/local/include \
24510 \
24511 /usr/Motif-2.1/include \
24512 /usr/Motif-1.2/include \
24513 /usr/include/Motif1.2 \
a848cd7e
SC
24514 \
24515 /usr/dt/include \
24516 /usr/openwin/include \
24517 \
24518 /usr/include/Xm \
24519 \
24520 /usr/X11R6/include \
24521 /usr/X11R6.4/include \
24522 /usr/X11R5/include \
24523 /usr/X11R4/include \
24524 \
24525 /usr/include/X11R6 \
24526 /usr/include/X11R5 \
24527 /usr/include/X11R4 \
24528 \
24529 /usr/local/X11R6/include \
24530 /usr/local/X11R5/include \
24531 /usr/local/X11R4/include \
24532 \
24533 /usr/local/include/X11R6 \
24534 /usr/local/include/X11R5 \
24535 /usr/local/include/X11R4 \
24536 \
24537 /usr/X11/include \
24538 /usr/include/X11 \
24539 /usr/local/X11/include \
24540 /usr/local/include/X11 \
24541 \
a848cd7e 24542 /usr/XFree86/include/X11 \
e051b34e
MW
24543 /usr/pkg/include \
24544 \
a848cd7e
SC
24545 /usr/openwin/share/include"
24546
6f9cf1e6 24547echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 24548echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
24549
24550case "${host}" in
24551 *-*-irix6* )
24552 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
24553 echo $ECHO_N "(cached) $ECHO_C" >&6
24554else
24555
c687b303
VZ
24556 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24557 for e in a so sl dylib dll.a; do
24558 libc="$d/libc.$e"
24559 if test -f $libc; then
24560 save_LIBS="$LIBS"
24561 LIBS="$libc"
24562 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
24563int main() { return 0; }
24564_ACEOF
24565rm -f conftest.$ac_objext conftest$ac_exeext
24566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24567 (eval $ac_link) 2>conftest.er1
24568 ac_status=$?
24569 grep -v '^ *+' conftest.er1 >conftest.err
24570 rm -f conftest.er1
24571 cat conftest.err >&5
24572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24573 (exit $ac_status); } &&
479c790c 24574 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
24575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24576 (eval $ac_try) 2>&5
24577 ac_status=$?
24578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24579 (exit $ac_status); }; } &&
24580 { ac_try='test -s conftest$ac_exeext'
24581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24582 (eval $ac_try) 2>&5
24583 ac_status=$?
24584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24585 (exit $ac_status); }; }; then
24586 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24587else
24588 echo "$as_me: failed program was:" >&5
24589sed 's/^/| /' conftest.$ac_ext >&5
24590
24591fi
24592rm -f conftest.err conftest.$ac_objext \
24593 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
24594 LIBS="$save_LIBS"
24595 if test "x$wx_cv_std_libpath" != "x"; then
24596 break 2
24597 fi
24598 fi
24599 done
24600 done
24601 if test "x$wx_cv_std_libpath" = "x"; then
24602 wx_cv_std_libpath="lib"
0ad5d837 24603 fi
0ad5d837
VZ
24604
24605
24606fi
6f9cf1e6
MW
24607
24608 ;;
24609
24610 *-*-solaris2* )
24611 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24612 wx_cv_std_libpath="lib/64"
24613 else
24614 wx_cv_std_libpath="lib"
24615 fi
24616 ;;
24617
24618 *-*-linux* )
24619 if test "$ac_cv_sizeof_void_p" = 8 -a \
24620 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24621 wx_cv_std_libpath="lib64"
24622 else
24623 wx_cv_std_libpath="lib"
24624 fi
c687b303
VZ
24625 ;;
24626
24627 *)
24628 wx_cv_std_libpath="lib";
24629 ;;
24630esac
0ad5d837 24631
6f9cf1e6
MW
24632echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24633echo "${ECHO_T}$wx_cv_std_libpath" >&6
24634
24635SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 24636
3eca31dc
MW
24637if test "$build" != "$host" -a "$GCC" = yes; then
24638 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24639 cross_root=`dirname $cross_root`
24640 cross_root=`dirname $cross_root`
24641
24642 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24643 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 24644 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
24645
24646 if test -z "$PKG_CONFIG_PATH"; then
24647 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24648 export PKG_CONFIG_PATH
24649 fi
24650
24651 if test -z "$x_includes" -o "$x_includes" = NONE; then
24652
24653ac_find_includes=
24654for ac_dir in $SEARCH_INCLUDE /usr/include;
24655 do
24656 if test -f "$ac_dir/X11/Intrinsic.h"; then
24657 ac_find_includes=$ac_dir
24658 break
24659 fi
24660 done
24661
24662 x_includes=$ac_find_includes
24663 fi
24664 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24665
0ad5d837
VZ
24666 ac_find_libraries=
24667 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
24668 do
24669 for ac_extension in a so sl dylib dll.a; do
24670 if test -f "$ac_dir/libXt.$ac_extension"; then
24671 ac_find_libraries=$ac_dir
24672 break 2
24673 fi
24674 done
24675 done
24676
24677 x_libraries=$ac_find_libraries
24678 fi
24679 fi
24680fi
24681
a848cd7e
SC
24682
24683cat >confcache <<\_ACEOF
24684# This file is a shell script that caches the results of configure
24685# tests run on this system so they can be shared between configure
24686# scripts and configure runs, see configure's option --config-cache.
24687# It is not useful on other systems. If it contains results you don't
24688# want to keep, you may remove or edit it.
24689#
24690# config.status only pays attention to the cache file if you give it
24691# the --recheck option to rerun configure.
24692#
24693# `ac_cv_env_foo' variables (set or unset) will be overridden when
24694# loading this file, other *unset* `ac_cv_foo' will be assigned the
24695# following values.
24696
24697_ACEOF
24698
24699# The following way of writing the cache mishandles newlines in values,
24700# but we know of no workaround that is simple, portable, and efficient.
24701# So, don't put newlines in cache variables' values.
24702# Ultrix sh set writes to stderr and can't be redirected directly,
24703# and sets the high bit in the cache file unless we assign to the vars.
24704{
24705 (set) 2>&1 |
24706 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24707 *ac_space=\ *)
24708 # `set' does not quote correctly, so add quotes (double-quote
24709 # substitution turns \\\\ into \\, and sed turns \\ into \).
24710 sed -n \
ac1cb8d3
VS
24711 "s/'/'\\\\''/g;
24712 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
24713 ;;
24714 *)
24715 # `set' quotes correctly as required by POSIX, so do not add quotes.
24716 sed -n \
ac1cb8d3 24717 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
24718 ;;
24719 esac;
24720} |
24721 sed '
24722 t clear
24723 : clear
24724 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24725 t end
24726 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24727 : end' >>confcache
24728if diff $cache_file confcache >/dev/null 2>&1; then :; else
24729 if test -w $cache_file; then
24730 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24731 cat confcache >$cache_file
24732 else
24733 echo "not updating unwritable cache $cache_file"
24734 fi
24735fi
24736rm -f confcache
24737
24738if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24739 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24740echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24741if test "${wx_cv_lib_glibc21+set}" = set; then
24742 echo $ECHO_N "(cached) $ECHO_C" >&6
24743else
24744
24745 cat >conftest.$ac_ext <<_ACEOF
24746/* confdefs.h. */
24747_ACEOF
24748cat confdefs.h >>conftest.$ac_ext
24749cat >>conftest.$ac_ext <<_ACEOF
24750/* end confdefs.h. */
24751#include <features.h>
24752int
24753main ()
24754{
24755
24756 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 24757 not glibc 2.1
a848cd7e
SC
24758 #endif
24759
24760 ;
24761 return 0;
24762}
24763_ACEOF
24764rm -f conftest.$ac_objext
24765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24766 (eval $ac_compile) 2>conftest.er1
a848cd7e 24767 ac_status=$?
ac1cb8d3
VS
24768 grep -v '^ *+' conftest.er1 >conftest.err
24769 rm -f conftest.er1
24770 cat conftest.err >&5
a848cd7e
SC
24771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24772 (exit $ac_status); } &&
479c790c 24773 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24775 (eval $ac_try) 2>&5
24776 ac_status=$?
24777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778 (exit $ac_status); }; } &&
24779 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24781 (eval $ac_try) 2>&5
24782 ac_status=$?
24783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784 (exit $ac_status); }; }; then
24785
24786 wx_cv_lib_glibc21=yes
24787
24788else
24789 echo "$as_me: failed program was:" >&5
24790sed 's/^/| /' conftest.$ac_ext >&5
24791
24792
24793 wx_cv_lib_glibc21=no
24794
24795
24796fi
ac1cb8d3 24797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24798
24799fi
24800echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24801echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24802 if test "$wx_cv_lib_glibc21" = "yes"; then
24803 cat >>confdefs.h <<\_ACEOF
24804#define wxHAVE_GLIBC2 1
24805_ACEOF
24806
24807 fi
24808fi
24809
24810if test "x$wx_cv_lib_glibc21" = "xyes"; then
24811 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24812 cat >>confdefs.h <<\_ACEOF
24813#define _GNU_SOURCE 1
24814_ACEOF
24815
24816 fi
24817fi
24818
5d7b7554
VZ
24819have_cos=0
24820have_floor=0
a848cd7e 24821
5d7b7554
VZ
24822for ac_func in cos
24823do
24824as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24825echo "$as_me:$LINENO: checking for $ac_func" >&5
24826echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24827if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e 24828 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 24829else
5d7b7554 24830 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
24831/* confdefs.h. */
24832_ACEOF
24833cat confdefs.h >>conftest.$ac_ext
24834cat >>conftest.$ac_ext <<_ACEOF
24835/* end confdefs.h. */
5d7b7554
VZ
24836/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24838#define $ac_func innocuous_$ac_func
24839
24840/* System header to define __stub macros and hopefully few prototypes,
24841 which can conflict with char $ac_func (); below.
24842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24843 <limits.h> exists even on freestanding compilers. */
24844
24845#ifdef __STDC__
24846# include <limits.h>
24847#else
24848# include <assert.h>
24849#endif
24850
24851#undef $ac_func
24852
24853/* Override any gcc2 internal prototype to avoid an error. */
24854#ifdef __cplusplus
24855extern "C"
24856{
24857#endif
24858/* We use char because int might match the return type of a gcc2
24859 builtin and then its argument prototype would still apply. */
24860char $ac_func ();
24861/* The GNU C library defines this for functions which it implements
24862 to always fail with ENOSYS. Some functions are actually named
24863 something starting with __ and the normal name is an alias. */
24864#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24865choke me
24866#else
24867char (*f) () = $ac_func;
24868#endif
24869#ifdef __cplusplus
24870}
24871#endif
24872
24873int
24874main ()
24875{
24876return f != $ac_func;
24877 ;
24878 return 0;
24879}
a848cd7e 24880_ACEOF
5d7b7554
VZ
24881rm -f conftest.$ac_objext conftest$ac_exeext
24882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24883 (eval $ac_link) 2>conftest.er1
a848cd7e 24884 ac_status=$?
ac1cb8d3
VS
24885 grep -v '^ *+' conftest.er1 >conftest.err
24886 rm -f conftest.er1
24887 cat conftest.err >&5
a848cd7e
SC
24888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889 (exit $ac_status); } &&
479c790c 24890 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24892 (eval $ac_try) 2>&5
24893 ac_status=$?
24894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895 (exit $ac_status); }; } &&
5d7b7554 24896 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24898 (eval $ac_try) 2>&5
24899 ac_status=$?
24900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901 (exit $ac_status); }; }; then
5d7b7554 24902 eval "$as_ac_var=yes"
a848cd7e
SC
24903else
24904 echo "$as_me: failed program was:" >&5
24905sed 's/^/| /' conftest.$ac_ext >&5
24906
5d7b7554 24907eval "$as_ac_var=no"
a848cd7e 24908fi
5d7b7554
VZ
24909rm -f conftest.err conftest.$ac_objext \
24910 conftest$ac_exeext conftest.$ac_ext
a848cd7e 24911fi
5d7b7554
VZ
24912echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24913echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24914if test `eval echo '${'$as_ac_var'}'` = yes; then
24915 cat >>confdefs.h <<_ACEOF
24916#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24917_ACEOF
24918 have_cos=1
a848cd7e 24919fi
5d7b7554 24920done
a848cd7e 24921
ab0f0edd 24922
5d7b7554 24923for ac_func in floor
a848cd7e
SC
24924do
24925as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24926echo "$as_me:$LINENO: checking for $ac_func" >&5
24927echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24928if eval "test \"\${$as_ac_var+set}\" = set"; then
24929 echo $ECHO_N "(cached) $ECHO_C" >&6
24930else
24931 cat >conftest.$ac_ext <<_ACEOF
24932/* confdefs.h. */
24933_ACEOF
24934cat confdefs.h >>conftest.$ac_ext
24935cat >>conftest.$ac_ext <<_ACEOF
24936/* end confdefs.h. */
ac1cb8d3
VS
24937/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24939#define $ac_func innocuous_$ac_func
24940
a848cd7e
SC
24941/* System header to define __stub macros and hopefully few prototypes,
24942 which can conflict with char $ac_func (); below.
24943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24944 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24945
a848cd7e
SC
24946#ifdef __STDC__
24947# include <limits.h>
24948#else
24949# include <assert.h>
24950#endif
ac1cb8d3
VS
24951
24952#undef $ac_func
24953
a848cd7e
SC
24954/* Override any gcc2 internal prototype to avoid an error. */
24955#ifdef __cplusplus
24956extern "C"
24957{
24958#endif
24959/* We use char because int might match the return type of a gcc2
24960 builtin and then its argument prototype would still apply. */
24961char $ac_func ();
24962/* The GNU C library defines this for functions which it implements
24963 to always fail with ENOSYS. Some functions are actually named
24964 something starting with __ and the normal name is an alias. */
24965#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24966choke me
24967#else
24968char (*f) () = $ac_func;
24969#endif
24970#ifdef __cplusplus
24971}
24972#endif
24973
24974int
24975main ()
24976{
24977return f != $ac_func;
24978 ;
24979 return 0;
24980}
24981_ACEOF
24982rm -f conftest.$ac_objext conftest$ac_exeext
24983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24984 (eval $ac_link) 2>conftest.er1
a848cd7e 24985 ac_status=$?
ac1cb8d3
VS
24986 grep -v '^ *+' conftest.er1 >conftest.err
24987 rm -f conftest.er1
24988 cat conftest.err >&5
a848cd7e
SC
24989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24990 (exit $ac_status); } &&
479c790c 24991 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24993 (eval $ac_try) 2>&5
24994 ac_status=$?
24995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996 (exit $ac_status); }; } &&
24997 { ac_try='test -s conftest$ac_exeext'
24998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24999 (eval $ac_try) 2>&5
25000 ac_status=$?
25001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25002 (exit $ac_status); }; }; then
25003 eval "$as_ac_var=yes"
25004else
25005 echo "$as_me: failed program was:" >&5
25006sed 's/^/| /' conftest.$ac_ext >&5
25007
25008eval "$as_ac_var=no"
25009fi
25010rm -f conftest.err conftest.$ac_objext \
25011 conftest$ac_exeext conftest.$ac_ext
25012fi
25013echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25014echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25015if test `eval echo '${'$as_ac_var'}'` = yes; then
25016 cat >>confdefs.h <<_ACEOF
25017#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25018_ACEOF
25019 have_floor=1
25020fi
25021done
25022
25023echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
25024echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
25025if test "$have_cos" = 1 -a "$have_floor" = 1; then
25026 echo "$as_me:$LINENO: result: yes" >&5
25027echo "${ECHO_T}yes" >&6
25028else
25029 echo "$as_me:$LINENO: result: no" >&5
25030echo "${ECHO_T}no" >&6
25031 LIBS="$LIBS -lm"
25032 # use different functions to avoid configure caching
25033 have_sin=0
25034 have_ceil=0
25035
25036for ac_func in sin
25037do
25038as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25039echo "$as_me:$LINENO: checking for $ac_func" >&5
25040echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25041if eval "test \"\${$as_ac_var+set}\" = set"; then
25042 echo $ECHO_N "(cached) $ECHO_C" >&6
25043else
25044 cat >conftest.$ac_ext <<_ACEOF
25045/* confdefs.h. */
25046_ACEOF
25047cat confdefs.h >>conftest.$ac_ext
25048cat >>conftest.$ac_ext <<_ACEOF
25049/* end confdefs.h. */
25050/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25052#define $ac_func innocuous_$ac_func
25053
25054/* System header to define __stub macros and hopefully few prototypes,
25055 which can conflict with char $ac_func (); below.
25056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25057 <limits.h> exists even on freestanding compilers. */
25058
25059#ifdef __STDC__
25060# include <limits.h>
25061#else
25062# include <assert.h>
25063#endif
25064
25065#undef $ac_func
25066
25067/* Override any gcc2 internal prototype to avoid an error. */
25068#ifdef __cplusplus
25069extern "C"
25070{
25071#endif
25072/* We use char because int might match the return type of a gcc2
25073 builtin and then its argument prototype would still apply. */
25074char $ac_func ();
25075/* The GNU C library defines this for functions which it implements
25076 to always fail with ENOSYS. Some functions are actually named
25077 something starting with __ and the normal name is an alias. */
25078#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25079choke me
25080#else
25081char (*f) () = $ac_func;
25082#endif
25083#ifdef __cplusplus
25084}
25085#endif
25086
25087int
25088main ()
25089{
25090return f != $ac_func;
25091 ;
25092 return 0;
25093}
25094_ACEOF
25095rm -f conftest.$ac_objext conftest$ac_exeext
25096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25097 (eval $ac_link) 2>conftest.er1
25098 ac_status=$?
25099 grep -v '^ *+' conftest.er1 >conftest.err
25100 rm -f conftest.er1
25101 cat conftest.err >&5
25102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25103 (exit $ac_status); } &&
479c790c 25104 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25106 (eval $ac_try) 2>&5
25107 ac_status=$?
25108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109 (exit $ac_status); }; } &&
25110 { ac_try='test -s conftest$ac_exeext'
25111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25112 (eval $ac_try) 2>&5
25113 ac_status=$?
25114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115 (exit $ac_status); }; }; then
25116 eval "$as_ac_var=yes"
25117else
25118 echo "$as_me: failed program was:" >&5
25119sed 's/^/| /' conftest.$ac_ext >&5
25120
25121eval "$as_ac_var=no"
25122fi
25123rm -f conftest.err conftest.$ac_objext \
25124 conftest$ac_exeext conftest.$ac_ext
25125fi
25126echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25127echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25128if test `eval echo '${'$as_ac_var'}'` = yes; then
25129 cat >>confdefs.h <<_ACEOF
25130#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25131_ACEOF
25132 have_sin=1
25133fi
25134done
25135
25136
25137for ac_func in ceil
25138do
25139as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25140echo "$as_me:$LINENO: checking for $ac_func" >&5
25141echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25142if eval "test \"\${$as_ac_var+set}\" = set"; then
25143 echo $ECHO_N "(cached) $ECHO_C" >&6
25144else
25145 cat >conftest.$ac_ext <<_ACEOF
25146/* confdefs.h. */
25147_ACEOF
25148cat confdefs.h >>conftest.$ac_ext
25149cat >>conftest.$ac_ext <<_ACEOF
25150/* end confdefs.h. */
25151/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25153#define $ac_func innocuous_$ac_func
25154
25155/* System header to define __stub macros and hopefully few prototypes,
25156 which can conflict with char $ac_func (); below.
25157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25158 <limits.h> exists even on freestanding compilers. */
25159
25160#ifdef __STDC__
25161# include <limits.h>
25162#else
25163# include <assert.h>
25164#endif
25165
25166#undef $ac_func
25167
25168/* Override any gcc2 internal prototype to avoid an error. */
25169#ifdef __cplusplus
25170extern "C"
25171{
25172#endif
25173/* We use char because int might match the return type of a gcc2
25174 builtin and then its argument prototype would still apply. */
25175char $ac_func ();
25176/* The GNU C library defines this for functions which it implements
25177 to always fail with ENOSYS. Some functions are actually named
25178 something starting with __ and the normal name is an alias. */
25179#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25180choke me
25181#else
25182char (*f) () = $ac_func;
25183#endif
25184#ifdef __cplusplus
25185}
25186#endif
25187
25188int
25189main ()
25190{
25191return f != $ac_func;
25192 ;
25193 return 0;
25194}
25195_ACEOF
25196rm -f conftest.$ac_objext conftest$ac_exeext
25197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25198 (eval $ac_link) 2>conftest.er1
25199 ac_status=$?
25200 grep -v '^ *+' conftest.er1 >conftest.err
25201 rm -f conftest.er1
25202 cat conftest.err >&5
25203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204 (exit $ac_status); } &&
479c790c 25205 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25207 (eval $ac_try) 2>&5
25208 ac_status=$?
25209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210 (exit $ac_status); }; } &&
25211 { ac_try='test -s conftest$ac_exeext'
25212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25213 (eval $ac_try) 2>&5
25214 ac_status=$?
25215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216 (exit $ac_status); }; }; then
25217 eval "$as_ac_var=yes"
25218else
25219 echo "$as_me: failed program was:" >&5
25220sed 's/^/| /' conftest.$ac_ext >&5
25221
25222eval "$as_ac_var=no"
25223fi
25224rm -f conftest.err conftest.$ac_objext \
25225 conftest$ac_exeext conftest.$ac_ext
25226fi
25227echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25228echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25229if test `eval echo '${'$as_ac_var'}'` = yes; then
25230 cat >>confdefs.h <<_ACEOF
25231#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25232_ACEOF
25233 have_ceil=1
25234fi
25235done
25236
25237 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
25238echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
25239 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
25240 echo "$as_me:$LINENO: result: yes" >&5
25241echo "${ECHO_T}yes" >&6
25242 else
25243 echo "$as_me:$LINENO: result: no" >&5
25244echo "${ECHO_T}no" >&6
25245 # not sure we should warn the user, crash, etc.
25246 fi
25247fi
25248
25249
25250
25251if test "$wxUSE_REGEX" != "no"; then
25252 cat >>confdefs.h <<\_ACEOF
25253#define wxUSE_REGEX 1
25254_ACEOF
25255
25256
25257 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
25258 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
25259echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
25260 wxUSE_REGEX=builtin
25261 fi
25262
25263 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
25264 if test "${ac_cv_header_regex_h+set}" = set; then
25265 echo "$as_me:$LINENO: checking for regex.h" >&5
25266echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25267if test "${ac_cv_header_regex_h+set}" = set; then
25268 echo $ECHO_N "(cached) $ECHO_C" >&6
25269fi
25270echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25271echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25272else
25273 # Is the header compilable?
25274echo "$as_me:$LINENO: checking regex.h usability" >&5
25275echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
25276cat >conftest.$ac_ext <<_ACEOF
25277/* confdefs.h. */
25278_ACEOF
25279cat confdefs.h >>conftest.$ac_ext
25280cat >>conftest.$ac_ext <<_ACEOF
25281/* end confdefs.h. */
25282$ac_includes_default
25283#include <regex.h>
25284_ACEOF
25285rm -f conftest.$ac_objext
25286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25287 (eval $ac_compile) 2>conftest.er1
25288 ac_status=$?
25289 grep -v '^ *+' conftest.er1 >conftest.err
25290 rm -f conftest.er1
25291 cat conftest.err >&5
25292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25293 (exit $ac_status); } &&
479c790c 25294 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25296 (eval $ac_try) 2>&5
25297 ac_status=$?
25298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299 (exit $ac_status); }; } &&
25300 { ac_try='test -s conftest.$ac_objext'
25301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25302 (eval $ac_try) 2>&5
25303 ac_status=$?
25304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25305 (exit $ac_status); }; }; then
25306 ac_header_compiler=yes
25307else
25308 echo "$as_me: failed program was:" >&5
25309sed 's/^/| /' conftest.$ac_ext >&5
25310
25311ac_header_compiler=no
25312fi
25313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25314echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25315echo "${ECHO_T}$ac_header_compiler" >&6
25316
25317# Is the header present?
25318echo "$as_me:$LINENO: checking regex.h presence" >&5
25319echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
25320cat >conftest.$ac_ext <<_ACEOF
25321/* confdefs.h. */
25322_ACEOF
25323cat confdefs.h >>conftest.$ac_ext
25324cat >>conftest.$ac_ext <<_ACEOF
25325/* end confdefs.h. */
25326#include <regex.h>
25327_ACEOF
25328if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25330 ac_status=$?
25331 grep -v '^ *+' conftest.er1 >conftest.err
25332 rm -f conftest.er1
25333 cat conftest.err >&5
25334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335 (exit $ac_status); } >/dev/null; then
25336 if test -s conftest.err; then
25337 ac_cpp_err=$ac_cxx_preproc_warn_flag
25338 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25339 else
25340 ac_cpp_err=
25341 fi
25342else
25343 ac_cpp_err=yes
25344fi
25345if test -z "$ac_cpp_err"; then
25346 ac_header_preproc=yes
25347else
25348 echo "$as_me: failed program was:" >&5
25349sed 's/^/| /' conftest.$ac_ext >&5
25350
25351 ac_header_preproc=no
25352fi
25353rm -f conftest.err conftest.$ac_ext
25354echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25355echo "${ECHO_T}$ac_header_preproc" >&6
25356
25357# So? What about this header?
25358case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25359 yes:no: )
25360 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
25361echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25362 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
25363echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
25364 ac_header_preproc=yes
25365 ;;
25366 no:yes:* )
25367 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
25368echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
25369 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
25370echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
25371 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
25372echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
25373 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
25374echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
25375 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
25376echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
25377 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
25378echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
25379 (
25380 cat <<\_ASBOX
25381## ----------------------------------------- ##
25382## Report this to wx-dev@lists.wxwidgets.org ##
25383## ----------------------------------------- ##
25384_ASBOX
25385 ) |
25386 sed "s/^/$as_me: WARNING: /" >&2
25387 ;;
25388esac
25389echo "$as_me:$LINENO: checking for regex.h" >&5
25390echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25391if test "${ac_cv_header_regex_h+set}" = set; then
25392 echo $ECHO_N "(cached) $ECHO_C" >&6
25393else
25394 ac_cv_header_regex_h=$ac_header_preproc
25395fi
25396echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25397echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25398
25399fi
25400if test $ac_cv_header_regex_h = yes; then
25401
25402
25403for ac_func in regcomp re_search
25404do
25405as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25406echo "$as_me:$LINENO: checking for $ac_func" >&5
25407echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25408if eval "test \"\${$as_ac_var+set}\" = set"; then
25409 echo $ECHO_N "(cached) $ECHO_C" >&6
25410else
25411 cat >conftest.$ac_ext <<_ACEOF
25412/* confdefs.h. */
25413_ACEOF
25414cat confdefs.h >>conftest.$ac_ext
25415cat >>conftest.$ac_ext <<_ACEOF
25416/* end confdefs.h. */
25417/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25419#define $ac_func innocuous_$ac_func
25420
25421/* System header to define __stub macros and hopefully few prototypes,
25422 which can conflict with char $ac_func (); below.
25423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25424 <limits.h> exists even on freestanding compilers. */
25425
25426#ifdef __STDC__
25427# include <limits.h>
25428#else
25429# include <assert.h>
25430#endif
25431
25432#undef $ac_func
25433
25434/* Override any gcc2 internal prototype to avoid an error. */
25435#ifdef __cplusplus
25436extern "C"
25437{
25438#endif
25439/* We use char because int might match the return type of a gcc2
25440 builtin and then its argument prototype would still apply. */
25441char $ac_func ();
25442/* The GNU C library defines this for functions which it implements
25443 to always fail with ENOSYS. Some functions are actually named
25444 something starting with __ and the normal name is an alias. */
25445#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25446choke me
25447#else
25448char (*f) () = $ac_func;
25449#endif
25450#ifdef __cplusplus
25451}
25452#endif
25453
25454int
25455main ()
25456{
25457return f != $ac_func;
25458 ;
25459 return 0;
25460}
25461_ACEOF
25462rm -f conftest.$ac_objext conftest$ac_exeext
25463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25464 (eval $ac_link) 2>conftest.er1
25465 ac_status=$?
25466 grep -v '^ *+' conftest.er1 >conftest.err
25467 rm -f conftest.er1
25468 cat conftest.err >&5
25469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25470 (exit $ac_status); } &&
479c790c 25471 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25473 (eval $ac_try) 2>&5
25474 ac_status=$?
25475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476 (exit $ac_status); }; } &&
25477 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25479 (eval $ac_try) 2>&5
25480 ac_status=$?
25481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482 (exit $ac_status); }; }; then
25483 eval "$as_ac_var=yes"
25484else
25485 echo "$as_me: failed program was:" >&5
25486sed 's/^/| /' conftest.$ac_ext >&5
25487
25488eval "$as_ac_var=no"
25489fi
ac1cb8d3
VS
25490rm -f conftest.err conftest.$ac_objext \
25491 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25492fi
25493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25494echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25495if test `eval echo '${'$as_ac_var'}'` = yes; then
25496 cat >>confdefs.h <<_ACEOF
25497#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25498_ACEOF
25499
25500fi
25501done
25502
25503fi
25504
25505
25506
25507 if test "x$ac_cv_func_regcomp" != "xyes"; then
25508 if test "$wxUSE_REGEX" = "sys" ; then
25509 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25510echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25511 { (exit 1); exit 1; }; }
25512 else
25513 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25514echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25515 wxUSE_REGEX=builtin
25516 fi
25517 else
25518 wxUSE_REGEX=sys
25519 cat >>confdefs.h <<\_ACEOF
25520#define WX_NO_REGEX_ADVANCED 1
25521_ACEOF
25522
25523 fi
25524 fi
25525fi
25526
25527
25528ZLIB_LINK=
25529if test "$wxUSE_ZLIB" != "no" ; then
25530 cat >>confdefs.h <<\_ACEOF
25531#define wxUSE_ZLIB 1
25532_ACEOF
25533
25534
25535 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25536 if test "$USE_DARWIN" = 1; then
25537 system_zlib_h_ok="yes"
25538 else
25539 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25540echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
25541if test "${ac_cv_header_zlib_h+set}" = set; then
25542 echo $ECHO_N "(cached) $ECHO_C" >&6
25543else
25544 if test "$cross_compiling" = yes; then
25545 unset ac_cv_header_zlib_h
25546
25547else
25548 cat >conftest.$ac_ext <<_ACEOF
25549/* confdefs.h. */
25550_ACEOF
25551cat confdefs.h >>conftest.$ac_ext
25552cat >>conftest.$ac_ext <<_ACEOF
25553/* end confdefs.h. */
25554
25555 #include <zlib.h>
25556 #include <stdio.h>
25557
25558 int main()
25559 {
25560 FILE *f=fopen("conftestval", "w");
25561 if (!f) exit(1);
25562 fprintf(f, "%s",
25563 ZLIB_VERSION[0] == '1' &&
25564 (ZLIB_VERSION[2] > '1' ||
25565 (ZLIB_VERSION[2] == '1' &&
25566 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25567 exit(0);
25568 }
25569
25570_ACEOF
25571rm -f conftest$ac_exeext
25572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25573 (eval $ac_link) 2>&5
25574 ac_status=$?
25575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25576 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25578 (eval $ac_try) 2>&5
25579 ac_status=$?
25580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25581 (exit $ac_status); }; }; then
25582 ac_cv_header_zlib_h=`cat conftestval`
25583else
25584 echo "$as_me: program exited with status $ac_status" >&5
25585echo "$as_me: failed program was:" >&5
25586sed 's/^/| /' conftest.$ac_ext >&5
25587
25588( exit $ac_status )
25589ac_cv_header_zlib_h=no
25590fi
ac1cb8d3 25591rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25592fi
25593
25594fi
25595echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25596echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25597 if test "${ac_cv_header_zlib_h+set}" = set; then
25598 echo "$as_me:$LINENO: checking for zlib.h" >&5
25599echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25600if test "${ac_cv_header_zlib_h+set}" = set; then
25601 echo $ECHO_N "(cached) $ECHO_C" >&6
25602fi
25603echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25604echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25605else
25606 # Is the header compilable?
25607echo "$as_me:$LINENO: checking zlib.h usability" >&5
25608echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25609cat >conftest.$ac_ext <<_ACEOF
25610/* confdefs.h. */
25611_ACEOF
25612cat confdefs.h >>conftest.$ac_ext
25613cat >>conftest.$ac_ext <<_ACEOF
25614/* end confdefs.h. */
25615$ac_includes_default
25616#include <zlib.h>
25617_ACEOF
25618rm -f conftest.$ac_objext
25619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25620 (eval $ac_compile) 2>conftest.er1
a848cd7e 25621 ac_status=$?
ac1cb8d3
VS
25622 grep -v '^ *+' conftest.er1 >conftest.err
25623 rm -f conftest.er1
25624 cat conftest.err >&5
a848cd7e
SC
25625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25626 (exit $ac_status); } &&
479c790c 25627 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25629 (eval $ac_try) 2>&5
25630 ac_status=$?
25631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632 (exit $ac_status); }; } &&
25633 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25635 (eval $ac_try) 2>&5
25636 ac_status=$?
25637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638 (exit $ac_status); }; }; then
25639 ac_header_compiler=yes
25640else
25641 echo "$as_me: failed program was:" >&5
25642sed 's/^/| /' conftest.$ac_ext >&5
25643
25644ac_header_compiler=no
25645fi
ac1cb8d3 25646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25647echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25648echo "${ECHO_T}$ac_header_compiler" >&6
25649
25650# Is the header present?
25651echo "$as_me:$LINENO: checking zlib.h presence" >&5
25652echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25653cat >conftest.$ac_ext <<_ACEOF
25654/* confdefs.h. */
25655_ACEOF
25656cat confdefs.h >>conftest.$ac_ext
25657cat >>conftest.$ac_ext <<_ACEOF
25658/* end confdefs.h. */
25659#include <zlib.h>
25660_ACEOF
25661if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25663 ac_status=$?
25664 grep -v '^ *+' conftest.er1 >conftest.err
25665 rm -f conftest.er1
25666 cat conftest.err >&5
25667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668 (exit $ac_status); } >/dev/null; then
25669 if test -s conftest.err; then
5d7b7554
VZ
25670 ac_cpp_err=$ac_cxx_preproc_warn_flag
25671 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25672 else
25673 ac_cpp_err=
25674 fi
25675else
25676 ac_cpp_err=yes
25677fi
25678if test -z "$ac_cpp_err"; then
25679 ac_header_preproc=yes
25680else
25681 echo "$as_me: failed program was:" >&5
25682sed 's/^/| /' conftest.$ac_ext >&5
25683
25684 ac_header_preproc=no
25685fi
25686rm -f conftest.err conftest.$ac_ext
25687echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25688echo "${ECHO_T}$ac_header_preproc" >&6
25689
25690# So? What about this header?
5d7b7554 25691case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25692 yes:no: )
a848cd7e
SC
25693 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25694echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25695 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25696echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25697 ac_header_preproc=yes
a848cd7e 25698 ;;
ac1cb8d3 25699 no:yes:* )
a848cd7e
SC
25700 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25701echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25702 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
25703echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
25704 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25705echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25706 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
25707echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25708 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25709echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25710 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25711echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25712 (
25713 cat <<\_ASBOX
ac1cb8d3
VS
25714## ----------------------------------------- ##
25715## Report this to wx-dev@lists.wxwidgets.org ##
25716## ----------------------------------------- ##
a848cd7e
SC
25717_ASBOX
25718 ) |
25719 sed "s/^/$as_me: WARNING: /" >&2
25720 ;;
25721esac
25722echo "$as_me:$LINENO: checking for zlib.h" >&5
25723echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25724if test "${ac_cv_header_zlib_h+set}" = set; then
25725 echo $ECHO_N "(cached) $ECHO_C" >&6
25726else
25727 ac_cv_header_zlib_h=$ac_header_preproc
25728fi
25729echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25730echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25731
25732fi
25733
25734
25735
25736 system_zlib_h_ok=$ac_cv_header_zlib_h
25737 fi
25738
25739 if test "$system_zlib_h_ok" = "yes"; then
25740 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25741echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25742if test "${ac_cv_lib_z_deflate+set}" = set; then
25743 echo $ECHO_N "(cached) $ECHO_C" >&6
25744else
25745 ac_check_lib_save_LIBS=$LIBS
25746LIBS="-lz $LIBS"
25747cat >conftest.$ac_ext <<_ACEOF
25748/* confdefs.h. */
25749_ACEOF
25750cat confdefs.h >>conftest.$ac_ext
25751cat >>conftest.$ac_ext <<_ACEOF
25752/* end confdefs.h. */
25753
25754/* Override any gcc2 internal prototype to avoid an error. */
25755#ifdef __cplusplus
25756extern "C"
25757#endif
25758/* We use char because int might match the return type of a gcc2
25759 builtin and then its argument prototype would still apply. */
25760char deflate ();
25761int
25762main ()
25763{
25764deflate ();
25765 ;
25766 return 0;
25767}
25768_ACEOF
25769rm -f conftest.$ac_objext conftest$ac_exeext
25770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25771 (eval $ac_link) 2>conftest.er1
a848cd7e 25772 ac_status=$?
ac1cb8d3
VS
25773 grep -v '^ *+' conftest.er1 >conftest.err
25774 rm -f conftest.er1
25775 cat conftest.err >&5
a848cd7e
SC
25776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777 (exit $ac_status); } &&
479c790c 25778 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25780 (eval $ac_try) 2>&5
25781 ac_status=$?
25782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783 (exit $ac_status); }; } &&
25784 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25786 (eval $ac_try) 2>&5
25787 ac_status=$?
25788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25789 (exit $ac_status); }; }; then
25790 ac_cv_lib_z_deflate=yes
25791else
25792 echo "$as_me: failed program was:" >&5
25793sed 's/^/| /' conftest.$ac_ext >&5
25794
25795ac_cv_lib_z_deflate=no
25796fi
ac1cb8d3
VS
25797rm -f conftest.err conftest.$ac_objext \
25798 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25799LIBS=$ac_check_lib_save_LIBS
25800fi
25801echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25802echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25803if test $ac_cv_lib_z_deflate = yes; then
25804 ZLIB_LINK=" -lz"
25805fi
25806
25807 fi
25808
25809 if test "x$ZLIB_LINK" = "x" ; then
25810 if test "$wxUSE_ZLIB" = "sys" ; then
25811 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25812echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25813 { (exit 1); exit 1; }; }
25814 else
25815 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25816echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25817 wxUSE_ZLIB=builtin
25818 fi
25819 else
25820 wxUSE_ZLIB=sys
25821 fi
25822 fi
25823fi
25824
25825
25826PNG_LINK=
25827if test "$wxUSE_LIBPNG" != "no" ; then
25828 cat >>confdefs.h <<\_ACEOF
25829#define wxUSE_LIBPNG 1
25830_ACEOF
25831
25832
25833 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25834 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25835echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25836 wxUSE_LIBPNG=sys
25837 fi
25838
25839 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25840 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25841echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25842 wxUSE_LIBPNG=builtin
25843 fi
25844
25845 if test "$wxUSE_MGL" != 1 ; then
25846 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25847 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25848echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25849if test "${ac_cv_header_png_h+set}" = set; then
25850 echo $ECHO_N "(cached) $ECHO_C" >&6
25851else
25852 if test "$cross_compiling" = yes; then
25853 unset ac_cv_header_png_h
25854
25855else
25856 cat >conftest.$ac_ext <<_ACEOF
25857/* confdefs.h. */
25858_ACEOF
25859cat confdefs.h >>conftest.$ac_ext
25860cat >>conftest.$ac_ext <<_ACEOF
25861/* end confdefs.h. */
25862
25863 #include <png.h>
25864 #include <stdio.h>
25865
25866 int main()
25867 {
25868 FILE *f=fopen("conftestval", "w");
25869 if (!f) exit(1);
25870 fprintf(f, "%s",
25871 PNG_LIBPNG_VER > 90 ? "yes" : "no");
25872 exit(0);
25873 }
25874
25875_ACEOF
25876rm -f conftest$ac_exeext
25877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25878 (eval $ac_link) 2>&5
25879 ac_status=$?
25880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25883 (eval $ac_try) 2>&5
25884 ac_status=$?
25885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25886 (exit $ac_status); }; }; then
25887 ac_cv_header_png_h=`cat conftestval`
25888else
25889 echo "$as_me: program exited with status $ac_status" >&5
25890echo "$as_me: failed program was:" >&5
25891sed 's/^/| /' conftest.$ac_ext >&5
25892
25893( exit $ac_status )
25894ac_cv_header_png_h=no
25895fi
ac1cb8d3 25896rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25897fi
25898
25899fi
25900echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25901echo "${ECHO_T}$ac_cv_header_png_h" >&6
25902 if test "${ac_cv_header_png_h+set}" = set; then
25903 echo "$as_me:$LINENO: checking for png.h" >&5
25904echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25905if test "${ac_cv_header_png_h+set}" = set; then
25906 echo $ECHO_N "(cached) $ECHO_C" >&6
25907fi
25908echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25909echo "${ECHO_T}$ac_cv_header_png_h" >&6
25910else
25911 # Is the header compilable?
25912echo "$as_me:$LINENO: checking png.h usability" >&5
25913echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25914cat >conftest.$ac_ext <<_ACEOF
25915/* confdefs.h. */
25916_ACEOF
25917cat confdefs.h >>conftest.$ac_ext
25918cat >>conftest.$ac_ext <<_ACEOF
25919/* end confdefs.h. */
25920$ac_includes_default
25921#include <png.h>
25922_ACEOF
25923rm -f conftest.$ac_objext
25924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25925 (eval $ac_compile) 2>conftest.er1
a848cd7e 25926 ac_status=$?
ac1cb8d3
VS
25927 grep -v '^ *+' conftest.er1 >conftest.err
25928 rm -f conftest.er1
25929 cat conftest.err >&5
a848cd7e
SC
25930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25931 (exit $ac_status); } &&
479c790c 25932 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25934 (eval $ac_try) 2>&5
25935 ac_status=$?
25936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937 (exit $ac_status); }; } &&
25938 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25940 (eval $ac_try) 2>&5
25941 ac_status=$?
25942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25943 (exit $ac_status); }; }; then
25944 ac_header_compiler=yes
25945else
25946 echo "$as_me: failed program was:" >&5
25947sed 's/^/| /' conftest.$ac_ext >&5
25948
25949ac_header_compiler=no
25950fi
ac1cb8d3 25951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25952echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25953echo "${ECHO_T}$ac_header_compiler" >&6
25954
25955# Is the header present?
25956echo "$as_me:$LINENO: checking png.h presence" >&5
25957echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25958cat >conftest.$ac_ext <<_ACEOF
25959/* confdefs.h. */
25960_ACEOF
25961cat confdefs.h >>conftest.$ac_ext
25962cat >>conftest.$ac_ext <<_ACEOF
25963/* end confdefs.h. */
25964#include <png.h>
25965_ACEOF
25966if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25968 ac_status=$?
25969 grep -v '^ *+' conftest.er1 >conftest.err
25970 rm -f conftest.er1
25971 cat conftest.err >&5
25972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25973 (exit $ac_status); } >/dev/null; then
25974 if test -s conftest.err; then
5d7b7554
VZ
25975 ac_cpp_err=$ac_cxx_preproc_warn_flag
25976 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25977 else
25978 ac_cpp_err=
25979 fi
25980else
25981 ac_cpp_err=yes
25982fi
25983if test -z "$ac_cpp_err"; then
25984 ac_header_preproc=yes
25985else
25986 echo "$as_me: failed program was:" >&5
25987sed 's/^/| /' conftest.$ac_ext >&5
25988
25989 ac_header_preproc=no
25990fi
25991rm -f conftest.err conftest.$ac_ext
25992echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25993echo "${ECHO_T}$ac_header_preproc" >&6
25994
25995# So? What about this header?
5d7b7554 25996case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25997 yes:no: )
a848cd7e
SC
25998 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25999echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26000 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
26001echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
26002 ac_header_preproc=yes
a848cd7e 26003 ;;
ac1cb8d3 26004 no:yes:* )
a848cd7e
SC
26005 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
26006echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26007 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
26008echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
26009 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
26010echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
26011 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
26012echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26013 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
26014echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26015 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
26016echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26017 (
26018 cat <<\_ASBOX
ac1cb8d3
VS
26019## ----------------------------------------- ##
26020## Report this to wx-dev@lists.wxwidgets.org ##
26021## ----------------------------------------- ##
a848cd7e
SC
26022_ASBOX
26023 ) |
26024 sed "s/^/$as_me: WARNING: /" >&2
26025 ;;
26026esac
26027echo "$as_me:$LINENO: checking for png.h" >&5
26028echo $ECHO_N "checking for png.h... $ECHO_C" >&6
26029if test "${ac_cv_header_png_h+set}" = set; then
26030 echo $ECHO_N "(cached) $ECHO_C" >&6
26031else
26032 ac_cv_header_png_h=$ac_header_preproc
26033fi
26034echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26035echo "${ECHO_T}$ac_cv_header_png_h" >&6
26036
26037fi
26038
26039
26040
26041 if test "$ac_cv_header_png_h" = "yes"; then
26042 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
26043echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
26044if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
26045 echo $ECHO_N "(cached) $ECHO_C" >&6
26046else
26047 ac_check_lib_save_LIBS=$LIBS
26048LIBS="-lpng -lz -lm $LIBS"
26049cat >conftest.$ac_ext <<_ACEOF
26050/* confdefs.h. */
26051_ACEOF
26052cat confdefs.h >>conftest.$ac_ext
26053cat >>conftest.$ac_ext <<_ACEOF
26054/* end confdefs.h. */
26055
26056/* Override any gcc2 internal prototype to avoid an error. */
26057#ifdef __cplusplus
26058extern "C"
26059#endif
26060/* We use char because int might match the return type of a gcc2
26061 builtin and then its argument prototype would still apply. */
26062char png_check_sig ();
26063int
26064main ()
26065{
26066png_check_sig ();
26067 ;
26068 return 0;
26069}
26070_ACEOF
26071rm -f conftest.$ac_objext conftest$ac_exeext
26072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26073 (eval $ac_link) 2>conftest.er1
a848cd7e 26074 ac_status=$?
ac1cb8d3
VS
26075 grep -v '^ *+' conftest.er1 >conftest.err
26076 rm -f conftest.er1
26077 cat conftest.err >&5
a848cd7e
SC
26078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079 (exit $ac_status); } &&
479c790c 26080 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26082 (eval $ac_try) 2>&5
26083 ac_status=$?
26084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085 (exit $ac_status); }; } &&
26086 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26088 (eval $ac_try) 2>&5
26089 ac_status=$?
26090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26091 (exit $ac_status); }; }; then
26092 ac_cv_lib_png_png_check_sig=yes
26093else
26094 echo "$as_me: failed program was:" >&5
26095sed 's/^/| /' conftest.$ac_ext >&5
26096
26097ac_cv_lib_png_png_check_sig=no
26098fi
ac1cb8d3
VS
26099rm -f conftest.err conftest.$ac_objext \
26100 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26101LIBS=$ac_check_lib_save_LIBS
26102fi
26103echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
26104echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
26105if test $ac_cv_lib_png_png_check_sig = yes; then
26106 PNG_LINK=" -lpng -lz"
26107fi
26108
26109 fi
26110
26111 if test "x$PNG_LINK" = "x" ; then
26112 if test "$wxUSE_LIBPNG" = "sys" ; then
26113 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
26114echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
26115 { (exit 1); exit 1; }; }
26116 else
26117 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
26118echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
26119 wxUSE_LIBPNG=builtin
26120 fi
26121 else
26122 wxUSE_LIBPNG=sys
26123 fi
26124 fi
26125 fi
26126
26127 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
26128fi
26129
26130
26131JPEG_LINK=
26132if test "$wxUSE_LIBJPEG" != "no" ; then
26133 cat >>confdefs.h <<\_ACEOF
26134#define wxUSE_LIBJPEG 1
26135_ACEOF
26136
26137
26138 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
26139 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
26140echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
26141 wxUSE_LIBJPEG=sys
26142 fi
26143
26144 if test "$wxUSE_MGL" != 1 ; then
26145 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
26146 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
26147echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
26148 if test "${ac_cv_header_jpeglib_h+set}" = set; then
26149 echo $ECHO_N "(cached) $ECHO_C" >&6
26150else
26151 cat >conftest.$ac_ext <<_ACEOF
26152/* confdefs.h. */
26153_ACEOF
26154cat confdefs.h >>conftest.$ac_ext
26155cat >>conftest.$ac_ext <<_ACEOF
26156/* end confdefs.h. */
26157
26158 #undef HAVE_STDLIB_H
26159 #include <stdio.h>
26160 #include <jpeglib.h>
26161
26162int
26163main ()
26164{
26165
26166
26167 ;
26168 return 0;
26169}
26170_ACEOF
26171rm -f conftest.$ac_objext
26172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26173 (eval $ac_compile) 2>conftest.er1
a848cd7e 26174 ac_status=$?
ac1cb8d3
VS
26175 grep -v '^ *+' conftest.er1 >conftest.err
26176 rm -f conftest.er1
26177 cat conftest.err >&5
a848cd7e
SC
26178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179 (exit $ac_status); } &&
479c790c 26180 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26182 (eval $ac_try) 2>&5
26183 ac_status=$?
26184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185 (exit $ac_status); }; } &&
26186 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26188 (eval $ac_try) 2>&5
26189 ac_status=$?
26190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191 (exit $ac_status); }; }; then
26192 ac_cv_header_jpeglib_h=yes
26193else
26194 echo "$as_me: failed program was:" >&5
26195sed 's/^/| /' conftest.$ac_ext >&5
26196
26197ac_cv_header_jpeglib_h=no
26198
26199fi
ac1cb8d3 26200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26201
26202fi
26203
26204 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
26205echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
26206
26207 if test "$ac_cv_header_jpeglib_h" = "yes"; then
26208 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
26209echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
26210if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
26211 echo $ECHO_N "(cached) $ECHO_C" >&6
26212else
26213 ac_check_lib_save_LIBS=$LIBS
26214LIBS="-ljpeg $LIBS"
26215cat >conftest.$ac_ext <<_ACEOF
26216/* confdefs.h. */
26217_ACEOF
26218cat confdefs.h >>conftest.$ac_ext
26219cat >>conftest.$ac_ext <<_ACEOF
26220/* end confdefs.h. */
26221
26222/* Override any gcc2 internal prototype to avoid an error. */
26223#ifdef __cplusplus
26224extern "C"
26225#endif
26226/* We use char because int might match the return type of a gcc2
26227 builtin and then its argument prototype would still apply. */
26228char jpeg_read_header ();
26229int
26230main ()
26231{
26232jpeg_read_header ();
26233 ;
26234 return 0;
26235}
26236_ACEOF
26237rm -f conftest.$ac_objext conftest$ac_exeext
26238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26239 (eval $ac_link) 2>conftest.er1
a848cd7e 26240 ac_status=$?
ac1cb8d3
VS
26241 grep -v '^ *+' conftest.er1 >conftest.err
26242 rm -f conftest.er1
26243 cat conftest.err >&5
a848cd7e
SC
26244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245 (exit $ac_status); } &&
479c790c 26246 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26248 (eval $ac_try) 2>&5
26249 ac_status=$?
26250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251 (exit $ac_status); }; } &&
26252 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26254 (eval $ac_try) 2>&5
26255 ac_status=$?
26256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257 (exit $ac_status); }; }; then
26258 ac_cv_lib_jpeg_jpeg_read_header=yes
26259else
26260 echo "$as_me: failed program was:" >&5
26261sed 's/^/| /' conftest.$ac_ext >&5
26262
26263ac_cv_lib_jpeg_jpeg_read_header=no
26264fi
ac1cb8d3
VS
26265rm -f conftest.err conftest.$ac_objext \
26266 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26267LIBS=$ac_check_lib_save_LIBS
26268fi
26269echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26270echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
26271if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26272 JPEG_LINK=" -ljpeg"
26273fi
26274
26275 fi
26276
26277 if test "x$JPEG_LINK" = "x" ; then
26278 if test "$wxUSE_LIBJPEG" = "sys" ; then
26279 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
26280echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
26281 { (exit 1); exit 1; }; }
26282 else
26283 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
26284echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
26285 wxUSE_LIBJPEG=builtin
26286 fi
26287 else
26288 wxUSE_LIBJPEG=sys
26289 fi
26290 fi
26291 fi
26292fi
26293
26294
26295TIFF_LINK=
26296TIFF_PREREQ_LINKS=-lm
26297if test "$wxUSE_LIBTIFF" != "no" ; then
26298 cat >>confdefs.h <<\_ACEOF
26299#define wxUSE_LIBTIFF 1
26300_ACEOF
26301
26302
26303 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
26304 if test "$wxUSE_LIBJPEG" = "sys"; then
26305 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
26306 fi
26307 if test "$wxUSE_ZLIB" = "sys"; then
26308 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
26309 fi
26310 if test "${ac_cv_header_tiffio_h+set}" = set; then
26311 echo "$as_me:$LINENO: checking for tiffio.h" >&5
26312echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26313if test "${ac_cv_header_tiffio_h+set}" = set; then
26314 echo $ECHO_N "(cached) $ECHO_C" >&6
26315fi
26316echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26317echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26318else
26319 # Is the header compilable?
26320echo "$as_me:$LINENO: checking tiffio.h usability" >&5
26321echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
26322cat >conftest.$ac_ext <<_ACEOF
26323/* confdefs.h. */
26324_ACEOF
26325cat confdefs.h >>conftest.$ac_ext
26326cat >>conftest.$ac_ext <<_ACEOF
26327/* end confdefs.h. */
26328$ac_includes_default
26329#include <tiffio.h>
26330_ACEOF
26331rm -f conftest.$ac_objext
26332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26333 (eval $ac_compile) 2>conftest.er1
a848cd7e 26334 ac_status=$?
ac1cb8d3
VS
26335 grep -v '^ *+' conftest.er1 >conftest.err
26336 rm -f conftest.er1
26337 cat conftest.err >&5
a848cd7e
SC
26338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26339 (exit $ac_status); } &&
479c790c 26340 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26342 (eval $ac_try) 2>&5
26343 ac_status=$?
26344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26345 (exit $ac_status); }; } &&
26346 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26348 (eval $ac_try) 2>&5
26349 ac_status=$?
26350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351 (exit $ac_status); }; }; then
26352 ac_header_compiler=yes
26353else
26354 echo "$as_me: failed program was:" >&5
26355sed 's/^/| /' conftest.$ac_ext >&5
26356
26357ac_header_compiler=no
26358fi
ac1cb8d3 26359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26360echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26361echo "${ECHO_T}$ac_header_compiler" >&6
26362
26363# Is the header present?
26364echo "$as_me:$LINENO: checking tiffio.h presence" >&5
26365echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
26366cat >conftest.$ac_ext <<_ACEOF
26367/* confdefs.h. */
26368_ACEOF
26369cat confdefs.h >>conftest.$ac_ext
26370cat >>conftest.$ac_ext <<_ACEOF
26371/* end confdefs.h. */
26372#include <tiffio.h>
26373_ACEOF
26374if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26376 ac_status=$?
26377 grep -v '^ *+' conftest.er1 >conftest.err
26378 rm -f conftest.er1
26379 cat conftest.err >&5
26380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381 (exit $ac_status); } >/dev/null; then
26382 if test -s conftest.err; then
5d7b7554
VZ
26383 ac_cpp_err=$ac_cxx_preproc_warn_flag
26384 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26385 else
26386 ac_cpp_err=
26387 fi
26388else
26389 ac_cpp_err=yes
26390fi
26391if test -z "$ac_cpp_err"; then
26392 ac_header_preproc=yes
26393else
26394 echo "$as_me: failed program was:" >&5
26395sed 's/^/| /' conftest.$ac_ext >&5
26396
26397 ac_header_preproc=no
26398fi
26399rm -f conftest.err conftest.$ac_ext
26400echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26401echo "${ECHO_T}$ac_header_preproc" >&6
26402
26403# So? What about this header?
5d7b7554 26404case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26405 yes:no: )
a848cd7e
SC
26406 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
26407echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26408 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
26409echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
26410 ac_header_preproc=yes
a848cd7e 26411 ;;
ac1cb8d3 26412 no:yes:* )
a848cd7e
SC
26413 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
26414echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26415 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
26416echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
26417 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
26418echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
26419 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
26420echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26421 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
26422echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26423 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
26424echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26425 (
26426 cat <<\_ASBOX
ac1cb8d3
VS
26427## ----------------------------------------- ##
26428## Report this to wx-dev@lists.wxwidgets.org ##
26429## ----------------------------------------- ##
a848cd7e
SC
26430_ASBOX
26431 ) |
26432 sed "s/^/$as_me: WARNING: /" >&2
26433 ;;
26434esac
26435echo "$as_me:$LINENO: checking for tiffio.h" >&5
26436echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26437if test "${ac_cv_header_tiffio_h+set}" = set; then
26438 echo $ECHO_N "(cached) $ECHO_C" >&6
26439else
26440 ac_cv_header_tiffio_h=$ac_header_preproc
26441fi
26442echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26443echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26444
26445fi
26446if test $ac_cv_header_tiffio_h = yes; then
26447
26448 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
26449echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
26450if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
26451 echo $ECHO_N "(cached) $ECHO_C" >&6
26452else
26453 ac_check_lib_save_LIBS=$LIBS
26454LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
26455cat >conftest.$ac_ext <<_ACEOF
26456/* confdefs.h. */
26457_ACEOF
26458cat confdefs.h >>conftest.$ac_ext
26459cat >>conftest.$ac_ext <<_ACEOF
26460/* end confdefs.h. */
26461
26462/* Override any gcc2 internal prototype to avoid an error. */
26463#ifdef __cplusplus
26464extern "C"
26465#endif
26466/* We use char because int might match the return type of a gcc2
26467 builtin and then its argument prototype would still apply. */
26468char TIFFError ();
26469int
26470main ()
26471{
26472TIFFError ();
26473 ;
26474 return 0;
26475}
26476_ACEOF
26477rm -f conftest.$ac_objext conftest$ac_exeext
26478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26479 (eval $ac_link) 2>conftest.er1
a848cd7e 26480 ac_status=$?
ac1cb8d3
VS
26481 grep -v '^ *+' conftest.er1 >conftest.err
26482 rm -f conftest.er1
26483 cat conftest.err >&5
a848cd7e
SC
26484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26485 (exit $ac_status); } &&
479c790c 26486 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26488 (eval $ac_try) 2>&5
26489 ac_status=$?
26490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491 (exit $ac_status); }; } &&
26492 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26494 (eval $ac_try) 2>&5
26495 ac_status=$?
26496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497 (exit $ac_status); }; }; then
26498 ac_cv_lib_tiff_TIFFError=yes
26499else
26500 echo "$as_me: failed program was:" >&5
26501sed 's/^/| /' conftest.$ac_ext >&5
26502
26503ac_cv_lib_tiff_TIFFError=no
26504fi
ac1cb8d3
VS
26505rm -f conftest.err conftest.$ac_objext \
26506 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26507LIBS=$ac_check_lib_save_LIBS
26508fi
26509echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26510echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
26511if test $ac_cv_lib_tiff_TIFFError = yes; then
26512 TIFF_LINK=" -ltiff"
26513fi
26514
26515
26516
26517fi
26518
26519
26520
26521 if test "x$TIFF_LINK" = "x" ; then
26522 if test "$wxUSE_LIBTIFF" = "sys" ; then
26523 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26524echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26525 { (exit 1); exit 1; }; }
26526 else
26527 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26528echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26529 wxUSE_LIBTIFF=builtin
26530 fi
26531 else
26532 wxUSE_LIBTIFF=sys
26533 fi
26534 fi
26535fi
26536
26537
47a7e797
MW
26538if test "$wxUSE_WCHAR_T" != "yes"; then
26539 if test "$wxUSE_EXPAT" != "no"; then
26540 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26541echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26542 wxUSE_EXPAT=no
26543 fi
26544 if test "$wxUSE_XML" != "no"; then
26545 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26546echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26547 wxUSE_XML=no
26548 fi
26549fi
26550
a848cd7e
SC
26551if test "$wxUSE_EXPAT" != "no"; then
26552 wxUSE_XML=yes
26553 cat >>confdefs.h <<\_ACEOF
26554#define wxUSE_EXPAT 1
26555_ACEOF
26556
26557 cat >>confdefs.h <<\_ACEOF
26558#define wxUSE_XML 1
26559_ACEOF
26560
26561
26562 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26563 if test "${ac_cv_header_expat_h+set}" = set; then
26564 echo "$as_me:$LINENO: checking for expat.h" >&5
26565echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26566if test "${ac_cv_header_expat_h+set}" = set; then
26567 echo $ECHO_N "(cached) $ECHO_C" >&6
26568fi
26569echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26570echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26571else
26572 # Is the header compilable?
26573echo "$as_me:$LINENO: checking expat.h usability" >&5
26574echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
26575cat >conftest.$ac_ext <<_ACEOF
26576/* confdefs.h. */
26577_ACEOF
26578cat confdefs.h >>conftest.$ac_ext
26579cat >>conftest.$ac_ext <<_ACEOF
26580/* end confdefs.h. */
26581$ac_includes_default
26582#include <expat.h>
26583_ACEOF
26584rm -f conftest.$ac_objext
26585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26586 (eval $ac_compile) 2>conftest.er1
a848cd7e 26587 ac_status=$?
ac1cb8d3
VS
26588 grep -v '^ *+' conftest.er1 >conftest.err
26589 rm -f conftest.er1
26590 cat conftest.err >&5
a848cd7e
SC
26591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26592 (exit $ac_status); } &&
479c790c 26593 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26595 (eval $ac_try) 2>&5
26596 ac_status=$?
26597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26598 (exit $ac_status); }; } &&
26599 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
26605 ac_header_compiler=yes
26606else
26607 echo "$as_me: failed program was:" >&5
26608sed 's/^/| /' conftest.$ac_ext >&5
26609
26610ac_header_compiler=no
26611fi
ac1cb8d3 26612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26613echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26614echo "${ECHO_T}$ac_header_compiler" >&6
26615
26616# Is the header present?
26617echo "$as_me:$LINENO: checking expat.h presence" >&5
26618echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
26619cat >conftest.$ac_ext <<_ACEOF
26620/* confdefs.h. */
26621_ACEOF
26622cat confdefs.h >>conftest.$ac_ext
26623cat >>conftest.$ac_ext <<_ACEOF
26624/* end confdefs.h. */
26625#include <expat.h>
26626_ACEOF
26627if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26629 ac_status=$?
26630 grep -v '^ *+' conftest.er1 >conftest.err
26631 rm -f conftest.er1
26632 cat conftest.err >&5
26633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26634 (exit $ac_status); } >/dev/null; then
26635 if test -s conftest.err; then
5d7b7554
VZ
26636 ac_cpp_err=$ac_cxx_preproc_warn_flag
26637 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26638 else
26639 ac_cpp_err=
26640 fi
26641else
26642 ac_cpp_err=yes
26643fi
26644if test -z "$ac_cpp_err"; then
26645 ac_header_preproc=yes
26646else
26647 echo "$as_me: failed program was:" >&5
26648sed 's/^/| /' conftest.$ac_ext >&5
26649
26650 ac_header_preproc=no
26651fi
26652rm -f conftest.err conftest.$ac_ext
26653echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26654echo "${ECHO_T}$ac_header_preproc" >&6
26655
26656# So? What about this header?
5d7b7554 26657case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26658 yes:no: )
a848cd7e
SC
26659 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26660echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26661 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26662echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26663 ac_header_preproc=yes
a848cd7e 26664 ;;
ac1cb8d3 26665 no:yes:* )
a848cd7e
SC
26666 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26667echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26668 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
26669echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
26670 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26671echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26672 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
26673echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26674 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26675echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26676 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26677echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26678 (
26679 cat <<\_ASBOX
ac1cb8d3
VS
26680## ----------------------------------------- ##
26681## Report this to wx-dev@lists.wxwidgets.org ##
26682## ----------------------------------------- ##
a848cd7e
SC
26683_ASBOX
26684 ) |
26685 sed "s/^/$as_me: WARNING: /" >&2
26686 ;;
26687esac
26688echo "$as_me:$LINENO: checking for expat.h" >&5
26689echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26690if test "${ac_cv_header_expat_h+set}" = set; then
26691 echo $ECHO_N "(cached) $ECHO_C" >&6
26692else
26693 ac_cv_header_expat_h=$ac_header_preproc
26694fi
26695echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26696echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26697
26698fi
26699if test $ac_cv_header_expat_h = yes; then
26700 found_expat_h=1
26701fi
26702
26703
26704 if test "x$found_expat_h" = "x1"; then
26705 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
26706echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
26707if test "${wx_cv_expat_is_not_broken+set}" = set; then
26708 echo $ECHO_N "(cached) $ECHO_C" >&6
26709else
26710
a848cd7e
SC
26711 cat >conftest.$ac_ext <<_ACEOF
26712/* confdefs.h. */
26713_ACEOF
26714cat confdefs.h >>conftest.$ac_ext
26715cat >>conftest.$ac_ext <<_ACEOF
26716/* end confdefs.h. */
26717#include <expat.h>
26718int
26719main ()
26720{
26721
26722 ;
26723 return 0;
26724}
26725_ACEOF
26726rm -f conftest.$ac_objext
26727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26728 (eval $ac_compile) 2>conftest.er1
a848cd7e 26729 ac_status=$?
ac1cb8d3
VS
26730 grep -v '^ *+' conftest.er1 >conftest.err
26731 rm -f conftest.er1
26732 cat conftest.err >&5
a848cd7e
SC
26733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26734 (exit $ac_status); } &&
479c790c 26735 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26737 (eval $ac_try) 2>&5
26738 ac_status=$?
26739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740 (exit $ac_status); }; } &&
26741 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26743 (eval $ac_try) 2>&5
26744 ac_status=$?
26745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26746 (exit $ac_status); }; }; then
26747 wx_cv_expat_is_not_broken=yes
26748else
26749 echo "$as_me: failed program was:" >&5
26750sed 's/^/| /' conftest.$ac_ext >&5
26751
26752wx_cv_expat_is_not_broken=no
26753
26754fi
ac1cb8d3 26755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26756
26757
26758fi
26759echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
26760echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
26761 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
26762 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
26763echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
26764if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
26765 echo $ECHO_N "(cached) $ECHO_C" >&6
26766else
26767 ac_check_lib_save_LIBS=$LIBS
26768LIBS="-lexpat $LIBS"
26769cat >conftest.$ac_ext <<_ACEOF
26770/* confdefs.h. */
26771_ACEOF
26772cat confdefs.h >>conftest.$ac_ext
26773cat >>conftest.$ac_ext <<_ACEOF
26774/* end confdefs.h. */
26775
26776/* Override any gcc2 internal prototype to avoid an error. */
26777#ifdef __cplusplus
26778extern "C"
26779#endif
26780/* We use char because int might match the return type of a gcc2
26781 builtin and then its argument prototype would still apply. */
26782char XML_ParserCreate ();
26783int
26784main ()
26785{
26786XML_ParserCreate ();
26787 ;
26788 return 0;
26789}
26790_ACEOF
26791rm -f conftest.$ac_objext conftest$ac_exeext
26792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26793 (eval $ac_link) 2>conftest.er1
a848cd7e 26794 ac_status=$?
ac1cb8d3
VS
26795 grep -v '^ *+' conftest.er1 >conftest.err
26796 rm -f conftest.er1
26797 cat conftest.err >&5
a848cd7e
SC
26798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26799 (exit $ac_status); } &&
479c790c 26800 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26802 (eval $ac_try) 2>&5
26803 ac_status=$?
26804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26805 (exit $ac_status); }; } &&
26806 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26808 (eval $ac_try) 2>&5
26809 ac_status=$?
26810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26811 (exit $ac_status); }; }; then
26812 ac_cv_lib_expat_XML_ParserCreate=yes
26813else
26814 echo "$as_me: failed program was:" >&5
26815sed 's/^/| /' conftest.$ac_ext >&5
26816
26817ac_cv_lib_expat_XML_ParserCreate=no
26818fi
ac1cb8d3
VS
26819rm -f conftest.err conftest.$ac_objext \
26820 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26821LIBS=$ac_check_lib_save_LIBS
26822fi
26823echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
26824echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
26825if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
26826 EXPAT_LINK=" -lexpat"
26827fi
26828
26829 fi
26830 fi
26831 if test "x$EXPAT_LINK" = "x" ; then
26832 if test "$wxUSE_EXPAT" = "sys" ; then
26833 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
26834echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
26835 { (exit 1); exit 1; }; }
26836 else
26837 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
26838echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
26839 wxUSE_EXPAT=builtin
26840 fi
26841 else
26842 wxUSE_EXPAT=sys
26843 fi
26844 fi
26845 if test "$wxUSE_EXPAT" = "builtin" ; then
26846
26847
26848subdirs="$subdirs src/expat"
26849
26850 fi
26851fi
26852
26853
26854
26855if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
26856 if test "${ac_cv_header_mspack_h+set}" = set; then
26857 echo "$as_me:$LINENO: checking for mspack.h" >&5
26858echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26859if test "${ac_cv_header_mspack_h+set}" = set; then
26860 echo $ECHO_N "(cached) $ECHO_C" >&6
26861fi
26862echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26863echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26864else
26865 # Is the header compilable?
26866echo "$as_me:$LINENO: checking mspack.h usability" >&5
26867echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26868cat >conftest.$ac_ext <<_ACEOF
26869/* confdefs.h. */
26870_ACEOF
26871cat confdefs.h >>conftest.$ac_ext
26872cat >>conftest.$ac_ext <<_ACEOF
26873/* end confdefs.h. */
26874$ac_includes_default
26875#include <mspack.h>
26876_ACEOF
26877rm -f conftest.$ac_objext
26878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26879 (eval $ac_compile) 2>conftest.er1
a848cd7e 26880 ac_status=$?
ac1cb8d3
VS
26881 grep -v '^ *+' conftest.er1 >conftest.err
26882 rm -f conftest.er1
26883 cat conftest.err >&5
a848cd7e
SC
26884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885 (exit $ac_status); } &&
479c790c 26886 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26888 (eval $ac_try) 2>&5
26889 ac_status=$?
26890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26891 (exit $ac_status); }; } &&
26892 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26894 (eval $ac_try) 2>&5
26895 ac_status=$?
26896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26897 (exit $ac_status); }; }; then
26898 ac_header_compiler=yes
26899else
26900 echo "$as_me: failed program was:" >&5
26901sed 's/^/| /' conftest.$ac_ext >&5
26902
26903ac_header_compiler=no
26904fi
ac1cb8d3 26905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26906echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26907echo "${ECHO_T}$ac_header_compiler" >&6
26908
26909# Is the header present?
26910echo "$as_me:$LINENO: checking mspack.h presence" >&5
26911echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
26912cat >conftest.$ac_ext <<_ACEOF
26913/* confdefs.h. */
26914_ACEOF
26915cat confdefs.h >>conftest.$ac_ext
26916cat >>conftest.$ac_ext <<_ACEOF
26917/* end confdefs.h. */
26918#include <mspack.h>
26919_ACEOF
26920if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26922 ac_status=$?
26923 grep -v '^ *+' conftest.er1 >conftest.err
26924 rm -f conftest.er1
26925 cat conftest.err >&5
26926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927 (exit $ac_status); } >/dev/null; then
26928 if test -s conftest.err; then
5d7b7554
VZ
26929 ac_cpp_err=$ac_cxx_preproc_warn_flag
26930 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26931 else
26932 ac_cpp_err=
26933 fi
26934else
26935 ac_cpp_err=yes
26936fi
26937if test -z "$ac_cpp_err"; then
26938 ac_header_preproc=yes
26939else
26940 echo "$as_me: failed program was:" >&5
26941sed 's/^/| /' conftest.$ac_ext >&5
26942
26943 ac_header_preproc=no
26944fi
26945rm -f conftest.err conftest.$ac_ext
26946echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26947echo "${ECHO_T}$ac_header_preproc" >&6
26948
26949# So? What about this header?
5d7b7554 26950case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26951 yes:no: )
a848cd7e
SC
26952 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
26953echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26954 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
26955echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
26956 ac_header_preproc=yes
a848cd7e 26957 ;;
ac1cb8d3 26958 no:yes:* )
a848cd7e
SC
26959 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
26960echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26961 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
26962echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
26963 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
26964echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
26965 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
26966echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26967 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
26968echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26969 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
26970echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26971 (
26972 cat <<\_ASBOX
ac1cb8d3
VS
26973## ----------------------------------------- ##
26974## Report this to wx-dev@lists.wxwidgets.org ##
26975## ----------------------------------------- ##
a848cd7e
SC
26976_ASBOX
26977 ) |
26978 sed "s/^/$as_me: WARNING: /" >&2
26979 ;;
26980esac
26981echo "$as_me:$LINENO: checking for mspack.h" >&5
26982echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26983if test "${ac_cv_header_mspack_h+set}" = set; then
26984 echo $ECHO_N "(cached) $ECHO_C" >&6
26985else
26986 ac_cv_header_mspack_h=$ac_header_preproc
26987fi
26988echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26989echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26990
26991fi
26992if test $ac_cv_header_mspack_h = yes; then
26993 found_mspack_h=1
26994fi
26995
26996
26997 if test "x$found_mspack_h" = "x1"; then
26998 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26999echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
27000if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
27001 echo $ECHO_N "(cached) $ECHO_C" >&6
27002else
27003 ac_check_lib_save_LIBS=$LIBS
27004LIBS="-lmspack $LIBS"
27005cat >conftest.$ac_ext <<_ACEOF
27006/* confdefs.h. */
27007_ACEOF
27008cat confdefs.h >>conftest.$ac_ext
27009cat >>conftest.$ac_ext <<_ACEOF
27010/* end confdefs.h. */
27011
27012/* Override any gcc2 internal prototype to avoid an error. */
27013#ifdef __cplusplus
27014extern "C"
27015#endif
27016/* We use char because int might match the return type of a gcc2
27017 builtin and then its argument prototype would still apply. */
27018char mspack_create_chm_decompressor ();
27019int
27020main ()
27021{
27022mspack_create_chm_decompressor ();
27023 ;
27024 return 0;
27025}
27026_ACEOF
27027rm -f conftest.$ac_objext conftest$ac_exeext
27028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27029 (eval $ac_link) 2>conftest.er1
a848cd7e 27030 ac_status=$?
ac1cb8d3
VS
27031 grep -v '^ *+' conftest.er1 >conftest.err
27032 rm -f conftest.er1
27033 cat conftest.err >&5
a848cd7e
SC
27034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035 (exit $ac_status); } &&
479c790c 27036 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27038 (eval $ac_try) 2>&5
27039 ac_status=$?
27040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041 (exit $ac_status); }; } &&
27042 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27044 (eval $ac_try) 2>&5
27045 ac_status=$?
27046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047 (exit $ac_status); }; }; then
27048 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
27049else
27050 echo "$as_me: failed program was:" >&5
27051sed 's/^/| /' conftest.$ac_ext >&5
27052
27053ac_cv_lib_mspack_mspack_create_chm_decompressor=no
27054fi
ac1cb8d3
VS
27055rm -f conftest.err conftest.$ac_objext \
27056 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27057LIBS=$ac_check_lib_save_LIBS
27058fi
27059echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
27060echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
27061if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
27062 MSPACK_LINK=" -lmspack"
27063fi
27064
27065 fi
27066 if test "x$MSPACK_LINK" = "x" ; then
27067 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
27068 fi
27069fi
27070
27071if test "$wxUSE_LIBMSPACK" != "no"; then
27072 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
27073#define wxUSE_LIBMSPACK 1
27074_ACEOF
27075
a848cd7e
SC
27076fi
27077
27078
27079
27080AFMINSTALL=
27081WIN32INSTALL=
27082
27083TOOLKIT=
27084TOOLKIT_INCLUDE=
27085WIDGET_SET=
27086
27087if test "$USE_WIN32" = 1 ; then
27088
27089for ac_header in w32api.h
27090do
27091as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27092if eval "test \"\${$as_ac_Header+set}\" = set"; then
27093 echo "$as_me:$LINENO: checking for $ac_header" >&5
27094echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27095if eval "test \"\${$as_ac_Header+set}\" = set"; then
27096 echo $ECHO_N "(cached) $ECHO_C" >&6
27097fi
27098echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27099echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27100else
27101 # Is the header compilable?
27102echo "$as_me:$LINENO: checking $ac_header usability" >&5
27103echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27104cat >conftest.$ac_ext <<_ACEOF
27105/* confdefs.h. */
27106_ACEOF
27107cat confdefs.h >>conftest.$ac_ext
27108cat >>conftest.$ac_ext <<_ACEOF
27109/* end confdefs.h. */
27110$ac_includes_default
27111#include <$ac_header>
27112_ACEOF
27113rm -f conftest.$ac_objext
27114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27115 (eval $ac_compile) 2>conftest.er1
a848cd7e 27116 ac_status=$?
ac1cb8d3
VS
27117 grep -v '^ *+' conftest.er1 >conftest.err
27118 rm -f conftest.er1
27119 cat conftest.err >&5
a848cd7e
SC
27120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27121 (exit $ac_status); } &&
479c790c 27122 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27124 (eval $ac_try) 2>&5
27125 ac_status=$?
27126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27127 (exit $ac_status); }; } &&
27128 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27130 (eval $ac_try) 2>&5
27131 ac_status=$?
27132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133 (exit $ac_status); }; }; then
27134 ac_header_compiler=yes
27135else
27136 echo "$as_me: failed program was:" >&5
27137sed 's/^/| /' conftest.$ac_ext >&5
27138
27139ac_header_compiler=no
27140fi
ac1cb8d3 27141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27142echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27143echo "${ECHO_T}$ac_header_compiler" >&6
27144
27145# Is the header present?
27146echo "$as_me:$LINENO: checking $ac_header presence" >&5
27147echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27148cat >conftest.$ac_ext <<_ACEOF
27149/* confdefs.h. */
27150_ACEOF
27151cat confdefs.h >>conftest.$ac_ext
27152cat >>conftest.$ac_ext <<_ACEOF
27153/* end confdefs.h. */
27154#include <$ac_header>
27155_ACEOF
27156if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27158 ac_status=$?
27159 grep -v '^ *+' conftest.er1 >conftest.err
27160 rm -f conftest.er1
27161 cat conftest.err >&5
27162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27163 (exit $ac_status); } >/dev/null; then
27164 if test -s conftest.err; then
5d7b7554
VZ
27165 ac_cpp_err=$ac_cxx_preproc_warn_flag
27166 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
27167 else
27168 ac_cpp_err=
27169 fi
27170else
27171 ac_cpp_err=yes
27172fi
27173if test -z "$ac_cpp_err"; then
27174 ac_header_preproc=yes
27175else
27176 echo "$as_me: failed program was:" >&5
27177sed 's/^/| /' conftest.$ac_ext >&5
27178
27179 ac_header_preproc=no
27180fi
27181rm -f conftest.err conftest.$ac_ext
27182echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27183echo "${ECHO_T}$ac_header_preproc" >&6
27184
27185# So? What about this header?
5d7b7554 27186case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 27187 yes:no: )
a848cd7e
SC
27188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27189echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27191echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27192 ac_header_preproc=yes
a848cd7e 27193 ;;
ac1cb8d3 27194 no:yes:* )
a848cd7e
SC
27195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27196echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27198echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27199 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27200echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27201 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27202echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27204echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27205 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27206echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27207 (
27208 cat <<\_ASBOX
ac1cb8d3
VS
27209## ----------------------------------------- ##
27210## Report this to wx-dev@lists.wxwidgets.org ##
27211## ----------------------------------------- ##
a848cd7e
SC
27212_ASBOX
27213 ) |
27214 sed "s/^/$as_me: WARNING: /" >&2
27215 ;;
27216esac
27217echo "$as_me:$LINENO: checking for $ac_header" >&5
27218echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27219if eval "test \"\${$as_ac_Header+set}\" = set"; then
27220 echo $ECHO_N "(cached) $ECHO_C" >&6
27221else
ac1cb8d3 27222 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
27223fi
27224echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27225echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27226
27227fi
27228if test `eval echo '${'$as_ac_Header'}'` = yes; then
27229 cat >>confdefs.h <<_ACEOF
27230#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27231_ACEOF
27232
27233fi
27234
27235done
27236
27237 if test "${ac_cv_header_windows_h+set}" = set; then
27238 echo "$as_me:$LINENO: checking for windows.h" >&5
27239echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27240if test "${ac_cv_header_windows_h+set}" = set; then
27241 echo $ECHO_N "(cached) $ECHO_C" >&6
27242fi
27243echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27244echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27245else
27246 # Is the header compilable?
27247echo "$as_me:$LINENO: checking windows.h usability" >&5
27248echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
27249cat >conftest.$ac_ext <<_ACEOF
27250/* confdefs.h. */
27251_ACEOF
27252cat confdefs.h >>conftest.$ac_ext
27253cat >>conftest.$ac_ext <<_ACEOF
27254/* end confdefs.h. */
27255$ac_includes_default
27256#include <windows.h>
27257_ACEOF
27258rm -f conftest.$ac_objext
27259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27260 (eval $ac_compile) 2>conftest.er1
a848cd7e 27261 ac_status=$?
ac1cb8d3
VS
27262 grep -v '^ *+' conftest.er1 >conftest.err
27263 rm -f conftest.er1
27264 cat conftest.err >&5
a848cd7e
SC
27265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266 (exit $ac_status); } &&
479c790c 27267 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27269 (eval $ac_try) 2>&5
27270 ac_status=$?
27271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27272 (exit $ac_status); }; } &&
27273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27275 (eval $ac_try) 2>&5
27276 ac_status=$?
27277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27278 (exit $ac_status); }; }; then
27279 ac_header_compiler=yes
27280else
27281 echo "$as_me: failed program was:" >&5
27282sed 's/^/| /' conftest.$ac_ext >&5
27283
27284ac_header_compiler=no
27285fi
ac1cb8d3 27286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27287echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27288echo "${ECHO_T}$ac_header_compiler" >&6
27289
27290# Is the header present?
27291echo "$as_me:$LINENO: checking windows.h presence" >&5
27292echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
27293cat >conftest.$ac_ext <<_ACEOF
27294/* confdefs.h. */
27295_ACEOF
27296cat confdefs.h >>conftest.$ac_ext
27297cat >>conftest.$ac_ext <<_ACEOF
27298/* end confdefs.h. */
27299#include <windows.h>
27300_ACEOF
27301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27303 ac_status=$?
27304 grep -v '^ *+' conftest.er1 >conftest.err
27305 rm -f conftest.er1
27306 cat conftest.err >&5
27307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308 (exit $ac_status); } >/dev/null; then
27309 if test -s conftest.err; then
5d7b7554
VZ
27310 ac_cpp_err=$ac_cxx_preproc_warn_flag
27311 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
27312 else
27313 ac_cpp_err=
27314 fi
27315else
27316 ac_cpp_err=yes
27317fi
27318if test -z "$ac_cpp_err"; then
27319 ac_header_preproc=yes
27320else
27321 echo "$as_me: failed program was:" >&5
27322sed 's/^/| /' conftest.$ac_ext >&5
27323
27324 ac_header_preproc=no
27325fi
27326rm -f conftest.err conftest.$ac_ext
27327echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27328echo "${ECHO_T}$ac_header_preproc" >&6
27329
27330# So? What about this header?
5d7b7554 27331case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 27332 yes:no: )
a848cd7e
SC
27333 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
27334echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27335 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
27336echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
27337 ac_header_preproc=yes
a848cd7e 27338 ;;
ac1cb8d3 27339 no:yes:* )
a848cd7e
SC
27340 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
27341echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27342 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
27343echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
27344 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
27345echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
27346 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
27347echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27348 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
27349echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27350 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
27351echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27352 (
27353 cat <<\_ASBOX
ac1cb8d3
VS
27354## ----------------------------------------- ##
27355## Report this to wx-dev@lists.wxwidgets.org ##
27356## ----------------------------------------- ##
a848cd7e
SC
27357_ASBOX
27358 ) |
27359 sed "s/^/$as_me: WARNING: /" >&2
27360 ;;
27361esac
27362echo "$as_me:$LINENO: checking for windows.h" >&5
27363echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27364if test "${ac_cv_header_windows_h+set}" = set; then
27365 echo $ECHO_N "(cached) $ECHO_C" >&6
27366else
27367 ac_cv_header_windows_h=$ac_header_preproc
27368fi
27369echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27370echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27371
27372fi
27373if test $ac_cv_header_windows_h = yes; then
27374 :
27375else
27376
27377 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
27378echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
27379 { (exit 1); exit 1; }; }
27380
27381fi
27382
27383
27384
27385 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
27386
27387 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
27388 LIBS="$LIBS -loleacc"
27389 fi
27390
27391 case "${host}" in
27392 *-*-cygwin* )
27393 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
27394 esac
27395
27396 if test "$wxUSE_ODBC" = "sys" ; then
27397 wxUSE_ODBC = "yes"
27398 fi
27399 if test "$wxUSE_ODBC" = "yes" ; then
27400 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
27401 cat >>confdefs.h <<\_ACEOF
27402#define wxUSE_ODBC 1
27403_ACEOF
27404
27405 fi
27406
370d2fd7 27407 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
27408 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
27409
004ee6da 27410 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 27411
a848cd7e 27412 WIN32INSTALL=win32install
5f41d1bf
MW
27413
27414 echo "$as_me:$LINENO: checking for boolean" >&5
27415echo $ECHO_N "checking for boolean... $ECHO_C" >&6
27416if test "${ac_cv_type_boolean+set}" = set; then
27417 echo $ECHO_N "(cached) $ECHO_C" >&6
27418else
27419 cat >conftest.$ac_ext <<_ACEOF
27420/* confdefs.h. */
27421_ACEOF
27422cat confdefs.h >>conftest.$ac_ext
27423cat >>conftest.$ac_ext <<_ACEOF
27424/* end confdefs.h. */
27425#include <windows.h>
27426
27427int
27428main ()
27429{
27430if ((boolean *) 0)
27431 return 0;
27432if (sizeof (boolean))
27433 return 0;
27434 ;
27435 return 0;
27436}
27437_ACEOF
27438rm -f conftest.$ac_objext
27439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27440 (eval $ac_compile) 2>conftest.er1
27441 ac_status=$?
27442 grep -v '^ *+' conftest.er1 >conftest.err
27443 rm -f conftest.er1
27444 cat conftest.err >&5
27445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446 (exit $ac_status); } &&
479c790c 27447 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5f41d1bf
MW
27448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27449 (eval $ac_try) 2>&5
27450 ac_status=$?
27451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27452 (exit $ac_status); }; } &&
27453 { ac_try='test -s conftest.$ac_objext'
27454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27455 (eval $ac_try) 2>&5
27456 ac_status=$?
27457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458 (exit $ac_status); }; }; then
27459 ac_cv_type_boolean=yes
27460else
27461 echo "$as_me: failed program was:" >&5
27462sed 's/^/| /' conftest.$ac_ext >&5
27463
27464ac_cv_type_boolean=no
27465fi
27466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27467fi
27468echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27469echo "${ECHO_T}$ac_cv_type_boolean" >&6
27470if test $ac_cv_type_boolean = yes; then
27471
27472cat >>confdefs.h <<_ACEOF
27473#define HAVE_BOOLEAN 1
27474_ACEOF
27475
27476
27477fi
27478
dcfd4ac4
MW
27479
27480
27481for ac_header in pbt.h
27482do
27483as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27484if eval "test \"\${$as_ac_Header+set}\" = set"; then
27485 echo "$as_me:$LINENO: checking for $ac_header" >&5
27486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27487if eval "test \"\${$as_ac_Header+set}\" = set"; then
27488 echo $ECHO_N "(cached) $ECHO_C" >&6
27489fi
27490echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27491echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27492else
27493 # Is the header compilable?
27494echo "$as_me:$LINENO: checking $ac_header usability" >&5
27495echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27496cat >conftest.$ac_ext <<_ACEOF
27497/* confdefs.h. */
27498_ACEOF
27499cat confdefs.h >>conftest.$ac_ext
27500cat >>conftest.$ac_ext <<_ACEOF
27501/* end confdefs.h. */
27502$ac_includes_default
27503#include <$ac_header>
27504_ACEOF
27505rm -f conftest.$ac_objext
27506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27507 (eval $ac_compile) 2>conftest.er1
27508 ac_status=$?
27509 grep -v '^ *+' conftest.er1 >conftest.err
27510 rm -f conftest.er1
27511 cat conftest.err >&5
27512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27513 (exit $ac_status); } &&
479c790c 27514 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
dcfd4ac4
MW
27515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27516 (eval $ac_try) 2>&5
27517 ac_status=$?
27518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519 (exit $ac_status); }; } &&
27520 { ac_try='test -s conftest.$ac_objext'
27521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27522 (eval $ac_try) 2>&5
27523 ac_status=$?
27524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525 (exit $ac_status); }; }; then
27526 ac_header_compiler=yes
27527else
27528 echo "$as_me: failed program was:" >&5
27529sed 's/^/| /' conftest.$ac_ext >&5
27530
27531ac_header_compiler=no
27532fi
27533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27534echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27535echo "${ECHO_T}$ac_header_compiler" >&6
27536
27537# Is the header present?
27538echo "$as_me:$LINENO: checking $ac_header presence" >&5
27539echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27540cat >conftest.$ac_ext <<_ACEOF
27541/* confdefs.h. */
27542_ACEOF
27543cat confdefs.h >>conftest.$ac_ext
27544cat >>conftest.$ac_ext <<_ACEOF
27545/* end confdefs.h. */
27546#include <$ac_header>
27547_ACEOF
27548if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27550 ac_status=$?
27551 grep -v '^ *+' conftest.er1 >conftest.err
27552 rm -f conftest.er1
27553 cat conftest.err >&5
27554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27555 (exit $ac_status); } >/dev/null; then
27556 if test -s conftest.err; then
27557 ac_cpp_err=$ac_cxx_preproc_warn_flag
27558 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27559 else
27560 ac_cpp_err=
27561 fi
27562else
27563 ac_cpp_err=yes
27564fi
27565if test -z "$ac_cpp_err"; then
27566 ac_header_preproc=yes
27567else
27568 echo "$as_me: failed program was:" >&5
27569sed 's/^/| /' conftest.$ac_ext >&5
27570
27571 ac_header_preproc=no
27572fi
27573rm -f conftest.err conftest.$ac_ext
27574echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27575echo "${ECHO_T}$ac_header_preproc" >&6
27576
27577# So? What about this header?
27578case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27579 yes:no: )
27580 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27581echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27583echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27584 ac_header_preproc=yes
27585 ;;
27586 no:yes:* )
27587 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27588echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27589 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27590echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27591 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27592echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27593 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27594echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27596echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27597 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27598echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27599 (
27600 cat <<\_ASBOX
27601## ----------------------------------------- ##
27602## Report this to wx-dev@lists.wxwidgets.org ##
27603## ----------------------------------------- ##
27604_ASBOX
27605 ) |
27606 sed "s/^/$as_me: WARNING: /" >&2
27607 ;;
27608esac
27609echo "$as_me:$LINENO: checking for $ac_header" >&5
27610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27611if eval "test \"\${$as_ac_Header+set}\" = set"; then
27612 echo $ECHO_N "(cached) $ECHO_C" >&6
27613else
27614 eval "$as_ac_Header=\$ac_header_preproc"
27615fi
27616echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27617echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27618
27619fi
27620if test `eval echo '${'$as_ac_Header'}'` = yes; then
27621 cat >>confdefs.h <<_ACEOF
27622#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27623_ACEOF
27624
27625else
27626 cat >>confdefs.h <<\_ACEOF
27627#define NEED_PBT_H 1
27628_ACEOF
27629
27630fi
27631
27632done
27633
a848cd7e
SC
27634fi
27635
27636if test "$wxUSE_GUI" = "yes"; then
27637 USE_GUI=1
27638
27639 GUI_TK_LIBRARY=
27640
27641 WXGTK12=
27642 WXGTK127=
27643 WXGTK20=
27644 WXGPE=
27645
207bc66c
RN
27646 if test "$wxUSE_COCOA" = 1 ; then
27647 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27648 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27649echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27650 wxUSE_PRINTING_ARCHITECTURE=no
27651 fi
27652 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27653 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27654echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27655 wxUSE_DRAG_AND_DROP=no
27656 fi
27657 if test "$wxUSE_DRAGIMAGE" = "yes"; then
27658 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
27659echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
27660 wxUSE_DRAGIMAGE=no
27661 fi
27662 fi
27663
a848cd7e
SC
27664 if test "$wxUSE_MSW" = 1 ; then
27665 TOOLKIT=MSW
27666 GUIDIST=MSW_DIST
27667
ceec2216 27668 case "${host}" in
a848cd7e
SC
27669 *-*-mingw32* )
27670 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27671 esac
27672 fi
27673
27674 if test "$wxUSE_GTK" = 1; then
5d7b7554
VZ
27675 ac_ext=c
27676ac_cpp='$CPP $CPPFLAGS'
27677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27679ac_compiler_gnu=$ac_cv_c_compiler_gnu
27680
27681
a848cd7e
SC
27682 echo "$as_me:$LINENO: checking for GTK+ version" >&5
27683echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
27684
27685 gtk_version_cached=1
27686 if test "${wx_cv_lib_gtk+set}" = set; then
27687 echo $ECHO_N "(cached) $ECHO_C" >&6
27688else
27689
27690 gtk_version_cached=0
27691 echo "$as_me:$LINENO: result: " >&5
27692echo "${ECHO_T}" >&6
27693
27694 GTK_MODULES=
27695 if test "$wxUSE_THREADS" = "yes"; then
27696 GTK_MODULES=gthread
27697 fi
27698
f597b41c 27699 wx_cv_lib_gtk=
5001df0d
MW
27700 if test "x$wxGTK_VERSION" != "x1"
27701 then
27702 case "${host}" in
27703 *-*-solaris2* )
27704 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 27705 enable_gtktest=no
5001df0d
MW
27706 fi
27707 esac
27708
a848cd7e
SC
27709 # Check whether --enable-gtktest or --disable-gtktest was given.
27710if test "${enable_gtktest+set}" = set; then
27711 enableval="$enable_gtktest"
27712
27713else
27714 enable_gtktest=yes
27715fi;
27716
27717 pkg_config_args=gtk+-2.0
27718 for module in . $GTK_MODULES
27719 do
27720 case "$module" in
27721 gthread)
27722 pkg_config_args="$pkg_config_args gthread-2.0"
27723 ;;
27724 esac
27725 done
27726
27727 no_gtk=""
27728
27729 # Extract the first word of "pkg-config", so it can be a program name with args.
27730set dummy pkg-config; ac_word=$2
27731echo "$as_me:$LINENO: checking for $ac_word" >&5
27732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27733if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27734 echo $ECHO_N "(cached) $ECHO_C" >&6
27735else
27736 case $PKG_CONFIG in
27737 [\\/]* | ?:[\\/]*)
27738 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27739 ;;
27740 *)
27741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27742for as_dir in $PATH
27743do
27744 IFS=$as_save_IFS
27745 test -z "$as_dir" && as_dir=.
27746 for ac_exec_ext in '' $ac_executable_extensions; do
27747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27748 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27750 break 2
27751 fi
27752done
27753done
27754
27755 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27756 ;;
27757esac
27758fi
27759PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27760
27761if test -n "$PKG_CONFIG"; then
27762 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27763echo "${ECHO_T}$PKG_CONFIG" >&6
27764else
27765 echo "$as_me:$LINENO: result: no" >&5
27766echo "${ECHO_T}no" >&6
27767fi
27768
27769
27770 if test x$PKG_CONFIG != xno ; then
27771 if pkg-config --atleast-pkgconfig-version 0.7 ; then
27772 :
27773 else
c2218763 27774 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
27775 no_gtk=yes
27776 PKG_CONFIG=no
27777 fi
27778 else
27779 no_gtk=yes
27780 fi
27781
27782 min_gtk_version=2.0.0
27783 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
27784echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
27785
27786 if test x$PKG_CONFIG != xno ; then
27787 ## don't try to run the test against uninstalled libtool libs
27788 if $PKG_CONFIG --uninstalled $pkg_config_args; then
27789 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
27790 enable_gtktest=no
27791 fi
27792
27793 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
27794 :
27795 else
27796 no_gtk=yes
27797 fi
27798 fi
27799
27800 if test x"$no_gtk" = x ; then
27801 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
27802 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
27803 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27804 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27805 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27806 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27807 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27808 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27809 if test "x$enable_gtktest" = "xyes" ; then
27810 ac_save_CFLAGS="$CFLAGS"
27811 ac_save_LIBS="$LIBS"
27812 CFLAGS="$CFLAGS $GTK_CFLAGS"
27813 LIBS="$GTK_LIBS $LIBS"
27814 rm -f conf.gtktest
27815 if test "$cross_compiling" = yes; then
27816 echo $ac_n "cross compiling; assumed OK... $ac_c"
27817else
27818 cat >conftest.$ac_ext <<_ACEOF
27819/* confdefs.h. */
27820_ACEOF
27821cat confdefs.h >>conftest.$ac_ext
27822cat >>conftest.$ac_ext <<_ACEOF
27823/* end confdefs.h. */
27824
27825#include <gtk/gtk.h>
27826#include <stdio.h>
27827#include <stdlib.h>
27828
27829int
27830main ()
27831{
27832 int major, minor, micro;
27833 char *tmp_version;
27834
27835 system ("touch conf.gtktest");
27836
27837 /* HP/UX 9 (%@#!) writes to sscanf strings */
27838 tmp_version = g_strdup("$min_gtk_version");
27839 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27840 printf("%s, bad version string\n", "$min_gtk_version");
27841 exit(1);
27842 }
27843
27844 if ((gtk_major_version != $gtk_config_major_version) ||
27845 (gtk_minor_version != $gtk_config_minor_version) ||
27846 (gtk_micro_version != $gtk_config_micro_version))
27847 {
27848 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27849 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27850 gtk_major_version, gtk_minor_version, gtk_micro_version);
27851 printf ("*** was found! If pkg-config was correct, then it is best\n");
27852 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27853 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27854 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27855 printf("*** required on your system.\n");
27856 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
27857 printf("*** to point to the correct configuration files\n");
27858 }
27859 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27860 (gtk_minor_version != GTK_MINOR_VERSION) ||
27861 (gtk_micro_version != GTK_MICRO_VERSION))
27862 {
27863 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27864 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27865 printf("*** library (version %d.%d.%d)\n",
27866 gtk_major_version, gtk_minor_version, gtk_micro_version);
27867 }
27868 else
27869 {
27870 if ((gtk_major_version > major) ||
27871 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27872 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27873 {
27874 return 0;
27875 }
27876 else
27877 {
27878 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27879 gtk_major_version, gtk_minor_version, gtk_micro_version);
27880 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27881 major, minor, micro);
27882 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27883 printf("***\n");
27884 printf("*** If you have already installed a sufficiently new version, this error\n");
27885 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27886 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27887 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27888 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27889 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27890 printf("*** so that the correct libraries are found at run-time))\n");
27891 }
27892 }
27893 return 1;
27894}
27895
27896_ACEOF
27897rm -f conftest$ac_exeext
27898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27899 (eval $ac_link) 2>&5
27900 ac_status=$?
27901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27904 (eval $ac_try) 2>&5
27905 ac_status=$?
27906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27907 (exit $ac_status); }; }; then
27908 :
27909else
27910 echo "$as_me: program exited with status $ac_status" >&5
27911echo "$as_me: failed program was:" >&5
27912sed 's/^/| /' conftest.$ac_ext >&5
27913
27914( exit $ac_status )
27915no_gtk=yes
27916fi
ac1cb8d3 27917rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27918fi
27919 CFLAGS="$ac_save_CFLAGS"
27920 LIBS="$ac_save_LIBS"
27921 fi
27922 fi
27923 if test "x$no_gtk" = x ; then
27924 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
27925echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
27926 wx_cv_lib_gtk=2.0
27927 else
27928 echo "$as_me:$LINENO: result: no" >&5
27929echo "${ECHO_T}no" >&6
27930 if test "$PKG_CONFIG" = "no" ; then
27931 echo "*** A new enough version of pkg-config was not found."
27932 echo "*** See http://pkgconfig.sourceforge.net"
27933 else
27934 if test -f conf.gtktest ; then
27935 :
27936 else
27937 echo "*** Could not run GTK+ test program, checking why..."
27938 ac_save_CFLAGS="$CFLAGS"
27939 ac_save_LIBS="$LIBS"
27940 CFLAGS="$CFLAGS $GTK_CFLAGS"
27941 LIBS="$LIBS $GTK_LIBS"
27942 cat >conftest.$ac_ext <<_ACEOF
27943/* confdefs.h. */
27944_ACEOF
27945cat confdefs.h >>conftest.$ac_ext
27946cat >>conftest.$ac_ext <<_ACEOF
27947/* end confdefs.h. */
27948
27949#include <gtk/gtk.h>
27950#include <stdio.h>
27951
27952int
27953main ()
27954{
27955 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27956 ;
27957 return 0;
27958}
27959_ACEOF
27960rm -f conftest.$ac_objext conftest$ac_exeext
27961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27962 (eval $ac_link) 2>conftest.er1
a848cd7e 27963 ac_status=$?
ac1cb8d3
VS
27964 grep -v '^ *+' conftest.er1 >conftest.err
27965 rm -f conftest.er1
27966 cat conftest.err >&5
a848cd7e
SC
27967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27968 (exit $ac_status); } &&
479c790c 27969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27971 (eval $ac_try) 2>&5
27972 ac_status=$?
27973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27974 (exit $ac_status); }; } &&
27975 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27977 (eval $ac_try) 2>&5
27978 ac_status=$?
27979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27980 (exit $ac_status); }; }; then
27981 echo "*** The test program compiled, but did not run. This usually means"
27982 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
27983 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
27984 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27985 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27986 echo "*** is required on your system"
27987 echo "***"
27988 echo "*** If you have an old version installed, it is best to remove it, although"
27989 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27990else
27991 echo "$as_me: failed program was:" >&5
27992sed 's/^/| /' conftest.$ac_ext >&5
27993
27994 echo "*** The test program failed to compile or link. See the file config.log for the"
27995 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
27996fi
ac1cb8d3
VS
27997rm -f conftest.err conftest.$ac_objext \
27998 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27999 CFLAGS="$ac_save_CFLAGS"
28000 LIBS="$ac_save_LIBS"
28001 fi
28002 fi
28003 GTK_CFLAGS=""
28004 GTK_LIBS=""
28005 :
28006 fi
28007
28008
28009 rm -f conf.gtktest
28010
5001df0d
MW
28011
28012 case "${host}" in
28013 *-*-solaris2* )
28014 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
28015 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
28016 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
28017 fi
28018 if test "$wxUSE_SHARED" != "yes"; then
28019 GTK_LIBS="$GTK_LIBS -lX11"
28020 fi
28021 esac
f597b41c
MW
28022 fi
28023
f34ca037
MW
28024 if test -z "$wx_cv_lib_gtk"; then
28025 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
28026
28027# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
28028if test "${with_gtk_prefix+set}" = set; then
28029 withval="$with_gtk_prefix"
28030 gtk_config_prefix="$withval"
28031else
28032 gtk_config_prefix=""
28033fi;
28034
28035# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
28036if test "${with_gtk_exec_prefix+set}" = set; then
28037 withval="$with_gtk_exec_prefix"
28038 gtk_config_exec_prefix="$withval"
28039else
28040 gtk_config_exec_prefix=""
28041fi;
28042# Check whether --enable-gtktest or --disable-gtktest was given.
28043if test "${enable_gtktest+set}" = set; then
28044 enableval="$enable_gtktest"
28045
28046else
28047 enable_gtktest=yes
28048fi;
28049
28050 for module in . $GTK_MODULES
28051 do
28052 case "$module" in
28053 gthread)
28054 gtk_config_args="$gtk_config_args gthread"
28055 ;;
28056 esac
28057 done
28058
28059 if test x$gtk_config_exec_prefix != x ; then
28060 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28061 if test x${GTK_CONFIG+set} != xset ; then
28062 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28063 fi
28064 fi
28065 if test x$gtk_config_prefix != x ; then
28066 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28067 if test x${GTK_CONFIG+set} != xset ; then
28068 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28069 fi
28070 fi
28071
28072 # Extract the first word of "gtk-config", so it can be a program name with args.
28073set dummy gtk-config; ac_word=$2
28074echo "$as_me:$LINENO: checking for $ac_word" >&5
28075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28076if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28077 echo $ECHO_N "(cached) $ECHO_C" >&6
28078else
28079 case $GTK_CONFIG in
28080 [\\/]* | ?:[\\/]*)
28081 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28082 ;;
28083 *)
28084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28085for as_dir in $PATH
28086do
28087 IFS=$as_save_IFS
28088 test -z "$as_dir" && as_dir=.
28089 for ac_exec_ext in '' $ac_executable_extensions; do
28090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28091 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28093 break 2
28094 fi
28095done
28096done
28097
28098 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28099 ;;
28100esac
28101fi
28102GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28103
28104if test -n "$GTK_CONFIG"; then
28105 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28106echo "${ECHO_T}$GTK_CONFIG" >&6
28107else
28108 echo "$as_me:$LINENO: result: no" >&5
28109echo "${ECHO_T}no" >&6
28110fi
28111
28112 min_gtk_version=1.2.7
28113 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28114echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28115 no_gtk=""
28116 if test "$GTK_CONFIG" = "no" ; then
28117 no_gtk=yes
28118 else
28119 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28120 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28121 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28122 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28123 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28124 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28125 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28126 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28127 if test "x$enable_gtktest" = "xyes" ; then
28128 ac_save_CFLAGS="$CFLAGS"
28129 ac_save_LIBS="$LIBS"
28130 CFLAGS="$CFLAGS $GTK_CFLAGS"
28131 LIBS="$GTK_LIBS $LIBS"
28132 rm -f conf.gtktest
28133 if test "$cross_compiling" = yes; then
28134 echo $ac_n "cross compiling; assumed OK... $ac_c"
28135else
28136 cat >conftest.$ac_ext <<_ACEOF
28137/* confdefs.h. */
28138_ACEOF
28139cat confdefs.h >>conftest.$ac_ext
28140cat >>conftest.$ac_ext <<_ACEOF
28141/* end confdefs.h. */
28142
28143#include <gtk/gtk.h>
28144#include <stdio.h>
28145#include <stdlib.h>
28146
28147int
28148main ()
28149{
28150 int major, minor, micro;
28151 char *tmp_version;
28152
28153 system ("touch conf.gtktest");
28154
28155 /* HP/UX 9 (%@#!) writes to sscanf strings */
28156 tmp_version = g_strdup("$min_gtk_version");
28157 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28158 printf("%s, bad version string\n", "$min_gtk_version");
28159 exit(1);
28160 }
28161
28162 if ((gtk_major_version != $gtk_config_major_version) ||
28163 (gtk_minor_version != $gtk_config_minor_version) ||
28164 (gtk_micro_version != $gtk_config_micro_version))
28165 {
28166 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28167 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28168 gtk_major_version, gtk_minor_version, gtk_micro_version);
28169 printf ("*** was found! If gtk-config was correct, then it is best\n");
28170 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28171 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28172 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28173 printf("*** required on your system.\n");
28174 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28175 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28176 printf("*** before re-running configure\n");
28177 }
28178#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28179 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28180 (gtk_minor_version != GTK_MINOR_VERSION) ||
28181 (gtk_micro_version != GTK_MICRO_VERSION))
28182 {
28183 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28184 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28185 printf("*** library (version %d.%d.%d)\n",
28186 gtk_major_version, gtk_minor_version, gtk_micro_version);
28187 }
28188#endif /* defined (GTK_MAJOR_VERSION) ... */
28189 else
28190 {
28191 if ((gtk_major_version > major) ||
28192 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28193 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28194 {
28195 return 0;
28196 }
28197 else
28198 {
28199 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28200 gtk_major_version, gtk_minor_version, gtk_micro_version);
28201 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28202 major, minor, micro);
28203 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28204 printf("***\n");
28205 printf("*** If you have already installed a sufficiently new version, this error\n");
28206 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28207 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28208 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28209 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28210 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28211 printf("*** so that the correct libraries are found at run-time))\n");
28212 }
28213 }
28214 return 1;
28215}
28216
28217_ACEOF
28218rm -f conftest$ac_exeext
28219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28220 (eval $ac_link) 2>&5
28221 ac_status=$?
28222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28225 (eval $ac_try) 2>&5
28226 ac_status=$?
28227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28228 (exit $ac_status); }; }; then
28229 :
28230else
28231 echo "$as_me: program exited with status $ac_status" >&5
28232echo "$as_me: failed program was:" >&5
28233sed 's/^/| /' conftest.$ac_ext >&5
28234
28235( exit $ac_status )
28236no_gtk=yes
28237fi
ac1cb8d3 28238rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28239fi
28240 CFLAGS="$ac_save_CFLAGS"
28241 LIBS="$ac_save_LIBS"
28242 fi
28243 fi
28244 if test "x$no_gtk" = x ; then
28245 echo "$as_me:$LINENO: result: yes" >&5
28246echo "${ECHO_T}yes" >&6
28247 wx_cv_lib_gtk=1.2.7
28248 else
28249 echo "$as_me:$LINENO: result: no" >&5
28250echo "${ECHO_T}no" >&6
28251 if test "$GTK_CONFIG" = "no" ; then
28252 echo "*** The gtk-config script installed by GTK could not be found"
28253 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28254 echo "*** your path, or set the GTK_CONFIG environment variable to the"
28255 echo "*** full path to gtk-config."
28256 else
28257 if test -f conf.gtktest ; then
28258 :
28259 else
28260 echo "*** Could not run GTK test program, checking why..."
28261 CFLAGS="$CFLAGS $GTK_CFLAGS"
28262 LIBS="$LIBS $GTK_LIBS"
28263 cat >conftest.$ac_ext <<_ACEOF
28264/* confdefs.h. */
28265_ACEOF
28266cat confdefs.h >>conftest.$ac_ext
28267cat >>conftest.$ac_ext <<_ACEOF
28268/* end confdefs.h. */
28269
28270#include <gtk/gtk.h>
28271#include <stdio.h>
28272
28273int
28274main ()
28275{
28276 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28277 ;
28278 return 0;
28279}
28280_ACEOF
28281rm -f conftest.$ac_objext conftest$ac_exeext
28282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28283 (eval $ac_link) 2>conftest.er1
a848cd7e 28284 ac_status=$?
ac1cb8d3
VS
28285 grep -v '^ *+' conftest.er1 >conftest.err
28286 rm -f conftest.er1
28287 cat conftest.err >&5
a848cd7e
SC
28288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289 (exit $ac_status); } &&
479c790c 28290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28292 (eval $ac_try) 2>&5
28293 ac_status=$?
28294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28295 (exit $ac_status); }; } &&
28296 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28298 (eval $ac_try) 2>&5
28299 ac_status=$?
28300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301 (exit $ac_status); }; }; then
28302 echo "*** The test program compiled, but did not run. This usually means"
28303 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28304 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28305 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28306 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28307 echo "*** is required on your system"
28308 echo "***"
28309 echo "*** If you have an old version installed, it is best to remove it, although"
28310 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28311 echo "***"
28312 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28313 echo "*** came with the system with the command"
28314 echo "***"
28315 echo "*** rpm --erase --nodeps gtk gtk-devel"
28316else
28317 echo "$as_me: failed program was:" >&5
28318sed 's/^/| /' conftest.$ac_ext >&5
28319
28320 echo "*** The test program failed to compile or link. See the file config.log for the"
28321 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28322 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28323 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28324fi
ac1cb8d3
VS
28325rm -f conftest.err conftest.$ac_objext \
28326 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28327 CFLAGS="$ac_save_CFLAGS"
28328 LIBS="$ac_save_LIBS"
28329 fi
28330 fi
28331 GTK_CFLAGS=""
28332 GTK_LIBS=""
28333 :
28334 fi
28335
28336
28337 rm -f conf.gtktest
28338
28339
f34ca037 28340 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
28341
28342# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
28343if test "${with_gtk_prefix+set}" = set; then
28344 withval="$with_gtk_prefix"
28345 gtk_config_prefix="$withval"
28346else
28347 gtk_config_prefix=""
28348fi;
28349
28350# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
28351if test "${with_gtk_exec_prefix+set}" = set; then
28352 withval="$with_gtk_exec_prefix"
28353 gtk_config_exec_prefix="$withval"
28354else
28355 gtk_config_exec_prefix=""
28356fi;
28357# Check whether --enable-gtktest or --disable-gtktest was given.
28358if test "${enable_gtktest+set}" = set; then
28359 enableval="$enable_gtktest"
28360
28361else
28362 enable_gtktest=yes
28363fi;
28364
28365 for module in . $GTK_MODULES
28366 do
28367 case "$module" in
28368 gthread)
28369 gtk_config_args="$gtk_config_args gthread"
28370 ;;
28371 esac
28372 done
28373
28374 if test x$gtk_config_exec_prefix != x ; then
28375 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28376 if test x${GTK_CONFIG+set} != xset ; then
28377 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28378 fi
28379 fi
28380 if test x$gtk_config_prefix != x ; then
28381 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28382 if test x${GTK_CONFIG+set} != xset ; then
28383 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28384 fi
28385 fi
28386
28387 # Extract the first word of "gtk-config", so it can be a program name with args.
28388set dummy gtk-config; ac_word=$2
28389echo "$as_me:$LINENO: checking for $ac_word" >&5
28390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28391if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28392 echo $ECHO_N "(cached) $ECHO_C" >&6
28393else
28394 case $GTK_CONFIG in
28395 [\\/]* | ?:[\\/]*)
28396 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28397 ;;
28398 *)
28399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28400for as_dir in $PATH
28401do
28402 IFS=$as_save_IFS
28403 test -z "$as_dir" && as_dir=.
28404 for ac_exec_ext in '' $ac_executable_extensions; do
28405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28406 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28408 break 2
28409 fi
28410done
28411done
28412
28413 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28414 ;;
28415esac
28416fi
28417GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28418
28419if test -n "$GTK_CONFIG"; then
28420 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28421echo "${ECHO_T}$GTK_CONFIG" >&6
28422else
28423 echo "$as_me:$LINENO: result: no" >&5
28424echo "${ECHO_T}no" >&6
28425fi
28426
28427 min_gtk_version=1.2.3
28428 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28429echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28430 no_gtk=""
28431 if test "$GTK_CONFIG" = "no" ; then
28432 no_gtk=yes
28433 else
28434 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28435 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28436 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28437 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28438 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28439 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28440 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28441 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28442 if test "x$enable_gtktest" = "xyes" ; then
28443 ac_save_CFLAGS="$CFLAGS"
28444 ac_save_LIBS="$LIBS"
28445 CFLAGS="$CFLAGS $GTK_CFLAGS"
28446 LIBS="$GTK_LIBS $LIBS"
28447 rm -f conf.gtktest
28448 if test "$cross_compiling" = yes; then
28449 echo $ac_n "cross compiling; assumed OK... $ac_c"
28450else
28451 cat >conftest.$ac_ext <<_ACEOF
28452/* confdefs.h. */
28453_ACEOF
28454cat confdefs.h >>conftest.$ac_ext
28455cat >>conftest.$ac_ext <<_ACEOF
28456/* end confdefs.h. */
28457
28458#include <gtk/gtk.h>
28459#include <stdio.h>
28460#include <stdlib.h>
28461
28462int
28463main ()
28464{
28465 int major, minor, micro;
28466 char *tmp_version;
28467
28468 system ("touch conf.gtktest");
28469
28470 /* HP/UX 9 (%@#!) writes to sscanf strings */
28471 tmp_version = g_strdup("$min_gtk_version");
28472 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28473 printf("%s, bad version string\n", "$min_gtk_version");
28474 exit(1);
28475 }
28476
28477 if ((gtk_major_version != $gtk_config_major_version) ||
28478 (gtk_minor_version != $gtk_config_minor_version) ||
28479 (gtk_micro_version != $gtk_config_micro_version))
28480 {
28481 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28482 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28483 gtk_major_version, gtk_minor_version, gtk_micro_version);
28484 printf ("*** was found! If gtk-config was correct, then it is best\n");
28485 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28486 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28487 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28488 printf("*** required on your system.\n");
28489 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28490 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28491 printf("*** before re-running configure\n");
28492 }
28493#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28494 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28495 (gtk_minor_version != GTK_MINOR_VERSION) ||
28496 (gtk_micro_version != GTK_MICRO_VERSION))
28497 {
28498 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28499 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28500 printf("*** library (version %d.%d.%d)\n",
28501 gtk_major_version, gtk_minor_version, gtk_micro_version);
28502 }
28503#endif /* defined (GTK_MAJOR_VERSION) ... */
28504 else
28505 {
28506 if ((gtk_major_version > major) ||
28507 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28508 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28509 {
28510 return 0;
28511 }
28512 else
28513 {
28514 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28515 gtk_major_version, gtk_minor_version, gtk_micro_version);
28516 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28517 major, minor, micro);
28518 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28519 printf("***\n");
28520 printf("*** If you have already installed a sufficiently new version, this error\n");
28521 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28522 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28523 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28524 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28525 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28526 printf("*** so that the correct libraries are found at run-time))\n");
28527 }
28528 }
28529 return 1;
28530}
28531
28532_ACEOF
28533rm -f conftest$ac_exeext
28534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28535 (eval $ac_link) 2>&5
28536 ac_status=$?
28537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28540 (eval $ac_try) 2>&5
28541 ac_status=$?
28542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543 (exit $ac_status); }; }; then
28544 :
28545else
28546 echo "$as_me: program exited with status $ac_status" >&5
28547echo "$as_me: failed program was:" >&5
28548sed 's/^/| /' conftest.$ac_ext >&5
28549
28550( exit $ac_status )
28551no_gtk=yes
28552fi
ac1cb8d3 28553rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28554fi
28555 CFLAGS="$ac_save_CFLAGS"
28556 LIBS="$ac_save_LIBS"
28557 fi
28558 fi
28559 if test "x$no_gtk" = x ; then
28560 echo "$as_me:$LINENO: result: yes" >&5
28561echo "${ECHO_T}yes" >&6
28562 wx_cv_lib_gtk=1.2.3
28563 else
28564 echo "$as_me:$LINENO: result: no" >&5
28565echo "${ECHO_T}no" >&6
28566 if test "$GTK_CONFIG" = "no" ; then
28567 echo "*** The gtk-config script installed by GTK could not be found"
28568 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28569 echo "*** your path, or set the GTK_CONFIG environment variable to the"
28570 echo "*** full path to gtk-config."
28571 else
28572 if test -f conf.gtktest ; then
28573 :
28574 else
28575 echo "*** Could not run GTK test program, checking why..."
28576 CFLAGS="$CFLAGS $GTK_CFLAGS"
28577 LIBS="$LIBS $GTK_LIBS"
28578 cat >conftest.$ac_ext <<_ACEOF
28579/* confdefs.h. */
28580_ACEOF
28581cat confdefs.h >>conftest.$ac_ext
28582cat >>conftest.$ac_ext <<_ACEOF
28583/* end confdefs.h. */
28584
28585#include <gtk/gtk.h>
28586#include <stdio.h>
28587
28588int
28589main ()
28590{
28591 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28592 ;
28593 return 0;
28594}
28595_ACEOF
28596rm -f conftest.$ac_objext conftest$ac_exeext
28597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28598 (eval $ac_link) 2>conftest.er1
a848cd7e 28599 ac_status=$?
ac1cb8d3
VS
28600 grep -v '^ *+' conftest.er1 >conftest.err
28601 rm -f conftest.er1
28602 cat conftest.err >&5
a848cd7e
SC
28603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28604 (exit $ac_status); } &&
479c790c 28605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28607 (eval $ac_try) 2>&5
28608 ac_status=$?
28609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610 (exit $ac_status); }; } &&
28611 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28613 (eval $ac_try) 2>&5
28614 ac_status=$?
28615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28616 (exit $ac_status); }; }; then
28617 echo "*** The test program compiled, but did not run. This usually means"
28618 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28619 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28620 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28621 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28622 echo "*** is required on your system"
28623 echo "***"
28624 echo "*** If you have an old version installed, it is best to remove it, although"
28625 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28626 echo "***"
28627 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28628 echo "*** came with the system with the command"
28629 echo "***"
28630 echo "*** rpm --erase --nodeps gtk gtk-devel"
28631else
28632 echo "$as_me: failed program was:" >&5
28633sed 's/^/| /' conftest.$ac_ext >&5
28634
28635 echo "*** The test program failed to compile or link. See the file config.log for the"
28636 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28637 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28638 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28639fi
ac1cb8d3
VS
28640rm -f conftest.err conftest.$ac_objext \
28641 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28642 CFLAGS="$ac_save_CFLAGS"
28643 LIBS="$ac_save_LIBS"
28644 fi
28645 fi
28646 GTK_CFLAGS=""
28647 GTK_LIBS=""
28648 :
28649 fi
28650
28651
28652 rm -f conf.gtktest
28653
f34ca037 28654 fi
a848cd7e
SC
28655 fi
28656 fi
28657
28658 if test -z "$wx_cv_lib_gtk"; then
28659 wx_cv_lib_gtk=none
28660 else
28661 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 28662 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
28663 fi
28664
28665
28666fi
28667
28668
28669 if test "$gtk_version_cached" = 1; then
28670 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28671echo "${ECHO_T}$wx_cv_lib_gtk" >&6
28672 fi
28673
28674 case "$wx_cv_lib_gtk" in
28675 2.0) WXGTK20=1
28676 TOOLKIT_VERSION=2
28677 ;;
28678 1.2.7) WXGTK127=1
28679 WXGTK12=1
28680 ;;
28681 1.2.3) WXGTK12=1
28682 ;;
28683 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
28684The development files for GTK+ were not found. For GTK+ 2, please
28685ensure that pkg-config is in the path and that gtk+-2.0.pc is
28686installed. For GTK+ 1.2 please check that gtk-config is in the path,
28687and that the version is 1.2.3 or above. Also check that the
28688libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28689--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28690 " >&5
28691echo "$as_me: error:
f597b41c
MW
28692The development files for GTK+ were not found. For GTK+ 2, please
28693ensure that pkg-config is in the path and that gtk+-2.0.pc is
28694installed. For GTK+ 1.2 please check that gtk-config is in the path,
28695and that the version is 1.2.3 or above. Also check that the
28696libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28697--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28698 " >&2;}
28699 { (exit 1); exit 1; }; }
28700 ;;
28701 esac
28702
28703 if test "$WXGTK20" = 1; then
6954625c 28704 save_CFLAGS="$CFLAGS"
304205f1 28705 save_LIBS="$LIBS"
6954625c 28706 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 28707 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 28708
58e65954
MW
28709 echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
28710echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6
28711if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
28712 echo $ECHO_N "(cached) $ECHO_C" >&6
28713else
28714 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
28715/* confdefs.h. */
28716_ACEOF
28717cat confdefs.h >>conftest.$ac_ext
28718cat >>conftest.$ac_ext <<_ACEOF
28719/* end confdefs.h. */
58e65954 28720#include <gtk/gtk.h>
304205f1 28721
d12aef51
VZ
28722int
28723main ()
28724{
58e65954
MW
28725#ifndef gtk_icon_size_lookup
28726 char *p = (char *) gtk_icon_size_lookup;
28727#endif
abc736fd
MW
28728
28729 ;
28730 return 0;
28731}
28732_ACEOF
28733rm -f conftest.$ac_objext
28734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28735 (eval $ac_compile) 2>conftest.er1
28736 ac_status=$?
28737 grep -v '^ *+' conftest.er1 >conftest.err
28738 rm -f conftest.er1
28739 cat conftest.err >&5
28740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28741 (exit $ac_status); } &&
479c790c 28742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
28743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28744 (eval $ac_try) 2>&5
28745 ac_status=$?
28746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747 (exit $ac_status); }; } &&
28748 { ac_try='test -s conftest.$ac_objext'
28749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28750 (eval $ac_try) 2>&5
28751 ac_status=$?
28752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753 (exit $ac_status); }; }; then
58e65954 28754 ac_cv_have_decl_gtk_icon_size_lookup=yes
abc736fd
MW
28755else
28756 echo "$as_me: failed program was:" >&5
28757sed 's/^/| /' conftest.$ac_ext >&5
28758
58e65954
MW
28759ac_cv_have_decl_gtk_icon_size_lookup=no
28760fi
28761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28762fi
28763echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
28764echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6
28765if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
abc736fd 28766
58e65954
MW
28767cat >>confdefs.h <<_ACEOF
28768#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
abc736fd
MW
28769_ACEOF
28770
58e65954
MW
28771
28772else
28773 cat >>confdefs.h <<_ACEOF
28774#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
28775_ACEOF
28776
28777cat >>confdefs.h <<\_ACEOF
28778#define NEED_GTK_ICON_SIZE_LOOKUP 1
28779_ACEOF
abc736fd
MW
28780
28781fi
58e65954
MW
28782
28783
abc736fd 28784
e9263684
VZ
28785 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
28786echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
28787 cat >conftest.$ac_ext <<_ACEOF
28788/* confdefs.h. */
28789_ACEOF
28790cat confdefs.h >>conftest.$ac_ext
28791cat >>conftest.$ac_ext <<_ACEOF
28792/* end confdefs.h. */
28793
28794 #include <gtk/gtk.h>
28795
28796int
28797main ()
28798{
28799
28800 #if !GTK_CHECK_VERSION(2,6,0)
28801 Not GTK+ 2.6
28802 #endif
28803
28804 ;
28805 return 0;
28806}
28807_ACEOF
28808rm -f conftest.$ac_objext
28809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28810 (eval $ac_compile) 2>conftest.er1
28811 ac_status=$?
28812 grep -v '^ *+' conftest.er1 >conftest.err
28813 rm -f conftest.er1
28814 cat conftest.err >&5
28815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28816 (exit $ac_status); } &&
479c790c 28817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e9263684
VZ
28818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28819 (eval $ac_try) 2>&5
28820 ac_status=$?
28821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28822 (exit $ac_status); }; } &&
28823 { ac_try='test -s conftest.$ac_objext'
28824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28825 (eval $ac_try) 2>&5
28826 ac_status=$?
28827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828 (exit $ac_status); }; }; then
28829
28830 cat >>confdefs.h <<\_ACEOF
28831#define __WXGTK26__ 1
28832_ACEOF
28833
28834 cat >>confdefs.h <<\_ACEOF
28835#define __WXGTK24__ 1
28836_ACEOF
28837
28838 echo "$as_me:$LINENO: result: yes" >&5
28839echo "${ECHO_T}yes" >&6
28840 ac_wxgtk26=1
28841
28842else
28843 echo "$as_me: failed program was:" >&5
28844sed 's/^/| /' conftest.$ac_ext >&5
28845
28846
28847 echo "$as_me:$LINENO: result: no" >&5
28848echo "${ECHO_T}no" >&6
28849 ac_wxgtk26=0
28850
28851fi
28852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28853
28854 if test "$ac_wxgtk26" = 0; then
9755e73b
VS
28855 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
28856echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
28857 cat >conftest.$ac_ext <<_ACEOF
28858/* confdefs.h. */
28859_ACEOF
28860cat confdefs.h >>conftest.$ac_ext
28861cat >>conftest.$ac_ext <<_ACEOF
28862/* end confdefs.h. */
28863
28864 #include <gtk/gtk.h>
28865
28866int
28867main ()
28868{
28869
28870 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 28871 Not GTK+ 2.4
9755e73b
VS
28872 #endif
28873
28874 ;
28875 return 0;
28876}
28877_ACEOF
28878rm -f conftest.$ac_objext
28879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28880 (eval $ac_compile) 2>conftest.er1
28881 ac_status=$?
28882 grep -v '^ *+' conftest.er1 >conftest.err
28883 rm -f conftest.er1
28884 cat conftest.err >&5
28885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28886 (exit $ac_status); } &&
479c790c 28887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
28888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28889 (eval $ac_try) 2>&5
28890 ac_status=$?
28891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28892 (exit $ac_status); }; } &&
28893 { ac_try='test -s conftest.$ac_objext'
28894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28895 (eval $ac_try) 2>&5
28896 ac_status=$?
28897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28898 (exit $ac_status); }; }; then
28899
28900 cat >>confdefs.h <<\_ACEOF
28901#define __WXGTK24__ 1
28902_ACEOF
28903
28904 echo "$as_me:$LINENO: result: yes" >&5
28905echo "${ECHO_T}yes" >&6
28906
28907else
28908 echo "$as_me: failed program was:" >&5
28909sed 's/^/| /' conftest.$ac_ext >&5
28910
28911
28912 echo "$as_me:$LINENO: result: no" >&5
28913echo "${ECHO_T}no" >&6
28914
28915fi
28916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e9263684 28917 fi
9755e73b 28918
6954625c 28919 CFLAGS="$save_CFLAGS"
304205f1 28920 LIBS="$save_LIBS"
a848cd7e
SC
28921 else
28922 if test "$wxUSE_UNICODE" = "yes"; then
28923 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
28924echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
28925 wxUSE_UNICODE=no
28926 fi
64b75e64
RD
28927
28928 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
28929echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
28930if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
28931 echo $ECHO_N "(cached) $ECHO_C" >&6
28932else
28933 ac_check_lib_save_LIBS=$LIBS
28934LIBS="-lgdk $LIBS"
28935cat >conftest.$ac_ext <<_ACEOF
28936/* confdefs.h. */
28937_ACEOF
28938cat confdefs.h >>conftest.$ac_ext
28939cat >>conftest.$ac_ext <<_ACEOF
28940/* end confdefs.h. */
28941
28942/* Override any gcc2 internal prototype to avoid an error. */
28943#ifdef __cplusplus
28944extern "C"
28945#endif
28946/* We use char because int might match the return type of a gcc2
28947 builtin and then its argument prototype would still apply. */
28948char gdk_im_open ();
28949int
28950main ()
28951{
28952gdk_im_open ();
28953 ;
28954 return 0;
28955}
28956_ACEOF
28957rm -f conftest.$ac_objext conftest$ac_exeext
28958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28959 (eval $ac_link) 2>conftest.er1
28960 ac_status=$?
28961 grep -v '^ *+' conftest.er1 >conftest.err
28962 rm -f conftest.er1
28963 cat conftest.err >&5
28964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28965 (exit $ac_status); } &&
479c790c 28966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
64b75e64
RD
28967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28968 (eval $ac_try) 2>&5
28969 ac_status=$?
28970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28971 (exit $ac_status); }; } &&
28972 { ac_try='test -s conftest$ac_exeext'
28973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28974 (eval $ac_try) 2>&5
28975 ac_status=$?
28976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977 (exit $ac_status); }; }; then
28978 ac_cv_lib_gdk_gdk_im_open=yes
28979else
28980 echo "$as_me: failed program was:" >&5
28981sed 's/^/| /' conftest.$ac_ext >&5
28982
28983ac_cv_lib_gdk_gdk_im_open=no
28984fi
28985rm -f conftest.err conftest.$ac_objext \
28986 conftest$ac_exeext conftest.$ac_ext
28987LIBS=$ac_check_lib_save_LIBS
28988fi
28989echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
28990echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
28991if test $ac_cv_lib_gdk_gdk_im_open = yes; then
28992 cat >>confdefs.h <<\_ACEOF
28993#define HAVE_XIM 1
28994_ACEOF
28995
28996fi
28997
a848cd7e
SC
28998 fi
28999
e56f4f9e
VZ
29000 ac_ext=cc
29001ac_cpp='$CXXCPP $CPPFLAGS'
29002ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29003ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29004ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29005
29006
a848cd7e
SC
29007 if test "$USE_DARWIN" != 1; then
29008
29009for ac_func in poll
29010do
29011as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29012echo "$as_me:$LINENO: checking for $ac_func" >&5
29013echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29014if eval "test \"\${$as_ac_var+set}\" = set"; then
29015 echo $ECHO_N "(cached) $ECHO_C" >&6
29016else
29017 cat >conftest.$ac_ext <<_ACEOF
29018/* confdefs.h. */
29019_ACEOF
29020cat confdefs.h >>conftest.$ac_ext
29021cat >>conftest.$ac_ext <<_ACEOF
29022/* end confdefs.h. */
ac1cb8d3
VS
29023/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29025#define $ac_func innocuous_$ac_func
29026
a848cd7e
SC
29027/* System header to define __stub macros and hopefully few prototypes,
29028 which can conflict with char $ac_func (); below.
29029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29030 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29031
a848cd7e
SC
29032#ifdef __STDC__
29033# include <limits.h>
29034#else
29035# include <assert.h>
29036#endif
ac1cb8d3
VS
29037
29038#undef $ac_func
29039
a848cd7e
SC
29040/* Override any gcc2 internal prototype to avoid an error. */
29041#ifdef __cplusplus
29042extern "C"
29043{
29044#endif
29045/* We use char because int might match the return type of a gcc2
29046 builtin and then its argument prototype would still apply. */
29047char $ac_func ();
29048/* The GNU C library defines this for functions which it implements
29049 to always fail with ENOSYS. Some functions are actually named
29050 something starting with __ and the normal name is an alias. */
29051#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29052choke me
29053#else
29054char (*f) () = $ac_func;
29055#endif
29056#ifdef __cplusplus
29057}
29058#endif
29059
29060int
29061main ()
29062{
29063return f != $ac_func;
29064 ;
29065 return 0;
29066}
29067_ACEOF
29068rm -f conftest.$ac_objext conftest$ac_exeext
29069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29070 (eval $ac_link) 2>conftest.er1
a848cd7e 29071 ac_status=$?
ac1cb8d3
VS
29072 grep -v '^ *+' conftest.er1 >conftest.err
29073 rm -f conftest.er1
29074 cat conftest.err >&5
a848cd7e
SC
29075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076 (exit $ac_status); } &&
479c790c 29077 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29079 (eval $ac_try) 2>&5
29080 ac_status=$?
29081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29082 (exit $ac_status); }; } &&
29083 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29085 (eval $ac_try) 2>&5
29086 ac_status=$?
29087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29088 (exit $ac_status); }; }; then
29089 eval "$as_ac_var=yes"
29090else
29091 echo "$as_me: failed program was:" >&5
29092sed 's/^/| /' conftest.$ac_ext >&5
29093
29094eval "$as_ac_var=no"
29095fi
ac1cb8d3
VS
29096rm -f conftest.err conftest.$ac_objext \
29097 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29098fi
29099echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29100echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29101if test `eval echo '${'$as_ac_var'}'` = yes; then
29102 cat >>confdefs.h <<_ACEOF
29103#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29104_ACEOF
29105
29106fi
29107done
29108
29109 fi
29110
29111 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
29112 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
29113
29114 AFMINSTALL=afminstall
29115 TOOLKIT=GTK
29116 GUIDIST=GTK_DIST
29117
a848cd7e
SC
29118 if test "$wxUSE_GPE" = "yes"; then
29119 echo "$as_me:$LINENO: checking for gpewidget library" >&5
29120echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
29121
0ad5d837
VZ
29122 ac_find_libraries=
29123 for ac_dir in $SEARCH_LIB;
a848cd7e 29124 do
3eca31dc 29125 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29126 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
29127 ac_find_libraries=$ac_dir
29128 break 2
29129 fi
29130 done
29131 done
29132
29133 if test "$ac_find_libraries" != "" ; then
29134
0ad5d837 29135 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
29136 ac_path_to_link=""
29137 else
0ad5d837
VZ
29138 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29139 result=$?
29140 if test $result = 0; then
29141 ac_path_to_link=""
29142 else
29143 ac_path_to_link=" -L$ac_find_libraries"
29144 fi
a848cd7e
SC
29145 fi
29146
29147 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29148 WXGPE=1
0ad5d837
VZ
29149 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29150echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
29151 else
29152 echo "$as_me:$LINENO: result: not found" >&5
29153echo "${ECHO_T}not found" >&6
29154 fi
29155
29156 fi
29157 fi
29158
29159 if test "$wxUSE_MGL" = 1; then
29160 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29161echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
29162 if test "x$MGL_ROOT" = x ; then
29163 echo "$as_me:$LINENO: result: not found" >&5
29164echo "${ECHO_T}not found" >&6
29165 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29166echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29167 { (exit 1); exit 1; }; }
29168 else
29169 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29170echo "${ECHO_T}$MGL_ROOT" >&6
29171 fi
29172
29173 echo "$as_me:$LINENO: checking for libmgl location" >&5
29174echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
29175 case "${host}" in
29176 *-*-linux* )
29177 if test "x$wxUSE_SHARED" = xyes ; then
29178 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29179 else
29180 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29181 fi
29182 ;;
29183 *-pc-msdosdjgpp )
29184 mgl_os_candidates="dos32/dj2"
29185 ;;
29186 *)
29187 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29188echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29189 { (exit 1); exit 1; }; }
29190 esac
29191
29192 mgl_lib_type=""
29193 mgl_os=""
29194
29195 for mgl_os_i in $mgl_os_candidates ; do
29196 if test "x$mgl_os" = x ; then
29197 if test "$wxUSE_DEBUG_FLAG" = yes ; then
29198 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29199 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29200 mgl_lib_type=debug
29201 mgl_os=$mgl_os_i
29202 fi
29203 fi
29204 if test "x$mgl_lib_type" = x ; then
29205 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29206 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29207 mgl_lib_type=release
29208 mgl_os=$mgl_os_i
29209 fi
29210 fi
29211 fi
29212 done
29213
29214 if test "x$mgl_os" = x ; then
29215 echo "$as_me:$LINENO: result: not found" >&5
29216echo "${ECHO_T}not found" >&6
29217 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29218echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29219 { (exit 1); exit 1; }; }
29220 fi
29221 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29222echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
29223
29224 wxUSE_UNIVERSAL="yes"
29225
29226 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29227 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29228
29229 AFMINSTALL=afminstall
29230 TOOLKIT=MGL
29231 GUIDIST=MGL_DIST
29232 fi
29233
b3c86150
VS
29234 if test "$wxUSE_DFB" = 1; then
29235
29236
29237if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29238 if test -n "$ac_tool_prefix"; then
29239 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29240set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29241echo "$as_me:$LINENO: checking for $ac_word" >&5
29242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29243if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29244 echo $ECHO_N "(cached) $ECHO_C" >&6
29245else
29246 case $PKG_CONFIG in
29247 [\\/]* | ?:[\\/]*)
29248 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29249 ;;
29250 *)
29251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29252for as_dir in $PATH
29253do
29254 IFS=$as_save_IFS
29255 test -z "$as_dir" && as_dir=.
29256 for ac_exec_ext in '' $ac_executable_extensions; do
29257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29258 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29260 break 2
29261 fi
29262done
29263done
29264
29265 ;;
29266esac
29267fi
29268PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29269
29270if test -n "$PKG_CONFIG"; then
29271 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29272echo "${ECHO_T}$PKG_CONFIG" >&6
29273else
29274 echo "$as_me:$LINENO: result: no" >&5
29275echo "${ECHO_T}no" >&6
29276fi
29277
29278fi
29279if test -z "$ac_cv_path_PKG_CONFIG"; then
29280 ac_pt_PKG_CONFIG=$PKG_CONFIG
29281 # Extract the first word of "pkg-config", so it can be a program name with args.
29282set dummy pkg-config; ac_word=$2
29283echo "$as_me:$LINENO: checking for $ac_word" >&5
29284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29285if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29286 echo $ECHO_N "(cached) $ECHO_C" >&6
29287else
29288 case $ac_pt_PKG_CONFIG in
29289 [\\/]* | ?:[\\/]*)
29290 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29291 ;;
29292 *)
29293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29294for as_dir in $PATH
29295do
29296 IFS=$as_save_IFS
29297 test -z "$as_dir" && as_dir=.
29298 for ac_exec_ext in '' $ac_executable_extensions; do
29299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29300 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29302 break 2
29303 fi
29304done
29305done
29306
29307 ;;
29308esac
29309fi
29310ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29311
29312if test -n "$ac_pt_PKG_CONFIG"; then
29313 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29314echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
29315else
29316 echo "$as_me:$LINENO: result: no" >&5
29317echo "${ECHO_T}no" >&6
29318fi
29319
29320 PKG_CONFIG=$ac_pt_PKG_CONFIG
29321else
29322 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29323fi
29324
29325fi
29326if test -n "$PKG_CONFIG"; then
29327 _pkg_min_version=0.9.0
29328 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29329echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
29330 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29331 echo "$as_me:$LINENO: result: yes" >&5
29332echo "${ECHO_T}yes" >&6
29333 else
29334 echo "$as_me:$LINENO: result: no" >&5
29335echo "${ECHO_T}no" >&6
29336 PKG_CONFIG=""
29337 fi
29338
29339fi
29340
479c790c 29341
b3c86150
VS
29342pkg_failed=no
29343echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29344echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6
29345
29346if test -n "$PKG_CONFIG"; then
29347 if test -n "$DIRECTFB_CFLAGS"; then
29348 pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29349 else
29350 if test -n "$PKG_CONFIG" && \
737d3175
VZ
29351 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29352 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
b3c86150
VS
29353 ac_status=$?
29354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355 (exit $ac_status); }; then
737d3175 29356 pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.22" 2>/dev/null`
b3c86150
VS
29357else
29358 pkg_failed=yes
29359fi
29360 fi
29361else
29362 pkg_failed=untried
29363fi
29364if test -n "$PKG_CONFIG"; then
29365 if test -n "$DIRECTFB_LIBS"; then
29366 pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29367 else
29368 if test -n "$PKG_CONFIG" && \
737d3175
VZ
29369 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29370 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
b3c86150
VS
29371 ac_status=$?
29372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29373 (exit $ac_status); }; then
737d3175 29374 pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.22" 2>/dev/null`
b3c86150
VS
29375else
29376 pkg_failed=yes
29377fi
29378 fi
29379else
29380 pkg_failed=untried
29381fi
29382
29383
29384
29385if test $pkg_failed = yes; then
29386
29387if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29388 _pkg_short_errors_supported=yes
29389else
29390 _pkg_short_errors_supported=no
29391fi
29392 if test $_pkg_short_errors_supported = yes; then
737d3175 29393 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.22"`
b3c86150 29394 else
737d3175 29395 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.22"`
b3c86150
VS
29396 fi
29397 # Put the nasty error message in config.log where it belongs
29398 echo "$DIRECTFB_PKG_ERRORS" >&5
29399
29400
29401 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29402echo "$as_me: error: DirectFB not found." >&2;}
29403 { (exit 1); exit 1; }; }
29404
29405
29406elif test $pkg_failed = untried; then
29407
29408 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29409echo "$as_me: error: DirectFB not found." >&2;}
29410 { (exit 1); exit 1; }; }
29411
29412
29413else
29414 DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29415 DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29416 echo "$as_me:$LINENO: result: yes" >&5
29417echo "${ECHO_T}yes" >&6
29418
29419 wxUSE_UNIVERSAL="yes"
29420 TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29421 GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29422 TOOLKIT=DFB
29423 GUIDIST=DFB_DIST
29424
29425fi
29426 fi
29427
a848cd7e
SC
29428 if test "$wxUSE_MICROWIN" = 1; then
29429 echo "$as_me:$LINENO: checking for MicroWindows" >&5
29430echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
29431 if test "x$MICROWINDOWS" = x ; then
29432 echo "$as_me:$LINENO: result: not found" >&5
29433echo "${ECHO_T}not found" >&6
29434 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29435echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29436 { (exit 1); exit 1; }; }
29437 else
29438 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29439echo "${ECHO_T}$MICROWINDOWS" >&6
29440 fi
29441
29442 if test -f $MICROWINDOWS/lib/libmwin.a; then
29443 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29444echo "${ECHO_T}MicroWindows' libraries found." >&6
29445 else
29446 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29447echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29448 { (exit 1); exit 1; }; }
29449 fi
29450
29451 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29452 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29453
29454 wxUSE_UNIVERSAL="yes"
29455
29456 AFMINSTALL=afminstall
29457 TOOLKIT=MICROWIN
29458 GUIDIST=MICROWIN_DIST
29459
29460 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29461 fi
29462
74b84332 29463 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
479c790c
VZ
29464
29465if test "x$ac_path_x_has_been_run" != xyes; then
29466 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
29467echo $ECHO_N "checking for X... $ECHO_C" >&6
29468
479c790c 29469ac_path_x_has_been_run=yes
a848cd7e
SC
29470
29471# Check whether --with-x or --without-x was given.
29472if test "${with_x+set}" = set; then
29473 withval="$with_x"
29474
29475fi;
29476# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29477if test "x$with_x" = xno; then
29478 # The user explicitly disabled X.
29479 have_x=disabled
29480else
29481 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
29482 # Both variables are already set.
29483 have_x=yes
29484 else
29485 if test "${ac_cv_have_x+set}" = set; then
29486 echo $ECHO_N "(cached) $ECHO_C" >&6
29487else
29488 # One or both of the vars are not set, and there is no cached value.
29489ac_x_includes=no ac_x_libraries=no
29490rm -fr conftest.dir
29491if mkdir conftest.dir; then
29492 cd conftest.dir
29493 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
29494 cat >Imakefile <<'_ACEOF'
29495acfindx:
29496 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
29497_ACEOF
29498 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
29499 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29500 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
29501 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29502 for ac_extension in a so sl; do
29503 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
29504 test -f $ac_im_libdir/libX11.$ac_extension; then
29505 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
29506 fi
29507 done
29508 # Screen out bogus values from the imake configuration. They are
29509 # bogus both because they are the default anyway, and because
29510 # using them would break gcc on systems where it needs fixed includes.
29511 case $ac_im_incroot in
29512 /usr/include) ;;
29513 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29514 esac
29515 case $ac_im_usrlibdir in
29516 /usr/lib | /lib) ;;
29517 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29518 esac
29519 fi
29520 cd ..
29521 rm -fr conftest.dir
29522fi
29523
29524# Standard set of common directories for X headers.
29525# Check X11 before X11Rn because it is often a symlink to the current release.
29526ac_x_header_dirs='
29527/usr/X11/include
29528/usr/X11R6/include
29529/usr/X11R5/include
29530/usr/X11R4/include
29531
29532/usr/include/X11
29533/usr/include/X11R6
29534/usr/include/X11R5
29535/usr/include/X11R4
29536
29537/usr/local/X11/include
29538/usr/local/X11R6/include
29539/usr/local/X11R5/include
29540/usr/local/X11R4/include
29541
29542/usr/local/include/X11
29543/usr/local/include/X11R6
29544/usr/local/include/X11R5
29545/usr/local/include/X11R4
29546
29547/usr/X386/include
29548/usr/x386/include
29549/usr/XFree86/include/X11
29550
29551/usr/include
29552/usr/local/include
29553/usr/unsupported/include
29554/usr/athena/include
29555/usr/local/x11r5/include
29556/usr/lpp/Xamples/include
29557
29558/usr/openwin/include
29559/usr/openwin/share/include'
29560
29561if test "$ac_x_includes" = no; then
479c790c 29562 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
29563 # First, try using that file with no special directory specified.
29564 cat >conftest.$ac_ext <<_ACEOF
29565/* confdefs.h. */
29566_ACEOF
29567cat confdefs.h >>conftest.$ac_ext
29568cat >>conftest.$ac_ext <<_ACEOF
29569/* end confdefs.h. */
f8f6c91a 29570#include <X11/Intrinsic.h>
a848cd7e
SC
29571_ACEOF
29572if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29574 ac_status=$?
29575 grep -v '^ *+' conftest.er1 >conftest.err
29576 rm -f conftest.er1
29577 cat conftest.err >&5
29578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579 (exit $ac_status); } >/dev/null; then
29580 if test -s conftest.err; then
5d7b7554
VZ
29581 ac_cpp_err=$ac_cxx_preproc_warn_flag
29582 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
29583 else
29584 ac_cpp_err=
29585 fi
29586else
29587 ac_cpp_err=yes
29588fi
29589if test -z "$ac_cpp_err"; then
29590 # We can compile using X headers with no special include directory.
29591ac_x_includes=
29592else
29593 echo "$as_me: failed program was:" >&5
29594sed 's/^/| /' conftest.$ac_ext >&5
29595
29596 for ac_dir in $ac_x_header_dirs; do
f8f6c91a 29597 if test -r "$ac_dir/X11/Intrinsic.h"; then
a848cd7e
SC
29598 ac_x_includes=$ac_dir
29599 break
29600 fi
29601done
29602fi
29603rm -f conftest.err conftest.$ac_ext
29604fi # $ac_x_includes = no
29605
29606if test "$ac_x_libraries" = no; then
29607 # Check for the libraries.
29608 # See if we find them without any special options.
29609 # Don't add to $LIBS permanently.
29610 ac_save_LIBS=$LIBS
f8f6c91a 29611 LIBS="-lXt $LIBS"
a848cd7e
SC
29612 cat >conftest.$ac_ext <<_ACEOF
29613/* confdefs.h. */
29614_ACEOF
29615cat confdefs.h >>conftest.$ac_ext
29616cat >>conftest.$ac_ext <<_ACEOF
29617/* end confdefs.h. */
f8f6c91a 29618#include <X11/Intrinsic.h>
a848cd7e
SC
29619int
29620main ()
29621{
f8f6c91a 29622XtMalloc (0)
a848cd7e
SC
29623 ;
29624 return 0;
29625}
29626_ACEOF
29627rm -f conftest.$ac_objext conftest$ac_exeext
29628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29629 (eval $ac_link) 2>conftest.er1
a848cd7e 29630 ac_status=$?
ac1cb8d3
VS
29631 grep -v '^ *+' conftest.er1 >conftest.err
29632 rm -f conftest.er1
29633 cat conftest.err >&5
a848cd7e
SC
29634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29635 (exit $ac_status); } &&
479c790c 29636 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29638 (eval $ac_try) 2>&5
29639 ac_status=$?
29640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29641 (exit $ac_status); }; } &&
29642 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29644 (eval $ac_try) 2>&5
29645 ac_status=$?
29646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29647 (exit $ac_status); }; }; then
29648 LIBS=$ac_save_LIBS
29649# We can link X programs with no special library path.
29650ac_x_libraries=
29651else
29652 echo "$as_me: failed program was:" >&5
29653sed 's/^/| /' conftest.$ac_ext >&5
29654
29655LIBS=$ac_save_LIBS
29656for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29657do
29658 # Don't even attempt the hair of trying to link an X program!
29659 for ac_extension in a so sl; do
f8f6c91a 29660 if test -r $ac_dir/libXt.$ac_extension; then
a848cd7e
SC
29661 ac_x_libraries=$ac_dir
29662 break 2
29663 fi
29664 done
29665done
29666fi
ac1cb8d3
VS
29667rm -f conftest.err conftest.$ac_objext \
29668 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29669fi # $ac_x_libraries = no
29670
29671if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
29672 # Didn't find X anywhere. Cache the known absence of X.
29673 ac_cv_have_x="have_x=no"
29674else
29675 # Record where we found X for the cache.
29676 ac_cv_have_x="have_x=yes \
ac1cb8d3 29677 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
29678fi
29679fi
29680
29681 fi
29682 eval "$ac_cv_have_x"
29683fi # $with_x != no
29684
29685if test "$have_x" != yes; then
29686 echo "$as_me:$LINENO: result: $have_x" >&5
29687echo "${ECHO_T}$have_x" >&6
29688 no_x=yes
29689else
29690 # If each of the values was on the command line, it overrides each guess.
29691 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29692 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29693 # Update the cache value to reflect the command line values.
29694 ac_cv_have_x="have_x=yes \
29695 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
479c790c
VZ
29696 # It might be that x_includes is empty (headers are found in the
29697 # standard search path. Then output the corresponding message
29698 ac_out_x_includes=$x_includes
29699 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
29700 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
29701echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
29702fi
29703
479c790c 29704fi
a848cd7e
SC
29705if test "$no_x" = yes; then
29706 # Not all programs may use this symbol, but it does not hurt to define it.
29707
29708cat >>confdefs.h <<\_ACEOF
29709#define X_DISPLAY_MISSING 1
29710_ACEOF
29711
29712 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29713else
29714 if test -n "$x_includes"; then
29715 X_CFLAGS="$X_CFLAGS -I$x_includes"
29716 fi
29717
29718 # It would also be nice to do this for all -L options, not just this one.
29719 if test -n "$x_libraries"; then
29720 X_LIBS="$X_LIBS -L$x_libraries"
29721 # For Solaris; some versions of Sun CC require a space after -R and
29722 # others require no space. Words are not sufficient . . . .
29723 case `(uname -sr) 2>/dev/null` in
29724 "SunOS 5"*)
29725 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29726echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
29727 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29728 cat >conftest.$ac_ext <<_ACEOF
29729/* confdefs.h. */
29730_ACEOF
29731cat confdefs.h >>conftest.$ac_ext
29732cat >>conftest.$ac_ext <<_ACEOF
29733/* end confdefs.h. */
29734
29735int
29736main ()
29737{
29738
29739 ;
29740 return 0;
29741}
29742_ACEOF
29743rm -f conftest.$ac_objext conftest$ac_exeext
29744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29745 (eval $ac_link) 2>conftest.er1
a848cd7e 29746 ac_status=$?
ac1cb8d3
VS
29747 grep -v '^ *+' conftest.er1 >conftest.err
29748 rm -f conftest.er1
29749 cat conftest.err >&5
a848cd7e
SC
29750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29751 (exit $ac_status); } &&
479c790c 29752 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29754 (eval $ac_try) 2>&5
29755 ac_status=$?
29756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29757 (exit $ac_status); }; } &&
29758 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29760 (eval $ac_try) 2>&5
29761 ac_status=$?
29762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29763 (exit $ac_status); }; }; then
29764 ac_R_nospace=yes
29765else
29766 echo "$as_me: failed program was:" >&5
29767sed 's/^/| /' conftest.$ac_ext >&5
29768
29769ac_R_nospace=no
29770fi
ac1cb8d3
VS
29771rm -f conftest.err conftest.$ac_objext \
29772 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29773 if test $ac_R_nospace = yes; then
29774 echo "$as_me:$LINENO: result: no" >&5
29775echo "${ECHO_T}no" >&6
29776 X_LIBS="$X_LIBS -R$x_libraries"
29777 else
29778 LIBS="$ac_xsave_LIBS -R $x_libraries"
29779 cat >conftest.$ac_ext <<_ACEOF
29780/* confdefs.h. */
29781_ACEOF
29782cat confdefs.h >>conftest.$ac_ext
29783cat >>conftest.$ac_ext <<_ACEOF
29784/* end confdefs.h. */
29785
29786int
29787main ()
29788{
29789
29790 ;
29791 return 0;
29792}
29793_ACEOF
29794rm -f conftest.$ac_objext conftest$ac_exeext
29795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29796 (eval $ac_link) 2>conftest.er1
a848cd7e 29797 ac_status=$?
ac1cb8d3
VS
29798 grep -v '^ *+' conftest.er1 >conftest.err
29799 rm -f conftest.er1
29800 cat conftest.err >&5
a848cd7e
SC
29801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29802 (exit $ac_status); } &&
479c790c 29803 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29805 (eval $ac_try) 2>&5
29806 ac_status=$?
29807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29808 (exit $ac_status); }; } &&
29809 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29811 (eval $ac_try) 2>&5
29812 ac_status=$?
29813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29814 (exit $ac_status); }; }; then
29815 ac_R_space=yes
29816else
29817 echo "$as_me: failed program was:" >&5
29818sed 's/^/| /' conftest.$ac_ext >&5
29819
29820ac_R_space=no
29821fi
ac1cb8d3
VS
29822rm -f conftest.err conftest.$ac_objext \
29823 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29824 if test $ac_R_space = yes; then
29825 echo "$as_me:$LINENO: result: yes" >&5
29826echo "${ECHO_T}yes" >&6
29827 X_LIBS="$X_LIBS -R $x_libraries"
29828 else
29829 echo "$as_me:$LINENO: result: neither works" >&5
29830echo "${ECHO_T}neither works" >&6
29831 fi
29832 fi
29833 LIBS=$ac_xsave_LIBS
29834 esac
29835 fi
29836
29837 # Check for system-dependent libraries X programs must link with.
29838 # Do this before checking for the system-independent R6 libraries
29839 # (-lICE), since we may need -lsocket or whatever for X linking.
29840
29841 if test "$ISC" = yes; then
29842 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29843 else
29844 # Martyn Johnson says this is needed for Ultrix, if the X
29845 # libraries were built with DECnet support. And Karl Berry says
29846 # the Alpha needs dnet_stub (dnet does not exist).
29847 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29848 cat >conftest.$ac_ext <<_ACEOF
29849/* confdefs.h. */
29850_ACEOF
29851cat confdefs.h >>conftest.$ac_ext
29852cat >>conftest.$ac_ext <<_ACEOF
29853/* end confdefs.h. */
29854
29855/* Override any gcc2 internal prototype to avoid an error. */
29856#ifdef __cplusplus
29857extern "C"
29858#endif
29859/* We use char because int might match the return type of a gcc2
29860 builtin and then its argument prototype would still apply. */
29861char XOpenDisplay ();
29862int
29863main ()
29864{
29865XOpenDisplay ();
29866 ;
29867 return 0;
29868}
29869_ACEOF
29870rm -f conftest.$ac_objext conftest$ac_exeext
29871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29872 (eval $ac_link) 2>conftest.er1
a848cd7e 29873 ac_status=$?
ac1cb8d3
VS
29874 grep -v '^ *+' conftest.er1 >conftest.err
29875 rm -f conftest.er1
29876 cat conftest.err >&5
a848cd7e
SC
29877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29878 (exit $ac_status); } &&
479c790c 29879 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29881 (eval $ac_try) 2>&5
29882 ac_status=$?
29883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884 (exit $ac_status); }; } &&
29885 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29887 (eval $ac_try) 2>&5
29888 ac_status=$?
29889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29890 (exit $ac_status); }; }; then
29891 :
29892else
29893 echo "$as_me: failed program was:" >&5
29894sed 's/^/| /' conftest.$ac_ext >&5
29895
29896echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29897echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
29898if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29899 echo $ECHO_N "(cached) $ECHO_C" >&6
29900else
29901 ac_check_lib_save_LIBS=$LIBS
29902LIBS="-ldnet $LIBS"
29903cat >conftest.$ac_ext <<_ACEOF
29904/* confdefs.h. */
29905_ACEOF
29906cat confdefs.h >>conftest.$ac_ext
29907cat >>conftest.$ac_ext <<_ACEOF
29908/* end confdefs.h. */
29909
29910/* Override any gcc2 internal prototype to avoid an error. */
29911#ifdef __cplusplus
29912extern "C"
29913#endif
29914/* We use char because int might match the return type of a gcc2
29915 builtin and then its argument prototype would still apply. */
29916char dnet_ntoa ();
29917int
29918main ()
29919{
29920dnet_ntoa ();
29921 ;
29922 return 0;
29923}
29924_ACEOF
29925rm -f conftest.$ac_objext conftest$ac_exeext
29926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29927 (eval $ac_link) 2>conftest.er1
a848cd7e 29928 ac_status=$?
ac1cb8d3
VS
29929 grep -v '^ *+' conftest.er1 >conftest.err
29930 rm -f conftest.er1
29931 cat conftest.err >&5
a848cd7e
SC
29932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29933 (exit $ac_status); } &&
479c790c 29934 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29936 (eval $ac_try) 2>&5
29937 ac_status=$?
29938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29939 (exit $ac_status); }; } &&
29940 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29942 (eval $ac_try) 2>&5
29943 ac_status=$?
29944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29945 (exit $ac_status); }; }; then
29946 ac_cv_lib_dnet_dnet_ntoa=yes
29947else
29948 echo "$as_me: failed program was:" >&5
29949sed 's/^/| /' conftest.$ac_ext >&5
29950
29951ac_cv_lib_dnet_dnet_ntoa=no
29952fi
ac1cb8d3
VS
29953rm -f conftest.err conftest.$ac_objext \
29954 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29955LIBS=$ac_check_lib_save_LIBS
29956fi
29957echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29958echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
29959if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29960 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29961fi
29962
29963 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29964 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29965echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
29966if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29967 echo $ECHO_N "(cached) $ECHO_C" >&6
29968else
29969 ac_check_lib_save_LIBS=$LIBS
29970LIBS="-ldnet_stub $LIBS"
29971cat >conftest.$ac_ext <<_ACEOF
29972/* confdefs.h. */
29973_ACEOF
29974cat confdefs.h >>conftest.$ac_ext
29975cat >>conftest.$ac_ext <<_ACEOF
29976/* end confdefs.h. */
29977
29978/* Override any gcc2 internal prototype to avoid an error. */
29979#ifdef __cplusplus
29980extern "C"
29981#endif
29982/* We use char because int might match the return type of a gcc2
29983 builtin and then its argument prototype would still apply. */
29984char dnet_ntoa ();
29985int
29986main ()
29987{
29988dnet_ntoa ();
29989 ;
29990 return 0;
29991}
29992_ACEOF
29993rm -f conftest.$ac_objext conftest$ac_exeext
29994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29995 (eval $ac_link) 2>conftest.er1
a848cd7e 29996 ac_status=$?
ac1cb8d3
VS
29997 grep -v '^ *+' conftest.er1 >conftest.err
29998 rm -f conftest.er1
29999 cat conftest.err >&5
a848cd7e
SC
30000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30001 (exit $ac_status); } &&
479c790c 30002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30004 (eval $ac_try) 2>&5
30005 ac_status=$?
30006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30007 (exit $ac_status); }; } &&
30008 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30010 (eval $ac_try) 2>&5
30011 ac_status=$?
30012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30013 (exit $ac_status); }; }; then
30014 ac_cv_lib_dnet_stub_dnet_ntoa=yes
30015else
30016 echo "$as_me: failed program was:" >&5
30017sed 's/^/| /' conftest.$ac_ext >&5
30018
30019ac_cv_lib_dnet_stub_dnet_ntoa=no
30020fi
ac1cb8d3
VS
30021rm -f conftest.err conftest.$ac_objext \
30022 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30023LIBS=$ac_check_lib_save_LIBS
30024fi
30025echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30026echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
30027if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30028 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30029fi
30030
30031 fi
30032fi
ac1cb8d3
VS
30033rm -f conftest.err conftest.$ac_objext \
30034 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30035 LIBS="$ac_xsave_LIBS"
30036
30037 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30038 # to get the SysV transport functions.
30039 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30040 # needs -lnsl.
30041 # The nsl library prevents programs from opening the X display
30042 # on Irix 5.2, according to T.E. Dickey.
30043 # The functions gethostbyname, getservbyname, and inet_addr are
30044 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30045 echo "$as_me:$LINENO: checking for gethostbyname" >&5
30046echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
30047if test "${ac_cv_func_gethostbyname+set}" = set; then
30048 echo $ECHO_N "(cached) $ECHO_C" >&6
30049else
30050 cat >conftest.$ac_ext <<_ACEOF
30051/* confdefs.h. */
30052_ACEOF
30053cat confdefs.h >>conftest.$ac_ext
30054cat >>conftest.$ac_ext <<_ACEOF
30055/* end confdefs.h. */
ac1cb8d3
VS
30056/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30058#define gethostbyname innocuous_gethostbyname
30059
a848cd7e
SC
30060/* System header to define __stub macros and hopefully few prototypes,
30061 which can conflict with char gethostbyname (); below.
30062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30063 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30064
a848cd7e
SC
30065#ifdef __STDC__
30066# include <limits.h>
30067#else
30068# include <assert.h>
30069#endif
ac1cb8d3
VS
30070
30071#undef gethostbyname
30072
a848cd7e
SC
30073/* Override any gcc2 internal prototype to avoid an error. */
30074#ifdef __cplusplus
30075extern "C"
30076{
30077#endif
30078/* We use char because int might match the return type of a gcc2
30079 builtin and then its argument prototype would still apply. */
30080char gethostbyname ();
30081/* The GNU C library defines this for functions which it implements
30082 to always fail with ENOSYS. Some functions are actually named
30083 something starting with __ and the normal name is an alias. */
30084#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
30085choke me
30086#else
30087char (*f) () = gethostbyname;
30088#endif
30089#ifdef __cplusplus
30090}
30091#endif
30092
30093int
30094main ()
30095{
30096return f != gethostbyname;
30097 ;
30098 return 0;
30099}
30100_ACEOF
30101rm -f conftest.$ac_objext conftest$ac_exeext
30102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30103 (eval $ac_link) 2>conftest.er1
a848cd7e 30104 ac_status=$?
ac1cb8d3
VS
30105 grep -v '^ *+' conftest.er1 >conftest.err
30106 rm -f conftest.er1
30107 cat conftest.err >&5
a848cd7e
SC
30108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30109 (exit $ac_status); } &&
479c790c 30110 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30112 (eval $ac_try) 2>&5
30113 ac_status=$?
30114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30115 (exit $ac_status); }; } &&
30116 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30118 (eval $ac_try) 2>&5
30119 ac_status=$?
30120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30121 (exit $ac_status); }; }; then
30122 ac_cv_func_gethostbyname=yes
30123else
30124 echo "$as_me: failed program was:" >&5
30125sed 's/^/| /' conftest.$ac_ext >&5
30126
30127ac_cv_func_gethostbyname=no
30128fi
ac1cb8d3
VS
30129rm -f conftest.err conftest.$ac_objext \
30130 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30131fi
30132echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30133echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
30134
30135 if test $ac_cv_func_gethostbyname = no; then
30136 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30137echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
30138if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30139 echo $ECHO_N "(cached) $ECHO_C" >&6
30140else
30141 ac_check_lib_save_LIBS=$LIBS
30142LIBS="-lnsl $LIBS"
30143cat >conftest.$ac_ext <<_ACEOF
30144/* confdefs.h. */
30145_ACEOF
30146cat confdefs.h >>conftest.$ac_ext
30147cat >>conftest.$ac_ext <<_ACEOF
30148/* end confdefs.h. */
30149
30150/* Override any gcc2 internal prototype to avoid an error. */
30151#ifdef __cplusplus
30152extern "C"
30153#endif
30154/* We use char because int might match the return type of a gcc2
30155 builtin and then its argument prototype would still apply. */
30156char gethostbyname ();
30157int
30158main ()
30159{
30160gethostbyname ();
30161 ;
30162 return 0;
30163}
30164_ACEOF
30165rm -f conftest.$ac_objext conftest$ac_exeext
30166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
30167 (eval $ac_link) 2>conftest.er1
30168 ac_status=$?
30169 grep -v '^ *+' conftest.er1 >conftest.err
30170 rm -f conftest.er1
30171 cat conftest.err >&5
30172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30173 (exit $ac_status); } &&
479c790c 30174 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30176 (eval $ac_try) 2>&5
30177 ac_status=$?
30178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30179 (exit $ac_status); }; } &&
30180 { ac_try='test -s conftest$ac_exeext'
30181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30182 (eval $ac_try) 2>&5
30183 ac_status=$?
30184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30185 (exit $ac_status); }; }; then
30186 ac_cv_lib_nsl_gethostbyname=yes
30187else
30188 echo "$as_me: failed program was:" >&5
30189sed 's/^/| /' conftest.$ac_ext >&5
30190
30191ac_cv_lib_nsl_gethostbyname=no
30192fi
30193rm -f conftest.err conftest.$ac_objext \
30194 conftest$ac_exeext conftest.$ac_ext
30195LIBS=$ac_check_lib_save_LIBS
30196fi
30197echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30198echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
30199if test $ac_cv_lib_nsl_gethostbyname = yes; then
30200 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30201fi
30202
30203 if test $ac_cv_lib_nsl_gethostbyname = no; then
30204 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30205echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
30206if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30207 echo $ECHO_N "(cached) $ECHO_C" >&6
30208else
30209 ac_check_lib_save_LIBS=$LIBS
30210LIBS="-lbsd $LIBS"
30211cat >conftest.$ac_ext <<_ACEOF
30212/* confdefs.h. */
30213_ACEOF
30214cat confdefs.h >>conftest.$ac_ext
30215cat >>conftest.$ac_ext <<_ACEOF
30216/* end confdefs.h. */
30217
30218/* Override any gcc2 internal prototype to avoid an error. */
30219#ifdef __cplusplus
30220extern "C"
30221#endif
30222/* We use char because int might match the return type of a gcc2
30223 builtin and then its argument prototype would still apply. */
30224char gethostbyname ();
30225int
30226main ()
30227{
30228gethostbyname ();
30229 ;
30230 return 0;
30231}
30232_ACEOF
30233rm -f conftest.$ac_objext conftest$ac_exeext
30234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30235 (eval $ac_link) 2>conftest.er1
a848cd7e 30236 ac_status=$?
ac1cb8d3
VS
30237 grep -v '^ *+' conftest.er1 >conftest.err
30238 rm -f conftest.er1
30239 cat conftest.err >&5
a848cd7e
SC
30240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30241 (exit $ac_status); } &&
479c790c 30242 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
30243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30244 (eval $ac_try) 2>&5
30245 ac_status=$?
30246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
30247 (exit $ac_status); }; } &&
30248 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30250 (eval $ac_try) 2>&5
30251 ac_status=$?
30252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30253 (exit $ac_status); }; }; then
30254 ac_cv_lib_bsd_gethostbyname=yes
30255else
30256 echo "$as_me: failed program was:" >&5
30257sed 's/^/| /' conftest.$ac_ext >&5
30258
30259ac_cv_lib_bsd_gethostbyname=no
30260fi
ac1cb8d3
VS
30261rm -f conftest.err conftest.$ac_objext \
30262 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30263LIBS=$ac_check_lib_save_LIBS
30264fi
30265echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30266echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
30267if test $ac_cv_lib_bsd_gethostbyname = yes; then
30268 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30269fi
30270
30271 fi
30272 fi
30273
30274 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30275 # socket/setsockopt and other routines are undefined under SCO ODT
30276 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30277 # on later versions), says Simon Leinen: it contains gethostby*
30278 # variants that don't use the name server (or something). -lsocket
30279 # must be given before -lnsl if both are needed. We assume that
30280 # if connect needs -lnsl, so does gethostbyname.
30281 echo "$as_me:$LINENO: checking for connect" >&5
30282echo $ECHO_N "checking for connect... $ECHO_C" >&6
30283if test "${ac_cv_func_connect+set}" = set; then
30284 echo $ECHO_N "(cached) $ECHO_C" >&6
30285else
30286 cat >conftest.$ac_ext <<_ACEOF
30287/* confdefs.h. */
30288_ACEOF
30289cat confdefs.h >>conftest.$ac_ext
30290cat >>conftest.$ac_ext <<_ACEOF
30291/* end confdefs.h. */
ac1cb8d3
VS
30292/* Define connect to an innocuous variant, in case <limits.h> declares connect.
30293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30294#define connect innocuous_connect
30295
a848cd7e
SC
30296/* System header to define __stub macros and hopefully few prototypes,
30297 which can conflict with char connect (); below.
30298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30299 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30300
a848cd7e
SC
30301#ifdef __STDC__
30302# include <limits.h>
30303#else
30304# include <assert.h>
30305#endif
ac1cb8d3
VS
30306
30307#undef connect
30308
a848cd7e
SC
30309/* Override any gcc2 internal prototype to avoid an error. */
30310#ifdef __cplusplus
30311extern "C"
30312{
30313#endif
30314/* We use char because int might match the return type of a gcc2
30315 builtin and then its argument prototype would still apply. */
30316char connect ();
30317/* The GNU C library defines this for functions which it implements
30318 to always fail with ENOSYS. Some functions are actually named
30319 something starting with __ and the normal name is an alias. */
30320#if defined (__stub_connect) || defined (__stub___connect)
30321choke me
30322#else
30323char (*f) () = connect;
30324#endif
30325#ifdef __cplusplus
30326}
30327#endif
30328
30329int
30330main ()
30331{
30332return f != connect;
30333 ;
30334 return 0;
30335}
30336_ACEOF
30337rm -f conftest.$ac_objext conftest$ac_exeext
30338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30339 (eval $ac_link) 2>conftest.er1
a848cd7e 30340 ac_status=$?
ac1cb8d3
VS
30341 grep -v '^ *+' conftest.er1 >conftest.err
30342 rm -f conftest.er1
30343 cat conftest.err >&5
a848cd7e
SC
30344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345 (exit $ac_status); } &&
479c790c 30346 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30348 (eval $ac_try) 2>&5
30349 ac_status=$?
30350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351 (exit $ac_status); }; } &&
30352 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30354 (eval $ac_try) 2>&5
30355 ac_status=$?
30356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357 (exit $ac_status); }; }; then
30358 ac_cv_func_connect=yes
30359else
30360 echo "$as_me: failed program was:" >&5
30361sed 's/^/| /' conftest.$ac_ext >&5
30362
30363ac_cv_func_connect=no
30364fi
ac1cb8d3
VS
30365rm -f conftest.err conftest.$ac_objext \
30366 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30367fi
30368echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30369echo "${ECHO_T}$ac_cv_func_connect" >&6
30370
30371 if test $ac_cv_func_connect = no; then
30372 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30373echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
30374if test "${ac_cv_lib_socket_connect+set}" = set; then
30375 echo $ECHO_N "(cached) $ECHO_C" >&6
30376else
30377 ac_check_lib_save_LIBS=$LIBS
30378LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30379cat >conftest.$ac_ext <<_ACEOF
30380/* confdefs.h. */
30381_ACEOF
30382cat confdefs.h >>conftest.$ac_ext
30383cat >>conftest.$ac_ext <<_ACEOF
30384/* end confdefs.h. */
30385
30386/* Override any gcc2 internal prototype to avoid an error. */
30387#ifdef __cplusplus
30388extern "C"
30389#endif
30390/* We use char because int might match the return type of a gcc2
30391 builtin and then its argument prototype would still apply. */
30392char connect ();
30393int
30394main ()
30395{
30396connect ();
30397 ;
30398 return 0;
30399}
30400_ACEOF
30401rm -f conftest.$ac_objext conftest$ac_exeext
30402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30403 (eval $ac_link) 2>conftest.er1
a848cd7e 30404 ac_status=$?
ac1cb8d3
VS
30405 grep -v '^ *+' conftest.er1 >conftest.err
30406 rm -f conftest.er1
30407 cat conftest.err >&5
a848cd7e
SC
30408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30409 (exit $ac_status); } &&
479c790c 30410 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30412 (eval $ac_try) 2>&5
30413 ac_status=$?
30414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30415 (exit $ac_status); }; } &&
30416 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30418 (eval $ac_try) 2>&5
30419 ac_status=$?
30420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30421 (exit $ac_status); }; }; then
30422 ac_cv_lib_socket_connect=yes
30423else
30424 echo "$as_me: failed program was:" >&5
30425sed 's/^/| /' conftest.$ac_ext >&5
30426
30427ac_cv_lib_socket_connect=no
30428fi
ac1cb8d3
VS
30429rm -f conftest.err conftest.$ac_objext \
30430 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30431LIBS=$ac_check_lib_save_LIBS
30432fi
30433echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30434echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
30435if test $ac_cv_lib_socket_connect = yes; then
30436 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30437fi
30438
30439 fi
30440
30441 # Guillermo Gomez says -lposix is necessary on A/UX.
30442 echo "$as_me:$LINENO: checking for remove" >&5
30443echo $ECHO_N "checking for remove... $ECHO_C" >&6
30444if test "${ac_cv_func_remove+set}" = set; then
30445 echo $ECHO_N "(cached) $ECHO_C" >&6
30446else
30447 cat >conftest.$ac_ext <<_ACEOF
30448/* confdefs.h. */
30449_ACEOF
30450cat confdefs.h >>conftest.$ac_ext
30451cat >>conftest.$ac_ext <<_ACEOF
30452/* end confdefs.h. */
ac1cb8d3
VS
30453/* Define remove to an innocuous variant, in case <limits.h> declares remove.
30454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30455#define remove innocuous_remove
30456
a848cd7e
SC
30457/* System header to define __stub macros and hopefully few prototypes,
30458 which can conflict with char remove (); below.
30459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30460 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30461
a848cd7e
SC
30462#ifdef __STDC__
30463# include <limits.h>
30464#else
30465# include <assert.h>
30466#endif
ac1cb8d3
VS
30467
30468#undef remove
30469
a848cd7e
SC
30470/* Override any gcc2 internal prototype to avoid an error. */
30471#ifdef __cplusplus
30472extern "C"
30473{
30474#endif
30475/* We use char because int might match the return type of a gcc2
30476 builtin and then its argument prototype would still apply. */
30477char remove ();
30478/* The GNU C library defines this for functions which it implements
30479 to always fail with ENOSYS. Some functions are actually named
30480 something starting with __ and the normal name is an alias. */
30481#if defined (__stub_remove) || defined (__stub___remove)
30482choke me
30483#else
30484char (*f) () = remove;
30485#endif
30486#ifdef __cplusplus
30487}
30488#endif
30489
30490int
30491main ()
30492{
30493return f != remove;
30494 ;
30495 return 0;
30496}
30497_ACEOF
30498rm -f conftest.$ac_objext conftest$ac_exeext
30499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30500 (eval $ac_link) 2>conftest.er1
a848cd7e 30501 ac_status=$?
ac1cb8d3
VS
30502 grep -v '^ *+' conftest.er1 >conftest.err
30503 rm -f conftest.er1
30504 cat conftest.err >&5
a848cd7e
SC
30505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30506 (exit $ac_status); } &&
479c790c 30507 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30509 (eval $ac_try) 2>&5
30510 ac_status=$?
30511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30512 (exit $ac_status); }; } &&
30513 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30515 (eval $ac_try) 2>&5
30516 ac_status=$?
30517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30518 (exit $ac_status); }; }; then
30519 ac_cv_func_remove=yes
30520else
30521 echo "$as_me: failed program was:" >&5
30522sed 's/^/| /' conftest.$ac_ext >&5
30523
30524ac_cv_func_remove=no
30525fi
ac1cb8d3
VS
30526rm -f conftest.err conftest.$ac_objext \
30527 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30528fi
30529echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30530echo "${ECHO_T}$ac_cv_func_remove" >&6
30531
30532 if test $ac_cv_func_remove = no; then
30533 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30534echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
30535if test "${ac_cv_lib_posix_remove+set}" = set; then
30536 echo $ECHO_N "(cached) $ECHO_C" >&6
30537else
30538 ac_check_lib_save_LIBS=$LIBS
30539LIBS="-lposix $LIBS"
30540cat >conftest.$ac_ext <<_ACEOF
30541/* confdefs.h. */
30542_ACEOF
30543cat confdefs.h >>conftest.$ac_ext
30544cat >>conftest.$ac_ext <<_ACEOF
30545/* end confdefs.h. */
30546
30547/* Override any gcc2 internal prototype to avoid an error. */
30548#ifdef __cplusplus
30549extern "C"
30550#endif
30551/* We use char because int might match the return type of a gcc2
30552 builtin and then its argument prototype would still apply. */
30553char remove ();
30554int
30555main ()
30556{
30557remove ();
30558 ;
30559 return 0;
30560}
30561_ACEOF
30562rm -f conftest.$ac_objext conftest$ac_exeext
30563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30564 (eval $ac_link) 2>conftest.er1
a848cd7e 30565 ac_status=$?
ac1cb8d3
VS
30566 grep -v '^ *+' conftest.er1 >conftest.err
30567 rm -f conftest.er1
30568 cat conftest.err >&5
a848cd7e
SC
30569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30570 (exit $ac_status); } &&
479c790c 30571 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30573 (eval $ac_try) 2>&5
30574 ac_status=$?
30575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30576 (exit $ac_status); }; } &&
30577 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30579 (eval $ac_try) 2>&5
30580 ac_status=$?
30581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30582 (exit $ac_status); }; }; then
30583 ac_cv_lib_posix_remove=yes
30584else
30585 echo "$as_me: failed program was:" >&5
30586sed 's/^/| /' conftest.$ac_ext >&5
30587
30588ac_cv_lib_posix_remove=no
30589fi
ac1cb8d3
VS
30590rm -f conftest.err conftest.$ac_objext \
30591 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30592LIBS=$ac_check_lib_save_LIBS
30593fi
30594echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30595echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
30596if test $ac_cv_lib_posix_remove = yes; then
30597 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30598fi
30599
30600 fi
30601
30602 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30603 echo "$as_me:$LINENO: checking for shmat" >&5
30604echo $ECHO_N "checking for shmat... $ECHO_C" >&6
30605if test "${ac_cv_func_shmat+set}" = set; then
30606 echo $ECHO_N "(cached) $ECHO_C" >&6
30607else
30608 cat >conftest.$ac_ext <<_ACEOF
30609/* confdefs.h. */
30610_ACEOF
30611cat confdefs.h >>conftest.$ac_ext
30612cat >>conftest.$ac_ext <<_ACEOF
30613/* end confdefs.h. */
ac1cb8d3
VS
30614/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30616#define shmat innocuous_shmat
30617
a848cd7e
SC
30618/* System header to define __stub macros and hopefully few prototypes,
30619 which can conflict with char shmat (); below.
30620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30621 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30622
a848cd7e
SC
30623#ifdef __STDC__
30624# include <limits.h>
30625#else
30626# include <assert.h>
30627#endif
ac1cb8d3
VS
30628
30629#undef shmat
30630
a848cd7e
SC
30631/* Override any gcc2 internal prototype to avoid an error. */
30632#ifdef __cplusplus
30633extern "C"
30634{
30635#endif
30636/* We use char because int might match the return type of a gcc2
30637 builtin and then its argument prototype would still apply. */
30638char shmat ();
30639/* The GNU C library defines this for functions which it implements
30640 to always fail with ENOSYS. Some functions are actually named
30641 something starting with __ and the normal name is an alias. */
30642#if defined (__stub_shmat) || defined (__stub___shmat)
30643choke me
30644#else
30645char (*f) () = shmat;
30646#endif
30647#ifdef __cplusplus
30648}
30649#endif
30650
30651int
30652main ()
30653{
30654return f != shmat;
30655 ;
30656 return 0;
30657}
30658_ACEOF
30659rm -f conftest.$ac_objext conftest$ac_exeext
30660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30661 (eval $ac_link) 2>conftest.er1
a848cd7e 30662 ac_status=$?
ac1cb8d3
VS
30663 grep -v '^ *+' conftest.er1 >conftest.err
30664 rm -f conftest.er1
30665 cat conftest.err >&5
a848cd7e
SC
30666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30667 (exit $ac_status); } &&
479c790c 30668 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30670 (eval $ac_try) 2>&5
30671 ac_status=$?
30672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30673 (exit $ac_status); }; } &&
30674 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30676 (eval $ac_try) 2>&5
30677 ac_status=$?
30678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30679 (exit $ac_status); }; }; then
30680 ac_cv_func_shmat=yes
30681else
30682 echo "$as_me: failed program was:" >&5
30683sed 's/^/| /' conftest.$ac_ext >&5
30684
30685ac_cv_func_shmat=no
30686fi
ac1cb8d3
VS
30687rm -f conftest.err conftest.$ac_objext \
30688 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30689fi
30690echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30691echo "${ECHO_T}$ac_cv_func_shmat" >&6
30692
30693 if test $ac_cv_func_shmat = no; then
30694 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30695echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
30696if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30697 echo $ECHO_N "(cached) $ECHO_C" >&6
30698else
30699 ac_check_lib_save_LIBS=$LIBS
30700LIBS="-lipc $LIBS"
30701cat >conftest.$ac_ext <<_ACEOF
30702/* confdefs.h. */
30703_ACEOF
30704cat confdefs.h >>conftest.$ac_ext
30705cat >>conftest.$ac_ext <<_ACEOF
30706/* end confdefs.h. */
30707
30708/* Override any gcc2 internal prototype to avoid an error. */
30709#ifdef __cplusplus
30710extern "C"
30711#endif
30712/* We use char because int might match the return type of a gcc2
30713 builtin and then its argument prototype would still apply. */
30714char shmat ();
30715int
30716main ()
30717{
30718shmat ();
30719 ;
30720 return 0;
30721}
30722_ACEOF
30723rm -f conftest.$ac_objext conftest$ac_exeext
30724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30725 (eval $ac_link) 2>conftest.er1
a848cd7e 30726 ac_status=$?
ac1cb8d3
VS
30727 grep -v '^ *+' conftest.er1 >conftest.err
30728 rm -f conftest.er1
30729 cat conftest.err >&5
a848cd7e
SC
30730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30731 (exit $ac_status); } &&
479c790c 30732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30734 (eval $ac_try) 2>&5
30735 ac_status=$?
30736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30737 (exit $ac_status); }; } &&
30738 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30740 (eval $ac_try) 2>&5
30741 ac_status=$?
30742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30743 (exit $ac_status); }; }; then
30744 ac_cv_lib_ipc_shmat=yes
30745else
30746 echo "$as_me: failed program was:" >&5
30747sed 's/^/| /' conftest.$ac_ext >&5
30748
30749ac_cv_lib_ipc_shmat=no
30750fi
ac1cb8d3
VS
30751rm -f conftest.err conftest.$ac_objext \
30752 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30753LIBS=$ac_check_lib_save_LIBS
30754fi
30755echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30756echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
30757if test $ac_cv_lib_ipc_shmat = yes; then
30758 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30759fi
30760
30761 fi
30762 fi
30763
30764 # Check for libraries that X11R6 Xt/Xaw programs need.
30765 ac_save_LDFLAGS=$LDFLAGS
30766 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30767 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30768 # check for ICE first), but we must link in the order -lSM -lICE or
30769 # we get undefined symbols. So assume we have SM if we have ICE.
30770 # These have to be linked with before -lX11, unlike the other
30771 # libraries we check for below, so use a different variable.
30772 # John Interrante, Karl Berry
30773 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30774echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
30775if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30776 echo $ECHO_N "(cached) $ECHO_C" >&6
30777else
30778 ac_check_lib_save_LIBS=$LIBS
30779LIBS="-lICE $X_EXTRA_LIBS $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 IceConnectionNumber ();
30794int
30795main ()
30796{
30797IceConnectionNumber ();
30798 ;
30799 return 0;
30800}
30801_ACEOF
30802rm -f conftest.$ac_objext conftest$ac_exeext
30803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30804 (eval $ac_link) 2>conftest.er1
a848cd7e 30805 ac_status=$?
ac1cb8d3
VS
30806 grep -v '^ *+' conftest.er1 >conftest.err
30807 rm -f conftest.er1
30808 cat conftest.err >&5
a848cd7e
SC
30809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30810 (exit $ac_status); } &&
479c790c 30811 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30813 (eval $ac_try) 2>&5
30814 ac_status=$?
30815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30816 (exit $ac_status); }; } &&
30817 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30819 (eval $ac_try) 2>&5
30820 ac_status=$?
30821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30822 (exit $ac_status); }; }; then
30823 ac_cv_lib_ICE_IceConnectionNumber=yes
30824else
30825 echo "$as_me: failed program was:" >&5
30826sed 's/^/| /' conftest.$ac_ext >&5
30827
30828ac_cv_lib_ICE_IceConnectionNumber=no
30829fi
ac1cb8d3
VS
30830rm -f conftest.err conftest.$ac_objext \
30831 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30832LIBS=$ac_check_lib_save_LIBS
30833fi
30834echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30835echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
30836if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30837 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30838fi
30839
30840 LDFLAGS=$ac_save_LDFLAGS
30841
30842fi
30843
30844
30845 if test "$no_x" = "yes"; then
89d90d6d
VZ
30846 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
30847echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
30848 { (exit 1); exit 1; }; }
a848cd7e
SC
30849 fi
30850
74b84332
VS
30851 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
30852 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
30853 AFMINSTALL=afminstall
30854 COMPILED_X_PROGRAM=0
30855
74b84332
VS
30856 fi
30857
30858 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
30859 if test "$wxUSE_NANOX" = "yes"; then
30860 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
30861echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
30862 if test "x$MICROWIN" = x ; then
30863 echo "$as_me:$LINENO: result: not found" >&5
30864echo "${ECHO_T}not found" >&6
30865 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
30866echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
30867 { (exit 1); exit 1; }; }
30868 else
30869 echo "$as_me:$LINENO: result: $MICROWIN" >&5
30870echo "${ECHO_T}$MICROWIN" >&6
30871 cat >>confdefs.h <<\_ACEOF
30872#define wxUSE_NANOX 1
30873_ACEOF
30874
30875 fi
30876 fi
30877
30878 if test "$wxUSE_UNICODE" = "yes"; then
30879
479c790c
VZ
30880
30881if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
30882 if test -n "$ac_tool_prefix"; then
30883 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30884set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30885echo "$as_me:$LINENO: checking for $ac_word" >&5
30886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30887if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30888 echo $ECHO_N "(cached) $ECHO_C" >&6
30889else
30890 case $PKG_CONFIG in
30891 [\\/]* | ?:[\\/]*)
30892 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30893 ;;
30894 *)
30895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30896for as_dir in $PATH
30897do
30898 IFS=$as_save_IFS
30899 test -z "$as_dir" && as_dir=.
30900 for ac_exec_ext in '' $ac_executable_extensions; do
30901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30902 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30904 break 2
30905 fi
30906done
30907done
30908
30909 ;;
30910esac
30911fi
30912PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30913
30914if test -n "$PKG_CONFIG"; then
30915 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30916echo "${ECHO_T}$PKG_CONFIG" >&6
30917else
30918 echo "$as_me:$LINENO: result: no" >&5
30919echo "${ECHO_T}no" >&6
30920fi
30921
30922fi
30923if test -z "$ac_cv_path_PKG_CONFIG"; then
30924 ac_pt_PKG_CONFIG=$PKG_CONFIG
30925 # Extract the first word of "pkg-config", so it can be a program name with args.
30926set dummy pkg-config; ac_word=$2
30927echo "$as_me:$LINENO: checking for $ac_word" >&5
30928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30929if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
30930 echo $ECHO_N "(cached) $ECHO_C" >&6
30931else
30932 case $ac_pt_PKG_CONFIG in
30933 [\\/]* | ?:[\\/]*)
30934 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
30935 ;;
30936 *)
30937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30938for as_dir in $PATH
30939do
30940 IFS=$as_save_IFS
30941 test -z "$as_dir" && as_dir=.
30942 for ac_exec_ext in '' $ac_executable_extensions; do
30943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30944 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30946 break 2
30947 fi
30948done
30949done
30950
30951 ;;
30952esac
30953fi
30954ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
30955
30956if test -n "$ac_pt_PKG_CONFIG"; then
30957 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
30958echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
30959else
30960 echo "$as_me:$LINENO: result: no" >&5
30961echo "${ECHO_T}no" >&6
30962fi
30963
30964 PKG_CONFIG=$ac_pt_PKG_CONFIG
30965else
30966 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
30967fi
30968
30969fi
30970if test -n "$PKG_CONFIG"; then
30971 _pkg_min_version=0.9.0
30972 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
30973echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
30974 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
30975 echo "$as_me:$LINENO: result: yes" >&5
30976echo "${ECHO_T}yes" >&6
30977 else
30978 echo "$as_me:$LINENO: result: no" >&5
30979echo "${ECHO_T}no" >&6
30980 PKG_CONFIG=""
30981 fi
30982
30983fi
30984
30985
3ecd9f92
MW
30986pkg_failed=no
30987echo "$as_me:$LINENO: checking for PANGOX" >&5
30988echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6
a848cd7e 30989
3ecd9f92
MW
30990if test -n "$PKG_CONFIG"; then
30991 if test -n "$PANGOX_CFLAGS"; then
30992 pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
30993 else
30994 if test -n "$PKG_CONFIG" && \
30995 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30996 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30997 ac_status=$?
30998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30999 (exit $ac_status); }; then
31000 pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
31001else
31002 pkg_failed=yes
31003fi
31004 fi
31005else
31006 pkg_failed=untried
31007fi
31008if test -n "$PKG_CONFIG"; then
31009 if test -n "$PANGOX_LIBS"; then
31010 pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
31011 else
31012 if test -n "$PKG_CONFIG" && \
31013 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31014 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31015 ac_status=$?
31016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31017 (exit $ac_status); }; then
31018 pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
31019else
31020 pkg_failed=yes
31021fi
31022 fi
31023else
31024 pkg_failed=untried
31025fi
31026
31027
31028
31029if test $pkg_failed = yes; then
31030
31031if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31032 _pkg_short_errors_supported=yes
31033else
31034 _pkg_short_errors_supported=no
31035fi
31036 if test $_pkg_short_errors_supported = yes; then
31037 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
31038 else
31039 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
a848cd7e 31040 fi
3ecd9f92
MW
31041 # Put the nasty error message in config.log where it belongs
31042 echo "$PANGOX_PKG_ERRORS" >&5
a848cd7e
SC
31043
31044
479c790c 31045 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
3ecd9f92
MW
31046echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31047 { (exit 1); exit 1; }; }
a848cd7e 31048
a848cd7e 31049
3ecd9f92 31050elif test $pkg_failed = untried; then
a848cd7e 31051
479c790c 31052 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
3ecd9f92
MW
31053echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31054 { (exit 1); exit 1; }; }
31055
31056
31057else
31058 PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
31059 PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
31060 echo "$as_me:$LINENO: result: yes" >&5
31061echo "${ECHO_T}yes" >&6
31062
479c790c
VZ
31063 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31064 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
3ecd9f92
MW
31065
31066fi
31067
31068pkg_failed=no
31069echo "$as_me:$LINENO: checking for PANGOFT2" >&5
31070echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6
31071
31072if test -n "$PKG_CONFIG"; then
31073 if test -n "$PANGOFT2_CFLAGS"; then
31074 pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
31075 else
31076 if test -n "$PKG_CONFIG" && \
31077 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31078 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31079 ac_status=$?
31080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31081 (exit $ac_status); }; then
31082 pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
31083else
31084 pkg_failed=yes
31085fi
31086 fi
31087else
31088 pkg_failed=untried
31089fi
31090if test -n "$PKG_CONFIG"; then
31091 if test -n "$PANGOFT2_LIBS"; then
31092 pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
31093 else
31094 if test -n "$PKG_CONFIG" && \
31095 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31096 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31097 ac_status=$?
31098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099 (exit $ac_status); }; then
31100 pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
31101else
31102 pkg_failed=yes
31103fi
31104 fi
31105else
31106 pkg_failed=untried
31107fi
31108
31109
31110
31111if test $pkg_failed = yes; then
31112
31113if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31114 _pkg_short_errors_supported=yes
31115else
31116 _pkg_short_errors_supported=no
31117fi
31118 if test $_pkg_short_errors_supported = yes; then
31119 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
31120 else
31121 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
31122 fi
31123 # Put the nasty error message in config.log where it belongs
31124 echo "$PANGOFT2_PKG_ERRORS" >&5
a848cd7e 31125
a848cd7e 31126
479c790c 31127 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
a848cd7e 31128echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
479c790c 31129 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e
SC
31130
31131
3ecd9f92 31132elif test $pkg_failed = untried; then
a848cd7e 31133
479c790c 31134 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
3ecd9f92 31135echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
479c790c 31136 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e 31137
a848cd7e 31138
a848cd7e 31139else
3ecd9f92
MW
31140 PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
31141 PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
31142 echo "$as_me:$LINENO: result: yes" >&5
31143echo "${ECHO_T}yes" >&6
31144
479c790c
VZ
31145 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
31146 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
a848cd7e 31147
a848cd7e 31148fi
3ecd9f92
MW
31149
31150pkg_failed=no
31151echo "$as_me:$LINENO: checking for PANGOXFT" >&5
31152echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6
a848cd7e
SC
31153
31154if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
31155 if test -n "$PANGOXFT_CFLAGS"; then
31156 pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
31157 else
31158 if test -n "$PKG_CONFIG" && \
31159 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31160 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31161 ac_status=$?
31162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31163 (exit $ac_status); }; then
31164 pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
a848cd7e 31165else
3ecd9f92
MW
31166 pkg_failed=yes
31167fi
31168 fi
31169else
31170 pkg_failed=untried
31171fi
31172if test -n "$PKG_CONFIG"; then
31173 if test -n "$PANGOXFT_LIBS"; then
31174 pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
31175 else
31176 if test -n "$PKG_CONFIG" && \
31177 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31178 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31179 ac_status=$?
31180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31181 (exit $ac_status); }; then
31182 pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
31183else
31184 pkg_failed=yes
31185fi
31186 fi
31187else
31188 pkg_failed=untried
a848cd7e
SC
31189fi
31190
a848cd7e 31191
a848cd7e 31192
3ecd9f92 31193if test $pkg_failed = yes; then
a848cd7e 31194
3ecd9f92
MW
31195if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31196 _pkg_short_errors_supported=yes
31197else
31198 _pkg_short_errors_supported=no
31199fi
31200 if test $_pkg_short_errors_supported = yes; then
31201 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
31202 else
31203 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
a848cd7e 31204 fi
3ecd9f92
MW
31205 # Put the nasty error message in config.log where it belongs
31206 echo "$PANGOXFT_PKG_ERRORS" >&5
a848cd7e
SC
31207
31208
479c790c 31209 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
3ecd9f92
MW
31210echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31211
a848cd7e 31212
3ecd9f92 31213elif test $pkg_failed = untried; then
a848cd7e 31214
479c790c 31215 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
3ecd9f92
MW
31216echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31217
31218
31219else
31220 PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
31221 PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
31222 echo "$as_me:$LINENO: result: yes" >&5
31223echo "${ECHO_T}yes" >&6
a848cd7e 31224
479c790c 31225 cat >>confdefs.h <<\_ACEOF
4ae1af05
MB
31226#define HAVE_PANGO_XFT 1
31227_ACEOF
31228
479c790c
VZ
31229 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
31230 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
a848cd7e 31231
3ecd9f92 31232fi
479c790c
VZ
31233 save_CXXFLAGS="$CXXFLAGS"
31234 save_LIBS="$LIBS"
31235 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31236 LIBS="$LIBS $PANGOX_LIBS"
304205f1
VS
31237
31238for ac_func in pango_font_family_is_monospace
31239do
31240as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31241echo "$as_me:$LINENO: checking for $ac_func" >&5
31242echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31243if eval "test \"\${$as_ac_var+set}\" = set"; then
31244 echo $ECHO_N "(cached) $ECHO_C" >&6
31245else
31246 cat >conftest.$ac_ext <<_ACEOF
31247/* confdefs.h. */
31248_ACEOF
31249cat confdefs.h >>conftest.$ac_ext
31250cat >>conftest.$ac_ext <<_ACEOF
31251/* end confdefs.h. */
31252/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31254#define $ac_func innocuous_$ac_func
31255
31256/* System header to define __stub macros and hopefully few prototypes,
31257 which can conflict with char $ac_func (); below.
31258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31259 <limits.h> exists even on freestanding compilers. */
31260
31261#ifdef __STDC__
31262# include <limits.h>
31263#else
31264# include <assert.h>
31265#endif
31266
31267#undef $ac_func
31268
31269/* Override any gcc2 internal prototype to avoid an error. */
31270#ifdef __cplusplus
31271extern "C"
31272{
31273#endif
31274/* We use char because int might match the return type of a gcc2
31275 builtin and then its argument prototype would still apply. */
31276char $ac_func ();
31277/* The GNU C library defines this for functions which it implements
31278 to always fail with ENOSYS. Some functions are actually named
31279 something starting with __ and the normal name is an alias. */
31280#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31281choke me
31282#else
31283char (*f) () = $ac_func;
31284#endif
31285#ifdef __cplusplus
31286}
31287#endif
31288
31289int
31290main ()
31291{
31292return f != $ac_func;
31293 ;
31294 return 0;
31295}
31296_ACEOF
31297rm -f conftest.$ac_objext conftest$ac_exeext
31298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31299 (eval $ac_link) 2>conftest.er1
31300 ac_status=$?
31301 grep -v '^ *+' conftest.er1 >conftest.err
31302 rm -f conftest.er1
31303 cat conftest.err >&5
31304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31305 (exit $ac_status); } &&
479c790c 31306 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
304205f1
VS
31307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31308 (eval $ac_try) 2>&5
31309 ac_status=$?
31310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31311 (exit $ac_status); }; } &&
31312 { ac_try='test -s conftest$ac_exeext'
31313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31314 (eval $ac_try) 2>&5
31315 ac_status=$?
31316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31317 (exit $ac_status); }; }; then
31318 eval "$as_ac_var=yes"
31319else
31320 echo "$as_me: failed program was:" >&5
31321sed 's/^/| /' conftest.$ac_ext >&5
31322
31323eval "$as_ac_var=no"
31324fi
31325rm -f conftest.err conftest.$ac_objext \
31326 conftest$ac_exeext conftest.$ac_ext
31327fi
31328echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31329echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31330if test `eval echo '${'$as_ac_var'}'` = yes; then
31331 cat >>confdefs.h <<_ACEOF
31332#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31333_ACEOF
31334
31335fi
31336done
31337
479c790c
VZ
31338 CXXFLAGS="$save_CXXFLAGS"
31339 LIBS="$save_LIBS"
a848cd7e
SC
31340 fi
31341
31342 wxUSE_UNIVERSAL="yes"
31343
31344 if test "$wxUSE_NANOX" = "yes"; then
31345 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31346 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"
31347 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31348 else
31349 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31350 fi
31351
a848cd7e
SC
31352 TOOLKIT=X11
31353 GUIDIST=X11_DIST
31354 fi
31355
31356 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
31357 if test "$wxUSE_UNICODE" = "yes"; then
31358 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
31359echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
31360 { (exit 1); exit 1; }; }
31361 fi
31362
74b84332
VS
31363 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31364echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 31365
74b84332
VS
31366ac_find_includes=
31367for ac_dir in $SEARCH_INCLUDE /usr/include;
31368 do
31369 if test -f "$ac_dir/Xm/Xm.h"; then
31370 ac_find_includes=$ac_dir
31371 break
31372 fi
31373 done
a848cd7e 31374
74b84332
VS
31375 if test "$ac_find_includes" != "" ; then
31376 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31377echo "${ECHO_T}found in $ac_find_includes" >&6
31378
31379 if test "x$ac_find_includes" = "x/usr/include"; then
31380 ac_path_to_include=""
31381 else
31382 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31383 result=$?
31384 if test $result = 0; then
31385 ac_path_to_include=""
31386 else
31387 ac_path_to_include=" -I$ac_find_includes"
31388 fi
a848cd7e
SC
31389 fi
31390
74b84332
VS
31391 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31392 else
e56f4f9e
VZ
31393 save_CXXFLAGS=$CXXFLAGS
31394 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
e051b34e 31395
74b84332 31396 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31397/* confdefs.h. */
31398_ACEOF
31399cat confdefs.h >>conftest.$ac_ext
31400cat >>conftest.$ac_ext <<_ACEOF
31401/* end confdefs.h. */
31402
74b84332
VS
31403 #include <Xm/Xm.h>
31404
a848cd7e
SC
31405int
31406main ()
31407{
31408
74b84332
VS
31409 int version;
31410 version = xmUseVersion;
31411
a848cd7e
SC
31412 ;
31413 return 0;
31414}
31415_ACEOF
74b84332
VS
31416rm -f conftest.$ac_objext
31417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31418 (eval $ac_compile) 2>conftest.er1
a848cd7e 31419 ac_status=$?
ac1cb8d3
VS
31420 grep -v '^ *+' conftest.er1 >conftest.err
31421 rm -f conftest.er1
31422 cat conftest.err >&5
a848cd7e
SC
31423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31424 (exit $ac_status); } &&
479c790c 31425 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31427 (eval $ac_try) 2>&5
31428 ac_status=$?
31429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31430 (exit $ac_status); }; } &&
74b84332 31431 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31433 (eval $ac_try) 2>&5
31434 ac_status=$?
31435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31436 (exit $ac_status); }; }; then
74b84332
VS
31437
31438 echo "$as_me:$LINENO: result: found in default search path" >&5
31439echo "${ECHO_T}found in default search path" >&6
31440 COMPILED_X_PROGRAM=1
31441
a848cd7e
SC
31442else
31443 echo "$as_me: failed program was:" >&5
31444sed 's/^/| /' conftest.$ac_ext >&5
31445
a848cd7e 31446
74b84332
VS
31447 echo "$as_me:$LINENO: result: no" >&5
31448echo "${ECHO_T}no" >&6
e051b34e
MW
31449 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31450echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 31451 { (exit 1); exit 1; }; }
a848cd7e 31452
a848cd7e 31453
a848cd7e 31454fi
74b84332 31455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 31456
e56f4f9e 31457 CXXFLAGS=$save_CXXFLAGS
74b84332
VS
31458 fi
31459
0ad5d837
VZ
31460
31461 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
31462echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
31463
0ad5d837
VZ
31464 ac_find_libraries=
31465 for ac_dir in $SEARCH_LIB;
74b84332 31466 do
3eca31dc 31467 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
31468 if test -f "$ac_dir/libXm.$ac_extension"; then
31469 ac_find_libraries=$ac_dir
31470 break 2
a848cd7e 31471 fi
74b84332
VS
31472 done
31473 done
a848cd7e 31474
0ad5d837
VZ
31475
31476 if test "x$ac_find_libraries" != "x" ; then
31477 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31478echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 31479
74b84332 31480
0ad5d837 31481 if test "$ac_find_libraries" = "default location"; then
74b84332 31482 ac_path_to_link=""
a848cd7e 31483 else
0ad5d837
VZ
31484 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31485 result=$?
31486 if test $result = 0; then
31487 ac_path_to_link=""
31488 else
31489 ac_path_to_link=" -L$ac_find_libraries"
31490 fi
74b84332
VS
31491 fi
31492
0ad5d837
VZ
31493 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31494 else
e56f4f9e
VZ
31495 save_CXXFLAGS=$CXXFLAGS
31496 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
6f9cf1e6
MW
31497 save_LIBS="$LIBS"
31498 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 31499
0ad5d837 31500 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31501/* confdefs.h. */
31502_ACEOF
31503cat confdefs.h >>conftest.$ac_ext
31504cat >>conftest.$ac_ext <<_ACEOF
31505/* end confdefs.h. */
31506
0ad5d837 31507 #include <Xm/Xm.h>
74b84332 31508
a848cd7e
SC
31509int
31510main ()
31511{
74b84332 31512
0ad5d837
VZ
31513 int version;
31514 version = xmUseVersion;
74b84332 31515
a848cd7e
SC
31516 ;
31517 return 0;
31518}
31519_ACEOF
0ad5d837
VZ
31520rm -f conftest.$ac_objext conftest$ac_exeext
31521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31522 (eval $ac_link) 2>conftest.er1
a848cd7e 31523 ac_status=$?
ac1cb8d3
VS
31524 grep -v '^ *+' conftest.er1 >conftest.err
31525 rm -f conftest.er1
31526 cat conftest.err >&5
a848cd7e
SC
31527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31528 (exit $ac_status); } &&
479c790c 31529 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31531 (eval $ac_try) 2>&5
31532 ac_status=$?
31533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534 (exit $ac_status); }; } &&
0ad5d837 31535 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31537 (eval $ac_try) 2>&5
31538 ac_status=$?
31539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31540 (exit $ac_status); }; }; then
74b84332 31541
0ad5d837 31542 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 31543echo "${ECHO_T}found in default search path" >&6
0ad5d837 31544 COMPILED_X_PROGRAM=1
74b84332 31545
a848cd7e
SC
31546else
31547 echo "$as_me: failed program was:" >&5
31548sed 's/^/| /' conftest.$ac_ext >&5
31549
74b84332 31550
6f9cf1e6 31551 echo "$as_me:$LINENO: result: no" >&5
74b84332 31552echo "${ECHO_T}no" >&6
6f9cf1e6 31553 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
31554echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
31555 { (exit 1); exit 1; }; }
31556
31557
31558fi
0ad5d837
VZ
31559rm -f conftest.err conftest.$ac_objext \
31560 conftest$ac_exeext conftest.$ac_ext
74b84332 31561
e56f4f9e 31562 CXXFLAGS=$save_CXXFLAGS
6f9cf1e6 31563 LIBS="$save_LIBS"
74b84332
VS
31564 fi
31565
31566 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
31567echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
31568 libp_link=""
31569 libsm_ice_link=""
31570 libs_found=0
31571 for libp in "" " -lXp"; do
31572 if test "$libs_found" = "0"; then
31573 for libsm_ice in "" " -lSM -lICE"; do
31574 if test "$libs_found" = "0"; then
31575 save_LIBS="$LIBS"
31576 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
e56f4f9e
VZ
31577 save_CXXFLAGS=$CXXFLAGS
31578 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
74b84332
VS
31579
31580 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31581/* confdefs.h. */
31582_ACEOF
31583cat confdefs.h >>conftest.$ac_ext
31584cat >>conftest.$ac_ext <<_ACEOF
31585/* end confdefs.h. */
31586
74b84332
VS
31587 #include <Xm/Xm.h>
31588 #include <Xm/List.h>
31589
a848cd7e
SC
31590int
31591main ()
31592{
74b84332
VS
31593
31594 XmString string = NULL;
31595 Widget w = NULL;
31596 int position = 0;
31597 XmListAddItem(w, string, position);
31598
a848cd7e
SC
31599 ;
31600 return 0;
31601}
31602_ACEOF
31603rm -f conftest.$ac_objext conftest$ac_exeext
31604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31605 (eval $ac_link) 2>conftest.er1
a848cd7e 31606 ac_status=$?
ac1cb8d3
VS
31607 grep -v '^ *+' conftest.er1 >conftest.err
31608 rm -f conftest.er1
31609 cat conftest.err >&5
a848cd7e
SC
31610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31611 (exit $ac_status); } &&
479c790c 31612 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31614 (eval $ac_try) 2>&5
31615 ac_status=$?
31616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31617 (exit $ac_status); }; } &&
31618 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31620 (eval $ac_try) 2>&5
31621 ac_status=$?
31622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31623 (exit $ac_status); }; }; then
31624
31625 libp_link="$libp"
31626 libsm_ice_link="$libsm_ice"
31627 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
31628echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
31629 libs_found=1
31630
31631else
31632 echo "$as_me: failed program was:" >&5
31633sed 's/^/| /' conftest.$ac_ext >&5
31634
31635
31636
31637fi
ac1cb8d3
VS
31638rm -f conftest.err conftest.$ac_objext \
31639 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31640
31641 LIBS="$save_LIBS"
e56f4f9e 31642 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
31643 fi
31644 done
31645 fi
31646 done
31647
31648 if test "$libs_found" = "0"; then
31649 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
31650echo "${ECHO_T}can't find the right libraries" >&6
31651 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
31652echo "$as_me: error: can't link a simple motif program" >&2;}
31653 { (exit 1); exit 1; }; }
31654 fi
31655
62fa8b3a
MW
31656 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
31657echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
31658if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
31659 echo $ECHO_N "(cached) $ECHO_C" >&6
31660else
31661 ac_check_lib_save_LIBS=$LIBS
31662LIBS="-lSgm $LIBS"
31663cat >conftest.$ac_ext <<_ACEOF
31664/* confdefs.h. */
31665_ACEOF
31666cat confdefs.h >>conftest.$ac_ext
31667cat >>conftest.$ac_ext <<_ACEOF
31668/* end confdefs.h. */
31669
31670/* Override any gcc2 internal prototype to avoid an error. */
31671#ifdef __cplusplus
31672extern "C"
31673#endif
31674/* We use char because int might match the return type of a gcc2
31675 builtin and then its argument prototype would still apply. */
31676char SgCreateList ();
31677int
31678main ()
31679{
31680SgCreateList ();
31681 ;
31682 return 0;
31683}
31684_ACEOF
31685rm -f conftest.$ac_objext conftest$ac_exeext
31686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31687 (eval $ac_link) 2>conftest.er1
31688 ac_status=$?
31689 grep -v '^ *+' conftest.er1 >conftest.err
31690 rm -f conftest.er1
31691 cat conftest.err >&5
31692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31693 (exit $ac_status); } &&
479c790c 31694 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
31695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31696 (eval $ac_try) 2>&5
31697 ac_status=$?
31698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31699 (exit $ac_status); }; } &&
31700 { ac_try='test -s conftest$ac_exeext'
31701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31702 (eval $ac_try) 2>&5
31703 ac_status=$?
31704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31705 (exit $ac_status); }; }; then
31706 ac_cv_lib_Sgm_SgCreateList=yes
31707else
31708 echo "$as_me: failed program was:" >&5
31709sed 's/^/| /' conftest.$ac_ext >&5
31710
31711ac_cv_lib_Sgm_SgCreateList=no
31712fi
31713rm -f conftest.err conftest.$ac_objext \
31714 conftest$ac_exeext conftest.$ac_ext
31715LIBS=$ac_check_lib_save_LIBS
31716fi
31717echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
31718echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
31719if test $ac_cv_lib_Sgm_SgCreateList = yes; then
31720 libsgm_link=" -lSgm"
31721fi
31722
31723
e56f4f9e
VZ
31724 save_CXXFLAGS=$CXXFLAGS
31725 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
0ad5d837 31726
a848cd7e
SC
31727 echo "$as_me:$LINENO: checking for Motif 2" >&5
31728echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
31729if test "${wx_cv_lib_motif2+set}" = set; then
31730 echo $ECHO_N "(cached) $ECHO_C" >&6
31731else
31732 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31733/* confdefs.h. */
31734_ACEOF
31735cat confdefs.h >>conftest.$ac_ext
31736cat >>conftest.$ac_ext <<_ACEOF
31737/* end confdefs.h. */
31738
0ad5d837 31739 #include <Xm/Xm.h>
a848cd7e
SC
31740
31741int
31742main ()
31743{
31744
0ad5d837
VZ
31745 #if XmVersion < 2000
31746 Not Motif 2
31747 #endif
a848cd7e
SC
31748
31749 ;
31750 return 0;
31751}
31752_ACEOF
31753rm -f conftest.$ac_objext
31754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31755 (eval $ac_compile) 2>conftest.er1
a848cd7e 31756 ac_status=$?
ac1cb8d3
VS
31757 grep -v '^ *+' conftest.er1 >conftest.err
31758 rm -f conftest.er1
31759 cat conftest.err >&5
a848cd7e
SC
31760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31761 (exit $ac_status); } &&
479c790c 31762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31764 (eval $ac_try) 2>&5
31765 ac_status=$?
31766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31767 (exit $ac_status); }; } &&
31768 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31770 (eval $ac_try) 2>&5
31771 ac_status=$?
31772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31773 (exit $ac_status); }; }; then
0ad5d837 31774 wx_cv_lib_motif2="yes"
a848cd7e
SC
31775else
31776 echo "$as_me: failed program was:" >&5
31777sed 's/^/| /' conftest.$ac_ext >&5
31778
0ad5d837
VZ
31779wx_cv_lib_motif2="no"
31780fi
31781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31782fi
31783echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
31784echo "${ECHO_T}$wx_cv_lib_motif2" >&6
31785 if test "$wx_cv_lib_motif2" = "yes"; then
31786 cat >>confdefs.h <<\_ACEOF
31787#define __WXMOTIF20__ 1
31788_ACEOF
a848cd7e 31789
0ad5d837
VZ
31790 else
31791 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
31792#define __WXMOTIF20__ 0
31793_ACEOF
31794
0ad5d837 31795 fi
2113bc77
MW
31796
31797 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
31798echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
31799if test "${wx_cv_lib_lesstif+set}" = set; then
31800 echo $ECHO_N "(cached) $ECHO_C" >&6
31801else
31802 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
31803/* confdefs.h. */
31804_ACEOF
31805cat confdefs.h >>conftest.$ac_ext
31806cat >>conftest.$ac_ext <<_ACEOF
31807/* end confdefs.h. */
31808
0ad5d837 31809 #include <Xm/Xm.h>
2113bc77
MW
31810
31811int
31812main ()
31813{
31814
0ad5d837
VZ
31815 #if !defined(LesstifVersion) || LesstifVersion <= 0
31816 Not Lesstif
31817 #endif
2113bc77
MW
31818
31819 ;
31820 return 0;
31821}
31822_ACEOF
31823rm -f conftest.$ac_objext
31824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31825 (eval $ac_compile) 2>conftest.er1
31826 ac_status=$?
31827 grep -v '^ *+' conftest.er1 >conftest.err
31828 rm -f conftest.er1
31829 cat conftest.err >&5
31830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31831 (exit $ac_status); } &&
479c790c 31832 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2113bc77
MW
31833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31834 (eval $ac_try) 2>&5
31835 ac_status=$?
31836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31837 (exit $ac_status); }; } &&
31838 { ac_try='test -s conftest.$ac_objext'
31839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31840 (eval $ac_try) 2>&5
31841 ac_status=$?
31842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31843 (exit $ac_status); }; }; then
0ad5d837 31844 wx_cv_lib_lesstif="yes"
2113bc77
MW
31845else
31846 echo "$as_me: failed program was:" >&5
31847sed 's/^/| /' conftest.$ac_ext >&5
31848
0ad5d837
VZ
31849wx_cv_lib_lesstif="no"
31850fi
31851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 31852
0ad5d837
VZ
31853fi
31854echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
31855echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
31856 if test "$wx_cv_lib_lesstif" = "yes"; then
31857 cat >>confdefs.h <<\_ACEOF
31858#define __WXLESSTIF__ 1
31859_ACEOF
31860
31861 else
31862 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
31863#define __WXLESSTIF__ 0
31864_ACEOF
31865
0ad5d837 31866 fi
2113bc77 31867
e56f4f9e 31868 CXXFLAGS=$save_CXXFLAGS
a848cd7e 31869
62fa8b3a 31870 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
31871 TOOLKIT=MOTIF
31872 GUIDIST=MOTIF_DIST
31873 fi
31874
74b84332 31875 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
31876 if test "$wxUSE_LIBXPM" = "sys"; then
31877 echo "$as_me:$LINENO: checking for Xpm library" >&5
31878echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
31879
0ad5d837
VZ
31880 ac_find_libraries=
31881 for ac_dir in $SEARCH_LIB;
a848cd7e 31882 do
3eca31dc 31883 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31884 if test -f "$ac_dir/libXpm.$ac_extension"; then
31885 ac_find_libraries=$ac_dir
31886 break 2
31887 fi
31888 done
31889 done
31890
31891 if test "$ac_find_libraries" != "" ; then
31892
0ad5d837 31893 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31894 ac_path_to_link=""
31895 else
0ad5d837
VZ
31896 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31897 result=$?
31898 if test $result = 0; then
31899 ac_path_to_link=""
31900 else
31901 ac_path_to_link=" -L$ac_find_libraries"
31902 fi
a848cd7e
SC
31903 fi
31904
31905 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
31906 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31907echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
31908
31909 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
31910echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
31911if test "${wx_cv_x11_xpm_h+set}" = set; then
31912 echo $ECHO_N "(cached) $ECHO_C" >&6
31913else
31914
e56f4f9e
VZ
31915 save_CXXFLAGS=$CXXFLAGS
31916 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
31917
31918 cat >conftest.$ac_ext <<_ACEOF
31919/* confdefs.h. */
31920_ACEOF
31921cat confdefs.h >>conftest.$ac_ext
31922cat >>conftest.$ac_ext <<_ACEOF
31923/* end confdefs.h. */
31924
31925 #include <X11/xpm.h>
31926
31927int
31928main ()
31929{
31930
31931 int version;
31932 version = XpmLibraryVersion();
31933
31934 ;
31935 return 0;
31936}
31937_ACEOF
31938rm -f conftest.$ac_objext
31939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31940 (eval $ac_compile) 2>conftest.er1
a848cd7e 31941 ac_status=$?
ac1cb8d3
VS
31942 grep -v '^ *+' conftest.er1 >conftest.err
31943 rm -f conftest.er1
31944 cat conftest.err >&5
a848cd7e
SC
31945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946 (exit $ac_status); } &&
479c790c 31947 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31949 (eval $ac_try) 2>&5
31950 ac_status=$?
31951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31952 (exit $ac_status); }; } &&
31953 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31955 (eval $ac_try) 2>&5
31956 ac_status=$?
31957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31958 (exit $ac_status); }; }; then
31959 wx_cv_x11_xpm_h=yes
31960else
31961 echo "$as_me: failed program was:" >&5
31962sed 's/^/| /' conftest.$ac_ext >&5
31963
31964wx_cv_x11_xpm_h=no
31965
31966fi
ac1cb8d3 31967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 31968
e56f4f9e 31969 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
31970
31971
31972fi
31973echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
31974echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
31975
31976 if test $wx_cv_x11_xpm_h = "yes"; then
31977 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
31978 cat >>confdefs.h <<\_ACEOF
31979#define wxHAVE_LIB_XPM 1
31980_ACEOF
31981
31982 else
31983 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
31984echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
31985 fi
31986 fi
31987
31988 fi
31989
31990 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
31991echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
31992if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
31993 echo $ECHO_N "(cached) $ECHO_C" >&6
31994else
31995 ac_check_lib_save_LIBS=$LIBS
31996LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
31997cat >conftest.$ac_ext <<_ACEOF
31998/* confdefs.h. */
31999_ACEOF
32000cat confdefs.h >>conftest.$ac_ext
32001cat >>conftest.$ac_ext <<_ACEOF
32002/* end confdefs.h. */
32003
32004/* Override any gcc2 internal prototype to avoid an error. */
32005#ifdef __cplusplus
32006extern "C"
32007#endif
32008/* We use char because int might match the return type of a gcc2
32009 builtin and then its argument prototype would still apply. */
32010char XShapeQueryExtension ();
32011int
32012main ()
32013{
32014XShapeQueryExtension ();
32015 ;
32016 return 0;
32017}
32018_ACEOF
32019rm -f conftest.$ac_objext conftest$ac_exeext
32020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32021 (eval $ac_link) 2>conftest.er1
a848cd7e 32022 ac_status=$?
ac1cb8d3
VS
32023 grep -v '^ *+' conftest.er1 >conftest.err
32024 rm -f conftest.er1
32025 cat conftest.err >&5
a848cd7e
SC
32026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32027 (exit $ac_status); } &&
479c790c 32028 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32030 (eval $ac_try) 2>&5
32031 ac_status=$?
32032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32033 (exit $ac_status); }; } &&
32034 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32036 (eval $ac_try) 2>&5
32037 ac_status=$?
32038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32039 (exit $ac_status); }; }; then
32040 ac_cv_lib_Xext_XShapeQueryExtension=yes
32041else
32042 echo "$as_me: failed program was:" >&5
32043sed 's/^/| /' conftest.$ac_ext >&5
32044
32045ac_cv_lib_Xext_XShapeQueryExtension=no
32046fi
ac1cb8d3
VS
32047rm -f conftest.err conftest.$ac_objext \
32048 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32049LIBS=$ac_check_lib_save_LIBS
32050fi
32051echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
32052echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
32053if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
32054
32055 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
32056 wxHAVE_XEXT_LIB=1
32057
32058fi
32059
32060
32061 if test "$wxHAVE_XEXT_LIB" = 1; then
e56f4f9e
VZ
32062 save_CXXFLAGS="$CXXFLAGS"
32063 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
32064
32065 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
32066echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
32067 cat >conftest.$ac_ext <<_ACEOF
32068/* confdefs.h. */
32069_ACEOF
32070cat confdefs.h >>conftest.$ac_ext
32071cat >>conftest.$ac_ext <<_ACEOF
32072/* end confdefs.h. */
32073
32074 #include <X11/Xlib.h>
32075 #include <X11/extensions/shape.h>
32076
32077int
32078main ()
32079{
32080
32081 int dummy1, dummy2;
32082 XShapeQueryExtension((Display*)NULL,
32083 (int*)NULL, (int*)NULL);
32084
32085 ;
32086 return 0;
32087}
32088_ACEOF
32089rm -f conftest.$ac_objext
32090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32091 (eval $ac_compile) 2>conftest.er1
a848cd7e 32092 ac_status=$?
ac1cb8d3
VS
32093 grep -v '^ *+' conftest.er1 >conftest.err
32094 rm -f conftest.er1
32095 cat conftest.err >&5
a848cd7e
SC
32096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32097 (exit $ac_status); } &&
479c790c 32098 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32100 (eval $ac_try) 2>&5
32101 ac_status=$?
32102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32103 (exit $ac_status); }; } &&
32104 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32106 (eval $ac_try) 2>&5
32107 ac_status=$?
32108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32109 (exit $ac_status); }; }; then
32110
32111 cat >>confdefs.h <<\_ACEOF
32112#define HAVE_XSHAPE 1
32113_ACEOF
32114
32115 echo "$as_me:$LINENO: result: found" >&5
32116echo "${ECHO_T}found" >&6
32117
32118else
32119 echo "$as_me: failed program was:" >&5
32120sed 's/^/| /' conftest.$ac_ext >&5
32121
32122
32123 echo "$as_me:$LINENO: result: not found" >&5
32124echo "${ECHO_T}not found" >&6
32125
32126fi
ac1cb8d3 32127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e56f4f9e 32128 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
32129
32130 fi
32131 fi
32132
32133 if test "$wxUSE_MAC" = 1; then
32134 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
32135echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
32136 if test "$GCC" = yes; then
32137 echo "$as_me:$LINENO: result: gcc" >&5
32138echo "${ECHO_T}gcc" >&6
32139 CPPFLAGS_PASCAL="-fpascal-strings"
32140 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
32141 echo "$as_me:$LINENO: result: xlc" >&5
32142echo "${ECHO_T}xlc" >&6
32143 CPPFLAGS_PASCAL="-qmacpstr"
32144 else
32145 echo "$as_me:$LINENO: result: none" >&5
32146echo "${ECHO_T}none" >&6
32147 fi
32148
1e9e8aba 32149 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 32150 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 32151 else
c92ad099 32152 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 32153 fi
a848cd7e 32154
a848cd7e
SC
32155 TOOLKIT=MAC
32156 GUIDIST=MACX_DIST
dd21ced8 32157 WXBASEPORT="_carbon"
a848cd7e
SC
32158 fi
32159
32160 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
32161 TOOLKIT=COCOA
32162 GUIDIST=COCOA_DIST
32163 fi
32164
32165 if test "$wxUSE_PM" = 1; then
32166 TOOLKIT=PM
de59c161
RD
32167 GUIDIST=PM_DIST
32168 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
32169echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
32170if test "${wx_cv_spbcdata+set}" = set; then
32171 echo $ECHO_N "(cached) $ECHO_C" >&6
32172else
32173
32174 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
32175/* confdefs.h. */
32176_ACEOF
32177cat confdefs.h >>conftest.$ac_ext
32178cat >>conftest.$ac_ext <<_ACEOF
32179/* end confdefs.h. */
32180
32181 #define INCL_PM
32182 #include <os2.h>
32183
32184int
32185main ()
32186{
32187
32188 SPBCDATA test;
32189
32190 ;
32191 return 0;
32192}
32193_ACEOF
32194rm -f conftest.$ac_objext
32195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32196 (eval $ac_compile) 2>conftest.er1
de59c161 32197 ac_status=$?
ac1cb8d3
VS
32198 grep -v '^ *+' conftest.er1 >conftest.err
32199 rm -f conftest.er1
32200 cat conftest.err >&5
de59c161
RD
32201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32202 (exit $ac_status); } &&
479c790c 32203 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32205 (eval $ac_try) 2>&5
32206 ac_status=$?
32207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32208 (exit $ac_status); }; } &&
32209 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
32210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32211 (eval $ac_try) 2>&5
32212 ac_status=$?
32213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32214 (exit $ac_status); }; }; then
32215 wx_cv_spbcdata=yes
32216else
32217 echo "$as_me: failed program was:" >&5
32218sed 's/^/| /' conftest.$ac_ext >&5
32219
32220wx_cv_spbcdata=no
32221
32222fi
ac1cb8d3 32223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
32224
32225
32226fi
32227echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
32228echo "${ECHO_T}$wx_cv_spbcdata" >&6
32229
32230 if test $wx_cv_spbcdata = "yes"; then
32231 cat >>confdefs.h <<\_ACEOF
32232#define HAVE_SPBCDATA 1
32233_ACEOF
32234
32235 fi
a848cd7e
SC
32236 fi
32237
32238 if test "$TOOLKIT" = "PM" ; then
32239 TOOLKIT_DIR="os2"
32240 else
32241 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
32242 fi
32243
a848cd7e 32244 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
32245 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
32246 WIDGET_SET=univ
a848cd7e
SC
32247 fi
32248
32249 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
32250 DISTDIR="wx\$(TOOLKIT)"
32251else
32252 USE_GUI=0
32253
32254 TOOLKIT_DIR="base"
32255
32256 if test "$USE_WIN32" = 1 ; then
a848cd7e 32257 TOOLKIT="MSW"
a848cd7e
SC
32258 fi
32259
a848cd7e
SC
32260 GUIDIST="BASE_DIST"
32261 DISTDIR="wxBase"
32262fi
32263
32264
d12aef51
VZ
32265if test "$wxUSE_GUI" = "yes"; then
32266 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32267
32268for ac_header in X11/Xlib.h
32269do
32270as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32271if eval "test \"\${$as_ac_Header+set}\" = set"; then
32272 echo "$as_me:$LINENO: checking for $ac_header" >&5
32273echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32274if eval "test \"\${$as_ac_Header+set}\" = set"; then
32275 echo $ECHO_N "(cached) $ECHO_C" >&6
32276fi
32277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32278echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32279else
32280 # Is the header compilable?
32281echo "$as_me:$LINENO: checking $ac_header usability" >&5
32282echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32283cat >conftest.$ac_ext <<_ACEOF
32284/* confdefs.h. */
32285_ACEOF
32286cat confdefs.h >>conftest.$ac_ext
32287cat >>conftest.$ac_ext <<_ACEOF
32288/* end confdefs.h. */
32289$ac_includes_default
32290#include <$ac_header>
32291_ACEOF
32292rm -f conftest.$ac_objext
32293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32294 (eval $ac_compile) 2>conftest.er1
32295 ac_status=$?
32296 grep -v '^ *+' conftest.er1 >conftest.err
32297 rm -f conftest.er1
32298 cat conftest.err >&5
32299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32300 (exit $ac_status); } &&
479c790c 32301 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
32302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32303 (eval $ac_try) 2>&5
32304 ac_status=$?
32305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32306 (exit $ac_status); }; } &&
32307 { ac_try='test -s conftest.$ac_objext'
32308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32309 (eval $ac_try) 2>&5
32310 ac_status=$?
32311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312 (exit $ac_status); }; }; then
32313 ac_header_compiler=yes
32314else
32315 echo "$as_me: failed program was:" >&5
32316sed 's/^/| /' conftest.$ac_ext >&5
32317
32318ac_header_compiler=no
32319fi
32320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32321echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32322echo "${ECHO_T}$ac_header_compiler" >&6
32323
32324# Is the header present?
32325echo "$as_me:$LINENO: checking $ac_header presence" >&5
32326echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32327cat >conftest.$ac_ext <<_ACEOF
32328/* confdefs.h. */
32329_ACEOF
32330cat confdefs.h >>conftest.$ac_ext
32331cat >>conftest.$ac_ext <<_ACEOF
32332/* end confdefs.h. */
32333#include <$ac_header>
32334_ACEOF
32335if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32337 ac_status=$?
32338 grep -v '^ *+' conftest.er1 >conftest.err
32339 rm -f conftest.er1
32340 cat conftest.err >&5
32341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32342 (exit $ac_status); } >/dev/null; then
32343 if test -s conftest.err; then
5d7b7554
VZ
32344 ac_cpp_err=$ac_cxx_preproc_warn_flag
32345 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
d12aef51
VZ
32346 else
32347 ac_cpp_err=
32348 fi
32349else
32350 ac_cpp_err=yes
32351fi
32352if test -z "$ac_cpp_err"; then
32353 ac_header_preproc=yes
32354else
32355 echo "$as_me: failed program was:" >&5
32356sed 's/^/| /' conftest.$ac_ext >&5
32357
32358 ac_header_preproc=no
32359fi
32360rm -f conftest.err conftest.$ac_ext
32361echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32362echo "${ECHO_T}$ac_header_preproc" >&6
32363
32364# So? What about this header?
5d7b7554 32365case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
d12aef51
VZ
32366 yes:no: )
32367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32368echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32370echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32371 ac_header_preproc=yes
32372 ;;
32373 no:yes:* )
32374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32375echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32377echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32379echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32381echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32383echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32385echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32386 (
32387 cat <<\_ASBOX
32388## ----------------------------------------- ##
32389## Report this to wx-dev@lists.wxwidgets.org ##
32390## ----------------------------------------- ##
32391_ASBOX
32392 ) |
32393 sed "s/^/$as_me: WARNING: /" >&2
32394 ;;
32395esac
32396echo "$as_me:$LINENO: checking for $ac_header" >&5
32397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32398if eval "test \"\${$as_ac_Header+set}\" = set"; then
32399 echo $ECHO_N "(cached) $ECHO_C" >&6
32400else
32401 eval "$as_ac_Header=\$ac_header_preproc"
32402fi
32403echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32404echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32405
32406fi
32407if test `eval echo '${'$as_ac_Header'}'` = yes; then
32408 cat >>confdefs.h <<_ACEOF
32409#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32410_ACEOF
32411
32412fi
32413
32414done
32415
32416
32417for ac_header in X11/XKBlib.h
32418do
32419as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32420echo "$as_me:$LINENO: checking for $ac_header" >&5
32421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32422if eval "test \"\${$as_ac_Header+set}\" = set"; then
32423 echo $ECHO_N "(cached) $ECHO_C" >&6
32424else
32425 cat >conftest.$ac_ext <<_ACEOF
32426/* confdefs.h. */
32427_ACEOF
32428cat confdefs.h >>conftest.$ac_ext
32429cat >>conftest.$ac_ext <<_ACEOF
32430/* end confdefs.h. */
32431
32432 #if HAVE_X11_XLIB_H
32433 #include <X11/Xlib.h>
32434 #endif
32435
32436
32437#include <$ac_header>
32438_ACEOF
32439rm -f conftest.$ac_objext
32440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32441 (eval $ac_compile) 2>conftest.er1
32442 ac_status=$?
32443 grep -v '^ *+' conftest.er1 >conftest.err
32444 rm -f conftest.er1
32445 cat conftest.err >&5
32446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32447 (exit $ac_status); } &&
479c790c 32448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
32449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32450 (eval $ac_try) 2>&5
32451 ac_status=$?
32452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32453 (exit $ac_status); }; } &&
32454 { ac_try='test -s conftest.$ac_objext'
32455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32456 (eval $ac_try) 2>&5
32457 ac_status=$?
32458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32459 (exit $ac_status); }; }; then
32460 eval "$as_ac_Header=yes"
32461else
32462 echo "$as_me: failed program was:" >&5
32463sed 's/^/| /' conftest.$ac_ext >&5
32464
32465eval "$as_ac_Header=no"
32466fi
32467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32468fi
32469echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32470echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32471if test `eval echo '${'$as_ac_Header'}'` = yes; then
32472 cat >>confdefs.h <<_ACEOF
32473#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32474_ACEOF
32475
32476fi
32477
32478done
32479
32480 fi
32481fi
32482
a848cd7e
SC
32483
32484
32485IODBC_C_SRC=""
32486
32487
32488if test "$TOOLKIT" != "MSW" ; then
32489
32490 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
32491
32492 if test "${ac_cv_header_sql_h+set}" = set; then
32493 echo "$as_me:$LINENO: checking for sql.h" >&5
32494echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32495if test "${ac_cv_header_sql_h+set}" = set; then
32496 echo $ECHO_N "(cached) $ECHO_C" >&6
32497fi
32498echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32499echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32500else
32501 # Is the header compilable?
32502echo "$as_me:$LINENO: checking sql.h usability" >&5
32503echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
32504cat >conftest.$ac_ext <<_ACEOF
32505/* confdefs.h. */
32506_ACEOF
32507cat confdefs.h >>conftest.$ac_ext
32508cat >>conftest.$ac_ext <<_ACEOF
32509/* end confdefs.h. */
32510$ac_includes_default
32511#include <sql.h>
32512_ACEOF
32513rm -f conftest.$ac_objext
32514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32515 (eval $ac_compile) 2>conftest.er1
a848cd7e 32516 ac_status=$?
ac1cb8d3
VS
32517 grep -v '^ *+' conftest.er1 >conftest.err
32518 rm -f conftest.er1
32519 cat conftest.err >&5
a848cd7e
SC
32520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32521 (exit $ac_status); } &&
479c790c 32522 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32524 (eval $ac_try) 2>&5
32525 ac_status=$?
32526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32527 (exit $ac_status); }; } &&
32528 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32530 (eval $ac_try) 2>&5
32531 ac_status=$?
32532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32533 (exit $ac_status); }; }; then
32534 ac_header_compiler=yes
32535else
32536 echo "$as_me: failed program was:" >&5
32537sed 's/^/| /' conftest.$ac_ext >&5
32538
32539ac_header_compiler=no
32540fi
ac1cb8d3 32541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32542echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32543echo "${ECHO_T}$ac_header_compiler" >&6
32544
32545# Is the header present?
32546echo "$as_me:$LINENO: checking sql.h presence" >&5
32547echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
32548cat >conftest.$ac_ext <<_ACEOF
32549/* confdefs.h. */
32550_ACEOF
32551cat confdefs.h >>conftest.$ac_ext
32552cat >>conftest.$ac_ext <<_ACEOF
32553/* end confdefs.h. */
32554#include <sql.h>
32555_ACEOF
32556if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32558 ac_status=$?
32559 grep -v '^ *+' conftest.er1 >conftest.err
32560 rm -f conftest.er1
32561 cat conftest.err >&5
32562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32563 (exit $ac_status); } >/dev/null; then
32564 if test -s conftest.err; then
5d7b7554
VZ
32565 ac_cpp_err=$ac_cxx_preproc_warn_flag
32566 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
32567 else
32568 ac_cpp_err=
32569 fi
32570else
32571 ac_cpp_err=yes
32572fi
32573if test -z "$ac_cpp_err"; then
32574 ac_header_preproc=yes
32575else
32576 echo "$as_me: failed program was:" >&5
32577sed 's/^/| /' conftest.$ac_ext >&5
32578
32579 ac_header_preproc=no
32580fi
32581rm -f conftest.err conftest.$ac_ext
32582echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32583echo "${ECHO_T}$ac_header_preproc" >&6
32584
32585# So? What about this header?
5d7b7554 32586case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 32587 yes:no: )
a848cd7e
SC
32588 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
32589echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32590 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
32591echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
32592 ac_header_preproc=yes
a848cd7e 32593 ;;
ac1cb8d3 32594 no:yes:* )
a848cd7e
SC
32595 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
32596echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32597 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
32598echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
32599 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
32600echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
32601 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
32602echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32603 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
32604echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32605 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
32606echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32607 (
32608 cat <<\_ASBOX
ac1cb8d3
VS
32609## ----------------------------------------- ##
32610## Report this to wx-dev@lists.wxwidgets.org ##
32611## ----------------------------------------- ##
a848cd7e
SC
32612_ASBOX
32613 ) |
32614 sed "s/^/$as_me: WARNING: /" >&2
32615 ;;
32616esac
32617echo "$as_me:$LINENO: checking for sql.h" >&5
32618echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32619if test "${ac_cv_header_sql_h+set}" = set; then
32620 echo $ECHO_N "(cached) $ECHO_C" >&6
32621else
32622 ac_cv_header_sql_h=$ac_header_preproc
32623fi
32624echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32625echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32626
32627fi
32628if test $ac_cv_header_sql_h = yes; then
32629 found_sql_h=1
32630fi
32631
32632
32633 if test "x$found_sql_h" = "x1" ; then
32634 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
32635echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
32636if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
32637 echo $ECHO_N "(cached) $ECHO_C" >&6
32638else
32639 ac_check_lib_save_LIBS=$LIBS
32640LIBS="-liodbc $LIBS"
32641cat >conftest.$ac_ext <<_ACEOF
32642/* confdefs.h. */
32643_ACEOF
32644cat confdefs.h >>conftest.$ac_ext
32645cat >>conftest.$ac_ext <<_ACEOF
32646/* end confdefs.h. */
32647
32648/* Override any gcc2 internal prototype to avoid an error. */
32649#ifdef __cplusplus
32650extern "C"
32651#endif
32652/* We use char because int might match the return type of a gcc2
32653 builtin and then its argument prototype would still apply. */
32654char SQLAllocEnv ();
32655int
32656main ()
32657{
32658SQLAllocEnv ();
32659 ;
32660 return 0;
32661}
32662_ACEOF
32663rm -f conftest.$ac_objext conftest$ac_exeext
32664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32665 (eval $ac_link) 2>conftest.er1
a848cd7e 32666 ac_status=$?
ac1cb8d3
VS
32667 grep -v '^ *+' conftest.er1 >conftest.err
32668 rm -f conftest.er1
32669 cat conftest.err >&5
a848cd7e
SC
32670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32671 (exit $ac_status); } &&
479c790c 32672 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32674 (eval $ac_try) 2>&5
32675 ac_status=$?
32676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32677 (exit $ac_status); }; } &&
32678 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32680 (eval $ac_try) 2>&5
32681 ac_status=$?
32682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32683 (exit $ac_status); }; }; then
32684 ac_cv_lib_iodbc_SQLAllocEnv=yes
32685else
32686 echo "$as_me: failed program was:" >&5
32687sed 's/^/| /' conftest.$ac_ext >&5
32688
32689ac_cv_lib_iodbc_SQLAllocEnv=no
32690fi
ac1cb8d3
VS
32691rm -f conftest.err conftest.$ac_objext \
32692 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32693LIBS=$ac_check_lib_save_LIBS
32694fi
32695echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
32696echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
32697if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
32698 ODBC_LINK=" -liodbc"
32699else
32700
32701 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
32702echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
32703if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
32704 echo $ECHO_N "(cached) $ECHO_C" >&6
32705else
32706 ac_check_lib_save_LIBS=$LIBS
32707LIBS="-lunixodbc $LIBS"
32708cat >conftest.$ac_ext <<_ACEOF
32709/* confdefs.h. */
32710_ACEOF
32711cat confdefs.h >>conftest.$ac_ext
32712cat >>conftest.$ac_ext <<_ACEOF
32713/* end confdefs.h. */
32714
32715/* Override any gcc2 internal prototype to avoid an error. */
32716#ifdef __cplusplus
32717extern "C"
32718#endif
32719/* We use char because int might match the return type of a gcc2
32720 builtin and then its argument prototype would still apply. */
32721char SQLAllocEnv ();
32722int
32723main ()
32724{
32725SQLAllocEnv ();
32726 ;
32727 return 0;
32728}
32729_ACEOF
32730rm -f conftest.$ac_objext conftest$ac_exeext
32731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32732 (eval $ac_link) 2>conftest.er1
a848cd7e 32733 ac_status=$?
ac1cb8d3
VS
32734 grep -v '^ *+' conftest.er1 >conftest.err
32735 rm -f conftest.er1
32736 cat conftest.err >&5
a848cd7e
SC
32737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32738 (exit $ac_status); } &&
479c790c 32739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32741 (eval $ac_try) 2>&5
32742 ac_status=$?
32743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32744 (exit $ac_status); }; } &&
32745 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32747 (eval $ac_try) 2>&5
32748 ac_status=$?
32749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32750 (exit $ac_status); }; }; then
32751 ac_cv_lib_unixodbc_SQLAllocEnv=yes
32752else
32753 echo "$as_me: failed program was:" >&5
32754sed 's/^/| /' conftest.$ac_ext >&5
32755
32756ac_cv_lib_unixodbc_SQLAllocEnv=no
32757fi
ac1cb8d3
VS
32758rm -f conftest.err conftest.$ac_objext \
32759 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32760LIBS=$ac_check_lib_save_LIBS
32761fi
32762echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
32763echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
32764if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
32765 ODBC_LINK=" -lunixodbc"
32766else
32767
32768 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
32769echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
32770if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
32771 echo $ECHO_N "(cached) $ECHO_C" >&6
32772else
32773 ac_check_lib_save_LIBS=$LIBS
32774LIBS="-lodbc $LIBS"
32775cat >conftest.$ac_ext <<_ACEOF
32776/* confdefs.h. */
32777_ACEOF
32778cat confdefs.h >>conftest.$ac_ext
32779cat >>conftest.$ac_ext <<_ACEOF
32780/* end confdefs.h. */
32781
32782/* Override any gcc2 internal prototype to avoid an error. */
32783#ifdef __cplusplus
32784extern "C"
32785#endif
32786/* We use char because int might match the return type of a gcc2
32787 builtin and then its argument prototype would still apply. */
32788char SQLAllocEnv ();
32789int
32790main ()
32791{
32792SQLAllocEnv ();
32793 ;
32794 return 0;
32795}
32796_ACEOF
32797rm -f conftest.$ac_objext conftest$ac_exeext
32798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32799 (eval $ac_link) 2>conftest.er1
a848cd7e 32800 ac_status=$?
ac1cb8d3
VS
32801 grep -v '^ *+' conftest.er1 >conftest.err
32802 rm -f conftest.er1
32803 cat conftest.err >&5
a848cd7e
SC
32804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32805 (exit $ac_status); } &&
479c790c 32806 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32808 (eval $ac_try) 2>&5
32809 ac_status=$?
32810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32811 (exit $ac_status); }; } &&
32812 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32814 (eval $ac_try) 2>&5
32815 ac_status=$?
32816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32817 (exit $ac_status); }; }; then
32818 ac_cv_lib_odbc_SQLAllocEnv=yes
32819else
32820 echo "$as_me: failed program was:" >&5
32821sed 's/^/| /' conftest.$ac_ext >&5
32822
32823ac_cv_lib_odbc_SQLAllocEnv=no
32824fi
ac1cb8d3
VS
32825rm -f conftest.err conftest.$ac_objext \
32826 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32827LIBS=$ac_check_lib_save_LIBS
32828fi
32829echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
32830echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
32831if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
32832 ODBC_LINK=" -lodbc"
32833fi
32834
32835
32836fi
32837
32838
32839fi
32840
32841 fi
32842 if test "x$ODBC_LINK" = "x" ; then
32843 if test "$wxUSE_ODBC" = "sys" ; then
32844 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
32845echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
32846 { (exit 1); exit 1; }; }
32847 else
32848 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
32849echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
32850 wxUSE_ODBC=builtin
32851 fi
32852 else
32853 wxUSE_ODBC=sys
32854 fi
32855 fi
a848cd7e 32856
2da0c077
RD
32857 if test "$wxUSE_ODBC" = "builtin" ; then
32858 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
32859#define wxUSE_BUILTIN_IODBC 1
32860_ACEOF
32861
a848cd7e
SC
32862 fi
32863fi
32864
2da0c077
RD
32865if test "$wxUSE_ODBC" != "no" ; then
32866 cat >>confdefs.h <<\_ACEOF
32867#define wxUSE_ODBC 1
32868_ACEOF
32869
32870 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
32871
5ff751d6 32872 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 32873fi
a848cd7e 32874
01cb68df 32875
a848cd7e 32876if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 32877 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
32878 echo "$as_me:$LINENO: checking for Xinerama" >&5
32879echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
32880
0ad5d837
VZ
32881 ac_find_libraries=
32882 for ac_dir in $SEARCH_LIB;
32883 do
32884 for ac_extension in a so sl dylib dll.a; do
32885 if test -f "$ac_dir/libXinerama.$ac_extension"; then
32886 ac_find_libraries=$ac_dir
32887 break 2
32888 fi
32889 done
32890 done
32891
a848cd7e
SC
32892 if test "$ac_find_libraries" != "" ; then
32893
0ad5d837 32894 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32895 ac_path_to_link=""
32896 else
0ad5d837
VZ
32897 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32898 result=$?
32899 if test $result = 0; then
32900 ac_path_to_link=""
32901 else
32902 ac_path_to_link=" -L$ac_find_libraries"
32903 fi
a848cd7e
SC
32904 fi
32905
32906 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32907 LDFLAGS="$LDFLAGS $ac_path_to_link"
32908 fi
32909 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32910 echo "$as_me:$LINENO: result: yes" >&5
32911echo "${ECHO_T}yes" >&6
32912
32913 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32914echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
32915
0ad5d837
VZ
32916 ac_find_libraries=
32917 for ac_dir in $SEARCH_LIB;
a848cd7e 32918 do
3eca31dc 32919 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32920 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32921 ac_find_libraries=$ac_dir
32922 break 2
32923 fi
32924 done
32925 done
32926
32927 if test "$ac_find_libraries" != "" ; then
32928 echo "$as_me:$LINENO: result: yes" >&5
32929echo "${ECHO_T}yes" >&6
32930
32931for ac_header in X11/extensions/xf86vmode.h
32932do
32933as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32934echo "$as_me:$LINENO: checking for $ac_header" >&5
32935echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32936if eval "test \"\${$as_ac_Header+set}\" = set"; then
32937 echo $ECHO_N "(cached) $ECHO_C" >&6
32938else
32939 cat >conftest.$ac_ext <<_ACEOF
32940/* confdefs.h. */
32941_ACEOF
32942cat confdefs.h >>conftest.$ac_ext
32943cat >>conftest.$ac_ext <<_ACEOF
32944/* end confdefs.h. */
32945
32946 #if HAVE_X11_XLIB_H
32947 #include <X11/Xlib.h>
32948 #endif
32949
32950
32951#include <$ac_header>
32952_ACEOF
32953rm -f conftest.$ac_objext
32954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32955 (eval $ac_compile) 2>conftest.er1
a848cd7e 32956 ac_status=$?
ac1cb8d3
VS
32957 grep -v '^ *+' conftest.er1 >conftest.err
32958 rm -f conftest.er1
32959 cat conftest.err >&5
a848cd7e
SC
32960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32961 (exit $ac_status); } &&
479c790c 32962 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32964 (eval $ac_try) 2>&5
32965 ac_status=$?
32966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32967 (exit $ac_status); }; } &&
32968 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32970 (eval $ac_try) 2>&5
32971 ac_status=$?
32972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32973 (exit $ac_status); }; }; then
32974 eval "$as_ac_Header=yes"
32975else
32976 echo "$as_me: failed program was:" >&5
32977sed 's/^/| /' conftest.$ac_ext >&5
32978
32979eval "$as_ac_Header=no"
32980fi
ac1cb8d3 32981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32982fi
32983echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32984echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32985if test `eval echo '${'$as_ac_Header'}'` = yes; then
32986 cat >>confdefs.h <<_ACEOF
32987#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32988_ACEOF
32989
32990 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32991
32992fi
32993
32994done
32995
32996 else
32997 echo "$as_me:$LINENO: result: no" >&5
32998echo "${ECHO_T}no" >&6
32999 fi
33000
33001 else
33002 echo "$as_me:$LINENO: result: no" >&5
33003echo "${ECHO_T}no" >&6
dcc1b6ad
VS
33004 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
33005echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
33006 wxUSE_DISPLAY="no"
33007 fi
01cb68df
RG
33008 elif test "$wxUSE_MSW" = 1; then
33009
e5efa97e 33010for ac_header in ddraw.h
01cb68df
RG
33011do
33012as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 33013echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
33014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33015if eval "test \"\${$as_ac_Header+set}\" = set"; then
33016 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 33017else
5294a27e 33018 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
33019/* confdefs.h. */
33020_ACEOF
33021cat confdefs.h >>conftest.$ac_ext
33022cat >>conftest.$ac_ext <<_ACEOF
33023/* end confdefs.h. */
5294a27e
VZ
33024#include <windows.h>
33025
01cb68df
RG
33026#include <$ac_header>
33027_ACEOF
33028rm -f conftest.$ac_objext
33029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33030 (eval $ac_compile) 2>conftest.er1
01cb68df 33031 ac_status=$?
ac1cb8d3
VS
33032 grep -v '^ *+' conftest.er1 >conftest.err
33033 rm -f conftest.er1
33034 cat conftest.err >&5
01cb68df
RG
33035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33036 (exit $ac_status); } &&
479c790c 33037 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33039 (eval $ac_try) 2>&5
33040 ac_status=$?
33041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33042 (exit $ac_status); }; } &&
33043 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
33044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33045 (eval $ac_try) 2>&5
33046 ac_status=$?
33047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33048 (exit $ac_status); }; }; then
5294a27e 33049 eval "$as_ac_Header=yes"
01cb68df
RG
33050else
33051 echo "$as_me: failed program was:" >&5
33052sed 's/^/| /' conftest.$ac_ext >&5
33053
5294a27e 33054eval "$as_ac_Header=no"
01cb68df 33055fi
ac1cb8d3 33056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
33057fi
33058echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33059echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
33060if test `eval echo '${'$as_ac_Header'}'` = yes; then
33061 cat >>confdefs.h <<_ACEOF
33062#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33063_ACEOF
33064
01cb68df
RG
33065fi
33066
33067done
33068
a848cd7e
SC
33069 fi
33070fi
33071
88bbc332
RR
33072if test "$wxUSE_DETECT_SM" = "yes"; then
33073 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
33074 echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
33075echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6
33076
33077 ac_find_libraries=
33078 for ac_dir in $SEARCH_LIB;
33079 do
33080 for ac_extension in a so sl dylib dll.a; do
33081 if test -f "$ac_dir/libSM.$ac_extension"; then
33082 ac_find_libraries=$ac_dir
33083 break 2
33084 fi
33085 done
33086 done
33087
33088 if test "$ac_find_libraries" != "" ; then
33089
33090 if test "$ac_find_libraries" = "default location"; then
33091 ac_path_to_link=""
33092 else
33093 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33094 result=$?
33095 if test $result = 0; then
33096 ac_path_to_link=""
33097 else
33098 ac_path_to_link=" -L$ac_find_libraries"
33099 fi
33100 fi
33101
33102 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33103 LDFLAGS="$LDFLAGS $ac_path_to_link"
33104 fi
33105 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
33106 echo "$as_me:$LINENO: result: yes" >&5
33107echo "${ECHO_T}yes" >&6
33108 else
33109 echo "$as_me:$LINENO: result: no" >&5
33110echo "${ECHO_T}no" >&6
33111 { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
33112echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
33113 wxUSE_DETECT_SM="no"
33114 fi
33115 else
33116 wxUSE_DETECT_SM="no"
33117 fi
33118fi
33119
33120
a848cd7e
SC
33121
33122USE_OPENGL=0
33123if test "$wxUSE_OPENGL" = "yes"; then
33124 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
33125 OPENGL_LIBS="-framework OpenGL -framework AGL"
33126 elif test "$wxUSE_MSW" = 1; then
33127 OPENGL_LIBS="-lopengl32 -lglu32"
33128 else
33129
33130
33131ac_find_includes=
33132for ac_dir in $SEARCH_INCLUDE /usr/include;
33133 do
33134 if test -f "$ac_dir/GL/gl.h"; then
33135 ac_find_includes=$ac_dir
33136 break
33137 fi
33138 done
33139
33140 if test "$ac_find_includes" != "" ; then
33141 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33142echo "${ECHO_T}found in $ac_find_includes" >&6
33143
33144 if test "x$ac_find_includes" = "x/usr/include"; then
33145 ac_path_to_include=""
33146 else
33147 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
33148 result=$?
33149 if test $result = 0; then
33150 ac_path_to_include=""
33151 else
33152 ac_path_to_include=" -I$ac_find_includes"
33153 fi
33154 fi
33155
c92ad099 33156 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
33157 fi
33158
33159 if test "${ac_cv_header_GL_gl_h+set}" = set; then
33160 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33161echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
33162if test "${ac_cv_header_GL_gl_h+set}" = set; then
33163 echo $ECHO_N "(cached) $ECHO_C" >&6
33164fi
33165echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33166echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
33167else
33168 # Is the header compilable?
33169echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
33170echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
33171cat >conftest.$ac_ext <<_ACEOF
33172/* confdefs.h. */
33173_ACEOF
33174cat confdefs.h >>conftest.$ac_ext
33175cat >>conftest.$ac_ext <<_ACEOF
33176/* end confdefs.h. */
33177$ac_includes_default
33178#include <GL/gl.h>
33179_ACEOF
33180rm -f conftest.$ac_objext
33181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33182 (eval $ac_compile) 2>conftest.er1
a848cd7e 33183 ac_status=$?
ac1cb8d3
VS
33184 grep -v '^ *+' conftest.er1 >conftest.err
33185 rm -f conftest.er1
33186 cat conftest.err >&5
a848cd7e
SC
33187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33188 (exit $ac_status); } &&
479c790c 33189 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33191 (eval $ac_try) 2>&5
33192 ac_status=$?
33193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33194 (exit $ac_status); }; } &&
33195 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33197 (eval $ac_try) 2>&5
33198 ac_status=$?
33199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33200 (exit $ac_status); }; }; then
33201 ac_header_compiler=yes
33202else
33203 echo "$as_me: failed program was:" >&5
33204sed 's/^/| /' conftest.$ac_ext >&5
33205
33206ac_header_compiler=no
33207fi
ac1cb8d3 33208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33209echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33210echo "${ECHO_T}$ac_header_compiler" >&6
33211
33212# Is the header present?
33213echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
33214echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
33215cat >conftest.$ac_ext <<_ACEOF
33216/* confdefs.h. */
33217_ACEOF
33218cat confdefs.h >>conftest.$ac_ext
33219cat >>conftest.$ac_ext <<_ACEOF
33220/* end confdefs.h. */
33221#include <GL/gl.h>
33222_ACEOF
33223if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33225 ac_status=$?
33226 grep -v '^ *+' conftest.er1 >conftest.err
33227 rm -f conftest.er1
33228 cat conftest.err >&5
33229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33230 (exit $ac_status); } >/dev/null; then
33231 if test -s conftest.err; then
5d7b7554
VZ
33232 ac_cpp_err=$ac_cxx_preproc_warn_flag
33233 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
33234 else
33235 ac_cpp_err=
33236 fi
33237else
33238 ac_cpp_err=yes
33239fi
33240if test -z "$ac_cpp_err"; then
33241 ac_header_preproc=yes
33242else
33243 echo "$as_me: failed program was:" >&5
33244sed 's/^/| /' conftest.$ac_ext >&5
33245
33246 ac_header_preproc=no
33247fi
33248rm -f conftest.err conftest.$ac_ext
33249echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33250echo "${ECHO_T}$ac_header_preproc" >&6
33251
33252# So? What about this header?
5d7b7554 33253case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 33254 yes:no: )
a848cd7e
SC
33255 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33256echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33257 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
33258echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
33259 ac_header_preproc=yes
a848cd7e 33260 ;;
ac1cb8d3 33261 no:yes:* )
a848cd7e
SC
33262 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
33263echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33264 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
33265echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
33266 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
33267echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
33268 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
33269echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33270 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
33271echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33272 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
33273echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33274 (
33275 cat <<\_ASBOX
ac1cb8d3
VS
33276## ----------------------------------------- ##
33277## Report this to wx-dev@lists.wxwidgets.org ##
33278## ----------------------------------------- ##
a848cd7e
SC
33279_ASBOX
33280 ) |
33281 sed "s/^/$as_me: WARNING: /" >&2
33282 ;;
33283esac
33284echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33285echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
33286if test "${ac_cv_header_GL_gl_h+set}" = set; then
33287 echo $ECHO_N "(cached) $ECHO_C" >&6
33288else
33289 ac_cv_header_GL_gl_h=$ac_header_preproc
33290fi
33291echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33292echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
33293
33294fi
33295if test $ac_cv_header_GL_gl_h = yes; then
33296
33297 found_gl=0
33298
33299 echo "$as_me:$LINENO: checking for -lGL" >&5
33300echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
33301
0ad5d837
VZ
33302 ac_find_libraries=
33303 for ac_dir in $SEARCH_LIB;
a848cd7e 33304 do
3eca31dc 33305 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33306 if test -f "$ac_dir/libGL.$ac_extension"; then
33307 ac_find_libraries=$ac_dir
33308 break 2
33309 fi
33310 done
33311 done
33312
33313 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
33314 echo "$as_me:$LINENO: result: yes" >&5
33315echo "${ECHO_T}yes" >&6
33316
a848cd7e 33317
0ad5d837 33318 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33319 ac_path_to_link=""
33320 else
0ad5d837
VZ
33321 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33322 result=$?
33323 if test $result = 0; then
33324 ac_path_to_link=""
33325 else
33326 ac_path_to_link=" -L$ac_find_libraries"
33327 fi
a848cd7e
SC
33328 fi
33329
33330 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33331 LDFLAGS_GL="$ac_path_to_link"
33332 fi
33333
69120ee4
VZ
33334 echo "$as_me:$LINENO: checking for -lGLU" >&5
33335echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 33336
0ad5d837
VZ
33337 ac_find_libraries=
33338 for ac_dir in $SEARCH_LIB;
33339 do
33340 for ac_extension in a so sl dylib dll.a; do
33341 if test -f "$ac_dir/libGLU.$ac_extension"; then
33342 ac_find_libraries=$ac_dir
33343 break 2
33344 fi
33345 done
33346 done
33347
a848cd7e
SC
33348 if test "$ac_find_libraries" != "" ; then
33349
0ad5d837 33350 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33351 ac_path_to_link=""
33352 else
0ad5d837
VZ
33353 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33354 result=$?
33355 if test $result = 0; then
33356 ac_path_to_link=""
33357 else
33358 ac_path_to_link=" -L$ac_find_libraries"
33359 fi
a848cd7e
SC
33360 fi
33361
33362 if test "$ac_path_to_link" != " -L/usr/lib" -a \
33363 "$ac_path_to_link" != "$LDFLAGS_GL"; then
33364 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33365 fi
33366
33367 found_gl=1
33368 OPENGL_LIBS="-lGL -lGLU"
33369 echo "$as_me:$LINENO: result: yes" >&5
33370echo "${ECHO_T}yes" >&6
69120ee4
VZ
33371 else
33372 echo "$as_me:$LINENO: result: no" >&5
33373echo "${ECHO_T}no" >&6
a848cd7e 33374 fi
69120ee4
VZ
33375 else
33376 echo "$as_me:$LINENO: result: no" >&5
33377echo "${ECHO_T}no" >&6
a848cd7e
SC
33378 fi
33379
33380 if test "$found_gl" != 1; then
a848cd7e
SC
33381 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33382echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
33383
0ad5d837
VZ
33384 ac_find_libraries=
33385 for ac_dir in $SEARCH_LIB;
a848cd7e 33386 do
3eca31dc 33387 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33388 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33389 ac_find_libraries=$ac_dir
33390 break 2
33391 fi
33392 done
33393 done
33394
33395 if test "$ac_find_libraries" != "" ; then
33396
0ad5d837 33397 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33398 ac_path_to_link=""
33399 else
0ad5d837
VZ
33400 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33401 result=$?
33402 if test $result = 0; then
33403 ac_path_to_link=""
33404 else
33405 ac_path_to_link=" -L$ac_find_libraries"
33406 fi
a848cd7e
SC
33407 fi
33408
33409 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33410 OPENGL_LIBS="-lMesaGL -lMesaGLU"
33411 echo "$as_me:$LINENO: result: yes" >&5
33412echo "${ECHO_T}yes" >&6
33413 else
33414 echo "$as_me:$LINENO: result: no" >&5
33415echo "${ECHO_T}no" >&6
33416 fi
33417 fi
33418
33419fi
33420
33421
33422
33423 if test "x$OPENGL_LIBS" = "x"; then
33424 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33425echo "$as_me: error: OpenGL libraries not available" >&2;}
33426 { (exit 1); exit 1; }; }
33427 fi
33428 fi
33429
33430 if test "$wxUSE_OPENGL" = "yes"; then
33431 USE_OPENGL=1
33432 cat >>confdefs.h <<\_ACEOF
33433#define wxUSE_OPENGL 1
33434_ACEOF
33435
33436 cat >>confdefs.h <<\_ACEOF
33437#define wxUSE_GLCANVAS 1
33438_ACEOF
33439
33440 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33441 fi
33442fi
33443
a848cd7e
SC
33444
33445if test -n "$TOOLKIT" ; then
33446 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33447fi
33448
a848cd7e
SC
33449
33450
33451if test "$wxUSE_SHARED" = "yes"; then
33452 case "${host}" in
33453 *-pc-msdosdjgpp )
33454 wxUSE_SHARED=no
33455 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33456echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33457 ;;
33458 esac
33459fi
33460
a848cd7e 33461if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
33462
33463
33464 found_versioning=no
33465
33466
33467 if test $found_versioning = no ; then
33468 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33469echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
33470if test "${wx_cv_version_script+set}" = set; then
33471 echo $ECHO_N "(cached) $ECHO_C" >&6
33472else
33473
33474 echo "VER_1 { *; };" >conftest.sym
33475 echo "int main() { return 0; }" >conftest.cpp
33476
33477 if { ac_try='
33478 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33479 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33481 (eval $ac_try) 2>&5
33482 ac_status=$?
33483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33484 (exit $ac_status); }; } ; then
33485 if test -s conftest.stderr ; then
33486 wx_cv_version_script=no
33487 else
33488 wx_cv_version_script=yes
33489 fi
33490 else
33491 wx_cv_version_script=no
33492 fi
e5d4b470
MW
33493
33494 if test $wx_cv_version_script = yes
33495 then
33496 echo "struct B { virtual ~B() { } }; \
33497 struct D : public B { }; \
33498 void F() { D d; }" > conftest.cpp
33499
33500 if { ac_try='
33501 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33502 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33504 (eval $ac_try) 2>&5
33505 ac_status=$?
33506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33507 (exit $ac_status); }; } &&
33508 { ac_try='
33509 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33510 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33512 (eval $ac_try) 2>&5
33513 ac_status=$?
33514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33515 (exit $ac_status); }; }
33516 then
33517 if { ac_try='
33518 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33519 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33521 (eval $ac_try) 2>&5
33522 ac_status=$?
33523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33524 (exit $ac_status); }; }
33525 then
33526 wx_cv_version_script=yes
33527 else
33528 wx_cv_version_script=no
33529 fi
33530 fi
33531 fi
33532
a848cd7e 33533 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 33534 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
33535
33536fi
33537echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33538echo "${ECHO_T}$wx_cv_version_script" >&6
33539 if test $wx_cv_version_script = yes ; then
33540 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
33541 fi
33542 fi
33543
33544
33545 case "${host}" in
33546 *-*-linux* | *-*-gnu* )
33547 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 33548 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 33549 ;;
a848cd7e
SC
33550
33551 *-*-solaris2* )
33552 if test "$GCC" = yes ; then
c92ad099 33553 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
33554
33555 saveLdflags="$LDFLAGS"
33556 LDFLAGS="$saveLdflags -Wl,-rpath,/"
33557 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33558echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
33559 cat >conftest.$ac_ext <<_ACEOF
33560/* confdefs.h. */
33561_ACEOF
33562cat confdefs.h >>conftest.$ac_ext
33563cat >>conftest.$ac_ext <<_ACEOF
33564/* end confdefs.h. */
33565
33566int
33567main ()
33568{
33569
33570 ;
33571 return 0;
33572}
33573_ACEOF
33574rm -f conftest.$ac_objext conftest$ac_exeext
33575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33576 (eval $ac_link) 2>conftest.er1
a848cd7e 33577 ac_status=$?
ac1cb8d3
VS
33578 grep -v '^ *+' conftest.er1 >conftest.err
33579 rm -f conftest.er1
33580 cat conftest.err >&5
a848cd7e
SC
33581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33582 (exit $ac_status); } &&
479c790c 33583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33585 (eval $ac_try) 2>&5
33586 ac_status=$?
33587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33588 (exit $ac_status); }; } &&
33589 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33591 (eval $ac_try) 2>&5
33592 ac_status=$?
33593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33594 (exit $ac_status); }; }; then
33595
33596 echo "$as_me:$LINENO: result: yes" >&5
33597echo "${ECHO_T}yes" >&6
33598 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 33599 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
33600
33601else
33602 echo "$as_me: failed program was:" >&5
33603sed 's/^/| /' conftest.$ac_ext >&5
33604
33605
33606 echo "$as_me:$LINENO: result: no" >&5
33607echo "${ECHO_T}no" >&6
33608 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33609echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
33610 LDFLAGS="$saveLdflags -Wl,-R,/"
33611 cat >conftest.$ac_ext <<_ACEOF
33612/* confdefs.h. */
33613_ACEOF
33614cat confdefs.h >>conftest.$ac_ext
33615cat >>conftest.$ac_ext <<_ACEOF
33616/* end confdefs.h. */
33617
33618int
33619main ()
33620{
33621
33622 ;
33623 return 0;
33624}
33625_ACEOF
33626rm -f conftest.$ac_objext conftest$ac_exeext
33627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33628 (eval $ac_link) 2>conftest.er1
a848cd7e 33629 ac_status=$?
ac1cb8d3
VS
33630 grep -v '^ *+' conftest.er1 >conftest.err
33631 rm -f conftest.er1
33632 cat conftest.err >&5
a848cd7e
SC
33633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33634 (exit $ac_status); } &&
479c790c 33635 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33637 (eval $ac_try) 2>&5
33638 ac_status=$?
33639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33640 (exit $ac_status); }; } &&
33641 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33643 (eval $ac_try) 2>&5
33644 ac_status=$?
33645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33646 (exit $ac_status); }; }; then
33647
ffa0583f 33648 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 33649echo "${ECHO_T}yes" >&6
ffa0583f
RL
33650 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
33651 WXCONFIG_RPATH="-Wl,-R,\$libdir"
33652
a848cd7e
SC
33653else
33654 echo "$as_me: failed program was:" >&5
33655sed 's/^/| /' conftest.$ac_ext >&5
33656
33657
33658 echo "$as_me:$LINENO: result: no" >&5
33659echo "${ECHO_T}no" >&6
33660
33661fi
ac1cb8d3
VS
33662rm -f conftest.err conftest.$ac_objext \
33663 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33664
33665fi
ac1cb8d3
VS
33666rm -f conftest.err conftest.$ac_objext \
33667 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33668 LDFLAGS="$saveLdflags"
33669 else
a848cd7e 33670 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 33671 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
33672 fi
33673 ;;
33674
cfda0ea8 33675 *-*-darwin* )
0caebc27
MW
33676 install_name_tool=`which install_name_tool`
33677 if test "$install_name_tool" -a -x "$install_name_tool"; then
33678 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
33679 cat <<EOF >change-install-names
a848cd7e
SC
33680#!/bin/sh
33681libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33682inst_cmd="install_name_tool "
33683for i in \${libnames} ; do
33684 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
33685done
33686\${inst_cmd} \${3}
33687EOF
0caebc27
MW
33688 chmod +x change-install-names
33689 fi
a848cd7e
SC
33690 ;;
33691
33692 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
33693 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33694 ;;
a848cd7e 33695
81f90336
MW
33696 *-*-hpux* )
33697 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
33698 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 33699 ;;
81f90336 33700
a848cd7e 33701 esac
ceec2216 33702
ffa0583f
RL
33703 if test $wxUSE_RPATH = "no"; then
33704 SAMPLES_RPATH_FLAG=''
33705 SAMPLES_RPATH_POSTLINK=''
33706 WXCONFIG_RPATH=''
33707 fi
33708
33709 SHARED=1
33710
33711else
33712
ceec2216
RL
33713 config_linkage_component="-static"
33714 SHARED=0
ffa0583f 33715
ceec2216 33716fi
a848cd7e 33717
a848cd7e 33718
ceec2216
RL
33719UNICODE=0
33720lib_unicode_suffix=
33721WX_CHARTYPE="ansi"
33722if test "$wxUSE_UNICODE" = "yes"; then
33723 lib_unicode_suffix=u
33724 WX_CHARTYPE="unicode"
33725 UNICODE=1
a848cd7e
SC
33726fi
33727
ceec2216
RL
33728lib_debug_suffix=
33729WX_DEBUGTYPE="release"
33730DEBUG_FLAG=0
33731if test "$wxUSE_DEBUG_FLAG" = "yes"; then
33732 lib_debug_suffix=d
33733 WX_DEBUGTYPE="debug"
33734 DEBUG_FLAG=1
33735fi
a848cd7e 33736
ceec2216
RL
33737WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
33738WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 33739
ceec2216
RL
33740DEBUG_INFO=0
33741if test "$wxUSE_DEBUG_INFO" = "yes"; then
33742 DEBUG_INFO=1
33743fi
a848cd7e 33744
ceec2216 33745WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 33746
ceec2216 33747TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 33748
ceec2216 33749TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 33750
ceec2216
RL
33751if test "$cross_compiling" = "yes"; then
33752 HOST_SUFFIX="-$host_alias"
33753 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
33754 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
33755fi
33756
dd21ced8 33757WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
33758if test "${TOOLKIT_DIR}" = "os2"; then
33759 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33760else
33761 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33762fi
ceec2216
RL
33763
33764
33765
1d1af5ea
DE
33766if test "$wxUSE_COCOA" = 1; then
33767
33768
33769 ac_ext=c
33770ac_cpp='$CPP $CPPFLAGS'
33771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33773ac_compiler_gnu=$ac_cv_c_compiler_gnu
33774
33775ac_ext=m
33776
33777 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
33778echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
33779 cat >conftest.$ac_ext <<_ACEOF
33780/* confdefs.h. */
33781_ACEOF
33782cat confdefs.h >>conftest.$ac_ext
33783cat >>conftest.$ac_ext <<_ACEOF
33784/* end confdefs.h. */
33785#include <AppKit/NSEvent.h>
33786#include <CoreFoundation/CoreFoundation.h>
33787
33788int
33789main ()
33790{
33791
33792 ;
33793 return 0;
33794}
33795_ACEOF
33796rm -f conftest.$ac_objext
33797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33798 (eval $ac_compile) 2>conftest.er1
33799 ac_status=$?
33800 grep -v '^ *+' conftest.er1 >conftest.err
33801 rm -f conftest.er1
33802 cat conftest.err >&5
33803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33804 (exit $ac_status); } &&
479c790c 33805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
33806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33807 (eval $ac_try) 2>&5
33808 ac_status=$?
33809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33810 (exit $ac_status); }; } &&
33811 { ac_try='test -s conftest.$ac_objext'
33812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33813 (eval $ac_try) 2>&5
33814 ac_status=$?
33815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33816 (exit $ac_status); }; }; then
33817 echo "$as_me:$LINENO: result: no" >&5
33818echo "${ECHO_T}no" >&6
33819else
33820 echo "$as_me: failed program was:" >&5
33821sed 's/^/| /' conftest.$ac_ext >&5
33822
33823echo "$as_me:$LINENO: result: yes" >&5
33824echo "${ECHO_T}yes" >&6
33825 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
33826echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
33827 cat >conftest.$ac_ext <<_ACEOF
33828/* confdefs.h. */
33829_ACEOF
33830cat confdefs.h >>conftest.$ac_ext
33831cat >>conftest.$ac_ext <<_ACEOF
33832/* end confdefs.h. */
33833#define __Point__ 1
33834#include <AppKit/NSEvent.h>
33835#include <CoreFoundation/CoreFoundation.h>
33836
33837int
33838main ()
33839{
33840
33841 ;
33842 return 0;
33843}
33844_ACEOF
33845rm -f conftest.$ac_objext
33846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33847 (eval $ac_compile) 2>conftest.er1
33848 ac_status=$?
33849 grep -v '^ *+' conftest.er1 >conftest.err
33850 rm -f conftest.er1
33851 cat conftest.err >&5
33852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33853 (exit $ac_status); } &&
479c790c 33854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
33855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33856 (eval $ac_try) 2>&5
33857 ac_status=$?
33858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33859 (exit $ac_status); }; } &&
33860 { ac_try='test -s conftest.$ac_objext'
33861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33862 (eval $ac_try) 2>&5
33863 ac_status=$?
33864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33865 (exit $ac_status); }; }; then
33866 echo "$as_me:$LINENO: result: yes" >&5
33867echo "${ECHO_T}yes" >&6
33868 cat >>confdefs.h <<\_ACEOF
33869#define __Point__ 1
33870_ACEOF
33871
33872
33873else
33874 echo "$as_me: failed program was:" >&5
33875sed 's/^/| /' conftest.$ac_ext >&5
33876
33877{ { echo "$as_me:$LINENO: error: no
33878See \`config.log' for more details." >&5
33879echo "$as_me: error: no
33880See \`config.log' for more details." >&2;}
33881 { (exit 1); exit 1; }; }
33882
33883fi
33884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33885
33886fi
33887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
33888 ac_ext=cc
33889ac_cpp='$CXXCPP $CPPFLAGS'
33890ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33891ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33892ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1d1af5ea
DE
33893
33894fi
33895
a848cd7e 33896if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
33897 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
33898 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 33899
a848cd7e 33900 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
33901
33902 # Extract the first word of "Rez", so it can be a program name with args.
33903set dummy Rez; ac_word=$2
33904echo "$as_me:$LINENO: checking for $ac_word" >&5
33905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 33906if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
33907 echo $ECHO_N "(cached) $ECHO_C" >&6
33908else
8ced02f6
DE
33909 if test -n "$REZ"; then
33910 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
33911else
33912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33913for as_dir in $PATH
33914do
33915 IFS=$as_save_IFS
33916 test -z "$as_dir" && as_dir=.
33917 for ac_exec_ext in '' $ac_executable_extensions; do
33918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 33919 ac_cv_prog_REZ="Rez"
a848cd7e
SC
33920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33921 break 2
33922 fi
33923done
33924done
33925
8ced02f6 33926 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
33927fi
33928fi
8ced02f6
DE
33929REZ=$ac_cv_prog_REZ
33930if test -n "$REZ"; then
33931 echo "$as_me:$LINENO: result: $REZ" >&5
33932echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
33933else
33934 echo "$as_me:$LINENO: result: no" >&5
33935echo "${ECHO_T}no" >&6
33936fi
33937
33938 # Extract the first word of "DeRez", so it can be a program name with args.
33939set dummy DeRez; ac_word=$2
33940echo "$as_me:$LINENO: checking for $ac_word" >&5
33941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33942if test "${ac_cv_prog_DEREZ+set}" = set; then
33943 echo $ECHO_N "(cached) $ECHO_C" >&6
33944else
33945 if test -n "$DEREZ"; then
33946 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
33947else
33948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33949for as_dir in $PATH
33950do
33951 IFS=$as_save_IFS
33952 test -z "$as_dir" && as_dir=.
33953 for ac_exec_ext in '' $ac_executable_extensions; do
33954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33955 ac_cv_prog_DEREZ="DeRez"
33956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33957 break 2
33958 fi
33959done
33960done
33961
33962 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
33963fi
33964fi
33965DEREZ=$ac_cv_prog_DEREZ
33966if test -n "$DEREZ"; then
33967 echo "$as_me:$LINENO: result: $DEREZ" >&5
33968echo "${ECHO_T}$DEREZ" >&6
33969else
33970 echo "$as_me:$LINENO: result: no" >&5
33971echo "${ECHO_T}no" >&6
33972fi
33973
33974 # Extract the first word of "SetFile", so it can be a program name with args.
33975set dummy SetFile; ac_word=$2
33976echo "$as_me:$LINENO: checking for $ac_word" >&5
33977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33978if test "${ac_cv_prog_SETFILE+set}" = set; then
33979 echo $ECHO_N "(cached) $ECHO_C" >&6
33980else
33981 if test -n "$SETFILE"; then
33982 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
33983else
33984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33985for as_dir in $PATH
33986do
33987 IFS=$as_save_IFS
33988 test -z "$as_dir" && as_dir=.
33989 for ac_exec_ext in '' $ac_executable_extensions; do
33990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33991 ac_cv_prog_SETFILE="SetFile"
33992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33993 break 2
33994 fi
33995done
33996done
33997
33998 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
33999fi
34000fi
34001SETFILE=$ac_cv_prog_SETFILE
34002if test -n "$SETFILE"; then
34003 echo "$as_me:$LINENO: result: $SETFILE" >&5
34004echo "${ECHO_T}$SETFILE" >&6
34005else
34006 echo "$as_me:$LINENO: result: no" >&5
34007echo "${ECHO_T}no" >&6
34008fi
34009
34010
34011 MACSETFILE="\$(SETFILE)"
34012
34013 if test "$wxUSE_MAC" = 1; then
8ced02f6 34014 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
34015 RESCOMP="$REZ"
34016 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 34017 else
004ee6da
RL
34018 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
34019 RESCOMP="echo -n \| $REZ"
34020 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 34021 fi
004ee6da 34022
a848cd7e 34023else
ffa0583f 34024 MACSETFILE="@true"
a848cd7e 34025
8ced02f6 34026 if test "$wxUSE_PM" = 1; then
004ee6da
RL
34027 RESCOMP="emxbind"
34028 WXCONFIG_RESFLAGS="-ep"
34029
34030 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 34031 else
8ced02f6 34032 POSTLINK_COMMAND="@true"
a848cd7e 34033 fi
004ee6da 34034
a848cd7e
SC
34035fi
34036
34037
34038
34039echo "$as_me:$LINENO: checking for mode_t" >&5
34040echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
34041if test "${ac_cv_type_mode_t+set}" = set; then
34042 echo $ECHO_N "(cached) $ECHO_C" >&6
34043else
34044 cat >conftest.$ac_ext <<_ACEOF
34045/* confdefs.h. */
34046_ACEOF
34047cat confdefs.h >>conftest.$ac_ext
34048cat >>conftest.$ac_ext <<_ACEOF
34049/* end confdefs.h. */
34050$ac_includes_default
34051int
34052main ()
34053{
34054if ((mode_t *) 0)
34055 return 0;
34056if (sizeof (mode_t))
34057 return 0;
34058 ;
34059 return 0;
34060}
34061_ACEOF
34062rm -f conftest.$ac_objext
34063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34064 (eval $ac_compile) 2>conftest.er1
a848cd7e 34065 ac_status=$?
ac1cb8d3
VS
34066 grep -v '^ *+' conftest.er1 >conftest.err
34067 rm -f conftest.er1
34068 cat conftest.err >&5
a848cd7e
SC
34069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34070 (exit $ac_status); } &&
479c790c 34071 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34073 (eval $ac_try) 2>&5
34074 ac_status=$?
34075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34076 (exit $ac_status); }; } &&
34077 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34079 (eval $ac_try) 2>&5
34080 ac_status=$?
34081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34082 (exit $ac_status); }; }; then
34083 ac_cv_type_mode_t=yes
34084else
34085 echo "$as_me: failed program was:" >&5
34086sed 's/^/| /' conftest.$ac_ext >&5
34087
34088ac_cv_type_mode_t=no
34089fi
ac1cb8d3 34090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34091fi
34092echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34093echo "${ECHO_T}$ac_cv_type_mode_t" >&6
34094if test $ac_cv_type_mode_t = yes; then
34095 :
34096else
34097
34098cat >>confdefs.h <<_ACEOF
34099#define mode_t int
34100_ACEOF
34101
34102fi
34103
34104echo "$as_me:$LINENO: checking for off_t" >&5
34105echo $ECHO_N "checking for off_t... $ECHO_C" >&6
34106if test "${ac_cv_type_off_t+set}" = set; then
34107 echo $ECHO_N "(cached) $ECHO_C" >&6
34108else
34109 cat >conftest.$ac_ext <<_ACEOF
34110/* confdefs.h. */
34111_ACEOF
34112cat confdefs.h >>conftest.$ac_ext
34113cat >>conftest.$ac_ext <<_ACEOF
34114/* end confdefs.h. */
34115$ac_includes_default
34116int
34117main ()
34118{
34119if ((off_t *) 0)
34120 return 0;
34121if (sizeof (off_t))
34122 return 0;
34123 ;
34124 return 0;
34125}
34126_ACEOF
34127rm -f conftest.$ac_objext
34128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34129 (eval $ac_compile) 2>conftest.er1
a848cd7e 34130 ac_status=$?
ac1cb8d3
VS
34131 grep -v '^ *+' conftest.er1 >conftest.err
34132 rm -f conftest.er1
34133 cat conftest.err >&5
a848cd7e
SC
34134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34135 (exit $ac_status); } &&
479c790c 34136 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34138 (eval $ac_try) 2>&5
34139 ac_status=$?
34140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34141 (exit $ac_status); }; } &&
34142 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34144 (eval $ac_try) 2>&5
34145 ac_status=$?
34146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34147 (exit $ac_status); }; }; then
34148 ac_cv_type_off_t=yes
34149else
34150 echo "$as_me: failed program was:" >&5
34151sed 's/^/| /' conftest.$ac_ext >&5
34152
34153ac_cv_type_off_t=no
34154fi
ac1cb8d3 34155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34156fi
34157echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34158echo "${ECHO_T}$ac_cv_type_off_t" >&6
34159if test $ac_cv_type_off_t = yes; then
34160 :
34161else
34162
34163cat >>confdefs.h <<_ACEOF
34164#define off_t long
34165_ACEOF
34166
34167fi
34168
34169echo "$as_me:$LINENO: checking for pid_t" >&5
34170echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
34171if test "${ac_cv_type_pid_t+set}" = set; then
34172 echo $ECHO_N "(cached) $ECHO_C" >&6
34173else
34174 cat >conftest.$ac_ext <<_ACEOF
34175/* confdefs.h. */
34176_ACEOF
34177cat confdefs.h >>conftest.$ac_ext
34178cat >>conftest.$ac_ext <<_ACEOF
34179/* end confdefs.h. */
34180$ac_includes_default
34181int
34182main ()
34183{
34184if ((pid_t *) 0)
34185 return 0;
34186if (sizeof (pid_t))
34187 return 0;
34188 ;
34189 return 0;
34190}
34191_ACEOF
34192rm -f conftest.$ac_objext
34193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34194 (eval $ac_compile) 2>conftest.er1
a848cd7e 34195 ac_status=$?
ac1cb8d3
VS
34196 grep -v '^ *+' conftest.er1 >conftest.err
34197 rm -f conftest.er1
34198 cat conftest.err >&5
a848cd7e
SC
34199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34200 (exit $ac_status); } &&
479c790c 34201 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34203 (eval $ac_try) 2>&5
34204 ac_status=$?
34205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34206 (exit $ac_status); }; } &&
34207 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34209 (eval $ac_try) 2>&5
34210 ac_status=$?
34211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34212 (exit $ac_status); }; }; then
34213 ac_cv_type_pid_t=yes
34214else
34215 echo "$as_me: failed program was:" >&5
34216sed 's/^/| /' conftest.$ac_ext >&5
34217
34218ac_cv_type_pid_t=no
34219fi
ac1cb8d3 34220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34221fi
34222echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34223echo "${ECHO_T}$ac_cv_type_pid_t" >&6
34224if test $ac_cv_type_pid_t = yes; then
34225 :
34226else
34227
34228cat >>confdefs.h <<_ACEOF
34229#define pid_t int
34230_ACEOF
34231
34232fi
34233
34234echo "$as_me:$LINENO: checking for size_t" >&5
34235echo $ECHO_N "checking for size_t... $ECHO_C" >&6
34236if test "${ac_cv_type_size_t+set}" = set; then
34237 echo $ECHO_N "(cached) $ECHO_C" >&6
34238else
34239 cat >conftest.$ac_ext <<_ACEOF
34240/* confdefs.h. */
34241_ACEOF
34242cat confdefs.h >>conftest.$ac_ext
34243cat >>conftest.$ac_ext <<_ACEOF
34244/* end confdefs.h. */
34245$ac_includes_default
34246int
34247main ()
34248{
34249if ((size_t *) 0)
34250 return 0;
34251if (sizeof (size_t))
34252 return 0;
34253 ;
34254 return 0;
34255}
34256_ACEOF
34257rm -f conftest.$ac_objext
34258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34259 (eval $ac_compile) 2>conftest.er1
a848cd7e 34260 ac_status=$?
ac1cb8d3
VS
34261 grep -v '^ *+' conftest.er1 >conftest.err
34262 rm -f conftest.er1
34263 cat conftest.err >&5
a848cd7e
SC
34264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34265 (exit $ac_status); } &&
479c790c 34266 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34268 (eval $ac_try) 2>&5
34269 ac_status=$?
34270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34271 (exit $ac_status); }; } &&
34272 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34274 (eval $ac_try) 2>&5
34275 ac_status=$?
34276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34277 (exit $ac_status); }; }; then
34278 ac_cv_type_size_t=yes
34279else
34280 echo "$as_me: failed program was:" >&5
34281sed 's/^/| /' conftest.$ac_ext >&5
34282
34283ac_cv_type_size_t=no
34284fi
ac1cb8d3 34285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34286fi
34287echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34288echo "${ECHO_T}$ac_cv_type_size_t" >&6
34289if test $ac_cv_type_size_t = yes; then
34290 :
34291else
34292
34293cat >>confdefs.h <<_ACEOF
34294#define size_t unsigned
34295_ACEOF
34296
34297fi
34298
34299echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34300echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34301if test "${ac_cv_type_uid_t+set}" = set; then
34302 echo $ECHO_N "(cached) $ECHO_C" >&6
34303else
34304 cat >conftest.$ac_ext <<_ACEOF
34305/* confdefs.h. */
34306_ACEOF
34307cat confdefs.h >>conftest.$ac_ext
34308cat >>conftest.$ac_ext <<_ACEOF
34309/* end confdefs.h. */
34310#include <sys/types.h>
34311
34312_ACEOF
34313if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34314 $EGREP "uid_t" >/dev/null 2>&1; then
34315 ac_cv_type_uid_t=yes
34316else
34317 ac_cv_type_uid_t=no
34318fi
34319rm -f conftest*
34320
34321fi
34322echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34323echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34324if test $ac_cv_type_uid_t = no; then
34325
34326cat >>confdefs.h <<\_ACEOF
34327#define uid_t int
34328_ACEOF
34329
34330
34331cat >>confdefs.h <<\_ACEOF
34332#define gid_t int
34333_ACEOF
34334
34335fi
34336
34337
d51253e8
RL
34338echo "$as_me:$LINENO: checking for ssize_t" >&5
34339echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
34340if test "${ac_cv_type_ssize_t+set}" = set; then
34341 echo $ECHO_N "(cached) $ECHO_C" >&6
34342else
34343 cat >conftest.$ac_ext <<_ACEOF
34344/* confdefs.h. */
34345_ACEOF
34346cat confdefs.h >>conftest.$ac_ext
34347cat >>conftest.$ac_ext <<_ACEOF
34348/* end confdefs.h. */
34349$ac_includes_default
34350int
34351main ()
34352{
34353if ((ssize_t *) 0)
34354 return 0;
34355if (sizeof (ssize_t))
34356 return 0;
34357 ;
34358 return 0;
34359}
34360_ACEOF
34361rm -f conftest.$ac_objext
34362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34363 (eval $ac_compile) 2>conftest.er1
34364 ac_status=$?
34365 grep -v '^ *+' conftest.er1 >conftest.err
34366 rm -f conftest.er1
34367 cat conftest.err >&5
34368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34369 (exit $ac_status); } &&
479c790c 34370 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d51253e8
RL
34371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34372 (eval $ac_try) 2>&5
34373 ac_status=$?
34374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34375 (exit $ac_status); }; } &&
34376 { ac_try='test -s conftest.$ac_objext'
34377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34378 (eval $ac_try) 2>&5
34379 ac_status=$?
34380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34381 (exit $ac_status); }; }; then
34382 ac_cv_type_ssize_t=yes
34383else
34384 echo "$as_me: failed program was:" >&5
34385sed 's/^/| /' conftest.$ac_ext >&5
34386
34387ac_cv_type_ssize_t=no
34388fi
34389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34390fi
34391echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34392echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
34393if test $ac_cv_type_ssize_t = yes; then
34394
34395cat >>confdefs.h <<_ACEOF
34396#define HAVE_SSIZE_T 1
34397_ACEOF
34398
34399
34400fi
34401
34402
a848cd7e
SC
34403echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34404echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
34405if test "${wx_cv_size_t_is_uint+set}" = set; then
34406 echo $ECHO_N "(cached) $ECHO_C" >&6
34407else
34408
34409 cat >conftest.$ac_ext <<_ACEOF
34410/* confdefs.h. */
34411_ACEOF
34412cat confdefs.h >>conftest.$ac_ext
34413cat >>conftest.$ac_ext <<_ACEOF
34414/* end confdefs.h. */
34415#include <stddef.h>
34416int
34417main ()
34418{
34419
34420 return 0; }
34421
34422 struct Foo { void foo(size_t); void foo(unsigned int); };
34423
34424 int bar() {
34425
34426 ;
34427 return 0;
34428}
34429_ACEOF
34430rm -f conftest.$ac_objext
34431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34432 (eval $ac_compile) 2>conftest.er1
a848cd7e 34433 ac_status=$?
ac1cb8d3
VS
34434 grep -v '^ *+' conftest.er1 >conftest.err
34435 rm -f conftest.er1
34436 cat conftest.err >&5
a848cd7e
SC
34437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34438 (exit $ac_status); } &&
479c790c 34439 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34441 (eval $ac_try) 2>&5
34442 ac_status=$?
34443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34444 (exit $ac_status); }; } &&
34445 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34447 (eval $ac_try) 2>&5
34448 ac_status=$?
34449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34450 (exit $ac_status); }; }; then
34451 wx_cv_size_t_is_uint=no
34452else
34453 echo "$as_me: failed program was:" >&5
34454sed 's/^/| /' conftest.$ac_ext >&5
34455
34456wx_cv_size_t_is_uint=yes
34457
34458fi
ac1cb8d3 34459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34460
34461
34462fi
34463echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34464echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
34465
34466if test "$wx_cv_size_t_is_uint" = "yes"; then
34467 cat >>confdefs.h <<\_ACEOF
34468#define wxSIZE_T_IS_UINT 1
34469_ACEOF
34470
34471else
34472 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34473echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
34474if test "${wx_cv_size_t_is_ulong+set}" = set; then
34475 echo $ECHO_N "(cached) $ECHO_C" >&6
34476else
34477 cat >conftest.$ac_ext <<_ACEOF
34478/* confdefs.h. */
34479_ACEOF
34480cat confdefs.h >>conftest.$ac_ext
34481cat >>conftest.$ac_ext <<_ACEOF
34482/* end confdefs.h. */
34483#include <stddef.h>
34484int
34485main ()
34486{
34487
34488 return 0; }
34489
34490 struct Foo { void foo(size_t); void foo(unsigned long); };
34491
34492 int bar() {
34493
34494 ;
34495 return 0;
34496}
34497_ACEOF
34498rm -f conftest.$ac_objext
34499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34500 (eval $ac_compile) 2>conftest.er1
a848cd7e 34501 ac_status=$?
ac1cb8d3
VS
34502 grep -v '^ *+' conftest.er1 >conftest.err
34503 rm -f conftest.er1
34504 cat conftest.err >&5
a848cd7e
SC
34505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34506 (exit $ac_status); } &&
479c790c 34507 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34509 (eval $ac_try) 2>&5
34510 ac_status=$?
34511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34512 (exit $ac_status); }; } &&
34513 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34515 (eval $ac_try) 2>&5
34516 ac_status=$?
34517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34518 (exit $ac_status); }; }; then
34519 wx_cv_size_t_is_ulong=no
34520else
34521 echo "$as_me: failed program was:" >&5
34522sed 's/^/| /' conftest.$ac_ext >&5
34523
34524wx_cv_size_t_is_ulong=yes
34525
34526fi
ac1cb8d3 34527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34528
34529fi
34530echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34531echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
34532
34533 if test "$wx_cv_size_t_is_ulong" = "yes"; then
34534 cat >>confdefs.h <<\_ACEOF
34535#define wxSIZE_T_IS_ULONG 1
34536_ACEOF
34537
34538 fi
34539fi
34540
a848cd7e
SC
34541
34542echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34543echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
34544if test "${wx_cv_struct_pw_gecos+set}" = set; then
34545 echo $ECHO_N "(cached) $ECHO_C" >&6
34546else
34547
34548 cat >conftest.$ac_ext <<_ACEOF
34549/* confdefs.h. */
34550_ACEOF
34551cat confdefs.h >>conftest.$ac_ext
34552cat >>conftest.$ac_ext <<_ACEOF
34553/* end confdefs.h. */
34554#include <pwd.h>
34555int
34556main ()
34557{
34558
34559 char *p;
34560 struct passwd *pw;
34561 p = pw->pw_gecos;
34562
34563 ;
34564 return 0;
34565}
34566_ACEOF
34567rm -f conftest.$ac_objext
34568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34569 (eval $ac_compile) 2>conftest.er1
a848cd7e 34570 ac_status=$?
ac1cb8d3
VS
34571 grep -v '^ *+' conftest.er1 >conftest.err
34572 rm -f conftest.er1
34573 cat conftest.err >&5
a848cd7e
SC
34574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34575 (exit $ac_status); } &&
479c790c 34576 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34578 (eval $ac_try) 2>&5
34579 ac_status=$?
34580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34581 (exit $ac_status); }; } &&
34582 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34584 (eval $ac_try) 2>&5
34585 ac_status=$?
34586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34587 (exit $ac_status); }; }; then
34588
34589 wx_cv_struct_pw_gecos=yes
34590
34591else
34592 echo "$as_me: failed program was:" >&5
34593sed 's/^/| /' conftest.$ac_ext >&5
34594
34595
34596 wx_cv_struct_pw_gecos=no
34597
34598
34599fi
ac1cb8d3 34600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34601
34602
34603fi
34604echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34605echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
34606
34607if test "$wx_cv_struct_pw_gecos" = "yes"; then
34608 cat >>confdefs.h <<\_ACEOF
34609#define HAVE_PW_GECOS 1
34610_ACEOF
34611
34612fi
34613
34614
47a7e797 34615if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
34616 cat >>confdefs.h <<\_ACEOF
34617#define wxUSE_WCHAR_T 1
34618_ACEOF
34619
34620
34621 WCSLEN_FOUND=0
34622 WCHAR_LINK=
34623
34624for ac_func in wcslen
34625do
34626as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34627echo "$as_me:$LINENO: checking for $ac_func" >&5
34628echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34629if eval "test \"\${$as_ac_var+set}\" = set"; then
34630 echo $ECHO_N "(cached) $ECHO_C" >&6
34631else
34632 cat >conftest.$ac_ext <<_ACEOF
34633/* confdefs.h. */
34634_ACEOF
34635cat confdefs.h >>conftest.$ac_ext
34636cat >>conftest.$ac_ext <<_ACEOF
34637/* end confdefs.h. */
ac1cb8d3
VS
34638/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34640#define $ac_func innocuous_$ac_func
34641
a848cd7e
SC
34642/* System header to define __stub macros and hopefully few prototypes,
34643 which can conflict with char $ac_func (); below.
34644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34645 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34646
a848cd7e
SC
34647#ifdef __STDC__
34648# include <limits.h>
34649#else
34650# include <assert.h>
34651#endif
ac1cb8d3
VS
34652
34653#undef $ac_func
34654
a848cd7e
SC
34655/* Override any gcc2 internal prototype to avoid an error. */
34656#ifdef __cplusplus
34657extern "C"
34658{
34659#endif
34660/* We use char because int might match the return type of a gcc2
34661 builtin and then its argument prototype would still apply. */
34662char $ac_func ();
34663/* The GNU C library defines this for functions which it implements
34664 to always fail with ENOSYS. Some functions are actually named
34665 something starting with __ and the normal name is an alias. */
34666#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34667choke me
34668#else
34669char (*f) () = $ac_func;
34670#endif
34671#ifdef __cplusplus
34672}
34673#endif
34674
34675int
34676main ()
34677{
34678return f != $ac_func;
34679 ;
34680 return 0;
34681}
34682_ACEOF
34683rm -f conftest.$ac_objext conftest$ac_exeext
34684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34685 (eval $ac_link) 2>conftest.er1
a848cd7e 34686 ac_status=$?
ac1cb8d3
VS
34687 grep -v '^ *+' conftest.er1 >conftest.err
34688 rm -f conftest.er1
34689 cat conftest.err >&5
a848cd7e
SC
34690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34691 (exit $ac_status); } &&
479c790c 34692 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34694 (eval $ac_try) 2>&5
34695 ac_status=$?
34696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34697 (exit $ac_status); }; } &&
34698 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34700 (eval $ac_try) 2>&5
34701 ac_status=$?
34702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34703 (exit $ac_status); }; }; then
34704 eval "$as_ac_var=yes"
34705else
34706 echo "$as_me: failed program was:" >&5
34707sed 's/^/| /' conftest.$ac_ext >&5
34708
34709eval "$as_ac_var=no"
34710fi
ac1cb8d3
VS
34711rm -f conftest.err conftest.$ac_objext \
34712 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34713fi
34714echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34715echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34716if test `eval echo '${'$as_ac_var'}'` = yes; then
34717 cat >>confdefs.h <<_ACEOF
34718#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34719_ACEOF
34720 WCSLEN_FOUND=1
34721fi
34722done
34723
34724
34725 if test "$WCSLEN_FOUND" = 0; then
34726 if test "$TOOLKIT" = "MSW"; then
34727 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34728echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
34729if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34730 echo $ECHO_N "(cached) $ECHO_C" >&6
34731else
34732 ac_check_lib_save_LIBS=$LIBS
34733LIBS="-lmsvcrt $LIBS"
34734cat >conftest.$ac_ext <<_ACEOF
34735/* confdefs.h. */
34736_ACEOF
34737cat confdefs.h >>conftest.$ac_ext
34738cat >>conftest.$ac_ext <<_ACEOF
34739/* end confdefs.h. */
34740
34741/* Override any gcc2 internal prototype to avoid an error. */
34742#ifdef __cplusplus
34743extern "C"
34744#endif
34745/* We use char because int might match the return type of a gcc2
34746 builtin and then its argument prototype would still apply. */
34747char wcslen ();
34748int
34749main ()
34750{
34751wcslen ();
34752 ;
34753 return 0;
34754}
34755_ACEOF
34756rm -f conftest.$ac_objext conftest$ac_exeext
34757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34758 (eval $ac_link) 2>conftest.er1
a848cd7e 34759 ac_status=$?
ac1cb8d3
VS
34760 grep -v '^ *+' conftest.er1 >conftest.err
34761 rm -f conftest.er1
34762 cat conftest.err >&5
a848cd7e
SC
34763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34764 (exit $ac_status); } &&
479c790c 34765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34767 (eval $ac_try) 2>&5
34768 ac_status=$?
34769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34770 (exit $ac_status); }; } &&
34771 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34773 (eval $ac_try) 2>&5
34774 ac_status=$?
34775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34776 (exit $ac_status); }; }; then
34777 ac_cv_lib_msvcrt_wcslen=yes
34778else
34779 echo "$as_me: failed program was:" >&5
34780sed 's/^/| /' conftest.$ac_ext >&5
34781
34782ac_cv_lib_msvcrt_wcslen=no
34783fi
ac1cb8d3
VS
34784rm -f conftest.err conftest.$ac_objext \
34785 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34786LIBS=$ac_check_lib_save_LIBS
34787fi
34788echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
34789echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
34790if test $ac_cv_lib_msvcrt_wcslen = yes; then
34791 WCHAR_OK=1
34792fi
34793
34794 else
34795 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34796echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
34797if test "${ac_cv_lib_w_wcslen+set}" = set; then
34798 echo $ECHO_N "(cached) $ECHO_C" >&6
34799else
34800 ac_check_lib_save_LIBS=$LIBS
34801LIBS="-lw $LIBS"
34802cat >conftest.$ac_ext <<_ACEOF
34803/* confdefs.h. */
34804_ACEOF
34805cat confdefs.h >>conftest.$ac_ext
34806cat >>conftest.$ac_ext <<_ACEOF
34807/* end confdefs.h. */
34808
34809/* Override any gcc2 internal prototype to avoid an error. */
34810#ifdef __cplusplus
34811extern "C"
34812#endif
34813/* We use char because int might match the return type of a gcc2
34814 builtin and then its argument prototype would still apply. */
34815char wcslen ();
34816int
34817main ()
34818{
34819wcslen ();
34820 ;
34821 return 0;
34822}
34823_ACEOF
34824rm -f conftest.$ac_objext conftest$ac_exeext
34825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34826 (eval $ac_link) 2>conftest.er1
a848cd7e 34827 ac_status=$?
ac1cb8d3
VS
34828 grep -v '^ *+' conftest.er1 >conftest.err
34829 rm -f conftest.er1
34830 cat conftest.err >&5
a848cd7e
SC
34831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34832 (exit $ac_status); } &&
479c790c 34833 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34835 (eval $ac_try) 2>&5
34836 ac_status=$?
34837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34838 (exit $ac_status); }; } &&
34839 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34841 (eval $ac_try) 2>&5
34842 ac_status=$?
34843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34844 (exit $ac_status); }; }; then
34845 ac_cv_lib_w_wcslen=yes
34846else
34847 echo "$as_me: failed program was:" >&5
34848sed 's/^/| /' conftest.$ac_ext >&5
34849
34850ac_cv_lib_w_wcslen=no
34851fi
ac1cb8d3
VS
34852rm -f conftest.err conftest.$ac_objext \
34853 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34854LIBS=$ac_check_lib_save_LIBS
34855fi
34856echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34857echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
34858if test $ac_cv_lib_w_wcslen = yes; then
34859
34860 WCHAR_LINK=" -lw"
34861 WCSLEN_FOUND=1
34862
34863fi
34864
34865 fi
34866 fi
34867
34868 if test "$WCSLEN_FOUND" = 1; then
34869 cat >>confdefs.h <<\_ACEOF
34870#define HAVE_WCSLEN 1
34871_ACEOF
34872
34873 fi
34874
efdf6afe 34875 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 34876 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
34877 fi
34878
efdf6afe
VZ
34879 echo "$as_me:$LINENO: checking for mbstate_t" >&5
34880echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
34881if test "${ac_cv_type_mbstate_t+set}" = set; then
34882 echo $ECHO_N "(cached) $ECHO_C" >&6
34883else
34884 cat >conftest.$ac_ext <<_ACEOF
34885/* confdefs.h. */
34886_ACEOF
34887cat confdefs.h >>conftest.$ac_ext
34888cat >>conftest.$ac_ext <<_ACEOF
34889/* end confdefs.h. */
34890#include <wchar.h>
34891
34892int
34893main ()
34894{
34895if ((mbstate_t *) 0)
34896 return 0;
34897if (sizeof (mbstate_t))
34898 return 0;
34899 ;
34900 return 0;
34901}
34902_ACEOF
34903rm -f conftest.$ac_objext
34904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34905 (eval $ac_compile) 2>conftest.er1
34906 ac_status=$?
34907 grep -v '^ *+' conftest.er1 >conftest.err
34908 rm -f conftest.er1
34909 cat conftest.err >&5
34910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34911 (exit $ac_status); } &&
479c790c 34912 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
efdf6afe
VZ
34913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34914 (eval $ac_try) 2>&5
34915 ac_status=$?
34916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34917 (exit $ac_status); }; } &&
34918 { ac_try='test -s conftest.$ac_objext'
34919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34920 (eval $ac_try) 2>&5
34921 ac_status=$?
34922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34923 (exit $ac_status); }; }; then
34924 ac_cv_type_mbstate_t=yes
34925else
34926 echo "$as_me: failed program was:" >&5
34927sed 's/^/| /' conftest.$ac_ext >&5
34928
34929ac_cv_type_mbstate_t=no
34930fi
34931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34932fi
34933echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
34934echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
34935if test $ac_cv_type_mbstate_t = yes; then
34936
34937cat >>confdefs.h <<_ACEOF
34938#define HAVE_MBSTATE_T 1
34939_ACEOF
34940
a848cd7e
SC
34941
34942for ac_func in wcsrtombs
34943do
34944as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34945echo "$as_me:$LINENO: checking for $ac_func" >&5
34946echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34947if eval "test \"\${$as_ac_var+set}\" = set"; then
34948 echo $ECHO_N "(cached) $ECHO_C" >&6
34949else
34950 cat >conftest.$ac_ext <<_ACEOF
34951/* confdefs.h. */
34952_ACEOF
34953cat confdefs.h >>conftest.$ac_ext
34954cat >>conftest.$ac_ext <<_ACEOF
34955/* end confdefs.h. */
ac1cb8d3
VS
34956/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34958#define $ac_func innocuous_$ac_func
34959
a848cd7e
SC
34960/* System header to define __stub macros and hopefully few prototypes,
34961 which can conflict with char $ac_func (); below.
34962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34963 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34964
a848cd7e
SC
34965#ifdef __STDC__
34966# include <limits.h>
34967#else
34968# include <assert.h>
34969#endif
ac1cb8d3
VS
34970
34971#undef $ac_func
34972
a848cd7e
SC
34973/* Override any gcc2 internal prototype to avoid an error. */
34974#ifdef __cplusplus
34975extern "C"
34976{
34977#endif
34978/* We use char because int might match the return type of a gcc2
34979 builtin and then its argument prototype would still apply. */
34980char $ac_func ();
34981/* The GNU C library defines this for functions which it implements
34982 to always fail with ENOSYS. Some functions are actually named
34983 something starting with __ and the normal name is an alias. */
34984#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34985choke me
34986#else
34987char (*f) () = $ac_func;
34988#endif
34989#ifdef __cplusplus
34990}
34991#endif
34992
34993int
34994main ()
34995{
34996return f != $ac_func;
34997 ;
34998 return 0;
34999}
35000_ACEOF
35001rm -f conftest.$ac_objext conftest$ac_exeext
35002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35003 (eval $ac_link) 2>conftest.er1
a848cd7e 35004 ac_status=$?
ac1cb8d3
VS
35005 grep -v '^ *+' conftest.er1 >conftest.err
35006 rm -f conftest.er1
35007 cat conftest.err >&5
a848cd7e
SC
35008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35009 (exit $ac_status); } &&
479c790c 35010 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35012 (eval $ac_try) 2>&5
35013 ac_status=$?
35014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35015 (exit $ac_status); }; } &&
35016 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35018 (eval $ac_try) 2>&5
35019 ac_status=$?
35020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35021 (exit $ac_status); }; }; then
35022 eval "$as_ac_var=yes"
35023else
35024 echo "$as_me: failed program was:" >&5
35025sed 's/^/| /' conftest.$ac_ext >&5
35026
35027eval "$as_ac_var=no"
35028fi
ac1cb8d3
VS
35029rm -f conftest.err conftest.$ac_objext \
35030 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35031fi
35032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35033echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35034if test `eval echo '${'$as_ac_var'}'` = yes; then
35035 cat >>confdefs.h <<_ACEOF
35036#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35037_ACEOF
35038
35039fi
35040done
35041
efdf6afe
VZ
35042fi
35043
a848cd7e
SC
35044else
35045 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
35046echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
35047fi
35048
a848cd7e 35049
4a767dd5
VZ
35050
35051for ac_func in snprintf vsnprintf
a848cd7e
SC
35052do
35053as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35054echo "$as_me:$LINENO: checking for $ac_func" >&5
35055echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35056if eval "test \"\${$as_ac_var+set}\" = set"; then
35057 echo $ECHO_N "(cached) $ECHO_C" >&6
35058else
35059 cat >conftest.$ac_ext <<_ACEOF
35060/* confdefs.h. */
35061_ACEOF
35062cat confdefs.h >>conftest.$ac_ext
35063cat >>conftest.$ac_ext <<_ACEOF
35064/* end confdefs.h. */
ac1cb8d3
VS
35065/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35067#define $ac_func innocuous_$ac_func
35068
a848cd7e
SC
35069/* System header to define __stub macros and hopefully few prototypes,
35070 which can conflict with char $ac_func (); below.
35071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35072 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35073
a848cd7e
SC
35074#ifdef __STDC__
35075# include <limits.h>
35076#else
35077# include <assert.h>
35078#endif
ac1cb8d3
VS
35079
35080#undef $ac_func
35081
a848cd7e
SC
35082/* Override any gcc2 internal prototype to avoid an error. */
35083#ifdef __cplusplus
35084extern "C"
35085{
35086#endif
35087/* We use char because int might match the return type of a gcc2
35088 builtin and then its argument prototype would still apply. */
35089char $ac_func ();
35090/* The GNU C library defines this for functions which it implements
35091 to always fail with ENOSYS. Some functions are actually named
35092 something starting with __ and the normal name is an alias. */
35093#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35094choke me
35095#else
35096char (*f) () = $ac_func;
35097#endif
35098#ifdef __cplusplus
35099}
35100#endif
35101
35102int
35103main ()
35104{
35105return f != $ac_func;
35106 ;
35107 return 0;
35108}
35109_ACEOF
35110rm -f conftest.$ac_objext conftest$ac_exeext
35111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35112 (eval $ac_link) 2>conftest.er1
a848cd7e 35113 ac_status=$?
ac1cb8d3
VS
35114 grep -v '^ *+' conftest.er1 >conftest.err
35115 rm -f conftest.er1
35116 cat conftest.err >&5
a848cd7e
SC
35117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35118 (exit $ac_status); } &&
479c790c 35119 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35121 (eval $ac_try) 2>&5
35122 ac_status=$?
35123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35124 (exit $ac_status); }; } &&
35125 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35127 (eval $ac_try) 2>&5
35128 ac_status=$?
35129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35130 (exit $ac_status); }; }; then
35131 eval "$as_ac_var=yes"
35132else
35133 echo "$as_me: failed program was:" >&5
35134sed 's/^/| /' conftest.$ac_ext >&5
35135
35136eval "$as_ac_var=no"
35137fi
ac1cb8d3
VS
35138rm -f conftest.err conftest.$ac_objext \
35139 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35140fi
35141echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35142echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35143if test `eval echo '${'$as_ac_var'}'` = yes; then
35144 cat >>confdefs.h <<_ACEOF
35145#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35146_ACEOF
35147
35148fi
35149done
35150
35151
35152if test "$ac_cv_func_vsnprintf" = "yes"; then
35153 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
35154echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
35155if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
35156 echo $ECHO_N "(cached) $ECHO_C" >&6
35157else
35158
efdf6afe 35159 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
35160/* confdefs.h. */
35161_ACEOF
35162cat confdefs.h >>conftest.$ac_ext
35163cat >>conftest.$ac_ext <<_ACEOF
35164/* end confdefs.h. */
35165
35166 #include <stdio.h>
35167 #include <stdarg.h>
efdf6afe
VZ
35168 #ifdef __MSL__
35169 #if __MSL__ >= 0x6000
35170 namespace std {}
35171 using namespace std;
35172 #endif
35173 #endif
a848cd7e
SC
35174
35175int
35176main ()
35177{
35178
35179 char *buf;
35180 va_list ap;
62fa8b3a 35181 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
35182
35183 ;
35184 return 0;
35185}
35186_ACEOF
35187rm -f conftest.$ac_objext
35188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35189 (eval $ac_compile) 2>conftest.er1
35190 ac_status=$?
35191 grep -v '^ *+' conftest.er1 >conftest.err
35192 rm -f conftest.er1
35193 cat conftest.err >&5
35194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35195 (exit $ac_status); } &&
479c790c 35196 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
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'
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_vsnprintf_decl=yes
35209else
35210 echo "$as_me: failed program was:" >&5
35211sed 's/^/| /' conftest.$ac_ext >&5
35212
a848cd7e
SC
35213wx_cv_func_vsnprintf_decl=no
35214
35215fi
ac1cb8d3 35216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35217
35218
35219fi
35220echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
35221echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
35222
35223 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
35224 cat >>confdefs.h <<\_ACEOF
35225#define HAVE_VSNPRINTF_DECL 1
35226_ACEOF
35227
62fa8b3a
MW
35228
35229 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
35230echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
35231if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
35232 echo $ECHO_N "(cached) $ECHO_C" >&6
35233else
35234
35235 cat >conftest.$ac_ext <<_ACEOF
35236/* confdefs.h. */
35237_ACEOF
35238cat confdefs.h >>conftest.$ac_ext
35239cat >>conftest.$ac_ext <<_ACEOF
35240/* end confdefs.h. */
35241
35242 #include <stdio.h>
35243 #include <stdarg.h>
35244 #ifdef __MSL__
35245 #if __MSL__ >= 0x6000
35246 namespace std {}
35247 using namespace std;
35248 #endif
35249 #endif
35250
35251int
35252main ()
35253{
35254
35255 char *buf;
35256 va_list ap;
35257 const char *fmt = "%s";
35258 vsnprintf(buf, 10u, fmt, ap);
35259
35260 ;
35261 return 0;
35262}
35263_ACEOF
35264rm -f conftest.$ac_objext
35265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35266 (eval $ac_compile) 2>conftest.er1
35267 ac_status=$?
35268 grep -v '^ *+' conftest.er1 >conftest.err
35269 rm -f conftest.er1
35270 cat conftest.err >&5
35271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35272 (exit $ac_status); } &&
479c790c 35273 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
35274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35275 (eval $ac_try) 2>&5
35276 ac_status=$?
35277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35278 (exit $ac_status); }; } &&
35279 { ac_try='test -s conftest.$ac_objext'
35280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35281 (eval $ac_try) 2>&5
35282 ac_status=$?
35283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35284 (exit $ac_status); }; }; then
35285 wx_cv_func_broken_vsnprintf_decl=no
35286else
35287 echo "$as_me: failed program was:" >&5
35288sed 's/^/| /' conftest.$ac_ext >&5
35289
35290wx_cv_func_broken_vsnprintf_decl=yes
35291
35292fi
35293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35294
35295
35296fi
35297echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35298echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
35299
35300 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35301 cat >>confdefs.h <<\_ACEOF
35302#define HAVE_BROKEN_VSNPRINTF_DECL 1
35303_ACEOF
35304
35305 fi
a848cd7e
SC
35306 fi
35307fi
35308
4a767dd5
VZ
35309if test "$ac_cv_func_snprintf" = "yes"; then
35310 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35311echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
35312if test "${wx_cv_func_snprintf_decl+set}" = set; then
35313 echo $ECHO_N "(cached) $ECHO_C" >&6
35314else
35315
35316 cat >conftest.$ac_ext <<_ACEOF
35317/* confdefs.h. */
35318_ACEOF
35319cat confdefs.h >>conftest.$ac_ext
35320cat >>conftest.$ac_ext <<_ACEOF
35321/* end confdefs.h. */
35322
35323 #include <stdio.h>
35324 #include <stdarg.h>
35325 #ifdef __MSL__
35326 #if __MSL__ >= 0x6000
35327 namespace std {}
35328 using namespace std;
35329 #endif
35330 #endif
35331
35332int
35333main ()
35334{
35335
35336 char *buf;
62fa8b3a 35337 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
35338
35339 ;
35340 return 0;
35341}
35342_ACEOF
35343rm -f conftest.$ac_objext
35344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35345 (eval $ac_compile) 2>conftest.er1
35346 ac_status=$?
35347 grep -v '^ *+' conftest.er1 >conftest.err
35348 rm -f conftest.er1
35349 cat conftest.err >&5
35350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35351 (exit $ac_status); } &&
479c790c 35352 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4a767dd5
VZ
35353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35354 (eval $ac_try) 2>&5
35355 ac_status=$?
35356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35357 (exit $ac_status); }; } &&
35358 { ac_try='test -s conftest.$ac_objext'
35359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35360 (eval $ac_try) 2>&5
35361 ac_status=$?
35362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35363 (exit $ac_status); }; }; then
35364 wx_cv_func_snprintf_decl=yes
35365else
35366 echo "$as_me: failed program was:" >&5
35367sed 's/^/| /' conftest.$ac_ext >&5
35368
35369wx_cv_func_snprintf_decl=no
35370
35371fi
35372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35373
35374
35375fi
35376echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35377echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
35378
35379 if test "$wx_cv_func_snprintf_decl" = "yes"; then
35380 cat >>confdefs.h <<\_ACEOF
35381#define HAVE_SNPRINTF_DECL 1
35382_ACEOF
35383
62fa8b3a
MW
35384
35385 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
35386echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
35387if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
35388 echo $ECHO_N "(cached) $ECHO_C" >&6
35389else
35390
35391 cat >conftest.$ac_ext <<_ACEOF
35392/* confdefs.h. */
35393_ACEOF
35394cat confdefs.h >>conftest.$ac_ext
35395cat >>conftest.$ac_ext <<_ACEOF
35396/* end confdefs.h. */
35397
35398 #include <stdio.h>
35399 #include <stdarg.h>
35400 #ifdef __MSL__
35401 #if __MSL__ >= 0x6000
35402 namespace std {}
35403 using namespace std;
35404 #endif
35405 #endif
35406
35407int
35408main ()
35409{
35410
35411 char *buf;
35412 const char *fmt = "%s";
35413 snprintf(buf, 10u, fmt, "wx");
35414
35415 ;
35416 return 0;
35417}
35418_ACEOF
35419rm -f conftest.$ac_objext
35420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35421 (eval $ac_compile) 2>conftest.er1
35422 ac_status=$?
35423 grep -v '^ *+' conftest.er1 >conftest.err
35424 rm -f conftest.er1
35425 cat conftest.err >&5
35426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35427 (exit $ac_status); } &&
479c790c 35428 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
35429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35430 (eval $ac_try) 2>&5
35431 ac_status=$?
35432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35433 (exit $ac_status); }; } &&
35434 { ac_try='test -s conftest.$ac_objext'
35435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35436 (eval $ac_try) 2>&5
35437 ac_status=$?
35438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35439 (exit $ac_status); }; }; then
35440 wx_cv_func_broken_snprintf_decl=no
35441else
35442 echo "$as_me: failed program was:" >&5
35443sed 's/^/| /' conftest.$ac_ext >&5
35444
35445wx_cv_func_broken_snprintf_decl=yes
35446
35447fi
35448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35449
35450
35451fi
35452echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
35453echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
35454
35455 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
35456 cat >>confdefs.h <<\_ACEOF
35457#define HAVE_BROKEN_SNPRINTF_DECL 1
8b6682b9
JS
35458_ACEOF
35459
35460 fi
35461 fi
35462
35463 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35464
35465 echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35466echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
35467if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35468 echo $ECHO_N "(cached) $ECHO_C" >&6
35469else
35470
35471 if test "$cross_compiling" = yes; then
5039a2df
VZ
35472
35473 { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35474define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35475echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35476define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35477 wx_cv_func_snprintf_pos_params=no
35478
35479
8b6682b9
JS
35480else
35481 cat >conftest.$ac_ext <<_ACEOF
35482/* confdefs.h. */
35483_ACEOF
35484cat confdefs.h >>conftest.$ac_ext
35485cat >>conftest.$ac_ext <<_ACEOF
35486/* end confdefs.h. */
35487
35488 #include <stdio.h>
35489
35490 int main (void)
35491 {
35492 char buffer[128];
35493 snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
35494 if (strcmp ("2 3 1", buffer) == 0)
35495 exit (0);
35496 exit (1);
35497 }
35498
35499_ACEOF
35500rm -f conftest$ac_exeext
35501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35502 (eval $ac_link) 2>&5
35503 ac_status=$?
35504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35507 (eval $ac_try) 2>&5
35508 ac_status=$?
35509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35510 (exit $ac_status); }; }; then
35511 wx_cv_func_snprintf_pos_params=no
35512else
35513 echo "$as_me: program exited with status $ac_status" >&5
35514echo "$as_me: failed program was:" >&5
35515sed 's/^/| /' conftest.$ac_ext >&5
35516
35517( exit $ac_status )
35518wx_cv_func_snprintf_pos_params=yes
8b6682b9
JS
35519fi
35520rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35521fi
35522
35523
35524fi
35525echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35526echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
35527
35528 if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35529 cat >>confdefs.h <<\_ACEOF
35530#define HAVE_UNIX98_PRINTF 1
62fa8b3a
MW
35531_ACEOF
35532
35533 fi
4a767dd5
VZ
35534 fi
35535fi
35536
a848cd7e
SC
35537if test "$wxUSE_UNICODE" = yes; then
35538
35539
6a5c9b3f
RR
35540for ac_func in swprintf
35541do
35542as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35543echo "$as_me:$LINENO: checking for $ac_func" >&5
35544echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35545if eval "test \"\${$as_ac_var+set}\" = set"; then
35546 echo $ECHO_N "(cached) $ECHO_C" >&6
35547else
35548 cat >conftest.$ac_ext <<_ACEOF
35549/* confdefs.h. */
35550_ACEOF
35551cat confdefs.h >>conftest.$ac_ext
35552cat >>conftest.$ac_ext <<_ACEOF
35553/* end confdefs.h. */
35554/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35556#define $ac_func innocuous_$ac_func
35557
35558/* System header to define __stub macros and hopefully few prototypes,
35559 which can conflict with char $ac_func (); below.
35560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35561 <limits.h> exists even on freestanding compilers. */
35562
35563#ifdef __STDC__
35564# include <limits.h>
35565#else
35566# include <assert.h>
35567#endif
35568
35569#undef $ac_func
35570
35571/* Override any gcc2 internal prototype to avoid an error. */
35572#ifdef __cplusplus
35573extern "C"
35574{
35575#endif
35576/* We use char because int might match the return type of a gcc2
35577 builtin and then its argument prototype would still apply. */
35578char $ac_func ();
35579/* The GNU C library defines this for functions which it implements
35580 to always fail with ENOSYS. Some functions are actually named
35581 something starting with __ and the normal name is an alias. */
35582#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35583choke me
35584#else
35585char (*f) () = $ac_func;
35586#endif
35587#ifdef __cplusplus
35588}
35589#endif
35590
35591int
35592main ()
35593{
35594return f != $ac_func;
35595 ;
35596 return 0;
35597}
35598_ACEOF
35599rm -f conftest.$ac_objext conftest$ac_exeext
35600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35601 (eval $ac_link) 2>conftest.er1
35602 ac_status=$?
35603 grep -v '^ *+' conftest.er1 >conftest.err
35604 rm -f conftest.er1
35605 cat conftest.err >&5
35606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35607 (exit $ac_status); } &&
479c790c 35608 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6a5c9b3f
RR
35609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35610 (eval $ac_try) 2>&5
35611 ac_status=$?
35612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35613 (exit $ac_status); }; } &&
35614 { ac_try='test -s conftest$ac_exeext'
35615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35616 (eval $ac_try) 2>&5
35617 ac_status=$?
35618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35619 (exit $ac_status); }; }; then
35620 eval "$as_ac_var=yes"
35621else
35622 echo "$as_me: failed program was:" >&5
35623sed 's/^/| /' conftest.$ac_ext >&5
35624
35625eval "$as_ac_var=no"
35626fi
35627rm -f conftest.err conftest.$ac_objext \
35628 conftest$ac_exeext conftest.$ac_ext
35629fi
35630echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35631echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35632if test `eval echo '${'$as_ac_var'}'` = yes; then
35633 cat >>confdefs.h <<_ACEOF
35634#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35635_ACEOF
35636
35637fi
35638done
35639
35640
35641 if test "$ac_cv_func_swprintf" = "yes"; then
35642 echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
35643echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6
35644if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
35645 echo $ECHO_N "(cached) $ECHO_C" >&6
35646else
35647
35648 cat >conftest.$ac_ext <<_ACEOF
35649/* confdefs.h. */
35650_ACEOF
35651cat confdefs.h >>conftest.$ac_ext
35652cat >>conftest.$ac_ext <<_ACEOF
35653/* end confdefs.h. */
35654
35655 #include <stdio.h>
35656 #include <stdarg.h>
35657 #include <wchar.h>
35658
35659int
35660main ()
35661{
35662
35663 wchar_t *buf;
35664 const wchar_t *fmt = L"test";
35665 swprintf(buf, 10u, fmt);
35666
35667 ;
35668 return 0;
35669}
35670_ACEOF
35671rm -f conftest.$ac_objext
35672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35673 (eval $ac_compile) 2>conftest.er1
35674 ac_status=$?
35675 grep -v '^ *+' conftest.er1 >conftest.err
35676 rm -f conftest.er1
35677 cat conftest.err >&5
35678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35679 (exit $ac_status); } &&
479c790c 35680 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6a5c9b3f
RR
35681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35682 (eval $ac_try) 2>&5
35683 ac_status=$?
35684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35685 (exit $ac_status); }; } &&
35686 { ac_try='test -s conftest.$ac_objext'
35687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35688 (eval $ac_try) 2>&5
35689 ac_status=$?
35690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35691 (exit $ac_status); }; }; then
35692 wx_cv_func_broken_swprintf_decl=no
35693else
35694 echo "$as_me: failed program was:" >&5
35695sed 's/^/| /' conftest.$ac_ext >&5
35696
35697wx_cv_func_broken_swprintf_decl=yes
35698
35699fi
35700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35701
35702
35703fi
35704echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
35705echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6
35706
35707 if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
35708 cat >>confdefs.h <<\_ACEOF
35709#define HAVE_BROKEN_SWPRINTF_DECL 1
35710_ACEOF
35711
35712 fi
35713 fi
35714
35715
35716
a848cd7e 35717
fbe47c7b
VS
35718
35719
35720
35721for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
35722do
35723as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35724echo "$as_me:$LINENO: checking for $ac_func" >&5
35725echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35726if eval "test \"\${$as_ac_var+set}\" = set"; then
35727 echo $ECHO_N "(cached) $ECHO_C" >&6
35728else
35729 cat >conftest.$ac_ext <<_ACEOF
35730/* confdefs.h. */
35731_ACEOF
35732cat confdefs.h >>conftest.$ac_ext
35733cat >>conftest.$ac_ext <<_ACEOF
35734/* end confdefs.h. */
ac1cb8d3
VS
35735/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35737#define $ac_func innocuous_$ac_func
35738
a848cd7e
SC
35739/* System header to define __stub macros and hopefully few prototypes,
35740 which can conflict with char $ac_func (); below.
35741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35742 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35743
a848cd7e
SC
35744#ifdef __STDC__
35745# include <limits.h>
35746#else
35747# include <assert.h>
35748#endif
ac1cb8d3
VS
35749
35750#undef $ac_func
35751
a848cd7e
SC
35752/* Override any gcc2 internal prototype to avoid an error. */
35753#ifdef __cplusplus
35754extern "C"
35755{
35756#endif
35757/* We use char because int might match the return type of a gcc2
35758 builtin and then its argument prototype would still apply. */
35759char $ac_func ();
35760/* The GNU C library defines this for functions which it implements
35761 to always fail with ENOSYS. Some functions are actually named
35762 something starting with __ and the normal name is an alias. */
35763#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35764choke me
35765#else
35766char (*f) () = $ac_func;
35767#endif
35768#ifdef __cplusplus
35769}
35770#endif
35771
35772int
35773main ()
35774{
35775return f != $ac_func;
35776 ;
35777 return 0;
35778}
35779_ACEOF
35780rm -f conftest.$ac_objext conftest$ac_exeext
35781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35782 (eval $ac_link) 2>conftest.er1
a848cd7e 35783 ac_status=$?
ac1cb8d3
VS
35784 grep -v '^ *+' conftest.er1 >conftest.err
35785 rm -f conftest.er1
35786 cat conftest.err >&5
a848cd7e
SC
35787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35788 (exit $ac_status); } &&
479c790c 35789 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35791 (eval $ac_try) 2>&5
35792 ac_status=$?
35793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35794 (exit $ac_status); }; } &&
35795 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35797 (eval $ac_try) 2>&5
35798 ac_status=$?
35799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35800 (exit $ac_status); }; }; then
35801 eval "$as_ac_var=yes"
35802else
35803 echo "$as_me: failed program was:" >&5
35804sed 's/^/| /' conftest.$ac_ext >&5
35805
35806eval "$as_ac_var=no"
35807fi
ac1cb8d3
VS
35808rm -f conftest.err conftest.$ac_objext \
35809 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35810fi
35811echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35812echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35813if test `eval echo '${'$as_ac_var'}'` = yes; then
35814 cat >>confdefs.h <<_ACEOF
35815#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35816_ACEOF
35817
35818fi
35819done
35820
35821
35822 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
35823echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
35824 cat >conftest.$ac_ext <<_ACEOF
35825/* confdefs.h. */
35826_ACEOF
35827cat confdefs.h >>conftest.$ac_ext
35828cat >>conftest.$ac_ext <<_ACEOF
35829/* end confdefs.h. */
35830#include <wchar.h>
35831int
35832main ()
35833{
35834&_vsnwprintf;
35835 ;
35836 return 0;
35837}
35838_ACEOF
35839rm -f conftest.$ac_objext
35840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35841 (eval $ac_compile) 2>conftest.er1
a848cd7e 35842 ac_status=$?
ac1cb8d3
VS
35843 grep -v '^ *+' conftest.er1 >conftest.err
35844 rm -f conftest.er1
35845 cat conftest.err >&5
a848cd7e
SC
35846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35847 (exit $ac_status); } &&
479c790c 35848 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35850 (eval $ac_try) 2>&5
35851 ac_status=$?
35852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35853 (exit $ac_status); }; } &&
35854 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35856 (eval $ac_try) 2>&5
35857 ac_status=$?
35858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35859 (exit $ac_status); }; }; then
35860 echo "$as_me:$LINENO: result: yes" >&5
35861echo "${ECHO_T}yes" >&6
35862 cat >>confdefs.h <<\_ACEOF
35863#define HAVE__VSNWPRINTF 1
35864_ACEOF
35865
35866else
35867 echo "$as_me: failed program was:" >&5
35868sed 's/^/| /' conftest.$ac_ext >&5
35869
35870echo "$as_me:$LINENO: result: no" >&5
35871echo "${ECHO_T}no" >&6
35872fi
ac1cb8d3 35873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
35874fi
35875
6ebeb4c7
VZ
35876if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
35877
35878for ac_func in fnmatch
35879do
35880as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35881echo "$as_me:$LINENO: checking for $ac_func" >&5
35882echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35883if eval "test \"\${$as_ac_var+set}\" = set"; then
35884 echo $ECHO_N "(cached) $ECHO_C" >&6
35885else
35886 cat >conftest.$ac_ext <<_ACEOF
35887/* confdefs.h. */
35888_ACEOF
35889cat confdefs.h >>conftest.$ac_ext
35890cat >>conftest.$ac_ext <<_ACEOF
35891/* end confdefs.h. */
35892/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35894#define $ac_func innocuous_$ac_func
35895
35896/* System header to define __stub macros and hopefully few prototypes,
35897 which can conflict with char $ac_func (); below.
35898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35899 <limits.h> exists even on freestanding compilers. */
35900
35901#ifdef __STDC__
35902# include <limits.h>
35903#else
35904# include <assert.h>
35905#endif
35906
35907#undef $ac_func
35908
35909/* Override any gcc2 internal prototype to avoid an error. */
35910#ifdef __cplusplus
35911extern "C"
35912{
35913#endif
35914/* We use char because int might match the return type of a gcc2
35915 builtin and then its argument prototype would still apply. */
35916char $ac_func ();
35917/* The GNU C library defines this for functions which it implements
35918 to always fail with ENOSYS. Some functions are actually named
35919 something starting with __ and the normal name is an alias. */
35920#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35921choke me
35922#else
35923char (*f) () = $ac_func;
35924#endif
35925#ifdef __cplusplus
35926}
35927#endif
35928
35929int
35930main ()
35931{
35932return f != $ac_func;
35933 ;
35934 return 0;
35935}
35936_ACEOF
35937rm -f conftest.$ac_objext conftest$ac_exeext
35938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35939 (eval $ac_link) 2>conftest.er1
35940 ac_status=$?
35941 grep -v '^ *+' conftest.er1 >conftest.err
35942 rm -f conftest.er1
35943 cat conftest.err >&5
35944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35945 (exit $ac_status); } &&
479c790c 35946 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
35947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35948 (eval $ac_try) 2>&5
35949 ac_status=$?
35950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35951 (exit $ac_status); }; } &&
35952 { ac_try='test -s conftest$ac_exeext'
35953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35954 (eval $ac_try) 2>&5
35955 ac_status=$?
35956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35957 (exit $ac_status); }; }; then
35958 eval "$as_ac_var=yes"
35959else
35960 echo "$as_me: failed program was:" >&5
35961sed 's/^/| /' conftest.$ac_ext >&5
35962
35963eval "$as_ac_var=no"
35964fi
35965rm -f conftest.err conftest.$ac_objext \
35966 conftest$ac_exeext conftest.$ac_ext
35967fi
35968echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35969echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35970if test `eval echo '${'$as_ac_var'}'` = yes; then
35971 cat >>confdefs.h <<_ACEOF
35972#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35973_ACEOF
35974
35975fi
35976done
35977
35978fi
35979
35980if test "$wxUSE_FILE" = "yes"; then
35981
35982for ac_func in fsync
35983do
35984as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35985echo "$as_me:$LINENO: checking for $ac_func" >&5
35986echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35987if eval "test \"\${$as_ac_var+set}\" = set"; then
35988 echo $ECHO_N "(cached) $ECHO_C" >&6
35989else
35990 cat >conftest.$ac_ext <<_ACEOF
35991/* confdefs.h. */
35992_ACEOF
35993cat confdefs.h >>conftest.$ac_ext
35994cat >>conftest.$ac_ext <<_ACEOF
35995/* end confdefs.h. */
35996/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35998#define $ac_func innocuous_$ac_func
35999
36000/* System header to define __stub macros and hopefully few prototypes,
36001 which can conflict with char $ac_func (); below.
36002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36003 <limits.h> exists even on freestanding compilers. */
36004
36005#ifdef __STDC__
36006# include <limits.h>
36007#else
36008# include <assert.h>
36009#endif
36010
36011#undef $ac_func
36012
36013/* Override any gcc2 internal prototype to avoid an error. */
36014#ifdef __cplusplus
36015extern "C"
36016{
36017#endif
36018/* We use char because int might match the return type of a gcc2
36019 builtin and then its argument prototype would still apply. */
36020char $ac_func ();
36021/* The GNU C library defines this for functions which it implements
36022 to always fail with ENOSYS. Some functions are actually named
36023 something starting with __ and the normal name is an alias. */
36024#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36025choke me
36026#else
36027char (*f) () = $ac_func;
36028#endif
36029#ifdef __cplusplus
36030}
36031#endif
36032
36033int
36034main ()
36035{
36036return f != $ac_func;
36037 ;
36038 return 0;
36039}
36040_ACEOF
36041rm -f conftest.$ac_objext conftest$ac_exeext
36042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36043 (eval $ac_link) 2>conftest.er1
36044 ac_status=$?
36045 grep -v '^ *+' conftest.er1 >conftest.err
36046 rm -f conftest.er1
36047 cat conftest.err >&5
36048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36049 (exit $ac_status); } &&
479c790c 36050 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
36051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36052 (eval $ac_try) 2>&5
36053 ac_status=$?
36054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36055 (exit $ac_status); }; } &&
36056 { ac_try='test -s conftest$ac_exeext'
36057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36058 (eval $ac_try) 2>&5
36059 ac_status=$?
36060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36061 (exit $ac_status); }; }; then
36062 eval "$as_ac_var=yes"
36063else
36064 echo "$as_me: failed program was:" >&5
36065sed 's/^/| /' conftest.$ac_ext >&5
36066
36067eval "$as_ac_var=no"
36068fi
36069rm -f conftest.err conftest.$ac_objext \
36070 conftest$ac_exeext conftest.$ac_ext
36071fi
36072echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36073echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36074if test `eval echo '${'$as_ac_var'}'` = yes; then
36075 cat >>confdefs.h <<_ACEOF
36076#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36077_ACEOF
36078
36079fi
36080done
36081
36082fi
a848cd7e
SC
36083
36084
c2e9ada4
VZ
36085for ac_func in round
36086do
36087as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36088echo "$as_me:$LINENO: checking for $ac_func" >&5
36089echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36090if eval "test \"\${$as_ac_var+set}\" = set"; then
36091 echo $ECHO_N "(cached) $ECHO_C" >&6
36092else
36093 cat >conftest.$ac_ext <<_ACEOF
36094/* confdefs.h. */
36095_ACEOF
36096cat confdefs.h >>conftest.$ac_ext
36097cat >>conftest.$ac_ext <<_ACEOF
36098/* end confdefs.h. */
36099/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36101#define $ac_func innocuous_$ac_func
36102
36103/* System header to define __stub macros and hopefully few prototypes,
36104 which can conflict with char $ac_func (); below.
36105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36106 <limits.h> exists even on freestanding compilers. */
36107
36108#ifdef __STDC__
36109# include <limits.h>
36110#else
36111# include <assert.h>
36112#endif
36113
36114#undef $ac_func
36115
36116/* Override any gcc2 internal prototype to avoid an error. */
36117#ifdef __cplusplus
36118extern "C"
36119{
36120#endif
36121/* We use char because int might match the return type of a gcc2
36122 builtin and then its argument prototype would still apply. */
36123char $ac_func ();
36124/* The GNU C library defines this for functions which it implements
36125 to always fail with ENOSYS. Some functions are actually named
36126 something starting with __ and the normal name is an alias. */
36127#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36128choke me
36129#else
36130char (*f) () = $ac_func;
36131#endif
36132#ifdef __cplusplus
36133}
36134#endif
36135
36136int
36137main ()
36138{
36139return f != $ac_func;
36140 ;
36141 return 0;
36142}
36143_ACEOF
36144rm -f conftest.$ac_objext conftest$ac_exeext
36145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36146 (eval $ac_link) 2>conftest.er1
36147 ac_status=$?
36148 grep -v '^ *+' conftest.er1 >conftest.err
36149 rm -f conftest.er1
36150 cat conftest.err >&5
36151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36152 (exit $ac_status); } &&
479c790c 36153 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c2e9ada4
VZ
36154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36155 (eval $ac_try) 2>&5
36156 ac_status=$?
36157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36158 (exit $ac_status); }; } &&
36159 { ac_try='test -s conftest$ac_exeext'
36160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36161 (eval $ac_try) 2>&5
36162 ac_status=$?
36163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36164 (exit $ac_status); }; }; then
36165 eval "$as_ac_var=yes"
36166else
36167 echo "$as_me: failed program was:" >&5
36168sed 's/^/| /' conftest.$ac_ext >&5
36169
36170eval "$as_ac_var=no"
36171fi
36172rm -f conftest.err conftest.$ac_objext \
36173 conftest$ac_exeext conftest.$ac_ext
36174fi
36175echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36176echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36177if test `eval echo '${'$as_ac_var'}'` = yes; then
36178 cat >>confdefs.h <<_ACEOF
36179#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36180_ACEOF
36181
36182fi
36183done
36184
36185if test "$ac_cv_func_round" = yes; then
36186 echo "$as_me:$LINENO: checking whether round is declared" >&5
36187echo $ECHO_N "checking whether round is declared... $ECHO_C" >&6
36188if test "${ac_cv_have_decl_round+set}" = set; then
36189 echo $ECHO_N "(cached) $ECHO_C" >&6
36190else
36191 cat >conftest.$ac_ext <<_ACEOF
36192/* confdefs.h. */
36193_ACEOF
36194cat confdefs.h >>conftest.$ac_ext
36195cat >>conftest.$ac_ext <<_ACEOF
36196/* end confdefs.h. */
36197#include <math.h>
36198
36199int
36200main ()
36201{
36202#ifndef round
36203 char *p = (char *) round;
36204#endif
36205
36206 ;
36207 return 0;
36208}
36209_ACEOF
36210rm -f conftest.$ac_objext
36211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36212 (eval $ac_compile) 2>conftest.er1
36213 ac_status=$?
36214 grep -v '^ *+' conftest.er1 >conftest.err
36215 rm -f conftest.er1
36216 cat conftest.err >&5
36217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36218 (exit $ac_status); } &&
479c790c 36219 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c2e9ada4
VZ
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); }; } &&
36225 { ac_try='test -s conftest.$ac_objext'
36226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36227 (eval $ac_try) 2>&5
36228 ac_status=$?
36229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36230 (exit $ac_status); }; }; then
36231 ac_cv_have_decl_round=yes
36232else
36233 echo "$as_me: failed program was:" >&5
36234sed 's/^/| /' conftest.$ac_ext >&5
36235
36236ac_cv_have_decl_round=no
36237fi
36238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36239fi
36240echo "$as_me:$LINENO: result: $ac_cv_have_decl_round" >&5
36241echo "${ECHO_T}$ac_cv_have_decl_round" >&6
36242if test $ac_cv_have_decl_round = yes; then
36243
36244cat >>confdefs.h <<_ACEOF
36245#define HAVE_DECL_ROUND 1
36246_ACEOF
36247
36248
36249else
36250 cat >>confdefs.h <<_ACEOF
36251#define HAVE_DECL_ROUND 0
36252_ACEOF
36253
36254
36255fi
36256
36257
36258fi
36259
36260
a848cd7e
SC
36261if test "$TOOLKIT" != "MSW"; then
36262
36263
a848cd7e
SC
36264
36265
36266
36267# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
36268if test "${with_libiconv_prefix+set}" = set; then
36269 withval="$with_libiconv_prefix"
36270
36271 for dir in `echo "$withval" | tr : ' '`; do
36272 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36273 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36274 done
36275
36276fi;
36277
36278 echo "$as_me:$LINENO: checking for iconv" >&5
36279echo $ECHO_N "checking for iconv... $ECHO_C" >&6
36280if test "${am_cv_func_iconv+set}" = set; then
36281 echo $ECHO_N "(cached) $ECHO_C" >&6
36282else
36283
36284 am_cv_func_iconv="no, consider installing GNU libiconv"
36285 am_cv_lib_iconv=no
36286 cat >conftest.$ac_ext <<_ACEOF
36287/* confdefs.h. */
36288_ACEOF
36289cat confdefs.h >>conftest.$ac_ext
36290cat >>conftest.$ac_ext <<_ACEOF
36291/* end confdefs.h. */
36292#include <stdlib.h>
36293#include <iconv.h>
36294int
36295main ()
36296{
36297iconv_t cd = iconv_open("","");
36298 iconv(cd,NULL,NULL,NULL,NULL);
36299 iconv_close(cd);
36300 ;
36301 return 0;
36302}
36303_ACEOF
36304rm -f conftest.$ac_objext conftest$ac_exeext
36305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36306 (eval $ac_link) 2>conftest.er1
a848cd7e 36307 ac_status=$?
ac1cb8d3
VS
36308 grep -v '^ *+' conftest.er1 >conftest.err
36309 rm -f conftest.er1
36310 cat conftest.err >&5
a848cd7e
SC
36311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36312 (exit $ac_status); } &&
479c790c 36313 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36315 (eval $ac_try) 2>&5
36316 ac_status=$?
36317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36318 (exit $ac_status); }; } &&
36319 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36321 (eval $ac_try) 2>&5
36322 ac_status=$?
36323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36324 (exit $ac_status); }; }; then
36325 am_cv_func_iconv=yes
36326else
36327 echo "$as_me: failed program was:" >&5
36328sed 's/^/| /' conftest.$ac_ext >&5
36329
36330fi
ac1cb8d3
VS
36331rm -f conftest.err conftest.$ac_objext \
36332 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36333 if test "$am_cv_func_iconv" != yes; then
36334 am_save_LIBS="$LIBS"
36335 LIBS="$LIBS -liconv"
36336 cat >conftest.$ac_ext <<_ACEOF
36337/* confdefs.h. */
36338_ACEOF
36339cat confdefs.h >>conftest.$ac_ext
36340cat >>conftest.$ac_ext <<_ACEOF
36341/* end confdefs.h. */
36342#include <stdlib.h>
36343#include <iconv.h>
36344int
36345main ()
36346{
36347iconv_t cd = iconv_open("","");
36348 iconv(cd,NULL,NULL,NULL,NULL);
36349 iconv_close(cd);
36350 ;
36351 return 0;
36352}
36353_ACEOF
36354rm -f conftest.$ac_objext conftest$ac_exeext
36355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36356 (eval $ac_link) 2>conftest.er1
a848cd7e 36357 ac_status=$?
ac1cb8d3
VS
36358 grep -v '^ *+' conftest.er1 >conftest.err
36359 rm -f conftest.er1
36360 cat conftest.err >&5
a848cd7e
SC
36361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36362 (exit $ac_status); } &&
479c790c 36363 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36365 (eval $ac_try) 2>&5
36366 ac_status=$?
36367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36368 (exit $ac_status); }; } &&
36369 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36371 (eval $ac_try) 2>&5
36372 ac_status=$?
36373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36374 (exit $ac_status); }; }; then
36375 am_cv_lib_iconv=yes
36376 am_cv_func_iconv=yes
36377else
36378 echo "$as_me: failed program was:" >&5
36379sed 's/^/| /' conftest.$ac_ext >&5
36380
36381fi
ac1cb8d3
VS
36382rm -f conftest.err conftest.$ac_objext \
36383 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36384 LIBS="$am_save_LIBS"
36385 fi
36386
36387fi
36388echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36389echo "${ECHO_T}$am_cv_func_iconv" >&6
36390 if test "$am_cv_func_iconv" = yes; then
36391
36392cat >>confdefs.h <<\_ACEOF
36393#define HAVE_ICONV 1
36394_ACEOF
36395
36396 echo "$as_me:$LINENO: checking if iconv needs const" >&5
36397echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
36398if test "${wx_cv_func_iconv_const+set}" = set; then
36399 echo $ECHO_N "(cached) $ECHO_C" >&6
36400else
36401 cat >conftest.$ac_ext <<_ACEOF
36402/* confdefs.h. */
36403_ACEOF
36404cat confdefs.h >>conftest.$ac_ext
36405cat >>conftest.$ac_ext <<_ACEOF
36406/* end confdefs.h. */
36407
36408#include <stdlib.h>
36409#include <iconv.h>
36410extern
36411#ifdef __cplusplus
36412"C"
36413#endif
36414#if defined(__STDC__) || defined(__cplusplus)
36415size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36416#else
36417size_t iconv();
36418#endif
36419
36420int
36421main ()
36422{
36423
36424 ;
36425 return 0;
36426}
36427_ACEOF
36428rm -f conftest.$ac_objext
36429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36430 (eval $ac_compile) 2>conftest.er1
a848cd7e 36431 ac_status=$?
ac1cb8d3
VS
36432 grep -v '^ *+' conftest.er1 >conftest.err
36433 rm -f conftest.er1
36434 cat conftest.err >&5
a848cd7e
SC
36435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36436 (exit $ac_status); } &&
479c790c 36437 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36439 (eval $ac_try) 2>&5
36440 ac_status=$?
36441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36442 (exit $ac_status); }; } &&
36443 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36445 (eval $ac_try) 2>&5
36446 ac_status=$?
36447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36448 (exit $ac_status); }; }; then
36449 wx_cv_func_iconv_const="no"
36450else
36451 echo "$as_me: failed program was:" >&5
36452sed 's/^/| /' conftest.$ac_ext >&5
36453
36454wx_cv_func_iconv_const="yes"
36455
36456fi
ac1cb8d3 36457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36458
36459fi
36460echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36461echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
36462
36463 iconv_const=
36464 if test "x$wx_cv_func_iconv_const" = "xyes"; then
36465 iconv_const="const"
36466 fi
36467
36468
36469cat >>confdefs.h <<_ACEOF
36470#define ICONV_CONST $iconv_const
36471_ACEOF
36472
36473 fi
36474 LIBICONV=
36475 if test "$am_cv_lib_iconv" = yes; then
36476 LIBICONV="-liconv"
36477 fi
36478
36479
36480LIBS="$LIBICONV $LIBS"
a848cd7e
SC
36481
36482if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36483
36484for ac_func in sigaction
36485do
36486as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36487echo "$as_me:$LINENO: checking for $ac_func" >&5
36488echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36489if eval "test \"\${$as_ac_var+set}\" = set"; then
36490 echo $ECHO_N "(cached) $ECHO_C" >&6
36491else
36492 cat >conftest.$ac_ext <<_ACEOF
36493/* confdefs.h. */
36494_ACEOF
36495cat confdefs.h >>conftest.$ac_ext
36496cat >>conftest.$ac_ext <<_ACEOF
36497/* end confdefs.h. */
ac1cb8d3
VS
36498/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36500#define $ac_func innocuous_$ac_func
36501
a848cd7e
SC
36502/* System header to define __stub macros and hopefully few prototypes,
36503 which can conflict with char $ac_func (); below.
36504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36505 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36506
a848cd7e
SC
36507#ifdef __STDC__
36508# include <limits.h>
36509#else
36510# include <assert.h>
36511#endif
ac1cb8d3
VS
36512
36513#undef $ac_func
36514
a848cd7e
SC
36515/* Override any gcc2 internal prototype to avoid an error. */
36516#ifdef __cplusplus
36517extern "C"
36518{
36519#endif
36520/* We use char because int might match the return type of a gcc2
36521 builtin and then its argument prototype would still apply. */
36522char $ac_func ();
36523/* The GNU C library defines this for functions which it implements
36524 to always fail with ENOSYS. Some functions are actually named
36525 something starting with __ and the normal name is an alias. */
36526#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36527choke me
36528#else
36529char (*f) () = $ac_func;
36530#endif
36531#ifdef __cplusplus
36532}
36533#endif
36534
36535int
36536main ()
36537{
36538return f != $ac_func;
36539 ;
36540 return 0;
36541}
36542_ACEOF
36543rm -f conftest.$ac_objext conftest$ac_exeext
36544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36545 (eval $ac_link) 2>conftest.er1
a848cd7e 36546 ac_status=$?
ac1cb8d3
VS
36547 grep -v '^ *+' conftest.er1 >conftest.err
36548 rm -f conftest.er1
36549 cat conftest.err >&5
a848cd7e
SC
36550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36551 (exit $ac_status); } &&
479c790c 36552 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36554 (eval $ac_try) 2>&5
36555 ac_status=$?
36556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36557 (exit $ac_status); }; } &&
36558 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36560 (eval $ac_try) 2>&5
36561 ac_status=$?
36562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36563 (exit $ac_status); }; }; then
36564 eval "$as_ac_var=yes"
36565else
36566 echo "$as_me: failed program was:" >&5
36567sed 's/^/| /' conftest.$ac_ext >&5
36568
36569eval "$as_ac_var=no"
36570fi
ac1cb8d3
VS
36571rm -f conftest.err conftest.$ac_objext \
36572 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36573fi
36574echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36575echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36576if test `eval echo '${'$as_ac_var'}'` = yes; then
36577 cat >>confdefs.h <<_ACEOF
36578#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36579_ACEOF
36580
36581fi
36582done
36583
36584
36585 if test "$ac_cv_func_sigaction" = "no"; then
36586 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36587echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36588 wxUSE_ON_FATAL_EXCEPTION=no
36589 fi
36590
36591 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
36592 echo "$as_me:$LINENO: checking for sa_handler type" >&5
36593echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
36594if test "${wx_cv_type_sa_handler+set}" = set; then
36595 echo $ECHO_N "(cached) $ECHO_C" >&6
36596else
36597
36598 cat >conftest.$ac_ext <<_ACEOF
36599/* confdefs.h. */
36600_ACEOF
36601cat confdefs.h >>conftest.$ac_ext
36602cat >>conftest.$ac_ext <<_ACEOF
36603/* end confdefs.h. */
36604#include <signal.h>
36605int
36606main ()
36607{
36608
36609 extern void testSigHandler(int);
36610
36611 struct sigaction sa;
36612 sa.sa_handler = testSigHandler;
36613
36614 ;
36615 return 0;
36616}
36617_ACEOF
36618rm -f conftest.$ac_objext
36619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36620 (eval $ac_compile) 2>conftest.er1
a848cd7e 36621 ac_status=$?
ac1cb8d3
VS
36622 grep -v '^ *+' conftest.er1 >conftest.err
36623 rm -f conftest.er1
36624 cat conftest.err >&5
a848cd7e
SC
36625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36626 (exit $ac_status); } &&
479c790c 36627 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36629 (eval $ac_try) 2>&5
36630 ac_status=$?
36631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36632 (exit $ac_status); }; } &&
36633 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36635 (eval $ac_try) 2>&5
36636 ac_status=$?
36637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36638 (exit $ac_status); }; }; then
36639
36640 wx_cv_type_sa_handler=int
36641
36642else
36643 echo "$as_me: failed program was:" >&5
36644sed 's/^/| /' conftest.$ac_ext >&5
36645
36646
36647 wx_cv_type_sa_handler=void
36648
36649fi
ac1cb8d3 36650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36651
36652fi
36653echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36654echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
36655
a848cd7e
SC
36656 cat >>confdefs.h <<_ACEOF
36657#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36658_ACEOF
36659
36660 fi
36661fi
36662
eaff0f0d 36663if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
36664 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
36665echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
36666if test "${wx_cv_func_backtrace+set}" = set; then
36667 echo $ECHO_N "(cached) $ECHO_C" >&6
36668else
36669
36670 cat >conftest.$ac_ext <<_ACEOF
36671/* confdefs.h. */
36672_ACEOF
36673cat confdefs.h >>conftest.$ac_ext
36674cat >>conftest.$ac_ext <<_ACEOF
36675/* end confdefs.h. */
36676#include <execinfo.h>
36677int
36678main ()
36679{
36680
36681 void *trace[1];
36682 char **messages;
36683
36684 backtrace(trace, 1);
36685 messages = backtrace_symbols(trace, 1);
36686
36687 ;
36688 return 0;
36689}
36690_ACEOF
36691rm -f conftest.$ac_objext
36692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36693 (eval $ac_compile) 2>conftest.er1
36694 ac_status=$?
36695 grep -v '^ *+' conftest.er1 >conftest.err
36696 rm -f conftest.er1
36697 cat conftest.err >&5
36698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36699 (exit $ac_status); } &&
479c790c 36700 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
36701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36702 (eval $ac_try) 2>&5
36703 ac_status=$?
36704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36705 (exit $ac_status); }; } &&
36706 { ac_try='test -s conftest.$ac_objext'
36707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36708 (eval $ac_try) 2>&5
36709 ac_status=$?
36710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36711 (exit $ac_status); }; }; then
36712 wx_cv_func_backtrace=yes
36713else
36714 echo "$as_me: failed program was:" >&5
36715sed 's/^/| /' conftest.$ac_ext >&5
36716
36717wx_cv_func_backtrace=no
36718
36719fi
36720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36721
36722
36723fi
36724echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
36725echo "${ECHO_T}$wx_cv_func_backtrace" >&6
36726
36727
36728 if test "$wx_cv_func_backtrace" = "no"; then
36729 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
36730echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
36731 wxUSE_STACKWALKER=no
36732 else
36733 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
36734echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
36735if test "${wx_cv_func_cxa_demangle+set}" = set; then
36736 echo $ECHO_N "(cached) $ECHO_C" >&6
36737else
36738
36739 cat >conftest.$ac_ext <<_ACEOF
36740/* confdefs.h. */
36741_ACEOF
36742cat confdefs.h >>conftest.$ac_ext
36743cat >>conftest.$ac_ext <<_ACEOF
36744/* end confdefs.h. */
36745#include <cxxabi.h>
36746int
36747main ()
36748{
36749
36750 int rc;
36751 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36752
36753 ;
36754 return 0;
36755}
36756_ACEOF
dfe0c803
JS
36757rm -f conftest.$ac_objext conftest$ac_exeext
36758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36759 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
36760 ac_status=$?
36761 grep -v '^ *+' conftest.er1 >conftest.err
36762 rm -f conftest.er1
36763 cat conftest.err >&5
36764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36765 (exit $ac_status); } &&
479c790c 36766 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
36767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36768 (eval $ac_try) 2>&5
36769 ac_status=$?
36770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36771 (exit $ac_status); }; } &&
dfe0c803 36772 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
36773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36774 (eval $ac_try) 2>&5
36775 ac_status=$?
36776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36777 (exit $ac_status); }; }; then
36778 wx_cv_func_cxa_demangle=yes
36779else
36780 echo "$as_me: failed program was:" >&5
36781sed 's/^/| /' conftest.$ac_ext >&5
36782
36783wx_cv_func_cxa_demangle=no
36784
36785fi
dfe0c803
JS
36786rm -f conftest.err conftest.$ac_objext \
36787 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
36788
36789
36790fi
36791echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
36792echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
36793
36794 if test "$wx_cv_func_cxa_demangle" = "yes"; then
36795 cat >>confdefs.h <<\_ACEOF
36796#define HAVE_CXA_DEMANGLE 1
36797_ACEOF
36798
36799 fi
36800 fi
eaff0f0d
VZ
36801fi
36802
898beab1
DE
36803if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
36804 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
36805echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
36806 wxUSE_STACKWALKER=no
36807fi
36808
36809
a848cd7e
SC
36810
36811
36812for ac_func in mkstemp mktemp
36813do
36814as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36815echo "$as_me:$LINENO: checking for $ac_func" >&5
36816echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36817if eval "test \"\${$as_ac_var+set}\" = set"; then
36818 echo $ECHO_N "(cached) $ECHO_C" >&6
36819else
36820 cat >conftest.$ac_ext <<_ACEOF
36821/* confdefs.h. */
36822_ACEOF
36823cat confdefs.h >>conftest.$ac_ext
36824cat >>conftest.$ac_ext <<_ACEOF
36825/* end confdefs.h. */
ac1cb8d3
VS
36826/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36828#define $ac_func innocuous_$ac_func
36829
a848cd7e
SC
36830/* System header to define __stub macros and hopefully few prototypes,
36831 which can conflict with char $ac_func (); below.
36832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36833 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36834
a848cd7e
SC
36835#ifdef __STDC__
36836# include <limits.h>
36837#else
36838# include <assert.h>
36839#endif
ac1cb8d3
VS
36840
36841#undef $ac_func
36842
a848cd7e
SC
36843/* Override any gcc2 internal prototype to avoid an error. */
36844#ifdef __cplusplus
36845extern "C"
36846{
36847#endif
36848/* We use char because int might match the return type of a gcc2
36849 builtin and then its argument prototype would still apply. */
36850char $ac_func ();
36851/* The GNU C library defines this for functions which it implements
36852 to always fail with ENOSYS. Some functions are actually named
36853 something starting with __ and the normal name is an alias. */
36854#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36855choke me
36856#else
36857char (*f) () = $ac_func;
36858#endif
36859#ifdef __cplusplus
36860}
36861#endif
36862
36863int
36864main ()
36865{
36866return f != $ac_func;
36867 ;
36868 return 0;
36869}
36870_ACEOF
36871rm -f conftest.$ac_objext conftest$ac_exeext
36872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36873 (eval $ac_link) 2>conftest.er1
a848cd7e 36874 ac_status=$?
ac1cb8d3
VS
36875 grep -v '^ *+' conftest.er1 >conftest.err
36876 rm -f conftest.er1
36877 cat conftest.err >&5
a848cd7e
SC
36878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36879 (exit $ac_status); } &&
479c790c 36880 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36882 (eval $ac_try) 2>&5
36883 ac_status=$?
36884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36885 (exit $ac_status); }; } &&
36886 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36888 (eval $ac_try) 2>&5
36889 ac_status=$?
36890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36891 (exit $ac_status); }; }; then
36892 eval "$as_ac_var=yes"
36893else
36894 echo "$as_me: failed program was:" >&5
36895sed 's/^/| /' conftest.$ac_ext >&5
36896
36897eval "$as_ac_var=no"
36898fi
ac1cb8d3
VS
36899rm -f conftest.err conftest.$ac_objext \
36900 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36901fi
36902echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36903echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36904if test `eval echo '${'$as_ac_var'}'` = yes; then
36905 cat >>confdefs.h <<_ACEOF
36906#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36907_ACEOF
36908 break
36909fi
36910done
36911
36912
36913echo "$as_me:$LINENO: checking for statfs" >&5
36914echo $ECHO_N "checking for statfs... $ECHO_C" >&6
36915if test "${wx_cv_func_statfs+set}" = set; then
36916 echo $ECHO_N "(cached) $ECHO_C" >&6
36917else
36918 cat >conftest.$ac_ext <<_ACEOF
36919/* confdefs.h. */
36920_ACEOF
36921cat confdefs.h >>conftest.$ac_ext
36922cat >>conftest.$ac_ext <<_ACEOF
36923/* end confdefs.h. */
36924
36925 #if defined(__BSD__)
84ae7ca4
VZ
36926 #include <sys/param.h>
36927 #include <sys/mount.h>
a848cd7e 36928 #else
84ae7ca4 36929 #include <sys/vfs.h>
a848cd7e
SC
36930 #endif
36931
36932int
36933main ()
36934{
36935
36936 long l;
36937 struct statfs fs;
36938 statfs("/", &fs);
36939 l = fs.f_bsize;
36940 l += fs.f_blocks;
36941 l += fs.f_bavail;
36942
36943 ;
36944 return 0;
36945}
36946_ACEOF
36947rm -f conftest.$ac_objext
36948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36949 (eval $ac_compile) 2>conftest.er1
a848cd7e 36950 ac_status=$?
ac1cb8d3
VS
36951 grep -v '^ *+' conftest.er1 >conftest.err
36952 rm -f conftest.er1
36953 cat conftest.err >&5
a848cd7e
SC
36954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36955 (exit $ac_status); } &&
479c790c 36956 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36958 (eval $ac_try) 2>&5
36959 ac_status=$?
36960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36961 (exit $ac_status); }; } &&
36962 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36964 (eval $ac_try) 2>&5
36965 ac_status=$?
36966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36967 (exit $ac_status); }; }; then
84ae7ca4 36968 wx_cv_func_statfs=yes
a848cd7e
SC
36969else
36970 echo "$as_me: failed program was:" >&5
36971sed 's/^/| /' conftest.$ac_ext >&5
36972
84ae7ca4 36973wx_cv_func_statfs=no
a848cd7e
SC
36974
36975fi
ac1cb8d3 36976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36977
36978fi
36979echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
36980echo "${ECHO_T}$wx_cv_func_statfs" >&6
36981
36982if test "$wx_cv_func_statfs" = "yes"; then
5d7b7554 36983 echo "$as_me:$LINENO: checking for statfs declaration" >&5
84ae7ca4
VZ
36984echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
36985if test "${wx_cv_func_statfs_decl+set}" = set; then
36986 echo $ECHO_N "(cached) $ECHO_C" >&6
36987else
0683aca6
VZ
36988 cat >conftest.$ac_ext <<_ACEOF
36989/* confdefs.h. */
36990_ACEOF
36991cat confdefs.h >>conftest.$ac_ext
36992cat >>conftest.$ac_ext <<_ACEOF
36993/* end confdefs.h. */
84ae7ca4 36994
0683aca6
VZ
36995 #if defined(__BSD__)
36996 #include <sys/param.h>
36997 #include <sys/mount.h>
36998 #else
36999 #include <sys/vfs.h>
37000 #endif
37001
37002int
37003main ()
37004{
37005
37006 struct statfs fs;
37007 statfs("", &fs);
37008
37009 ;
37010 return 0;
37011}
37012_ACEOF
37013rm -f conftest.$ac_objext
37014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37015 (eval $ac_compile) 2>conftest.er1
37016 ac_status=$?
37017 grep -v '^ *+' conftest.er1 >conftest.err
37018 rm -f conftest.er1
37019 cat conftest.err >&5
37020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37021 (exit $ac_status); } &&
479c790c 37022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0683aca6
VZ
37023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37024 (eval $ac_try) 2>&5
37025 ac_status=$?
37026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37027 (exit $ac_status); }; } &&
37028 { ac_try='test -s conftest.$ac_objext'
37029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37030 (eval $ac_try) 2>&5
37031 ac_status=$?
37032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37033 (exit $ac_status); }; }; then
37034 wx_cv_func_statfs_decl=yes
37035else
37036 echo "$as_me: failed program was:" >&5
37037sed 's/^/| /' conftest.$ac_ext >&5
37038
37039wx_cv_func_statfs_decl=no
37040
37041fi
37042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
37043
37044fi
37045echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
37046echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
84ae7ca4
VZ
37047
37048 if test "$wx_cv_func_statfs_decl" = "yes"; then
37049 cat >>confdefs.h <<\_ACEOF
37050#define HAVE_STATFS_DECL 1
37051_ACEOF
37052
37053 fi
37054
a848cd7e
SC
37055 wx_cv_type_statvfs_t="struct statfs"
37056 cat >>confdefs.h <<\_ACEOF
37057#define HAVE_STATFS 1
37058_ACEOF
37059
37060else
37061 echo "$as_me:$LINENO: checking for statvfs" >&5
37062echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
37063if test "${wx_cv_func_statvfs+set}" = set; then
37064 echo $ECHO_N "(cached) $ECHO_C" >&6
37065else
37066 cat >conftest.$ac_ext <<_ACEOF
37067/* confdefs.h. */
37068_ACEOF
37069cat confdefs.h >>conftest.$ac_ext
37070cat >>conftest.$ac_ext <<_ACEOF
37071/* end confdefs.h. */
37072
37073 #include <stddef.h>
37074 #include <sys/statvfs.h>
37075
37076int
37077main ()
37078{
37079
37080 statvfs("/", NULL);
37081
37082 ;
37083 return 0;
37084}
37085_ACEOF
37086rm -f conftest.$ac_objext
37087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37088 (eval $ac_compile) 2>conftest.er1
a848cd7e 37089 ac_status=$?
ac1cb8d3
VS
37090 grep -v '^ *+' conftest.er1 >conftest.err
37091 rm -f conftest.er1
37092 cat conftest.err >&5
a848cd7e
SC
37093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37094 (exit $ac_status); } &&
479c790c 37095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37097 (eval $ac_try) 2>&5
37098 ac_status=$?
37099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37100 (exit $ac_status); }; } &&
37101 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37103 (eval $ac_try) 2>&5
37104 ac_status=$?
37105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37106 (exit $ac_status); }; }; then
37107 wx_cv_func_statvfs=yes
37108else
37109 echo "$as_me: failed program was:" >&5
37110sed 's/^/| /' conftest.$ac_ext >&5
37111
37112wx_cv_func_statvfs=no
37113
37114fi
ac1cb8d3 37115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37116
37117fi
37118echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
37119echo "${ECHO_T}$wx_cv_func_statvfs" >&6
37120
37121 if test "$wx_cv_func_statvfs" = "yes"; then
5d7b7554 37122 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
a848cd7e
SC
37123echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
37124if test "${wx_cv_type_statvfs_t+set}" = set; then
37125 echo $ECHO_N "(cached) $ECHO_C" >&6
37126else
37127 cat >conftest.$ac_ext <<_ACEOF
37128/* confdefs.h. */
37129_ACEOF
37130cat confdefs.h >>conftest.$ac_ext
37131cat >>conftest.$ac_ext <<_ACEOF
37132/* end confdefs.h. */
37133
37134 #include <sys/statvfs.h>
37135
37136int
37137main ()
37138{
37139
37140 long l;
37141 statvfs_t fs;
37142 statvfs("/", &fs);
37143 l = fs.f_bsize;
37144 l += fs.f_blocks;
37145 l += fs.f_bavail;
37146
37147 ;
37148 return 0;
37149}
37150_ACEOF
37151rm -f conftest.$ac_objext
37152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37153 (eval $ac_compile) 2>conftest.er1
a848cd7e 37154 ac_status=$?
ac1cb8d3
VS
37155 grep -v '^ *+' conftest.er1 >conftest.err
37156 rm -f conftest.er1
37157 cat conftest.err >&5
a848cd7e
SC
37158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37159 (exit $ac_status); } &&
479c790c 37160 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
37166 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37168 (eval $ac_try) 2>&5
37169 ac_status=$?
37170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37171 (exit $ac_status); }; }; then
37172 wx_cv_type_statvfs_t=statvfs_t
37173else
37174 echo "$as_me: failed program was:" >&5
37175sed 's/^/| /' conftest.$ac_ext >&5
37176
37177
37178 cat >conftest.$ac_ext <<_ACEOF
37179/* confdefs.h. */
37180_ACEOF
37181cat confdefs.h >>conftest.$ac_ext
37182cat >>conftest.$ac_ext <<_ACEOF
37183/* end confdefs.h. */
37184
37185 #include <sys/statvfs.h>
37186
37187int
37188main ()
37189{
37190
37191 long l;
37192 struct statvfs fs;
37193 statvfs("/", &fs);
37194 l = fs.f_bsize;
37195 l += fs.f_blocks;
37196 l += fs.f_bavail;
37197
37198 ;
37199 return 0;
37200}
37201_ACEOF
37202rm -f conftest.$ac_objext
37203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37204 (eval $ac_compile) 2>conftest.er1
a848cd7e 37205 ac_status=$?
ac1cb8d3
VS
37206 grep -v '^ *+' conftest.er1 >conftest.err
37207 rm -f conftest.er1
37208 cat conftest.err >&5
a848cd7e
SC
37209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37210 (exit $ac_status); } &&
479c790c 37211 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37213 (eval $ac_try) 2>&5
37214 ac_status=$?
37215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37216 (exit $ac_status); }; } &&
37217 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37219 (eval $ac_try) 2>&5
37220 ac_status=$?
37221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37222 (exit $ac_status); }; }; then
37223 wx_cv_type_statvfs_t="struct statvfs"
37224else
37225 echo "$as_me: failed program was:" >&5
37226sed 's/^/| /' conftest.$ac_ext >&5
37227
37228wx_cv_type_statvfs_t="unknown"
37229
37230fi
ac1cb8d3 37231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37232
37233
37234fi
ac1cb8d3 37235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37236
37237fi
37238echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
37239echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
37240
a848cd7e
SC
37241 if test "$wx_cv_type_statvfs_t" != "unknown"; then
37242 cat >>confdefs.h <<\_ACEOF
37243#define HAVE_STATVFS 1
37244_ACEOF
37245
37246 fi
37247 else
37248 wx_cv_type_statvfs_t="unknown"
37249 fi
37250fi
37251
37252if test "$wx_cv_type_statvfs_t" != "unknown"; then
37253 cat >>confdefs.h <<_ACEOF
37254#define WX_STATFS_T $wx_cv_type_statvfs_t
37255_ACEOF
37256
37257else
37258 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37259echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37260fi
37261
37262if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37263
37264
37265for ac_func in fcntl flock
37266do
37267as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37268echo "$as_me:$LINENO: checking for $ac_func" >&5
37269echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37270if eval "test \"\${$as_ac_var+set}\" = set"; then
37271 echo $ECHO_N "(cached) $ECHO_C" >&6
37272else
37273 cat >conftest.$ac_ext <<_ACEOF
37274/* confdefs.h. */
37275_ACEOF
37276cat confdefs.h >>conftest.$ac_ext
37277cat >>conftest.$ac_ext <<_ACEOF
37278/* end confdefs.h. */
ac1cb8d3
VS
37279/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37281#define $ac_func innocuous_$ac_func
37282
a848cd7e
SC
37283/* System header to define __stub macros and hopefully few prototypes,
37284 which can conflict with char $ac_func (); below.
37285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37286 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37287
a848cd7e
SC
37288#ifdef __STDC__
37289# include <limits.h>
37290#else
37291# include <assert.h>
37292#endif
ac1cb8d3
VS
37293
37294#undef $ac_func
37295
a848cd7e
SC
37296/* Override any gcc2 internal prototype to avoid an error. */
37297#ifdef __cplusplus
37298extern "C"
37299{
37300#endif
37301/* We use char because int might match the return type of a gcc2
37302 builtin and then its argument prototype would still apply. */
37303char $ac_func ();
37304/* The GNU C library defines this for functions which it implements
37305 to always fail with ENOSYS. Some functions are actually named
37306 something starting with __ and the normal name is an alias. */
37307#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37308choke me
37309#else
37310char (*f) () = $ac_func;
37311#endif
37312#ifdef __cplusplus
37313}
37314#endif
37315
37316int
37317main ()
37318{
37319return f != $ac_func;
37320 ;
37321 return 0;
37322}
37323_ACEOF
37324rm -f conftest.$ac_objext conftest$ac_exeext
37325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37326 (eval $ac_link) 2>conftest.er1
a848cd7e 37327 ac_status=$?
ac1cb8d3
VS
37328 grep -v '^ *+' conftest.er1 >conftest.err
37329 rm -f conftest.er1
37330 cat conftest.err >&5
a848cd7e
SC
37331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37332 (exit $ac_status); } &&
479c790c 37333 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37335 (eval $ac_try) 2>&5
37336 ac_status=$?
37337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37338 (exit $ac_status); }; } &&
37339 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37341 (eval $ac_try) 2>&5
37342 ac_status=$?
37343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37344 (exit $ac_status); }; }; then
37345 eval "$as_ac_var=yes"
37346else
37347 echo "$as_me: failed program was:" >&5
37348sed 's/^/| /' conftest.$ac_ext >&5
37349
37350eval "$as_ac_var=no"
37351fi
ac1cb8d3
VS
37352rm -f conftest.err conftest.$ac_objext \
37353 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37354fi
37355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37356echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37357if test `eval echo '${'$as_ac_var'}'` = yes; then
37358 cat >>confdefs.h <<_ACEOF
37359#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37360_ACEOF
37361 break
37362fi
37363done
37364
37365
37366 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37367 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37368echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37369 wxUSE_SNGLINST_CHECKER=no
37370 fi
37371fi
37372
37373
37374for ac_func in timegm
37375do
37376as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37377echo "$as_me:$LINENO: checking for $ac_func" >&5
37378echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37379if eval "test \"\${$as_ac_var+set}\" = set"; then
37380 echo $ECHO_N "(cached) $ECHO_C" >&6
37381else
37382 cat >conftest.$ac_ext <<_ACEOF
37383/* confdefs.h. */
37384_ACEOF
37385cat confdefs.h >>conftest.$ac_ext
37386cat >>conftest.$ac_ext <<_ACEOF
37387/* end confdefs.h. */
ac1cb8d3
VS
37388/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37390#define $ac_func innocuous_$ac_func
37391
a848cd7e
SC
37392/* System header to define __stub macros and hopefully few prototypes,
37393 which can conflict with char $ac_func (); below.
37394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37395 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37396
a848cd7e
SC
37397#ifdef __STDC__
37398# include <limits.h>
37399#else
37400# include <assert.h>
37401#endif
ac1cb8d3
VS
37402
37403#undef $ac_func
37404
a848cd7e
SC
37405/* Override any gcc2 internal prototype to avoid an error. */
37406#ifdef __cplusplus
37407extern "C"
37408{
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 $ac_func ();
37413/* The GNU C library defines this for functions which it implements
37414 to always fail with ENOSYS. Some functions are actually named
37415 something starting with __ and the normal name is an alias. */
37416#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37417choke me
37418#else
37419char (*f) () = $ac_func;
37420#endif
37421#ifdef __cplusplus
37422}
37423#endif
37424
37425int
37426main ()
37427{
37428return f != $ac_func;
37429 ;
37430 return 0;
37431}
37432_ACEOF
37433rm -f conftest.$ac_objext conftest$ac_exeext
37434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37435 (eval $ac_link) 2>conftest.er1
a848cd7e 37436 ac_status=$?
ac1cb8d3
VS
37437 grep -v '^ *+' conftest.er1 >conftest.err
37438 rm -f conftest.er1
37439 cat conftest.err >&5
a848cd7e
SC
37440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37441 (exit $ac_status); } &&
479c790c 37442 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37444 (eval $ac_try) 2>&5
37445 ac_status=$?
37446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37447 (exit $ac_status); }; } &&
37448 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37450 (eval $ac_try) 2>&5
37451 ac_status=$?
37452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37453 (exit $ac_status); }; }; then
37454 eval "$as_ac_var=yes"
37455else
37456 echo "$as_me: failed program was:" >&5
37457sed 's/^/| /' conftest.$ac_ext >&5
37458
37459eval "$as_ac_var=no"
37460fi
ac1cb8d3
VS
37461rm -f conftest.err conftest.$ac_objext \
37462 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37463fi
37464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37465echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37466if test `eval echo '${'$as_ac_var'}'` = yes; then
37467 cat >>confdefs.h <<_ACEOF
37468#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37469_ACEOF
37470
37471fi
37472done
37473
37474
37475
37476
37477for ac_func in putenv setenv
37478do
37479as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37480echo "$as_me:$LINENO: checking for $ac_func" >&5
37481echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37482if eval "test \"\${$as_ac_var+set}\" = set"; then
37483 echo $ECHO_N "(cached) $ECHO_C" >&6
37484else
37485 cat >conftest.$ac_ext <<_ACEOF
37486/* confdefs.h. */
37487_ACEOF
37488cat confdefs.h >>conftest.$ac_ext
37489cat >>conftest.$ac_ext <<_ACEOF
37490/* end confdefs.h. */
ac1cb8d3
VS
37491/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37493#define $ac_func innocuous_$ac_func
37494
a848cd7e
SC
37495/* System header to define __stub macros and hopefully few prototypes,
37496 which can conflict with char $ac_func (); below.
37497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37498 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37499
a848cd7e
SC
37500#ifdef __STDC__
37501# include <limits.h>
37502#else
37503# include <assert.h>
37504#endif
ac1cb8d3
VS
37505
37506#undef $ac_func
37507
a848cd7e
SC
37508/* Override any gcc2 internal prototype to avoid an error. */
37509#ifdef __cplusplus
37510extern "C"
37511{
37512#endif
37513/* We use char because int might match the return type of a gcc2
37514 builtin and then its argument prototype would still apply. */
37515char $ac_func ();
37516/* The GNU C library defines this for functions which it implements
37517 to always fail with ENOSYS. Some functions are actually named
37518 something starting with __ and the normal name is an alias. */
37519#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37520choke me
37521#else
37522char (*f) () = $ac_func;
37523#endif
37524#ifdef __cplusplus
37525}
37526#endif
37527
37528int
37529main ()
37530{
37531return f != $ac_func;
37532 ;
37533 return 0;
37534}
37535_ACEOF
37536rm -f conftest.$ac_objext conftest$ac_exeext
37537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37538 (eval $ac_link) 2>conftest.er1
a848cd7e 37539 ac_status=$?
ac1cb8d3
VS
37540 grep -v '^ *+' conftest.er1 >conftest.err
37541 rm -f conftest.er1
37542 cat conftest.err >&5
a848cd7e
SC
37543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37544 (exit $ac_status); } &&
479c790c 37545 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37547 (eval $ac_try) 2>&5
37548 ac_status=$?
37549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37550 (exit $ac_status); }; } &&
37551 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37553 (eval $ac_try) 2>&5
37554 ac_status=$?
37555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37556 (exit $ac_status); }; }; then
37557 eval "$as_ac_var=yes"
37558else
37559 echo "$as_me: failed program was:" >&5
37560sed 's/^/| /' conftest.$ac_ext >&5
37561
37562eval "$as_ac_var=no"
37563fi
ac1cb8d3
VS
37564rm -f conftest.err conftest.$ac_objext \
37565 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37566fi
37567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37568echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37569if test `eval echo '${'$as_ac_var'}'` = yes; then
37570 cat >>confdefs.h <<_ACEOF
37571#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37572_ACEOF
37573 break
37574fi
37575done
37576
37577
37578HAVE_SOME_SLEEP_FUNC=0
37579if test "$USE_BEOS" = 1; then
37580 cat >>confdefs.h <<\_ACEOF
37581#define HAVE_SLEEP 1
37582_ACEOF
37583
37584 HAVE_SOME_SLEEP_FUNC=1
37585fi
37586
37587if test "$USE_DARWIN" = 1; then
37588 cat >>confdefs.h <<\_ACEOF
37589#define HAVE_USLEEP 1
37590_ACEOF
37591
37592 HAVE_SOME_SLEEP_FUNC=1
37593fi
37594
37595if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
37596 POSIX4_LINK=
37597
37598for ac_func in nanosleep
37599do
37600as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37601echo "$as_me:$LINENO: checking for $ac_func" >&5
37602echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37603if eval "test \"\${$as_ac_var+set}\" = set"; then
37604 echo $ECHO_N "(cached) $ECHO_C" >&6
37605else
37606 cat >conftest.$ac_ext <<_ACEOF
37607/* confdefs.h. */
37608_ACEOF
37609cat confdefs.h >>conftest.$ac_ext
37610cat >>conftest.$ac_ext <<_ACEOF
37611/* end confdefs.h. */
ac1cb8d3
VS
37612/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37614#define $ac_func innocuous_$ac_func
37615
a848cd7e
SC
37616/* System header to define __stub macros and hopefully few prototypes,
37617 which can conflict with char $ac_func (); below.
37618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37619 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37620
a848cd7e
SC
37621#ifdef __STDC__
37622# include <limits.h>
37623#else
37624# include <assert.h>
37625#endif
ac1cb8d3
VS
37626
37627#undef $ac_func
37628
a848cd7e
SC
37629/* Override any gcc2 internal prototype to avoid an error. */
37630#ifdef __cplusplus
37631extern "C"
37632{
37633#endif
37634/* We use char because int might match the return type of a gcc2
37635 builtin and then its argument prototype would still apply. */
37636char $ac_func ();
37637/* The GNU C library defines this for functions which it implements
37638 to always fail with ENOSYS. Some functions are actually named
37639 something starting with __ and the normal name is an alias. */
37640#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37641choke me
37642#else
37643char (*f) () = $ac_func;
37644#endif
37645#ifdef __cplusplus
37646}
37647#endif
37648
37649int
37650main ()
37651{
37652return f != $ac_func;
37653 ;
37654 return 0;
37655}
37656_ACEOF
37657rm -f conftest.$ac_objext conftest$ac_exeext
37658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37659 (eval $ac_link) 2>conftest.er1
a848cd7e 37660 ac_status=$?
ac1cb8d3
VS
37661 grep -v '^ *+' conftest.er1 >conftest.err
37662 rm -f conftest.er1
37663 cat conftest.err >&5
a848cd7e
SC
37664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37665 (exit $ac_status); } &&
479c790c 37666 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37668 (eval $ac_try) 2>&5
37669 ac_status=$?
37670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37671 (exit $ac_status); }; } &&
37672 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37674 (eval $ac_try) 2>&5
37675 ac_status=$?
37676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37677 (exit $ac_status); }; }; then
37678 eval "$as_ac_var=yes"
37679else
37680 echo "$as_me: failed program was:" >&5
37681sed 's/^/| /' conftest.$ac_ext >&5
37682
37683eval "$as_ac_var=no"
37684fi
ac1cb8d3
VS
37685rm -f conftest.err conftest.$ac_objext \
37686 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37687fi
37688echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37689echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37690if test `eval echo '${'$as_ac_var'}'` = yes; then
37691 cat >>confdefs.h <<_ACEOF
37692#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37693_ACEOF
37694 cat >>confdefs.h <<\_ACEOF
37695#define HAVE_NANOSLEEP 1
37696_ACEOF
37697
37698else
37699
37700 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
37701echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
37702if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
37703 echo $ECHO_N "(cached) $ECHO_C" >&6
37704else
37705 ac_check_lib_save_LIBS=$LIBS
37706LIBS="-lposix4 $LIBS"
37707cat >conftest.$ac_ext <<_ACEOF
37708/* confdefs.h. */
37709_ACEOF
37710cat confdefs.h >>conftest.$ac_ext
37711cat >>conftest.$ac_ext <<_ACEOF
37712/* end confdefs.h. */
37713
37714/* Override any gcc2 internal prototype to avoid an error. */
37715#ifdef __cplusplus
37716extern "C"
37717#endif
37718/* We use char because int might match the return type of a gcc2
37719 builtin and then its argument prototype would still apply. */
37720char nanosleep ();
37721int
37722main ()
37723{
37724nanosleep ();
37725 ;
37726 return 0;
37727}
37728_ACEOF
37729rm -f conftest.$ac_objext conftest$ac_exeext
37730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37731 (eval $ac_link) 2>conftest.er1
a848cd7e 37732 ac_status=$?
ac1cb8d3
VS
37733 grep -v '^ *+' conftest.er1 >conftest.err
37734 rm -f conftest.er1
37735 cat conftest.err >&5
a848cd7e
SC
37736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37737 (exit $ac_status); } &&
479c790c 37738 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37740 (eval $ac_try) 2>&5
37741 ac_status=$?
37742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37743 (exit $ac_status); }; } &&
37744 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37746 (eval $ac_try) 2>&5
37747 ac_status=$?
37748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37749 (exit $ac_status); }; }; then
37750 ac_cv_lib_posix4_nanosleep=yes
37751else
37752 echo "$as_me: failed program was:" >&5
37753sed 's/^/| /' conftest.$ac_ext >&5
37754
37755ac_cv_lib_posix4_nanosleep=no
37756fi
ac1cb8d3
VS
37757rm -f conftest.err conftest.$ac_objext \
37758 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37759LIBS=$ac_check_lib_save_LIBS
37760fi
37761echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
37762echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
37763if test $ac_cv_lib_posix4_nanosleep = yes; then
37764
37765 cat >>confdefs.h <<\_ACEOF
37766#define HAVE_NANOSLEEP 1
37767_ACEOF
37768
37769 POSIX4_LINK=" -lposix4"
37770
37771else
37772
37773
37774for ac_func in usleep
37775do
37776as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37777echo "$as_me:$LINENO: checking for $ac_func" >&5
37778echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37779if eval "test \"\${$as_ac_var+set}\" = set"; then
37780 echo $ECHO_N "(cached) $ECHO_C" >&6
37781else
37782 cat >conftest.$ac_ext <<_ACEOF
37783/* confdefs.h. */
37784_ACEOF
37785cat confdefs.h >>conftest.$ac_ext
37786cat >>conftest.$ac_ext <<_ACEOF
37787/* end confdefs.h. */
ac1cb8d3
VS
37788/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37790#define $ac_func innocuous_$ac_func
37791
a848cd7e
SC
37792/* System header to define __stub macros and hopefully few prototypes,
37793 which can conflict with char $ac_func (); below.
37794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37795 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37796
a848cd7e
SC
37797#ifdef __STDC__
37798# include <limits.h>
37799#else
37800# include <assert.h>
37801#endif
ac1cb8d3
VS
37802
37803#undef $ac_func
37804
a848cd7e
SC
37805/* Override any gcc2 internal prototype to avoid an error. */
37806#ifdef __cplusplus
37807extern "C"
37808{
37809#endif
37810/* We use char because int might match the return type of a gcc2
37811 builtin and then its argument prototype would still apply. */
37812char $ac_func ();
37813/* The GNU C library defines this for functions which it implements
37814 to always fail with ENOSYS. Some functions are actually named
37815 something starting with __ and the normal name is an alias. */
37816#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37817choke me
37818#else
37819char (*f) () = $ac_func;
37820#endif
37821#ifdef __cplusplus
37822}
37823#endif
37824
37825int
37826main ()
37827{
37828return f != $ac_func;
37829 ;
37830 return 0;
37831}
37832_ACEOF
37833rm -f conftest.$ac_objext conftest$ac_exeext
37834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37835 (eval $ac_link) 2>conftest.er1
a848cd7e 37836 ac_status=$?
ac1cb8d3
VS
37837 grep -v '^ *+' conftest.er1 >conftest.err
37838 rm -f conftest.er1
37839 cat conftest.err >&5
a848cd7e
SC
37840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37841 (exit $ac_status); } &&
479c790c 37842 { ac_try='test -z "$ac_cxx_werror_flag" || 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 eval "$as_ac_var=yes"
37855else
37856 echo "$as_me: failed program was:" >&5
37857sed 's/^/| /' conftest.$ac_ext >&5
37858
37859eval "$as_ac_var=no"
37860fi
ac1cb8d3
VS
37861rm -f conftest.err conftest.$ac_objext \
37862 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37863fi
37864echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37865echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37866if test `eval echo '${'$as_ac_var'}'` = yes; then
37867 cat >>confdefs.h <<_ACEOF
37868#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37869_ACEOF
37870 cat >>confdefs.h <<\_ACEOF
37871#define HAVE_USLEEP 1
37872_ACEOF
37873
37874else
37875 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
37876echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
37877
37878fi
37879done
37880
37881
37882
37883fi
37884
37885
37886
37887fi
37888done
37889
37890fi
37891
37892
37893
37894for ac_func in uname gethostname
37895do
37896as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37897echo "$as_me:$LINENO: checking for $ac_func" >&5
37898echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37899if eval "test \"\${$as_ac_var+set}\" = set"; then
37900 echo $ECHO_N "(cached) $ECHO_C" >&6
37901else
37902 cat >conftest.$ac_ext <<_ACEOF
37903/* confdefs.h. */
37904_ACEOF
37905cat confdefs.h >>conftest.$ac_ext
37906cat >>conftest.$ac_ext <<_ACEOF
37907/* end confdefs.h. */
ac1cb8d3
VS
37908/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37910#define $ac_func innocuous_$ac_func
37911
a848cd7e
SC
37912/* System header to define __stub macros and hopefully few prototypes,
37913 which can conflict with char $ac_func (); below.
37914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37915 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37916
a848cd7e
SC
37917#ifdef __STDC__
37918# include <limits.h>
37919#else
37920# include <assert.h>
37921#endif
ac1cb8d3
VS
37922
37923#undef $ac_func
37924
a848cd7e
SC
37925/* Override any gcc2 internal prototype to avoid an error. */
37926#ifdef __cplusplus
37927extern "C"
37928{
37929#endif
37930/* We use char because int might match the return type of a gcc2
37931 builtin and then its argument prototype would still apply. */
37932char $ac_func ();
37933/* The GNU C library defines this for functions which it implements
37934 to always fail with ENOSYS. Some functions are actually named
37935 something starting with __ and the normal name is an alias. */
37936#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37937choke me
37938#else
37939char (*f) () = $ac_func;
37940#endif
37941#ifdef __cplusplus
37942}
37943#endif
37944
37945int
37946main ()
37947{
37948return f != $ac_func;
37949 ;
37950 return 0;
37951}
37952_ACEOF
37953rm -f conftest.$ac_objext conftest$ac_exeext
37954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37955 (eval $ac_link) 2>conftest.er1
a848cd7e 37956 ac_status=$?
ac1cb8d3
VS
37957 grep -v '^ *+' conftest.er1 >conftest.err
37958 rm -f conftest.er1
37959 cat conftest.err >&5
a848cd7e
SC
37960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37961 (exit $ac_status); } &&
479c790c 37962 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37964 (eval $ac_try) 2>&5
37965 ac_status=$?
37966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37967 (exit $ac_status); }; } &&
37968 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37970 (eval $ac_try) 2>&5
37971 ac_status=$?
37972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37973 (exit $ac_status); }; }; then
37974 eval "$as_ac_var=yes"
37975else
37976 echo "$as_me: failed program was:" >&5
37977sed 's/^/| /' conftest.$ac_ext >&5
37978
37979eval "$as_ac_var=no"
37980fi
ac1cb8d3
VS
37981rm -f conftest.err conftest.$ac_objext \
37982 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37983fi
37984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37985echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37986if test `eval echo '${'$as_ac_var'}'` = yes; then
37987 cat >>confdefs.h <<_ACEOF
37988#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37989_ACEOF
37990 break
37991fi
37992done
37993
37994
56632e81
MW
37995
37996 for wx_func in strtok_r
37997 do
37998 echo "$as_me:$LINENO: checking for $wx_func" >&5
37999echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
38000if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
a848cd7e
SC
38001 echo $ECHO_N "(cached) $ECHO_C" >&6
38002else
56632e81
MW
38003
38004 cat >conftest.$ac_ext <<_ACEOF
38005
38006 /* confdefs.h. */
a848cd7e
SC
38007_ACEOF
38008cat confdefs.h >>conftest.$ac_ext
38009cat >>conftest.$ac_ext <<_ACEOF
38010/* end confdefs.h. */
56632e81
MW
38011
38012 #define _REENTRANT
38013 $ac_includes_default
38014
a848cd7e
SC
38015int
38016main ()
38017{
56632e81
MW
38018
38019 #ifndef $wx_func
38020 &$wx_func;
38021 #endif
38022
5acfd58d 38023
a848cd7e
SC
38024 ;
38025 return 0;
38026}
56632e81 38027
a848cd7e 38028_ACEOF
56632e81
MW
38029rm -f conftest.$ac_objext conftest$ac_exeext
38030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38031 (eval $ac_link) 2>conftest.er1
a848cd7e 38032 ac_status=$?
ac1cb8d3
VS
38033 grep -v '^ *+' conftest.er1 >conftest.err
38034 rm -f conftest.er1
38035 cat conftest.err >&5
a848cd7e
SC
38036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38037 (exit $ac_status); } &&
479c790c 38038 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38040 (eval $ac_try) 2>&5
38041 ac_status=$?
38042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38043 (exit $ac_status); }; } &&
56632e81 38044 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38046 (eval $ac_try) 2>&5
38047 ac_status=$?
38048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38049 (exit $ac_status); }; }; then
56632e81 38050 eval wx_cv_func_$wx_func=yes
a848cd7e
SC
38051else
38052 echo "$as_me: failed program was:" >&5
38053sed 's/^/| /' conftest.$ac_ext >&5
38054
56632e81 38055eval wx_cv_func_$wx_func=no
a848cd7e 38056fi
56632e81
MW
38057rm -f conftest.err conftest.$ac_objext \
38058 conftest$ac_exeext conftest.$ac_ext
a848cd7e 38059
56632e81
MW
38060fi
38061echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
38062echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
a848cd7e 38063
56632e81
MW
38064 if eval test \$wx_cv_func_$wx_func = yes
38065 then
38066 cat >>confdefs.h <<_ACEOF
38067#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
82a2636b
MW
38068_ACEOF
38069
38070
56632e81
MW
38071 else
38072 :
5acfd58d 38073
56632e81
MW
38074 fi
38075 done
5acfd58d 38076
a848cd7e 38077
a848cd7e
SC
38078INET_LINK=
38079
38080for ac_func in inet_addr
38081do
38082as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38083echo "$as_me:$LINENO: checking for $ac_func" >&5
38084echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38085if eval "test \"\${$as_ac_var+set}\" = set"; then
38086 echo $ECHO_N "(cached) $ECHO_C" >&6
38087else
38088 cat >conftest.$ac_ext <<_ACEOF
38089/* confdefs.h. */
38090_ACEOF
38091cat confdefs.h >>conftest.$ac_ext
38092cat >>conftest.$ac_ext <<_ACEOF
38093/* end confdefs.h. */
ac1cb8d3
VS
38094/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38096#define $ac_func innocuous_$ac_func
38097
a848cd7e
SC
38098/* System header to define __stub macros and hopefully few prototypes,
38099 which can conflict with char $ac_func (); below.
38100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38101 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38102
a848cd7e
SC
38103#ifdef __STDC__
38104# include <limits.h>
38105#else
38106# include <assert.h>
38107#endif
ac1cb8d3
VS
38108
38109#undef $ac_func
38110
a848cd7e
SC
38111/* Override any gcc2 internal prototype to avoid an error. */
38112#ifdef __cplusplus
38113extern "C"
38114{
38115#endif
38116/* We use char because int might match the return type of a gcc2
38117 builtin and then its argument prototype would still apply. */
38118char $ac_func ();
38119/* The GNU C library defines this for functions which it implements
38120 to always fail with ENOSYS. Some functions are actually named
38121 something starting with __ and the normal name is an alias. */
38122#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38123choke me
38124#else
38125char (*f) () = $ac_func;
38126#endif
38127#ifdef __cplusplus
38128}
38129#endif
38130
38131int
38132main ()
38133{
38134return f != $ac_func;
38135 ;
38136 return 0;
38137}
38138_ACEOF
38139rm -f conftest.$ac_objext conftest$ac_exeext
38140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38141 (eval $ac_link) 2>conftest.er1
a848cd7e 38142 ac_status=$?
ac1cb8d3
VS
38143 grep -v '^ *+' conftest.er1 >conftest.err
38144 rm -f conftest.er1
38145 cat conftest.err >&5
a848cd7e
SC
38146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38147 (exit $ac_status); } &&
479c790c 38148 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38150 (eval $ac_try) 2>&5
38151 ac_status=$?
38152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38153 (exit $ac_status); }; } &&
38154 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38156 (eval $ac_try) 2>&5
38157 ac_status=$?
38158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38159 (exit $ac_status); }; }; then
38160 eval "$as_ac_var=yes"
38161else
38162 echo "$as_me: failed program was:" >&5
38163sed 's/^/| /' conftest.$ac_ext >&5
38164
38165eval "$as_ac_var=no"
38166fi
ac1cb8d3
VS
38167rm -f conftest.err conftest.$ac_objext \
38168 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38169fi
38170echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38171echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38172if test `eval echo '${'$as_ac_var'}'` = yes; then
38173 cat >>confdefs.h <<_ACEOF
38174#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38175_ACEOF
38176 cat >>confdefs.h <<\_ACEOF
38177#define HAVE_INET_ADDR 1
38178_ACEOF
38179
38180else
38181
38182 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
38183echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
38184if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
38185 echo $ECHO_N "(cached) $ECHO_C" >&6
38186else
38187 ac_check_lib_save_LIBS=$LIBS
38188LIBS="-lnsl $LIBS"
38189cat >conftest.$ac_ext <<_ACEOF
38190/* confdefs.h. */
38191_ACEOF
38192cat confdefs.h >>conftest.$ac_ext
38193cat >>conftest.$ac_ext <<_ACEOF
38194/* end confdefs.h. */
38195
38196/* Override any gcc2 internal prototype to avoid an error. */
38197#ifdef __cplusplus
38198extern "C"
38199#endif
38200/* We use char because int might match the return type of a gcc2
38201 builtin and then its argument prototype would still apply. */
38202char inet_addr ();
38203int
38204main ()
38205{
38206inet_addr ();
38207 ;
38208 return 0;
38209}
38210_ACEOF
38211rm -f conftest.$ac_objext conftest$ac_exeext
38212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38213 (eval $ac_link) 2>conftest.er1
a848cd7e 38214 ac_status=$?
ac1cb8d3
VS
38215 grep -v '^ *+' conftest.er1 >conftest.err
38216 rm -f conftest.er1
38217 cat conftest.err >&5
a848cd7e
SC
38218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38219 (exit $ac_status); } &&
479c790c 38220 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38222 (eval $ac_try) 2>&5
38223 ac_status=$?
38224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38225 (exit $ac_status); }; } &&
38226 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38228 (eval $ac_try) 2>&5
38229 ac_status=$?
38230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38231 (exit $ac_status); }; }; then
38232 ac_cv_lib_nsl_inet_addr=yes
38233else
38234 echo "$as_me: failed program was:" >&5
38235sed 's/^/| /' conftest.$ac_ext >&5
38236
38237ac_cv_lib_nsl_inet_addr=no
38238fi
ac1cb8d3
VS
38239rm -f conftest.err conftest.$ac_objext \
38240 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38241LIBS=$ac_check_lib_save_LIBS
38242fi
38243echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
38244echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
38245if test $ac_cv_lib_nsl_inet_addr = yes; then
38246 INET_LINK="nsl"
38247else
38248
38249 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38250echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
38251if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
38252 echo $ECHO_N "(cached) $ECHO_C" >&6
38253else
38254 ac_check_lib_save_LIBS=$LIBS
38255LIBS="-lresolv $LIBS"
38256cat >conftest.$ac_ext <<_ACEOF
38257/* confdefs.h. */
38258_ACEOF
38259cat confdefs.h >>conftest.$ac_ext
38260cat >>conftest.$ac_ext <<_ACEOF
38261/* end confdefs.h. */
38262
38263/* Override any gcc2 internal prototype to avoid an error. */
38264#ifdef __cplusplus
38265extern "C"
38266#endif
38267/* We use char because int might match the return type of a gcc2
38268 builtin and then its argument prototype would still apply. */
38269char inet_addr ();
38270int
38271main ()
38272{
38273inet_addr ();
38274 ;
38275 return 0;
38276}
38277_ACEOF
38278rm -f conftest.$ac_objext conftest$ac_exeext
38279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38280 (eval $ac_link) 2>conftest.er1
a848cd7e 38281 ac_status=$?
ac1cb8d3
VS
38282 grep -v '^ *+' conftest.er1 >conftest.err
38283 rm -f conftest.er1
38284 cat conftest.err >&5
a848cd7e
SC
38285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38286 (exit $ac_status); } &&
479c790c 38287 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38289 (eval $ac_try) 2>&5
38290 ac_status=$?
38291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38292 (exit $ac_status); }; } &&
38293 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38295 (eval $ac_try) 2>&5
38296 ac_status=$?
38297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38298 (exit $ac_status); }; }; then
38299 ac_cv_lib_resolv_inet_addr=yes
38300else
38301 echo "$as_me: failed program was:" >&5
38302sed 's/^/| /' conftest.$ac_ext >&5
38303
38304ac_cv_lib_resolv_inet_addr=no
38305fi
ac1cb8d3
VS
38306rm -f conftest.err conftest.$ac_objext \
38307 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38308LIBS=$ac_check_lib_save_LIBS
38309fi
38310echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38311echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
38312if test $ac_cv_lib_resolv_inet_addr = yes; then
38313 INET_LINK="resolv"
38314else
38315
38316 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38317echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
38318if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38319 echo $ECHO_N "(cached) $ECHO_C" >&6
38320else
38321 ac_check_lib_save_LIBS=$LIBS
38322LIBS="-lsocket $LIBS"
38323cat >conftest.$ac_ext <<_ACEOF
38324/* confdefs.h. */
38325_ACEOF
38326cat confdefs.h >>conftest.$ac_ext
38327cat >>conftest.$ac_ext <<_ACEOF
38328/* end confdefs.h. */
38329
38330/* Override any gcc2 internal prototype to avoid an error. */
38331#ifdef __cplusplus
38332extern "C"
38333#endif
38334/* We use char because int might match the return type of a gcc2
38335 builtin and then its argument prototype would still apply. */
38336char inet_addr ();
38337int
38338main ()
38339{
38340inet_addr ();
38341 ;
38342 return 0;
38343}
38344_ACEOF
38345rm -f conftest.$ac_objext conftest$ac_exeext
38346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38347 (eval $ac_link) 2>conftest.er1
a848cd7e 38348 ac_status=$?
ac1cb8d3
VS
38349 grep -v '^ *+' conftest.er1 >conftest.err
38350 rm -f conftest.er1
38351 cat conftest.err >&5
a848cd7e
SC
38352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38353 (exit $ac_status); } &&
479c790c 38354 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38356 (eval $ac_try) 2>&5
38357 ac_status=$?
38358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38359 (exit $ac_status); }; } &&
38360 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38362 (eval $ac_try) 2>&5
38363 ac_status=$?
38364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38365 (exit $ac_status); }; }; then
38366 ac_cv_lib_socket_inet_addr=yes
38367else
38368 echo "$as_me: failed program was:" >&5
38369sed 's/^/| /' conftest.$ac_ext >&5
38370
38371ac_cv_lib_socket_inet_addr=no
38372fi
ac1cb8d3
VS
38373rm -f conftest.err conftest.$ac_objext \
38374 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38375LIBS=$ac_check_lib_save_LIBS
38376fi
38377echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38378echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
38379if test $ac_cv_lib_socket_inet_addr = yes; then
38380 INET_LINK="socket"
38381
38382fi
38383
38384
38385
38386fi
38387
38388
38389
38390fi
38391
38392
38393
38394fi
38395done
38396
38397
38398
38399for ac_func in inet_aton
38400do
38401as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38402echo "$as_me:$LINENO: checking for $ac_func" >&5
38403echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38404if eval "test \"\${$as_ac_var+set}\" = set"; then
38405 echo $ECHO_N "(cached) $ECHO_C" >&6
38406else
38407 cat >conftest.$ac_ext <<_ACEOF
38408/* confdefs.h. */
38409_ACEOF
38410cat confdefs.h >>conftest.$ac_ext
38411cat >>conftest.$ac_ext <<_ACEOF
38412/* end confdefs.h. */
ac1cb8d3
VS
38413/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38415#define $ac_func innocuous_$ac_func
38416
a848cd7e
SC
38417/* System header to define __stub macros and hopefully few prototypes,
38418 which can conflict with char $ac_func (); below.
38419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38420 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38421
a848cd7e
SC
38422#ifdef __STDC__
38423# include <limits.h>
38424#else
38425# include <assert.h>
38426#endif
ac1cb8d3
VS
38427
38428#undef $ac_func
38429
a848cd7e
SC
38430/* Override any gcc2 internal prototype to avoid an error. */
38431#ifdef __cplusplus
38432extern "C"
38433{
38434#endif
38435/* We use char because int might match the return type of a gcc2
38436 builtin and then its argument prototype would still apply. */
38437char $ac_func ();
38438/* The GNU C library defines this for functions which it implements
38439 to always fail with ENOSYS. Some functions are actually named
38440 something starting with __ and the normal name is an alias. */
38441#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38442choke me
38443#else
38444char (*f) () = $ac_func;
38445#endif
38446#ifdef __cplusplus
38447}
38448#endif
38449
38450int
38451main ()
38452{
38453return f != $ac_func;
38454 ;
38455 return 0;
38456}
38457_ACEOF
38458rm -f conftest.$ac_objext conftest$ac_exeext
38459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38460 (eval $ac_link) 2>conftest.er1
a848cd7e 38461 ac_status=$?
ac1cb8d3
VS
38462 grep -v '^ *+' conftest.er1 >conftest.err
38463 rm -f conftest.er1
38464 cat conftest.err >&5
a848cd7e
SC
38465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38466 (exit $ac_status); } &&
479c790c 38467 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38469 (eval $ac_try) 2>&5
38470 ac_status=$?
38471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38472 (exit $ac_status); }; } &&
38473 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38475 (eval $ac_try) 2>&5
38476 ac_status=$?
38477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38478 (exit $ac_status); }; }; then
38479 eval "$as_ac_var=yes"
38480else
38481 echo "$as_me: failed program was:" >&5
38482sed 's/^/| /' conftest.$ac_ext >&5
38483
38484eval "$as_ac_var=no"
38485fi
ac1cb8d3
VS
38486rm -f conftest.err conftest.$ac_objext \
38487 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38488fi
38489echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38490echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38491if test `eval echo '${'$as_ac_var'}'` = yes; then
38492 cat >>confdefs.h <<_ACEOF
38493#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38494_ACEOF
38495 cat >>confdefs.h <<\_ACEOF
38496#define HAVE_INET_ATON 1
38497_ACEOF
38498
38499else
38500
38501 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38502echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38503echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
38504if eval "test \"\${$as_ac_Lib+set}\" = set"; then
38505 echo $ECHO_N "(cached) $ECHO_C" >&6
38506else
38507 ac_check_lib_save_LIBS=$LIBS
38508LIBS="-l$INET_LINK $LIBS"
38509cat >conftest.$ac_ext <<_ACEOF
38510/* confdefs.h. */
38511_ACEOF
38512cat confdefs.h >>conftest.$ac_ext
38513cat >>conftest.$ac_ext <<_ACEOF
38514/* end confdefs.h. */
38515
38516/* Override any gcc2 internal prototype to avoid an error. */
38517#ifdef __cplusplus
38518extern "C"
38519#endif
38520/* We use char because int might match the return type of a gcc2
38521 builtin and then its argument prototype would still apply. */
38522char inet_aton ();
38523int
38524main ()
38525{
38526inet_aton ();
38527 ;
38528 return 0;
38529}
38530_ACEOF
38531rm -f conftest.$ac_objext conftest$ac_exeext
38532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38533 (eval $ac_link) 2>conftest.er1
a848cd7e 38534 ac_status=$?
ac1cb8d3
VS
38535 grep -v '^ *+' conftest.er1 >conftest.err
38536 rm -f conftest.er1
38537 cat conftest.err >&5
a848cd7e
SC
38538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38539 (exit $ac_status); } &&
479c790c 38540 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38542 (eval $ac_try) 2>&5
38543 ac_status=$?
38544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38545 (exit $ac_status); }; } &&
38546 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38548 (eval $ac_try) 2>&5
38549 ac_status=$?
38550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38551 (exit $ac_status); }; }; then
38552 eval "$as_ac_Lib=yes"
38553else
38554 echo "$as_me: failed program was:" >&5
38555sed 's/^/| /' conftest.$ac_ext >&5
38556
38557eval "$as_ac_Lib=no"
38558fi
ac1cb8d3
VS
38559rm -f conftest.err conftest.$ac_objext \
38560 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38561LIBS=$ac_check_lib_save_LIBS
38562fi
38563echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
38564echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
38565if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38566 cat >>confdefs.h <<\_ACEOF
38567#define HAVE_INET_ATON 1
38568_ACEOF
38569
38570fi
38571
38572
38573fi
38574done
38575
38576
38577if test "x$INET_LINK" != "x"; then
38578 cat >>confdefs.h <<\_ACEOF
38579#define HAVE_INET_ADDR 1
38580_ACEOF
38581
38582 INET_LINK=" -l$INET_LINK"
38583fi
38584
f8f6c91a
MW
38585
38586 for wx_func in fdopen
38587 do
38588 echo "$as_me:$LINENO: checking for $wx_func" >&5
38589echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
38590if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
38591 echo $ECHO_N "(cached) $ECHO_C" >&6
38592else
38593
38594 cat >conftest.$ac_ext <<_ACEOF
38595
38596 /* confdefs.h. */
38597_ACEOF
38598cat confdefs.h >>conftest.$ac_ext
38599cat >>conftest.$ac_ext <<_ACEOF
38600/* end confdefs.h. */
38601
38602
38603 $ac_includes_default
38604
38605int
38606main ()
38607{
38608
38609 #ifndef $wx_func
38610 &$wx_func;
38611 #endif
38612
38613
38614 ;
38615 return 0;
38616}
38617
38618_ACEOF
38619rm -f conftest.$ac_objext conftest$ac_exeext
38620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38621 (eval $ac_link) 2>conftest.er1
38622 ac_status=$?
38623 grep -v '^ *+' conftest.er1 >conftest.err
38624 rm -f conftest.er1
38625 cat conftest.err >&5
38626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38627 (exit $ac_status); } &&
38628 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
38629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38630 (eval $ac_try) 2>&5
38631 ac_status=$?
38632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38633 (exit $ac_status); }; } &&
38634 { ac_try='test -s conftest$ac_exeext'
38635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38636 (eval $ac_try) 2>&5
38637 ac_status=$?
38638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38639 (exit $ac_status); }; }; then
38640 eval wx_cv_func_$wx_func=yes
38641else
38642 echo "$as_me: failed program was:" >&5
38643sed 's/^/| /' conftest.$ac_ext >&5
38644
38645eval wx_cv_func_$wx_func=no
a848cd7e 38646fi
f8f6c91a
MW
38647rm -f conftest.err conftest.$ac_objext \
38648 conftest$ac_exeext conftest.$ac_ext
38649
38650fi
38651echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
38652echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
38653
38654 if eval test \$wx_cv_func_$wx_func = yes
38655 then
38656 cat >>confdefs.h <<_ACEOF
38657#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
38658_ACEOF
38659
38660
38661 else
38662 :
38663
38664 fi
38665 done
38666
38667
38668fi
38669
a848cd7e
SC
38670
38671
38672
38673EXTRALIBS_ESD=
38674echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
38675echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
38676if test "${ac_cv_lib_esd_esd_close+set}" = set; then
38677 echo $ECHO_N "(cached) $ECHO_C" >&6
38678else
38679 ac_check_lib_save_LIBS=$LIBS
38680LIBS="-lesd $LIBS"
38681cat >conftest.$ac_ext <<_ACEOF
38682/* confdefs.h. */
38683_ACEOF
38684cat confdefs.h >>conftest.$ac_ext
38685cat >>conftest.$ac_ext <<_ACEOF
38686/* end confdefs.h. */
38687
38688/* Override any gcc2 internal prototype to avoid an error. */
38689#ifdef __cplusplus
38690extern "C"
38691#endif
38692/* We use char because int might match the return type of a gcc2
38693 builtin and then its argument prototype would still apply. */
38694char esd_close ();
38695int
38696main ()
38697{
38698esd_close ();
38699 ;
38700 return 0;
38701}
38702_ACEOF
38703rm -f conftest.$ac_objext conftest$ac_exeext
38704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38705 (eval $ac_link) 2>conftest.er1
a848cd7e 38706 ac_status=$?
ac1cb8d3
VS
38707 grep -v '^ *+' conftest.er1 >conftest.err
38708 rm -f conftest.er1
38709 cat conftest.err >&5
a848cd7e
SC
38710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38711 (exit $ac_status); } &&
479c790c 38712 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38714 (eval $ac_try) 2>&5
38715 ac_status=$?
38716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38717 (exit $ac_status); }; } &&
38718 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38720 (eval $ac_try) 2>&5
38721 ac_status=$?
38722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38723 (exit $ac_status); }; }; then
38724 ac_cv_lib_esd_esd_close=yes
38725else
38726 echo "$as_me: failed program was:" >&5
38727sed 's/^/| /' conftest.$ac_ext >&5
38728
38729ac_cv_lib_esd_esd_close=no
38730fi
ac1cb8d3
VS
38731rm -f conftest.err conftest.$ac_objext \
38732 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38733LIBS=$ac_check_lib_save_LIBS
38734fi
38735echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
38736echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
38737if test $ac_cv_lib_esd_esd_close = yes; then
38738
38739
38740for ac_header in esd.h
38741do
38742as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38743if eval "test \"\${$as_ac_Header+set}\" = set"; then
38744 echo "$as_me:$LINENO: checking for $ac_header" >&5
38745echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38746if eval "test \"\${$as_ac_Header+set}\" = set"; then
38747 echo $ECHO_N "(cached) $ECHO_C" >&6
38748fi
38749echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38750echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38751else
38752 # Is the header compilable?
38753echo "$as_me:$LINENO: checking $ac_header usability" >&5
38754echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38755cat >conftest.$ac_ext <<_ACEOF
38756/* confdefs.h. */
38757_ACEOF
38758cat confdefs.h >>conftest.$ac_ext
38759cat >>conftest.$ac_ext <<_ACEOF
38760/* end confdefs.h. */
38761$ac_includes_default
38762#include <$ac_header>
38763_ACEOF
38764rm -f conftest.$ac_objext
38765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38766 (eval $ac_compile) 2>conftest.er1
a848cd7e 38767 ac_status=$?
ac1cb8d3
VS
38768 grep -v '^ *+' conftest.er1 >conftest.err
38769 rm -f conftest.er1
38770 cat conftest.err >&5
a848cd7e
SC
38771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38772 (exit $ac_status); } &&
479c790c 38773 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38775 (eval $ac_try) 2>&5
38776 ac_status=$?
38777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38778 (exit $ac_status); }; } &&
38779 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38781 (eval $ac_try) 2>&5
38782 ac_status=$?
38783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38784 (exit $ac_status); }; }; then
38785 ac_header_compiler=yes
38786else
38787 echo "$as_me: failed program was:" >&5
38788sed 's/^/| /' conftest.$ac_ext >&5
38789
38790ac_header_compiler=no
38791fi
ac1cb8d3 38792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38793echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38794echo "${ECHO_T}$ac_header_compiler" >&6
38795
38796# Is the header present?
38797echo "$as_me:$LINENO: checking $ac_header presence" >&5
38798echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38799cat >conftest.$ac_ext <<_ACEOF
38800/* confdefs.h. */
38801_ACEOF
38802cat confdefs.h >>conftest.$ac_ext
38803cat >>conftest.$ac_ext <<_ACEOF
38804/* end confdefs.h. */
38805#include <$ac_header>
38806_ACEOF
38807if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38809 ac_status=$?
38810 grep -v '^ *+' conftest.er1 >conftest.err
38811 rm -f conftest.er1
38812 cat conftest.err >&5
38813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38814 (exit $ac_status); } >/dev/null; then
38815 if test -s conftest.err; then
5d7b7554
VZ
38816 ac_cpp_err=$ac_cxx_preproc_warn_flag
38817 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
38818 else
38819 ac_cpp_err=
38820 fi
38821else
38822 ac_cpp_err=yes
38823fi
38824if test -z "$ac_cpp_err"; then
38825 ac_header_preproc=yes
38826else
38827 echo "$as_me: failed program was:" >&5
38828sed 's/^/| /' conftest.$ac_ext >&5
38829
38830 ac_header_preproc=no
38831fi
38832rm -f conftest.err conftest.$ac_ext
38833echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38834echo "${ECHO_T}$ac_header_preproc" >&6
38835
38836# So? What about this header?
5d7b7554 38837case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 38838 yes:no: )
a848cd7e
SC
38839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38840echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38842echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38843 ac_header_preproc=yes
a848cd7e 38844 ;;
ac1cb8d3 38845 no:yes:* )
a848cd7e
SC
38846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38847echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38849echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38850 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38851echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38852 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38853echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38855echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38856 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38857echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38858 (
38859 cat <<\_ASBOX
ac1cb8d3
VS
38860## ----------------------------------------- ##
38861## Report this to wx-dev@lists.wxwidgets.org ##
38862## ----------------------------------------- ##
a848cd7e
SC
38863_ASBOX
38864 ) |
38865 sed "s/^/$as_me: WARNING: /" >&2
38866 ;;
38867esac
38868echo "$as_me:$LINENO: checking for $ac_header" >&5
38869echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38870if eval "test \"\${$as_ac_Header+set}\" = set"; then
38871 echo $ECHO_N "(cached) $ECHO_C" >&6
38872else
ac1cb8d3 38873 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38874fi
38875echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38876echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38877
38878fi
38879if test `eval echo '${'$as_ac_Header'}'` = yes; then
38880 cat >>confdefs.h <<_ACEOF
38881#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38882_ACEOF
38883
38884 EXTRALIBS_ESD="-lesd"
38885
38886fi
38887
38888done
38889
38890
38891fi
38892
38893
38894
38895echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
38896echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
38897cat >conftest.$ac_ext <<_ACEOF
38898/* confdefs.h. */
38899_ACEOF
38900cat confdefs.h >>conftest.$ac_ext
38901cat >>conftest.$ac_ext <<_ACEOF
38902/* end confdefs.h. */
38903#ifdef __linux__
38904 #include <linux/cdrom.h>
38905 #else
38906 /* For Solaris */
38907 #include <sys/cdio.h>
38908 #endif
38909
38910int
38911main ()
38912{
38913struct cdrom_tocentry entry, old_entry;
38914 ;
38915 return 0;
38916}
38917_ACEOF
38918rm -f conftest.$ac_objext
38919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38920 (eval $ac_compile) 2>conftest.er1
a848cd7e 38921 ac_status=$?
ac1cb8d3
VS
38922 grep -v '^ *+' conftest.er1 >conftest.err
38923 rm -f conftest.er1
38924 cat conftest.err >&5
a848cd7e
SC
38925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38926 (exit $ac_status); } &&
479c790c 38927 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38929 (eval $ac_try) 2>&5
38930 ac_status=$?
38931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38932 (exit $ac_status); }; } &&
38933 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38935 (eval $ac_try) 2>&5
38936 ac_status=$?
38937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38938 (exit $ac_status); }; }; then
38939 echo "$as_me:$LINENO: result: yes" >&5
38940echo "${ECHO_T}yes" >&6
38941 cat >>confdefs.h <<\_ACEOF
38942#define HAVE_KNOWN_CDROM_INTERFACE 1
38943_ACEOF
38944
38945else
38946 echo "$as_me: failed program was:" >&5
38947sed 's/^/| /' conftest.$ac_ext >&5
38948
38949echo "$as_me:$LINENO: result: no" >&5
38950echo "${ECHO_T}no" >&6
38951fi
ac1cb8d3 38952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38953
38954
38955cat >confcache <<\_ACEOF
38956# This file is a shell script that caches the results of configure
38957# tests run on this system so they can be shared between configure
38958# scripts and configure runs, see configure's option --config-cache.
38959# It is not useful on other systems. If it contains results you don't
38960# want to keep, you may remove or edit it.
38961#
38962# config.status only pays attention to the cache file if you give it
38963# the --recheck option to rerun configure.
38964#
38965# `ac_cv_env_foo' variables (set or unset) will be overridden when
38966# loading this file, other *unset* `ac_cv_foo' will be assigned the
38967# following values.
38968
38969_ACEOF
38970
38971# The following way of writing the cache mishandles newlines in values,
38972# but we know of no workaround that is simple, portable, and efficient.
38973# So, don't put newlines in cache variables' values.
38974# Ultrix sh set writes to stderr and can't be redirected directly,
38975# and sets the high bit in the cache file unless we assign to the vars.
38976{
38977 (set) 2>&1 |
38978 case `(ac_space=' '; set | grep ac_space) 2>&1` in
38979 *ac_space=\ *)
38980 # `set' does not quote correctly, so add quotes (double-quote
38981 # substitution turns \\\\ into \\, and sed turns \\ into \).
38982 sed -n \
ac1cb8d3
VS
38983 "s/'/'\\\\''/g;
38984 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
38985 ;;
38986 *)
38987 # `set' quotes correctly as required by POSIX, so do not add quotes.
38988 sed -n \
ac1cb8d3 38989 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
38990 ;;
38991 esac;
38992} |
38993 sed '
38994 t clear
38995 : clear
38996 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38997 t end
38998 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38999 : end' >>confcache
39000if diff $cache_file confcache >/dev/null 2>&1; then :; else
39001 if test -w $cache_file; then
39002 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
39003 cat confcache >$cache_file
39004 else
39005 echo "not updating unwritable cache $cache_file"
39006 fi
39007fi
39008rm -f confcache
39009
39010
a848cd7e
SC
39011if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
39012
39013
39014 THREADS_LINK=
e56f4f9e 39015 THREADS_CXXFLAGS=
a848cd7e
SC
39016
39017 if test "$wxUSE_THREADS" = "yes" ; then
39018 if test "$USE_BEOS" = 1; then
39019 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
39020echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
39021 wxUSE_THREADS="no"
39022 fi
39023 fi
39024
39025 if test "$wxUSE_THREADS" = "yes" ; then
39026
39027
39028 THREAD_OPTS="-pthread"
39029 case "${host}" in
39030 *-*-solaris2* | *-*-sunos4* )
39031 if test "x$GCC" = "xyes"; then
39032 THREAD_OPTS="-pthreads $THREAD_OPTS"
39033 else
39034 THREAD_OPTS="-mt $THREAD_OPTS"
39035 fi
39036 ;;
39037 *-*-freebsd*)
39038 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
39039 ;;
39040 *-*-darwin* | *-*-cygwin* )
39041 THREAD_OPTS=""
39042 ;;
39043 *-*-aix*)
39044 THREAD_OPTS="pthreads"
39045 ;;
39046 *-hp-hpux* )
00421666
MW
39047 if test "x$GCC" = "xyes"; then
39048 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
39049 THREAD_OPTS=""
39050 else
0093c2fc 39051 THREAD_OPTS="-mt"
a848cd7e
SC
39052 fi
39053 ;;
39054
39055 *-*-irix* )
39056 if test "x$GCC" = "xyes"; then
39057 THREAD_OPTS=""
39058 fi
39059 ;;
39060
39061 *-*-*UnixWare*)
39062 if test "x$GCC" != "xyes"; then
39063 THREAD_OPTS="-Ethread"
39064 fi
39065 ;;
39066 esac
39067
39068 THREAD_OPTS="$THREAD_OPTS pthread none"
39069
39070 THREADS_OK=no
39071 for flag in $THREAD_OPTS; do
39072 case $flag in
39073 none)
39074 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
39075echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
39076 ;;
39077
39078 -*)
39079 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
39080echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
e56f4f9e 39081 THREADS_CXXFLAGS="$flag"
a848cd7e
SC
39082 ;;
39083
39084 *)
39085 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
39086echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
39087 THREADS_LINK="-l$flag"
39088 ;;
39089 esac
39090
39091 save_LIBS="$LIBS"
e56f4f9e 39092 save_CXXFLAGS="$CXXFLAGS"
a848cd7e 39093 LIBS="$THREADS_LINK $LIBS"
e56f4f9e 39094 CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
a848cd7e
SC
39095
39096 cat >conftest.$ac_ext <<_ACEOF
39097/* confdefs.h. */
39098_ACEOF
39099cat confdefs.h >>conftest.$ac_ext
39100cat >>conftest.$ac_ext <<_ACEOF
39101/* end confdefs.h. */
39102#include <pthread.h>
39103int
39104main ()
39105{
39106pthread_create(0,0,0,0);
39107 ;
39108 return 0;
39109}
39110_ACEOF
39111rm -f conftest.$ac_objext conftest$ac_exeext
39112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39113 (eval $ac_link) 2>conftest.er1
a848cd7e 39114 ac_status=$?
ac1cb8d3
VS
39115 grep -v '^ *+' conftest.er1 >conftest.err
39116 rm -f conftest.er1
39117 cat conftest.err >&5
a848cd7e
SC
39118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39119 (exit $ac_status); } &&
479c790c 39120 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39122 (eval $ac_try) 2>&5
39123 ac_status=$?
39124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39125 (exit $ac_status); }; } &&
39126 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39128 (eval $ac_try) 2>&5
39129 ac_status=$?
39130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39131 (exit $ac_status); }; }; then
39132 THREADS_OK=yes
39133else
39134 echo "$as_me: failed program was:" >&5
39135sed 's/^/| /' conftest.$ac_ext >&5
39136
39137fi
ac1cb8d3
VS
39138rm -f conftest.err conftest.$ac_objext \
39139 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39140
39141 LIBS="$save_LIBS"
e56f4f9e 39142 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
39143
39144 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
39145echo "${ECHO_T}$THREADS_OK" >&6
39146 if test "x$THREADS_OK" = "xyes"; then
39147 break;
39148 fi
39149
39150 THREADS_LINK=""
e56f4f9e 39151 THREADS_CXXFLAGS=""
a848cd7e
SC
39152 done
39153
39154 if test "x$THREADS_OK" != "xyes"; then
39155 wxUSE_THREADS=no
39156 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
39157echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
39158 else
e56f4f9e 39159 LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
a848cd7e
SC
39160 LIBS="$THREADS_LINK $LIBS"
39161
39162 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39163echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
39164 flag=no
39165 case "${host}" in
39166 *-aix*)
39167 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
39168 flag="-D_THREAD_SAFE"
39169 ;;
39170 *-freebsd*)
39171 flag="-D_THREAD_SAFE"
39172 ;;
39173 *-hp-hpux* )
39174 flag="-D_REENTRANT"
39175 if test "x$GCC" != "xyes"; then
39176 flag="$flag -D_RWSTD_MULTI_THREAD"
39177 fi
39178 ;;
39179 *solaris* | alpha*-osf*)
39180 flag="-D_REENTRANT"
39181 ;;
39182 esac
39183 echo "$as_me:$LINENO: result: ${flag}" >&5
39184echo "${ECHO_T}${flag}" >&6
39185 if test "x$flag" != xno; then
e56f4f9e 39186 THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
a848cd7e
SC
39187 fi
39188
e56f4f9e 39189 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
a848cd7e
SC
39190 fi
39191 fi
39192
39193 if test "$wxUSE_THREADS" = "yes" ; then
39194
39195for ac_func in thr_setconcurrency
39196do
39197as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39198echo "$as_me:$LINENO: checking for $ac_func" >&5
39199echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39200if eval "test \"\${$as_ac_var+set}\" = set"; then
39201 echo $ECHO_N "(cached) $ECHO_C" >&6
39202else
39203 cat >conftest.$ac_ext <<_ACEOF
39204/* confdefs.h. */
39205_ACEOF
39206cat confdefs.h >>conftest.$ac_ext
39207cat >>conftest.$ac_ext <<_ACEOF
39208/* end confdefs.h. */
ac1cb8d3
VS
39209/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39211#define $ac_func innocuous_$ac_func
39212
a848cd7e
SC
39213/* System header to define __stub macros and hopefully few prototypes,
39214 which can conflict with char $ac_func (); below.
39215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39216 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39217
a848cd7e
SC
39218#ifdef __STDC__
39219# include <limits.h>
39220#else
39221# include <assert.h>
39222#endif
ac1cb8d3
VS
39223
39224#undef $ac_func
39225
a848cd7e
SC
39226/* Override any gcc2 internal prototype to avoid an error. */
39227#ifdef __cplusplus
39228extern "C"
39229{
39230#endif
39231/* We use char because int might match the return type of a gcc2
39232 builtin and then its argument prototype would still apply. */
39233char $ac_func ();
39234/* The GNU C library defines this for functions which it implements
39235 to always fail with ENOSYS. Some functions are actually named
39236 something starting with __ and the normal name is an alias. */
39237#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39238choke me
39239#else
39240char (*f) () = $ac_func;
39241#endif
39242#ifdef __cplusplus
39243}
39244#endif
39245
39246int
39247main ()
39248{
39249return f != $ac_func;
39250 ;
39251 return 0;
39252}
39253_ACEOF
39254rm -f conftest.$ac_objext conftest$ac_exeext
39255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39256 (eval $ac_link) 2>conftest.er1
a848cd7e 39257 ac_status=$?
ac1cb8d3
VS
39258 grep -v '^ *+' conftest.er1 >conftest.err
39259 rm -f conftest.er1
39260 cat conftest.err >&5
a848cd7e
SC
39261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39262 (exit $ac_status); } &&
479c790c 39263 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39265 (eval $ac_try) 2>&5
39266 ac_status=$?
39267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39268 (exit $ac_status); }; } &&
39269 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39271 (eval $ac_try) 2>&5
39272 ac_status=$?
39273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39274 (exit $ac_status); }; }; then
39275 eval "$as_ac_var=yes"
39276else
39277 echo "$as_me: failed program was:" >&5
39278sed 's/^/| /' conftest.$ac_ext >&5
39279
39280eval "$as_ac_var=no"
39281fi
ac1cb8d3
VS
39282rm -f conftest.err conftest.$ac_objext \
39283 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39284fi
39285echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39286echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39287if test `eval echo '${'$as_ac_var'}'` = yes; then
39288 cat >>confdefs.h <<_ACEOF
39289#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39290_ACEOF
39291
39292fi
39293done
39294
39295
6ebeb4c7
VZ
39296 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
39297echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
39298if test "${wx_cv_func_pthread_cleanup+set}" = set; then
39299 echo $ECHO_N "(cached) $ECHO_C" >&6
39300else
39301
39302 cat >conftest.$ac_ext <<_ACEOF
39303/* confdefs.h. */
39304_ACEOF
39305cat confdefs.h >>conftest.$ac_ext
39306cat >>conftest.$ac_ext <<_ACEOF
39307/* end confdefs.h. */
39308#include <pthread.h>
39309 void ThreadCleanupFunc(void *p);
39310
39311int
39312main ()
39313{
39314
39315 void *p;
39316 pthread_cleanup_push(ThreadCleanupFunc, p);
39317 pthread_cleanup_pop(0);
39318
39319 ;
39320 return 0;
39321}
39322_ACEOF
39323rm -f conftest.$ac_objext
39324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39325 (eval $ac_compile) 2>conftest.er1
39326 ac_status=$?
39327 grep -v '^ *+' conftest.er1 >conftest.err
39328 rm -f conftest.er1
39329 cat conftest.err >&5
39330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39331 (exit $ac_status); } &&
479c790c 39332 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
39333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39334 (eval $ac_try) 2>&5
39335 ac_status=$?
39336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39337 (exit $ac_status); }; } &&
39338 { ac_try='test -s conftest.$ac_objext'
39339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39340 (eval $ac_try) 2>&5
39341 ac_status=$?
39342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39343 (exit $ac_status); }; }; then
39344
39345 wx_cv_func_pthread_cleanup=yes
39346
39347else
39348 echo "$as_me: failed program was:" >&5
39349sed 's/^/| /' conftest.$ac_ext >&5
39350
39351
39352 wx_cv_func_pthread_cleanup=no
39353
39354
39355fi
39356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39357
39358fi
39359echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39360echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
39361 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39362 cat >>confdefs.h <<\_ACEOF
39363#define wxHAVE_PTHREAD_CLEANUP 1
39364_ACEOF
39365
39366 fi
39367
a848cd7e
SC
39368
39369for ac_header in sched.h
39370do
39371as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39372if eval "test \"\${$as_ac_Header+set}\" = set"; then
39373 echo "$as_me:$LINENO: checking for $ac_header" >&5
39374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39375if eval "test \"\${$as_ac_Header+set}\" = set"; then
39376 echo $ECHO_N "(cached) $ECHO_C" >&6
39377fi
39378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39379echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39380else
39381 # Is the header compilable?
39382echo "$as_me:$LINENO: checking $ac_header usability" >&5
39383echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39384cat >conftest.$ac_ext <<_ACEOF
39385/* confdefs.h. */
39386_ACEOF
39387cat confdefs.h >>conftest.$ac_ext
39388cat >>conftest.$ac_ext <<_ACEOF
39389/* end confdefs.h. */
39390$ac_includes_default
39391#include <$ac_header>
39392_ACEOF
39393rm -f conftest.$ac_objext
39394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39395 (eval $ac_compile) 2>conftest.er1
a848cd7e 39396 ac_status=$?
ac1cb8d3
VS
39397 grep -v '^ *+' conftest.er1 >conftest.err
39398 rm -f conftest.er1
39399 cat conftest.err >&5
a848cd7e
SC
39400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39401 (exit $ac_status); } &&
479c790c 39402 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39404 (eval $ac_try) 2>&5
39405 ac_status=$?
39406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39407 (exit $ac_status); }; } &&
39408 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39410 (eval $ac_try) 2>&5
39411 ac_status=$?
39412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39413 (exit $ac_status); }; }; then
39414 ac_header_compiler=yes
39415else
39416 echo "$as_me: failed program was:" >&5
39417sed 's/^/| /' conftest.$ac_ext >&5
39418
39419ac_header_compiler=no
39420fi
ac1cb8d3 39421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39422echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39423echo "${ECHO_T}$ac_header_compiler" >&6
39424
39425# Is the header present?
39426echo "$as_me:$LINENO: checking $ac_header presence" >&5
39427echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39428cat >conftest.$ac_ext <<_ACEOF
39429/* confdefs.h. */
39430_ACEOF
39431cat confdefs.h >>conftest.$ac_ext
39432cat >>conftest.$ac_ext <<_ACEOF
39433/* end confdefs.h. */
39434#include <$ac_header>
39435_ACEOF
39436if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39438 ac_status=$?
39439 grep -v '^ *+' conftest.er1 >conftest.err
39440 rm -f conftest.er1
39441 cat conftest.err >&5
39442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39443 (exit $ac_status); } >/dev/null; then
39444 if test -s conftest.err; then
5d7b7554
VZ
39445 ac_cpp_err=$ac_cxx_preproc_warn_flag
39446 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
39447 else
39448 ac_cpp_err=
39449 fi
39450else
39451 ac_cpp_err=yes
39452fi
39453if test -z "$ac_cpp_err"; then
39454 ac_header_preproc=yes
39455else
39456 echo "$as_me: failed program was:" >&5
39457sed 's/^/| /' conftest.$ac_ext >&5
39458
39459 ac_header_preproc=no
39460fi
39461rm -f conftest.err conftest.$ac_ext
39462echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39463echo "${ECHO_T}$ac_header_preproc" >&6
39464
39465# So? What about this header?
5d7b7554 39466case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 39467 yes:no: )
a848cd7e
SC
39468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39469echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39471echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39472 ac_header_preproc=yes
a848cd7e 39473 ;;
ac1cb8d3 39474 no:yes:* )
a848cd7e
SC
39475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39476echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39478echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39480echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39482echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39484echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39486echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39487 (
39488 cat <<\_ASBOX
ac1cb8d3
VS
39489## ----------------------------------------- ##
39490## Report this to wx-dev@lists.wxwidgets.org ##
39491## ----------------------------------------- ##
a848cd7e
SC
39492_ASBOX
39493 ) |
39494 sed "s/^/$as_me: WARNING: /" >&2
39495 ;;
39496esac
39497echo "$as_me:$LINENO: checking for $ac_header" >&5
39498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39499if eval "test \"\${$as_ac_Header+set}\" = set"; then
39500 echo $ECHO_N "(cached) $ECHO_C" >&6
39501else
ac1cb8d3 39502 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39503fi
39504echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39505echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39506
39507fi
39508if test `eval echo '${'$as_ac_Header'}'` = yes; then
39509 cat >>confdefs.h <<_ACEOF
39510#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39511_ACEOF
39512
39513fi
39514
39515done
39516
39517 if test "$ac_cv_header_sched_h" = "yes"; then
39518 echo "$as_me:$LINENO: checking for sched_yield" >&5
39519echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
39520if test "${ac_cv_func_sched_yield+set}" = set; then
39521 echo $ECHO_N "(cached) $ECHO_C" >&6
39522else
39523 cat >conftest.$ac_ext <<_ACEOF
39524/* confdefs.h. */
39525_ACEOF
39526cat confdefs.h >>conftest.$ac_ext
39527cat >>conftest.$ac_ext <<_ACEOF
39528/* end confdefs.h. */
ac1cb8d3
VS
39529/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39531#define sched_yield innocuous_sched_yield
39532
a848cd7e
SC
39533/* System header to define __stub macros and hopefully few prototypes,
39534 which can conflict with char sched_yield (); below.
39535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39536 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39537
a848cd7e
SC
39538#ifdef __STDC__
39539# include <limits.h>
39540#else
39541# include <assert.h>
39542#endif
ac1cb8d3
VS
39543
39544#undef sched_yield
39545
a848cd7e
SC
39546/* Override any gcc2 internal prototype to avoid an error. */
39547#ifdef __cplusplus
39548extern "C"
39549{
39550#endif
39551/* We use char because int might match the return type of a gcc2
39552 builtin and then its argument prototype would still apply. */
39553char sched_yield ();
39554/* The GNU C library defines this for functions which it implements
39555 to always fail with ENOSYS. Some functions are actually named
39556 something starting with __ and the normal name is an alias. */
39557#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
39558choke me
39559#else
39560char (*f) () = sched_yield;
39561#endif
39562#ifdef __cplusplus
39563}
39564#endif
39565
39566int
39567main ()
39568{
39569return f != sched_yield;
39570 ;
39571 return 0;
39572}
39573_ACEOF
39574rm -f conftest.$ac_objext conftest$ac_exeext
39575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39576 (eval $ac_link) 2>conftest.er1
a848cd7e 39577 ac_status=$?
ac1cb8d3
VS
39578 grep -v '^ *+' conftest.er1 >conftest.err
39579 rm -f conftest.er1
39580 cat conftest.err >&5
a848cd7e
SC
39581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39582 (exit $ac_status); } &&
479c790c 39583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39585 (eval $ac_try) 2>&5
39586 ac_status=$?
39587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39588 (exit $ac_status); }; } &&
39589 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39591 (eval $ac_try) 2>&5
39592 ac_status=$?
39593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39594 (exit $ac_status); }; }; then
39595 ac_cv_func_sched_yield=yes
39596else
39597 echo "$as_me: failed program was:" >&5
39598sed 's/^/| /' conftest.$ac_ext >&5
39599
39600ac_cv_func_sched_yield=no
39601fi
ac1cb8d3
VS
39602rm -f conftest.err conftest.$ac_objext \
39603 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39604fi
39605echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
39606echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
39607if test $ac_cv_func_sched_yield = yes; then
39608 cat >>confdefs.h <<\_ACEOF
39609#define HAVE_SCHED_YIELD 1
39610_ACEOF
39611
39612else
39613
39614 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
39615echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
39616if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
39617 echo $ECHO_N "(cached) $ECHO_C" >&6
39618else
39619 ac_check_lib_save_LIBS=$LIBS
39620LIBS="-lposix4 $LIBS"
39621cat >conftest.$ac_ext <<_ACEOF
39622/* confdefs.h. */
39623_ACEOF
39624cat confdefs.h >>conftest.$ac_ext
39625cat >>conftest.$ac_ext <<_ACEOF
39626/* end confdefs.h. */
39627
39628/* Override any gcc2 internal prototype to avoid an error. */
39629#ifdef __cplusplus
39630extern "C"
39631#endif
39632/* We use char because int might match the return type of a gcc2
39633 builtin and then its argument prototype would still apply. */
39634char sched_yield ();
39635int
39636main ()
39637{
39638sched_yield ();
39639 ;
39640 return 0;
39641}
39642_ACEOF
39643rm -f conftest.$ac_objext conftest$ac_exeext
39644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39645 (eval $ac_link) 2>conftest.er1
a848cd7e 39646 ac_status=$?
ac1cb8d3
VS
39647 grep -v '^ *+' conftest.er1 >conftest.err
39648 rm -f conftest.er1
39649 cat conftest.err >&5
a848cd7e
SC
39650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39651 (exit $ac_status); } &&
479c790c 39652 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39654 (eval $ac_try) 2>&5
39655 ac_status=$?
39656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39657 (exit $ac_status); }; } &&
39658 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39660 (eval $ac_try) 2>&5
39661 ac_status=$?
39662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39663 (exit $ac_status); }; }; then
39664 ac_cv_lib_posix4_sched_yield=yes
39665else
39666 echo "$as_me: failed program was:" >&5
39667sed 's/^/| /' conftest.$ac_ext >&5
39668
39669ac_cv_lib_posix4_sched_yield=no
39670fi
ac1cb8d3
VS
39671rm -f conftest.err conftest.$ac_objext \
39672 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39673LIBS=$ac_check_lib_save_LIBS
39674fi
39675echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
39676echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
39677if test $ac_cv_lib_posix4_sched_yield = yes; then
39678 cat >>confdefs.h <<\_ACEOF
39679#define HAVE_SCHED_YIELD 1
39680_ACEOF
39681 POSIX4_LINK=" -lposix4"
39682else
39683 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
39684echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
39685
39686fi
39687
39688
39689
39690fi
39691
39692 fi
39693
39694 HAVE_PRIOR_FUNCS=0
39695 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
39696echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
39697if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
39698 echo $ECHO_N "(cached) $ECHO_C" >&6
39699else
39700 cat >conftest.$ac_ext <<_ACEOF
39701/* confdefs.h. */
39702_ACEOF
39703cat confdefs.h >>conftest.$ac_ext
39704cat >>conftest.$ac_ext <<_ACEOF
39705/* end confdefs.h. */
ac1cb8d3
VS
39706/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
39707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39708#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
39709
a848cd7e
SC
39710/* System header to define __stub macros and hopefully few prototypes,
39711 which can conflict with char pthread_attr_getschedpolicy (); below.
39712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39713 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39714
a848cd7e
SC
39715#ifdef __STDC__
39716# include <limits.h>
39717#else
39718# include <assert.h>
39719#endif
ac1cb8d3
VS
39720
39721#undef pthread_attr_getschedpolicy
39722
a848cd7e
SC
39723/* Override any gcc2 internal prototype to avoid an error. */
39724#ifdef __cplusplus
39725extern "C"
39726{
39727#endif
39728/* We use char because int might match the return type of a gcc2
39729 builtin and then its argument prototype would still apply. */
39730char pthread_attr_getschedpolicy ();
39731/* The GNU C library defines this for functions which it implements
39732 to always fail with ENOSYS. Some functions are actually named
39733 something starting with __ and the normal name is an alias. */
39734#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
39735choke me
39736#else
39737char (*f) () = pthread_attr_getschedpolicy;
39738#endif
39739#ifdef __cplusplus
39740}
39741#endif
39742
39743int
39744main ()
39745{
39746return f != pthread_attr_getschedpolicy;
39747 ;
39748 return 0;
39749}
39750_ACEOF
39751rm -f conftest.$ac_objext conftest$ac_exeext
39752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39753 (eval $ac_link) 2>conftest.er1
a848cd7e 39754 ac_status=$?
ac1cb8d3
VS
39755 grep -v '^ *+' conftest.er1 >conftest.err
39756 rm -f conftest.er1
39757 cat conftest.err >&5
a848cd7e
SC
39758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39759 (exit $ac_status); } &&
479c790c 39760 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39762 (eval $ac_try) 2>&5
39763 ac_status=$?
39764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39765 (exit $ac_status); }; } &&
39766 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39768 (eval $ac_try) 2>&5
39769 ac_status=$?
39770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39771 (exit $ac_status); }; }; then
39772 ac_cv_func_pthread_attr_getschedpolicy=yes
39773else
39774 echo "$as_me: failed program was:" >&5
39775sed 's/^/| /' conftest.$ac_ext >&5
39776
39777ac_cv_func_pthread_attr_getschedpolicy=no
39778fi
ac1cb8d3
VS
39779rm -f conftest.err conftest.$ac_objext \
39780 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39781fi
39782echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
39783echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
39784if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
39785 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
39786echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
39787if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
39788 echo $ECHO_N "(cached) $ECHO_C" >&6
39789else
39790 cat >conftest.$ac_ext <<_ACEOF
39791/* confdefs.h. */
39792_ACEOF
39793cat confdefs.h >>conftest.$ac_ext
39794cat >>conftest.$ac_ext <<_ACEOF
39795/* end confdefs.h. */
ac1cb8d3
VS
39796/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
39797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39798#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
39799
a848cd7e
SC
39800/* System header to define __stub macros and hopefully few prototypes,
39801 which can conflict with char pthread_attr_setschedparam (); below.
39802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39803 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39804
a848cd7e
SC
39805#ifdef __STDC__
39806# include <limits.h>
39807#else
39808# include <assert.h>
39809#endif
ac1cb8d3
VS
39810
39811#undef pthread_attr_setschedparam
39812
a848cd7e
SC
39813/* Override any gcc2 internal prototype to avoid an error. */
39814#ifdef __cplusplus
39815extern "C"
39816{
39817#endif
39818/* We use char because int might match the return type of a gcc2
39819 builtin and then its argument prototype would still apply. */
39820char pthread_attr_setschedparam ();
39821/* The GNU C library defines this for functions which it implements
39822 to always fail with ENOSYS. Some functions are actually named
39823 something starting with __ and the normal name is an alias. */
39824#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
39825choke me
39826#else
39827char (*f) () = pthread_attr_setschedparam;
39828#endif
39829#ifdef __cplusplus
39830}
39831#endif
39832
39833int
39834main ()
39835{
39836return f != pthread_attr_setschedparam;
39837 ;
39838 return 0;
39839}
39840_ACEOF
39841rm -f conftest.$ac_objext conftest$ac_exeext
39842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39843 (eval $ac_link) 2>conftest.er1
a848cd7e 39844 ac_status=$?
ac1cb8d3
VS
39845 grep -v '^ *+' conftest.er1 >conftest.err
39846 rm -f conftest.er1
39847 cat conftest.err >&5
a848cd7e
SC
39848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39849 (exit $ac_status); } &&
479c790c 39850 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39852 (eval $ac_try) 2>&5
39853 ac_status=$?
39854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39855 (exit $ac_status); }; } &&
39856 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39858 (eval $ac_try) 2>&5
39859 ac_status=$?
39860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39861 (exit $ac_status); }; }; then
39862 ac_cv_func_pthread_attr_setschedparam=yes
39863else
39864 echo "$as_me: failed program was:" >&5
39865sed 's/^/| /' conftest.$ac_ext >&5
39866
39867ac_cv_func_pthread_attr_setschedparam=no
39868fi
ac1cb8d3
VS
39869rm -f conftest.err conftest.$ac_objext \
39870 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39871fi
39872echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
39873echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
39874if test $ac_cv_func_pthread_attr_setschedparam = yes; then
39875 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
39876echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
39877if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
39878 echo $ECHO_N "(cached) $ECHO_C" >&6
39879else
39880 cat >conftest.$ac_ext <<_ACEOF
39881/* confdefs.h. */
39882_ACEOF
39883cat confdefs.h >>conftest.$ac_ext
39884cat >>conftest.$ac_ext <<_ACEOF
39885/* end confdefs.h. */
ac1cb8d3
VS
39886/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
39887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39888#define sched_get_priority_max innocuous_sched_get_priority_max
39889
a848cd7e
SC
39890/* System header to define __stub macros and hopefully few prototypes,
39891 which can conflict with char sched_get_priority_max (); below.
39892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39893 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39894
a848cd7e
SC
39895#ifdef __STDC__
39896# include <limits.h>
39897#else
39898# include <assert.h>
39899#endif
ac1cb8d3
VS
39900
39901#undef sched_get_priority_max
39902
a848cd7e
SC
39903/* Override any gcc2 internal prototype to avoid an error. */
39904#ifdef __cplusplus
39905extern "C"
39906{
39907#endif
39908/* We use char because int might match the return type of a gcc2
39909 builtin and then its argument prototype would still apply. */
39910char sched_get_priority_max ();
39911/* The GNU C library defines this for functions which it implements
39912 to always fail with ENOSYS. Some functions are actually named
39913 something starting with __ and the normal name is an alias. */
39914#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
39915choke me
39916#else
39917char (*f) () = sched_get_priority_max;
39918#endif
39919#ifdef __cplusplus
39920}
39921#endif
39922
39923int
39924main ()
39925{
39926return f != sched_get_priority_max;
39927 ;
39928 return 0;
39929}
39930_ACEOF
39931rm -f conftest.$ac_objext conftest$ac_exeext
39932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39933 (eval $ac_link) 2>conftest.er1
a848cd7e 39934 ac_status=$?
ac1cb8d3
VS
39935 grep -v '^ *+' conftest.er1 >conftest.err
39936 rm -f conftest.er1
39937 cat conftest.err >&5
a848cd7e
SC
39938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39939 (exit $ac_status); } &&
479c790c 39940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39942 (eval $ac_try) 2>&5
39943 ac_status=$?
39944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39945 (exit $ac_status); }; } &&
39946 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39948 (eval $ac_try) 2>&5
39949 ac_status=$?
39950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39951 (exit $ac_status); }; }; then
39952 ac_cv_func_sched_get_priority_max=yes
39953else
39954 echo "$as_me: failed program was:" >&5
39955sed 's/^/| /' conftest.$ac_ext >&5
39956
39957ac_cv_func_sched_get_priority_max=no
39958fi
ac1cb8d3
VS
39959rm -f conftest.err conftest.$ac_objext \
39960 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39961fi
39962echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
39963echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
39964if test $ac_cv_func_sched_get_priority_max = yes; then
39965 HAVE_PRIOR_FUNCS=1
39966else
39967 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
39968echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
39969if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
39970 echo $ECHO_N "(cached) $ECHO_C" >&6
39971else
39972 ac_check_lib_save_LIBS=$LIBS
39973LIBS="-lposix4 $LIBS"
39974cat >conftest.$ac_ext <<_ACEOF
39975/* confdefs.h. */
39976_ACEOF
39977cat confdefs.h >>conftest.$ac_ext
39978cat >>conftest.$ac_ext <<_ACEOF
39979/* end confdefs.h. */
39980
39981/* Override any gcc2 internal prototype to avoid an error. */
39982#ifdef __cplusplus
39983extern "C"
39984#endif
39985/* We use char because int might match the return type of a gcc2
39986 builtin and then its argument prototype would still apply. */
39987char sched_get_priority_max ();
39988int
39989main ()
39990{
39991sched_get_priority_max ();
39992 ;
39993 return 0;
39994}
39995_ACEOF
39996rm -f conftest.$ac_objext conftest$ac_exeext
39997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39998 (eval $ac_link) 2>conftest.er1
a848cd7e 39999 ac_status=$?
ac1cb8d3
VS
40000 grep -v '^ *+' conftest.er1 >conftest.err
40001 rm -f conftest.er1
40002 cat conftest.err >&5
a848cd7e
SC
40003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40004 (exit $ac_status); } &&
479c790c 40005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40007 (eval $ac_try) 2>&5
40008 ac_status=$?
40009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40010 (exit $ac_status); }; } &&
40011 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40013 (eval $ac_try) 2>&5
40014 ac_status=$?
40015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40016 (exit $ac_status); }; }; then
40017 ac_cv_lib_posix4_sched_get_priority_max=yes
40018else
40019 echo "$as_me: failed program was:" >&5
40020sed 's/^/| /' conftest.$ac_ext >&5
40021
40022ac_cv_lib_posix4_sched_get_priority_max=no
40023fi
ac1cb8d3
VS
40024rm -f conftest.err conftest.$ac_objext \
40025 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40026LIBS=$ac_check_lib_save_LIBS
40027fi
40028echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
40029echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
40030if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
40031
40032 HAVE_PRIOR_FUNCS=1
40033 POSIX4_LINK=" -lposix4"
40034
40035fi
40036
40037
40038fi
40039
40040
40041fi
40042
40043
40044fi
40045
40046
40047 if test "$HAVE_PRIOR_FUNCS" = 1; then
40048 cat >>confdefs.h <<\_ACEOF
40049#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
40050_ACEOF
40051
40052 else
40053 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
40054echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
40055 fi
40056
40057 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
40058echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
40059if test "${ac_cv_func_pthread_cancel+set}" = set; then
40060 echo $ECHO_N "(cached) $ECHO_C" >&6
40061else
40062 cat >conftest.$ac_ext <<_ACEOF
40063/* confdefs.h. */
40064_ACEOF
40065cat confdefs.h >>conftest.$ac_ext
40066cat >>conftest.$ac_ext <<_ACEOF
40067/* end confdefs.h. */
ac1cb8d3
VS
40068/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
40069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40070#define pthread_cancel innocuous_pthread_cancel
40071
a848cd7e
SC
40072/* System header to define __stub macros and hopefully few prototypes,
40073 which can conflict with char pthread_cancel (); below.
40074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40075 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40076
a848cd7e
SC
40077#ifdef __STDC__
40078# include <limits.h>
40079#else
40080# include <assert.h>
40081#endif
ac1cb8d3
VS
40082
40083#undef pthread_cancel
40084
a848cd7e
SC
40085/* Override any gcc2 internal prototype to avoid an error. */
40086#ifdef __cplusplus
40087extern "C"
40088{
40089#endif
40090/* We use char because int might match the return type of a gcc2
40091 builtin and then its argument prototype would still apply. */
40092char pthread_cancel ();
40093/* The GNU C library defines this for functions which it implements
40094 to always fail with ENOSYS. Some functions are actually named
40095 something starting with __ and the normal name is an alias. */
40096#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
40097choke me
40098#else
40099char (*f) () = pthread_cancel;
40100#endif
40101#ifdef __cplusplus
40102}
40103#endif
40104
40105int
40106main ()
40107{
40108return f != pthread_cancel;
40109 ;
40110 return 0;
40111}
40112_ACEOF
40113rm -f conftest.$ac_objext conftest$ac_exeext
40114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40115 (eval $ac_link) 2>conftest.er1
a848cd7e 40116 ac_status=$?
ac1cb8d3
VS
40117 grep -v '^ *+' conftest.er1 >conftest.err
40118 rm -f conftest.er1
40119 cat conftest.err >&5
a848cd7e
SC
40120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40121 (exit $ac_status); } &&
479c790c 40122 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40124 (eval $ac_try) 2>&5
40125 ac_status=$?
40126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40127 (exit $ac_status); }; } &&
40128 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40130 (eval $ac_try) 2>&5
40131 ac_status=$?
40132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40133 (exit $ac_status); }; }; then
40134 ac_cv_func_pthread_cancel=yes
40135else
40136 echo "$as_me: failed program was:" >&5
40137sed 's/^/| /' conftest.$ac_ext >&5
40138
40139ac_cv_func_pthread_cancel=no
40140fi
ac1cb8d3
VS
40141rm -f conftest.err conftest.$ac_objext \
40142 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40143fi
40144echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
40145echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
40146if test $ac_cv_func_pthread_cancel = yes; then
40147 cat >>confdefs.h <<\_ACEOF
40148#define HAVE_PTHREAD_CANCEL 1
40149_ACEOF
40150
40151else
40152 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
40153echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
40154fi
40155
40156
abc736fd
MW
40157 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
40158echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
40159if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
40160 echo $ECHO_N "(cached) $ECHO_C" >&6
40161else
40162 cat >conftest.$ac_ext <<_ACEOF
40163/* confdefs.h. */
40164_ACEOF
40165cat confdefs.h >>conftest.$ac_ext
40166cat >>conftest.$ac_ext <<_ACEOF
40167/* end confdefs.h. */
40168/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
40169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40170#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
40171
40172/* System header to define __stub macros and hopefully few prototypes,
40173 which can conflict with char pthread_attr_setstacksize (); below.
40174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40175 <limits.h> exists even on freestanding compilers. */
40176
40177#ifdef __STDC__
40178# include <limits.h>
40179#else
40180# include <assert.h>
40181#endif
40182
40183#undef pthread_attr_setstacksize
40184
40185/* Override any gcc2 internal prototype to avoid an error. */
40186#ifdef __cplusplus
40187extern "C"
40188{
40189#endif
40190/* We use char because int might match the return type of a gcc2
40191 builtin and then its argument prototype would still apply. */
40192char pthread_attr_setstacksize ();
40193/* The GNU C library defines this for functions which it implements
40194 to always fail with ENOSYS. Some functions are actually named
40195 something starting with __ and the normal name is an alias. */
40196#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
40197choke me
40198#else
40199char (*f) () = pthread_attr_setstacksize;
40200#endif
40201#ifdef __cplusplus
40202}
40203#endif
40204
40205int
40206main ()
40207{
40208return f != pthread_attr_setstacksize;
40209 ;
40210 return 0;
40211}
40212_ACEOF
40213rm -f conftest.$ac_objext conftest$ac_exeext
40214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40215 (eval $ac_link) 2>conftest.er1
40216 ac_status=$?
40217 grep -v '^ *+' conftest.er1 >conftest.err
40218 rm -f conftest.er1
40219 cat conftest.err >&5
40220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40221 (exit $ac_status); } &&
479c790c 40222 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
abc736fd
MW
40223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40224 (eval $ac_try) 2>&5
40225 ac_status=$?
40226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40227 (exit $ac_status); }; } &&
40228 { ac_try='test -s conftest$ac_exeext'
40229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40230 (eval $ac_try) 2>&5
40231 ac_status=$?
40232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40233 (exit $ac_status); }; }; then
40234 ac_cv_func_pthread_attr_setstacksize=yes
40235else
40236 echo "$as_me: failed program was:" >&5
40237sed 's/^/| /' conftest.$ac_ext >&5
40238
40239ac_cv_func_pthread_attr_setstacksize=no
40240fi
40241rm -f conftest.err conftest.$ac_objext \
40242 conftest$ac_exeext conftest.$ac_ext
40243fi
40244echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
40245echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
40246if test $ac_cv_func_pthread_attr_setstacksize = yes; then
40247 cat >>confdefs.h <<\_ACEOF
40248#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
40249_ACEOF
40250
40251fi
40252
a848cd7e
SC
40253
40254
40255 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
40256echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
40257if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
40258 echo $ECHO_N "(cached) $ECHO_C" >&6
40259else
40260
40261 cat >conftest.$ac_ext <<_ACEOF
40262/* confdefs.h. */
40263_ACEOF
40264cat confdefs.h >>conftest.$ac_ext
40265cat >>conftest.$ac_ext <<_ACEOF
40266/* end confdefs.h. */
40267#include <pthread.h>
40268int
40269main ()
40270{
40271
40272 pthread_mutexattr_t attr;
40273 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40274
40275 ;
40276 return 0;
40277}
40278_ACEOF
40279rm -f conftest.$ac_objext
40280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40281 (eval $ac_compile) 2>conftest.er1
a848cd7e 40282 ac_status=$?
ac1cb8d3
VS
40283 grep -v '^ *+' conftest.er1 >conftest.err
40284 rm -f conftest.er1
40285 cat conftest.err >&5
a848cd7e
SC
40286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40287 (exit $ac_status); } &&
479c790c 40288 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40290 (eval $ac_try) 2>&5
40291 ac_status=$?
40292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40293 (exit $ac_status); }; } &&
40294 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40296 (eval $ac_try) 2>&5
40297 ac_status=$?
40298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40299 (exit $ac_status); }; }; then
123dca7d 40300 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
40301else
40302 echo "$as_me: failed program was:" >&5
40303sed 's/^/| /' conftest.$ac_ext >&5
40304
123dca7d 40305wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
40306
40307fi
ac1cb8d3 40308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40309
40310fi
40311echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
40312echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
40313
40314 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
40315 cat >>confdefs.h <<\_ACEOF
40316#define HAVE_PTHREAD_MUTEXATTR_T 1
40317_ACEOF
40318
123dca7d
VZ
40319
40320 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
40321echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
40322if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
40323 echo $ECHO_N "(cached) $ECHO_C" >&6
40324else
40325
40326 cat >conftest.$ac_ext <<_ACEOF
40327/* confdefs.h. */
40328_ACEOF
40329cat confdefs.h >>conftest.$ac_ext
40330cat >>conftest.$ac_ext <<_ACEOF
40331/* end confdefs.h. */
40332#include <pthread.h>
40333int
40334main ()
40335{
40336
40337 pthread_mutexattr_t attr;
40338 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40339
40340 ;
40341 return 0;
40342}
40343_ACEOF
40344rm -f conftest.$ac_objext
40345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40346 (eval $ac_compile) 2>conftest.er1
40347 ac_status=$?
40348 grep -v '^ *+' conftest.er1 >conftest.err
40349 rm -f conftest.er1
40350 cat conftest.err >&5
40351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40352 (exit $ac_status); } &&
479c790c 40353 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
123dca7d
VZ
40354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40355 (eval $ac_try) 2>&5
40356 ac_status=$?
40357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40358 (exit $ac_status); }; } &&
40359 { ac_try='test -s conftest.$ac_objext'
40360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40361 (eval $ac_try) 2>&5
40362 ac_status=$?
40363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40364 (exit $ac_status); }; }; then
40365 wx_cv_func_pthread_mutexattr_settype_decl=yes
40366else
40367 echo "$as_me: failed program was:" >&5
40368sed 's/^/| /' conftest.$ac_ext >&5
40369
40370wx_cv_func_pthread_mutexattr_settype_decl=no
40371
40372fi
40373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40374
40375fi
40376echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40377echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
40378 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40379 cat >>confdefs.h <<\_ACEOF
40380#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40381_ACEOF
40382
40383 fi
a848cd7e
SC
40384 else
40385 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40386echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
40387if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40388 echo $ECHO_N "(cached) $ECHO_C" >&6
40389else
40390
40391 cat >conftest.$ac_ext <<_ACEOF
40392/* confdefs.h. */
40393_ACEOF
40394cat confdefs.h >>conftest.$ac_ext
40395cat >>conftest.$ac_ext <<_ACEOF
40396/* end confdefs.h. */
40397#include <pthread.h>
40398int
40399main ()
40400{
40401
40402 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40403
40404 ;
40405 return 0;
40406}
40407_ACEOF
40408rm -f conftest.$ac_objext
40409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40410 (eval $ac_compile) 2>conftest.er1
a848cd7e 40411 ac_status=$?
ac1cb8d3
VS
40412 grep -v '^ *+' conftest.er1 >conftest.err
40413 rm -f conftest.er1
40414 cat conftest.err >&5
a848cd7e
SC
40415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40416 (exit $ac_status); } &&
479c790c 40417 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40419 (eval $ac_try) 2>&5
40420 ac_status=$?
40421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40422 (exit $ac_status); }; } &&
40423 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40425 (eval $ac_try) 2>&5
40426 ac_status=$?
40427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40428 (exit $ac_status); }; }; then
40429
40430 wx_cv_type_pthread_rec_mutex_init=yes
40431
40432else
40433 echo "$as_me: failed program was:" >&5
40434sed 's/^/| /' conftest.$ac_ext >&5
40435
40436
40437 wx_cv_type_pthread_rec_mutex_init=no
40438
40439
40440fi
ac1cb8d3 40441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40442
40443fi
40444echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40445echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
40446 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40447 cat >>confdefs.h <<\_ACEOF
40448#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40449_ACEOF
40450
40451 else
40452 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40453echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40454 fi
40455 fi
40456 fi
40457
40458else
40459 if test "$wxUSE_THREADS" = "yes" ; then
40460 case "${host}" in
40461 *-*-mingw32* )
40462 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
40463echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
40464if test "${wx_cv_cflags_mthread+set}" = set; then
40465 echo $ECHO_N "(cached) $ECHO_C" >&6
40466else
40467
e56f4f9e
VZ
40468 CXXFLAGS_OLD="$CXXFLAGS"
40469 CXXFLAGS="-mthreads $CXXFLAGS"
a848cd7e
SC
40470 cat >conftest.$ac_ext <<_ACEOF
40471/* confdefs.h. */
40472_ACEOF
40473cat confdefs.h >>conftest.$ac_ext
40474cat >>conftest.$ac_ext <<_ACEOF
40475/* end confdefs.h. */
40476
40477int
40478main ()
40479{
40480
40481 ;
40482 return 0;
40483}
40484_ACEOF
40485rm -f conftest.$ac_objext
40486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40487 (eval $ac_compile) 2>conftest.er1
a848cd7e 40488 ac_status=$?
ac1cb8d3
VS
40489 grep -v '^ *+' conftest.er1 >conftest.err
40490 rm -f conftest.er1
40491 cat conftest.err >&5
a848cd7e
SC
40492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40493 (exit $ac_status); } &&
479c790c 40494 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40496 (eval $ac_try) 2>&5
40497 ac_status=$?
40498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40499 (exit $ac_status); }; } &&
40500 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40502 (eval $ac_try) 2>&5
40503 ac_status=$?
40504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40505 (exit $ac_status); }; }; then
40506 wx_cv_cflags_mthread=yes
40507else
40508 echo "$as_me: failed program was:" >&5
40509sed 's/^/| /' conftest.$ac_ext >&5
40510
40511wx_cv_cflags_mthread=no
40512
40513fi
ac1cb8d3 40514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40515
40516
40517fi
40518echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
40519echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
40520
40521 if test "$wx_cv_cflags_mthread" = "yes"; then
e56f4f9e 40522 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
a848cd7e
SC
40523 LDFLAGS="$LDFLAGS -mthreads"
40524 else
e56f4f9e 40525 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
40526 fi
40527 ;;
40528 *-pc-os2*emx )
5ff751d6
VZ
40529 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
40530 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
40531 LDFLAGS="$LDFLAGS -Zmt"
40532 ;;
40533 esac
40534 fi
40535fi
40536
004ee6da
RL
40537echo "$as_me:$LINENO: checking for localtime_r" >&5
40538echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
40539if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
40540 echo $ECHO_N "(cached) $ECHO_C" >&6
40541else
40542 cat >conftest.$ac_ext <<_ACEOF
40543/* confdefs.h. */
40544_ACEOF
40545cat confdefs.h >>conftest.$ac_ext
40546cat >>conftest.$ac_ext <<_ACEOF
40547/* end confdefs.h. */
004ee6da 40548/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 40549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 40550#define localtime_r innocuous_localtime_r
ac1cb8d3 40551
a848cd7e 40552/* System header to define __stub macros and hopefully few prototypes,
004ee6da 40553 which can conflict with char localtime_r (); below.
a848cd7e
SC
40554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40555 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40556
a848cd7e
SC
40557#ifdef __STDC__
40558# include <limits.h>
40559#else
40560# include <assert.h>
40561#endif
ac1cb8d3 40562
004ee6da 40563#undef localtime_r
ac1cb8d3 40564
a848cd7e
SC
40565/* Override any gcc2 internal prototype to avoid an error. */
40566#ifdef __cplusplus
40567extern "C"
40568{
40569#endif
40570/* We use char because int might match the return type of a gcc2
40571 builtin and then its argument prototype would still apply. */
004ee6da 40572char localtime_r ();
a848cd7e
SC
40573/* The GNU C library defines this for functions which it implements
40574 to always fail with ENOSYS. Some functions are actually named
40575 something starting with __ and the normal name is an alias. */
004ee6da 40576#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
40577choke me
40578#else
004ee6da 40579char (*f) () = localtime_r;
a848cd7e
SC
40580#endif
40581#ifdef __cplusplus
40582}
40583#endif
40584
40585int
40586main ()
40587{
004ee6da
RL
40588return f != localtime_r;
40589 ;
40590 return 0;
40591}
40592_ACEOF
40593rm -f conftest.$ac_objext conftest$ac_exeext
40594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40595 (eval $ac_link) 2>conftest.er1
40596 ac_status=$?
40597 grep -v '^ *+' conftest.er1 >conftest.err
40598 rm -f conftest.er1
40599 cat conftest.err >&5
40600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40601 (exit $ac_status); } &&
479c790c 40602 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40604 (eval $ac_try) 2>&5
40605 ac_status=$?
40606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40607 (exit $ac_status); }; } &&
40608 { ac_try='test -s conftest$ac_exeext'
40609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40610 (eval $ac_try) 2>&5
40611 ac_status=$?
40612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40613 (exit $ac_status); }; }; then
40614 ac_cv_func_localtime_r=yes
40615else
40616 echo "$as_me: failed program was:" >&5
40617sed 's/^/| /' conftest.$ac_ext >&5
40618
40619ac_cv_func_localtime_r=no
40620fi
40621rm -f conftest.err conftest.$ac_objext \
40622 conftest$ac_exeext conftest.$ac_ext
40623fi
40624echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
40625echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
40626if test $ac_cv_func_localtime_r = yes; then
40627 cat >>confdefs.h <<\_ACEOF
40628#define HAVE_LOCALTIME_R 1
40629_ACEOF
40630
40631fi
40632
40633echo "$as_me:$LINENO: checking for gmtime_r" >&5
40634echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
40635if test "${ac_cv_func_gmtime_r+set}" = set; then
40636 echo $ECHO_N "(cached) $ECHO_C" >&6
40637else
40638 cat >conftest.$ac_ext <<_ACEOF
40639/* confdefs.h. */
40640_ACEOF
40641cat confdefs.h >>conftest.$ac_ext
40642cat >>conftest.$ac_ext <<_ACEOF
40643/* end confdefs.h. */
40644/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
40645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40646#define gmtime_r innocuous_gmtime_r
40647
40648/* System header to define __stub macros and hopefully few prototypes,
40649 which can conflict with char gmtime_r (); below.
40650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40651 <limits.h> exists even on freestanding compilers. */
40652
40653#ifdef __STDC__
40654# include <limits.h>
40655#else
40656# include <assert.h>
40657#endif
40658
40659#undef gmtime_r
40660
40661/* Override any gcc2 internal prototype to avoid an error. */
40662#ifdef __cplusplus
40663extern "C"
40664{
40665#endif
40666/* We use char because int might match the return type of a gcc2
40667 builtin and then its argument prototype would still apply. */
40668char gmtime_r ();
40669/* The GNU C library defines this for functions which it implements
40670 to always fail with ENOSYS. Some functions are actually named
40671 something starting with __ and the normal name is an alias. */
40672#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
40673choke me
40674#else
40675char (*f) () = gmtime_r;
40676#endif
40677#ifdef __cplusplus
40678}
40679#endif
40680
40681int
40682main ()
40683{
40684return f != gmtime_r;
40685 ;
40686 return 0;
40687}
40688_ACEOF
40689rm -f conftest.$ac_objext conftest$ac_exeext
40690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40691 (eval $ac_link) 2>conftest.er1
40692 ac_status=$?
40693 grep -v '^ *+' conftest.er1 >conftest.err
40694 rm -f conftest.er1
40695 cat conftest.err >&5
40696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40697 (exit $ac_status); } &&
479c790c 40698 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40700 (eval $ac_try) 2>&5
40701 ac_status=$?
40702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40703 (exit $ac_status); }; } &&
40704 { ac_try='test -s conftest$ac_exeext'
40705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40706 (eval $ac_try) 2>&5
40707 ac_status=$?
40708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40709 (exit $ac_status); }; }; then
40710 ac_cv_func_gmtime_r=yes
40711else
40712 echo "$as_me: failed program was:" >&5
40713sed 's/^/| /' conftest.$ac_ext >&5
40714
40715ac_cv_func_gmtime_r=no
40716fi
40717rm -f conftest.err conftest.$ac_objext \
40718 conftest$ac_exeext conftest.$ac_ext
40719fi
40720echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
40721echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
40722if test $ac_cv_func_gmtime_r = yes; then
40723 cat >>confdefs.h <<\_ACEOF
40724#define HAVE_GMTIME_R 1
40725_ACEOF
40726
40727fi
40728
40729echo "$as_me:$LINENO: checking for readdir_r" >&5
40730echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
40731if test "${ac_cv_func_readdir_r+set}" = set; then
40732 echo $ECHO_N "(cached) $ECHO_C" >&6
40733else
40734 cat >conftest.$ac_ext <<_ACEOF
40735/* confdefs.h. */
40736_ACEOF
40737cat confdefs.h >>conftest.$ac_ext
40738cat >>conftest.$ac_ext <<_ACEOF
40739/* end confdefs.h. */
40740/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
40741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40742#define readdir_r innocuous_readdir_r
40743
40744/* System header to define __stub macros and hopefully few prototypes,
40745 which can conflict with char readdir_r (); below.
40746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40747 <limits.h> exists even on freestanding compilers. */
40748
40749#ifdef __STDC__
40750# include <limits.h>
40751#else
40752# include <assert.h>
40753#endif
40754
40755#undef readdir_r
40756
40757/* Override any gcc2 internal prototype to avoid an error. */
40758#ifdef __cplusplus
40759extern "C"
40760{
40761#endif
40762/* We use char because int might match the return type of a gcc2
40763 builtin and then its argument prototype would still apply. */
40764char readdir_r ();
40765/* The GNU C library defines this for functions which it implements
40766 to always fail with ENOSYS. Some functions are actually named
40767 something starting with __ and the normal name is an alias. */
40768#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
40769choke me
40770#else
40771char (*f) () = readdir_r;
40772#endif
40773#ifdef __cplusplus
40774}
40775#endif
40776
40777int
40778main ()
40779{
40780return f != readdir_r;
40781 ;
40782 return 0;
40783}
40784_ACEOF
40785rm -f conftest.$ac_objext conftest$ac_exeext
40786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40787 (eval $ac_link) 2>conftest.er1
40788 ac_status=$?
40789 grep -v '^ *+' conftest.er1 >conftest.err
40790 rm -f conftest.er1
40791 cat conftest.err >&5
40792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40793 (exit $ac_status); } &&
479c790c 40794 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40796 (eval $ac_try) 2>&5
40797 ac_status=$?
40798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40799 (exit $ac_status); }; } &&
40800 { ac_try='test -s conftest$ac_exeext'
40801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40802 (eval $ac_try) 2>&5
40803 ac_status=$?
40804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40805 (exit $ac_status); }; }; then
40806 ac_cv_func_readdir_r=yes
40807else
40808 echo "$as_me: failed program was:" >&5
40809sed 's/^/| /' conftest.$ac_ext >&5
40810
40811ac_cv_func_readdir_r=no
40812fi
40813rm -f conftest.err conftest.$ac_objext \
40814 conftest$ac_exeext conftest.$ac_ext
40815fi
40816echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
40817echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
40818if test $ac_cv_func_readdir_r = yes; then
40819 cat >>confdefs.h <<\_ACEOF
40820#define HAVE_READDIR_R 1
40821_ACEOF
40822
40823fi
40824
004ee6da 40825
004ee6da
RL
40826
40827
40828 ac_ext=c
40829ac_cpp='$CPP $CPPFLAGS'
40830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40832ac_compiler_gnu=$ac_cv_c_compiler_gnu
40833
40834 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
40835echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
40836
40837 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
40838 echo $ECHO_N "(cached) $ECHO_C" >&6
40839else
40840
40841
2f6c5bb5 40842################################################################
004ee6da
RL
40843
40844ac_cv_func_which_gethostbyname_r=unknown
40845
40846#
40847# ONE ARGUMENT (sanity check)
40848#
40849
40850# This should fail, as there is no variant of gethostbyname_r() that takes
40851# a single argument. If it actually compiles, then we can assume that
40852# netdb.h is not declaring the function, and the compiler is thereby
40853# assuming an implicit prototype. In which case, we're out of luck.
40854#
40855cat >conftest.$ac_ext <<_ACEOF
40856/* confdefs.h. */
40857_ACEOF
40858cat confdefs.h >>conftest.$ac_ext
40859cat >>conftest.$ac_ext <<_ACEOF
40860/* end confdefs.h. */
40861#include <netdb.h>
40862int
40863main ()
40864{
40865
40866 char *name = "www.gnu.org";
40867 (void)gethostbyname_r(name) /* ; */
40868
40869 ;
40870 return 0;
40871}
40872_ACEOF
40873rm -f conftest.$ac_objext
40874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40875 (eval $ac_compile) 2>conftest.er1
40876 ac_status=$?
40877 grep -v '^ *+' conftest.er1 >conftest.err
40878 rm -f conftest.er1
40879 cat conftest.err >&5
40880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40881 (exit $ac_status); } &&
479c790c 40882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40884 (eval $ac_try) 2>&5
40885 ac_status=$?
40886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40887 (exit $ac_status); }; } &&
40888 { ac_try='test -s conftest.$ac_objext'
40889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40890 (eval $ac_try) 2>&5
40891 ac_status=$?
40892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40893 (exit $ac_status); }; }; then
40894 ac_cv_func_which_gethostbyname_r=no
40895else
40896 echo "$as_me: failed program was:" >&5
40897sed 's/^/| /' conftest.$ac_ext >&5
40898
40899fi
40900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40901
40902#
40903# SIX ARGUMENTS
40904# (e.g. Linux)
40905#
40906
40907if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40908
40909cat >conftest.$ac_ext <<_ACEOF
40910/* confdefs.h. */
40911_ACEOF
40912cat confdefs.h >>conftest.$ac_ext
40913cat >>conftest.$ac_ext <<_ACEOF
40914/* end confdefs.h. */
40915#include <netdb.h>
40916int
40917main ()
40918{
40919
40920 char *name = "www.gnu.org";
40921 struct hostent ret, *retp;
40922 char buf[1024];
40923 int buflen = 1024;
40924 int my_h_errno;
40925 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
40926
40927 ;
40928 return 0;
40929}
40930_ACEOF
40931rm -f conftest.$ac_objext
40932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40933 (eval $ac_compile) 2>conftest.er1
40934 ac_status=$?
40935 grep -v '^ *+' conftest.er1 >conftest.err
40936 rm -f conftest.er1
40937 cat conftest.err >&5
40938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40939 (exit $ac_status); } &&
479c790c 40940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40942 (eval $ac_try) 2>&5
40943 ac_status=$?
40944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40945 (exit $ac_status); }; } &&
40946 { ac_try='test -s conftest.$ac_objext'
40947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40948 (eval $ac_try) 2>&5
40949 ac_status=$?
40950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40951 (exit $ac_status); }; }; then
40952 ac_cv_func_which_gethostbyname_r=six
40953else
40954 echo "$as_me: failed program was:" >&5
40955sed 's/^/| /' conftest.$ac_ext >&5
40956
40957fi
40958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40959
40960fi
40961
40962#
40963# FIVE ARGUMENTS
40964# (e.g. Solaris)
40965#
40966
40967if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40968
40969cat >conftest.$ac_ext <<_ACEOF
40970/* confdefs.h. */
40971_ACEOF
40972cat confdefs.h >>conftest.$ac_ext
40973cat >>conftest.$ac_ext <<_ACEOF
40974/* end confdefs.h. */
40975#include <netdb.h>
40976int
40977main ()
40978{
40979
40980 char *name = "www.gnu.org";
40981 struct hostent ret;
40982 char buf[1024];
40983 int buflen = 1024;
40984 int my_h_errno;
40985 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
40986
40987 ;
40988 return 0;
40989}
40990_ACEOF
40991rm -f conftest.$ac_objext
40992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40993 (eval $ac_compile) 2>conftest.er1
40994 ac_status=$?
40995 grep -v '^ *+' conftest.er1 >conftest.err
40996 rm -f conftest.er1
40997 cat conftest.err >&5
40998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40999 (exit $ac_status); } &&
479c790c 41000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41002 (eval $ac_try) 2>&5
41003 ac_status=$?
41004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41005 (exit $ac_status); }; } &&
41006 { ac_try='test -s conftest.$ac_objext'
41007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41008 (eval $ac_try) 2>&5
41009 ac_status=$?
41010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41011 (exit $ac_status); }; }; then
41012 ac_cv_func_which_gethostbyname_r=five
41013else
41014 echo "$as_me: failed program was:" >&5
41015sed 's/^/| /' conftest.$ac_ext >&5
41016
41017fi
41018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41019
41020fi
41021
41022#
41023# THREE ARGUMENTS
41024# (e.g. AIX, HP-UX, Tru64)
41025#
41026
41027if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41028
41029cat >conftest.$ac_ext <<_ACEOF
41030/* confdefs.h. */
41031_ACEOF
41032cat confdefs.h >>conftest.$ac_ext
41033cat >>conftest.$ac_ext <<_ACEOF
41034/* end confdefs.h. */
41035#include <netdb.h>
41036int
41037main ()
41038{
41039
41040 char *name = "www.gnu.org";
41041 struct hostent ret;
41042 struct hostent_data data;
41043 (void)gethostbyname_r(name, &ret, &data) /* ; */
41044
41045 ;
41046 return 0;
41047}
41048_ACEOF
41049rm -f conftest.$ac_objext
41050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41051 (eval $ac_compile) 2>conftest.er1
41052 ac_status=$?
41053 grep -v '^ *+' conftest.er1 >conftest.err
41054 rm -f conftest.er1
41055 cat conftest.err >&5
41056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41057 (exit $ac_status); } &&
479c790c 41058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41060 (eval $ac_try) 2>&5
41061 ac_status=$?
41062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41063 (exit $ac_status); }; } &&
41064 { ac_try='test -s conftest.$ac_objext'
41065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41066 (eval $ac_try) 2>&5
41067 ac_status=$?
41068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41069 (exit $ac_status); }; }; then
41070 ac_cv_func_which_gethostbyname_r=three
41071else
41072 echo "$as_me: failed program was:" >&5
41073sed 's/^/| /' conftest.$ac_ext >&5
41074
41075fi
41076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41077
41078fi
41079
2f6c5bb5 41080################################################################
004ee6da
RL
41081
41082
41083fi
41084
41085case "$ac_cv_func_which_gethostbyname_r" in
41086 three)
41087 echo "$as_me:$LINENO: result: three" >&5
41088echo "${ECHO_T}three" >&6
41089 cat >>confdefs.h <<\_ACEOF
41090#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
41091_ACEOF
41092
41093 ;;
41094
41095 five)
41096 echo "$as_me:$LINENO: result: five" >&5
41097echo "${ECHO_T}five" >&6
41098 cat >>confdefs.h <<\_ACEOF
41099#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
41100_ACEOF
41101
41102 ;;
41103
41104 six)
41105 echo "$as_me:$LINENO: result: six" >&5
41106echo "${ECHO_T}six" >&6
41107 cat >>confdefs.h <<\_ACEOF
41108#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
41109_ACEOF
41110
41111 ;;
41112
41113 no)
41114 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
41115echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
41116 ;;
41117
41118 unknown)
41119 echo "$as_me:$LINENO: result: can't tell" >&5
41120echo "${ECHO_T}can't tell" >&6
41121 ;;
41122
41123 *)
41124 { { echo "$as_me:$LINENO: error: internal error" >&5
41125echo "$as_me: error: internal error" >&2;}
41126 { (exit 1); exit 1; }; }
41127 ;;
41128esac
41129
5ec3bc43
JS
41130ac_ext=cc
41131ac_cpp='$CXXCPP $CPPFLAGS'
41132ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41133ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41134ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
004ee6da
RL
41135
41136
41137
41138 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
41139 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
41140 echo "$as_me:$LINENO: checking for gethostbyname" >&5
41141echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
41142if test "${ac_cv_func_gethostbyname+set}" = set; then
41143 echo $ECHO_N "(cached) $ECHO_C" >&6
41144else
41145 cat >conftest.$ac_ext <<_ACEOF
41146/* confdefs.h. */
41147_ACEOF
41148cat confdefs.h >>conftest.$ac_ext
41149cat >>conftest.$ac_ext <<_ACEOF
41150/* end confdefs.h. */
41151/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
41152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41153#define gethostbyname innocuous_gethostbyname
41154
41155/* System header to define __stub macros and hopefully few prototypes,
41156 which can conflict with char gethostbyname (); below.
41157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41158 <limits.h> exists even on freestanding compilers. */
41159
41160#ifdef __STDC__
41161# include <limits.h>
41162#else
41163# include <assert.h>
41164#endif
41165
41166#undef gethostbyname
41167
41168/* Override any gcc2 internal prototype to avoid an error. */
41169#ifdef __cplusplus
41170extern "C"
41171{
41172#endif
41173/* We use char because int might match the return type of a gcc2
41174 builtin and then its argument prototype would still apply. */
41175char gethostbyname ();
41176/* The GNU C library defines this for functions which it implements
41177 to always fail with ENOSYS. Some functions are actually named
41178 something starting with __ and the normal name is an alias. */
41179#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
41180choke me
41181#else
41182char (*f) () = gethostbyname;
41183#endif
41184#ifdef __cplusplus
41185}
41186#endif
41187
41188int
41189main ()
41190{
41191return f != gethostbyname;
41192 ;
41193 return 0;
41194}
41195_ACEOF
41196rm -f conftest.$ac_objext conftest$ac_exeext
41197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41198 (eval $ac_link) 2>conftest.er1
41199 ac_status=$?
41200 grep -v '^ *+' conftest.er1 >conftest.err
41201 rm -f conftest.er1
41202 cat conftest.err >&5
41203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41204 (exit $ac_status); } &&
479c790c 41205 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41207 (eval $ac_try) 2>&5
41208 ac_status=$?
41209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41210 (exit $ac_status); }; } &&
41211 { ac_try='test -s conftest$ac_exeext'
41212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41213 (eval $ac_try) 2>&5
41214 ac_status=$?
41215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41216 (exit $ac_status); }; }; then
41217 ac_cv_func_gethostbyname=yes
41218else
41219 echo "$as_me: failed program was:" >&5
41220sed 's/^/| /' conftest.$ac_ext >&5
41221
41222ac_cv_func_gethostbyname=no
41223fi
41224rm -f conftest.err conftest.$ac_objext \
41225 conftest$ac_exeext conftest.$ac_ext
41226fi
41227echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
41228echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
41229if test $ac_cv_func_gethostbyname = yes; then
41230 cat >>confdefs.h <<\_ACEOF
41231#define HAVE_GETHOSTBYNAME 1
41232_ACEOF
41233
41234fi
41235
41236 fi
3ecd9f92 41237
81c330c6
VZ
41238echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
41239echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6
41240if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
004ee6da
RL
41241 echo $ECHO_N "(cached) $ECHO_C" >&6
41242else
3ecd9f92
MW
41243
41244 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41245/* confdefs.h. */
41246_ACEOF
41247cat confdefs.h >>conftest.$ac_ext
41248cat >>conftest.$ac_ext <<_ACEOF
41249/* end confdefs.h. */
81c330c6 41250#include <netdb.h>
004ee6da
RL
41251int
41252main ()
41253{
41254
81c330c6
VZ
41255 char *name;
41256 char *proto;
41257 struct servent *se, *res;
41258 char buffer[2048];
41259 int buflen = 2048;
41260 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
004ee6da
RL
41261
41262 ;
41263 return 0;
41264}
41265_ACEOF
41266rm -f conftest.$ac_objext
41267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41268 (eval $ac_compile) 2>conftest.er1
41269 ac_status=$?
41270 grep -v '^ *+' conftest.er1 >conftest.err
41271 rm -f conftest.er1
41272 cat conftest.err >&5
41273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41274 (exit $ac_status); } &&
479c790c 41275 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41277 (eval $ac_try) 2>&5
41278 ac_status=$?
41279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41280 (exit $ac_status); }; } &&
41281 { ac_try='test -s conftest.$ac_objext'
41282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41283 (eval $ac_try) 2>&5
41284 ac_status=$?
41285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41286 (exit $ac_status); }; }; then
81c330c6 41287 ac_cv_func_which_getservbyname_r=six
004ee6da
RL
41288else
41289 echo "$as_me: failed program was:" >&5
41290sed 's/^/| /' conftest.$ac_ext >&5
41291
3ecd9f92 41292
81c330c6 41293 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41294/* confdefs.h. */
41295_ACEOF
41296cat confdefs.h >>conftest.$ac_ext
41297cat >>conftest.$ac_ext <<_ACEOF
41298/* end confdefs.h. */
81c330c6 41299#include <netdb.h>
004ee6da
RL
41300int
41301main ()
41302{
41303
81c330c6
VZ
41304 char *name;
41305 char *proto;
41306 struct servent *se;
41307 char buffer[2048];
41308 int buflen = 2048;
41309 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
41310
41311 ;
41312 return 0;
41313}
41314_ACEOF
41315rm -f conftest.$ac_objext
41316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41317 (eval $ac_compile) 2>conftest.er1
41318 ac_status=$?
41319 grep -v '^ *+' conftest.er1 >conftest.err
41320 rm -f conftest.er1
41321 cat conftest.err >&5
41322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41323 (exit $ac_status); } &&
479c790c 41324 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41326 (eval $ac_try) 2>&5
41327 ac_status=$?
41328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41329 (exit $ac_status); }; } &&
41330 { ac_try='test -s conftest.$ac_objext'
41331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41332 (eval $ac_try) 2>&5
41333 ac_status=$?
41334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41335 (exit $ac_status); }; }; then
81c330c6 41336 ac_cv_func_which_getservbyname_r=five
004ee6da
RL
41337else
41338 echo "$as_me: failed program was:" >&5
41339sed 's/^/| /' conftest.$ac_ext >&5
41340
3ecd9f92 41341
81c330c6 41342 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41343/* confdefs.h. */
41344_ACEOF
41345cat confdefs.h >>conftest.$ac_ext
41346cat >>conftest.$ac_ext <<_ACEOF
41347/* end confdefs.h. */
81c330c6 41348#include <netdb.h>
004ee6da
RL
41349int
41350main ()
41351{
41352
81c330c6
VZ
41353 char *name;
41354 char *proto;
41355 struct servent *se;
41356 struct servent_data data;
41357 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
41358
41359 ;
41360 return 0;
41361}
41362_ACEOF
41363rm -f conftest.$ac_objext
41364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41365 (eval $ac_compile) 2>conftest.er1
41366 ac_status=$?
41367 grep -v '^ *+' conftest.er1 >conftest.err
41368 rm -f conftest.er1
41369 cat conftest.err >&5
41370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41371 (exit $ac_status); } &&
479c790c 41372 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41374 (eval $ac_try) 2>&5
41375 ac_status=$?
41376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41377 (exit $ac_status); }; } &&
41378 { ac_try='test -s conftest.$ac_objext'
41379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41380 (eval $ac_try) 2>&5
41381 ac_status=$?
41382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41383 (exit $ac_status); }; }; then
81c330c6 41384 ac_cv_func_which_getservbyname_r=four
004ee6da
RL
41385else
41386 echo "$as_me: failed program was:" >&5
41387sed 's/^/| /' conftest.$ac_ext >&5
41388
41389ac_cv_func_which_getservbyname_r=no
81c330c6 41390
004ee6da
RL
41391fi
41392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41393
3ecd9f92 41394
004ee6da
RL
41395fi
41396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41397
3ecd9f92 41398
004ee6da
RL
41399fi
41400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3ecd9f92 41401
004ee6da 41402
3ecd9f92
MW
41403fi
41404echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41405echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
004ee6da
RL
41406
41407if test $ac_cv_func_which_getservbyname_r = six; then
41408 cat >>confdefs.h <<\_ACEOF
41409#define HAVE_FUNC_GETSERVBYNAME_R_6 1
41410_ACEOF
41411
41412elif test $ac_cv_func_which_getservbyname_r = five; then
41413 cat >>confdefs.h <<\_ACEOF
41414#define HAVE_FUNC_GETSERVBYNAME_R_5 1
41415_ACEOF
41416
41417elif test $ac_cv_func_which_getservbyname_r = four; then
41418 cat >>confdefs.h <<\_ACEOF
41419#define HAVE_FUNC_GETSERVBYNAME_R_4 1
41420_ACEOF
41421
004ee6da
RL
41422fi
41423
41424
41425 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
41426 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
41427
41428for ac_func in getservbyname
41429do
41430as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41431echo "$as_me:$LINENO: checking for $ac_func" >&5
41432echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41433if eval "test \"\${$as_ac_var+set}\" = set"; then
41434 echo $ECHO_N "(cached) $ECHO_C" >&6
41435else
41436 cat >conftest.$ac_ext <<_ACEOF
41437/* confdefs.h. */
41438_ACEOF
41439cat confdefs.h >>conftest.$ac_ext
41440cat >>conftest.$ac_ext <<_ACEOF
41441/* end confdefs.h. */
41442/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41444#define $ac_func innocuous_$ac_func
41445
41446/* System header to define __stub macros and hopefully few prototypes,
41447 which can conflict with char $ac_func (); below.
41448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41449 <limits.h> exists even on freestanding compilers. */
41450
41451#ifdef __STDC__
41452# include <limits.h>
41453#else
41454# include <assert.h>
41455#endif
41456
41457#undef $ac_func
41458
41459/* Override any gcc2 internal prototype to avoid an error. */
41460#ifdef __cplusplus
41461extern "C"
41462{
41463#endif
41464/* We use char because int might match the return type of a gcc2
41465 builtin and then its argument prototype would still apply. */
41466char $ac_func ();
41467/* The GNU C library defines this for functions which it implements
41468 to always fail with ENOSYS. Some functions are actually named
41469 something starting with __ and the normal name is an alias. */
41470#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41471choke me
41472#else
41473char (*f) () = $ac_func;
41474#endif
41475#ifdef __cplusplus
41476}
41477#endif
41478
41479int
41480main ()
41481{
41482return f != $ac_func;
41483 ;
41484 return 0;
41485}
41486_ACEOF
41487rm -f conftest.$ac_objext conftest$ac_exeext
41488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41489 (eval $ac_link) 2>conftest.er1
41490 ac_status=$?
41491 grep -v '^ *+' conftest.er1 >conftest.err
41492 rm -f conftest.er1
41493 cat conftest.err >&5
41494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41495 (exit $ac_status); } &&
479c790c 41496 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41498 (eval $ac_try) 2>&5
41499 ac_status=$?
41500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41501 (exit $ac_status); }; } &&
41502 { ac_try='test -s conftest$ac_exeext'
41503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41504 (eval $ac_try) 2>&5
41505 ac_status=$?
41506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41507 (exit $ac_status); }; }; then
41508 eval "$as_ac_var=yes"
41509else
41510 echo "$as_me: failed program was:" >&5
41511sed 's/^/| /' conftest.$ac_ext >&5
41512
41513eval "$as_ac_var=no"
41514fi
41515rm -f conftest.err conftest.$ac_objext \
41516 conftest$ac_exeext conftest.$ac_ext
41517fi
41518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41519echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41520if test `eval echo '${'$as_ac_var'}'` = yes; then
41521 cat >>confdefs.h <<_ACEOF
41522#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41523_ACEOF
41524 cat >>confdefs.h <<\_ACEOF
41525#define HAVE_GETSERVBYNAME 1
41526_ACEOF
41527
41528fi
41529done
41530
41531 fi
41532
004ee6da
RL
41533if test "$wxUSE_THREADS" = "yes"; then
41534 cat >>confdefs.h <<\_ACEOF
41535#define wxUSE_THREADS 1
41536_ACEOF
41537
41538
41539 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
41540else
56632e81 41541 if test "$wx_cv_func_strtok_r" = "yes"; then
004ee6da
RL
41542 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
41543echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
41544 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
41545 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
41546 echo "$as_me:$LINENO: result: yes" >&5
41547echo "${ECHO_T}yes" >&6
41548 else
41549 echo "$as_me:$LINENO: result: no" >&5
41550echo "${ECHO_T}no" >&6
41551 fi
41552 fi
41553fi
41554
41555if test "$WXGTK20" = 1 ; then
41556 cat >>confdefs.h <<_ACEOF
41557#define __WXGTK20__ $WXGTK20
41558_ACEOF
41559
41560 WXGTK12=1
41561fi
41562
41563if test "$WXGTK12" = 1 ; then
41564 cat >>confdefs.h <<_ACEOF
41565#define __WXGTK12__ $WXGTK12
41566_ACEOF
41567
41568fi
41569
41570if test "$WXGTK127" = 1 ; then
41571 cat >>confdefs.h <<_ACEOF
41572#define __WXGTK127__ $WXGTK127
41573_ACEOF
41574
41575fi
41576
41577if test "$WXGPE" = 1 ; then
41578 cat >>confdefs.h <<_ACEOF
41579#define __WXGPE__ $WXGPE
41580_ACEOF
41581
41582fi
41583
41584DEBUG_CFLAGS=
41585if test "$wxUSE_DEBUG_INFO" = "yes" ; then
41586 DEBUG_CFLAGS="-g"
41587 wxUSE_OPTIMISE=no
41588fi
41589
41590if test "$wxUSE_DEBUG_GDB" = "yes" ; then
41591 wxUSE_DEBUG_INFO=yes
41592 if test "$GCC" = yes; then
41593 DEBUG_CFLAGS="-ggdb"
41594 fi
41595fi
41596
41597if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
41598 cat >>confdefs.h <<\_ACEOF
41599#define WXDEBUG 1
41600_ACEOF
41601
41602 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
41603else
41604 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
41605 if test "x$wxGTK_VERSION" = "x1" ; then
41606 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
41607 fi
004ee6da
RL
41608 fi
41609fi
41610
41611if test "$wxUSE_MEM_TRACING" = "yes" ; then
41612 cat >>confdefs.h <<\_ACEOF
41613#define wxUSE_MEMORY_TRACING 1
41614_ACEOF
41615
41616 cat >>confdefs.h <<\_ACEOF
41617#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
41618_ACEOF
41619
41620 cat >>confdefs.h <<\_ACEOF
41621#define wxUSE_DEBUG_NEW_ALWAYS 1
41622_ACEOF
41623
41624 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
41625fi
41626
41627if test "$wxUSE_DMALLOC" = "yes" ; then
41628 DMALLOC_LIBS="-ldmallocthcxx"
41629fi
41630
41631PROFILE_FLAGS=
41632if test "$wxUSE_PROFILE" = "yes" ; then
41633 PROFILE_FLAGS=" -pg"
41634fi
41635
41636if test "$GCC" = "yes" ; then
41637 if test "$wxUSE_NO_RTTI" = "yes" ; then
41638 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
41639 fi
41640 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41641 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
41642 fi
41643 if test "$wxUSE_PERMISSIVE" = "yes" ; then
41644 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
41645 fi
41646
41647 case "${host}" in
41648 powerpc*-*-aix* )
41649 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
41650 ;;
41651 *-hppa* )
41652 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
41653 ;;
41654 esac
41655fi
41656
41657OPTIMISE_CFLAGS=
41658if test "$wxUSE_OPTIMISE" = "no" ; then
41659 if test "$GCC" = yes ; then
41660 OPTIMISE_CFLAGS="-O0"
41661 fi
41662else
41663 if test "$GCC" = yes ; then
e5efa97e
VZ
41664 case "${host}" in
41665 *-pc-os2_emx | *-pc-os2-emx )
41666 OPTIMISE_CFLAGS="-O2"
41667 ;;
41668 *)
41669 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
41670 ;;
41671 esac
004ee6da
RL
41672 else
41673 OPTIMISE_CFLAGS="-O"
41674 fi
41675fi
41676
41677
41678if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
41679 cat >>confdefs.h <<\_ACEOF
41680#define WXWIN_COMPATIBILITY_2_4 1
41681_ACEOF
41682
41683
41684 WXWIN_COMPATIBILITY_2_6="yes"
41685fi
41686
41687if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
41688 cat >>confdefs.h <<\_ACEOF
41689#define WXWIN_COMPATIBILITY_2_6 1
41690_ACEOF
41691
41692fi
41693
41694
41695if test "$wxUSE_GUI" = "yes"; then
41696 cat >>confdefs.h <<\_ACEOF
41697#define wxUSE_GUI 1
41698_ACEOF
41699
41700
41701 fi
41702
41703
41704if test "$wxUSE_UNIX" = "yes"; then
41705 cat >>confdefs.h <<\_ACEOF
41706#define wxUSE_UNIX 1
41707_ACEOF
41708
41709fi
41710
41711
41712if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41713
41714 HAVE_DL_FUNCS=0
41715 HAVE_SHL_FUNCS=0
41716 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41717 if test "$USE_DARWIN" = 1; then
41718 HAVE_DL_FUNCS=1
41719 elif test "$USE_DOS" = 1; then
41720 HAVE_DL_FUNCS=0
41721 else
41722
41723for ac_func in dlopen
41724do
41725as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41726echo "$as_me:$LINENO: checking for $ac_func" >&5
41727echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41728if eval "test \"\${$as_ac_var+set}\" = set"; then
41729 echo $ECHO_N "(cached) $ECHO_C" >&6
41730else
41731 cat >conftest.$ac_ext <<_ACEOF
41732/* confdefs.h. */
41733_ACEOF
41734cat confdefs.h >>conftest.$ac_ext
41735cat >>conftest.$ac_ext <<_ACEOF
41736/* end confdefs.h. */
41737/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41739#define $ac_func innocuous_$ac_func
41740
41741/* System header to define __stub macros and hopefully few prototypes,
41742 which can conflict with char $ac_func (); below.
41743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41744 <limits.h> exists even on freestanding compilers. */
41745
41746#ifdef __STDC__
41747# include <limits.h>
41748#else
41749# include <assert.h>
41750#endif
41751
41752#undef $ac_func
41753
41754/* Override any gcc2 internal prototype to avoid an error. */
41755#ifdef __cplusplus
41756extern "C"
41757{
41758#endif
41759/* We use char because int might match the return type of a gcc2
41760 builtin and then its argument prototype would still apply. */
41761char $ac_func ();
41762/* The GNU C library defines this for functions which it implements
41763 to always fail with ENOSYS. Some functions are actually named
41764 something starting with __ and the normal name is an alias. */
41765#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41766choke me
41767#else
41768char (*f) () = $ac_func;
41769#endif
41770#ifdef __cplusplus
41771}
41772#endif
41773
41774int
41775main ()
41776{
41777return f != $ac_func;
a848cd7e
SC
41778 ;
41779 return 0;
41780}
41781_ACEOF
41782rm -f conftest.$ac_objext conftest$ac_exeext
41783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41784 (eval $ac_link) 2>conftest.er1
a848cd7e 41785 ac_status=$?
ac1cb8d3
VS
41786 grep -v '^ *+' conftest.er1 >conftest.err
41787 rm -f conftest.er1
41788 cat conftest.err >&5
a848cd7e
SC
41789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41790 (exit $ac_status); } &&
479c790c 41791 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41793 (eval $ac_try) 2>&5
41794 ac_status=$?
41795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41796 (exit $ac_status); }; } &&
41797 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41799 (eval $ac_try) 2>&5
41800 ac_status=$?
41801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41802 (exit $ac_status); }; }; then
41803 eval "$as_ac_var=yes"
41804else
41805 echo "$as_me: failed program was:" >&5
41806sed 's/^/| /' conftest.$ac_ext >&5
41807
41808eval "$as_ac_var=no"
41809fi
ac1cb8d3
VS
41810rm -f conftest.err conftest.$ac_objext \
41811 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41812fi
41813echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41814echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41815if test `eval echo '${'$as_ac_var'}'` = yes; then
41816 cat >>confdefs.h <<_ACEOF
41817#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41818_ACEOF
41819
41820 cat >>confdefs.h <<\_ACEOF
41821#define HAVE_DLOPEN 1
41822_ACEOF
41823
41824 HAVE_DL_FUNCS=1
41825
41826else
41827
41828 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41829echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
41830if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41831 echo $ECHO_N "(cached) $ECHO_C" >&6
41832else
41833 ac_check_lib_save_LIBS=$LIBS
41834LIBS="-ldl $LIBS"
41835cat >conftest.$ac_ext <<_ACEOF
41836/* confdefs.h. */
41837_ACEOF
41838cat confdefs.h >>conftest.$ac_ext
41839cat >>conftest.$ac_ext <<_ACEOF
41840/* end confdefs.h. */
41841
41842/* Override any gcc2 internal prototype to avoid an error. */
41843#ifdef __cplusplus
41844extern "C"
41845#endif
41846/* We use char because int might match the return type of a gcc2
41847 builtin and then its argument prototype would still apply. */
41848char dlopen ();
41849int
41850main ()
41851{
41852dlopen ();
41853 ;
41854 return 0;
41855}
41856_ACEOF
41857rm -f conftest.$ac_objext conftest$ac_exeext
41858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41859 (eval $ac_link) 2>conftest.er1
a848cd7e 41860 ac_status=$?
ac1cb8d3
VS
41861 grep -v '^ *+' conftest.er1 >conftest.err
41862 rm -f conftest.er1
41863 cat conftest.err >&5
a848cd7e
SC
41864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41865 (exit $ac_status); } &&
479c790c 41866 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41868 (eval $ac_try) 2>&5
41869 ac_status=$?
41870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41871 (exit $ac_status); }; } &&
41872 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41874 (eval $ac_try) 2>&5
41875 ac_status=$?
41876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41877 (exit $ac_status); }; }; then
41878 ac_cv_lib_dl_dlopen=yes
41879else
41880 echo "$as_me: failed program was:" >&5
41881sed 's/^/| /' conftest.$ac_ext >&5
41882
41883ac_cv_lib_dl_dlopen=no
41884fi
ac1cb8d3
VS
41885rm -f conftest.err conftest.$ac_objext \
41886 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41887LIBS=$ac_check_lib_save_LIBS
41888fi
41889echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41890echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
41891if test $ac_cv_lib_dl_dlopen = yes; then
41892
41893 cat >>confdefs.h <<\_ACEOF
41894#define HAVE_DLOPEN 1
41895_ACEOF
41896
41897 HAVE_DL_FUNCS=1
41898 DL_LINK=" -ldl$DL_LINK"
41899
41900else
41901
41902
41903for ac_func in shl_load
41904do
41905as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41906echo "$as_me:$LINENO: checking for $ac_func" >&5
41907echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41908if eval "test \"\${$as_ac_var+set}\" = set"; then
41909 echo $ECHO_N "(cached) $ECHO_C" >&6
41910else
41911 cat >conftest.$ac_ext <<_ACEOF
41912/* confdefs.h. */
41913_ACEOF
41914cat confdefs.h >>conftest.$ac_ext
41915cat >>conftest.$ac_ext <<_ACEOF
41916/* end confdefs.h. */
ac1cb8d3
VS
41917/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41919#define $ac_func innocuous_$ac_func
41920
a848cd7e
SC
41921/* System header to define __stub macros and hopefully few prototypes,
41922 which can conflict with char $ac_func (); below.
41923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41924 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41925
a848cd7e
SC
41926#ifdef __STDC__
41927# include <limits.h>
41928#else
41929# include <assert.h>
41930#endif
ac1cb8d3
VS
41931
41932#undef $ac_func
41933
a848cd7e
SC
41934/* Override any gcc2 internal prototype to avoid an error. */
41935#ifdef __cplusplus
41936extern "C"
41937{
41938#endif
41939/* We use char because int might match the return type of a gcc2
41940 builtin and then its argument prototype would still apply. */
41941char $ac_func ();
41942/* The GNU C library defines this for functions which it implements
41943 to always fail with ENOSYS. Some functions are actually named
41944 something starting with __ and the normal name is an alias. */
41945#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41946choke me
41947#else
41948char (*f) () = $ac_func;
41949#endif
41950#ifdef __cplusplus
41951}
41952#endif
41953
41954int
41955main ()
41956{
41957return f != $ac_func;
41958 ;
41959 return 0;
41960}
41961_ACEOF
41962rm -f conftest.$ac_objext conftest$ac_exeext
41963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41964 (eval $ac_link) 2>conftest.er1
a848cd7e 41965 ac_status=$?
ac1cb8d3
VS
41966 grep -v '^ *+' conftest.er1 >conftest.err
41967 rm -f conftest.er1
41968 cat conftest.err >&5
a848cd7e
SC
41969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41970 (exit $ac_status); } &&
479c790c 41971 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41973 (eval $ac_try) 2>&5
41974 ac_status=$?
41975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41976 (exit $ac_status); }; } &&
41977 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41979 (eval $ac_try) 2>&5
41980 ac_status=$?
41981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41982 (exit $ac_status); }; }; then
41983 eval "$as_ac_var=yes"
41984else
41985 echo "$as_me: failed program was:" >&5
41986sed 's/^/| /' conftest.$ac_ext >&5
41987
41988eval "$as_ac_var=no"
41989fi
ac1cb8d3
VS
41990rm -f conftest.err conftest.$ac_objext \
41991 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41992fi
41993echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41994echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41995if test `eval echo '${'$as_ac_var'}'` = yes; then
41996 cat >>confdefs.h <<_ACEOF
41997#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41998_ACEOF
41999
42000 cat >>confdefs.h <<\_ACEOF
42001#define HAVE_SHL_LOAD 1
42002_ACEOF
42003
42004 HAVE_SHL_FUNCS=1
42005
42006else
42007
42008 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
42009echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
42010if test "${ac_cv_lib_shl_load_dld+set}" = set; then
42011 echo $ECHO_N "(cached) $ECHO_C" >&6
42012else
42013 ac_check_lib_save_LIBS=$LIBS
42014LIBS="-lshl_load $LIBS"
42015cat >conftest.$ac_ext <<_ACEOF
42016/* confdefs.h. */
42017_ACEOF
42018cat confdefs.h >>conftest.$ac_ext
42019cat >>conftest.$ac_ext <<_ACEOF
42020/* end confdefs.h. */
42021
42022/* Override any gcc2 internal prototype to avoid an error. */
42023#ifdef __cplusplus
42024extern "C"
42025#endif
42026/* We use char because int might match the return type of a gcc2
42027 builtin and then its argument prototype would still apply. */
42028char dld ();
42029int
42030main ()
42031{
42032dld ();
42033 ;
42034 return 0;
42035}
42036_ACEOF
42037rm -f conftest.$ac_objext conftest$ac_exeext
42038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42039 (eval $ac_link) 2>conftest.er1
a848cd7e 42040 ac_status=$?
ac1cb8d3
VS
42041 grep -v '^ *+' conftest.er1 >conftest.err
42042 rm -f conftest.er1
42043 cat conftest.err >&5
a848cd7e
SC
42044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42045 (exit $ac_status); } &&
479c790c 42046 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42048 (eval $ac_try) 2>&5
42049 ac_status=$?
42050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42051 (exit $ac_status); }; } &&
42052 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42054 (eval $ac_try) 2>&5
42055 ac_status=$?
42056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42057 (exit $ac_status); }; }; then
42058 ac_cv_lib_shl_load_dld=yes
42059else
42060 echo "$as_me: failed program was:" >&5
42061sed 's/^/| /' conftest.$ac_ext >&5
42062
42063ac_cv_lib_shl_load_dld=no
42064fi
ac1cb8d3
VS
42065rm -f conftest.err conftest.$ac_objext \
42066 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42067LIBS=$ac_check_lib_save_LIBS
42068fi
42069echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
42070echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
42071if test $ac_cv_lib_shl_load_dld = yes; then
42072
42073 HAVE_SHL_FUNCS=1
42074 DL_LINK=" -ldld$DL_LINK"
42075
42076fi
42077
42078
42079fi
42080done
42081
42082
42083fi
42084
42085
42086fi
42087done
42088
42089
42090 if test "$HAVE_DL_FUNCS" = 1; then
42091
42092for ac_func in dlerror
42093do
42094as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42095echo "$as_me:$LINENO: checking for $ac_func" >&5
42096echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42097if eval "test \"\${$as_ac_var+set}\" = set"; then
42098 echo $ECHO_N "(cached) $ECHO_C" >&6
42099else
42100 cat >conftest.$ac_ext <<_ACEOF
42101/* confdefs.h. */
42102_ACEOF
42103cat confdefs.h >>conftest.$ac_ext
42104cat >>conftest.$ac_ext <<_ACEOF
42105/* end confdefs.h. */
ac1cb8d3
VS
42106/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42108#define $ac_func innocuous_$ac_func
42109
a848cd7e
SC
42110/* System header to define __stub macros and hopefully few prototypes,
42111 which can conflict with char $ac_func (); below.
42112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42113 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42114
a848cd7e
SC
42115#ifdef __STDC__
42116# include <limits.h>
42117#else
42118# include <assert.h>
42119#endif
ac1cb8d3
VS
42120
42121#undef $ac_func
42122
a848cd7e
SC
42123/* Override any gcc2 internal prototype to avoid an error. */
42124#ifdef __cplusplus
42125extern "C"
42126{
42127#endif
42128/* We use char because int might match the return type of a gcc2
42129 builtin and then its argument prototype would still apply. */
42130char $ac_func ();
42131/* The GNU C library defines this for functions which it implements
42132 to always fail with ENOSYS. Some functions are actually named
42133 something starting with __ and the normal name is an alias. */
42134#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42135choke me
42136#else
42137char (*f) () = $ac_func;
42138#endif
42139#ifdef __cplusplus
42140}
42141#endif
42142
42143int
42144main ()
42145{
42146return f != $ac_func;
42147 ;
42148 return 0;
42149}
42150_ACEOF
42151rm -f conftest.$ac_objext conftest$ac_exeext
42152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42153 (eval $ac_link) 2>conftest.er1
a848cd7e 42154 ac_status=$?
ac1cb8d3
VS
42155 grep -v '^ *+' conftest.er1 >conftest.err
42156 rm -f conftest.er1
42157 cat conftest.err >&5
a848cd7e
SC
42158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42159 (exit $ac_status); } &&
479c790c 42160 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42162 (eval $ac_try) 2>&5
42163 ac_status=$?
42164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42165 (exit $ac_status); }; } &&
42166 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42168 (eval $ac_try) 2>&5
42169 ac_status=$?
42170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42171 (exit $ac_status); }; }; then
42172 eval "$as_ac_var=yes"
42173else
42174 echo "$as_me: failed program was:" >&5
42175sed 's/^/| /' conftest.$ac_ext >&5
42176
42177eval "$as_ac_var=no"
42178fi
ac1cb8d3
VS
42179rm -f conftest.err conftest.$ac_objext \
42180 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42181fi
42182echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42183echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42184if test `eval echo '${'$as_ac_var'}'` = yes; then
42185 cat >>confdefs.h <<_ACEOF
42186#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42187_ACEOF
42188 cat >>confdefs.h <<\_ACEOF
42189#define HAVE_DLERROR 1
42190_ACEOF
42191
42192else
42193
42194 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
42195echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
42196if test "${ac_cv_lib_dl_dlerror+set}" = set; then
42197 echo $ECHO_N "(cached) $ECHO_C" >&6
42198else
42199 ac_check_lib_save_LIBS=$LIBS
42200LIBS="-ldl $LIBS"
42201cat >conftest.$ac_ext <<_ACEOF
42202/* confdefs.h. */
42203_ACEOF
42204cat confdefs.h >>conftest.$ac_ext
42205cat >>conftest.$ac_ext <<_ACEOF
42206/* end confdefs.h. */
42207
42208/* Override any gcc2 internal prototype to avoid an error. */
42209#ifdef __cplusplus
42210extern "C"
42211#endif
42212/* We use char because int might match the return type of a gcc2
42213 builtin and then its argument prototype would still apply. */
42214char dlerror ();
42215int
42216main ()
42217{
42218dlerror ();
42219 ;
42220 return 0;
42221}
42222_ACEOF
42223rm -f conftest.$ac_objext conftest$ac_exeext
42224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42225 (eval $ac_link) 2>conftest.er1
a848cd7e 42226 ac_status=$?
ac1cb8d3
VS
42227 grep -v '^ *+' conftest.er1 >conftest.err
42228 rm -f conftest.er1
42229 cat conftest.err >&5
a848cd7e
SC
42230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42231 (exit $ac_status); } &&
479c790c 42232 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42234 (eval $ac_try) 2>&5
42235 ac_status=$?
42236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42237 (exit $ac_status); }; } &&
42238 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42240 (eval $ac_try) 2>&5
42241 ac_status=$?
42242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42243 (exit $ac_status); }; }; then
42244 ac_cv_lib_dl_dlerror=yes
42245else
42246 echo "$as_me: failed program was:" >&5
42247sed 's/^/| /' conftest.$ac_ext >&5
42248
42249ac_cv_lib_dl_dlerror=no
42250fi
ac1cb8d3
VS
42251rm -f conftest.err conftest.$ac_objext \
42252 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42253LIBS=$ac_check_lib_save_LIBS
42254fi
42255echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
42256echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
42257if test $ac_cv_lib_dl_dlerror = yes; then
42258 cat >>confdefs.h <<\_ACEOF
42259#define HAVE_DLERROR 1
42260_ACEOF
42261
42262fi
42263
42264
42265
42266fi
42267done
42268
42269 fi
42270 fi
42271
42272 if test "$HAVE_DL_FUNCS" = 0; then
42273 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 42274 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
42275 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
42276echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
42277 wxUSE_DYNAMIC_LOADER=no
42278 wxUSE_DYNLIB_CLASS=no
42279 else
42280 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
42281echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
42282 fi
42283 fi
42284 fi
42285 fi
42286fi
42287
42288if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
42289 cat >>confdefs.h <<\_ACEOF
42290#define wxUSE_DYNAMIC_LOADER 1
42291_ACEOF
42292
42293fi
42294if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42295 cat >>confdefs.h <<\_ACEOF
42296#define wxUSE_DYNLIB_CLASS 1
42297_ACEOF
42298
42299fi
42300
42301
42302
42303if test "$wxUSE_PLUGINS" = "yes" ; then
42304 if test "$wxUSE_SHARED" = "no" ; then
42305 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
42306echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
42307 wxUSE_PLUGINS=no
42308 fi
42309 if test "$wxUSE_MONOLITHIC" = "yes" ; then
42310 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
42311echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
42312 wxUSE_PLUGINS=no
42313 fi
42314 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
42315 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
42316echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
42317 wxUSE_PLUGINS=no
42318 fi
42319 if test "$wxUSE_PLUGINS" = "yes" ; then
42320 cat >>confdefs.h <<\_ACEOF
42321#define wxUSE_PLUGINS 1
42322_ACEOF
42323
42324 fi
42325fi
42326
42327
42328if test "$wxUSE_STL" = "yes"; then
42329 cat >>confdefs.h <<\_ACEOF
42330#define wxUSE_STL 1
42331_ACEOF
42332
42333fi
42334
42335if test "$wxUSE_APPLE_IEEE" = "yes"; then
42336 cat >>confdefs.h <<\_ACEOF
42337#define wxUSE_APPLE_IEEE 1
42338_ACEOF
42339
42340fi
42341
42342if test "$wxUSE_TIMER" = "yes"; then
42343 cat >>confdefs.h <<\_ACEOF
42344#define wxUSE_TIMER 1
42345_ACEOF
42346
42347fi
42348
9c112555 42349if test "$USE_UNIX" = "1" ; then
31714590
VZ
42350 echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
42351echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
d12aef51 42352if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 42353 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 42354else
d12aef51
VZ
42355
42356 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42357/* confdefs.h. */
42358_ACEOF
42359cat confdefs.h >>conftest.$ac_ext
42360cat >>conftest.$ac_ext <<_ACEOF
42361/* end confdefs.h. */
d12aef51 42362
31714590 42363 #include <sys/ioctl.h>
d12aef51
VZ
42364 #include <sys/soundcard.h>
42365
42366int
42367main ()
42368{
42369
31714590 42370 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
42371
42372 ;
42373 return 0;
42374}
a848cd7e 42375_ACEOF
d12aef51
VZ
42376rm -f conftest.$ac_objext conftest$ac_exeext
42377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42378 (eval $ac_link) 2>conftest.er1
a848cd7e 42379 ac_status=$?
ac1cb8d3
VS
42380 grep -v '^ *+' conftest.er1 >conftest.err
42381 rm -f conftest.er1
42382 cat conftest.err >&5
a848cd7e
SC
42383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42384 (exit $ac_status); } &&
479c790c 42385 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42387 (eval $ac_try) 2>&5
42388 ac_status=$?
42389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42390 (exit $ac_status); }; } &&
d12aef51 42391 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42393 (eval $ac_try) 2>&5
42394 ac_status=$?
42395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42396 (exit $ac_status); }; }; then
d12aef51 42397 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
42398else
42399 echo "$as_me: failed program was:" >&5
42400sed 's/^/| /' conftest.$ac_ext >&5
42401
a848cd7e 42402
d12aef51
VZ
42403 saveLibs="$LIBS"
42404 LIBS="$saveLibs -lossaudio"
42405 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42406/* confdefs.h. */
42407_ACEOF
42408cat confdefs.h >>conftest.$ac_ext
42409cat >>conftest.$ac_ext <<_ACEOF
42410/* end confdefs.h. */
d12aef51 42411
31714590 42412 #include <sys/ioctl.h>
d12aef51
VZ
42413 #include <sys/soundcard.h>
42414
42415int
42416main ()
42417{
42418
31714590 42419 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
42420
42421 ;
42422 return 0;
42423}
a848cd7e 42424_ACEOF
d12aef51
VZ
42425rm -f conftest.$ac_objext conftest$ac_exeext
42426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42427 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
42428 ac_status=$?
42429 grep -v '^ *+' conftest.er1 >conftest.err
42430 rm -f conftest.er1
42431 cat conftest.err >&5
42432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 42433 (exit $ac_status); } &&
479c790c 42434 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
42435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42436 (eval $ac_try) 2>&5
42437 ac_status=$?
42438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42439 (exit $ac_status); }; } &&
42440 { ac_try='test -s conftest$ac_exeext'
42441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42442 (eval $ac_try) 2>&5
42443 ac_status=$?
42444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42445 (exit $ac_status); }; }; then
42446 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
42447else
42448 echo "$as_me: failed program was:" >&5
42449sed 's/^/| /' conftest.$ac_ext >&5
42450
a848cd7e 42451
d12aef51
VZ
42452 LIBS="$saveLibs"
42453 ac_cv_header_sys_soundcard=no
42454
42455
a848cd7e 42456fi
d12aef51
VZ
42457rm -f conftest.err conftest.$ac_objext \
42458 conftest$ac_exeext conftest.$ac_ext
42459
a848cd7e
SC
42460
42461fi
d12aef51
VZ
42462rm -f conftest.err conftest.$ac_objext \
42463 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42464
42465fi
d12aef51
VZ
42466echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
42467echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 42468
d12aef51
VZ
42469 if test "$ac_cv_header_sys_soundcard" = "yes"; then
42470 cat >>confdefs.h <<\_ACEOF
42471#define HAVE_SYS_SOUNDCARD_H 1
42472_ACEOF
a848cd7e 42473
d12aef51
VZ
42474 else
42475 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
42476 fi
9c112555
MW
42477fi
42478WITH_PLUGIN_SDL=0
42479if test "$wxUSE_SOUND" = "yes"; then
42480 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
42481 if test "$wxUSE_LIBSDL" != "no"; then
42482
42483# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
42484if test "${with_sdl_prefix+set}" = set; then
42485 withval="$with_sdl_prefix"
42486 sdl_prefix="$withval"
42487else
42488 sdl_prefix=""
42489fi;
42490
42491# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
42492if test "${with_sdl_exec_prefix+set}" = set; then
42493 withval="$with_sdl_exec_prefix"
42494 sdl_exec_prefix="$withval"
42495else
42496 sdl_exec_prefix=""
42497fi;
42498# Check whether --enable-sdltest or --disable-sdltest was given.
42499if test "${enable_sdltest+set}" = set; then
42500 enableval="$enable_sdltest"
42501
42502else
42503 enable_sdltest=yes
42504fi;
42505
42506 if test x$sdl_exec_prefix != x ; then
3ecd9f92
MW
42507 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
42508 if test x${SDL_CONFIG+set} != xset ; then
42509 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
42510 fi
a848cd7e
SC
42511 fi
42512 if test x$sdl_prefix != x ; then
3ecd9f92
MW
42513 sdl_args="$sdl_args --prefix=$sdl_prefix"
42514 if test x${SDL_CONFIG+set} != xset ; then
42515 SDL_CONFIG=$sdl_prefix/bin/sdl-config
42516 fi
a848cd7e
SC
42517 fi
42518
3ecd9f92
MW
42519 if test "x$prefix" != xNONE; then
42520 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
42521 fi
a848cd7e
SC
42522 # Extract the first word of "sdl-config", so it can be a program name with args.
42523set dummy sdl-config; ac_word=$2
42524echo "$as_me:$LINENO: checking for $ac_word" >&5
42525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42526if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
42527 echo $ECHO_N "(cached) $ECHO_C" >&6
42528else
42529 case $SDL_CONFIG in
42530 [\\/]* | ?:[\\/]*)
42531 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
42532 ;;
42533 *)
42534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42535for as_dir in $PATH
42536do
42537 IFS=$as_save_IFS
42538 test -z "$as_dir" && as_dir=.
42539 for ac_exec_ext in '' $ac_executable_extensions; do
42540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42541 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42543 break 2
42544 fi
42545done
42546done
42547
42548 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
42549 ;;
42550esac
42551fi
42552SDL_CONFIG=$ac_cv_path_SDL_CONFIG
42553
42554if test -n "$SDL_CONFIG"; then
42555 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
42556echo "${ECHO_T}$SDL_CONFIG" >&6
42557else
42558 echo "$as_me:$LINENO: result: no" >&5
42559echo "${ECHO_T}no" >&6
42560fi
42561
42562 min_sdl_version=1.2.0
42563 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
42564echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
42565 no_sdl=""
42566 if test "$SDL_CONFIG" = "no" ; then
42567 no_sdl=yes
42568 else
42569 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
42570 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
42571
42572 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
42573 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42574 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
42575 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42576 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
42577 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42578 if test "x$enable_sdltest" = "xyes" ; then
42579 ac_save_CFLAGS="$CFLAGS"
94acd38e 42580 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
42581 ac_save_LIBS="$LIBS"
42582 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 42583 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
42584 LIBS="$LIBS $SDL_LIBS"
42585 rm -f conf.sdltest
42586 if test "$cross_compiling" = yes; then
42587 echo $ac_n "cross compiling; assumed OK... $ac_c"
42588else
42589 cat >conftest.$ac_ext <<_ACEOF
42590/* confdefs.h. */
42591_ACEOF
42592cat confdefs.h >>conftest.$ac_ext
42593cat >>conftest.$ac_ext <<_ACEOF
42594/* end confdefs.h. */
42595
42596#include <stdio.h>
42597#include <stdlib.h>
42598#include <string.h>
42599#include "SDL.h"
42600
42601char*
42602my_strdup (char *str)
42603{
42604 char *new_str;
42605
42606 if (str)
42607 {
42608 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
42609 strcpy (new_str, str);
42610 }
42611 else
42612 new_str = NULL;
42613
42614 return new_str;
42615}
42616
42617int main (int argc, char *argv[])
42618{
42619 int major, minor, micro;
42620 char *tmp_version;
42621
42622 /* This hangs on some systems (?)
42623 system ("touch conf.sdltest");
42624 */
42625 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
42626
42627 /* HP/UX 9 (%@#!) writes to sscanf strings */
42628 tmp_version = my_strdup("$min_sdl_version");
42629 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
42630 printf("%s, bad version string\n", "$min_sdl_version");
42631 exit(1);
42632 }
42633
42634 if (($sdl_major_version > major) ||
42635 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
42636 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
42637 {
42638 return 0;
42639 }
42640 else
42641 {
42642 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
42643 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
42644 printf("*** best to upgrade to the required version.\n");
42645 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
42646 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
42647 printf("*** config.cache before re-running configure\n");
42648 return 1;
42649 }
42650}
42651
42652
42653_ACEOF
42654rm -f conftest$ac_exeext
42655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42656 (eval $ac_link) 2>&5
42657 ac_status=$?
42658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42661 (eval $ac_try) 2>&5
42662 ac_status=$?
42663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42664 (exit $ac_status); }; }; then
42665 :
42666else
42667 echo "$as_me: program exited with status $ac_status" >&5
42668echo "$as_me: failed program was:" >&5
42669sed 's/^/| /' conftest.$ac_ext >&5
42670
42671( exit $ac_status )
42672no_sdl=yes
42673fi
ac1cb8d3 42674rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42675fi
42676 CFLAGS="$ac_save_CFLAGS"
94acd38e 42677 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
42678 LIBS="$ac_save_LIBS"
42679 fi
42680 fi
42681 if test "x$no_sdl" = x ; then
42682 echo "$as_me:$LINENO: result: yes" >&5
42683echo "${ECHO_T}yes" >&6
42684
42685 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 42686 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
42687 cat >>confdefs.h <<\_ACEOF
42688#define wxUSE_LIBSDL 1
42689_ACEOF
42690
42691
42692 else
42693 echo "$as_me:$LINENO: result: no" >&5
42694echo "${ECHO_T}no" >&6
42695 if test "$SDL_CONFIG" = "no" ; then
42696 echo "*** The sdl-config script installed by SDL could not be found"
42697 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
42698 echo "*** your path, or set the SDL_CONFIG environment variable to the"
42699 echo "*** full path to sdl-config."
42700 else
42701 if test -f conf.sdltest ; then
42702 :
42703 else
42704 echo "*** Could not run SDL test program, checking why..."
42705 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 42706 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
42707 LIBS="$LIBS $SDL_LIBS"
42708 cat >conftest.$ac_ext <<_ACEOF
42709/* confdefs.h. */
42710_ACEOF
42711cat confdefs.h >>conftest.$ac_ext
42712cat >>conftest.$ac_ext <<_ACEOF
42713/* end confdefs.h. */
42714
42715#include <stdio.h>
42716#include "SDL.h"
42717
42718int main(int argc, char *argv[])
42719{ return 0; }
42720#undef main
42721#define main K_and_R_C_main
42722
42723int
42724main ()
42725{
42726 return 0;
42727 ;
42728 return 0;
42729}
42730_ACEOF
42731rm -f conftest.$ac_objext conftest$ac_exeext
42732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42733 (eval $ac_link) 2>conftest.er1
a848cd7e 42734 ac_status=$?
ac1cb8d3
VS
42735 grep -v '^ *+' conftest.er1 >conftest.err
42736 rm -f conftest.er1
42737 cat conftest.err >&5
a848cd7e
SC
42738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42739 (exit $ac_status); } &&
479c790c 42740 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42742 (eval $ac_try) 2>&5
42743 ac_status=$?
42744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42745 (exit $ac_status); }; } &&
42746 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42748 (eval $ac_try) 2>&5
42749 ac_status=$?
42750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42751 (exit $ac_status); }; }; then
42752 echo "*** The test program compiled, but did not run. This usually means"
42753 echo "*** that the run-time linker is not finding SDL or finding the wrong"
42754 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
42755 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
42756 echo "*** to the installed location Also, make sure you have run ldconfig if that"
42757 echo "*** is required on your system"
42758 echo "***"
42759 echo "*** If you have an old version installed, it is best to remove it, although"
42760 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
42761else
42762 echo "$as_me: failed program was:" >&5
42763sed 's/^/| /' conftest.$ac_ext >&5
42764
42765 echo "*** The test program failed to compile or link. See the file config.log for the"
42766 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
42767 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
42768 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
42769fi
ac1cb8d3
VS
42770rm -f conftest.err conftest.$ac_objext \
42771 conftest$ac_exeext conftest.$ac_ext
a848cd7e 42772 CFLAGS="$ac_save_CFLAGS"
94acd38e 42773 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
42774 LIBS="$ac_save_LIBS"
42775 fi
42776 fi
42777 SDL_CFLAGS=""
42778 SDL_LIBS=""
42779 wxUSE_LIBSDL="no"
42780 fi
42781
42782
42783 rm -f conf.sdltest
42784
42785 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
42786 WITH_PLUGIN_SDL=1
42787 fi
42788 fi
42789 fi
42790
42791 cat >>confdefs.h <<\_ACEOF
42792#define wxUSE_SOUND 1
42793_ACEOF
42794
42795 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
42796fi
42797
d1c38808
VZ
42798if test "$WXGTK20" = 1; then
42799 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42800 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
42801
42802
3ecd9f92
MW
42803pkg_failed=no
42804echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
42805echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6
d1c38808 42806
3ecd9f92
MW
42807if test -n "$PKG_CONFIG"; then
42808 if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
42809 pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
42810 else
42811 if test -n "$PKG_CONFIG" && \
42812 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42813 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42814 ac_status=$?
42815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42816 (exit $ac_status); }; then
42817 pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 42818else
3ecd9f92
MW
42819 pkg_failed=yes
42820fi
42821 fi
42822else
42823 pkg_failed=untried
d1c38808 42824fi
d1c38808 42825if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
42826 if test -n "$LIBGNOMEPRINTUI_LIBS"; then
42827 pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
42828 else
42829 if test -n "$PKG_CONFIG" && \
42830 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42831 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42832 ac_status=$?
42833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42834 (exit $ac_status); }; then
42835 pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 42836else
3ecd9f92
MW
42837 pkg_failed=yes
42838fi
42839 fi
42840else
42841 pkg_failed=untried
d1c38808
VZ
42842fi
42843
d1c38808 42844
d1c38808 42845
3ecd9f92 42846if test $pkg_failed = yes; then
d1c38808 42847
3ecd9f92
MW
42848if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42849 _pkg_short_errors_supported=yes
42850else
42851 _pkg_short_errors_supported=no
42852fi
42853 if test $_pkg_short_errors_supported = yes; then
42854 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42855 else
42856 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808 42857 fi
3ecd9f92
MW
42858 # Put the nasty error message in config.log where it belongs
42859 echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
d1c38808
VZ
42860
42861
3ecd9f92
MW
42862 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42863echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42864 wxUSE_LIBGNOMEPRINT="no"
d1c38808
VZ
42865
42866
3ecd9f92 42867elif test $pkg_failed = untried; then
d1c38808
VZ
42868
42869 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42870echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42871 wxUSE_LIBGNOMEPRINT="no"
42872
42873
3ecd9f92
MW
42874else
42875 LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
42876 LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
42877 echo "$as_me:$LINENO: result: yes" >&5
42878echo "${ECHO_T}yes" >&6
d1c38808 42879
3ecd9f92
MW
42880 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
42881 cat >>confdefs.h <<\_ACEOF
42882#define wxUSE_LIBGNOMEPRINT 1
42883_ACEOF
42884
42885
42886fi
d1c38808
VZ
42887 fi
42888 fi
42889fi
42890
2b850ae1
RR
42891if test "$WXGTK20" = 1; then
42892 if test "$wxUSE_MIMETYPE" = "yes" ; then
42893 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
42894
42895
3ecd9f92
MW
42896pkg_failed=no
42897echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
42898echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6
2b850ae1 42899
3ecd9f92
MW
42900if test -n "$PKG_CONFIG"; then
42901 if test -n "$GNOMEVFS_CFLAGS"; then
42902 pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
42903 else
42904 if test -n "$PKG_CONFIG" && \
42905 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42906 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42907 ac_status=$?
42908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42909 (exit $ac_status); }; then
42910 pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 42911else
3ecd9f92
MW
42912 pkg_failed=yes
42913fi
42914 fi
42915else
42916 pkg_failed=untried
2b850ae1 42917fi
2b850ae1 42918if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
42919 if test -n "$GNOMEVFS_LIBS"; then
42920 pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
42921 else
42922 if test -n "$PKG_CONFIG" && \
42923 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42924 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42925 ac_status=$?
42926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42927 (exit $ac_status); }; then
42928 pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 42929else
3ecd9f92
MW
42930 pkg_failed=yes
42931fi
42932 fi
42933else
42934 pkg_failed=untried
2b850ae1
RR
42935fi
42936
2b850ae1 42937
2b850ae1 42938
3ecd9f92 42939if test $pkg_failed = yes; then
2b850ae1 42940
3ecd9f92
MW
42941if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42942 _pkg_short_errors_supported=yes
42943else
42944 _pkg_short_errors_supported=no
42945fi
42946 if test $_pkg_short_errors_supported = yes; then
42947 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42948 else
42949 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
2b850ae1 42950 fi
3ecd9f92
MW
42951 # Put the nasty error message in config.log where it belongs
42952 echo "$GNOMEVFS_PKG_ERRORS" >&5
2b850ae1
RR
42953
42954
3ecd9f92
MW
42955 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42956echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42957 wxUSE_LIBGNOMEVFS="no"
2b850ae1
RR
42958
42959
3ecd9f92 42960elif test $pkg_failed = untried; then
2b850ae1
RR
42961
42962 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42963echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42964 wxUSE_LIBGNOMEVFS="no"
42965
42966
3ecd9f92
MW
42967else
42968 GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
42969 GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
42970 echo "$as_me:$LINENO: result: yes" >&5
42971echo "${ECHO_T}yes" >&6
2b850ae1 42972
3ecd9f92
MW
42973 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
42974 cat >>confdefs.h <<\_ACEOF
42975#define wxUSE_LIBGNOMEVFS 1
42976_ACEOF
42977
42978
42979fi
2b850ae1
RR
42980 fi
42981 fi
42982fi
42983
3565d135
RR
42984if test "$WXGTK20" = 1; then
42985 if test "$wxUSE_LIBHILDON" = "yes" ; then
42986
3ecd9f92
MW
42987pkg_failed=no
42988echo "$as_me:$LINENO: checking for HILDON" >&5
42989echo $ECHO_N "checking for HILDON... $ECHO_C" >&6
3565d135 42990
3ecd9f92
MW
42991if test -n "$PKG_CONFIG"; then
42992 if test -n "$HILDON_CFLAGS"; then
42993 pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
42994 else
42995 if test -n "$PKG_CONFIG" && \
42996 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42997 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42998 ac_status=$?
42999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43000 (exit $ac_status); }; then
43001 pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 43002else
3ecd9f92
MW
43003 pkg_failed=yes
43004fi
43005 fi
43006else
43007 pkg_failed=untried
3565d135 43008fi
3565d135 43009if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
43010 if test -n "$HILDON_LIBS"; then
43011 pkg_cv_HILDON_LIBS="$HILDON_LIBS"
43012 else
43013 if test -n "$PKG_CONFIG" && \
43014 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43015 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43016 ac_status=$?
43017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43018 (exit $ac_status); }; then
43019 pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 43020else
3ecd9f92
MW
43021 pkg_failed=yes
43022fi
43023 fi
43024else
43025 pkg_failed=untried
3565d135
RR
43026fi
43027
3565d135 43028
3565d135 43029
3ecd9f92 43030if test $pkg_failed = yes; then
3565d135 43031
3ecd9f92
MW
43032if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43033 _pkg_short_errors_supported=yes
43034else
43035 _pkg_short_errors_supported=no
43036fi
43037 if test $_pkg_short_errors_supported = yes; then
43038 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43039 else
43040 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
3565d135 43041 fi
3ecd9f92
MW
43042 # Put the nasty error message in config.log where it belongs
43043 echo "$HILDON_PKG_ERRORS" >&5
3565d135
RR
43044
43045
3ecd9f92
MW
43046 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43047echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43048 wxUSE_LIBHILDON="no"
3565d135 43049
3565d135 43050
3ecd9f92
MW
43051elif test $pkg_failed = untried; then
43052
43053 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43054echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43055 wxUSE_LIBHILDON="no"
43056
43057
43058else
43059 HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
43060 HILDON_LIBS=$pkg_cv_HILDON_LIBS
43061 echo "$as_me:$LINENO: result: yes" >&5
43062echo "${ECHO_T}yes" >&6
3565d135
RR
43063
43064 EXTRALIBS_HILDON="$HILDON_LIBS"
43065 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
43066 cat >>confdefs.h <<\_ACEOF
43067#define wxUSE_LIBHILDON 1
43068_ACEOF
43069
43070
3ecd9f92 43071fi
3565d135
RR
43072 fi
43073fi
d1c38808 43074
a848cd7e
SC
43075if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
43076 cat >>confdefs.h <<\_ACEOF
43077#define wxUSE_CMDLINE_PARSER 1
43078_ACEOF
43079
43080fi
43081
43082if test "$wxUSE_STOPWATCH" = "yes"; then
43083 cat >>confdefs.h <<\_ACEOF
43084#define wxUSE_STOPWATCH 1
43085_ACEOF
43086
43087fi
43088
43089if test "$wxUSE_DATETIME" = "yes"; then
43090 cat >>confdefs.h <<\_ACEOF
43091#define wxUSE_DATETIME 1
43092_ACEOF
43093
43094fi
43095
43096if test "$wxUSE_FILE" = "yes"; then
43097 cat >>confdefs.h <<\_ACEOF
43098#define wxUSE_FILE 1
43099_ACEOF
43100
43101fi
43102
43103if test "$wxUSE_FFILE" = "yes"; then
43104 cat >>confdefs.h <<\_ACEOF
43105#define wxUSE_FFILE 1
43106_ACEOF
43107
43108fi
43109
43110if test "$wxUSE_FILESYSTEM" = "yes"; then
43111 cat >>confdefs.h <<\_ACEOF
43112#define wxUSE_FILESYSTEM 1
43113_ACEOF
43114
43115fi
43116
43117if test "$wxUSE_FS_ZIP" = "yes"; then
43118 cat >>confdefs.h <<\_ACEOF
43119#define wxUSE_FS_ZIP 1
43120_ACEOF
43121
43122fi
43123
9e8e867f 43124if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 43125 cat >>confdefs.h <<\_ACEOF
9e8e867f 43126#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
43127_ACEOF
43128
43129fi
43130
43131if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 43132 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
43133 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
43134echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
43135 elif test "$wxUSE_ZLIB" = "no"; then
43136 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
43137echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
43138 else
43139 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43140#define wxUSE_ZIPSTREAM 1
43141_ACEOF
43142
81f90336 43143 fi
a848cd7e
SC
43144fi
43145
f8f6c91a
MW
43146if test "$wxUSE_BACKINGFILE" = "yes"; then
43147 if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
43148 { echo "$as_me:$LINENO: WARNING: wxBackingFile requires wxStreams and wxFile or wxFFile... disabled" >&5
43149echo "$as_me: WARNING: wxBackingFile requires wxStreams and wxFile or wxFFile... disabled" >&2;}
43150 else
43151 cat >>confdefs.h <<\_ACEOF
43152#define wxUSE_BACKINGFILE 1
43153_ACEOF
43154
43155 fi
43156fi
43157
a848cd7e 43158if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
43159 if test "$USE_UNIX" != 1; then
43160 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
43161echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
43162 wxUSE_ON_FATAL_EXCEPTION=no
43163 else
43164 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43165#define wxUSE_ON_FATAL_EXCEPTION 1
43166_ACEOF
43167
18228ab4 43168 fi
a848cd7e
SC
43169fi
43170
eaff0f0d
VZ
43171if test "$wxUSE_STACKWALKER" = "yes"; then
43172 cat >>confdefs.h <<\_ACEOF
43173#define wxUSE_STACKWALKER 1
43174_ACEOF
43175
43176fi
43177
36b6448c 43178if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
43179 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
43180 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
43181echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
43182 wxUSE_DEBUGREPORT=no
43183 else
43184 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
43185#define wxUSE_DEBUGREPORT 1
43186_ACEOF
43187
21dfc162
MW
43188 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43189 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
43190 fi
dfe0c803 43191 fi
36b6448c
VZ
43192fi
43193
a848cd7e
SC
43194if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
43195 cat >>confdefs.h <<\_ACEOF
43196#define wxUSE_SNGLINST_CHECKER 1
43197_ACEOF
43198
43199fi
43200
43201if test "$wxUSE_BUSYINFO" = "yes"; then
43202 cat >>confdefs.h <<\_ACEOF
43203#define wxUSE_BUSYINFO 1
43204_ACEOF
43205
43206fi
43207
43208if test "$wxUSE_STD_IOSTREAM" = "yes"; then
43209 cat >>confdefs.h <<\_ACEOF
43210#define wxUSE_STD_IOSTREAM 1
43211_ACEOF
43212
43213fi
43214
59746b65
MW
43215if test "$wxUSE_STD_STRING" = "yes"; then
43216 cat >>confdefs.h <<\_ACEOF
43217#define wxUSE_STD_STRING 1
43218_ACEOF
43219
43220fi
43221
07158944
VZ
43222if test "$wxUSE_STDPATHS" = "yes"; then
43223 cat >>confdefs.h <<\_ACEOF
43224#define wxUSE_STDPATHS 1
43225_ACEOF
43226
43227fi
43228
a848cd7e
SC
43229if test "$wxUSE_TEXTBUFFER" = "yes"; then
43230 cat >>confdefs.h <<\_ACEOF
43231#define wxUSE_TEXTBUFFER 1
43232_ACEOF
43233
43234fi
43235
43236if test "$wxUSE_TEXTFILE" = "yes"; then
43237 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
43238 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
43239echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
43240 else
43241 cat >>confdefs.h <<\_ACEOF
43242#define wxUSE_TEXTFILE 1
43243_ACEOF
43244
43245 fi
43246fi
43247
43248if test "$wxUSE_CONFIG" = "yes" ; then
43249 if test "$wxUSE_TEXTFILE" != "yes"; then
43250 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
43251echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
43252 else
43253 cat >>confdefs.h <<\_ACEOF
43254#define wxUSE_CONFIG 1
89be85c2
VS
43255_ACEOF
43256
43257 cat >>confdefs.h <<\_ACEOF
43258#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
43259_ACEOF
43260
43261 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
43262 fi
43263fi
43264
43265if test "$wxUSE_INTL" = "yes" ; then
43266 if test "$wxUSE_FILE" != "yes"; then
43267 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
43268echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
43269 else
43270 cat >>confdefs.h <<\_ACEOF
43271#define wxUSE_INTL 1
43272_ACEOF
43273
43274 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
43275 GUIDIST="$GUIDIST INTL_DIST"
43276 fi
43277fi
43278
43279if test "$wxUSE_LOG" = "yes"; then
43280 cat >>confdefs.h <<\_ACEOF
43281#define wxUSE_LOG 1
43282_ACEOF
43283
43284
43285 if test "$wxUSE_LOGGUI" = "yes"; then
43286 cat >>confdefs.h <<\_ACEOF
43287#define wxUSE_LOGGUI 1
43288_ACEOF
43289
43290 fi
43291
43292 if test "$wxUSE_LOGWINDOW" = "yes"; then
43293 cat >>confdefs.h <<\_ACEOF
43294#define wxUSE_LOGWINDOW 1
43295_ACEOF
43296
43297 fi
43298
43299 if test "$wxUSE_LOGDIALOG" = "yes"; then
43300 cat >>confdefs.h <<\_ACEOF
43301#define wxUSE_LOG_DIALOG 1
43302_ACEOF
43303
43304 fi
0b78747f
MW
43305
43306 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
43307fi
43308
43309if test "$wxUSE_LONGLONG" = "yes"; then
43310 cat >>confdefs.h <<\_ACEOF
43311#define wxUSE_LONGLONG 1
43312_ACEOF
43313
43314fi
43315
43316if test "$wxUSE_GEOMETRY" = "yes"; then
43317 cat >>confdefs.h <<\_ACEOF
43318#define wxUSE_GEOMETRY 1
43319_ACEOF
43320
43321fi
43322
a848cd7e
SC
43323if test "$wxUSE_STREAMS" = "yes" ; then
43324 cat >>confdefs.h <<\_ACEOF
43325#define wxUSE_STREAMS 1
43326_ACEOF
43327
43328fi
43329
8b6682b9
JS
43330if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
43331 cat >>confdefs.h <<\_ACEOF
43332#define wxUSE_PRINTF_POS_PARAMS 1
43333_ACEOF
43334
43335fi
43336
43337
a848cd7e
SC
43338
43339if test "$wxUSE_DATETIME" = "yes"; then
43340
43341for ac_func in strptime
43342do
43343as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43344echo "$as_me:$LINENO: checking for $ac_func" >&5
43345echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43346if eval "test \"\${$as_ac_var+set}\" = set"; then
43347 echo $ECHO_N "(cached) $ECHO_C" >&6
43348else
43349 cat >conftest.$ac_ext <<_ACEOF
43350/* confdefs.h. */
43351_ACEOF
43352cat confdefs.h >>conftest.$ac_ext
43353cat >>conftest.$ac_ext <<_ACEOF
43354/* end confdefs.h. */
ac1cb8d3
VS
43355/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43357#define $ac_func innocuous_$ac_func
43358
a848cd7e
SC
43359/* System header to define __stub macros and hopefully few prototypes,
43360 which can conflict with char $ac_func (); below.
43361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43362 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43363
a848cd7e
SC
43364#ifdef __STDC__
43365# include <limits.h>
43366#else
43367# include <assert.h>
43368#endif
ac1cb8d3
VS
43369
43370#undef $ac_func
43371
a848cd7e
SC
43372/* Override any gcc2 internal prototype to avoid an error. */
43373#ifdef __cplusplus
43374extern "C"
43375{
43376#endif
43377/* We use char because int might match the return type of a gcc2
43378 builtin and then its argument prototype would still apply. */
43379char $ac_func ();
43380/* The GNU C library defines this for functions which it implements
43381 to always fail with ENOSYS. Some functions are actually named
43382 something starting with __ and the normal name is an alias. */
43383#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43384choke me
43385#else
43386char (*f) () = $ac_func;
43387#endif
43388#ifdef __cplusplus
43389}
43390#endif
43391
43392int
43393main ()
43394{
43395return f != $ac_func;
43396 ;
43397 return 0;
43398}
43399_ACEOF
43400rm -f conftest.$ac_objext conftest$ac_exeext
43401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43402 (eval $ac_link) 2>conftest.er1
a848cd7e 43403 ac_status=$?
ac1cb8d3
VS
43404 grep -v '^ *+' conftest.er1 >conftest.err
43405 rm -f conftest.er1
43406 cat conftest.err >&5
a848cd7e
SC
43407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43408 (exit $ac_status); } &&
479c790c 43409 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43411 (eval $ac_try) 2>&5
43412 ac_status=$?
43413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43414 (exit $ac_status); }; } &&
43415 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43417 (eval $ac_try) 2>&5
43418 ac_status=$?
43419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43420 (exit $ac_status); }; }; then
43421 eval "$as_ac_var=yes"
43422else
43423 echo "$as_me: failed program was:" >&5
43424sed 's/^/| /' conftest.$ac_ext >&5
43425
43426eval "$as_ac_var=no"
43427fi
ac1cb8d3
VS
43428rm -f conftest.err conftest.$ac_objext \
43429 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43430fi
43431echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43432echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43433if test `eval echo '${'$as_ac_var'}'` = yes; then
43434 cat >>confdefs.h <<_ACEOF
43435#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43436_ACEOF
43437
43438fi
43439done
43440
f536f005
VZ
43441 if test "$ac_cv_func_strptime" = "yes"; then
43442 echo "$as_me:$LINENO: checking for strptime declaration" >&5
43443echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
43444if test "${wx_cv_func_strptime_decl+set}" = set; then
43445 echo $ECHO_N "(cached) $ECHO_C" >&6
43446else
43447
f536f005
VZ
43448 cat >conftest.$ac_ext <<_ACEOF
43449/* confdefs.h. */
43450_ACEOF
43451cat confdefs.h >>conftest.$ac_ext
43452cat >>conftest.$ac_ext <<_ACEOF
43453/* end confdefs.h. */
43454
43455 #include <time.h>
43456
43457int
43458main ()
43459{
43460
43461 struct tm t;
43462 strptime("foo", "bar", &t);
43463
43464 ;
43465 return 0;
43466}
43467_ACEOF
43468rm -f conftest.$ac_objext
43469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43470 (eval $ac_compile) 2>conftest.er1
43471 ac_status=$?
43472 grep -v '^ *+' conftest.er1 >conftest.err
43473 rm -f conftest.er1
43474 cat conftest.err >&5
43475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43476 (exit $ac_status); } &&
479c790c 43477 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f536f005
VZ
43478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43479 (eval $ac_try) 2>&5
43480 ac_status=$?
43481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43482 (exit $ac_status); }; } &&
43483 { ac_try='test -s conftest.$ac_objext'
43484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43485 (eval $ac_try) 2>&5
43486 ac_status=$?
43487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43488 (exit $ac_status); }; }; then
43489 wx_cv_func_strptime_decl=yes
43490else
43491 echo "$as_me: failed program was:" >&5
43492sed 's/^/| /' conftest.$ac_ext >&5
43493
43494wx_cv_func_strptime_decl=no
43495
43496fi
43497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f536f005
VZ
43498
43499
43500fi
43501echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
43502echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
43503 fi
43504 if test "$wx_cv_func_strptime_decl" = "yes"; then
43505 cat >>confdefs.h <<\_ACEOF
43506#define HAVE_STRPTIME_DECL 1
43507_ACEOF
43508
43509 fi
a848cd7e
SC
43510
43511 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
43512echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
43513if test "${wx_cv_var_timezone+set}" = set; then
43514 echo $ECHO_N "(cached) $ECHO_C" >&6
43515else
43516
43517 cat >conftest.$ac_ext <<_ACEOF
43518/* confdefs.h. */
43519_ACEOF
43520cat confdefs.h >>conftest.$ac_ext
43521cat >>conftest.$ac_ext <<_ACEOF
43522/* end confdefs.h. */
43523
43524 #include <time.h>
43525
43526int
43527main ()
43528{
43529
43530 int tz;
43531 tz = timezone;
43532
43533 ;
43534 return 0;
43535}
43536_ACEOF
43537rm -f conftest.$ac_objext
43538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43539 (eval $ac_compile) 2>conftest.er1
a848cd7e 43540 ac_status=$?
ac1cb8d3
VS
43541 grep -v '^ *+' conftest.er1 >conftest.err
43542 rm -f conftest.er1
43543 cat conftest.err >&5
a848cd7e
SC
43544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43545 (exit $ac_status); } &&
479c790c 43546 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43548 (eval $ac_try) 2>&5
43549 ac_status=$?
43550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43551 (exit $ac_status); }; } &&
43552 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43554 (eval $ac_try) 2>&5
43555 ac_status=$?
43556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43557 (exit $ac_status); }; }; then
43558
43559 wx_cv_var_timezone=timezone
43560
43561else
43562 echo "$as_me: failed program was:" >&5
43563sed 's/^/| /' conftest.$ac_ext >&5
43564
43565
43566 cat >conftest.$ac_ext <<_ACEOF
43567/* confdefs.h. */
43568_ACEOF
43569cat confdefs.h >>conftest.$ac_ext
43570cat >>conftest.$ac_ext <<_ACEOF
43571/* end confdefs.h. */
43572
43573 #include <time.h>
43574
43575int
43576main ()
43577{
43578
43579 int tz;
43580 tz = _timezone;
43581
43582 ;
43583 return 0;
43584}
43585_ACEOF
43586rm -f conftest.$ac_objext
43587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43588 (eval $ac_compile) 2>conftest.er1
a848cd7e 43589 ac_status=$?
ac1cb8d3
VS
43590 grep -v '^ *+' conftest.er1 >conftest.err
43591 rm -f conftest.er1
43592 cat conftest.err >&5
a848cd7e
SC
43593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43594 (exit $ac_status); } &&
479c790c 43595 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43597 (eval $ac_try) 2>&5
43598 ac_status=$?
43599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43600 (exit $ac_status); }; } &&
43601 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43603 (eval $ac_try) 2>&5
43604 ac_status=$?
43605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43606 (exit $ac_status); }; }; then
43607
43608 wx_cv_var_timezone=_timezone
43609
43610else
43611 echo "$as_me: failed program was:" >&5
43612sed 's/^/| /' conftest.$ac_ext >&5
43613
43614
43615 cat >conftest.$ac_ext <<_ACEOF
43616/* confdefs.h. */
43617_ACEOF
43618cat confdefs.h >>conftest.$ac_ext
43619cat >>conftest.$ac_ext <<_ACEOF
43620/* end confdefs.h. */
43621
43622 #include <time.h>
43623
43624int
43625main ()
43626{
43627
43628 int tz;
43629 tz = __timezone;
43630
43631 ;
43632 return 0;
43633}
43634_ACEOF
43635rm -f conftest.$ac_objext
43636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43637 (eval $ac_compile) 2>conftest.er1
a848cd7e 43638 ac_status=$?
ac1cb8d3
VS
43639 grep -v '^ *+' conftest.er1 >conftest.err
43640 rm -f conftest.er1
43641 cat conftest.err >&5
a848cd7e
SC
43642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43643 (exit $ac_status); } &&
479c790c 43644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43646 (eval $ac_try) 2>&5
43647 ac_status=$?
43648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43649 (exit $ac_status); }; } &&
43650 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43652 (eval $ac_try) 2>&5
43653 ac_status=$?
43654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43655 (exit $ac_status); }; }; then
43656
43657 wx_cv_var_timezone=__timezone
43658
43659else
43660 echo "$as_me: failed program was:" >&5
43661sed 's/^/| /' conftest.$ac_ext >&5
43662
43663
43664 if test "$USE_DOS" = 0 ; then
43665 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
43666echo "$as_me: WARNING: no timezone variable" >&2;}
43667 fi
43668
43669
43670fi
ac1cb8d3 43671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43672
43673
43674fi
ac1cb8d3 43675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43676
43677
43678fi
ac1cb8d3 43679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43680
43681
43682fi
43683echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
43684echo "${ECHO_T}$wx_cv_var_timezone" >&6
43685
43686 if test "x$wx_cv_var_timezone" != x ; then
43687 cat >>confdefs.h <<_ACEOF
43688#define WX_TIMEZONE $wx_cv_var_timezone
43689_ACEOF
43690
43691 fi
43692
43693
43694for ac_func in localtime
43695do
43696as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43697echo "$as_me:$LINENO: checking for $ac_func" >&5
43698echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43699if eval "test \"\${$as_ac_var+set}\" = set"; then
43700 echo $ECHO_N "(cached) $ECHO_C" >&6
43701else
43702 cat >conftest.$ac_ext <<_ACEOF
43703/* confdefs.h. */
43704_ACEOF
43705cat confdefs.h >>conftest.$ac_ext
43706cat >>conftest.$ac_ext <<_ACEOF
43707/* end confdefs.h. */
ac1cb8d3
VS
43708/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43710#define $ac_func innocuous_$ac_func
43711
a848cd7e
SC
43712/* System header to define __stub macros and hopefully few prototypes,
43713 which can conflict with char $ac_func (); below.
43714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43715 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43716
a848cd7e
SC
43717#ifdef __STDC__
43718# include <limits.h>
43719#else
43720# include <assert.h>
43721#endif
ac1cb8d3
VS
43722
43723#undef $ac_func
43724
a848cd7e
SC
43725/* Override any gcc2 internal prototype to avoid an error. */
43726#ifdef __cplusplus
43727extern "C"
43728{
43729#endif
43730/* We use char because int might match the return type of a gcc2
43731 builtin and then its argument prototype would still apply. */
43732char $ac_func ();
43733/* The GNU C library defines this for functions which it implements
43734 to always fail with ENOSYS. Some functions are actually named
43735 something starting with __ and the normal name is an alias. */
43736#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43737choke me
43738#else
43739char (*f) () = $ac_func;
43740#endif
43741#ifdef __cplusplus
43742}
43743#endif
43744
43745int
43746main ()
43747{
43748return f != $ac_func;
43749 ;
43750 return 0;
43751}
43752_ACEOF
43753rm -f conftest.$ac_objext conftest$ac_exeext
43754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43755 (eval $ac_link) 2>conftest.er1
a848cd7e 43756 ac_status=$?
ac1cb8d3
VS
43757 grep -v '^ *+' conftest.er1 >conftest.err
43758 rm -f conftest.er1
43759 cat conftest.err >&5
a848cd7e
SC
43760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43761 (exit $ac_status); } &&
479c790c 43762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43764 (eval $ac_try) 2>&5
43765 ac_status=$?
43766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43767 (exit $ac_status); }; } &&
43768 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43770 (eval $ac_try) 2>&5
43771 ac_status=$?
43772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43773 (exit $ac_status); }; }; then
43774 eval "$as_ac_var=yes"
43775else
43776 echo "$as_me: failed program was:" >&5
43777sed 's/^/| /' conftest.$ac_ext >&5
43778
43779eval "$as_ac_var=no"
43780fi
ac1cb8d3
VS
43781rm -f conftest.err conftest.$ac_objext \
43782 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43783fi
43784echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43785echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43786if test `eval echo '${'$as_ac_var'}'` = yes; then
43787 cat >>confdefs.h <<_ACEOF
43788#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43789_ACEOF
43790
43791fi
43792done
43793
43794
43795 if test "$ac_cv_func_localtime" = "yes"; then
43796 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
43797echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
43798if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
43799 echo $ECHO_N "(cached) $ECHO_C" >&6
43800else
43801
43802 cat >conftest.$ac_ext <<_ACEOF
43803/* confdefs.h. */
43804_ACEOF
43805cat confdefs.h >>conftest.$ac_ext
43806cat >>conftest.$ac_ext <<_ACEOF
43807/* end confdefs.h. */
43808
43809 #include <time.h>
43810
43811int
43812main ()
43813{
43814
43815 struct tm tm;
43816 tm.tm_gmtoff++;
43817
43818 ;
43819 return 0;
43820}
43821_ACEOF
43822rm -f conftest.$ac_objext
43823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43824 (eval $ac_compile) 2>conftest.er1
a848cd7e 43825 ac_status=$?
ac1cb8d3
VS
43826 grep -v '^ *+' conftest.er1 >conftest.err
43827 rm -f conftest.er1
43828 cat conftest.err >&5
a848cd7e
SC
43829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43830 (exit $ac_status); } &&
479c790c 43831 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43833 (eval $ac_try) 2>&5
43834 ac_status=$?
43835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43836 (exit $ac_status); }; } &&
43837 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43839 (eval $ac_try) 2>&5
43840 ac_status=$?
43841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43842 (exit $ac_status); }; }; then
43843
43844 wx_cv_struct_tm_has_gmtoff=yes
43845
43846else
43847 echo "$as_me: failed program was:" >&5
43848sed 's/^/| /' conftest.$ac_ext >&5
43849
43850wx_cv_struct_tm_has_gmtoff=no
43851
43852fi
ac1cb8d3 43853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43854
43855fi
43856echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
43857echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
43858 fi
43859
43860 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
43861 cat >>confdefs.h <<\_ACEOF
43862#define WX_GMTOFF_IN_TM 1
43863_ACEOF
43864
43865 fi
43866
43867
43868
43869for ac_func in gettimeofday ftime
43870do
43871as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43872echo "$as_me:$LINENO: checking for $ac_func" >&5
43873echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43874if eval "test \"\${$as_ac_var+set}\" = set"; then
43875 echo $ECHO_N "(cached) $ECHO_C" >&6
43876else
43877 cat >conftest.$ac_ext <<_ACEOF
43878/* confdefs.h. */
43879_ACEOF
43880cat confdefs.h >>conftest.$ac_ext
43881cat >>conftest.$ac_ext <<_ACEOF
43882/* end confdefs.h. */
ac1cb8d3
VS
43883/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43885#define $ac_func innocuous_$ac_func
43886
a848cd7e
SC
43887/* System header to define __stub macros and hopefully few prototypes,
43888 which can conflict with char $ac_func (); below.
43889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43890 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43891
a848cd7e
SC
43892#ifdef __STDC__
43893# include <limits.h>
43894#else
43895# include <assert.h>
43896#endif
ac1cb8d3
VS
43897
43898#undef $ac_func
43899
a848cd7e
SC
43900/* Override any gcc2 internal prototype to avoid an error. */
43901#ifdef __cplusplus
43902extern "C"
43903{
43904#endif
43905/* We use char because int might match the return type of a gcc2
43906 builtin and then its argument prototype would still apply. */
43907char $ac_func ();
43908/* The GNU C library defines this for functions which it implements
43909 to always fail with ENOSYS. Some functions are actually named
43910 something starting with __ and the normal name is an alias. */
43911#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43912choke me
43913#else
43914char (*f) () = $ac_func;
43915#endif
43916#ifdef __cplusplus
43917}
43918#endif
43919
43920int
43921main ()
43922{
43923return f != $ac_func;
43924 ;
43925 return 0;
43926}
43927_ACEOF
43928rm -f conftest.$ac_objext conftest$ac_exeext
43929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43930 (eval $ac_link) 2>conftest.er1
a848cd7e 43931 ac_status=$?
ac1cb8d3
VS
43932 grep -v '^ *+' conftest.er1 >conftest.err
43933 rm -f conftest.er1
43934 cat conftest.err >&5
a848cd7e
SC
43935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43936 (exit $ac_status); } &&
479c790c 43937 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43939 (eval $ac_try) 2>&5
43940 ac_status=$?
43941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43942 (exit $ac_status); }; } &&
43943 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43945 (eval $ac_try) 2>&5
43946 ac_status=$?
43947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43948 (exit $ac_status); }; }; then
43949 eval "$as_ac_var=yes"
43950else
43951 echo "$as_me: failed program was:" >&5
43952sed 's/^/| /' conftest.$ac_ext >&5
43953
43954eval "$as_ac_var=no"
43955fi
ac1cb8d3
VS
43956rm -f conftest.err conftest.$ac_objext \
43957 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43958fi
43959echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43960echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43961if test `eval echo '${'$as_ac_var'}'` = yes; then
43962 cat >>confdefs.h <<_ACEOF
43963#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43964_ACEOF
43965 break
43966fi
43967done
43968
43969
43970 if test "$ac_cv_func_gettimeofday" = "yes"; then
43971 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
43972echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
43973if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
43974 echo $ECHO_N "(cached) $ECHO_C" >&6
43975else
43976
5d7b7554 43977 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
43978/* confdefs.h. */
43979_ACEOF
43980cat confdefs.h >>conftest.$ac_ext
43981cat >>conftest.$ac_ext <<_ACEOF
43982/* end confdefs.h. */
43983
43984 #include <sys/time.h>
43985 #include <unistd.h>
43986
43987int
43988main ()
43989{
43990
43991 struct timeval tv;
43992 gettimeofday(&tv, NULL);
43993
43994 ;
43995 return 0;
43996}
43997_ACEOF
43998rm -f conftest.$ac_objext
43999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44000 (eval $ac_compile) 2>conftest.er1
a848cd7e 44001 ac_status=$?
ac1cb8d3
VS
44002 grep -v '^ *+' conftest.er1 >conftest.err
44003 rm -f conftest.er1
44004 cat conftest.err >&5
a848cd7e
SC
44005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44006 (exit $ac_status); } &&
479c790c 44007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44009 (eval $ac_try) 2>&5
44010 ac_status=$?
44011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44012 (exit $ac_status); }; } &&
44013 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44015 (eval $ac_try) 2>&5
44016 ac_status=$?
44017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44018 (exit $ac_status); }; }; then
44019 wx_cv_func_gettimeofday_has_2_args=yes
44020else
44021 echo "$as_me: failed program was:" >&5
44022sed 's/^/| /' conftest.$ac_ext >&5
44023
44024cat >conftest.$ac_ext <<_ACEOF
44025/* confdefs.h. */
44026_ACEOF
44027cat confdefs.h >>conftest.$ac_ext
44028cat >>conftest.$ac_ext <<_ACEOF
44029/* end confdefs.h. */
44030
44031 #include <sys/time.h>
44032 #include <unistd.h>
44033
44034int
44035main ()
44036{
44037
44038 struct timeval tv;
44039 gettimeofday(&tv);
44040
44041 ;
44042 return 0;
44043}
44044_ACEOF
44045rm -f conftest.$ac_objext
44046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44047 (eval $ac_compile) 2>conftest.er1
a848cd7e 44048 ac_status=$?
ac1cb8d3
VS
44049 grep -v '^ *+' conftest.er1 >conftest.err
44050 rm -f conftest.er1
44051 cat conftest.err >&5
a848cd7e
SC
44052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44053 (exit $ac_status); } &&
479c790c 44054 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44056 (eval $ac_try) 2>&5
44057 ac_status=$?
44058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44059 (exit $ac_status); }; } &&
44060 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44062 (eval $ac_try) 2>&5
44063 ac_status=$?
44064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44065 (exit $ac_status); }; }; then
44066 wx_cv_func_gettimeofday_has_2_args=no
44067else
44068 echo "$as_me: failed program was:" >&5
44069sed 's/^/| /' conftest.$ac_ext >&5
44070
44071
44072 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
44073echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
44074 wx_cv_func_gettimeofday_has_2_args=unknown
44075
44076
44077fi
ac1cb8d3 44078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44079
44080fi
ac1cb8d3 44081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44082
44083fi
44084echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
44085echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
44086
44087 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
44088 cat >>confdefs.h <<\_ACEOF
44089#define WX_GETTIMEOFDAY_NO_TZ 1
44090_ACEOF
44091
44092 fi
44093 fi
44094
44095 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
44096fi
44097
44098
44099if test "$wxUSE_SOCKETS" = "yes"; then
44100 if test "$wxUSE_MGL" = "1"; then
44101 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
44102echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
44103 wxUSE_SOCKETS="no"
44104 fi
44105fi
44106
44107if test "$wxUSE_SOCKETS" = "yes"; then
44108 if test "$TOOLKIT" != "MSW"; then
44109 echo "$as_me:$LINENO: checking for socket" >&5
44110echo $ECHO_N "checking for socket... $ECHO_C" >&6
44111if test "${ac_cv_func_socket+set}" = set; then
44112 echo $ECHO_N "(cached) $ECHO_C" >&6
44113else
44114 cat >conftest.$ac_ext <<_ACEOF
44115/* confdefs.h. */
44116_ACEOF
44117cat confdefs.h >>conftest.$ac_ext
44118cat >>conftest.$ac_ext <<_ACEOF
44119/* end confdefs.h. */
ac1cb8d3
VS
44120/* Define socket to an innocuous variant, in case <limits.h> declares socket.
44121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44122#define socket innocuous_socket
44123
a848cd7e
SC
44124/* System header to define __stub macros and hopefully few prototypes,
44125 which can conflict with char socket (); below.
44126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44127 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44128
a848cd7e
SC
44129#ifdef __STDC__
44130# include <limits.h>
44131#else
44132# include <assert.h>
44133#endif
ac1cb8d3
VS
44134
44135#undef socket
44136
a848cd7e
SC
44137/* Override any gcc2 internal prototype to avoid an error. */
44138#ifdef __cplusplus
44139extern "C"
44140{
44141#endif
44142/* We use char because int might match the return type of a gcc2
44143 builtin and then its argument prototype would still apply. */
44144char socket ();
44145/* The GNU C library defines this for functions which it implements
44146 to always fail with ENOSYS. Some functions are actually named
44147 something starting with __ and the normal name is an alias. */
44148#if defined (__stub_socket) || defined (__stub___socket)
44149choke me
44150#else
44151char (*f) () = socket;
44152#endif
44153#ifdef __cplusplus
44154}
44155#endif
44156
44157int
44158main ()
44159{
44160return f != socket;
44161 ;
44162 return 0;
44163}
44164_ACEOF
44165rm -f conftest.$ac_objext conftest$ac_exeext
44166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44167 (eval $ac_link) 2>conftest.er1
a848cd7e 44168 ac_status=$?
ac1cb8d3
VS
44169 grep -v '^ *+' conftest.er1 >conftest.err
44170 rm -f conftest.er1
44171 cat conftest.err >&5
a848cd7e
SC
44172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44173 (exit $ac_status); } &&
479c790c 44174 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44176 (eval $ac_try) 2>&5
44177 ac_status=$?
44178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44179 (exit $ac_status); }; } &&
44180 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44182 (eval $ac_try) 2>&5
44183 ac_status=$?
44184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44185 (exit $ac_status); }; }; then
44186 ac_cv_func_socket=yes
44187else
44188 echo "$as_me: failed program was:" >&5
44189sed 's/^/| /' conftest.$ac_ext >&5
44190
44191ac_cv_func_socket=no
44192fi
ac1cb8d3
VS
44193rm -f conftest.err conftest.$ac_objext \
44194 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44195fi
44196echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
44197echo "${ECHO_T}$ac_cv_func_socket" >&6
44198if test $ac_cv_func_socket = yes; then
44199 :
44200else
44201
44202 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
44203echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
44204if test "${ac_cv_lib_socket_socket+set}" = set; then
44205 echo $ECHO_N "(cached) $ECHO_C" >&6
44206else
44207 ac_check_lib_save_LIBS=$LIBS
44208LIBS="-lsocket $LIBS"
44209cat >conftest.$ac_ext <<_ACEOF
44210/* confdefs.h. */
44211_ACEOF
44212cat confdefs.h >>conftest.$ac_ext
44213cat >>conftest.$ac_ext <<_ACEOF
44214/* end confdefs.h. */
44215
44216/* Override any gcc2 internal prototype to avoid an error. */
44217#ifdef __cplusplus
44218extern "C"
44219#endif
44220/* We use char because int might match the return type of a gcc2
44221 builtin and then its argument prototype would still apply. */
44222char socket ();
44223int
44224main ()
44225{
44226socket ();
44227 ;
44228 return 0;
44229}
44230_ACEOF
44231rm -f conftest.$ac_objext conftest$ac_exeext
44232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44233 (eval $ac_link) 2>conftest.er1
a848cd7e 44234 ac_status=$?
ac1cb8d3
VS
44235 grep -v '^ *+' conftest.er1 >conftest.err
44236 rm -f conftest.er1
44237 cat conftest.err >&5
a848cd7e
SC
44238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44239 (exit $ac_status); } &&
479c790c 44240 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44242 (eval $ac_try) 2>&5
44243 ac_status=$?
44244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44245 (exit $ac_status); }; } &&
44246 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44248 (eval $ac_try) 2>&5
44249 ac_status=$?
44250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44251 (exit $ac_status); }; }; then
44252 ac_cv_lib_socket_socket=yes
44253else
44254 echo "$as_me: failed program was:" >&5
44255sed 's/^/| /' conftest.$ac_ext >&5
44256
44257ac_cv_lib_socket_socket=no
44258fi
ac1cb8d3
VS
44259rm -f conftest.err conftest.$ac_objext \
44260 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44261LIBS=$ac_check_lib_save_LIBS
44262fi
44263echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
44264echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
44265if test $ac_cv_lib_socket_socket = yes; then
44266 if test "$INET_LINK" != " -lsocket"; then
44267 INET_LINK="$INET_LINK -lsocket"
44268 fi
44269else
44270
44271 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
44272echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
44273 wxUSE_SOCKETS=no
44274
44275
44276fi
44277
44278
44279
44280fi
44281
44282 fi
44283fi
44284
44285if test "$wxUSE_SOCKETS" = "yes" ; then
44286 if test "$TOOLKIT" != "MSW"; then
5d7b7554 44287 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
44288echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
44289if test "${wx_cv_type_getsockname3+set}" = set; then
44290 echo $ECHO_N "(cached) $ECHO_C" >&6
44291else
44292
44293 cat >conftest.$ac_ext <<_ACEOF
44294/* confdefs.h. */
44295_ACEOF
44296cat confdefs.h >>conftest.$ac_ext
44297cat >>conftest.$ac_ext <<_ACEOF
44298/* end confdefs.h. */
44299
44300 #include <sys/types.h>
44301 #include <sys/socket.h>
44302
44303int
44304main ()
44305{
44306
44307 socklen_t len;
44308 getsockname(0, 0, &len);
44309
44310 ;
44311 return 0;
44312}
44313_ACEOF
44314rm -f conftest.$ac_objext
44315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44316 (eval $ac_compile) 2>conftest.er1
a848cd7e 44317 ac_status=$?
ac1cb8d3
VS
44318 grep -v '^ *+' conftest.er1 >conftest.err
44319 rm -f conftest.er1
44320 cat conftest.err >&5
a848cd7e
SC
44321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44322 (exit $ac_status); } &&
479c790c 44323 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44325 (eval $ac_try) 2>&5
44326 ac_status=$?
44327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44328 (exit $ac_status); }; } &&
44329 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44331 (eval $ac_try) 2>&5
44332 ac_status=$?
44333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44334 (exit $ac_status); }; }; then
44335 wx_cv_type_getsockname3=socklen_t
44336else
44337 echo "$as_me: failed program was:" >&5
44338sed 's/^/| /' conftest.$ac_ext >&5
44339
44340
6459a506 44341 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 44342 if test "$GCC" = yes ; then
c92ad099 44343 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
44344 fi
44345
44346 cat >conftest.$ac_ext <<_ACEOF
44347/* confdefs.h. */
44348_ACEOF
44349cat confdefs.h >>conftest.$ac_ext
44350cat >>conftest.$ac_ext <<_ACEOF
44351/* end confdefs.h. */
44352
44353 #include <sys/types.h>
44354 #include <sys/socket.h>
44355
44356int
44357main ()
44358{
44359
44360 size_t len;
44361 getsockname(0, 0, &len);
44362
44363 ;
44364 return 0;
44365}
44366_ACEOF
44367rm -f conftest.$ac_objext
44368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44369 (eval $ac_compile) 2>conftest.er1
a848cd7e 44370 ac_status=$?
ac1cb8d3
VS
44371 grep -v '^ *+' conftest.er1 >conftest.err
44372 rm -f conftest.er1
44373 cat conftest.err >&5
a848cd7e
SC
44374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44375 (exit $ac_status); } &&
479c790c 44376 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44378 (eval $ac_try) 2>&5
44379 ac_status=$?
44380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44381 (exit $ac_status); }; } &&
44382 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44384 (eval $ac_try) 2>&5
44385 ac_status=$?
44386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44387 (exit $ac_status); }; }; then
44388 wx_cv_type_getsockname3=size_t
44389else
44390 echo "$as_me: failed program was:" >&5
44391sed 's/^/| /' conftest.$ac_ext >&5
44392
44393cat >conftest.$ac_ext <<_ACEOF
44394/* confdefs.h. */
44395_ACEOF
44396cat confdefs.h >>conftest.$ac_ext
44397cat >>conftest.$ac_ext <<_ACEOF
44398/* end confdefs.h. */
44399
44400 #include <sys/types.h>
44401 #include <sys/socket.h>
44402
44403int
44404main ()
44405{
44406
44407 int len;
44408 getsockname(0, 0, &len);
44409
44410 ;
44411 return 0;
44412}
44413_ACEOF
44414rm -f conftest.$ac_objext
44415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44416 (eval $ac_compile) 2>conftest.er1
a848cd7e 44417 ac_status=$?
ac1cb8d3
VS
44418 grep -v '^ *+' conftest.er1 >conftest.err
44419 rm -f conftest.er1
44420 cat conftest.err >&5
a848cd7e
SC
44421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44422 (exit $ac_status); } &&
479c790c 44423 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44425 (eval $ac_try) 2>&5
44426 ac_status=$?
44427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44428 (exit $ac_status); }; } &&
44429 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44431 (eval $ac_try) 2>&5
44432 ac_status=$?
44433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44434 (exit $ac_status); }; }; then
44435 wx_cv_type_getsockname3=int
44436else
44437 echo "$as_me: failed program was:" >&5
44438sed 's/^/| /' conftest.$ac_ext >&5
44439
44440wx_cv_type_getsockname3=unknown
44441
44442fi
ac1cb8d3 44443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44444
44445fi
ac1cb8d3 44446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 44447
6459a506 44448 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
44449
44450
44451fi
ac1cb8d3 44452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44453
44454fi
44455echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
44456echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
44457
44458 if test "$wx_cv_type_getsockname3" = "unknown"; then
44459 wxUSE_SOCKETS=no
44460 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44461echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44462 else
44463 cat >>confdefs.h <<_ACEOF
9e03e02d 44464#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
44465_ACEOF
44466
44467 fi
44468 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
44469echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
44470if test "${wx_cv_type_getsockopt5+set}" = set; then
44471 echo $ECHO_N "(cached) $ECHO_C" >&6
44472else
44473
44474 cat >conftest.$ac_ext <<_ACEOF
44475/* confdefs.h. */
44476_ACEOF
44477cat confdefs.h >>conftest.$ac_ext
44478cat >>conftest.$ac_ext <<_ACEOF
44479/* end confdefs.h. */
44480
44481 #include <sys/types.h>
44482 #include <sys/socket.h>
44483
44484int
44485main ()
44486{
44487
44488 socklen_t len;
44489 getsockopt(0, 0, 0, 0, &len);
44490
44491 ;
44492 return 0;
44493}
44494_ACEOF
44495rm -f conftest.$ac_objext
44496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44497 (eval $ac_compile) 2>conftest.er1
44498 ac_status=$?
44499 grep -v '^ *+' conftest.er1 >conftest.err
44500 rm -f conftest.er1
44501 cat conftest.err >&5
44502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44503 (exit $ac_status); } &&
479c790c 44504 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
44505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44506 (eval $ac_try) 2>&5
44507 ac_status=$?
44508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44509 (exit $ac_status); }; } &&
44510 { ac_try='test -s conftest.$ac_objext'
44511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44512 (eval $ac_try) 2>&5
44513 ac_status=$?
44514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44515 (exit $ac_status); }; }; then
44516 wx_cv_type_getsockopt5=socklen_t
44517else
44518 echo "$as_me: failed program was:" >&5
44519sed 's/^/| /' conftest.$ac_ext >&5
44520
44521
6459a506 44522 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 44523 if test "$GCC" = yes ; then
c92ad099 44524 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
44525 fi
44526
44527 cat >conftest.$ac_ext <<_ACEOF
44528/* confdefs.h. */
44529_ACEOF
44530cat confdefs.h >>conftest.$ac_ext
44531cat >>conftest.$ac_ext <<_ACEOF
44532/* end confdefs.h. */
44533
44534 #include <sys/types.h>
44535 #include <sys/socket.h>
44536
44537int
44538main ()
44539{
44540
44541 size_t len;
44542 getsockopt(0, 0, 0, 0, &len);
44543
44544 ;
44545 return 0;
44546}
44547_ACEOF
44548rm -f conftest.$ac_objext
44549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44550 (eval $ac_compile) 2>conftest.er1
44551 ac_status=$?
44552 grep -v '^ *+' conftest.er1 >conftest.err
44553 rm -f conftest.er1
44554 cat conftest.err >&5
44555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44556 (exit $ac_status); } &&
479c790c 44557 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
44558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44559 (eval $ac_try) 2>&5
44560 ac_status=$?
44561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44562 (exit $ac_status); }; } &&
44563 { ac_try='test -s conftest.$ac_objext'
44564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44565 (eval $ac_try) 2>&5
44566 ac_status=$?
44567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44568 (exit $ac_status); }; }; then
44569 wx_cv_type_getsockopt5=size_t
44570else
44571 echo "$as_me: failed program was:" >&5
44572sed 's/^/| /' conftest.$ac_ext >&5
44573
44574cat >conftest.$ac_ext <<_ACEOF
44575/* confdefs.h. */
44576_ACEOF
44577cat confdefs.h >>conftest.$ac_ext
44578cat >>conftest.$ac_ext <<_ACEOF
44579/* end confdefs.h. */
44580
44581 #include <sys/types.h>
44582 #include <sys/socket.h>
44583
44584int
44585main ()
44586{
44587
44588 int len;
44589 getsockopt(0, 0, 0, 0, &len);
44590
44591 ;
44592 return 0;
44593}
44594_ACEOF
44595rm -f conftest.$ac_objext
44596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44597 (eval $ac_compile) 2>conftest.er1
44598 ac_status=$?
44599 grep -v '^ *+' conftest.er1 >conftest.err
44600 rm -f conftest.er1
44601 cat conftest.err >&5
44602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44603 (exit $ac_status); } &&
479c790c 44604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
44605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44606 (eval $ac_try) 2>&5
44607 ac_status=$?
44608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44609 (exit $ac_status); }; } &&
44610 { ac_try='test -s conftest.$ac_objext'
44611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44612 (eval $ac_try) 2>&5
44613 ac_status=$?
44614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44615 (exit $ac_status); }; }; then
44616 wx_cv_type_getsockopt5=int
44617else
44618 echo "$as_me: failed program was:" >&5
44619sed 's/^/| /' conftest.$ac_ext >&5
44620
44621wx_cv_type_getsockopt5=unknown
44622
44623fi
44624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44625
44626fi
44627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44628
6459a506 44629 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
44630
44631
44632fi
44633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44634
44635fi
44636echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
44637echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
44638
44639 if test "$wx_cv_type_getsockopt5" = "unknown"; then
44640 wxUSE_SOCKETS=no
44641 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44642echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44643 else
44644 cat >>confdefs.h <<_ACEOF
44645#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
44646_ACEOF
44647
44648 fi
44649 fi
44650fi
44651
44652if test "$wxUSE_SOCKETS" = "yes" ; then
44653 cat >>confdefs.h <<\_ACEOF
44654#define wxUSE_SOCKETS 1
44655_ACEOF
44656
44657 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
44658fi
44659
44660if test "$wxUSE_PROTOCOL" = "yes"; then
44661 if test "$wxUSE_SOCKETS" != "yes"; then
44662 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
44663echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
44664 wxUSE_PROTOCOL=no
44665 fi
44666fi
44667
44668if test "$wxUSE_PROTOCOL" = "yes"; then
44669 cat >>confdefs.h <<\_ACEOF
44670#define wxUSE_PROTOCOL 1
44671_ACEOF
44672
44673
44674 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
44675 cat >>confdefs.h <<\_ACEOF
44676#define wxUSE_PROTOCOL_HTTP 1
44677_ACEOF
44678
44679 fi
44680 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
44681 cat >>confdefs.h <<\_ACEOF
44682#define wxUSE_PROTOCOL_FTP 1
44683_ACEOF
44684
44685 fi
44686 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
44687 cat >>confdefs.h <<\_ACEOF
44688#define wxUSE_PROTOCOL_FILE 1
44689_ACEOF
44690
44691 fi
44692else
44693 if test "$wxUSE_FS_INET" = "yes"; then
44694 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
44695echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
44696 wxUSE_FS_INET="no"
44697 fi
44698fi
44699
44700if test "$wxUSE_URL" = "yes"; then
44701 if test "$wxUSE_PROTOCOL" != "yes"; then
44702 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
44703echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
44704 wxUSE_URL=no
44705 fi
44706 if test "$wxUSE_URL" = "yes"; then
44707 cat >>confdefs.h <<\_ACEOF
44708#define wxUSE_URL 1
44709_ACEOF
44710
44711 fi
44712fi
44713
ca5c6ac3
VZ
44714if test "$wxUSE_VARIANT" = "yes"; then
44715 cat >>confdefs.h <<\_ACEOF
44716#define wxUSE_VARIANT 1
44717_ACEOF
44718
44719fi
44720
a848cd7e
SC
44721if test "$wxUSE_FS_INET" = "yes"; then
44722 cat >>confdefs.h <<\_ACEOF
44723#define wxUSE_FS_INET 1
44724_ACEOF
44725
44726fi
44727
44728
ee45c548
MW
44729if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
44730 wxUSE_JOYSTICK=no
44731
44732 if test "$TOOLKIT" = "MSW"; then
44733 wxUSE_JOYSTICK=yes
44734
44735 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
44736 if test "$USE_DARWIN" = 1; then
44737 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
44738echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
ee45c548
MW
44739 cat >conftest.$ac_ext <<_ACEOF
44740/* confdefs.h. */
44741_ACEOF
44742cat confdefs.h >>conftest.$ac_ext
44743cat >>conftest.$ac_ext <<_ACEOF
44744/* end confdefs.h. */
44745 #include <IOKit/hid/IOHIDLib.h>
44746int
44747main ()
44748{
44749 IOHIDQueueInterface *qi = NULL;
44750 IOHIDCallbackFunction cb = NULL;
44751 qi->setEventCallout(NULL, cb, NULL, NULL);
44752 ;
44753 return 0;
44754}
44755_ACEOF
44756rm -f conftest.$ac_objext
44757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44758 (eval $ac_compile) 2>conftest.er1
44759 ac_status=$?
44760 grep -v '^ *+' conftest.er1 >conftest.err
44761 rm -f conftest.er1
44762 cat conftest.err >&5
44763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44764 (exit $ac_status); } &&
479c790c 44765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
44766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44767 (eval $ac_try) 2>&5
44768 ac_status=$?
44769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44770 (exit $ac_status); }; } &&
44771 { ac_try='test -s conftest.$ac_objext'
44772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44773 (eval $ac_try) 2>&5
44774 ac_status=$?
44775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44776 (exit $ac_status); }; }; then
44777 wxUSE_JOYSTICK=yes
a848cd7e 44778
ee45c548
MW
44779else
44780 echo "$as_me: failed program was:" >&5
44781sed 's/^/| /' conftest.$ac_ext >&5
44782
44783fi
44784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ee45c548
MW
44785 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
44786echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
44787 fi
44788
44789 else
a848cd7e
SC
44790
44791for ac_header in linux/joystick.h
44792do
44793as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44794if eval "test \"\${$as_ac_Header+set}\" = set"; then
44795 echo "$as_me:$LINENO: checking for $ac_header" >&5
44796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44797if eval "test \"\${$as_ac_Header+set}\" = set"; then
44798 echo $ECHO_N "(cached) $ECHO_C" >&6
44799fi
44800echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44801echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44802else
44803 # Is the header compilable?
44804echo "$as_me:$LINENO: checking $ac_header usability" >&5
44805echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44806cat >conftest.$ac_ext <<_ACEOF
44807/* confdefs.h. */
44808_ACEOF
44809cat confdefs.h >>conftest.$ac_ext
44810cat >>conftest.$ac_ext <<_ACEOF
44811/* end confdefs.h. */
44812$ac_includes_default
44813#include <$ac_header>
44814_ACEOF
44815rm -f conftest.$ac_objext
44816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44817 (eval $ac_compile) 2>conftest.er1
a848cd7e 44818 ac_status=$?
ac1cb8d3
VS
44819 grep -v '^ *+' conftest.er1 >conftest.err
44820 rm -f conftest.er1
44821 cat conftest.err >&5
a848cd7e
SC
44822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44823 (exit $ac_status); } &&
479c790c 44824 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44826 (eval $ac_try) 2>&5
44827 ac_status=$?
44828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44829 (exit $ac_status); }; } &&
44830 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44832 (eval $ac_try) 2>&5
44833 ac_status=$?
44834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44835 (exit $ac_status); }; }; then
44836 ac_header_compiler=yes
44837else
44838 echo "$as_me: failed program was:" >&5
44839sed 's/^/| /' conftest.$ac_ext >&5
44840
44841ac_header_compiler=no
44842fi
ac1cb8d3 44843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44844echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44845echo "${ECHO_T}$ac_header_compiler" >&6
44846
44847# Is the header present?
44848echo "$as_me:$LINENO: checking $ac_header presence" >&5
44849echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44850cat >conftest.$ac_ext <<_ACEOF
44851/* confdefs.h. */
44852_ACEOF
44853cat confdefs.h >>conftest.$ac_ext
44854cat >>conftest.$ac_ext <<_ACEOF
44855/* end confdefs.h. */
44856#include <$ac_header>
44857_ACEOF
44858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44860 ac_status=$?
44861 grep -v '^ *+' conftest.er1 >conftest.err
44862 rm -f conftest.er1
44863 cat conftest.err >&5
44864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44865 (exit $ac_status); } >/dev/null; then
44866 if test -s conftest.err; then
5d7b7554
VZ
44867 ac_cpp_err=$ac_cxx_preproc_warn_flag
44868 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
44869 else
44870 ac_cpp_err=
44871 fi
44872else
44873 ac_cpp_err=yes
44874fi
44875if test -z "$ac_cpp_err"; then
44876 ac_header_preproc=yes
44877else
44878 echo "$as_me: failed program was:" >&5
44879sed 's/^/| /' conftest.$ac_ext >&5
44880
44881 ac_header_preproc=no
44882fi
44883rm -f conftest.err conftest.$ac_ext
44884echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44885echo "${ECHO_T}$ac_header_preproc" >&6
44886
44887# So? What about this header?
5d7b7554 44888case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 44889 yes:no: )
a848cd7e
SC
44890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44891echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
44892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44893echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44894 ac_header_preproc=yes
a848cd7e 44895 ;;
ac1cb8d3 44896 no:yes:* )
a848cd7e
SC
44897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44898echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
44899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44900echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44902echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44904echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
44905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44906echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
44907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44908echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
44909 (
44910 cat <<\_ASBOX
ac1cb8d3
VS
44911## ----------------------------------------- ##
44912## Report this to wx-dev@lists.wxwidgets.org ##
44913## ----------------------------------------- ##
a848cd7e
SC
44914_ASBOX
44915 ) |
44916 sed "s/^/$as_me: WARNING: /" >&2
44917 ;;
44918esac
44919echo "$as_me:$LINENO: checking for $ac_header" >&5
44920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44921if eval "test \"\${$as_ac_Header+set}\" = set"; then
44922 echo $ECHO_N "(cached) $ECHO_C" >&6
44923else
ac1cb8d3 44924 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
44925fi
44926echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44927echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44928
44929fi
44930if test `eval echo '${'$as_ac_Header'}'` = yes; then
44931 cat >>confdefs.h <<_ACEOF
44932#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44933_ACEOF
ee45c548 44934 wxUSE_JOYSTICK=yes
a848cd7e
SC
44935fi
44936
44937done
44938
ee45c548 44939 fi
4cb1d3da 44940
ee45c548
MW
44941 if test "$wxUSE_JOYSTICK" = "yes"; then
44942 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44943#define wxUSE_JOYSTICK 1
44944_ACEOF
44945
ee45c548
MW
44946 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
44947 else
44948 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
44949echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
44950 fi
44951fi
44952
44953
44954
44955if test "$wxUSE_FONTMAP" = "yes" ; then
44956 cat >>confdefs.h <<\_ACEOF
44957#define wxUSE_FONTMAP 1
44958_ACEOF
44959
44960fi
44961
44962if test "$wxUSE_UNICODE" = "yes" ; then
44963 cat >>confdefs.h <<\_ACEOF
44964#define wxUSE_UNICODE 1
44965_ACEOF
44966
44967
44968 if test "$USE_WIN32" != 1; then
44969 wxUSE_UNICODE_MSLU=no
44970 fi
44971
44972 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
44973 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
44974echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
44975if test "${ac_cv_lib_unicows_main+set}" = set; then
44976 echo $ECHO_N "(cached) $ECHO_C" >&6
44977else
44978 ac_check_lib_save_LIBS=$LIBS
44979LIBS="-lunicows $LIBS"
44980cat >conftest.$ac_ext <<_ACEOF
44981/* confdefs.h. */
44982_ACEOF
44983cat confdefs.h >>conftest.$ac_ext
44984cat >>conftest.$ac_ext <<_ACEOF
44985/* end confdefs.h. */
44986
44987
44988int
44989main ()
44990{
44991main ();
44992 ;
44993 return 0;
44994}
44995_ACEOF
44996rm -f conftest.$ac_objext conftest$ac_exeext
44997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44998 (eval $ac_link) 2>conftest.er1
a848cd7e 44999 ac_status=$?
ac1cb8d3
VS
45000 grep -v '^ *+' conftest.er1 >conftest.err
45001 rm -f conftest.er1
45002 cat conftest.err >&5
a848cd7e
SC
45003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45004 (exit $ac_status); } &&
479c790c 45005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45007 (eval $ac_try) 2>&5
45008 ac_status=$?
45009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45010 (exit $ac_status); }; } &&
45011 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
45012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45013 (eval $ac_try) 2>&5
45014 ac_status=$?
45015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45016 (exit $ac_status); }; }; then
45017 ac_cv_lib_unicows_main=yes
45018else
45019 echo "$as_me: failed program was:" >&5
45020sed 's/^/| /' conftest.$ac_ext >&5
45021
45022ac_cv_lib_unicows_main=no
45023fi
ac1cb8d3
VS
45024rm -f conftest.err conftest.$ac_objext \
45025 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
45026LIBS=$ac_check_lib_save_LIBS
45027fi
45028echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
45029echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
45030if test $ac_cv_lib_unicows_main = yes; then
45031
45032 cat >>confdefs.h <<\_ACEOF
45033#define wxUSE_UNICODE_MSLU 1
45034_ACEOF
45035
45036
45037else
45038
45039 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45040 Applications will only run on Windows NT/2000/XP!" >&5
45041echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45042 Applications will only run on Windows NT/2000/XP!" >&2;}
45043 wxUSE_UNICODE_MSLU=no
45044
45045fi
45046
45047 fi
45048fi
45049
45050if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
45051 cat >>confdefs.h <<\_ACEOF
45052#define wxUSE_EXPERIMENTAL_PRINTF 1
45053_ACEOF
45054
45055fi
45056
45057
45058if test "$wxUSE_POSTSCRIPT" = "yes" ; then
45059 cat >>confdefs.h <<\_ACEOF
45060#define wxUSE_POSTSCRIPT 1
45061_ACEOF
45062
45063fi
45064
45065cat >>confdefs.h <<\_ACEOF
45066#define wxUSE_AFM_FOR_POSTSCRIPT 1
45067_ACEOF
45068
45069
45070cat >>confdefs.h <<\_ACEOF
45071#define wxUSE_NORMALIZED_PS_FONTS 1
45072_ACEOF
45073
45074
45075
45076if test "$wxUSE_CONSTRAINTS" = "yes"; then
45077 cat >>confdefs.h <<\_ACEOF
45078#define wxUSE_CONSTRAINTS 1
45079_ACEOF
45080
45081 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
45082fi
45083
8a7b1113
VZ
45084if test "$wxUSE_MDI" = "yes"; then
45085 cat >>confdefs.h <<\_ACEOF
45086#define wxUSE_MDI 1
45087_ACEOF
45088
45089
45090 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45091 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45092#define wxUSE_MDI_ARCHITECTURE 1
45093_ACEOF
45094
8a7b1113
VZ
45095 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
45096 fi
a848cd7e
SC
45097fi
45098
45099if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
45100 cat >>confdefs.h <<\_ACEOF
45101#define wxUSE_DOC_VIEW_ARCHITECTURE 1
45102_ACEOF
45103
45104 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
45105 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45106 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
45107 fi
45108fi
45109
45110if test "$wxUSE_HELP" = "yes"; then
45111 cat >>confdefs.h <<\_ACEOF
45112#define wxUSE_HELP 1
45113_ACEOF
45114
45115 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
45116
45117 if test "$wxUSE_MSW" = 1; then
45118 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
45119 cat >>confdefs.h <<\_ACEOF
45120#define wxUSE_MS_HTML_HELP 1
45121_ACEOF
45122
45123 fi
45124 fi
45125
45126 if test "$wxUSE_WXHTML_HELP" = "yes"; then
45127 if test "$wxUSE_HTML" = "yes"; then
45128 cat >>confdefs.h <<\_ACEOF
45129#define wxUSE_WXHTML_HELP 1
45130_ACEOF
45131
45132 else
45133 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
45134echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
45135 wxUSE_WXHTML_HELP=no
45136 fi
45137 fi
45138fi
45139
45140if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45141 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45142 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
45143echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
45144 else
45145 cat >>confdefs.h <<\_ACEOF
45146#define wxUSE_PRINTING_ARCHITECTURE 1
45147_ACEOF
45148
45149 fi
45150 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
45151fi
45152
45153if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
45154 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
45155echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
45156 { (exit 1); exit 1; }; }
45157fi
45158
45159
efdf6afe
VZ
45160if test "$wxUSE_METAFILE" = "yes"; then
45161 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
45162 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
45163echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
45164 wxUSE_METAFILE=no
45165 fi
45166fi
45167
45168
a848cd7e
SC
45169if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
45170 -o "$wxUSE_CLIPBOARD" = "yes" \
45171 -o "$wxUSE_OLE" = "yes" \
45172 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
45173
45174for ac_header in ole2.h
45175do
45176as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45177if eval "test \"\${$as_ac_Header+set}\" = set"; then
45178 echo "$as_me:$LINENO: checking for $ac_header" >&5
45179echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45180if eval "test \"\${$as_ac_Header+set}\" = set"; then
45181 echo $ECHO_N "(cached) $ECHO_C" >&6
45182fi
45183echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45184echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45185else
45186 # Is the header compilable?
45187echo "$as_me:$LINENO: checking $ac_header usability" >&5
45188echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45189cat >conftest.$ac_ext <<_ACEOF
45190/* confdefs.h. */
45191_ACEOF
45192cat confdefs.h >>conftest.$ac_ext
45193cat >>conftest.$ac_ext <<_ACEOF
45194/* end confdefs.h. */
45195$ac_includes_default
45196#include <$ac_header>
45197_ACEOF
45198rm -f conftest.$ac_objext
45199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45200 (eval $ac_compile) 2>conftest.er1
a848cd7e 45201 ac_status=$?
ac1cb8d3
VS
45202 grep -v '^ *+' conftest.er1 >conftest.err
45203 rm -f conftest.er1
45204 cat conftest.err >&5
a848cd7e
SC
45205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45206 (exit $ac_status); } &&
479c790c 45207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45209 (eval $ac_try) 2>&5
45210 ac_status=$?
45211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45212 (exit $ac_status); }; } &&
45213 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45215 (eval $ac_try) 2>&5
45216 ac_status=$?
45217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45218 (exit $ac_status); }; }; then
45219 ac_header_compiler=yes
45220else
45221 echo "$as_me: failed program was:" >&5
45222sed 's/^/| /' conftest.$ac_ext >&5
45223
45224ac_header_compiler=no
45225fi
ac1cb8d3 45226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45227echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45228echo "${ECHO_T}$ac_header_compiler" >&6
45229
45230# Is the header present?
45231echo "$as_me:$LINENO: checking $ac_header presence" >&5
45232echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45233cat >conftest.$ac_ext <<_ACEOF
45234/* confdefs.h. */
45235_ACEOF
45236cat confdefs.h >>conftest.$ac_ext
45237cat >>conftest.$ac_ext <<_ACEOF
45238/* end confdefs.h. */
45239#include <$ac_header>
45240_ACEOF
45241if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45243 ac_status=$?
45244 grep -v '^ *+' conftest.er1 >conftest.err
45245 rm -f conftest.er1
45246 cat conftest.err >&5
45247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45248 (exit $ac_status); } >/dev/null; then
45249 if test -s conftest.err; then
5d7b7554
VZ
45250 ac_cpp_err=$ac_cxx_preproc_warn_flag
45251 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
45252 else
45253 ac_cpp_err=
45254 fi
45255else
45256 ac_cpp_err=yes
45257fi
45258if test -z "$ac_cpp_err"; then
45259 ac_header_preproc=yes
45260else
45261 echo "$as_me: failed program was:" >&5
45262sed 's/^/| /' conftest.$ac_ext >&5
45263
45264 ac_header_preproc=no
45265fi
45266rm -f conftest.err conftest.$ac_ext
45267echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45268echo "${ECHO_T}$ac_header_preproc" >&6
45269
45270# So? What about this header?
5d7b7554 45271case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 45272 yes:no: )
a848cd7e
SC
45273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45274echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
45275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45276echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45277 ac_header_preproc=yes
a848cd7e 45278 ;;
ac1cb8d3 45279 no:yes:* )
a848cd7e
SC
45280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45281echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
45282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45283echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45284 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45285echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45286 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45287echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
45288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45289echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
45290 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45291echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
45292 (
45293 cat <<\_ASBOX
ac1cb8d3
VS
45294## ----------------------------------------- ##
45295## Report this to wx-dev@lists.wxwidgets.org ##
45296## ----------------------------------------- ##
a848cd7e
SC
45297_ASBOX
45298 ) |
45299 sed "s/^/$as_me: WARNING: /" >&2
45300 ;;
45301esac
45302echo "$as_me:$LINENO: checking for $ac_header" >&5
45303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45304if eval "test \"\${$as_ac_Header+set}\" = set"; then
45305 echo $ECHO_N "(cached) $ECHO_C" >&6
45306else
ac1cb8d3 45307 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
45308fi
45309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45310echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45311
45312fi
45313if test `eval echo '${'$as_ac_Header'}'` = yes; then
45314 cat >>confdefs.h <<_ACEOF
45315#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45316_ACEOF
45317
45318fi
45319
45320done
45321
45322
45323 if test "$ac_cv_header_ole2_h" = "yes" ; then
45324 if test "$GCC" = yes ; then
a848cd7e
SC
45325 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
45326echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
45327 cat >conftest.$ac_ext <<_ACEOF
45328/* confdefs.h. */
45329_ACEOF
45330cat confdefs.h >>conftest.$ac_ext
45331cat >>conftest.$ac_ext <<_ACEOF
45332/* end confdefs.h. */
45333#include <windows.h>
45334 #include <ole2.h>
45335int
45336main ()
45337{
45338
45339 ;
45340 return 0;
45341}
45342_ACEOF
45343rm -f conftest.$ac_objext
45344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45345 (eval $ac_compile) 2>conftest.er1
a848cd7e 45346 ac_status=$?
ac1cb8d3
VS
45347 grep -v '^ *+' conftest.er1 >conftest.err
45348 rm -f conftest.er1
45349 cat conftest.err >&5
a848cd7e
SC
45350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45351 (exit $ac_status); } &&
479c790c 45352 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45354 (eval $ac_try) 2>&5
45355 ac_status=$?
45356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45357 (exit $ac_status); }; } &&
45358 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45360 (eval $ac_try) 2>&5
45361 ac_status=$?
45362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45363 (exit $ac_status); }; }; then
45364 echo "$as_me:$LINENO: result: no" >&5
45365echo "${ECHO_T}no" >&6
45366else
45367 echo "$as_me: failed program was:" >&5
45368sed 's/^/| /' conftest.$ac_ext >&5
45369
45370echo "$as_me:$LINENO: result: yes" >&5
45371echo "${ECHO_T}yes" >&6
5ff751d6 45372 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 45373fi
ac1cb8d3 45374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45375 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
45376 if test "$wxUSE_OLE" = "yes" ; then
45377 cat >>confdefs.h <<\_ACEOF
45378#define wxUSE_OLE 1
f43426c1
RD
45379_ACEOF
45380
45381 cat >>confdefs.h <<\_ACEOF
45382#define wxUSE_OLE_AUTOMATION 1
45383_ACEOF
45384
45385 cat >>confdefs.h <<\_ACEOF
45386#define wxUSE_OLE_ACTIVEX 1
a848cd7e
SC
45387_ACEOF
45388
0b78747f 45389 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
45390 fi
45391 fi
45392
45393 if test "$wxUSE_DATAOBJ" = "yes" ; then
45394 cat >>confdefs.h <<\_ACEOF
45395#define wxUSE_DATAOBJ 1
45396_ACEOF
45397
45398 fi
45399 else
45400 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
45401echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
45402
45403 wxUSE_CLIPBOARD=no
45404 wxUSE_DRAG_AND_DROP=no
45405 wxUSE_DATAOBJ=no
45406 wxUSE_OLE=no
45407 fi
45408
45409 if test "$wxUSE_METAFILE" = "yes"; then
45410 cat >>confdefs.h <<\_ACEOF
45411#define wxUSE_METAFILE 1
45412_ACEOF
45413
45414
45415 cat >>confdefs.h <<\_ACEOF
45416#define wxUSE_ENH_METAFILE 1
45417_ACEOF
45418
45419 fi
45420fi
45421
45422if test "$wxUSE_IPC" = "yes"; then
0b78747f 45423 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
45424 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
45425echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 45426 wxUSE_IPC=no
a848cd7e
SC
45427 fi
45428
0b78747f
MW
45429 if test "$wxUSE_IPC" = "yes"; then
45430 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45431#define wxUSE_IPC 1
45432_ACEOF
45433
0b78747f
MW
45434 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
45435 fi
a848cd7e
SC
45436fi
45437
eb730a0c 45438if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
45439 if test "$wxUSE_MGL" = 1; then
45440 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
45441echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
45442 wxUSE_DATAOBJ=no
45443 else
45444 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
45445#define wxUSE_DATAOBJ 1
45446_ACEOF
45447
2113bc77 45448 fi
eb730a0c
JS
45449else
45450 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
45451echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
45452 wxUSE_CLIPBOARD=no
45453 wxUSE_DRAG_AND_DROP=no
45454fi
45455
a848cd7e
SC
45456if test "$wxUSE_CLIPBOARD" = "yes"; then
45457 if test "$wxUSE_MGL" = 1; then
45458 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
45459echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
45460 wxUSE_CLIPBOARD=no
45461 fi
45462
45463 if test "$wxUSE_CLIPBOARD" = "yes"; then
45464 cat >>confdefs.h <<\_ACEOF
45465#define wxUSE_CLIPBOARD 1
45466_ACEOF
45467
a848cd7e
SC
45468 fi
45469fi
45470
45471if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
45472 if test "$wxUSE_GTK" = 1; then
45473 if test "$WXGTK12" != 1; then
45474 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
45475echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
45476 wxUSE_DRAG_AND_DROP=no
45477 fi
45478 fi
45479
45480 if test "$wxUSE_MOTIF" = 1; then
45481 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
45482echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
45483 wxUSE_DRAG_AND_DROP=no
45484 fi
45485
45486 if test "$wxUSE_X11" = 1; then
45487 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
45488echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
45489 wxUSE_DRAG_AND_DROP=no
45490 fi
45491
45492 if test "$wxUSE_MGL" = 1; then
45493 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
45494echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
45495 wxUSE_DRAG_AND_DROP=no
45496 fi
45497
45498 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
45499 cat >>confdefs.h <<\_ACEOF
45500#define wxUSE_DRAG_AND_DROP 1
45501_ACEOF
45502
45503 fi
45504
45505fi
45506
45507if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
45508 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
45509fi
45510
45511if test "$wxUSE_SPLINES" = "yes" ; then
45512 cat >>confdefs.h <<\_ACEOF
45513#define wxUSE_SPLINES 1
45514_ACEOF
45515
45516fi
45517
fbe2ca43
SN
45518if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
45519 cat >>confdefs.h <<\_ACEOF
45520#define wxUSE_MOUSEWHEEL 1
45521_ACEOF
45522
45523fi
45524
a848cd7e
SC
45525
45526USES_CONTROLS=0
45527if test "$wxUSE_CONTROLS" = "yes"; then
45528 USES_CONTROLS=1
45529fi
45530
45531if test "$wxUSE_ACCEL" = "yes"; then
45532 cat >>confdefs.h <<\_ACEOF
45533#define wxUSE_ACCEL 1
45534_ACEOF
45535
45536 USES_CONTROLS=1
45537fi
45538
7067783d 45539if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
3ea50042
VZ
45540 cat >>confdefs.h <<\_ACEOF
45541#define wxUSE_ANIMATIONCTRL 1
45542_ACEOF
45543
45544 USES_CONTROLS=1
45545 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
45546fi
45547
a848cd7e
SC
45548if test "$wxUSE_BUTTON" = "yes"; then
45549 cat >>confdefs.h <<\_ACEOF
45550#define wxUSE_BUTTON 1
45551_ACEOF
45552
45553 USES_CONTROLS=1
45554fi
45555
45556if test "$wxUSE_BMPBUTTON" = "yes"; then
45557 cat >>confdefs.h <<\_ACEOF
45558#define wxUSE_BMPBUTTON 1
45559_ACEOF
45560
45561 USES_CONTROLS=1
45562fi
45563
45564if test "$wxUSE_CALCTRL" = "yes"; then
45565 cat >>confdefs.h <<\_ACEOF
45566#define wxUSE_CALENDARCTRL 1
45567_ACEOF
45568
45569 USES_CONTROLS=1
45570 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
45571fi
45572
45573if test "$wxUSE_CARET" = "yes"; then
45574 cat >>confdefs.h <<\_ACEOF
45575#define wxUSE_CARET 1
45576_ACEOF
45577
45578 USES_CONTROLS=1
45579 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
45580fi
45581
45582if test "$wxUSE_COMBOBOX" = "yes"; then
45583 cat >>confdefs.h <<\_ACEOF
45584#define wxUSE_COMBOBOX 1
45585_ACEOF
45586
45587 USES_CONTROLS=1
45588fi
45589
a57d600f 45590if test "$wxUSE_COMBOCTRL" = "yes"; then
642bcba9 45591 cat >>confdefs.h <<\_ACEOF
a57d600f 45592#define wxUSE_COMBOCTRL 1
642bcba9
VZ
45593_ACEOF
45594
45595 USES_CONTROLS=1
45596fi
45597
a848cd7e
SC
45598if test "$wxUSE_CHOICE" = "yes"; then
45599 cat >>confdefs.h <<\_ACEOF
45600#define wxUSE_CHOICE 1
45601_ACEOF
45602
45603 USES_CONTROLS=1
45604fi
45605
92bbdbcd
WS
45606if test "$wxUSE_CHOICEBOOK" = "yes"; then
45607 cat >>confdefs.h <<\_ACEOF
45608#define wxUSE_CHOICEBOOK 1
45609_ACEOF
45610
45611 USES_CONTROLS=1
45612fi
45613
a848cd7e
SC
45614if test "$wxUSE_CHECKBOX" = "yes"; then
45615 cat >>confdefs.h <<\_ACEOF
45616#define wxUSE_CHECKBOX 1
45617_ACEOF
45618
45619 USES_CONTROLS=1
45620fi
45621
45622if test "$wxUSE_CHECKLST" = "yes"; then
45623 cat >>confdefs.h <<\_ACEOF
45624#define wxUSE_CHECKLISTBOX 1
45625_ACEOF
45626
45627 USES_CONTROLS=1
45628 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
45629fi
45630
e9263684
VZ
45631if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
45632 cat >>confdefs.h <<\_ACEOF
45633#define wxUSE_COLOURPICKERCTRL 1
45634_ACEOF
45635
45636 USES_CONTROLS=1
45637fi
45638
da98e9be
VZ
45639if test "$wxUSE_DATEPICKCTRL" = "yes"; then
45640 cat >>confdefs.h <<\_ACEOF
45641#define wxUSE_DATEPICKCTRL 1
45642_ACEOF
45643
45644 USES_CONTROLS=1
45645fi
45646
e9263684
VZ
45647if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
45648 cat >>confdefs.h <<\_ACEOF
45649#define wxUSE_DIRPICKERCTRL 1
45650_ACEOF
45651
45652 USES_CONTROLS=1
45653fi
45654
45655if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
45656 cat >>confdefs.h <<\_ACEOF
45657#define wxUSE_FILEPICKERCTRL 1
45658_ACEOF
45659
45660 USES_CONTROLS=1
45661fi
45662
45663if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
45664 cat >>confdefs.h <<\_ACEOF
45665#define wxUSE_FONTPICKERCTRL 1
45666_ACEOF
45667
45668 USES_CONTROLS=1
45669fi
45670
a848cd7e
SC
45671if test "$wxUSE_DISPLAY" = "yes"; then
45672 cat >>confdefs.h <<\_ACEOF
45673#define wxUSE_DISPLAY 1
45674_ACEOF
45675
0b78747f 45676 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
45677fi
45678
88bbc332
RR
45679if test "$wxUSE_DETECT_SM" = "yes"; then
45680 cat >>confdefs.h <<\_ACEOF
45681#define wxUSE_DETECT_SM 1
45682_ACEOF
45683
45684fi
45685
a848cd7e
SC
45686if test "$wxUSE_GAUGE" = "yes"; then
45687 cat >>confdefs.h <<\_ACEOF
45688#define wxUSE_GAUGE 1
45689_ACEOF
45690
45691 USES_CONTROLS=1
45692fi
45693
45694if test "$wxUSE_GRID" = "yes"; then
45695 cat >>confdefs.h <<\_ACEOF
45696#define wxUSE_GRID 1
45697_ACEOF
45698
45699 USES_CONTROLS=1
45700 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
45701fi
45702
6954625c
VZ
45703if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
45704 cat >>confdefs.h <<\_ACEOF
45705#define wxUSE_HYPERLINKCTRL 1
45706_ACEOF
45707
45708 USES_CONTROLS=1
45709fi
45710
95a46303
RR
45711if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
45712 cat >>confdefs.h <<\_ACEOF
45713#define wxUSE_BITMAPCOMBOBOX 1
45714_ACEOF
45715
45716 USES_CONTROLS=1
45717fi
45718
20e34ecc
RR
45719if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
45720 cat >>confdefs.h <<\_ACEOF
45721#define wxUSE_DATAVIEWCTRL 1
45722_ACEOF
45723
45724 USES_CONTROLS=1
45725 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
45726fi
45727
a848cd7e
SC
45728if test "$wxUSE_IMAGLIST" = "yes"; then
45729 cat >>confdefs.h <<\_ACEOF
45730#define wxUSE_IMAGLIST 1
45731_ACEOF
45732
45733fi
45734
45735if test "$wxUSE_LISTBOOK" = "yes"; then
45736 cat >>confdefs.h <<\_ACEOF
45737#define wxUSE_LISTBOOK 1
45738_ACEOF
45739
45740 USES_CONTROLS=1
45741fi
45742
45743if test "$wxUSE_LISTBOX" = "yes"; then
45744 cat >>confdefs.h <<\_ACEOF
45745#define wxUSE_LISTBOX 1
45746_ACEOF
45747
45748 USES_CONTROLS=1
0b78747f 45749 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
45750fi
45751
45752if test "$wxUSE_LISTCTRL" = "yes"; then
45753 if test "$wxUSE_IMAGLIST" = "yes"; then
45754 cat >>confdefs.h <<\_ACEOF
45755#define wxUSE_LISTCTRL 1
45756_ACEOF
45757
45758 USES_CONTROLS=1
45759 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
45760 else
45761 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
45762echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
45763 fi
45764fi
45765
45766if test "$wxUSE_NOTEBOOK" = "yes"; then
45767 cat >>confdefs.h <<\_ACEOF
45768#define wxUSE_NOTEBOOK 1
45769_ACEOF
45770
45771 USES_CONTROLS=1
45772 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
45773fi
45774
a57d600f 45775if test "$wxUSE_ODCOMBOBOX" = "yes"; then
642bcba9 45776 cat >>confdefs.h <<\_ACEOF
a57d600f 45777#define wxUSE_ODCOMBOBOX 1
642bcba9
VZ
45778_ACEOF
45779
45780 USES_CONTROLS=1
45781 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
45782fi
45783
a848cd7e
SC
45784
45785if test "$wxUSE_RADIOBOX" = "yes"; then
45786 cat >>confdefs.h <<\_ACEOF
45787#define wxUSE_RADIOBOX 1
45788_ACEOF
45789
45790 USES_CONTROLS=1
45791fi
45792
45793if test "$wxUSE_RADIOBTN" = "yes"; then
45794 cat >>confdefs.h <<\_ACEOF
45795#define wxUSE_RADIOBTN 1
45796_ACEOF
45797
45798 USES_CONTROLS=1
45799fi
45800
45801if test "$wxUSE_SASH" = "yes"; then
45802 cat >>confdefs.h <<\_ACEOF
45803#define wxUSE_SASH 1
45804_ACEOF
45805
45806 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
45807fi
45808
45809if test "$wxUSE_SCROLLBAR" = "yes"; then
45810 cat >>confdefs.h <<\_ACEOF
45811#define wxUSE_SCROLLBAR 1
45812_ACEOF
45813
45814 USES_CONTROLS=1
45815 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
45816fi
45817
45818if test "$wxUSE_SLIDER" = "yes"; then
45819 cat >>confdefs.h <<\_ACEOF
45820#define wxUSE_SLIDER 1
45821_ACEOF
45822
45823 USES_CONTROLS=1
45824fi
45825
45826if test "$wxUSE_SPINBTN" = "yes"; then
45827 cat >>confdefs.h <<\_ACEOF
45828#define wxUSE_SPINBTN 1
45829_ACEOF
45830
45831 USES_CONTROLS=1
45832fi
45833
45834if test "$wxUSE_SPINCTRL" = "yes"; then
45835 cat >>confdefs.h <<\_ACEOF
45836#define wxUSE_SPINCTRL 1
45837_ACEOF
45838
45839 USES_CONTROLS=1
45840fi
45841
45842if test "$wxUSE_SPLITTER" = "yes"; then
45843 cat >>confdefs.h <<\_ACEOF
45844#define wxUSE_SPLITTER 1
45845_ACEOF
45846
45847 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
45848fi
45849
45850if test "$wxUSE_STATBMP" = "yes"; then
45851 cat >>confdefs.h <<\_ACEOF
45852#define wxUSE_STATBMP 1
45853_ACEOF
45854
45855 USES_CONTROLS=1
45856fi
45857
45858if test "$wxUSE_STATBOX" = "yes"; then
45859 cat >>confdefs.h <<\_ACEOF
45860#define wxUSE_STATBOX 1
45861_ACEOF
45862
45863 USES_CONTROLS=1
45864fi
45865
45866if test "$wxUSE_STATTEXT" = "yes"; then
45867 cat >>confdefs.h <<\_ACEOF
45868#define wxUSE_STATTEXT 1
45869_ACEOF
45870
45871 USES_CONTROLS=1
45872fi
45873
45874if test "$wxUSE_STATLINE" = "yes"; then
45875 cat >>confdefs.h <<\_ACEOF
45876#define wxUSE_STATLINE 1
45877_ACEOF
45878
45879 USES_CONTROLS=1
45880fi
45881
45882if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
45883 cat >>confdefs.h <<\_ACEOF
45884#define wxUSE_NATIVE_STATUSBAR 1
45885_ACEOF
45886
a848cd7e
SC
45887 cat >>confdefs.h <<\_ACEOF
45888#define wxUSE_STATUSBAR 1
45889_ACEOF
45890
45891 USES_CONTROLS=1
45892
45893 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
45894fi
45895
f10e38c4 45896if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
45897 cat >>confdefs.h <<\_ACEOF
45898#define wxUSE_TAB_DIALOG 1
45899_ACEOF
45900
a848cd7e
SC
45901fi
45902
45903if test "$wxUSE_TEXTCTRL" = "yes"; then
45904 cat >>confdefs.h <<\_ACEOF
45905#define wxUSE_TEXTCTRL 1
45906_ACEOF
45907
45908 USES_CONTROLS=1
45909 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
45910fi
45911
45912if test "$wxUSE_TOGGLEBTN" = "yes"; then
45913 if test "$wxUSE_COCOA" = 1 ; then
45914 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
45915echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
45916 wxUSE_TOGGLEBTN=no
45917 fi
a848cd7e
SC
45918
45919 if test "$wxUSE_TOGGLEBTN" = "yes"; then
45920 cat >>confdefs.h <<\_ACEOF
45921#define wxUSE_TOGGLEBTN 1
45922_ACEOF
45923
45924 USES_CONTROLS=1
45925 fi
45926fi
45927
a848cd7e
SC
45928if test "$wxUSE_TOOLBAR" = "yes"; then
45929 cat >>confdefs.h <<\_ACEOF
45930#define wxUSE_TOOLBAR 1
45931_ACEOF
45932
45933 USES_CONTROLS=1
45934
452b6243
VS
45935 if test "$wxUSE_UNIVERSAL" = "yes"; then
45936 wxUSE_TOOLBAR_NATIVE="no"
45937 else
45938 wxUSE_TOOLBAR_NATIVE="yes"
a848cd7e
SC
45939 cat >>confdefs.h <<\_ACEOF
45940#define wxUSE_TOOLBAR_NATIVE 1
45941_ACEOF
45942
a848cd7e
SC
45943 fi
45944
45945 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
45946fi
45947
45948if test "$wxUSE_TOOLTIPS" = "yes"; then
45949 if test "$wxUSE_MOTIF" = 1; then
45950 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
45951echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
45952 else
45953 if test "$wxUSE_UNIVERSAL" = "yes"; then
45954 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
45955echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
45956 else
45957 cat >>confdefs.h <<\_ACEOF
45958#define wxUSE_TOOLTIPS 1
45959_ACEOF
45960
45961 fi
45962 fi
45963fi
45964
0093c2fc
VZ
45965if test "$wxUSE_TREEBOOK" = "yes"; then
45966 cat >>confdefs.h <<\_ACEOF
45967#define wxUSE_TREEBOOK 1
45968_ACEOF
45969
45970 USES_CONTROLS=1
45971fi
45972
5ec3bc43
JS
45973if test "$wxUSE_TOOLBOOK" = "yes"; then
45974 cat >>confdefs.h <<\_ACEOF
45975#define wxUSE_TOOLBOOK 1
45976_ACEOF
45977
45978 USES_CONTROLS=1
45979fi
45980
a848cd7e
SC
45981if test "$wxUSE_TREECTRL" = "yes"; then
45982 if test "$wxUSE_IMAGLIST" = "yes"; then
45983 cat >>confdefs.h <<\_ACEOF
45984#define wxUSE_TREECTRL 1
45985_ACEOF
45986
45987 USES_CONTROLS=1
45988 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
45989 else
45990 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
45991echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
45992 fi
45993fi
45994
45995if test "$wxUSE_POPUPWIN" = "yes"; then
45996 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
45997 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
45998echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
45999 else
46000 if test "$wxUSE_PM" = 1; then
46001 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
46002echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
46003 else
46004 cat >>confdefs.h <<\_ACEOF
46005#define wxUSE_POPUPWIN 1
46006_ACEOF
46007
0b78747f 46008 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
46009
46010 USES_CONTROLS=1
46011 fi
46012 fi
46013fi
46014
0dcd06dd 46015if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
46016 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
46017 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
46018echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
46019 else
46020 cat >>confdefs.h <<\_ACEOF
46021#define wxUSE_DIALUP_MANAGER 1
46022_ACEOF
46023
46024 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
46025 fi
46026fi
46027
a848cd7e
SC
46028if test "$wxUSE_TIPWINDOW" = "yes"; then
46029 if test "$wxUSE_PM" = 1; then
46030 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
46031echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
46032 else
46033 cat >>confdefs.h <<\_ACEOF
46034#define wxUSE_TIPWINDOW 1
46035_ACEOF
46036
46037 fi
46038fi
46039
46040if test "$USES_CONTROLS" = 1; then
46041 cat >>confdefs.h <<\_ACEOF
46042#define wxUSE_CONTROLS 1
46043_ACEOF
46044
46045fi
46046
46047
46048if test "$wxUSE_ACCESSIBILITY" = "yes"; then
46049 cat >>confdefs.h <<\_ACEOF
46050#define wxUSE_ACCESSIBILITY 1
46051_ACEOF
46052
46053 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
46054fi
46055
38b4a946
VZ
46056if test "$wxUSE_DC_CACHEING" = "yes"; then
46057 cat >>confdefs.h <<\_ACEOF
46058#define wxUSE_DC_CACHEING 1
46059_ACEOF
46060
46061fi
46062
a848cd7e
SC
46063if test "$wxUSE_DRAGIMAGE" = "yes"; then
46064 cat >>confdefs.h <<\_ACEOF
46065#define wxUSE_DRAGIMAGE 1
46066_ACEOF
46067
46068 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
46069fi
46070
46071if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
46072 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
46073 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
46074echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
46075 else
46076 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
46077#define wxUSE_EXCEPTIONS 1
46078_ACEOF
46079
07bea8f0
VS
46080 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
46081 fi
a848cd7e
SC
46082fi
46083
46084USE_HTML=0
46085if test "$wxUSE_HTML" = "yes"; then
46086 cat >>confdefs.h <<\_ACEOF
46087#define wxUSE_HTML 1
46088_ACEOF
46089
46090 USE_HTML=1
46091 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
46092 if test "$wxUSE_MAC" = 1; then
46093 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
46094 fi
a848cd7e 46095fi
646b6ec1 46096if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 46097 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 46098 old_CPPFLAGS="$CPPFLAGS"
c92ad099 46099 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
46100 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
46101echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
46102if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
46103 echo $ECHO_N "(cached) $ECHO_C" >&6
46104else
46105 cat >conftest.$ac_ext <<_ACEOF
46106/* confdefs.h. */
46107_ACEOF
46108cat confdefs.h >>conftest.$ac_ext
46109cat >>conftest.$ac_ext <<_ACEOF
46110/* end confdefs.h. */
46111#include <Carbon/Carbon.h>
46112
46113#include <WebKit/HIWebView.h>
46114_ACEOF
46115rm -f conftest.$ac_objext
46116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46117 (eval $ac_compile) 2>conftest.er1
46118 ac_status=$?
46119 grep -v '^ *+' conftest.er1 >conftest.err
46120 rm -f conftest.er1
46121 cat conftest.err >&5
46122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46123 (exit $ac_status); } &&
479c790c 46124 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
46125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46126 (eval $ac_try) 2>&5
46127 ac_status=$?
46128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46129 (exit $ac_status); }; } &&
46130 { ac_try='test -s conftest.$ac_objext'
46131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46132 (eval $ac_try) 2>&5
46133 ac_status=$?
46134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46135 (exit $ac_status); }; }; then
46136 ac_cv_header_WebKit_HIWebView_h=yes
46137else
46138 echo "$as_me: failed program was:" >&5
46139sed 's/^/| /' conftest.$ac_ext >&5
46140
46141ac_cv_header_WebKit_HIWebView_h=no
46142fi
46143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46144fi
46145echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
46146echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
46147if test $ac_cv_header_WebKit_HIWebView_h = yes; then
46148
46149 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
46150#define wxUSE_WEBKIT 1
46151_ACEOF
46152
07bea8f0
VS
46153 WEBKIT_LINK="-framework WebKit"
46154
46155else
46156
46157 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
46158echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
46159 wxUSE_WEBKIT=no
46160
646b6ec1
VS
46161fi
46162
07bea8f0
VS
46163
46164 CPPFLAGS="$old_CPPFLAGS"
46165 elif test "$wxUSE_COCOA" = 1; then
46166 cat >>confdefs.h <<\_ACEOF
46167#define wxUSE_WEBKIT 1
46168_ACEOF
46169
46170 else
46171 wxUSE_WEBKIT=no
46172 fi
46173fi
46174
9a8f0513
VS
46175USE_XRC=0
46176if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
46177 if test "$wxUSE_XML" != "yes"; then
46178 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
46179echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
46180 wxUSE_XRC=no
46181 else
46182 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
46183#define wxUSE_XRC 1
46184_ACEOF
46185
d2ebf0b7
VS
46186 USE_XRC=1
46187 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
46188 fi
9a8f0513 46189fi
07bea8f0 46190
3f60522a
JS
46191USE_AUI=0
46192if test "$wxUSE_AUI" = "yes"; then
46193 cat >>confdefs.h <<\_ACEOF
46194#define wxUSE_AUI 1
46195_ACEOF
46196
46197 USE_AUI=1
46198 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
46199fi
46200
a848cd7e
SC
46201if test "$wxUSE_MENUS" = "yes"; then
46202 cat >>confdefs.h <<\_ACEOF
46203#define wxUSE_MENUS 1
46204_ACEOF
46205
46206 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
46207fi
46208
46209if test "$wxUSE_METAFILE" = "yes"; then
46210 cat >>confdefs.h <<\_ACEOF
46211#define wxUSE_METAFILE 1
46212_ACEOF
46213
46214fi
46215
46216if test "$wxUSE_MIMETYPE" = "yes"; then
46217 cat >>confdefs.h <<\_ACEOF
46218#define wxUSE_MIMETYPE 1
46219_ACEOF
46220
46221fi
46222
46223if test "$wxUSE_MINIFRAME" = "yes"; then
46224 cat >>confdefs.h <<\_ACEOF
46225#define wxUSE_MINIFRAME 1
46226_ACEOF
46227
46228 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
46229fi
46230
46231if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
46232 cat >>confdefs.h <<\_ACEOF
46233#define wxUSE_SYSTEM_OPTIONS 1
46234_ACEOF
46235
46236 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 46237 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
46238 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
46239 fi
46240fi
46241
46242
46243if test "$wxUSE_VALIDATORS" = "yes"; then
46244 cat >>confdefs.h <<\_ACEOF
46245#define wxUSE_VALIDATORS 1
46246_ACEOF
46247
46248 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
46249fi
46250
46251if test "$wxUSE_PALETTE" = "yes" ; then
46252 cat >>confdefs.h <<\_ACEOF
46253#define wxUSE_PALETTE 1
46254_ACEOF
46255
46256fi
46257
46258if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
46259 LIBS=" -lunicows $LIBS"
46260fi
46261
91dea314
MW
46262USE_RICHTEXT=0
46263if test "$wxUSE_RICHTEXT" = "yes"; then
46264 cat >>confdefs.h <<\_ACEOF
46265#define wxUSE_RICHTEXT 1
46266_ACEOF
46267
46268 USE_RICHTEXT=1
46269 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
46270fi
46271
a848cd7e
SC
46272
46273if test "$wxUSE_IMAGE" = "yes" ; then
46274 cat >>confdefs.h <<\_ACEOF
46275#define wxUSE_IMAGE 1
46276_ACEOF
46277
46278
46279 if test "$wxUSE_GIF" = "yes" ; then
46280 cat >>confdefs.h <<\_ACEOF
46281#define wxUSE_GIF 1
46282_ACEOF
46283
46284 fi
46285
46286 if test "$wxUSE_PCX" = "yes" ; then
46287 cat >>confdefs.h <<\_ACEOF
46288#define wxUSE_PCX 1
46289_ACEOF
46290
46291 fi
46292
46293 if test "$wxUSE_IFF" = "yes" ; then
46294 cat >>confdefs.h <<\_ACEOF
46295#define wxUSE_IFF 1
46296_ACEOF
46297
46298 fi
46299
46300 if test "$wxUSE_PNM" = "yes" ; then
46301 cat >>confdefs.h <<\_ACEOF
46302#define wxUSE_PNM 1
46303_ACEOF
46304
46305 fi
46306
46307 if test "$wxUSE_XPM" = "yes" ; then
46308 cat >>confdefs.h <<\_ACEOF
46309#define wxUSE_XPM 1
46310_ACEOF
46311
46312 fi
46313
46314 if test "$wxUSE_ICO_CUR" = "yes" ; then
46315 cat >>confdefs.h <<\_ACEOF
46316#define wxUSE_ICO_CUR 1
46317_ACEOF
46318
46319 fi
46320fi
46321
46322
319c5ed4
VZ
46323if test "$wxUSE_ABOUTDLG" = "yes"; then
46324 cat >>confdefs.h <<\_ACEOF
46325#define wxUSE_ABOUTDLG 1
46326_ACEOF
46327
46328fi
46329
a848cd7e
SC
46330if test "$wxUSE_CHOICEDLG" = "yes"; then
46331 cat >>confdefs.h <<\_ACEOF
46332#define wxUSE_CHOICEDLG 1
46333_ACEOF
46334
46335fi
46336
46337if test "$wxUSE_COLOURDLG" = "yes"; then
46338 cat >>confdefs.h <<\_ACEOF
46339#define wxUSE_COLOURDLG 1
46340_ACEOF
46341
46342fi
46343
46344if test "$wxUSE_FILEDLG" = "yes"; then
46345 cat >>confdefs.h <<\_ACEOF
46346#define wxUSE_FILEDLG 1
46347_ACEOF
46348
46349fi
46350
46351if test "$wxUSE_FINDREPLDLG" = "yes"; then
46352 cat >>confdefs.h <<\_ACEOF
46353#define wxUSE_FINDREPLDLG 1
46354_ACEOF
46355
46356fi
46357
46358if test "$wxUSE_FONTDLG" = "yes"; then
46359 cat >>confdefs.h <<\_ACEOF
46360#define wxUSE_FONTDLG 1
46361_ACEOF
46362
46363fi
46364
46365if test "$wxUSE_DIRDLG" = "yes"; then
46366 if test "$wxUSE_TREECTRL" != "yes"; then
46367 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
46368echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
46369 else
46370 cat >>confdefs.h <<\_ACEOF
46371#define wxUSE_DIRDLG 1
46372_ACEOF
46373
46374 fi
46375fi
46376
46377if test "$wxUSE_MSGDLG" = "yes"; then
46378 cat >>confdefs.h <<\_ACEOF
46379#define wxUSE_MSGDLG 1
46380_ACEOF
46381
46382fi
46383
46384if test "$wxUSE_NUMBERDLG" = "yes"; then
46385 cat >>confdefs.h <<\_ACEOF
46386#define wxUSE_NUMBERDLG 1
46387_ACEOF
46388
46389fi
46390
46391if test "$wxUSE_PROGRESSDLG" = "yes"; then
46392 if test "$wxUSE_CONSTRAINTS" != "yes"; then
46393 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
46394echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
46395 else
46396 cat >>confdefs.h <<\_ACEOF
46397#define wxUSE_PROGRESSDLG 1
46398_ACEOF
46399
46400 fi
46401fi
46402
46403if test "$wxUSE_SPLASH" = "yes"; then
46404 cat >>confdefs.h <<\_ACEOF
46405#define wxUSE_SPLASH 1
46406_ACEOF
46407
2057db16 46408 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
46409fi
46410
46411if test "$wxUSE_STARTUP_TIPS" = "yes"; then
46412 if test "$wxUSE_CONSTRAINTS" != "yes"; then
46413 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
46414echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
46415 else
46416 cat >>confdefs.h <<\_ACEOF
46417#define wxUSE_STARTUP_TIPS 1
46418_ACEOF
46419
46420 fi
46421fi
46422
46423if test "$wxUSE_TEXTDLG" = "yes"; then
46424 cat >>confdefs.h <<\_ACEOF
46425#define wxUSE_TEXTDLG 1
46426_ACEOF
46427
46428fi
46429
46430if test "$wxUSE_WIZARDDLG" = "yes"; then
46431 cat >>confdefs.h <<\_ACEOF
46432#define wxUSE_WIZARDDLG 1
46433_ACEOF
46434
46435 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
46436fi
46437
46438
64b75e64
RD
46439if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
46440 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
46441 cat >>confdefs.h <<\_ACEOF
46442#define wxUSE_GRAPHICS_CONTEXT 1
46443_ACEOF
46444
46445 elif test "$wxUSE_GTK" != 1; then
46446 cat >>confdefs.h <<\_ACEOF
46447#define wxUSE_GRAPHICS_CONTEXT 1
46448_ACEOF
46449
46450 else
46451
46452pkg_failed=no
46453echo "$as_me:$LINENO: checking for CAIRO" >&5
46454echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6
46455
46456if test -n "$PKG_CONFIG"; then
46457 if test -n "$CAIRO_CFLAGS"; then
46458 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
46459 else
46460 if test -n "$PKG_CONFIG" && \
46461 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46462 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46463 ac_status=$?
46464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46465 (exit $ac_status); }; then
46466 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
46467else
46468 pkg_failed=yes
46469fi
46470 fi
46471else
46472 pkg_failed=untried
46473fi
46474if test -n "$PKG_CONFIG"; then
46475 if test -n "$CAIRO_LIBS"; then
46476 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
46477 else
46478 if test -n "$PKG_CONFIG" && \
46479 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46480 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46481 ac_status=$?
46482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46483 (exit $ac_status); }; then
46484 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
46485else
46486 pkg_failed=yes
46487fi
46488 fi
46489else
46490 pkg_failed=untried
46491fi
46492
46493
46494
46495if test $pkg_failed = yes; then
46496
46497if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46498 _pkg_short_errors_supported=yes
46499else
46500 _pkg_short_errors_supported=no
46501fi
46502 if test $_pkg_short_errors_supported = yes; then
46503 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
46504 else
46505 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
46506 fi
46507 # Put the nasty error message in config.log where it belongs
46508 echo "$CAIRO_PKG_ERRORS" >&5
46509
46510
46511 { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46512echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46513
46514
46515elif test $pkg_failed = untried; then
46516
46517 { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46518echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46519
46520
46521else
46522 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
46523 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
46524 echo "$as_me:$LINENO: result: yes" >&5
46525echo "${ECHO_T}yes" >&6
46526
46527 cat >>confdefs.h <<\_ACEOF
46528#define wxUSE_GRAPHICS_CONTEXT 1
46529_ACEOF
46530
46531
46532fi
46533 fi
46534fi
46535
46536
f10e38c4
VZ
46537USE_MEDIA=0
46538
ce756cb0 46539if test "$wxUSE_MEDIACTRL" = "yes"; then
2f6c5bb5
VZ
46540 USE_MEDIA=1
46541
ce756cb0 46542 if test "$wxUSE_GTK" = 1; then
c9a66001 46543 wxUSE_GSTREAMER="no"
ce756cb0 46544
f10e38c4
VZ
46545 GST_VERSION_MAJOR=0
46546 GST_VERSION_MINOR=10
2f6c5bb5 46547 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
f10e38c4
VZ
46548
46549 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 46550
3ecd9f92
MW
46551pkg_failed=no
46552echo "$as_me:$LINENO: checking for GST" >&5
46553echo $ECHO_N "checking for GST... $ECHO_C" >&6
ce756cb0 46554
3ecd9f92
MW
46555if test -n "$PKG_CONFIG"; then
46556 if test -n "$GST_CFLAGS"; then
46557 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46558 else
46559 if test -n "$PKG_CONFIG" && \
46560 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46561 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46562 ac_status=$?
46563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46564 (exit $ac_status); }; then
46565 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 46566else
3ecd9f92
MW
46567 pkg_failed=yes
46568fi
46569 fi
46570else
46571 pkg_failed=untried
dae87f93 46572fi
dae87f93 46573if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
46574 if test -n "$GST_LIBS"; then
46575 pkg_cv_GST_LIBS="$GST_LIBS"
46576 else
46577 if test -n "$PKG_CONFIG" && \
46578 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46579 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46580 ac_status=$?
46581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46582 (exit $ac_status); }; then
46583 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 46584else
3ecd9f92
MW
46585 pkg_failed=yes
46586fi
46587 fi
46588else
46589 pkg_failed=untried
dae87f93
RN
46590fi
46591
dae87f93 46592
2f6c5bb5 46593
3ecd9f92 46594if test $pkg_failed = yes; then
ce756cb0 46595
3ecd9f92
MW
46596if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46597 _pkg_short_errors_supported=yes
46598else
46599 _pkg_short_errors_supported=no
46600fi
46601 if test $_pkg_short_errors_supported = yes; then
46602 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46603 else
46604 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
dae87f93 46605 fi
3ecd9f92
MW
46606 # Put the nasty error message in config.log where it belongs
46607 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
46608
46609
3ecd9f92
MW
46610 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46611echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46612 GST_VERSION_MINOR=8
dae87f93 46613
ce756cb0 46614
3ecd9f92 46615elif test $pkg_failed = untried; then
dae87f93 46616
2f6c5bb5
VZ
46617 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46618echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
f10e38c4 46619 GST_VERSION_MINOR=8
dae87f93 46620
2f6c5bb5 46621
3ecd9f92
MW
46622else
46623 GST_CFLAGS=$pkg_cv_GST_CFLAGS
46624 GST_LIBS=$pkg_cv_GST_LIBS
46625 echo "$as_me:$LINENO: result: yes" >&5
46626echo "${ECHO_T}yes" >&6
46627
46628 wxUSE_GSTREAMER="yes"
46629 GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
dae87f93 46630
3ecd9f92 46631fi
2f6c5bb5
VZ
46632 else
46633 GST_VERSION_MINOR=8
f10e38c4 46634 fi
dae87f93 46635
2f6c5bb5
VZ
46636 if test $GST_VERSION_MINOR = "8"; then
46637 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 46638
3ecd9f92
MW
46639pkg_failed=no
46640echo "$as_me:$LINENO: checking for GST" >&5
46641echo $ECHO_N "checking for GST... $ECHO_C" >&6
dae87f93 46642
3ecd9f92
MW
46643if test -n "$PKG_CONFIG"; then
46644 if test -n "$GST_CFLAGS"; then
46645 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46646 else
46647 if test -n "$PKG_CONFIG" && \
46648 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46649 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46650 ac_status=$?
46651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46652 (exit $ac_status); }; then
46653 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 46654else
3ecd9f92
MW
46655 pkg_failed=yes
46656fi
46657 fi
46658else
46659 pkg_failed=untried
dae87f93 46660fi
f10e38c4 46661if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
46662 if test -n "$GST_LIBS"; then
46663 pkg_cv_GST_LIBS="$GST_LIBS"
46664 else
46665 if test -n "$PKG_CONFIG" && \
46666 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46667 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46668 ac_status=$?
46669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46670 (exit $ac_status); }; then
46671 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 46672else
3ecd9f92
MW
46673 pkg_failed=yes
46674fi
46675 fi
46676else
46677 pkg_failed=untried
dae87f93
RN
46678fi
46679
ce756cb0 46680
2f6c5bb5 46681
3ecd9f92 46682if test $pkg_failed = yes; then
dae87f93 46683
3ecd9f92
MW
46684if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46685 _pkg_short_errors_supported=yes
46686else
46687 _pkg_short_errors_supported=no
46688fi
46689 if test $_pkg_short_errors_supported = yes; then
46690 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46691 else
46692 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
dae87f93 46693 fi
3ecd9f92
MW
46694 # Put the nasty error message in config.log where it belongs
46695 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
46696
46697
3ecd9f92
MW
46698 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46699echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 46700
3ecd9f92 46701elif test $pkg_failed = untried; then
ce756cb0 46702
2f6c5bb5
VZ
46703 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46704echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 46705
3ecd9f92
MW
46706else
46707 GST_CFLAGS=$pkg_cv_GST_CFLAGS
46708 GST_LIBS=$pkg_cv_GST_LIBS
46709 echo "$as_me:$LINENO: result: yes" >&5
46710echo "${ECHO_T}yes" >&6
46711 wxUSE_GSTREAMER="yes"
46712fi
dae87f93 46713 fi
ce756cb0 46714
f10e38c4 46715
dae87f93 46716 if test "$wxUSE_GSTREAMER" = "yes"; then
c9a66001
VZ
46717 case "${host}" in
46718 *-*-solaris2* )
46719 if "$GCC" = yes; then
46720 GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
46721 GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
46722 fi
46723 esac
46724
46725 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
46726 LIBS="$GST_LIBS $LIBS"
46727
dae87f93 46728 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
46729#define wxUSE_GSTREAMER 1
46730_ACEOF
46731
2f6c5bb5
VZ
46732 else
46733 USE_MEDIA=0
ce756cb0
RN
46734 fi
46735 fi
2f6c5bb5
VZ
46736
46737 if test $USE_MEDIA = 1; then
46738 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
46739 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
46740#define wxUSE_MEDIACTRL 1
46741_ACEOF
46742
2f6c5bb5 46743 fi
ce756cb0
RN
46744fi
46745
46746
a848cd7e
SC
46747if test "$cross_compiling" = "yes"; then
46748 OSINFO="\"$host\""
46749else
46750 OSINFO=`uname -s -r -m`
46751 OSINFO="\"$OSINFO\""
46752fi
46753
46754cat >>confdefs.h <<_ACEOF
46755#define WXWIN_OS_DESCRIPTION $OSINFO
46756_ACEOF
46757
46758
46759
46760if test "x$prefix" != "xNONE"; then
46761 wxPREFIX=$prefix
46762else
46763 wxPREFIX=$ac_default_prefix
46764fi
46765
46766cat >>confdefs.h <<_ACEOF
46767#define wxINSTALL_PREFIX "$wxPREFIX"
46768_ACEOF
46769
46770
a848cd7e
SC
46771
46772
46773CORE_BASE_LIBS="net base"
46774CORE_GUI_LIBS="adv core"
46775
46776if test "$wxUSE_XML" = "yes" ; then
46777 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
46778fi
46779if test "$wxUSE_ODBC" != "no" ; then
46780 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
46781 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
46782fi
46783if test "$wxUSE_HTML" = "yes" ; then
46784 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
46785fi
61639efb
VZ
46786if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46787 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
46788fi
9a8f0513
VS
46789if test "$wxUSE_XRC" = "yes" ; then
46790 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
46791fi
3f60522a
JS
46792if test "$wxUSE_AUI" = "yes" ; then
46793 CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
46794fi
a848cd7e
SC
46795
46796if test "$wxUSE_GUI" != "yes"; then
46797 CORE_GUI_LIBS=""
46798fi
46799
46800
46801
46802
46803
5d7b7554
VZ
46804ac_ext=c
46805ac_cpp='$CPP $CPPFLAGS'
46806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46808ac_compiler_gnu=$ac_cv_c_compiler_gnu
46809
a848cd7e
SC
46810
46811
a848cd7e 46812if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 46813 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
46814 if test "$USE_DARWIN" = 1; then
46815 LDFLAGS="$LDFLAGS -framework QuickTime"
46816 else
46817 LDFLAGS="$LDFLAGS -lQuickTimeLib"
46818 fi
07bea8f0 46819 fi
5dcf30a0 46820 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
46821 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
46822 else
46823 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 46824 fi
a848cd7e
SC
46825fi
46826if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 46827 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
46828 if test "$wxUSE_MEDIACTRL" = "yes"; then
46829 LDFLAGS="$LDFLAGS -framework QuickTime"
46830 fi
a848cd7e 46831fi
19b27e78
MW
46832if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
46833 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
46834fi
a848cd7e 46835
a848cd7e
SC
46836LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
46837
a848cd7e
SC
46838if test "$wxUSE_GUI" = "yes"; then
46839
46840
8bce5cda
MW
46841 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
46842 dynamic erase event exec font image minimal mobile \
46843 mobile/wxedit mobile/styles propsize render \
9e39d889 46844 rotate shaped vscroll widgets"
a848cd7e
SC
46845
46846 if test "$wxUSE_MONOLITHIC" != "yes"; then
46847 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
46848 fi
0b78747f 46849 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
46850 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
46851 if test "$wxUSE_UNIVERSAL" != "yes"; then
46852 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
46853 fi
46854 fi
46855 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
46856 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 46857 fi
a848cd7e
SC
46858else
46859 SAMPLES_SUBDIRS="console"
46860fi
46861
46862
48f625bc 46863if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
46864 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
46865elif test "$GCC" = yes ; then
46866 CWARNINGS="-Wall -Wundef"
46867fi
46868
48f625bc 46869if test "x$INTELCXX" = "xyes" ; then
7f47faf4 46870 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
46871elif test "$GXX" = yes ; then
46872 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 46873fi
a848cd7e 46874
a848cd7e 46875
5ff751d6
VZ
46876WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
46877WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
46878
46879
c92ad099 46880CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 46881 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
46882 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
46883 $CPPFLAGS `
5ff751d6 46884
8aeeb05c 46885C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 46886CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 46887CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
46888
46889WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
46890
a848cd7e 46891
95986553
DE
46892if test "x$MWCC" = "xyes"; then
46893
46894 CC="$CC -cwd source -I-"
46895 CXX="$CXX -cwd source -I-"
46896fi
46897
a848cd7e 46898
0c3c69fc 46899LIBS=`echo $LIBS`
a848cd7e
SC
46900EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
46901EXTRALIBS_XML="$EXPAT_LINK"
46902EXTRALIBS_HTML="$MSPACK_LINK"
46903EXTRALIBS_ODBC="$ODBC_LINK"
46904if test "$wxUSE_GUI" = "yes"; then
2b850ae1 46905 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
46906fi
46907if test "$wxUSE_OPENGL" = "yes"; then
46908 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
46909fi
46910
8aeeb05c 46911LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 46912
5ff751d6 46913WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
46914
46915if test "$wxUSE_REGEX" = "builtin" ; then
74802184 46916 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
46917fi
46918if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 46919 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
46920fi
46921if test "$wxUSE_ODBC" = "builtin" ; then
74802184 46922 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
46923fi
46924if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 46925 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
46926fi
46927if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 46928 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
46929fi
46930if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 46931 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
46932fi
46933if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 46934 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
46935fi
46936
46937for i in $wxconfig_3rdparty ; do
5ff751d6 46938 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
46939done
46940
46941
46942if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
46943 WXUNIV=1
4353a8df
VZ
46944
46945 case "$wxUNIV_THEMES" in
46946 ''|all)
46947 cat >>confdefs.h <<\_ACEOF
46948#define wxUSE_ALL_THEMES 1
46949_ACEOF
46950
46951 ;;
46952
46953 *)
46954 for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
46955 cat >>confdefs.h <<_ACEOF
46956#define wxUSE_THEME_$t 1
46957_ACEOF
46958
46959 done
46960 esac
a848cd7e
SC
46961else
46962 WXUNIV=0
46963fi
46964
46965
46966
46967
46968
46969
46970
46971
46972
46973if test $wxUSE_MONOLITHIC = "yes" ; then
46974 MONOLITHIC=1
46975else
46976 MONOLITHIC=0
46977fi
46978
46979if test $wxUSE_PLUGINS = "yes" ; then
46980 USE_PLUGINS=1
46981else
46982 USE_PLUGINS=0
46983fi
46984
46985if test $wxUSE_ODBC != "no" ; then
46986 USE_ODBC=1
46987else
46988 USE_ODBC=0
46989fi
46990
16358932
VZ
46991if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46992 USE_QA=1
46993else
46994 USE_QA=0
46995fi
46996
a848cd7e
SC
46997if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
46998 OFFICIAL_BUILD=1
46999else
47000 OFFICIAL_BUILD=0
47001fi
47002
47003
47004
47005
47006
47007
47008
47009
47010
47011
47012
47013
47014
47015
47016
47017
47018
47019
47020
ceec2216 47021
d1c38808 47022
3565d135 47023
2b850ae1 47024
a848cd7e
SC
47025
47026
47027TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
47028
47029
47030
47031
47032
47033
47034
47035
4d4ff94c
VZ
47036case "$TOOLKIT" in
47037 GTK)
c2e9ada4 47038 TOOLKIT_DESC="GTK+"
4d4ff94c 47039 if test "$WXGTK20" = 1; then
c2e9ada4
VZ
47040 TOOLKIT_DESC="$TOOLKIT_DESC 2"
47041 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
47042 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
47043 fi
47044 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
47045 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
47046 fi
47047 if test "$wxUSE_LIBHILDON" = "yes"; then
47048 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
47049 fi
47050
47051 if test "$TOOLKIT_EXTRA" != ""; then
47052 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
47053 fi
4d4ff94c 47054 fi
9a8f0513 47055 ;;
4d4ff94c 47056
c2e9ada4
VZ
47057 ?*)
47058 TOOLKIT_DESC=$TOOLKIT_LOWERCASE
47059 ;;
47060
4d4ff94c 47061 *)
c2e9ada4 47062 TOOLKIT_DESC="base only"
9a8f0513 47063 ;;
4d4ff94c 47064esac
a848cd7e 47065
fb00f58d
JS
47066if test "$wxUSE_WINE" = "yes"; then
47067 BAKEFILE_FORCE_PLATFORM=win32
47068fi
47069
7afc46ab 47070if test "$wxUSE_MAC" = 1 ; then
95768535
MW
47071 if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
47072 if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
47073 OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
47074 else
47075 OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
47076 fi
47077 OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
47078 CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
47079 CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
47080 LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
7afc46ab
KO
47081 bk_use_pch=no
47082 fi
47083 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
47084 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
7afc46ab
KO
47085fi
47086
a81d5bb6
MW
47087if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
47088then
47089 echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
47090echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6
47091if test "${wx_cv_gcc_pch_bug+set}" = set; then
47092 echo $ECHO_N "(cached) $ECHO_C" >&6
47093else
47094
47095 wx_cv_gcc_pch_bug=no
47096 echo 'const wchar_t test_var[] = L"wide string";' > conftest.h
47097
47098 if $CXX conftest.h >& /dev/null
47099 then
47100 {
47101 echo '#include "conftest.h"'
47102 echo 'const wchar_t *test() { return test_var; }'
47103 } > conftest.cpp
47104
47105 if $CXX -c -o conftest.o conftest.cpp >& /dev/null
47106 then
47107 tr -dc 'a-z' < conftest.o |
47108 grep 'widestring' >& /dev/null ||
47109 wx_cv_gcc_pch_bug=yes
47110 fi
47111 fi
47112
47113 rm -f conftest.h conftest.gch conftest.cpp conftest.o
47114
47115fi
47116echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
47117echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6
47118
47119 if test "$wx_cv_gcc_pch_bug" = yes; then
47120 bk_use_pch=no
47121 fi
47122fi
47123
9a8f0513 47124
1e9e8aba
DE
47125
47126
a848cd7e 47127 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
47128 if test "x${host}" = "x" ; then
47129 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
47130echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
47131 { (exit 1); exit 1; }; }
47132 fi
47133
a848cd7e
SC
47134 BAKEFILE_HOST="${host}"
47135 fi
47136
47137 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
47138
47139 if test -n "$ac_tool_prefix"; then
47140 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
47141set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47142echo "$as_me:$LINENO: checking for $ac_word" >&5
47143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47144if test "${ac_cv_prog_RANLIB+set}" = set; then
47145 echo $ECHO_N "(cached) $ECHO_C" >&6
47146else
47147 if test -n "$RANLIB"; then
47148 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
47149else
47150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47151for as_dir in $PATH
47152do
47153 IFS=$as_save_IFS
47154 test -z "$as_dir" && as_dir=.
47155 for ac_exec_ext in '' $ac_executable_extensions; do
47156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47157 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
47158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47159 break 2
47160 fi
47161done
47162done
47163
47164fi
47165fi
47166RANLIB=$ac_cv_prog_RANLIB
47167if test -n "$RANLIB"; then
47168 echo "$as_me:$LINENO: result: $RANLIB" >&5
47169echo "${ECHO_T}$RANLIB" >&6
47170else
47171 echo "$as_me:$LINENO: result: no" >&5
47172echo "${ECHO_T}no" >&6
47173fi
47174
47175fi
47176if test -z "$ac_cv_prog_RANLIB"; then
47177 ac_ct_RANLIB=$RANLIB
47178 # Extract the first word of "ranlib", so it can be a program name with args.
47179set dummy ranlib; ac_word=$2
47180echo "$as_me:$LINENO: checking for $ac_word" >&5
47181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47182if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
47183 echo $ECHO_N "(cached) $ECHO_C" >&6
47184else
47185 if test -n "$ac_ct_RANLIB"; then
47186 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
47187else
47188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47189for as_dir in $PATH
47190do
47191 IFS=$as_save_IFS
47192 test -z "$as_dir" && as_dir=.
47193 for ac_exec_ext in '' $ac_executable_extensions; do
47194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47195 ac_cv_prog_ac_ct_RANLIB="ranlib"
47196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47197 break 2
47198 fi
47199done
47200done
47201
47202 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
47203fi
47204fi
47205ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
47206if test -n "$ac_ct_RANLIB"; then
47207 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
47208echo "${ECHO_T}$ac_ct_RANLIB" >&6
47209else
47210 echo "$as_me:$LINENO: result: no" >&5
47211echo "${ECHO_T}no" >&6
47212fi
47213
47214 RANLIB=$ac_ct_RANLIB
47215else
47216 RANLIB="$ac_cv_prog_RANLIB"
47217fi
47218
47219 # Find a good install program. We prefer a C program (faster),
47220# so one script is as good as another. But avoid the broken or
47221# incompatible versions:
47222# SysV /etc/install, /usr/sbin/install
47223# SunOS /usr/etc/install
47224# IRIX /sbin/install
47225# AIX /bin/install
47226# AmigaOS /C/install, which installs bootblocks on floppy discs
47227# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
47228# AFS /usr/afsws/bin/install, which mishandles nonexistent args
47229# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 47230# OS/2's system install, which has a completely different semantic
a848cd7e
SC
47231# ./install, which can be erroneously created by make from ./install.sh.
47232echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
47233echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
47234if test -z "$INSTALL"; then
47235if test "${ac_cv_path_install+set}" = set; then
47236 echo $ECHO_N "(cached) $ECHO_C" >&6
47237else
47238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47239for as_dir in $PATH
47240do
47241 IFS=$as_save_IFS
47242 test -z "$as_dir" && as_dir=.
47243 # Account for people who put trailing slashes in PATH elements.
47244case $as_dir/ in
47245 ./ | .// | /cC/* | \
47246 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 47247 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
47248 /usr/ucb/* ) ;;
47249 *)
47250 # OSF1 and SCO ODT 3.0 have their own names for install.
47251 # Don't use installbsd from OSF since it installs stuff as root
47252 # by default.
47253 for ac_prog in ginstall scoinst install; do
47254 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
47255 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
47256 if test $ac_prog = install &&
47257 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47258 # AIX install. It has an incompatible calling convention.
47259 :
47260 elif test $ac_prog = install &&
47261 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47262 # program-specific install script used by HP pwplus--don't use.
47263 :
47264 else
47265 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
47266 break 3
47267 fi
47268 fi
a848cd7e
SC
47269 done
47270 done
47271 ;;
47272esac
47273done
47274
47275
47276fi
47277 if test "${ac_cv_path_install+set}" = set; then
47278 INSTALL=$ac_cv_path_install
47279 else
47280 # As a last resort, use the slow shell script. We don't cache a
47281 # path for INSTALL within a source directory, because that will
47282 # break other packages using the cache if that directory is
47283 # removed, or if the path is relative.
47284 INSTALL=$ac_install_sh
47285 fi
47286fi
47287echo "$as_me:$LINENO: result: $INSTALL" >&5
47288echo "${ECHO_T}$INSTALL" >&6
47289
47290# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
47291# It thinks the first close brace ends the variable substitution.
47292test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
47293
47294test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
47295
47296test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
47297
47298 echo "$as_me:$LINENO: checking whether ln -s works" >&5
47299echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
47300LN_S=$as_ln_s
47301if test "$LN_S" = "ln -s"; then
47302 echo "$as_me:$LINENO: result: yes" >&5
47303echo "${ECHO_T}yes" >&6
47304else
47305 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
47306echo "${ECHO_T}no, using $LN_S" >&6
47307fi
47308
47309
47310 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47311echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 47312set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
47313if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
47314 echo $ECHO_N "(cached) $ECHO_C" >&6
47315else
47316 cat >conftest.make <<\_ACEOF
47317all:
47318 @echo 'ac_maketemp="$(MAKE)"'
47319_ACEOF
47320# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47321eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
47322if test -n "$ac_maketemp"; then
47323 eval ac_cv_prog_make_${ac_make}_set=yes
47324else
47325 eval ac_cv_prog_make_${ac_make}_set=no
47326fi
47327rm -f conftest.make
47328fi
47329if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
47330 echo "$as_me:$LINENO: result: yes" >&5
47331echo "${ECHO_T}yes" >&6
47332 SET_MAKE=
47333else
47334 echo "$as_me:$LINENO: result: no" >&5
47335echo "${ECHO_T}no" >&6
47336 SET_MAKE="MAKE=${MAKE-make}"
47337fi
47338
47339
47340
47341 if test -n "$ac_tool_prefix"; then
47342 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
47343set dummy ${ac_tool_prefix}ar; ac_word=$2
47344echo "$as_me:$LINENO: checking for $ac_word" >&5
47345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47346if test "${ac_cv_prog_AR+set}" = set; then
47347 echo $ECHO_N "(cached) $ECHO_C" >&6
47348else
47349 if test -n "$AR"; then
47350 ac_cv_prog_AR="$AR" # Let the user override the test.
47351else
47352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47353for as_dir in $PATH
47354do
47355 IFS=$as_save_IFS
47356 test -z "$as_dir" && as_dir=.
47357 for ac_exec_ext in '' $ac_executable_extensions; do
47358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47359 ac_cv_prog_AR="${ac_tool_prefix}ar"
47360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47361 break 2
47362 fi
47363done
47364done
47365
47366fi
47367fi
47368AR=$ac_cv_prog_AR
47369if test -n "$AR"; then
47370 echo "$as_me:$LINENO: result: $AR" >&5
47371echo "${ECHO_T}$AR" >&6
47372else
47373 echo "$as_me:$LINENO: result: no" >&5
47374echo "${ECHO_T}no" >&6
47375fi
47376
47377fi
47378if test -z "$ac_cv_prog_AR"; then
47379 ac_ct_AR=$AR
47380 # Extract the first word of "ar", so it can be a program name with args.
47381set dummy ar; ac_word=$2
47382echo "$as_me:$LINENO: checking for $ac_word" >&5
47383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47384if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
47385 echo $ECHO_N "(cached) $ECHO_C" >&6
47386else
47387 if test -n "$ac_ct_AR"; then
47388 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
47389else
47390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47391for as_dir in $PATH
47392do
47393 IFS=$as_save_IFS
47394 test -z "$as_dir" && as_dir=.
47395 for ac_exec_ext in '' $ac_executable_extensions; do
47396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47397 ac_cv_prog_ac_ct_AR="ar"
47398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47399 break 2
47400 fi
47401done
47402done
47403
47404 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
47405fi
47406fi
47407ac_ct_AR=$ac_cv_prog_ac_ct_AR
47408if test -n "$ac_ct_AR"; then
47409 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
47410echo "${ECHO_T}$ac_ct_AR" >&6
47411else
47412 echo "$as_me:$LINENO: result: no" >&5
47413echo "${ECHO_T}no" >&6
47414fi
47415
47416 AR=$ac_ct_AR
47417else
47418 AR="$ac_cv_prog_AR"
47419fi
47420
47421 if test -n "$ac_tool_prefix"; then
47422 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
47423set dummy ${ac_tool_prefix}strip; ac_word=$2
47424echo "$as_me:$LINENO: checking for $ac_word" >&5
47425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47426if test "${ac_cv_prog_STRIP+set}" = set; then
47427 echo $ECHO_N "(cached) $ECHO_C" >&6
47428else
47429 if test -n "$STRIP"; then
47430 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
47431else
47432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47433for as_dir in $PATH
47434do
47435 IFS=$as_save_IFS
47436 test -z "$as_dir" && as_dir=.
47437 for ac_exec_ext in '' $ac_executable_extensions; do
47438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47439 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
47440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47441 break 2
47442 fi
47443done
47444done
47445
47446fi
47447fi
47448STRIP=$ac_cv_prog_STRIP
47449if test -n "$STRIP"; then
47450 echo "$as_me:$LINENO: result: $STRIP" >&5
47451echo "${ECHO_T}$STRIP" >&6
47452else
47453 echo "$as_me:$LINENO: result: no" >&5
47454echo "${ECHO_T}no" >&6
47455fi
47456
47457fi
47458if test -z "$ac_cv_prog_STRIP"; then
47459 ac_ct_STRIP=$STRIP
47460 # Extract the first word of "strip", so it can be a program name with args.
47461set dummy strip; ac_word=$2
47462echo "$as_me:$LINENO: checking for $ac_word" >&5
47463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47464if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
47465 echo $ECHO_N "(cached) $ECHO_C" >&6
47466else
47467 if test -n "$ac_ct_STRIP"; then
47468 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
47469else
47470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47471for as_dir in $PATH
47472do
47473 IFS=$as_save_IFS
47474 test -z "$as_dir" && as_dir=.
47475 for ac_exec_ext in '' $ac_executable_extensions; do
47476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47477 ac_cv_prog_ac_ct_STRIP="strip"
47478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47479 break 2
47480 fi
47481done
47482done
47483
47484 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
47485fi
47486fi
47487ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
47488if test -n "$ac_ct_STRIP"; then
47489 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
47490echo "${ECHO_T}$ac_ct_STRIP" >&6
47491else
47492 echo "$as_me:$LINENO: result: no" >&5
47493echo "${ECHO_T}no" >&6
47494fi
47495
47496 STRIP=$ac_ct_STRIP
47497else
47498 STRIP="$ac_cv_prog_STRIP"
47499fi
47500
47501 if test -n "$ac_tool_prefix"; then
47502 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
47503set dummy ${ac_tool_prefix}nm; ac_word=$2
47504echo "$as_me:$LINENO: checking for $ac_word" >&5
47505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47506if test "${ac_cv_prog_NM+set}" = set; then
47507 echo $ECHO_N "(cached) $ECHO_C" >&6
47508else
47509 if test -n "$NM"; then
47510 ac_cv_prog_NM="$NM" # Let the user override the test.
47511else
47512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47513for as_dir in $PATH
47514do
47515 IFS=$as_save_IFS
47516 test -z "$as_dir" && as_dir=.
47517 for ac_exec_ext in '' $ac_executable_extensions; do
47518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47519 ac_cv_prog_NM="${ac_tool_prefix}nm"
47520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47521 break 2
47522 fi
47523done
47524done
47525
47526fi
47527fi
47528NM=$ac_cv_prog_NM
47529if test -n "$NM"; then
47530 echo "$as_me:$LINENO: result: $NM" >&5
47531echo "${ECHO_T}$NM" >&6
47532else
47533 echo "$as_me:$LINENO: result: no" >&5
47534echo "${ECHO_T}no" >&6
47535fi
47536
47537fi
47538if test -z "$ac_cv_prog_NM"; then
47539 ac_ct_NM=$NM
47540 # Extract the first word of "nm", so it can be a program name with args.
47541set dummy nm; ac_word=$2
47542echo "$as_me:$LINENO: checking for $ac_word" >&5
47543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47544if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
47545 echo $ECHO_N "(cached) $ECHO_C" >&6
47546else
47547 if test -n "$ac_ct_NM"; then
47548 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
47549else
47550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47551for as_dir in $PATH
47552do
47553 IFS=$as_save_IFS
47554 test -z "$as_dir" && as_dir=.
47555 for ac_exec_ext in '' $ac_executable_extensions; do
47556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47557 ac_cv_prog_ac_ct_NM="nm"
47558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47559 break 2
47560 fi
47561done
47562done
47563
47564 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
47565fi
47566fi
47567ac_ct_NM=$ac_cv_prog_ac_ct_NM
47568if test -n "$ac_ct_NM"; then
47569 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
47570echo "${ECHO_T}$ac_ct_NM" >&6
47571else
47572 echo "$as_me:$LINENO: result: no" >&5
47573echo "${ECHO_T}no" >&6
47574fi
47575
47576 NM=$ac_ct_NM
47577else
47578 NM="$ac_cv_prog_NM"
47579fi
47580
47581
47582 case ${BAKEFILE_HOST} in
47583 *-hp-hpux* )
1e9e8aba 47584 INSTALL_DIR="mkdir -p"
a848cd7e
SC
47585 ;;
47586 *) INSTALL_DIR="$INSTALL -d"
47587 ;;
47588 esac
47589
47590
47591 LDFLAGS_GUI=
47592 case ${BAKEFILE_HOST} in
47593 *-*-cygwin* | *-*-mingw32* )
47594 LDFLAGS_GUI="-mwindows"
47595 esac
47596
47597
47598 fi
47599
47600 echo "$as_me:$LINENO: checking if make is GNU make" >&5
47601echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
47602if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
47603 echo $ECHO_N "(cached) $ECHO_C" >&6
47604else
47605
47606 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
47607 egrep -s GNU > /dev/null); then
47608 bakefile_cv_prog_makeisgnu="yes"
47609 else
47610 bakefile_cv_prog_makeisgnu="no"
47611 fi
47612
47613fi
47614echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
47615echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
47616
47617 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
47618 IF_GNU_MAKE=""
47619 else
47620 IF_GNU_MAKE="#"
47621 fi
47622
47623
47624
47625 PLATFORM_UNIX=0
47626 PLATFORM_WIN32=0
47627 PLATFORM_MSDOS=0
47628 PLATFORM_MAC=0
1e9e8aba 47629 PLATFORM_MACOS=0
a848cd7e
SC
47630 PLATFORM_MACOSX=0
47631 PLATFORM_OS2=0
1e9e8aba 47632 PLATFORM_BEOS=0
a848cd7e
SC
47633
47634 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
47635 case "${BAKEFILE_HOST}" in
810b94f0 47636 *-*-mingw32* )
a848cd7e
SC
47637 PLATFORM_WIN32=1
47638 ;;
47639 *-pc-msdosdjgpp )
47640 PLATFORM_MSDOS=1
47641 ;;
47642 *-pc-os2_emx | *-pc-os2-emx )
47643 PLATFORM_OS2=1
47644 ;;
47bd5406 47645 *-*-darwin* )
a848cd7e
SC
47646 PLATFORM_MAC=1
47647 PLATFORM_MACOSX=1
47648 ;;
1e9e8aba
DE
47649 *-*-beos* )
47650 PLATFORM_BEOS=1
47651 ;;
47652 powerpc-apple-macos* )
47653 PLATFORM_MAC=1
47654 PLATFORM_MACOS=1
47655 ;;
a848cd7e
SC
47656 * )
47657 PLATFORM_UNIX=1
47658 ;;
47659 esac
47660 else
47661 case "$BAKEFILE_FORCE_PLATFORM" in
47662 win32 )
47663 PLATFORM_WIN32=1
47664 ;;
47665 msdos )
47666 PLATFORM_MSDOS=1
47667 ;;
47668 os2 )
47669 PLATFORM_OS2=1
47670 ;;
47671 darwin )
47672 PLATFORM_MAC=1
47673 PLATFORM_MACOSX=1
47674 ;;
47675 unix )
47676 PLATFORM_UNIX=1
47677 ;;
1e9e8aba
DE
47678 beos )
47679 PLATFORM_BEOS=1
47680 ;;
a848cd7e
SC
47681 * )
47682 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
47683echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
47684 { (exit 1); exit 1; }; }
47685 ;;
47686 esac
47687 fi
47688
47689
47690
47691
47692
47693
47694
47695
47696
1e9e8aba
DE
47697
47698
a848cd7e
SC
47699 # Check whether --enable-omf or --disable-omf was given.
47700if test "${enable_omf+set}" = set; then
47701 enableval="$enable_omf"
47702 bk_os2_use_omf="$enableval"
47703fi;
47704
47705 case "${BAKEFILE_HOST}" in
47706 *-*-darwin* )
47bd5406
VZ
47707 if test "x$GCC" = "xyes"; then
47708 CFLAGS="$CFLAGS -fno-common"
47709 CXXFLAGS="$CXXFLAGS -fno-common"
47710 fi
47711 if test "x$XLCC" = "xyes"; then
47712 CFLAGS="$CFLAGS -qnocommon"
47713 CXXFLAGS="$CXXFLAGS -qnocommon"
47714 fi
a848cd7e
SC
47715 ;;
47716
47717 *-pc-os2_emx | *-pc-os2-emx )
47718 if test "x$bk_os2_use_omf" = "xyes" ; then
47719 AR=emxomfar
47720 RANLIB=:
47721 LDFLAGS="-Zomf $LDFLAGS"
47722 CFLAGS="-Zomf $CFLAGS"
47723 CXXFLAGS="-Zomf $CXXFLAGS"
47724 OS2_LIBEXT="lib"
47725 else
47726 OS2_LIBEXT="a"
47727 fi
47728 ;;
1e9e8aba
DE
47729
47730 i*86-*-beos* )
47731 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
47732 ;;
a848cd7e
SC
47733 esac
47734
47735
47736 SO_SUFFIX="so"
47737 SO_SUFFIX_MODULE="so"
47738 EXEEXT=""
47739 LIBPREFIX="lib"
47740 LIBEXT=".a"
47741 DLLPREFIX="lib"
47742 DLLPREFIX_MODULE=""
47743 DLLIMP_SUFFIX=""
810b94f0 47744 dlldir="$libdir"
a848cd7e
SC
47745
47746 case "${BAKEFILE_HOST}" in
47747 *-hp-hpux* )
47748 SO_SUFFIX="sl"
47749 SO_SUFFIX_MODULE="sl"
47750 ;;
47751 *-*-aix* )
47752 SO_SUFFIX="a"
47753 SO_SUFFIX_MODULE="a"
47754 ;;
810b94f0
MW
47755 *-*-cygwin* )
47756 SO_SUFFIX="dll"
47757 SO_SUFFIX_MODULE="dll"
47758 DLLIMP_SUFFIX="dll.a"
47759 EXEEXT=".exe"
47760 DLLPREFIX="cyg"
47761 dlldir="$bindir"
47762 ;;
47763 *-*-mingw32* )
a848cd7e
SC
47764 SO_SUFFIX="dll"
47765 SO_SUFFIX_MODULE="dll"
47766 DLLIMP_SUFFIX="dll.a"
47767 EXEEXT=".exe"
47768 DLLPREFIX=""
810b94f0 47769 dlldir="$bindir"
a848cd7e
SC
47770 ;;
47771 *-pc-msdosdjgpp )
47772 EXEEXT=".exe"
47773 DLLPREFIX=""
810b94f0 47774 dlldir="$bindir"
a848cd7e
SC
47775 ;;
47776 *-pc-os2_emx | *-pc-os2-emx )
47777 SO_SUFFIX="dll"
47778 SO_SUFFIX_MODULE="dll"
47779 DLLIMP_SUFFIX=$OS2_LIBEXT
47780 EXEEXT=".exe"
47781 DLLPREFIX=""
47782 LIBPREFIX=""
47783 LIBEXT=".$OS2_LIBEXT"
810b94f0 47784 dlldir="$bindir"
a848cd7e 47785 ;;
47bd5406 47786 *-*-darwin* )
a848cd7e
SC
47787 SO_SUFFIX="dylib"
47788 SO_SUFFIX_MODULE="bundle"
47789 ;;
47790 esac
47791
47792 if test "x$DLLIMP_SUFFIX" = "x" ; then
47793 DLLIMP_SUFFIX="$SO_SUFFIX"
47794 fi
47795
47796
47797
47798
47799
47800
47801
47802
47803
47804
47805
810b94f0 47806
1e9e8aba
DE
47807 PIC_FLAG=""
47808 if test "x$GCC" = "xyes"; then
a848cd7e
SC
47809 PIC_FLAG="-fPIC"
47810 fi
47811
1e9e8aba
DE
47812 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
47813 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 47814 WINDOWS_IMPLIB=0
1e9e8aba 47815
a848cd7e
SC
47816 case "${BAKEFILE_HOST}" in
47817 *-hp-hpux* )
1e9e8aba 47818 if test "x$GCC" != "xyes"; then
a848cd7e
SC
47819 LDFLAGS="$LDFLAGS -L/usr/lib"
47820
47821 SHARED_LD_CC="${CC} -b -o"
47822 SHARED_LD_CXX="${CXX} -b -o"
47823 PIC_FLAG="+Z"
47824 fi
47825 ;;
47826
47827 *-*-linux* )
47828 if test "x$GCC" != "xyes"; then
47829 echo "$as_me:$LINENO: checking for Intel compiler" >&5
47830echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
47831if test "${bakefile_cv_prog_icc+set}" = set; then
47832 echo $ECHO_N "(cached) $ECHO_C" >&6
47833else
47834
47835 cat >conftest.$ac_ext <<_ACEOF
47836/* confdefs.h. */
47837_ACEOF
47838cat confdefs.h >>conftest.$ac_ext
47839cat >>conftest.$ac_ext <<_ACEOF
47840/* end confdefs.h. */
47841
47842int
47843main ()
47844{
47845
47846 #ifndef __INTEL_COMPILER
e5efa97e 47847 This is not ICC
a848cd7e
SC
47848 #endif
47849
47850 ;
47851 return 0;
47852}
47853_ACEOF
47854rm -f conftest.$ac_objext
47855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 47856 (eval $ac_compile) 2>conftest.er1
a848cd7e 47857 ac_status=$?
ac1cb8d3
VS
47858 grep -v '^ *+' conftest.er1 >conftest.err
47859 rm -f conftest.er1
47860 cat conftest.err >&5
a848cd7e
SC
47861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47862 (exit $ac_status); } &&
479c790c 47863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
47864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47865 (eval $ac_try) 2>&5
47866 ac_status=$?
47867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47868 (exit $ac_status); }; } &&
47869 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
47870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47871 (eval $ac_try) 2>&5
47872 ac_status=$?
47873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47874 (exit $ac_status); }; }; then
47875 bakefile_cv_prog_icc=yes
47876else
47877 echo "$as_me: failed program was:" >&5
47878sed 's/^/| /' conftest.$ac_ext >&5
47879
47880bakefile_cv_prog_icc=no
47881
47882fi
ac1cb8d3 47883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
47884
47885fi
47886echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
47887echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
47888 if test "$bakefile_cv_prog_icc" = "yes"; then
47889 PIC_FLAG="-KPIC"
47890 fi
47891 fi
47892 ;;
47893
47894 *-*-solaris2* )
47895 if test "x$GCC" != xyes ; then
47896 SHARED_LD_CC="${CC} -G -o"
47897 SHARED_LD_CXX="${CXX} -G -o"
47898 PIC_FLAG="-KPIC"
47899 fi
47900 ;;
47901
47902 *-*-darwin* )
47903
473276a9
VS
47904D='$'
47905cat <<EOF >shared-ld-sh
a848cd7e
SC
47906#!/bin/sh
47907#-----------------------------------------------------------------------------
47908#-- Name: distrib/mac/shared-ld-sh
47909#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
47910#-- Author: Gilles Depeyrot
47911#-- Copyright: (c) 2002 Gilles Depeyrot
47912#-- Licence: any use permitted
47913#-----------------------------------------------------------------------------
47914
47915verbose=0
47916args=""
47917objects=""
47918linking_flag="-dynamiclib"
810b94f0 47919ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 47920
473276a9
VS
47921while test ${D}# -gt 0; do
47922 case ${D}1 in
a848cd7e
SC
47923
47924 -v)
47925 verbose=1
47926 ;;
47927
47928 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
47929 # collect these options and values
473276a9 47930 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
47931 shift
47932 ;;
47933
810b94f0
MW
47934 -s|-Wl,*)
47935 # collect these load args
47936 ldargs="${D}{ldargs} ${D}1"
2113bc77 47937 ;;
810b94f0
MW
47938
47939 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 47940 # collect these options
473276a9 47941 args="${D}{args} ${D}1"
a848cd7e
SC
47942 ;;
47943
47944 -dynamiclib|-bundle)
473276a9 47945 linking_flag="${D}1"
a848cd7e
SC
47946 ;;
47947
47948 -*)
473276a9 47949 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
47950 exit 1
47951 ;;
47952
47953 *.o | *.a | *.dylib)
47954 # collect object files
473276a9 47955 objects="${D}{objects} ${D}1"
a848cd7e
SC
47956 ;;
47957
47958 *)
473276a9 47959 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
47960 exit 1
47961 ;;
47962
47963 esac
47964 shift
47965done
47966
810b94f0
MW
47967status=0
47968
a848cd7e
SC
47969#
47970# Link one module containing all the others
47971#
473276a9 47972if test ${D}{verbose} = 1; then
810b94f0 47973 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 47974fi
810b94f0 47975c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 47976status=${D}?
a848cd7e
SC
47977
47978#
810b94f0
MW
47979# Link the shared library from the single module created, but only if the
47980# previous command didn't fail:
a848cd7e 47981#
810b94f0
MW
47982if test ${D}{status} = 0; then
47983 if test ${D}{verbose} = 1; then
47984 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
47985 fi
47986 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
47987 status=${D}?
a848cd7e
SC
47988fi
47989
47990#
47991# Remove intermediate module
47992#
473276a9 47993rm -f master.${D}${D}.o
a848cd7e 47994
810b94f0 47995exit ${D}status
a848cd7e 47996EOF
473276a9 47997
583d6b4b
VZ
47998 chmod +x shared-ld-sh
47999
48000 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
48001 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
48002
48003
48004 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
48005echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
48006if test "${bakefile_cv_gcc31+set}" = set; then
48007 echo $ECHO_N "(cached) $ECHO_C" >&6
48008else
48009
48010 cat >conftest.$ac_ext <<_ACEOF
48011/* confdefs.h. */
48012_ACEOF
48013cat confdefs.h >>conftest.$ac_ext
48014cat >>conftest.$ac_ext <<_ACEOF
48015/* end confdefs.h. */
48016
48017int
48018main ()
48019{
48020
48021 #if (__GNUC__ < 3) || \
48022 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 48023 This is old gcc
583d6b4b 48024 #endif
a848cd7e 48025
583d6b4b
VZ
48026 ;
48027 return 0;
48028}
48029_ACEOF
48030rm -f conftest.$ac_objext
48031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48032 (eval $ac_compile) 2>conftest.er1
48033 ac_status=$?
48034 grep -v '^ *+' conftest.er1 >conftest.err
48035 rm -f conftest.er1
48036 cat conftest.err >&5
48037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48038 (exit $ac_status); } &&
479c790c 48039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
583d6b4b
VZ
48040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48041 (eval $ac_try) 2>&5
48042 ac_status=$?
48043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48044 (exit $ac_status); }; } &&
48045 { ac_try='test -s conftest.$ac_objext'
48046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48047 (eval $ac_try) 2>&5
48048 ac_status=$?
48049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48050 (exit $ac_status); }; }; then
48051
48052 bakefile_cv_gcc31=yes
48053
48054else
48055 echo "$as_me: failed program was:" >&5
48056sed 's/^/| /' conftest.$ac_ext >&5
48057
48058
48059 bakefile_cv_gcc31=no
48060
48061
48062fi
48063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48064
48065fi
48066echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
48067echo "${ECHO_T}$bakefile_cv_gcc31" >&6
48068 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 48069 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 48070 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
48071 else
48072 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 48073 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
48074 fi
48075
47bd5406
VZ
48076 if test "x$GCC" == "xyes"; then
48077 PIC_FLAG="-dynamic -fPIC"
48078 fi
48079 if test "x$XLCC" = "xyes"; then
48080 PIC_FLAG="-dynamic -DPIC"
48081 fi
a848cd7e
SC
48082 ;;
48083
48084 *-*-aix* )
f6b50c59 48085 if test "x$GCC" = "xyes"; then
583d6b4b 48086 PIC_FLAG=""
f6b50c59 48087
583d6b4b
VZ
48088 case "${BAKEFILE_HOST}" in
48089 *-*-aix5* )
48090 LD_EXPFULL="-Wl,-bexpfull"
48091 ;;
48092 esac
f6b50c59 48093
583d6b4b
VZ
48094 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
48095 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
48096 else
48097 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
48098set dummy makeC++SharedLib; ac_word=$2
48099echo "$as_me:$LINENO: checking for $ac_word" >&5
48100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48101if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
48102 echo $ECHO_N "(cached) $ECHO_C" >&6
48103else
48104 if test -n "$AIX_CXX_LD"; then
48105 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
48106else
48107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48108for as_dir in $PATH
48109do
48110 IFS=$as_save_IFS
48111 test -z "$as_dir" && as_dir=.
48112 for ac_exec_ext in '' $ac_executable_extensions; do
48113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48114 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
48115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48116 break 2
48117 fi
48118done
48119done
48120
48121 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
48122fi
48123fi
48124AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
48125if test -n "$AIX_CXX_LD"; then
48126 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
48127echo "${ECHO_T}$AIX_CXX_LD" >&6
48128else
48129 echo "$as_me:$LINENO: result: no" >&5
48130echo "${ECHO_T}no" >&6
48131fi
48132
f6b50c59 48133 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
48134 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
48135 fi
48136 ;;
48137
48138 *-*-beos* )
1e9e8aba
DE
48139 SHARED_LD_CC="${LD} -nostart -o"
48140 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
48141 ;;
48142
48143 *-*-irix* )
48144 if test "x$GCC" != "xyes"; then
48145 PIC_FLAG="-KPIC"
48146 fi
48147 ;;
48148
48149 *-*-cygwin* | *-*-mingw32* )
48150 PIC_FLAG=""
1e9e8aba
DE
48151 SHARED_LD_CC="\$(CC) -shared -o"
48152 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 48153 WINDOWS_IMPLIB=1
a848cd7e
SC
48154 ;;
48155
48156 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
48157 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48158 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 48159 PIC_FLAG=""
473276a9
VS
48160
48161D='$'
48162cat <<EOF >dllar.sh
48163#!/bin/sh
48164#
48165# dllar - a tool to build both a .dll and an .a file
48166# from a set of object (.o) files for EMX/OS2.
48167#
48168# Written by Andrew Zabolotny, bit@freya.etu.ru
48169# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
48170#
48171# This script will accept a set of files on the command line.
48172# All the public symbols from the .o files will be exported into
48173# a .DEF file, then linker will be run (through gcc) against them to
48174# build a shared library consisting of all given .o files. All libraries
48175# (.a) will be first decompressed into component .o files then act as
48176# described above. You can optionally give a description (-d "description")
48177# which will be put into .DLL. To see the list of accepted options (as well
48178# as command-line format) simply run this program without options. The .DLL
48179# is built to be imported by name (there is no guarantee that new versions
48180# of the library you build will have same ordinals for same symbols).
48181#
48182# dllar is free software; you can redistribute it and/or modify
48183# it under the terms of the GNU General Public License as published by
48184# the Free Software Foundation; either version 2, or (at your option)
48185# any later version.
48186#
48187# dllar is distributed in the hope that it will be useful,
48188# but WITHOUT ANY WARRANTY; without even the implied warranty of
48189# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48190# GNU General Public License for more details.
48191#
48192# You should have received a copy of the GNU General Public License
48193# along with dllar; see the file COPYING. If not, write to the Free
48194# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
48195# 02111-1307, USA.
48196
48197# To successfuly run this program you will need:
48198# - Current drive should have LFN support (HPFS, ext2, network, etc)
48199# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
48200# - gcc
48201# (used to build the .dll)
48202# - emxexp
48203# (used to create .def file from .o files)
48204# - emximp
48205# (used to create .a file from .def file)
48206# - GNU text utilites (cat, sort, uniq)
48207# used to process emxexp output
48208# - GNU file utilities (mv, rm)
48209# - GNU sed
48210# - lxlite (optional, see flag below)
48211# (used for general .dll cleanup)
48212#
48213
48214flag_USE_LXLITE=1;
48215
48216#
48217# helper functions
48218# basnam, variant of basename, which does _not_ remove the path, _iff_
48219# second argument (suffix to remove) is given
48220basnam(){
48221 case ${D}# in
48222 1)
1e9e8aba 48223 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
48224 ;;
48225 2)
48226 echo ${D}1 | sed 's/'${D}2'${D}//'
48227 ;;
48228 *)
48229 echo "error in basnam ${D}*"
48230 exit 8
48231 ;;
48232 esac
48233}
48234
48235# Cleanup temporary files and output
48236CleanUp() {
48237 cd ${D}curDir
48238 for i in ${D}inputFiles ; do
48239 case ${D}i in
48240 *!)
48241 rm -rf \`basnam ${D}i !\`
48242 ;;
48243 *)
48244 ;;
48245 esac
48246 done
48247
48248 # Kill result in case of failure as there is just to many stupid make/nmake
48249 # things out there which doesn't do this.
1e9e8aba 48250 if [ ${D}# -eq 0 ]; then
473276a9
VS
48251 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
48252 fi
48253}
48254
48255# Print usage and exit script with rc=1.
48256PrintHelp() {
b1d22ded
DE
48257 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
48258 echo ' [-name-mangler-script script.sh]'
48259 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
48260 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
48261 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 48262 echo ' [*.o] [*.a]'
473276a9
VS
48263 echo '*> "output_file" should have no extension.'
48264 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
48265 echo ' The import library name is derived from this and is set to "name".a,'
48266 echo ' unless overridden by -import'
48267 echo '*> "importlib_name" should have no extension.'
48268 echo ' If it has the .o, or .a extension, it is automatically removed.'
48269 echo ' This name is used as the import library name and may be longer and'
48270 echo ' more descriptive than the DLL name which has to follow the old '
48271 echo ' 8.3 convention of FAT.'
b1d22ded
DE
48272 echo '*> "script.sh may be given to override the output_file name by a'
48273 echo ' different name. It is mainly useful if the regular make process'
48274 echo ' of some package does not take into account OS/2 restriction of'
48275 echo ' DLL name lengths. It takes the importlib name as input and is'
48276 echo ' supposed to procude a shorter name as output. The script should'
48277 echo ' expect to get importlib_name without extension and should produce'
48278 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
48279 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
48280 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
48281 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
48282 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
48283 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
48284 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
48285 echo ' If the last character of a symbol is "*", all symbols beginning'
48286 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 48287 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 48288 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 48289 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 48290 echo ' C runtime DLLs.'
b1d22ded 48291 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
48292 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
48293 echo ' unchanged to GCC at the end of command line.'
48294 echo '*> If you create a DLL from a library and you do not specify -o,'
48295 echo ' the basename for DLL and import library will be set to library name,'
48296 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
48297 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
48298 echo ' library will be renamed into gcc_s.a.'
48299 echo '--------'
48300 echo 'Example:'
48301 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
48302 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
48303 CleanUp
48304 exit 1
48305}
48306
48307# Execute a command.
48308# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
48309# @Uses Whatever CleanUp() uses.
48310doCommand() {
48311 echo "${D}*"
48312 eval ${D}*
48313 rcCmd=${D}?
48314
1e9e8aba 48315 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
48316 echo "command failed, exit code="${D}rcCmd
48317 CleanUp
48318 exit ${D}rcCmd
48319 fi
48320}
48321
48322# main routine
48323# setup globals
48324cmdLine=${D}*
48325outFile=""
48326outimpFile=""
48327inputFiles=""
b1d22ded 48328renameScript=""
473276a9
VS
48329description=""
48330CC=gcc.exe
48331CFLAGS="-s -Zcrtdll"
48332EXTRA_CFLAGS=""
48333EXPORT_BY_ORDINALS=0
48334exclude_symbols=""
48335library_flags=""
48336curDir=\`pwd\`
48337curDirS=curDir
48338case ${D}curDirS in
48339*/)
48340 ;;
48341*)
48342 curDirS=${D}{curDirS}"/"
48343 ;;
48344esac
48345# Parse commandline
48346libsToLink=0
b1d22ded 48347omfLinking=0
1e9e8aba 48348while [ ${D}1 ]; do
473276a9
VS
48349 case ${D}1 in
48350 -ord*)
48351 EXPORT_BY_ORDINALS=1;
48352 ;;
48353 -o*)
48354 shift
48355 outFile=${D}1
48356 ;;
48357 -i*)
48358 shift
48359 outimpFile=${D}1
48360 ;;
b1d22ded
DE
48361 -name-mangler-script)
48362 shift
48363 renameScript=${D}1
48364 ;;
473276a9
VS
48365 -d*)
48366 shift
48367 description=${D}1
48368 ;;
48369 -f*)
48370 shift
48371 CFLAGS=${D}1
48372 ;;
48373 -c*)
48374 shift
48375 CC=${D}1
48376 ;;
48377 -h*)
48378 PrintHelp
48379 ;;
48380 -ex*)
48381 shift
48382 exclude_symbols=${D}{exclude_symbols}${D}1" "
48383 ;;
48384 -libf*)
48385 shift
48386 library_flags=${D}{library_flags}${D}1" "
48387 ;;
48388 -nocrt*)
48389 CFLAGS="-s"
48390 ;;
48391 -nolxl*)
48392 flag_USE_LXLITE=0
48393 ;;
48394 -* | /*)
48395 case ${D}1 in
48396 -L* | -l*)
48397 libsToLink=1
48398 ;;
b1d22ded
DE
48399 -Zomf)
48400 omfLinking=1
48401 ;;
473276a9
VS
48402 *)
48403 ;;
48404 esac
48405 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48406 ;;
b1d22ded
DE
48407 *.dll)
48408 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
48409 if [ ${D}omfLinking -eq 1 ]; then
48410 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
48411 else
48412 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
48413 fi
48414 ;;
473276a9
VS
48415 *)
48416 found=0;
1e9e8aba 48417 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
48418 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48419 else
48420 for file in ${D}1 ; do
1e9e8aba 48421 if [ -f ${D}file ]; then
473276a9
VS
48422 inputFiles="${D}{inputFiles} ${D}file"
48423 found=1
48424 fi
48425 done
1e9e8aba 48426 if [ ${D}found -eq 0 ]; then
473276a9
VS
48427 echo "ERROR: No file(s) found: "${D}1
48428 exit 8
48429 fi
48430 fi
48431 ;;
48432 esac
48433 shift
48434done # iterate cmdline words
48435
48436#
1e9e8aba 48437if [ -z "${D}inputFiles" ]; then
473276a9
VS
48438 echo "dllar: no input files"
48439 PrintHelp
48440fi
48441
48442# Now extract all .o files from .a files
48443newInputFiles=""
48444for file in ${D}inputFiles ; do
48445 case ${D}file in
48446 *.a | *.lib)
48447 case ${D}file in
48448 *.a)
48449 suffix=".a"
48450 AR="ar"
48451 ;;
48452 *.lib)
48453 suffix=".lib"
48454 AR="emxomfar"
48455 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
48456 ;;
48457 *)
48458 ;;
48459 esac
48460 dirname=\`basnam ${D}file ${D}suffix\`"_%"
48461 mkdir ${D}dirname
1e9e8aba 48462 if [ ${D}? -ne 0 ]; then
473276a9
VS
48463 echo "Failed to create subdirectory ./${D}dirname"
48464 CleanUp
48465 exit 8;
48466 fi
48467 # Append '!' to indicate archive
48468 newInputFiles="${D}newInputFiles ${D}{dirname}!"
48469 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
48470 cd ${D}curDir
48471 found=0;
48472 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 48473 if [ -f ${D}subfile ]; then
473276a9 48474 found=1
1e9e8aba 48475 if [ -s ${D}subfile ]; then
473276a9
VS
48476 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
48477 newInputFiles="${D}newInputFiles ${D}subfile"
48478 fi
48479 fi
48480 done
1e9e8aba
DE
48481 if [ ${D}found -eq 0 ]; then
48482 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
48483 fi
48484 ;;
48485 *)
48486 newInputFiles="${D}{newInputFiles} ${D}file"
48487 ;;
48488 esac
48489done
48490inputFiles="${D}newInputFiles"
48491
48492# Output filename(s).
48493do_backup=0;
1e9e8aba 48494if [ -z ${D}outFile ]; then
473276a9
VS
48495 do_backup=1;
48496 set outFile ${D}inputFiles; outFile=${D}2
48497fi
48498
48499# If it is an archive, remove the '!' and the '_%' suffixes
48500case ${D}outFile in
48501*_%!)
48502 outFile=\`basnam ${D}outFile _%!\`
48503 ;;
48504*)
48505 ;;
48506esac
48507case ${D}outFile in
48508*.dll)
48509 outFile=\`basnam ${D}outFile .dll\`
48510 ;;
48511*.DLL)
48512 outFile=\`basnam ${D}outFile .DLL\`
48513 ;;
48514*.o)
48515 outFile=\`basnam ${D}outFile .o\`
48516 ;;
48517*.obj)
48518 outFile=\`basnam ${D}outFile .obj\`
48519 ;;
48520*.a)
48521 outFile=\`basnam ${D}outFile .a\`
48522 ;;
48523*.lib)
48524 outFile=\`basnam ${D}outFile .lib\`
48525 ;;
48526*)
48527 ;;
48528esac
48529case ${D}outimpFile in
48530*.a)
48531 outimpFile=\`basnam ${D}outimpFile .a\`
48532 ;;
48533*.lib)
48534 outimpFile=\`basnam ${D}outimpFile .lib\`
48535 ;;
48536*)
48537 ;;
48538esac
1e9e8aba 48539if [ -z ${D}outimpFile ]; then
473276a9
VS
48540 outimpFile=${D}outFile
48541fi
48542defFile="${D}{outFile}.def"
48543arcFile="${D}{outimpFile}.a"
48544arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
48545
48546#create ${D}dllFile as something matching 8.3 restrictions,
48547if [ -z ${D}renameScript ] ; then
48548 dllFile="${D}outFile"
48549else
48550 dllFile=\`${D}renameScript ${D}outimpFile\`
48551fi
473276a9 48552
1e9e8aba
DE
48553if [ ${D}do_backup -ne 0 ] ; then
48554 if [ -f ${D}arcFile ] ; then
473276a9
VS
48555 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
48556 fi
1e9e8aba 48557 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
48558 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
48559 fi
48560fi
48561
48562# Extract public symbols from all the object files.
48563tmpdefFile=${D}{defFile}_%
48564rm -f ${D}tmpdefFile
48565for file in ${D}inputFiles ; do
48566 case ${D}file in
48567 *!)
48568 ;;
48569 *)
48570 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
48571 ;;
48572 esac
48573done
48574
48575# Create the def file.
48576rm -f ${D}defFile
48577echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
48578dllFile="${D}{dllFile}.dll"
48579if [ ! -z ${D}description ]; then
1e9e8aba 48580 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
48581fi
48582echo "EXPORTS" >> ${D}defFile
48583
48584doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
48585grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
48586
48587# Checks if the export is ok or not.
48588for word in ${D}exclude_symbols; do
48589 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
48590 mv ${D}{tmpdefFile}% ${D}tmpdefFile
48591done
48592
48593
1e9e8aba
DE
48594if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48595 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
48596 sed '
48597 N
48598 : loop
1e9e8aba 48599 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
48600 t loop
48601 ' > ${D}{tmpdefFile}%
48602 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
48603else
48604 rm -f ${D}{tmpdefFile}%
48605fi
48606cat ${D}tmpdefFile >> ${D}defFile
48607rm -f ${D}tmpdefFile
48608
48609# Do linking, create implib, and apply lxlite.
48610gccCmdl="";
48611for file in ${D}inputFiles ; do
48612 case ${D}file in
48613 *!)
48614 ;;
48615 *)
48616 gccCmdl="${D}gccCmdl ${D}file"
48617 ;;
48618 esac
48619done
48620doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
48621touch "${D}{outFile}.dll"
48622
48623doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 48624if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 48625 add_flags="";
1e9e8aba 48626 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
48627 add_flags="-ynd"
48628 fi
48629 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
48630fi
48631doCommand "emxomf -s -l ${D}arcFile"
48632
48633# Successful exit.
48634CleanUp 1
48635exit 0
48636EOF
48637
48638 chmod +x dllar.sh
a848cd7e
SC
48639 ;;
48640
1e9e8aba 48641 powerpc-apple-macos* | \
0ad5d837 48642 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
48643 *-*-sunos4* | \
48644 *-*-osf* | \
48645 *-*-dgux5* | \
47a7e797
MW
48646 *-*-sysv5* | \
48647 *-pc-msdosdjgpp )
a848cd7e
SC
48648 ;;
48649
48650 *)
3ecd9f92 48651 esac
a848cd7e 48652
2057db16
VS
48653 if test "x$PIC_FLAG" != "x" ; then
48654 PIC_FLAG="$PIC_FLAG -DPIC"
48655 fi
48656
a848cd7e
SC
48657 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
48658 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
48659 fi
48660 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
48661 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
48662 fi
48663
48664
48665
48666
48667
48668
48669
48670
810b94f0 48671
a848cd7e
SC
48672 USE_SOVERSION=0
48673 USE_SOVERLINUX=0
48674 USE_SOVERSOLARIS=0
810b94f0 48675 USE_SOVERCYGWIN=0
a848cd7e
SC
48676 USE_SOSYMLINKS=0
48677 USE_MACVERSION=0
48678 SONAME_FLAG=
48679
48680 case "${BAKEFILE_HOST}" in
0ad5d837 48681 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
48682 SONAME_FLAG="-Wl,-soname,"
48683 USE_SOVERSION=1
48684 USE_SOVERLINUX=1
48685 USE_SOSYMLINKS=1
48686 ;;
48687
a848cd7e
SC
48688 *-*-solaris2* )
48689 SONAME_FLAG="-h "
48690 USE_SOVERSION=1
48691 USE_SOVERSOLARIS=1
48692 USE_SOSYMLINKS=1
48693 ;;
48694
48695 *-*-darwin* )
48696 USE_MACVERSION=1
48697 USE_SOVERSION=1
48698 USE_SOSYMLINKS=1
48699 ;;
810b94f0
MW
48700
48701 *-*-cygwin* )
48702 USE_SOVERSION=1
48703 USE_SOVERCYGWIN=1
48704 ;;
a848cd7e
SC
48705 esac
48706
48707
48708
48709
48710
48711
48712
48713
48714
810b94f0 48715
f10e38c4
VZ
48716 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
48717if test "${enable_dependency_tracking+set}" = set; then
48718 enableval="$enable_dependency_tracking"
48719 bk_use_trackdeps="$enableval"
48720fi;
48721
a848cd7e
SC
48722 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
48723echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 48724
f10e38c4
VZ
48725 if test "x$bk_use_trackdeps" = "xno" ; then
48726 DEPS_TRACKING=0
48727 echo "$as_me:$LINENO: result: disabled" >&5
48728echo "${ECHO_T}disabled" >&6
48729 else
48730 DEPS_TRACKING=1
48731
48732 if test "x$GCC" = "xyes"; then
48733 DEPSMODE=gcc
48734 case "${BAKEFILE_HOST}" in
48735 *-*-darwin* )
48736 DEPSFLAG="-no-cpp-precomp -MMD"
48737 ;;
48738 * )
48739 DEPSFLAG="-MMD"
48740 ;;
48741 esac
48742 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 48743echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
48744 elif test "x$MWCC" = "xyes"; then
48745 DEPSMODE=mwcc
48746 DEPSFLAG="-MM"
48747 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 48748echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
48749 elif test "x$SUNCC" = "xyes"; then
48750 DEPSMODE=unixcc
48751 DEPSFLAG="-xM1"
48752 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 48753echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
48754 elif test "x$SGICC" = "xyes"; then
48755 DEPSMODE=unixcc
48756 DEPSFLAG="-M"
48757 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 48758echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
48759 elif test "x$HPCC" = "xyes"; then
48760 DEPSMODE=unixcc
48761 DEPSFLAG="+make"
48762 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 48763echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
48764 elif test "x$COMPAQCC" = "xyes"; then
48765 DEPSMODE=gcc
48766 DEPSFLAG="-MD"
48767 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 48768echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
48769 else
48770 DEPS_TRACKING=0
48771 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 48772echo "${ECHO_T}none" >&6
f10e38c4 48773 fi
a848cd7e 48774
f10e38c4 48775 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
48776
48777D='$'
48778cat <<EOF >bk-deps
a848cd7e
SC
48779#!/bin/sh
48780
48781# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
48782# script. It is used to track C/C++ files dependencies in portable way.
48783#
48784# Permission is given to use this file in any way.
48785
473276a9 48786DEPSMODE=${DEPSMODE}
a848cd7e 48787DEPSDIR=.deps
0ad5d837 48788DEPSFLAG="${DEPSFLAG}"
a848cd7e 48789
473276a9 48790mkdir -p ${D}DEPSDIR
a848cd7e 48791
473276a9 48792if test ${D}DEPSMODE = gcc ; then
0ad5d837 48793 ${D}* ${D}{DEPSFLAG}
473276a9
VS
48794 status=${D}?
48795 if test ${D}{status} != 0 ; then
48796 exit ${D}{status}
a848cd7e
SC
48797 fi
48798 # move created file to the location we want it in:
473276a9
VS
48799 while test ${D}# -gt 0; do
48800 case "${D}1" in
a848cd7e
SC
48801 -o )
48802 shift
473276a9 48803 objfile=${D}1
a848cd7e
SC
48804 ;;
48805 -* )
48806 ;;
48807 * )
473276a9 48808 srcfile=${D}1
a848cd7e
SC
48809 ;;
48810 esac
48811 shift
48812 done
1e9e8aba
DE
48813 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
48814 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
48815 if test -f ${D}depfile ; then
48816 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48817 rm -f ${D}depfile
a848cd7e 48818 else
a1aa0349 48819 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 48820 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
48821 if test ! -f ${D}depfile ; then
48822 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
48823 depfile="${D}objfile.d"
48824 fi
473276a9
VS
48825 if test -f ${D}depfile ; then
48826 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48827 rm -f ${D}depfile
a848cd7e
SC
48828 fi
48829 fi
48830 exit 0
81f90336 48831elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 48832 ${D}* || exit ${D}?
81f90336
MW
48833 # Run mwcc again with -MM and redirect into the dep file we want
48834 # NOTE: We can't use shift here because we need ${D}* to be valid
48835 prevarg=
48836 for arg in ${D}* ; do
48837 if test "${D}prevarg" = "-o"; then
48838 objfile=${D}arg
48839 else
48840 case "${D}arg" in
48841 -* )
48842 ;;
48843 * )
48844 srcfile=${D}arg
48845 ;;
48846 esac
48847 fi
48848 prevarg="${D}arg"
48849 done
0ad5d837 48850 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 48851 exit 0
0ad5d837 48852elif test ${D}DEPSMODE = unixcc; then
f6b50c59 48853 ${D}* || exit ${D}?
a9e5b1f0
MW
48854 # Run compiler again with deps flag and redirect into the dep file.
48855 # It doesn't work if the '-o FILE' option is used, but without it the
48856 # dependency file will contain the wrong name for the object. So it is
48857 # removed from the command line, and the dep file is fixed with sed.
48858 cmd=""
48859 while test ${D}# -gt 0; do
48860 case "${D}1" in
48861 -o )
48862 shift
48863 objfile=${D}1
48864 ;;
48865 * )
48866 eval arg${D}#=\\${D}1
48867 cmd="${D}cmd \\${D}arg${D}#"
48868 ;;
48869 esac
48870 shift
48871 done
0ad5d837 48872 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 48873 exit 0
a848cd7e 48874else
473276a9
VS
48875 ${D}*
48876 exit ${D}?
a848cd7e
SC
48877fi
48878EOF
473276a9 48879
f10e38c4
VZ
48880 chmod +x bk-deps
48881 fi
a848cd7e
SC
48882 fi
48883
48884
48885
48886
a848cd7e
SC
48887 case ${BAKEFILE_HOST} in
48888 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
48889 if test -n "$ac_tool_prefix"; then
48890 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
48891set dummy ${ac_tool_prefix}windres; ac_word=$2
48892echo "$as_me:$LINENO: checking for $ac_word" >&5
48893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48894if test "${ac_cv_prog_WINDRES+set}" = set; then
48895 echo $ECHO_N "(cached) $ECHO_C" >&6
48896else
48897 if test -n "$WINDRES"; then
48898 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
48899else
48900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48901for as_dir in $PATH
48902do
48903 IFS=$as_save_IFS
48904 test -z "$as_dir" && as_dir=.
48905 for ac_exec_ext in '' $ac_executable_extensions; do
48906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48907 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
48908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48909 break 2
48910 fi
48911done
48912done
48913
48914fi
48915fi
48916WINDRES=$ac_cv_prog_WINDRES
48917if test -n "$WINDRES"; then
48918 echo "$as_me:$LINENO: result: $WINDRES" >&5
48919echo "${ECHO_T}$WINDRES" >&6
48920else
48921 echo "$as_me:$LINENO: result: no" >&5
48922echo "${ECHO_T}no" >&6
48923fi
48924
48925fi
48926if test -z "$ac_cv_prog_WINDRES"; then
48927 ac_ct_WINDRES=$WINDRES
48928 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
48929set dummy windres; ac_word=$2
48930echo "$as_me:$LINENO: checking for $ac_word" >&5
48931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 48932if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
48933 echo $ECHO_N "(cached) $ECHO_C" >&6
48934else
8ced02f6
DE
48935 if test -n "$ac_ct_WINDRES"; then
48936 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
48937else
48938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48939for as_dir in $PATH
48940do
48941 IFS=$as_save_IFS
48942 test -z "$as_dir" && as_dir=.
48943 for ac_exec_ext in '' $ac_executable_extensions; do
48944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 48945 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
48946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48947 break 2
48948 fi
48949done
48950done
48951
a848cd7e
SC
48952fi
48953fi
8ced02f6
DE
48954ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
48955if test -n "$ac_ct_WINDRES"; then
48956 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
48957echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
48958else
48959 echo "$as_me:$LINENO: result: no" >&5
48960echo "${ECHO_T}no" >&6
48961fi
48962
8ced02f6
DE
48963 WINDRES=$ac_ct_WINDRES
48964else
48965 WINDRES="$ac_cv_prog_WINDRES"
48966fi
48967
a848cd7e
SC
48968 ;;
48969
1e9e8aba 48970 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
48971 # Extract the first word of "Rez", so it can be a program name with args.
48972set dummy Rez; ac_word=$2
48973echo "$as_me:$LINENO: checking for $ac_word" >&5
48974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 48975if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
48976 echo $ECHO_N "(cached) $ECHO_C" >&6
48977else
8ced02f6
DE
48978 if test -n "$REZ"; then
48979 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
48980else
48981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48982for as_dir in $PATH
48983do
48984 IFS=$as_save_IFS
48985 test -z "$as_dir" && as_dir=.
48986 for ac_exec_ext in '' $ac_executable_extensions; do
48987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 48988 ac_cv_prog_REZ="Rez"
a848cd7e
SC
48989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48990 break 2
48991 fi
48992done
48993done
48994
8ced02f6 48995 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
48996fi
48997fi
8ced02f6
DE
48998REZ=$ac_cv_prog_REZ
48999if test -n "$REZ"; then
49000 echo "$as_me:$LINENO: result: $REZ" >&5
49001echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
49002else
49003 echo "$as_me:$LINENO: result: no" >&5
49004echo "${ECHO_T}no" >&6
49005fi
49006
49007 # Extract the first word of "SetFile", so it can be a program name with args.
49008set dummy SetFile; ac_word=$2
49009echo "$as_me:$LINENO: checking for $ac_word" >&5
49010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49011if test "${ac_cv_prog_SETFILE+set}" = set; then
49012 echo $ECHO_N "(cached) $ECHO_C" >&6
49013else
49014 if test -n "$SETFILE"; then
49015 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
49016else
49017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49018for as_dir in $PATH
49019do
49020 IFS=$as_save_IFS
49021 test -z "$as_dir" && as_dir=.
49022 for ac_exec_ext in '' $ac_executable_extensions; do
49023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49024 ac_cv_prog_SETFILE="SetFile"
49025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49026 break 2
49027 fi
49028done
49029done
49030
49031 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
49032fi
49033fi
49034SETFILE=$ac_cv_prog_SETFILE
49035if test -n "$SETFILE"; then
49036 echo "$as_me:$LINENO: result: $SETFILE" >&5
49037echo "${ECHO_T}$SETFILE" >&6
49038else
49039 echo "$as_me:$LINENO: result: no" >&5
49040echo "${ECHO_T}no" >&6
49041fi
49042
49043 ;;
49044 esac
49045
49046
49047
49048
49049
8ced02f6 49050
f10e38c4 49051 BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
a848cd7e 49052
dcc1b6ad 49053
f10e38c4 49054BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
a848cd7e 49055
646b6ec1 49056
74b84332 49057
a848cd7e
SC
49058 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
49059if test "${enable_precomp_headers+set}" = set; then
49060 enableval="$enable_precomp_headers"
49061 bk_use_pch="$enableval"
49062fi;
49063
49064 GCC_PCH=0
f10e38c4
VZ
49065 ICC_PCH=0
49066 USE_PCH=0
a848cd7e 49067
5c60e845
MW
49068 case ${BAKEFILE_HOST} in
49069 *-*-cygwin* )
49070 bk_use_pch="no"
49071 ;;
49072 esac
49073
a848cd7e
SC
49074 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
49075 if test "x$GCC" = "xyes"; then
49076 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
49077echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
49078 cat >conftest.$ac_ext <<_ACEOF
49079/* confdefs.h. */
49080_ACEOF
49081cat confdefs.h >>conftest.$ac_ext
49082cat >>conftest.$ac_ext <<_ACEOF
49083/* end confdefs.h. */
49084
49085int
49086main ()
49087{
49088
49089 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 49090 There is no PCH support
a848cd7e
SC
49091 #endif
49092 #if (__GNUC__ < 3)
e5efa97e 49093 There is no PCH support
a848cd7e
SC
49094 #endif
49095 #if (__GNUC__ == 3) && \
49096 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
49097 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
49098 ( defined(__INTEL_COMPILER) )
e5efa97e 49099 There is no PCH support
a848cd7e
SC
49100 #endif
49101
49102 ;
49103 return 0;
49104}
49105_ACEOF
49106rm -f conftest.$ac_objext
49107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 49108 (eval $ac_compile) 2>conftest.er1
a848cd7e 49109 ac_status=$?
ac1cb8d3
VS
49110 grep -v '^ *+' conftest.er1 >conftest.err
49111 rm -f conftest.er1
49112 cat conftest.err >&5
a848cd7e
SC
49113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49114 (exit $ac_status); } &&
479c790c 49115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
49116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49117 (eval $ac_try) 2>&5
49118 ac_status=$?
49119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49120 (exit $ac_status); }; } &&
49121 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
49122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49123 (eval $ac_try) 2>&5
49124 ac_status=$?
49125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49126 (exit $ac_status); }; }; then
49127
49128 echo "$as_me:$LINENO: result: yes" >&5
49129echo "${ECHO_T}yes" >&6
a848cd7e
SC
49130 GCC_PCH=1
49131
49132else
49133 echo "$as_me: failed program was:" >&5
49134sed 's/^/| /' conftest.$ac_ext >&5
49135
49136
f10e38c4
VZ
49137 cat >conftest.$ac_ext <<_ACEOF
49138/* confdefs.h. */
49139_ACEOF
49140cat confdefs.h >>conftest.$ac_ext
49141cat >>conftest.$ac_ext <<_ACEOF
49142/* end confdefs.h. */
49143
49144int
49145main ()
49146{
49147
49148 #if !defined(__INTEL_COMPILER) || \
49149 (__INTEL_COMPILER < 800)
e5efa97e 49150 There is no PCH support
f10e38c4
VZ
49151 #endif
49152
49153 ;
49154 return 0;
49155}
49156_ACEOF
49157rm -f conftest.$ac_objext
49158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49159 (eval $ac_compile) 2>conftest.er1
49160 ac_status=$?
49161 grep -v '^ *+' conftest.er1 >conftest.err
49162 rm -f conftest.er1
49163 cat conftest.err >&5
49164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49165 (exit $ac_status); } &&
479c790c 49166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f10e38c4
VZ
49167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49168 (eval $ac_try) 2>&5
49169 ac_status=$?
49170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49171 (exit $ac_status); }; } &&
49172 { ac_try='test -s conftest.$ac_objext'
49173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49174 (eval $ac_try) 2>&5
49175 ac_status=$?
49176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49177 (exit $ac_status); }; }; then
49178
49179 echo "$as_me:$LINENO: result: yes" >&5
49180echo "${ECHO_T}yes" >&6
49181 ICC_PCH=1
49182
49183else
49184 echo "$as_me: failed program was:" >&5
49185sed 's/^/| /' conftest.$ac_ext >&5
49186
49187
49188 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
49189echo "${ECHO_T}no" >&6
49190
49191fi
ac1cb8d3 49192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
49193
49194fi
49195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49196 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
49197 USE_PCH=1
1e9e8aba
DE
49198
49199D='$'
49200cat <<EOF >bk-make-pch
a848cd7e
SC
49201#!/bin/sh
49202
49203# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
49204# script. It is used to generated precompiled headers.
49205#
49206# Permission is given to use this file in any way.
49207
1e9e8aba
DE
49208outfile="${D}{1}"
49209header="${D}{2}"
a848cd7e
SC
49210shift
49211shift
49212
f10e38c4
VZ
49213compiler=""
49214headerfile=""
49215
1e9e8aba 49216while test ${D}{#} -gt 0; do
f10e38c4 49217 add_to_cmdline=1
1e9e8aba 49218 case "${D}{1}" in
a848cd7e 49219 -I* )
1e9e8aba
DE
49220 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
49221 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
49222 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
49223 fi
49224 ;;
f10e38c4
VZ
49225 -use-pch|-use_pch )
49226 shift
49227 add_to_cmdline=0
49228 ;;
a848cd7e 49229 esac
f10e38c4
VZ
49230 if test ${D}add_to_cmdline = 1 ; then
49231 compiler="${D}{compiler} ${D}{1}"
49232 fi
a848cd7e
SC
49233 shift
49234done
49235
1e9e8aba 49236if test "x${D}{headerfile}" = "x" ; then
f10e38c4 49237 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 49238else
1e9e8aba
DE
49239 if test -f ${D}{outfile} ; then
49240 rm -f ${D}{outfile}
a848cd7e 49241 else
1e9e8aba 49242 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 49243 fi
1e9e8aba 49244 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 49245 mkdir -p .deps
f10e38c4
VZ
49246 if test "x${GCC_PCH}" = "x1" ; then
49247 # can do this because gcc is >= 3.4:
49248 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
49249 elif test "x${ICC_PCH}" = "x1" ; then
49250 filename=pch_gen-${D}${D}
49251 file=${D}{filename}.c
49252 dfile=${D}{filename}.d
49253 cat > ${D}file <<EOT
49254#include "${D}header"
49255EOT
49256 # using -MF icc complains about differing command lines in creation/use
49257 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
49258 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
49259 rm -f ${D}file ${D}dfile ${D}{filename}.o
49260 fi
1e9e8aba 49261 exit ${D}{?}
a848cd7e
SC
49262fi
49263EOF
1e9e8aba 49264
a848cd7e
SC
49265 chmod +x bk-make-pch
49266 fi
49267 fi
49268 fi
49269
49270
49271
f10e38c4 49272
a848cd7e
SC
49273 COND_BUILD_DEBUG="#"
49274 if test "x$BUILD" = "xdebug" ; then
49275 COND_BUILD_DEBUG=""
49276 fi
49277
49278 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
49279 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49280 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
49281 fi
49282
49283 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
49284 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49285 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
49286 fi
49287
49288 COND_BUILD_DEBUG_UNICODE_0="#"
49289 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49290 COND_BUILD_DEBUG_UNICODE_0=""
49291 fi
49292
49293 COND_BUILD_DEBUG_UNICODE_1="#"
49294 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49295 COND_BUILD_DEBUG_UNICODE_1=""
49296 fi
49297
49298 COND_BUILD_RELEASE="#"
49299 if test "x$BUILD" = "xrelease" ; then
49300 COND_BUILD_RELEASE=""
49301 fi
49302
49303 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
49304 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49305 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
49306 fi
49307
49308 COND_BUILD_RELEASE_UNICODE_0="#"
49309 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49310 COND_BUILD_RELEASE_UNICODE_0=""
49311 fi
49312
49313 COND_BUILD_RELEASE_UNICODE_1="#"
49314 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49315 COND_BUILD_RELEASE_UNICODE_1=""
49316 fi
49317
49318 COND_DEBUG_FLAG_1="#"
49319 if test "x$DEBUG_FLAG" = "x1" ; then
49320 COND_DEBUG_FLAG_1=""
49321 fi
49322
49323 COND_DEBUG_INFO_0="#"
49324 if test "x$DEBUG_INFO" = "x0" ; then
49325 COND_DEBUG_INFO_0=""
49326 fi
49327
49328 COND_DEBUG_INFO_1="#"
49329 if test "x$DEBUG_INFO" = "x1" ; then
49330 COND_DEBUG_INFO_1=""
49331 fi
49332
49333 COND_DEPS_TRACKING_0="#"
49334 if test "x$DEPS_TRACKING" = "x0" ; then
49335 COND_DEPS_TRACKING_0=""
49336 fi
49337
49338 COND_DEPS_TRACKING_1="#"
49339 if test "x$DEPS_TRACKING" = "x1" ; then
49340 COND_DEPS_TRACKING_1=""
49341 fi
49342
49343 COND_GCC_PCH_1="#"
49344 if test "x$GCC_PCH" = "x1" ; then
49345 COND_GCC_PCH_1=""
49346 fi
49347
f10e38c4
VZ
49348 COND_ICC_PCH_1="#"
49349 if test "x$ICC_PCH" = "x1" ; then
49350 COND_ICC_PCH_1=""
49351 fi
49352
a848cd7e
SC
49353 COND_MONOLITHIC_0="#"
49354 if test "x$MONOLITHIC" = "x0" ; then
49355 COND_MONOLITHIC_0=""
49356 fi
49357
49358 COND_MONOLITHIC_0_SHARED_0="#"
49359 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
49360 COND_MONOLITHIC_0_SHARED_0=""
49361 fi
49362
3f60522a
JS
49363 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
49364 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
49365 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
49366 fi
49367
a848cd7e
SC
49368 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
49369 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
49370 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
49371 fi
49372
90970d69
DE
49373 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
49374 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49375 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
49376 fi
49377
f10e38c4
VZ
49378 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
49379 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49380 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
49381 fi
49382
a848cd7e
SC
49383 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
49384 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
49385 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
49386 fi
49387
6671c68b
VZ
49388 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
49389 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49390 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
49391 fi
49392
a848cd7e
SC
49393 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
49394 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
49395 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
49396 fi
49397
8b6682b9
JS
49398 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
49399 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49400 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
49401 fi
49402
ceec2216
RL
49403 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
49404 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49405 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
49406 fi
49407
a848cd7e
SC
49408 COND_MONOLITHIC_0_SHARED_1="#"
49409 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
49410 COND_MONOLITHIC_0_SHARED_1=""
49411 fi
49412
3f60522a
JS
49413 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
49414 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
49415 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
49416 fi
49417
a848cd7e
SC
49418 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
49419 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
49420 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
49421 fi
49422
90970d69
DE
49423 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
49424 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49425 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
49426 fi
49427
f10e38c4
VZ
49428 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
49429 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49430 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
49431 fi
49432
a848cd7e
SC
49433 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
49434 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
49435 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
49436 fi
49437
6671c68b
VZ
49438 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
49439 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49440 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
49441 fi
49442
a848cd7e
SC
49443 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
49444 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
49445 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
49446 fi
49447
8b6682b9
JS
49448 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
49449 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
49450 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
49451 fi
49452
ceec2216
RL
49453 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
49454 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49455 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
49456 fi
49457
e5efa97e
VZ
49458 COND_MONOLITHIC_0_USE_MEDIA_1="#"
49459 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
49460 COND_MONOLITHIC_0_USE_MEDIA_1=""
49461 fi
49462
a848cd7e
SC
49463 COND_MONOLITHIC_0_USE_ODBC_1="#"
49464 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
49465 COND_MONOLITHIC_0_USE_ODBC_1=""
49466 fi
49467
49468 COND_MONOLITHIC_1="#"
49469 if test "x$MONOLITHIC" = "x1" ; then
49470 COND_MONOLITHIC_1=""
49471 fi
49472
49473 COND_MONOLITHIC_1_SHARED_0="#"
49474 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
49475 COND_MONOLITHIC_1_SHARED_0=""
49476 fi
49477
49478 COND_MONOLITHIC_1_SHARED_1="#"
49479 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
49480 COND_MONOLITHIC_1_SHARED_1=""
49481 fi
49482
49483 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
49484 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
49485 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
49486 fi
49487
49488 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
49489 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
49490 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
49491 fi
49492
eb730a0c
JS
49493 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
49494 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49495 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
49496 fi
49497
a848cd7e
SC
49498 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
49499 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49500 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
49501 fi
49502
49503 COND_PLATFORM_MACOSX_1="#"
49504 if test "x$PLATFORM_MACOSX" = "x1" ; then
49505 COND_PLATFORM_MACOSX_1=""
49506 fi
49507
a30f955f
VS
49508 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
49509 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
49510 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
49511 fi
49512
a848cd7e
SC
49513 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
49514 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
49515 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
49516 fi
49517
49518 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
49519 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
49520 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
49521 fi
49522
49523 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
49524 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
49525 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
49526 fi
49527
fc480dc1
DE
49528 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
49529 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49530 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
49531 fi
49532
1e9e8aba
DE
49533 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
49534 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49535 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
49536 fi
49537
ebee3cd0
VS
49538 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
49539 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
49540 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
49541 fi
49542
49543 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
49544 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
49545 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
49546 fi
49547
a848cd7e
SC
49548 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
49549 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
49550 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
49551 fi
49552
49553 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
49554 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49555 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
49556 fi
49557
b48a2016
DE
49558 COND_PLATFORM_MACOS_1="#"
49559 if test "x$PLATFORM_MACOS" = "x1" ; then
49560 COND_PLATFORM_MACOS_1=""
49561 fi
49562
083508af
MW
49563 COND_PLATFORM_MAC_1="#"
49564 if test "x$PLATFORM_MAC" = "x1" ; then
49565 COND_PLATFORM_MAC_1=""
49566 fi
49567
e5efa97e
VZ
49568 COND_PLATFORM_MSDOS_0="#"
49569 if test "x$PLATFORM_MSDOS" = "x0" ; then
49570 COND_PLATFORM_MSDOS_0=""
49571 fi
49572
83d8eb47
MW
49573 COND_PLATFORM_MSDOS_1="#"
49574 if test "x$PLATFORM_MSDOS" = "x1" ; then
49575 COND_PLATFORM_MSDOS_1=""
49576 fi
49577
a848cd7e
SC
49578 COND_PLATFORM_OS2_1="#"
49579 if test "x$PLATFORM_OS2" = "x1" ; then
49580 COND_PLATFORM_OS2_1=""
49581 fi
49582
49583 COND_PLATFORM_UNIX_0="#"
49584 if test "x$PLATFORM_UNIX" = "x0" ; then
49585 COND_PLATFORM_UNIX_0=""
49586 fi
49587
49588 COND_PLATFORM_UNIX_1="#"
49589 if test "x$PLATFORM_UNIX" = "x1" ; then
49590 COND_PLATFORM_UNIX_1=""
49591 fi
49592
49593 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
49594 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
49595 COND_PLATFORM_UNIX_1_USE_GUI_1=""
49596 fi
49597
49598 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
49599 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
49600 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
49601 fi
49602
49603 COND_PLATFORM_WIN32_0="#"
49604 if test "x$PLATFORM_WIN32" = "x0" ; then
49605 COND_PLATFORM_WIN32_0=""
49606 fi
49607
49608 COND_PLATFORM_WIN32_1="#"
49609 if test "x$PLATFORM_WIN32" = "x1" ; then
49610 COND_PLATFORM_WIN32_1=""
49611 fi
49612
49613 COND_SHARED_0="#"
49614 if test "x$SHARED" = "x0" ; then
49615 COND_SHARED_0=""
49616 fi
49617
083508af
MW
49618 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
49619 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
49620 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
49621 fi
49622
49623 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
49624 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49625 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
49626 fi
49627
49628 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
49629 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
49630 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
49631 fi
49632
a848cd7e
SC
49633 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
49634 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49635 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
49636 fi
49637
49638 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49639 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49640 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49641 fi
49642
49643 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49644 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49645 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49646 fi
49647
49648 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49649 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49650 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49651 fi
49652
083508af
MW
49653 COND_SHARED_0_USE_XRC_1="#"
49654 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49655 COND_SHARED_0_USE_XRC_1=""
49656 fi
49657
a848cd7e
SC
49658 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
49659 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
49660 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
49661 fi
49662
49663 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
49664 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
49665 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
49666 fi
49667
49668 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
49669 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
49670 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
49671 fi
49672
49673 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
49674 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
49675 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
49676 fi
49677
49678 COND_SHARED_1="#"
49679 if test "x$SHARED" = "x1" ; then
49680 COND_SHARED_1=""
49681 fi
49682
49683 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
49684 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49685 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
49686 fi
49687
083508af
MW
49688 COND_SHARED_1_USE_XRC_1="#"
49689 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49690 COND_SHARED_1_USE_XRC_1=""
49691 fi
49692
a30f955f
VS
49693 COND_TOOLKIT_="#"
49694 if test "x$TOOLKIT" = "x" ; then
49695 COND_TOOLKIT_=""
49696 fi
49697
a848cd7e
SC
49698 COND_TOOLKIT_COCOA="#"
49699 if test "x$TOOLKIT" = "xCOCOA" ; then
49700 COND_TOOLKIT_COCOA=""
49701 fi
49702
a49baeab
DE
49703 COND_TOOLKIT_COCOA_USE_GUI_1="#"
49704 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
49705 COND_TOOLKIT_COCOA_USE_GUI_1=""
49706 fi
49707
a848cd7e
SC
49708 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
49709 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49710 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
49711 fi
49712
b3c86150
VS
49713 COND_TOOLKIT_DFB="#"
49714 if test "x$TOOLKIT" = "xDFB" ; then
49715 COND_TOOLKIT_DFB=""
49716 fi
49717
49718 COND_TOOLKIT_DFB_USE_GUI_1="#"
49719 if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
49720 COND_TOOLKIT_DFB_USE_GUI_1=""
49721 fi
49722
a848cd7e
SC
49723 COND_TOOLKIT_GTK="#"
49724 if test "x$TOOLKIT" = "xGTK" ; then
49725 COND_TOOLKIT_GTK=""
49726 fi
49727
d044deea
MW
49728 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
49729 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
49730 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
49731 fi
49732
49733 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
49734 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
49735 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
49736 fi
49737
49738 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
49739 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
49740 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
49741 fi
49742
49743 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
49744 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49745 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
49746 fi
49747
49748 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
49749 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
49750 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
49751 fi
49752
49753 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
49754 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49755 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
49756 fi
49757
a848cd7e
SC
49758 COND_TOOLKIT_GTK_USE_GUI_1="#"
49759 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
49760 COND_TOOLKIT_GTK_USE_GUI_1=""
49761 fi
49762
a848cd7e
SC
49763 COND_TOOLKIT_MAC="#"
49764 if test "x$TOOLKIT" = "xMAC" ; then
49765 COND_TOOLKIT_MAC=""
49766 fi
49767
49768 COND_TOOLKIT_MAC_USE_GUI_1="#"
49769 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49770 COND_TOOLKIT_MAC_USE_GUI_1=""
49771 fi
49772
49773 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
49774 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49775 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
49776 fi
49777
49778 COND_TOOLKIT_MGL="#"
49779 if test "x$TOOLKIT" = "xMGL" ; then
49780 COND_TOOLKIT_MGL=""
49781 fi
49782
49783 COND_TOOLKIT_MGL_USE_GUI_1="#"
49784 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
49785 COND_TOOLKIT_MGL_USE_GUI_1=""
49786 fi
49787
49788 COND_TOOLKIT_MOTIF="#"
49789 if test "x$TOOLKIT" = "xMOTIF" ; then
49790 COND_TOOLKIT_MOTIF=""
49791 fi
49792
49793 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
49794 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
49795 COND_TOOLKIT_MOTIF_USE_GUI_1=""
49796 fi
49797
49798 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
49799 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49800 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
49801 fi
49802
49803 COND_TOOLKIT_MSW="#"
49804 if test "x$TOOLKIT" = "xMSW" ; then
49805 COND_TOOLKIT_MSW=""
49806 fi
49807
49808 COND_TOOLKIT_MSW_USE_GUI_1="#"
49809 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
49810 COND_TOOLKIT_MSW_USE_GUI_1=""
49811 fi
49812
49813 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
49814 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49815 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
49816 fi
49817
0ee4059d
DE
49818 COND_TOOLKIT_MSW_WXUNIV_0="#"
49819 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49820 COND_TOOLKIT_MSW_WXUNIV_0=""
49821 fi
49822
a848cd7e
SC
49823 COND_TOOLKIT_PM="#"
49824 if test "x$TOOLKIT" = "xPM" ; then
49825 COND_TOOLKIT_PM=""
49826 fi
49827
49828 COND_TOOLKIT_PM_USE_GUI_1="#"
49829 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
49830 COND_TOOLKIT_PM_USE_GUI_1=""
49831 fi
49832
49833 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
49834 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49835 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
49836 fi
49837
3fd9c298
DE
49838 COND_TOOLKIT_WINCE="#"
49839 if test "x$TOOLKIT" = "xWINCE" ; then
49840 COND_TOOLKIT_WINCE=""
49841 fi
49842
49843 COND_TOOLKIT_WINCE_USE_GUI_1="#"
49844 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
49845 COND_TOOLKIT_WINCE_USE_GUI_1=""
49846 fi
49847
49848 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
49849 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49850 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
49851 fi
49852
0ee4059d
DE
49853 COND_TOOLKIT_WINCE_WXUNIV_0="#"
49854 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
49855 COND_TOOLKIT_WINCE_WXUNIV_0=""
49856 fi
49857
a848cd7e
SC
49858 COND_TOOLKIT_X11="#"
49859 if test "x$TOOLKIT" = "xX11" ; then
49860 COND_TOOLKIT_X11=""
49861 fi
49862
49863 COND_TOOLKIT_X11_USE_GUI_1="#"
49864 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
49865 COND_TOOLKIT_X11_USE_GUI_1=""
49866 fi
49867
49868 COND_UNICODE_1="#"
49869 if test "x$UNICODE" = "x1" ; then
49870 COND_UNICODE_1=""
49871 fi
49872
49873 COND_USE_EXCEPTIONS_0="#"
49874 if test "x$USE_EXCEPTIONS" = "x0" ; then
49875 COND_USE_EXCEPTIONS_0=""
49876 fi
49877
49878 COND_USE_EXCEPTIONS_1="#"
49879 if test "x$USE_EXCEPTIONS" = "x1" ; then
49880 COND_USE_EXCEPTIONS_1=""
49881 fi
49882
49883 COND_USE_GUI_0="#"
49884 if test "x$USE_GUI" = "x0" ; then
49885 COND_USE_GUI_0=""
49886 fi
49887
49888 COND_USE_GUI_1="#"
49889 if test "x$USE_GUI" = "x1" ; then
49890 COND_USE_GUI_1=""
49891 fi
49892
49893 COND_USE_GUI_1_WXUNIV_0="#"
49894 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49895 COND_USE_GUI_1_WXUNIV_0=""
49896 fi
49897
49898 COND_USE_GUI_1_WXUNIV_1="#"
49899 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
49900 COND_USE_GUI_1_WXUNIV_1=""
49901 fi
49902
49903 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49904 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49905 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49906 fi
49907
49908 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49909 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49910 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49911 fi
49912
49913 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49914 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49915 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49916 fi
49917
083508af
MW
49918 COND_USE_ODBC_1="#"
49919 if test "x$USE_ODBC" = "x1" ; then
49920 COND_USE_ODBC_1=""
49921 fi
49922
49923 COND_USE_OPENGL_1="#"
49924 if test "x$USE_OPENGL" = "x1" ; then
49925 COND_USE_OPENGL_1=""
49926 fi
49927
f10e38c4
VZ
49928 COND_USE_PCH_1="#"
49929 if test "x$USE_PCH" = "x1" ; then
49930 COND_USE_PCH_1=""
49931 fi
49932
a848cd7e
SC
49933 COND_USE_PLUGINS_0="#"
49934 if test "x$USE_PLUGINS" = "x0" ; then
49935 COND_USE_PLUGINS_0=""
49936 fi
49937
0b78747f
MW
49938 COND_USE_RTTI_0="#"
49939 if test "x$USE_RTTI" = "x0" ; then
49940 COND_USE_RTTI_0=""
49941 fi
49942
49943 COND_USE_RTTI_1="#"
49944 if test "x$USE_RTTI" = "x1" ; then
49945 COND_USE_RTTI_1=""
49946 fi
49947
a848cd7e
SC
49948 COND_USE_SOSYMLINKS_1="#"
49949 if test "x$USE_SOSYMLINKS" = "x1" ; then
49950 COND_USE_SOSYMLINKS_1=""
49951 fi
49952
eb730a0c
JS
49953 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
49954 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49955 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
49956 fi
49957
a848cd7e
SC
49958 COND_USE_SOVERLINUX_1="#"
49959 if test "x$USE_SOVERLINUX" = "x1" ; then
49960 COND_USE_SOVERLINUX_1=""
49961 fi
49962
49963 COND_USE_SOVERSION_0="#"
49964 if test "x$USE_SOVERSION" = "x0" ; then
49965 COND_USE_SOVERSION_0=""
49966 fi
49967
49968 COND_USE_SOVERSOLARIS_1="#"
49969 if test "x$USE_SOVERSOLARIS" = "x1" ; then
49970 COND_USE_SOVERSOLARIS_1=""
49971 fi
49972
0b78747f
MW
49973 COND_USE_THREADS_0="#"
49974 if test "x$USE_THREADS" = "x0" ; then
49975 COND_USE_THREADS_0=""
49976 fi
49977
49978 COND_USE_THREADS_1="#"
49979 if test "x$USE_THREADS" = "x1" ; then
49980 COND_USE_THREADS_1=""
49981 fi
49982
a13a7f89
RL
49983 COND_USE_XRC_1="#"
49984 if test "x$USE_XRC" = "x1" ; then
49985 COND_USE_XRC_1=""
49986 fi
49987
eb730a0c
JS
49988 COND_WINDOWS_IMPLIB_1="#"
49989 if test "x$WINDOWS_IMPLIB" = "x1" ; then
49990 COND_WINDOWS_IMPLIB_1=""
49991 fi
49992
a848cd7e
SC
49993 COND_WITH_PLUGIN_SDL_1="#"
49994 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
49995 COND_WITH_PLUGIN_SDL_1=""
49996 fi
49997
1e6eb025
VZ
49998 COND_WXUNIV_0="#"
49999 if test "x$WXUNIV" = "x0" ; then
50000 COND_WXUNIV_0=""
50001 fi
50002
a848cd7e
SC
50003 COND_WXUNIV_1="#"
50004 if test "x$WXUNIV" = "x1" ; then
50005 COND_WXUNIV_1=""
50006 fi
50007
50008 COND_WXUSE_EXPAT_BUILTIN="#"
50009 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50010 COND_WXUSE_EXPAT_BUILTIN=""
50011 fi
50012
50013 COND_WXUSE_LIBJPEG_BUILTIN="#"
50014 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50015 COND_WXUSE_LIBJPEG_BUILTIN=""
50016 fi
50017
50018 COND_WXUSE_LIBPNG_BUILTIN="#"
50019 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50020 COND_WXUSE_LIBPNG_BUILTIN=""
50021 fi
50022
50023 COND_WXUSE_LIBTIFF_BUILTIN="#"
50024 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50025 COND_WXUSE_LIBTIFF_BUILTIN=""
50026 fi
50027
50028 COND_WXUSE_ODBC_BUILTIN="#"
50029 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
50030 COND_WXUSE_ODBC_BUILTIN=""
50031 fi
50032
50033 COND_WXUSE_REGEX_BUILTIN="#"
50034 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50035 COND_WXUSE_REGEX_BUILTIN=""
50036 fi
50037
50038 COND_WXUSE_ZLIB_BUILTIN="#"
50039 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50040 COND_WXUSE_ZLIB_BUILTIN=""
50041 fi
50042
50043
50044
810b94f0
MW
50045 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
50046 { { 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
50047echo "$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;}
50048 { (exit 1); exit 1; }; }
50049 fi
50050
2057db16
VS
50051 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
50052 { { 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
50053echo "$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;}
50054 { (exit 1); exit 1; }; }
50055 fi
50056
a848cd7e 50057
a81d5bb6
MW
50058if test $GCC_PCH = 1
50059then
50060 if test "$wx_cv_gcc_pch_bug" = yes; then
50061 { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
50062echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
50063 { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
50064echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
50065 { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
50066echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
50067 fi
50068
50069 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
50070fi
50071
7afc46ab
KO
50072
50073if test "$wxUSE_MAC" = 1 ; then
95768535 50074 if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
7afc46ab
KO
50075 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
50076 mv temp bk-deps
50077 chmod +x bk-deps
50078 fi
50079fi
50080
ceec2216
RL
50081if test "$wxUSE_SHARED" = "yes"; then
50082
50083 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
50084 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
50085
5b674b9d
DE
50086 case "${host}" in
50087 *-pc-os2_emx | *-pc-os2-emx )
50088 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50089 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50090 cp -p ${srcdir}/src/os2/dllnames.sh .
50091 cp -p ${srcdir}/src/os2/dllar.sh .
50092 ;;
50093 esac
ceec2216
RL
50094else
50095
50096 EXE_LINKER="$CXX -o"
50097
50098fi
69120ee4
VZ
50099if test "$wxUSE_OMF" = "yes"; then
50100 case "${host}" in
50101 *-pc-os2_emx | *-pc-os2-emx )
50102 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
50103 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50104 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50105 ;;
50106 esac
50107fi
a848cd7e 50108
5ff751d6 50109WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
50110
50111SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
50112
50113
50114
50115
50116
50117
50118
50119
50120
50121
50122
50123
50124
50125
50126
50127
50128
50129
50130
50131
50132
50133
50134
50135
50136
50137
50138
50139
50140
50141
50142
50143
50144
50145
50146
50147
50148
50149
50150
50151
50152
50153
a848cd7e
SC
50154
50155
50156
50157
50158
50159
50160
50161
50162
50163
50164
50165
a848cd7e
SC
50166
50167
ddd14b14 50168
370d2fd7 50169
8ced02f6 50170
a848cd7e
SC
50171
50172
50173echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50174echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 50175set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
50176if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
50177 echo $ECHO_N "(cached) $ECHO_C" >&6
50178else
50179 cat >conftest.make <<\_ACEOF
50180all:
50181 @echo 'ac_maketemp="$(MAKE)"'
50182_ACEOF
50183# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
50184eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
50185if test -n "$ac_maketemp"; then
50186 eval ac_cv_prog_make_${ac_make}_set=yes
50187else
50188 eval ac_cv_prog_make_${ac_make}_set=no
50189fi
50190rm -f conftest.make
50191fi
50192if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
50193 echo "$as_me:$LINENO: result: yes" >&5
50194echo "${ECHO_T}yes" >&6
50195 SET_MAKE=
50196else
50197 echo "$as_me:$LINENO: result: no" >&5
50198echo "${ECHO_T}no" >&6
50199 SET_MAKE="MAKE=${MAKE-make}"
50200fi
50201
50202
a848cd7e 50203
ceec2216
RL
50204 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
50205
a848cd7e 50206
5c60e845
MW
50207if test "$USE_WIN32" = 1; then
50208 ac_config_commands="$ac_config_commands
50209 rcdefs.h
50210 "
50211
50212fi
50213
ceec2216 50214 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 50215
a848cd7e 50216
ceec2216 50217 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 50218
ceec2216
RL
50219
50220 ac_config_files="$ac_config_files version-script Makefile"
50221
50222
5c60e845 50223 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
50224
50225
9103d280 50226
1c14217d 50227if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
50228if test "$wxUSE_GUI" = "yes"; then
50229 SUBDIRS="samples demos utils contrib"
50230else SUBDIRS="samples utils"
50231fi
50232
50233
50234
50235# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
50236if test "${with_cppunit_prefix+set}" = set; then
50237 withval="$with_cppunit_prefix"
50238 cppunit_config_prefix="$withval"
50239else
50240 cppunit_config_prefix=""
50241fi;
50242
50243# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
50244if test "${with_cppunit_exec_prefix+set}" = set; then
50245 withval="$with_cppunit_exec_prefix"
50246 cppunit_config_exec_prefix="$withval"
50247else
50248 cppunit_config_exec_prefix=""
50249fi;
50250
50251 if test x$cppunit_config_exec_prefix != x ; then
50252 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
50253 if test x${CPPUNIT_CONFIG+set} != xset ; then
50254 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
50255 fi
50256 fi
50257 if test x$cppunit_config_prefix != x ; then
50258 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
50259 if test x${CPPUNIT_CONFIG+set} != xset ; then
50260 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
50261 fi
50262 fi
50263
50264 # Extract the first word of "cppunit-config", so it can be a program name with args.
50265set dummy cppunit-config; ac_word=$2
50266echo "$as_me:$LINENO: checking for $ac_word" >&5
50267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
50268if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
50269 echo $ECHO_N "(cached) $ECHO_C" >&6
50270else
50271 case $CPPUNIT_CONFIG in
50272 [\\/]* | ?:[\\/]*)
50273 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
50274 ;;
50275 *)
50276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50277for as_dir in $PATH
50278do
50279 IFS=$as_save_IFS
50280 test -z "$as_dir" && as_dir=.
50281 for ac_exec_ext in '' $ac_executable_extensions; do
50282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
50283 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
50284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50285 break 2
50286 fi
50287done
50288done
50289
50290 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
50291 ;;
50292esac
50293fi
50294CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
50295
50296if test -n "$CPPUNIT_CONFIG"; then
50297 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
50298echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
50299else
50300 echo "$as_me:$LINENO: result: no" >&5
50301echo "${ECHO_T}no" >&6
50302fi
50303
50304 cppunit_version_min=1.8.0
50305
50306 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
50307echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
50308 no_cppunit=""
50309 if test "$CPPUNIT_CONFIG" = "no" ; then
3ecd9f92
MW
50310 echo "$as_me:$LINENO: result: no" >&5
50311echo "${ECHO_T}no" >&6
a848cd7e
SC
50312 no_cppunit=yes
50313 else
50314 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
50315 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
50316 cppunit_version=`$CPPUNIT_CONFIG --version`
50317
50318 cppunit_major_version=`echo $cppunit_version | \
50319 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50320 cppunit_minor_version=`echo $cppunit_version | \
50321 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50322 cppunit_micro_version=`echo $cppunit_version | \
50323 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50324
50325 cppunit_major_min=`echo $cppunit_version_min | \
50326 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50327 cppunit_minor_min=`echo $cppunit_version_min | \
50328 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50329 cppunit_micro_min=`echo $cppunit_version_min | \
50330 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50331
50332 cppunit_version_proper=`expr \
50333 $cppunit_major_version \> $cppunit_major_min \| \
50334 $cppunit_major_version \= $cppunit_major_min \& \
50335 $cppunit_minor_version \> $cppunit_minor_min \| \
50336 $cppunit_major_version \= $cppunit_major_min \& \
50337 $cppunit_minor_version \= $cppunit_minor_min \& \
50338 $cppunit_micro_version \>= $cppunit_micro_min `
50339
50340 if test "$cppunit_version_proper" = "1" ; then
50341 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
50342echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
50343 else
50344 echo "$as_me:$LINENO: result: no" >&5
50345echo "${ECHO_T}no" >&6
50346 no_cppunit=yes
50347 fi
50348 fi
50349
50350 if test "x$no_cppunit" = x ; then
c2218763 50351 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
50352 else
50353 CPPUNIT_CFLAGS=""
50354 CPPUNIT_LIBS=""
c2218763 50355 :
a848cd7e
SC
50356 fi
50357
50358
50359
50360
50361
50362for subdir in `echo $SUBDIRS`; do
50363 if test -d ${srcdir}/${subdir} ; then
50364 if test "$wxUSE_GUI" = "yes"; then
50365 if test ${subdir} = "samples"; then
50366 makefiles="samples/Makefile.in $makefiles"
50367 for sample in `echo $SAMPLES_SUBDIRS`; do
50368 if test -d $srcdir/samples/$sample; then
50369 makefiles="samples/$sample/Makefile.in $makefiles"
50370 fi
50371 done
9c112555
MW
50372 else
50373 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
50374 eval "disabled=\$$disabled_var"
50375 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
50376 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
50377 fi
50378 else if test ${subdir} = "samples"; then
50379 makefiles="samples/Makefile.in samples/console/Makefile.in"
50380 elif test ${subdir} = "utils"; then
6537ccf8
VS
50381 makefiles=""
50382 for util in HelpGen tex2rtf ; do
50383 if test -d $srcdir/utils/$util ; then
50384 makefiles="utils/$util/Makefile.in \
50385 utils/$util/src/Makefile.in \
50386 $makefiles"
50387 fi
50388 done
a848cd7e
SC
50389 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
50390 fi
50391 fi
50392
50393 for mkin in $makefiles ; do
50394 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
50395 ac_config_files="$ac_config_files $mk"
50396
50397 done
50398 fi
50399done
1c14217d 50400fi
a848cd7e
SC
50401cat >confcache <<\_ACEOF
50402# This file is a shell script that caches the results of configure
50403# tests run on this system so they can be shared between configure
50404# scripts and configure runs, see configure's option --config-cache.
50405# It is not useful on other systems. If it contains results you don't
50406# want to keep, you may remove or edit it.
50407#
50408# config.status only pays attention to the cache file if you give it
50409# the --recheck option to rerun configure.
50410#
50411# `ac_cv_env_foo' variables (set or unset) will be overridden when
50412# loading this file, other *unset* `ac_cv_foo' will be assigned the
50413# following values.
50414
50415_ACEOF
50416
50417# The following way of writing the cache mishandles newlines in values,
50418# but we know of no workaround that is simple, portable, and efficient.
50419# So, don't put newlines in cache variables' values.
50420# Ultrix sh set writes to stderr and can't be redirected directly,
50421# and sets the high bit in the cache file unless we assign to the vars.
50422{
50423 (set) 2>&1 |
50424 case `(ac_space=' '; set | grep ac_space) 2>&1` in
50425 *ac_space=\ *)
50426 # `set' does not quote correctly, so add quotes (double-quote
50427 # substitution turns \\\\ into \\, and sed turns \\ into \).
50428 sed -n \
ac1cb8d3
VS
50429 "s/'/'\\\\''/g;
50430 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
50431 ;;
50432 *)
50433 # `set' quotes correctly as required by POSIX, so do not add quotes.
50434 sed -n \
ac1cb8d3 50435 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
50436 ;;
50437 esac;
50438} |
50439 sed '
50440 t clear
50441 : clear
50442 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
50443 t end
50444 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
50445 : end' >>confcache
50446if diff $cache_file confcache >/dev/null 2>&1; then :; else
50447 if test -w $cache_file; then
50448 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
50449 cat confcache >$cache_file
50450 else
50451 echo "not updating unwritable cache $cache_file"
50452 fi
50453fi
50454rm -f confcache
50455
50456test "x$prefix" = xNONE && prefix=$ac_default_prefix
50457# Let make expand exec_prefix.
50458test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
50459
50460# VPATH may cause trouble with some makes, so we remove $(srcdir),
50461# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
50462# trailing colons and then remove the whole line if VPATH becomes empty
50463# (actually we leave an empty line to preserve line numbers).
50464if test "x$srcdir" = x.; then
ac1cb8d3 50465 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
50466s/:*\$(srcdir):*/:/;
50467s/:*\${srcdir}:*/:/;
50468s/:*@srcdir@:*/:/;
ac1cb8d3 50469s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 50470s/:*$//;
ac1cb8d3 50471s/^[^=]*=[ ]*$//;
a848cd7e
SC
50472}'
50473fi
50474
50475DEFS=-DHAVE_CONFIG_H
50476
50477ac_libobjs=
50478ac_ltlibobjs=
50479for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
50480 # 1. Remove the extension, and $U if already installed.
50481 ac_i=`echo "$ac_i" |
ac1cb8d3 50482 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
50483 # 2. Add them.
50484 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
50485 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
50486done
50487LIBOBJS=$ac_libobjs
50488
50489LTLIBOBJS=$ac_ltlibobjs
50490
50491
50492
50493: ${CONFIG_STATUS=./config.status}
50494ac_clean_files_save=$ac_clean_files
50495ac_clean_files="$ac_clean_files $CONFIG_STATUS"
50496{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
50497echo "$as_me: creating $CONFIG_STATUS" >&6;}
50498cat >$CONFIG_STATUS <<_ACEOF
50499#! $SHELL
50500# Generated by $as_me.
50501# Run this file to recreate the current configuration.
50502# Compiler output produced by configure, useful for debugging
50503# configure, is in config.log if it exists.
50504
50505debug=false
50506ac_cs_recheck=false
50507ac_cs_silent=false
50508SHELL=\${CONFIG_SHELL-$SHELL}
50509_ACEOF
50510
50511cat >>$CONFIG_STATUS <<\_ACEOF
50512## --------------------- ##
50513## M4sh Initialization. ##
50514## --------------------- ##
50515
50516# Be Bourne compatible
50517if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
50518 emulate sh
50519 NULLCMD=:
50520 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
50521 # is contrary to our usage. Disable this feature.
50522 alias -g '${1+"$@"}'='"$@"'
50523elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
50524 set -o posix
50525fi
ac1cb8d3 50526DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
50527
50528# Support unset when possible.
ac1cb8d3 50529if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
50530 as_unset=unset
50531else
50532 as_unset=false
50533fi
50534
50535
50536# Work around bugs in pre-3.0 UWIN ksh.
50537$as_unset ENV MAIL MAILPATH
50538PS1='$ '
50539PS2='> '
50540PS4='+ '
50541
50542# NLS nuisances.
50543for as_var in \
50544 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50545 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50546 LC_TELEPHONE LC_TIME
50547do
ac1cb8d3 50548 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
50549 eval $as_var=C; export $as_var
50550 else
50551 $as_unset $as_var
50552 fi
50553done
50554
50555# Required to use basename.
50556if expr a : '\(a\)' >/dev/null 2>&1; then
50557 as_expr=expr
50558else
50559 as_expr=false
50560fi
50561
50562if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
50563 as_basename=basename
50564else
50565 as_basename=false
50566fi
50567
50568
50569# Name of the executable.
50570as_me=`$as_basename "$0" ||
50571$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
50572 X"$0" : 'X\(//\)$' \| \
50573 X"$0" : 'X\(/\)$' \| \
50574 . : '\(.\)' 2>/dev/null ||
50575echo X/"$0" |
50576 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
50577 /^X\/\(\/\/\)$/{ s//\1/; q; }
50578 /^X\/\(\/\).*/{ s//\1/; q; }
50579 s/.*/./; q'`
50580
50581
50582# PATH needs CR, and LINENO needs CR and PATH.
50583# Avoid depending upon Character Ranges.
50584as_cr_letters='abcdefghijklmnopqrstuvwxyz'
50585as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
50586as_cr_Letters=$as_cr_letters$as_cr_LETTERS
50587as_cr_digits='0123456789'
50588as_cr_alnum=$as_cr_Letters$as_cr_digits
50589
50590# The user is always right.
50591if test "${PATH_SEPARATOR+set}" != set; then
50592 echo "#! /bin/sh" >conf$$.sh
50593 echo "exit 0" >>conf$$.sh
50594 chmod +x conf$$.sh
50595 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50596 PATH_SEPARATOR=';'
50597 else
50598 PATH_SEPARATOR=:
50599 fi
50600 rm -f conf$$.sh
50601fi
50602
50603
50604 as_lineno_1=$LINENO
50605 as_lineno_2=$LINENO
50606 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50607 test "x$as_lineno_1" != "x$as_lineno_2" &&
50608 test "x$as_lineno_3" = "x$as_lineno_2" || {
50609 # Find who we are. Look in the path if we contain no path at all
50610 # relative or not.
50611 case $0 in
50612 *[\\/]* ) as_myself=$0 ;;
50613 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50614for as_dir in $PATH
50615do
50616 IFS=$as_save_IFS
50617 test -z "$as_dir" && as_dir=.
50618 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
50619done
50620
50621 ;;
50622 esac
50623 # We did not find ourselves, most probably we were run as `sh COMMAND'
50624 # in which case we are not to be found in the path.
50625 if test "x$as_myself" = x; then
50626 as_myself=$0
50627 fi
50628 if test ! -f "$as_myself"; then
50629 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
50630echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
50631 { (exit 1); exit 1; }; }
50632 fi
50633 case $CONFIG_SHELL in
50634 '')
50635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50636for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
50637do
50638 IFS=$as_save_IFS
50639 test -z "$as_dir" && as_dir=.
50640 for as_base in sh bash ksh sh5; do
50641 case $as_dir in
50642 /*)
50643 if ("$as_dir/$as_base" -c '
50644 as_lineno_1=$LINENO
50645 as_lineno_2=$LINENO
50646 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50647 test "x$as_lineno_1" != "x$as_lineno_2" &&
50648 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
50649 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
50650 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
50651 CONFIG_SHELL=$as_dir/$as_base
50652 export CONFIG_SHELL
50653 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
50654 fi;;
50655 esac
50656 done
50657done
50658;;
50659 esac
50660
50661 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
50662 # uniformly replaced by the line number. The first 'sed' inserts a
50663 # line-number line before each line; the second 'sed' does the real
50664 # work. The second script uses 'N' to pair each line-number line
50665 # with the numbered line, and appends trailing '-' during
50666 # substitution so that $LINENO is not a special case at line end.
50667 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
50668 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
50669 sed '=' <$as_myself |
50670 sed '
50671 N
50672 s,$,-,
50673 : loop
50674 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
50675 t loop
50676 s,-$,,
50677 s,^['$as_cr_digits']*\n,,
50678 ' >$as_me.lineno &&
50679 chmod +x $as_me.lineno ||
50680 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
50681echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
50682 { (exit 1); exit 1; }; }
50683
50684 # Don't try to exec as it changes $[0], causing all sort of problems
50685 # (the dirname of $[0] is not the place where we might find the
50686 # original and so on. Autoconf is especially sensible to this).
50687 . ./$as_me.lineno
50688 # Exit status is that of the last command.
50689 exit
50690}
50691
50692
50693case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
50694 *c*,-n*) ECHO_N= ECHO_C='
50695' ECHO_T=' ' ;;
50696 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
50697 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
50698esac
50699
50700if expr a : '\(a\)' >/dev/null 2>&1; then
50701 as_expr=expr
50702else
50703 as_expr=false
50704fi
50705
50706rm -f conf$$ conf$$.exe conf$$.file
50707echo >conf$$.file
50708if ln -s conf$$.file conf$$ 2>/dev/null; then
50709 # We could just check for DJGPP; but this test a) works b) is more generic
50710 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
50711 if test -f conf$$.exe; then
50712 # Don't use ln at all; we don't have any links
50713 as_ln_s='cp -p'
50714 else
50715 as_ln_s='ln -s'
50716 fi
50717elif ln conf$$.file conf$$ 2>/dev/null; then
50718 as_ln_s=ln
50719else
50720 as_ln_s='cp -p'
50721fi
50722rm -f conf$$ conf$$.exe conf$$.file
50723
50724if mkdir -p . 2>/dev/null; then
50725 as_mkdir_p=:
50726else
ac1cb8d3 50727 test -d ./-p && rmdir ./-p
a848cd7e
SC
50728 as_mkdir_p=false
50729fi
50730
50731as_executable_p="test -f"
50732
50733# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 50734as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
50735
50736# Sed expression to map a string onto a valid variable name.
ac1cb8d3 50737as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
50738
50739
50740# IFS
50741# We need space, tab and new line, in precisely that order.
50742as_nl='
50743'
50744IFS=" $as_nl"
50745
50746# CDPATH.
50747$as_unset CDPATH
50748
50749exec 6>&1
50750
50751# Open the log real soon, to keep \$[0] and so on meaningful, and to
50752# report actual input values of CONFIG_FILES etc. instead of their
50753# values after options handling. Logging --version etc. is OK.
50754exec 5>>config.log
50755{
50756 echo
50757 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
50758## Running $as_me. ##
50759_ASBOX
50760} >&5
50761cat >&5 <<_CSEOF
50762
f1e3914f 50763This file was extended by wxWidgets $as_me 2.7.1, which was
ac1cb8d3 50764generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
50765
50766 CONFIG_FILES = $CONFIG_FILES
50767 CONFIG_HEADERS = $CONFIG_HEADERS
50768 CONFIG_LINKS = $CONFIG_LINKS
50769 CONFIG_COMMANDS = $CONFIG_COMMANDS
50770 $ $0 $@
50771
50772_CSEOF
50773echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
50774echo >&5
50775_ACEOF
50776
50777# Files that config.status was made for.
50778if test -n "$ac_config_files"; then
50779 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
50780fi
50781
50782if test -n "$ac_config_headers"; then
50783 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
50784fi
50785
50786if test -n "$ac_config_links"; then
50787 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
50788fi
50789
50790if test -n "$ac_config_commands"; then
50791 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
50792fi
50793
50794cat >>$CONFIG_STATUS <<\_ACEOF
50795
50796ac_cs_usage="\
50797\`$as_me' instantiates files from templates according to the
50798current configuration.
50799
50800Usage: $0 [OPTIONS] [FILE]...
50801
50802 -h, --help print this help, then exit
50803 -V, --version print version number, then exit
50804 -q, --quiet do not print progress messages
50805 -d, --debug don't remove temporary files
50806 --recheck update $as_me by reconfiguring in the same conditions
50807 --file=FILE[:TEMPLATE]
ac1cb8d3 50808 instantiate the configuration file FILE
a848cd7e 50809 --header=FILE[:TEMPLATE]
ac1cb8d3 50810 instantiate the configuration header FILE
a848cd7e
SC
50811
50812Configuration files:
50813$config_files
50814
50815Configuration headers:
50816$config_headers
50817
50818Configuration commands:
50819$config_commands
50820
50821Report bugs to <bug-autoconf@gnu.org>."
50822_ACEOF
50823
50824cat >>$CONFIG_STATUS <<_ACEOF
50825ac_cs_version="\\
f1e3914f 50826wxWidgets config.status 2.7.1
ac1cb8d3 50827configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
50828 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
50829
ac1cb8d3 50830Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
50831This config.status script is free software; the Free Software Foundation
50832gives unlimited permission to copy, distribute and modify it."
50833srcdir=$srcdir
50834INSTALL="$INSTALL"
50835_ACEOF
50836
50837cat >>$CONFIG_STATUS <<\_ACEOF
50838# If no file are specified by the user, then we need to provide default
50839# value. By we need to know if files were specified by the user.
50840ac_need_defaults=:
50841while test $# != 0
50842do
50843 case $1 in
50844 --*=*)
50845 ac_option=`expr "x$1" : 'x\([^=]*\)='`
50846 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
50847 ac_shift=:
50848 ;;
50849 -*)
50850 ac_option=$1
50851 ac_optarg=$2
50852 ac_shift=shift
50853 ;;
50854 *) # This is not an option, so the user has probably given explicit
50855 # arguments.
50856 ac_option=$1
50857 ac_need_defaults=false;;
50858 esac
50859
50860 case $ac_option in
50861 # Handling of the options.
50862_ACEOF
50863cat >>$CONFIG_STATUS <<\_ACEOF
50864 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
50865 ac_cs_recheck=: ;;
50866 --version | --vers* | -V )
50867 echo "$ac_cs_version"; exit 0 ;;
50868 --he | --h)
50869 # Conflict between --help and --header
50870 { { echo "$as_me:$LINENO: error: ambiguous option: $1
50871Try \`$0 --help' for more information." >&5
50872echo "$as_me: error: ambiguous option: $1
50873Try \`$0 --help' for more information." >&2;}
50874 { (exit 1); exit 1; }; };;
50875 --help | --hel | -h )
50876 echo "$ac_cs_usage"; exit 0 ;;
50877 --debug | --d* | -d )
50878 debug=: ;;
50879 --file | --fil | --fi | --f )
50880 $ac_shift
50881 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
50882 ac_need_defaults=false;;
50883 --header | --heade | --head | --hea )
50884 $ac_shift
50885 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
50886 ac_need_defaults=false;;
50887 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
50888 | -silent | --silent | --silen | --sile | --sil | --si | --s)
50889 ac_cs_silent=: ;;
50890
50891 # This is an error.
50892 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
50893Try \`$0 --help' for more information." >&5
50894echo "$as_me: error: unrecognized option: $1
50895Try \`$0 --help' for more information." >&2;}
50896 { (exit 1); exit 1; }; } ;;
50897
50898 *) ac_config_targets="$ac_config_targets $1" ;;
50899
50900 esac
50901 shift
50902done
50903
50904ac_configure_extra_args=
50905
50906if $ac_cs_silent; then
50907 exec 6>/dev/null
50908 ac_configure_extra_args="$ac_configure_extra_args --silent"
50909fi
50910
50911_ACEOF
50912cat >>$CONFIG_STATUS <<_ACEOF
50913if \$ac_cs_recheck; then
50914 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
50915 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
50916fi
50917
50918_ACEOF
50919
50920cat >>$CONFIG_STATUS <<_ACEOF
50921#
50922# INIT-COMMANDS section.
50923#
50924
5c60e845
MW
50925
50926 CPP="$CPP"
50927 infile="$srcdir/include/wx/msw/genrcdefs.h"
50928 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
50929
50930
ceec2216
RL
50931 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50932 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50933 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50934 LN_S="${LN_S}"
a848cd7e
SC
50935
50936
50937_ACEOF
50938
50939
50940
50941cat >>$CONFIG_STATUS <<\_ACEOF
50942for ac_config_target in $ac_config_targets
50943do
50944 case "$ac_config_target" in
50945 # Handling of arguments.
ceec2216
RL
50946 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
50947 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
50948 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
50949 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
50950 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 50951 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
50952 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
50953 "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
50954 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
50955echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
50956 { (exit 1); exit 1; }; };;
50957 esac
50958done
50959
50960# If the user did not use the arguments to specify the items to instantiate,
50961# then the envvar interface is used. Set only those that are not.
50962# We use the long form for the default assignment because of an extremely
50963# bizarre bug on SunOS 4.1.3.
50964if $ac_need_defaults; then
50965 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
50966 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
50967 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
50968fi
50969
50970# Have a temporary directory for convenience. Make it in the build tree
50971# simply because there is no reason to put it here, and in addition,
50972# creating and moving files from /tmp can sometimes cause problems.
50973# Create a temporary directory, and hook for its removal unless debugging.
50974$debug ||
50975{
50976 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
50977 trap '{ (exit 1); exit 1; }' 1 2 13 15
50978}
50979
50980# Create a (secure) tmp directory for tmp files.
50981
50982{
50983 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
50984 test -n "$tmp" && test -d "$tmp"
50985} ||
50986{
50987 tmp=./confstat$$-$RANDOM
50988 (umask 077 && mkdir $tmp)
50989} ||
50990{
50991 echo "$me: cannot create a temporary directory in ." >&2
50992 { (exit 1); exit 1; }
50993}
50994
50995_ACEOF
50996
50997cat >>$CONFIG_STATUS <<_ACEOF
50998
50999#
51000# CONFIG_FILES section.
51001#
51002
51003# No need to generate the scripts if there are no CONFIG_FILES.
51004# This happens for instance when ./config.status config.h
51005if test -n "\$CONFIG_FILES"; then
51006 # Protect against being on the right side of a sed subst in config.status.
51007 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
51008 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
51009s,@SHELL@,$SHELL,;t t
51010s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
51011s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
51012s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
51013s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
51014s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
51015s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
51016s,@exec_prefix@,$exec_prefix,;t t
51017s,@prefix@,$prefix,;t t
51018s,@program_transform_name@,$program_transform_name,;t t
51019s,@bindir@,$bindir,;t t
51020s,@sbindir@,$sbindir,;t t
51021s,@libexecdir@,$libexecdir,;t t
51022s,@datadir@,$datadir,;t t
51023s,@sysconfdir@,$sysconfdir,;t t
51024s,@sharedstatedir@,$sharedstatedir,;t t
51025s,@localstatedir@,$localstatedir,;t t
51026s,@libdir@,$libdir,;t t
51027s,@includedir@,$includedir,;t t
51028s,@oldincludedir@,$oldincludedir,;t t
51029s,@infodir@,$infodir,;t t
51030s,@mandir@,$mandir,;t t
51031s,@build_alias@,$build_alias,;t t
51032s,@host_alias@,$host_alias,;t t
51033s,@target_alias@,$target_alias,;t t
51034s,@DEFS@,$DEFS,;t t
51035s,@ECHO_C@,$ECHO_C,;t t
51036s,@ECHO_N@,$ECHO_N,;t t
51037s,@ECHO_T@,$ECHO_T,;t t
51038s,@LIBS@,$LIBS,;t t
51039s,@build@,$build,;t t
51040s,@build_cpu@,$build_cpu,;t t
51041s,@build_vendor@,$build_vendor,;t t
51042s,@build_os@,$build_os,;t t
51043s,@host@,$host,;t t
51044s,@host_cpu@,$host_cpu,;t t
51045s,@host_vendor@,$host_vendor,;t t
51046s,@host_os@,$host_os,;t t
51047s,@target@,$target,;t t
51048s,@target_cpu@,$target_cpu,;t t
51049s,@target_vendor@,$target_vendor,;t t
51050s,@target_os@,$target_os,;t t
51051s,@CC@,$CC,;t t
51052s,@CFLAGS@,$CFLAGS,;t t
51053s,@LDFLAGS@,$LDFLAGS,;t t
51054s,@CPPFLAGS@,$CPPFLAGS,;t t
51055s,@ac_ct_CC@,$ac_ct_CC,;t t
51056s,@EXEEXT@,$EXEEXT,;t t
51057s,@OBJEXT@,$OBJEXT,;t t
51058s,@CPP@,$CPP,;t t
51059s,@EGREP@,$EGREP,;t t
51060s,@CXX@,$CXX,;t t
51061s,@CXXFLAGS@,$CXXFLAGS,;t t
51062s,@ac_ct_CXX@,$ac_ct_CXX,;t t
51063s,@RANLIB@,$RANLIB,;t t
51064s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
51065s,@AR@,$AR,;t t
8c80d384 51066s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
51067s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
51068s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
51069s,@INSTALL_DATA@,$INSTALL_DATA,;t t
51070s,@STRIP@,$STRIP,;t t
8c80d384 51071s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
51072s,@WINDRES@,$WINDRES,;t t
51073s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
51074s,@DLLTOOL@,$DLLTOOL,;t t
51075s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
51076s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
51077s,@LN_S@,$LN_S,;t t
51078s,@CXXCPP@,$CXXCPP,;t t
51079s,@subdirs@,$subdirs,;t t
51080s,@PKG_CONFIG@,$PKG_CONFIG,;t t
51081s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
51082s,@GTK_LIBS@,$GTK_LIBS,;t t
51083s,@GTK_CONFIG@,$GTK_CONFIG,;t t
b3c86150
VS
51084s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
51085s,@DIRECTFB_CFLAGS@,$DIRECTFB_CFLAGS,;t t
51086s,@DIRECTFB_LIBS@,$DIRECTFB_LIBS,;t t
a848cd7e
SC
51087s,@X_CFLAGS@,$X_CFLAGS,;t t
51088s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
51089s,@X_LIBS@,$X_LIBS,;t t
51090s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
51091s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
51092s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
51093s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
51094s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
51095s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
51096s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 51097s,@REZ@,$REZ,;t t
a848cd7e
SC
51098s,@DEREZ@,$DEREZ,;t t
51099s,@SETFILE@,$SETFILE,;t t
51100s,@LIBICONV@,$LIBICONV,;t t
51101s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
51102s,@SDL_CONFIG@,$SDL_CONFIG,;t t
51103s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
51104s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
51105s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
51106s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
2b850ae1
RR
51107s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
51108s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
3565d135
RR
51109s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
51110s,@HILDON_LIBS@,$HILDON_LIBS,;t t
64b75e64
RD
51111s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
51112s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
f10e38c4
VZ
51113s,@GST_CFLAGS@,$GST_CFLAGS,;t t
51114s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
51115s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
51116s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
51117s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
51118s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
51119s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
51120s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
51121s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
51122s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
51123s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
51124s,@VENDOR@,$VENDOR,;t t
51125s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
51126s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
51127s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
51128s,@WXUNIV@,$WXUNIV,;t t
51129s,@MONOLITHIC@,$MONOLITHIC,;t t
51130s,@USE_PLUGINS@,$USE_PLUGINS,;t t
51131s,@EXTRALIBS@,$EXTRALIBS,;t t
51132s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
51133s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
51134s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
51135s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
51136s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
51137s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
51138s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 51139s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
2b850ae1 51140s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
3565d135 51141s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
51142s,@UNICODE@,$UNICODE,;t t
51143s,@BUILD@,$BUILD,;t t
51144s,@DEBUG_INFO@,$DEBUG_INFO,;t t
51145s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
51146s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
51147s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
51148s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
51149s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
51150s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
51151s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
51152s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
51153s,@SET_MAKE@,$SET_MAKE,;t t
51154s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
51155s,@NM@,$NM,;t t
51156s,@ac_ct_NM@,$ac_ct_NM,;t t
51157s,@INSTALL_DIR@,$INSTALL_DIR,;t t
51158s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
51159s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
51160s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
51161s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
51162s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 51163s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
51164s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
51165s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 51166s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
51167s,@SO_SUFFIX@,$SO_SUFFIX,;t t
51168s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
51169s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
51170s,@LIBPREFIX@,$LIBPREFIX,;t t
51171s,@LIBEXT@,$LIBEXT,;t t
51172s,@DLLPREFIX@,$DLLPREFIX,;t t
51173s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 51174s,@dlldir@,$dlldir,;t t
a848cd7e
SC
51175s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
51176s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
51177s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
51178s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
51179s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
51180s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 51181s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
51182s,@USE_SOVERSION@,$USE_SOVERSION,;t t
51183s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
51184s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 51185s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
51186s,@USE_MACVERSION@,$USE_MACVERSION,;t t
51187s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
51188s,@SONAME_FLAG@,$SONAME_FLAG,;t t
51189s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
51190s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 51191s,@ICC_PCH@,$ICC_PCH,;t t
a848cd7e
SC
51192s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
51193s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
51194s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
51195s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
51196s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
51197s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
51198s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
51199s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
51200s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
51201s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
51202s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
51203s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
51204s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
51205s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
51206s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 51207s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
51208s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
51209s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
3f60522a 51210s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
a848cd7e 51211s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 51212s,@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 51213s,@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 51214s,@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 51215s,@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 51216s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8b6682b9 51217s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
ceec2216 51218s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e 51219s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
3f60522a 51220s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
a848cd7e 51221s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 51222s,@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 51223s,@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 51224s,@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 51225s,@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 51226s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
8b6682b9 51227s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
ceec2216 51228s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 51229s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
51230s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
51231s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
51232s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
51233s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
51234s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
51235s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 51236s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
51237s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
51238s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 51239s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
51240s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
51241s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
51242s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 51243s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 51244s,@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
51245s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
51246s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
51247s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
51248s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 51249s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 51250s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 51251s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 51252s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
51253s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
51254s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
51255s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
51256s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
51257s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
51258s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
51259s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
51260s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
51261s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
51262s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
51263s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
51264s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
51265s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
51266s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
51267s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 51268s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
51269s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
51270s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
51271s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
51272s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
51273s,@COND_SHARED_1@,$COND_SHARED_1,;t t
51274s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 51275s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 51276s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 51277s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 51278s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e 51279s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
b3c86150
VS
51280s,@COND_TOOLKIT_DFB@,$COND_TOOLKIT_DFB,;t t
51281s,@COND_TOOLKIT_DFB_USE_GUI_1@,$COND_TOOLKIT_DFB_USE_GUI_1,;t t
a848cd7e 51282s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
51283s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
51284s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
51285s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
51286s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
51287s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
51288s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 51289s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
51290s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
51291s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
51292s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
51293s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
51294s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
51295s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
51296s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
51297s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
51298s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
51299s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
51300s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 51301s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
51302s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
51303s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
51304s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
51305s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
51306s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
51307s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 51308s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
51309s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
51310s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
51311s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
51312s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
51313s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
51314s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
51315s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
51316s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
51317s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
51318s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
51319s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
51320s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
51321s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
51322s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 51323s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 51324s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
51325s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
51326s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 51327s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 51328s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
51329s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
51330s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
51331s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
51332s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
51333s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 51334s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 51335s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 51336s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 51337s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
51338s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
51339s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
51340s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
51341s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
51342s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
51343s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
51344s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
51345s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 51346s,@SHARED@,$SHARED,;t t
a848cd7e
SC
51347s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
51348s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
51349s,@USE_GUI@,$USE_GUI,;t t
51350s,@AFMINSTALL@,$AFMINSTALL,;t t
51351s,@WIN32INSTALL@,$WIN32INSTALL,;t t
51352s,@TOOLKIT@,$TOOLKIT,;t t
51353s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 51354s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 51355s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 51356s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
51357s,@WIDGET_SET@,$WIDGET_SET,;t t
51358s,@WX_RELEASE@,$WX_RELEASE,;t t
51359s,@WX_VERSION@,$WX_VERSION,;t t
51360s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
51361s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
51362s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
51363s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
51364s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
51365s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
51366s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
51367s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
51368s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 51369s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 51370s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 51371s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
51372s,@DISTDIR@,$DISTDIR,;t t
51373s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
51374s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
51375s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
51376s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
51377s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 51378s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
51379s,@RESFLAGS@,$RESFLAGS,;t t
51380s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
51381s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
51382s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
51383s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 51384s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 51385s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 51386s,@GCC@,$GCC,;t t
a848cd7e
SC
51387s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
51388s,@LIBOBJS@,$LIBOBJS,;t t
51389s,@LTLIBOBJS@,$LTLIBOBJS,;t t
51390CEOF
51391
51392_ACEOF
51393
51394 cat >>$CONFIG_STATUS <<\_ACEOF
51395 # Split the substitutions into bite-sized pieces for seds with
51396 # small command number limits, like on Digital OSF/1 and HP-UX.
51397 ac_max_sed_lines=48
51398 ac_sed_frag=1 # Number of current file.
51399 ac_beg=1 # First line for current file.
51400 ac_end=$ac_max_sed_lines # Line after last line for current file.
51401 ac_more_lines=:
51402 ac_sed_cmds=
51403 while $ac_more_lines; do
51404 if test $ac_beg -gt 1; then
51405 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51406 else
51407 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51408 fi
51409 if test ! -s $tmp/subs.frag; then
51410 ac_more_lines=false
51411 else
51412 # The purpose of the label and of the branching condition is to
51413 # speed up the sed processing (if there are no `@' at all, there
51414 # is no need to browse any of the substitutions).
51415 # These are the two extra sed commands mentioned above.
51416 (echo ':t
51417 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
51418 if test -z "$ac_sed_cmds"; then
ac1cb8d3 51419 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 51420 else
ac1cb8d3 51421 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
51422 fi
51423 ac_sed_frag=`expr $ac_sed_frag + 1`
51424 ac_beg=$ac_end
51425 ac_end=`expr $ac_end + $ac_max_sed_lines`
51426 fi
51427 done
51428 if test -z "$ac_sed_cmds"; then
51429 ac_sed_cmds=cat
51430 fi
51431fi # test -n "$CONFIG_FILES"
51432
51433_ACEOF
51434cat >>$CONFIG_STATUS <<\_ACEOF
51435for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
51436 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51437 case $ac_file in
51438 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
51439 cat >$tmp/stdin
51440 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51441 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 51442 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 51443 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
51444 * ) ac_file_in=$ac_file.in ;;
51445 esac
51446
51447 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
51448 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51449$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51450 X"$ac_file" : 'X\(//\)[^/]' \| \
51451 X"$ac_file" : 'X\(//\)$' \| \
51452 X"$ac_file" : 'X\(/\)' \| \
51453 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51454echo X"$ac_file" |
51455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51456 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51457 /^X\(\/\/\)$/{ s//\1/; q; }
51458 /^X\(\/\).*/{ s//\1/; q; }
51459 s/.*/./; q'`
51460 { if $as_mkdir_p; then
51461 mkdir -p "$ac_dir"
51462 else
51463 as_dir="$ac_dir"
51464 as_dirs=
51465 while test ! -d "$as_dir"; do
51466 as_dirs="$as_dir $as_dirs"
51467 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51468$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51469 X"$as_dir" : 'X\(//\)[^/]' \| \
51470 X"$as_dir" : 'X\(//\)$' \| \
51471 X"$as_dir" : 'X\(/\)' \| \
51472 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51473echo X"$as_dir" |
51474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51475 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51476 /^X\(\/\/\)$/{ s//\1/; q; }
51477 /^X\(\/\).*/{ s//\1/; q; }
51478 s/.*/./; q'`
51479 done
51480 test ! -n "$as_dirs" || mkdir $as_dirs
51481 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51482echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51483 { (exit 1); exit 1; }; }; }
51484
51485 ac_builddir=.
51486
51487if test "$ac_dir" != .; then
51488 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51489 # A "../" for each directory in $ac_dir_suffix.
51490 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51491else
51492 ac_dir_suffix= ac_top_builddir=
51493fi
51494
51495case $srcdir in
51496 .) # No --srcdir option. We are building in place.
51497 ac_srcdir=.
51498 if test -z "$ac_top_builddir"; then
51499 ac_top_srcdir=.
51500 else
51501 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51502 fi ;;
51503 [\\/]* | ?:[\\/]* ) # Absolute path.
51504 ac_srcdir=$srcdir$ac_dir_suffix;
51505 ac_top_srcdir=$srcdir ;;
51506 *) # Relative path.
51507 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51508 ac_top_srcdir=$ac_top_builddir$srcdir ;;
51509esac
ac1cb8d3
VS
51510
51511# Do not use `cd foo && pwd` to compute absolute paths, because
51512# the directories may not exist.
51513case `pwd` in
51514.) ac_abs_builddir="$ac_dir";;
51515*)
51516 case "$ac_dir" in
51517 .) ac_abs_builddir=`pwd`;;
51518 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51519 *) ac_abs_builddir=`pwd`/"$ac_dir";;
51520 esac;;
51521esac
51522case $ac_abs_builddir in
51523.) ac_abs_top_builddir=${ac_top_builddir}.;;
51524*)
51525 case ${ac_top_builddir}. in
51526 .) ac_abs_top_builddir=$ac_abs_builddir;;
51527 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51528 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51529 esac;;
51530esac
51531case $ac_abs_builddir in
51532.) ac_abs_srcdir=$ac_srcdir;;
51533*)
51534 case $ac_srcdir in
51535 .) ac_abs_srcdir=$ac_abs_builddir;;
51536 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51537 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51538 esac;;
51539esac
51540case $ac_abs_builddir in
51541.) ac_abs_top_srcdir=$ac_top_srcdir;;
51542*)
51543 case $ac_top_srcdir in
51544 .) ac_abs_top_srcdir=$ac_abs_builddir;;
51545 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51546 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51547 esac;;
51548esac
a848cd7e
SC
51549
51550
51551 case $INSTALL in
51552 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
51553 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
51554 esac
51555
a848cd7e
SC
51556 # Let's still pretend it is `configure' which instantiates (i.e., don't
51557 # use $as_me), people would be surprised to read:
51558 # /* config.h. Generated by config.status. */
51559 if test x"$ac_file" = x-; then
51560 configure_input=
51561 else
51562 configure_input="$ac_file. "
51563 fi
51564 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 51565 sed 's,.*/,,'` by configure."
a848cd7e
SC
51566
51567 # First look for the input files in the build tree, otherwise in the
51568 # src tree.
51569 ac_file_inputs=`IFS=:
51570 for f in $ac_file_in; do
51571 case $f in
51572 -) echo $tmp/stdin ;;
51573 [\\/$]*)
ac1cb8d3
VS
51574 # Absolute (can't be DOS-style, as IFS=:)
51575 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51576echo "$as_me: error: cannot find input file: $f" >&2;}
51577 { (exit 1); exit 1; }; }
ac1cb8d3 51578 echo "$f";;
a848cd7e 51579 *) # Relative
ac1cb8d3
VS
51580 if test -f "$f"; then
51581 # Build tree
51582 echo "$f"
51583 elif test -f "$srcdir/$f"; then
51584 # Source tree
51585 echo "$srcdir/$f"
51586 else
51587 # /dev/null tree
51588 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51589echo "$as_me: error: cannot find input file: $f" >&2;}
51590 { (exit 1); exit 1; }; }
ac1cb8d3 51591 fi;;
a848cd7e
SC
51592 esac
51593 done` || { (exit 1); exit 1; }
479c790c
VZ
51594
51595 if test x"$ac_file" != x-; then
51596 { echo "$as_me:$LINENO: creating $ac_file" >&5
51597echo "$as_me: creating $ac_file" >&6;}
51598 rm -f "$ac_file"
51599 fi
a848cd7e
SC
51600_ACEOF
51601cat >>$CONFIG_STATUS <<_ACEOF
51602 sed "$ac_vpsub
51603$extrasub
51604_ACEOF
51605cat >>$CONFIG_STATUS <<\_ACEOF
51606:t
51607/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51608s,@configure_input@,$configure_input,;t t
51609s,@srcdir@,$ac_srcdir,;t t
51610s,@abs_srcdir@,$ac_abs_srcdir,;t t
51611s,@top_srcdir@,$ac_top_srcdir,;t t
51612s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
51613s,@builddir@,$ac_builddir,;t t
51614s,@abs_builddir@,$ac_abs_builddir,;t t
51615s,@top_builddir@,$ac_top_builddir,;t t
51616s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
51617s,@INSTALL@,$ac_INSTALL,;t t
51618" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
51619 rm -f $tmp/stdin
51620 if test x"$ac_file" != x-; then
51621 mv $tmp/out $ac_file
51622 else
51623 cat $tmp/out
51624 rm -f $tmp/out
51625 fi
51626
ceec2216
RL
51627 # Run the commands associated with the file.
51628 case $ac_file in
51629 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
51630 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
51631 esac
a848cd7e
SC
51632done
51633_ACEOF
51634cat >>$CONFIG_STATUS <<\_ACEOF
51635
51636#
51637# CONFIG_HEADER section.
51638#
51639
51640# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
51641# NAME is the cpp macro being defined and VALUE is the value it is being given.
51642#
51643# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
51644ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
51645ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
51646ac_dC=' '
51647ac_dD=',;t'
51648# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 51649ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
51650ac_uB='$,\1#\2define\3'
51651ac_uC=' '
51652ac_uD=',;t'
51653
51654for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
51655 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51656 case $ac_file in
51657 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
51658 cat >$tmp/stdin
51659 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51660 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 51661 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 51662 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
51663 * ) ac_file_in=$ac_file.in ;;
51664 esac
51665
51666 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
51667echo "$as_me: creating $ac_file" >&6;}
51668
51669 # First look for the input files in the build tree, otherwise in the
51670 # src tree.
51671 ac_file_inputs=`IFS=:
51672 for f in $ac_file_in; do
51673 case $f in
51674 -) echo $tmp/stdin ;;
51675 [\\/$]*)
ac1cb8d3
VS
51676 # Absolute (can't be DOS-style, as IFS=:)
51677 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51678echo "$as_me: error: cannot find input file: $f" >&2;}
51679 { (exit 1); exit 1; }; }
ac1cb8d3
VS
51680 # Do quote $f, to prevent DOS paths from being IFS'd.
51681 echo "$f";;
a848cd7e 51682 *) # Relative
ac1cb8d3
VS
51683 if test -f "$f"; then
51684 # Build tree
51685 echo "$f"
51686 elif test -f "$srcdir/$f"; then
51687 # Source tree
51688 echo "$srcdir/$f"
51689 else
51690 # /dev/null tree
51691 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51692echo "$as_me: error: cannot find input file: $f" >&2;}
51693 { (exit 1); exit 1; }; }
ac1cb8d3 51694 fi;;
a848cd7e
SC
51695 esac
51696 done` || { (exit 1); exit 1; }
51697 # Remove the trailing spaces.
ac1cb8d3 51698 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
51699
51700_ACEOF
51701
51702# Transform confdefs.h into two sed scripts, `conftest.defines' and
51703# `conftest.undefs', that substitutes the proper values into
51704# config.h.in to produce config.h. The first handles `#define'
51705# templates, and the second `#undef' templates.
51706# And first: Protect against being on the right side of a sed subst in
51707# config.status. Protect against being in an unquoted here document
51708# in config.status.
51709rm -f conftest.defines conftest.undefs
51710# Using a here document instead of a string reduces the quoting nightmare.
51711# Putting comments in sed scripts is not portable.
51712#
51713# `end' is used to avoid that the second main sed command (meant for
51714# 0-ary CPP macros) applies to n-ary macro definitions.
51715# See the Autoconf documentation for `clear'.
51716cat >confdef2sed.sed <<\_ACEOF
51717s/[\\&,]/\\&/g
51718s,[\\$`],\\&,g
51719t clear
51720: clear
ac1cb8d3 51721s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 51722t end
ac1cb8d3 51723s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
51724: end
51725_ACEOF
51726# If some macros were called several times there might be several times
51727# the same #defines, which is useless. Nevertheless, we may not want to
51728# sort them, since we want the *last* AC-DEFINE to be honored.
51729uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
51730sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
51731rm -f confdef2sed.sed
51732
51733# This sed command replaces #undef with comments. This is necessary, for
51734# example, in the case of _POSIX_SOURCE, which is predefined and required
51735# on some systems where configure will not decide to define it.
51736cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 51737s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
51738_ACEOF
51739
51740# Break up conftest.defines because some shells have a limit on the size
51741# of here documents, and old seds have small limits too (100 cmds).
51742echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 51743echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
51744echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
51745echo ' :' >>$CONFIG_STATUS
51746rm -f conftest.tail
51747while grep . conftest.defines >/dev/null
51748do
51749 # Write a limited-size here document to $tmp/defines.sed.
51750 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
51751 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 51752 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
51753 # Work around the forget-to-reset-the-flag bug.
51754 echo 't clr' >>$CONFIG_STATUS
51755 echo ': clr' >>$CONFIG_STATUS
51756 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
51757 echo 'CEOF
51758 sed -f $tmp/defines.sed $tmp/in >$tmp/out
51759 rm -f $tmp/in
51760 mv $tmp/out $tmp/in
51761' >>$CONFIG_STATUS
51762 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
51763 rm -f conftest.defines
51764 mv conftest.tail conftest.defines
51765done
51766rm -f conftest.defines
51767echo ' fi # grep' >>$CONFIG_STATUS
51768echo >>$CONFIG_STATUS
51769
51770# Break up conftest.undefs because some shells have a limit on the size
51771# of here documents, and old seds have small limits too (100 cmds).
51772echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
51773rm -f conftest.tail
51774while grep . conftest.undefs >/dev/null
51775do
51776 # Write a limited-size here document to $tmp/undefs.sed.
51777 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
51778 # Speed up: don't consider the non `#undef'
ac1cb8d3 51779 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
51780 # Work around the forget-to-reset-the-flag bug.
51781 echo 't clr' >>$CONFIG_STATUS
51782 echo ': clr' >>$CONFIG_STATUS
51783 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
51784 echo 'CEOF
51785 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
51786 rm -f $tmp/in
51787 mv $tmp/out $tmp/in
51788' >>$CONFIG_STATUS
51789 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
51790 rm -f conftest.undefs
51791 mv conftest.tail conftest.undefs
51792done
51793rm -f conftest.undefs
51794
51795cat >>$CONFIG_STATUS <<\_ACEOF
51796 # Let's still pretend it is `configure' which instantiates (i.e., don't
51797 # use $as_me), people would be surprised to read:
51798 # /* config.h. Generated by config.status. */
51799 if test x"$ac_file" = x-; then
51800 echo "/* Generated by configure. */" >$tmp/config.h
51801 else
51802 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
51803 fi
51804 cat $tmp/in >>$tmp/config.h
51805 rm -f $tmp/in
51806 if test x"$ac_file" != x-; then
51807 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
51808 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
51809echo "$as_me: $ac_file is unchanged" >&6;}
51810 else
51811 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51812$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51813 X"$ac_file" : 'X\(//\)[^/]' \| \
51814 X"$ac_file" : 'X\(//\)$' \| \
51815 X"$ac_file" : 'X\(/\)' \| \
51816 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51817echo X"$ac_file" |
51818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51819 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51820 /^X\(\/\/\)$/{ s//\1/; q; }
51821 /^X\(\/\).*/{ s//\1/; q; }
51822 s/.*/./; q'`
51823 { if $as_mkdir_p; then
51824 mkdir -p "$ac_dir"
51825 else
51826 as_dir="$ac_dir"
51827 as_dirs=
51828 while test ! -d "$as_dir"; do
51829 as_dirs="$as_dir $as_dirs"
51830 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51831$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51832 X"$as_dir" : 'X\(//\)[^/]' \| \
51833 X"$as_dir" : 'X\(//\)$' \| \
51834 X"$as_dir" : 'X\(/\)' \| \
51835 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51836echo X"$as_dir" |
51837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51838 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51839 /^X\(\/\/\)$/{ s//\1/; q; }
51840 /^X\(\/\).*/{ s//\1/; q; }
51841 s/.*/./; q'`
51842 done
51843 test ! -n "$as_dirs" || mkdir $as_dirs
51844 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51845echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51846 { (exit 1); exit 1; }; }; }
51847
51848 rm -f $ac_file
51849 mv $tmp/config.h $ac_file
51850 fi
51851 else
51852 cat $tmp/config.h
51853 rm -f $tmp/config.h
51854 fi
51855done
51856_ACEOF
51857cat >>$CONFIG_STATUS <<\_ACEOF
51858
51859#
51860# CONFIG_COMMANDS section.
51861#
51862for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
51863 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
51864 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
51865 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
51866$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51867 X"$ac_dest" : 'X\(//\)[^/]' \| \
51868 X"$ac_dest" : 'X\(//\)$' \| \
51869 X"$ac_dest" : 'X\(/\)' \| \
51870 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51871echo X"$ac_dest" |
51872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51874 /^X\(\/\/\)$/{ s//\1/; q; }
51875 /^X\(\/\).*/{ s//\1/; q; }
51876 s/.*/./; q'`
ac1cb8d3
VS
51877 { if $as_mkdir_p; then
51878 mkdir -p "$ac_dir"
51879 else
51880 as_dir="$ac_dir"
51881 as_dirs=
51882 while test ! -d "$as_dir"; do
51883 as_dirs="$as_dir $as_dirs"
51884 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51885$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51886 X"$as_dir" : 'X\(//\)[^/]' \| \
51887 X"$as_dir" : 'X\(//\)$' \| \
51888 X"$as_dir" : 'X\(/\)' \| \
51889 . : '\(.\)' 2>/dev/null ||
51890echo X"$as_dir" |
51891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51892 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51893 /^X\(\/\/\)$/{ s//\1/; q; }
51894 /^X\(\/\).*/{ s//\1/; q; }
51895 s/.*/./; q'`
51896 done
51897 test ! -n "$as_dirs" || mkdir $as_dirs
51898 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51899echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51900 { (exit 1); exit 1; }; }; }
51901
a848cd7e
SC
51902 ac_builddir=.
51903
51904if test "$ac_dir" != .; then
51905 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51906 # A "../" for each directory in $ac_dir_suffix.
51907 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51908else
51909 ac_dir_suffix= ac_top_builddir=
51910fi
51911
51912case $srcdir in
51913 .) # No --srcdir option. We are building in place.
51914 ac_srcdir=.
51915 if test -z "$ac_top_builddir"; then
51916 ac_top_srcdir=.
51917 else
51918 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51919 fi ;;
51920 [\\/]* | ?:[\\/]* ) # Absolute path.
51921 ac_srcdir=$srcdir$ac_dir_suffix;
51922 ac_top_srcdir=$srcdir ;;
51923 *) # Relative path.
51924 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51925 ac_top_srcdir=$ac_top_builddir$srcdir ;;
51926esac
ac1cb8d3
VS
51927
51928# Do not use `cd foo && pwd` to compute absolute paths, because
51929# the directories may not exist.
51930case `pwd` in
51931.) ac_abs_builddir="$ac_dir";;
51932*)
51933 case "$ac_dir" in
51934 .) ac_abs_builddir=`pwd`;;
51935 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51936 *) ac_abs_builddir=`pwd`/"$ac_dir";;
51937 esac;;
51938esac
51939case $ac_abs_builddir in
51940.) ac_abs_top_builddir=${ac_top_builddir}.;;
51941*)
51942 case ${ac_top_builddir}. in
51943 .) ac_abs_top_builddir=$ac_abs_builddir;;
51944 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51945 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51946 esac;;
51947esac
51948case $ac_abs_builddir in
51949.) ac_abs_srcdir=$ac_srcdir;;
51950*)
51951 case $ac_srcdir in
51952 .) ac_abs_srcdir=$ac_abs_builddir;;
51953 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51954 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51955 esac;;
51956esac
51957case $ac_abs_builddir in
51958.) ac_abs_top_srcdir=$ac_top_srcdir;;
51959*)
51960 case $ac_top_srcdir in
51961 .) ac_abs_top_srcdir=$ac_abs_builddir;;
51962 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51963 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51964 esac;;
51965esac
a848cd7e
SC
51966
51967
51968 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
51969echo "$as_me: executing $ac_dest commands" >&6;}
51970 case $ac_dest in
5c60e845
MW
51971 rcdefs.h )
51972 mkdir -p $outdir &&
51973 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
51974 ;;
ceec2216
RL
51975 wx-config ) rm -f wx-config
51976 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
51977 ;;
a848cd7e
SC
51978 esac
51979done
51980_ACEOF
51981
51982cat >>$CONFIG_STATUS <<\_ACEOF
51983
51984{ (exit 0); exit 0; }
51985_ACEOF
51986chmod +x $CONFIG_STATUS
51987ac_clean_files=$ac_clean_files_save
51988
51989
51990# configure is writing to config.log, and then calls config.status.
51991# config.status does its own redirection, appending to config.log.
51992# Unfortunately, on DOS this fails, as config.log is still kept open
51993# by configure, so config.status won't be able to write to it; its
51994# output is simply discarded. So we exec the FD to /dev/null,
51995# effectively closing config.log, so it can be properly (re)opened and
51996# appended to by config.status. When coming back to configure, we
51997# need to make the FD available again.
51998if test "$no_create" != yes; then
51999 ac_cs_success=:
52000 ac_config_status_args=
52001 test "$silent" = yes &&
52002 ac_config_status_args="$ac_config_status_args --quiet"
52003 exec 5>/dev/null
52004 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52005 exec 5>>config.log
52006 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52007 # would make configure fail if this is the last instruction.
52008 $ac_cs_success || { (exit 1); exit 1; }
52009fi
52010
52011#
52012# CONFIG_SUBDIRS section.
52013#
52014if test "$no_recursion" != yes; then
52015
52016 # Remove --cache-file and --srcdir arguments so they do not pile up.
52017 ac_sub_configure_args=
52018 ac_prev=
52019 for ac_arg in $ac_configure_args; do
52020 if test -n "$ac_prev"; then
52021 ac_prev=
52022 continue
52023 fi
52024 case $ac_arg in
52025 -cache-file | --cache-file | --cache-fil | --cache-fi \
52026 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
52027 ac_prev=cache_file ;;
52028 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
52029 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
52030 | --c=*)
52031 ;;
52032 --config-cache | -C)
52033 ;;
52034 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
52035 ac_prev=srcdir ;;
52036 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
52037 ;;
52038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
52039 ac_prev=prefix ;;
52040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
52041 ;;
52042 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
52043 esac
52044 done
52045
52046 # Always prepend --prefix to ensure using the same prefix
52047 # in subdir configurations.
52048 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
52049
52050 ac_popdir=`pwd`
52051 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
52052
52053 # Do not complain, so a configure script can configure whichever
52054 # parts of a large source tree are present.
52055 test -d $srcdir/$ac_dir || continue
52056
52057 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
52058echo "$as_me: configuring in $ac_dir" >&6;}
52059 { if $as_mkdir_p; then
52060 mkdir -p "$ac_dir"
52061 else
52062 as_dir="$ac_dir"
52063 as_dirs=
52064 while test ! -d "$as_dir"; do
52065 as_dirs="$as_dir $as_dirs"
52066 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52067$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52068 X"$as_dir" : 'X\(//\)[^/]' \| \
52069 X"$as_dir" : 'X\(//\)$' \| \
52070 X"$as_dir" : 'X\(/\)' \| \
52071 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
52072echo X"$as_dir" |
52073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52074 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52075 /^X\(\/\/\)$/{ s//\1/; q; }
52076 /^X\(\/\).*/{ s//\1/; q; }
52077 s/.*/./; q'`
52078 done
52079 test ! -n "$as_dirs" || mkdir $as_dirs
52080 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52081echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52082 { (exit 1); exit 1; }; }; }
52083
52084 ac_builddir=.
52085
52086if test "$ac_dir" != .; then
52087 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52088 # A "../" for each directory in $ac_dir_suffix.
52089 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52090else
52091 ac_dir_suffix= ac_top_builddir=
52092fi
52093
52094case $srcdir in
52095 .) # No --srcdir option. We are building in place.
52096 ac_srcdir=.
52097 if test -z "$ac_top_builddir"; then
52098 ac_top_srcdir=.
52099 else
52100 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52101 fi ;;
52102 [\\/]* | ?:[\\/]* ) # Absolute path.
52103 ac_srcdir=$srcdir$ac_dir_suffix;
52104 ac_top_srcdir=$srcdir ;;
52105 *) # Relative path.
52106 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52107 ac_top_srcdir=$ac_top_builddir$srcdir ;;
52108esac
ac1cb8d3
VS
52109
52110# Do not use `cd foo && pwd` to compute absolute paths, because
52111# the directories may not exist.
52112case `pwd` in
52113.) ac_abs_builddir="$ac_dir";;
52114*)
52115 case "$ac_dir" in
52116 .) ac_abs_builddir=`pwd`;;
52117 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52118 *) ac_abs_builddir=`pwd`/"$ac_dir";;
52119 esac;;
52120esac
52121case $ac_abs_builddir in
52122.) ac_abs_top_builddir=${ac_top_builddir}.;;
52123*)
52124 case ${ac_top_builddir}. in
52125 .) ac_abs_top_builddir=$ac_abs_builddir;;
52126 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52127 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52128 esac;;
52129esac
52130case $ac_abs_builddir in
52131.) ac_abs_srcdir=$ac_srcdir;;
52132*)
52133 case $ac_srcdir in
52134 .) ac_abs_srcdir=$ac_abs_builddir;;
52135 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52136 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52137 esac;;
52138esac
52139case $ac_abs_builddir in
52140.) ac_abs_top_srcdir=$ac_top_srcdir;;
52141*)
52142 case $ac_top_srcdir in
52143 .) ac_abs_top_srcdir=$ac_abs_builddir;;
52144 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52145 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52146 esac;;
52147esac
a848cd7e
SC
52148
52149
52150 cd $ac_dir
52151
52152 # Check for guested configure; otherwise get Cygnus style configure.
52153 if test -f $ac_srcdir/configure.gnu; then
52154 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
52155 elif test -f $ac_srcdir/configure; then
52156 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
52157 elif test -f $ac_srcdir/configure.in; then
52158 ac_sub_configure=$ac_configure
52159 else
52160 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
52161echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
52162 ac_sub_configure=
52163 fi
52164
52165 # The recursion is here.
52166 if test -n "$ac_sub_configure"; then
52167 # Make the cache file name correct relative to the subdirectory.
52168 case $cache_file in
52169 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
52170 *) # Relative path.
ac1cb8d3 52171 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
52172 esac
52173
52174 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
52175echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
52176 # The eval makes quoting arguments work.
52177 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
52178 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
52179 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
52180echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
52181 { (exit 1); exit 1; }; }
52182 fi
52183
479c790c 52184 cd "$ac_popdir"
a848cd7e
SC
52185 done
52186fi
52187
52188
52189echo
77ffb593 52190echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 52191echo ""
c2e9ada4 52192echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_DESC}"
77ffb593 52193echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 52194
77ffb593
JS
52195echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
52196echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
52197echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 52198
77ffb593 52199echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
52200echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
52201echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 52202
77ffb593 52203echo " Which libraries should wxWidgets use?"
a848cd7e
SC
52204echo " jpeg ${wxUSE_LIBJPEG-none}"
52205echo " png ${wxUSE_LIBPNG-none}"
52206echo " regex ${wxUSE_REGEX}"
52207echo " tiff ${wxUSE_LIBTIFF-none}"
52208if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
52209echo " xpm ${wxUSE_LIBXPM-none}"
52210fi
52211echo " zlib ${wxUSE_ZLIB}"
52212echo " odbc ${wxUSE_ODBC}"
52213echo " expat ${wxUSE_EXPAT}"
52214echo " libmspack ${wxUSE_LIBMSPACK}"
52215echo " sdl ${wxUSE_LIBSDL}"
52216
52217echo ""
52218