]> git.saurik.com Git - wxWidgets.git/blame - configure
blit implemented using dc.GetAsBitmap with subrect
[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
26e422a9 998 --enable-fs_archive use virtual archive filesystems
a848cd7e
SC
999 --enable-fs_inet use virtual HTTP/FTP filesystems
1000 --enable-fs_zip use virtual ZIP filesystems
1001 --enable-geometry use geometry class
1002 --enable-log use logging system
1003 --enable-longlong use wxLongLong class
1004 --enable-mimetype use wxMimeTypesManager
1005 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
1006 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 1007 --enable-std_iostreams use standard C++ stream classes
59746b65 1008 --enable-std_string use standard C++ string classes
07158944 1009 --enable-stdpaths use wxStandardPaths class
a848cd7e 1010 --enable-stopwatch use wxStopWatch class
07158944 1011 --enable-streams use wxStream etc classes
a848cd7e 1012 --enable-sysoptions use wxSystemOptions
26e422a9 1013 --enable-tarstream use wxTar streams
a848cd7e
SC
1014 --enable-textbuf use wxTextBuffer class
1015 --enable-textfile use wxTextFile class
1016 --enable-timer use wxTimer class
1017 --enable-unicode compile wxString with Unicode support
1018 --enable-sound use wxSound class
3b57de8b 1019 --enable-mediactrl use wxMediaCtrl class
15291213 1020 --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
8b6682b9 1021 --enable-printfposparam use wxVsnprintf() which supports positional parameters
81f90336 1022 --enable-zipstream use wxZip streams
a848cd7e 1023 --enable-url use wxURL class
ca5c6ac3 1024 --enable-variant use wxVariant class
a848cd7e
SC
1025 --enable-protocol use wxProtocol class
1026 --enable-protocol-http HTTP support in wxProtocol
1027 --enable-protocol-ftp FTP support in wxProtocol
1028 --enable-protocol-file FILE support in wxProtocol
1029 --enable-threads use threads
1030 --enable-docview use document view architecture
1031 --enable-help use help subsystem
1032 --enable-mshtmlhelp use MS HTML Help (win32)
1033 --enable-html use wxHTML sub-library
1034 --enable-htmlhelp use wxHTML-based help
9a8f0513 1035 --enable-xrc use XRC resources sub-library
3f60522a 1036 --enable-aui use AUI docking library
a848cd7e
SC
1037 --enable-constraints use layout-constraints system
1038 --enable-printarch use printing architecture
1039 --enable-mdi use multiple document interface architecture
8a7b1113 1040 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
1041 --enable-loggui use standard GUI logger
1042 --enable-logwin use wxLogWindow
1043 --enable-logdialog use wxLogDialog
646b6ec1 1044 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 1045 --enable-richtext use wxRichTextCtrl
f43426c1 1046 --enable-graphics_ctx use graphics context 2D drawing API
a848cd7e
SC
1047 --enable-postscript use wxPostscriptDC device context (default for gtk+)
1048 --enable-prologio not available; see contrib
1049 --enable-resources not available; see contrib
1050 --enable-clipboard use wxClipboard class
1051 --enable-dnd use Drag'n'Drop classes
1052 --enable-metafile use win32 metafiles
1053 --enable-controls use all usual controls
1054 --enable-accel use accelerators
3ea50042 1055 --enable-animatectrl use wxAnimationCtrl class
a848cd7e
SC
1056 --enable-button use wxButton class
1057 --enable-bmpbutton use wxBitmapButton class
95a46303 1058 --enable-bmpcombobox use wxBitmapComboBox class
a848cd7e
SC
1059 --enable-calendar use wxCalendarCtrl class
1060 --enable-caret use wxCaret class
1061 --enable-checkbox use wxCheckBox class
1062 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
1063 --enable-choice use wxChoice class
92bbdbcd 1064 --enable-choicebook use wxChoicebook class
e9263684 1065 --enable-colourpicker use wxColourPickerCtrl class
a848cd7e 1066 --enable-combobox use wxComboBox class
a57d600f 1067 --enable-comboctrl use wxComboCtrl class
da98e9be 1068 --enable-datepick use wxDatePickerCtrl class
e9263684 1069 --enable-dirpicker use wxDirPickerCtrl class
a848cd7e 1070 --enable-display use wxDisplay class
88bbc332 1071 --enable-detect_sm use code to detect X11 session manager
e9263684
VZ
1072 --enable-filepicker use wxFilePickerCtrl class
1073 --enable-fontpicker use wxFontPickerCtrl class
a848cd7e
SC
1074 --enable-gauge use wxGauge class
1075 --enable-grid use wxGrid class
20e34ecc 1076 --enable-dataviewctrl, use wxDataViewCtrl class
6954625c 1077 --enable-hyperlink use wxHyperlinkCtrl class
a848cd7e
SC
1078 --enable-imaglist use wxImageList class
1079 --enable-listbook use wxListbook class
1080 --enable-listbox use wxListBox class
1081 --enable-listctrl use wxListCtrl class
1082 --enable-notebook use wxNotebook class
a57d600f 1083 --enable-odcombobox use wxOwnerDrawnComboBox class
a848cd7e
SC
1084 --enable-radiobox use wxRadioBox class
1085 --enable-radiobtn use wxRadioButton class
1086 --enable-sash use wxSashWindow class
1087 --enable-scrollbar use wxScrollBar class and scrollable windows
1088 --enable-slider use wxSlider class
1089 --enable-spinbtn use wxSpinButton class
1090 --enable-spinctrl use wxSpinCtrl class
1091 --enable-splitter use wxSplitterWindow class
1092 --enable-statbmp use wxStaticBitmap class
1093 --enable-statbox use wxStaticBox class
1094 --enable-statline use wxStaticLine class
1095 --enable-stattext use wxStaticText class
1096 --enable-statusbar use wxStatusBar class
1097 --enable-tabdialog use wxTabControl class
1098 --enable-textctrl use wxTextCtrl class
1099 --enable-togglebtn use wxToggleButton class
1100 --enable-toolbar use wxToolBar class
1101 --enable-tbarnative use native wxToolBar class
0093c2fc 1102 --enable-treebook use wxTreebook class
5ec3bc43 1103 --enable-toolbook use wxToolbook class
a848cd7e
SC
1104 --enable-treectrl use wxTreeCtrl class
1105 --enable-tipwindow use wxTipWindow class
1106 --enable-popupwin use wxPopUpWindow class
1107 --enable-commondlg use all common dialogs
319c5ed4 1108 --enable-aboutdlg use wxAboutBox
a848cd7e
SC
1109 --enable-choicedlg use wxChoiceDialog
1110 --enable-coldlg use wxColourDialog
1111 --enable-filedlg use wxFileDialog
1112 --enable-finddlg use wxFindReplaceDialog
1113 --enable-fontdlg use wxFontDialog
1114 --enable-dirdlg use wxDirDialog
1115 --enable-msgdlg use wxMessageDialog
1116 --enable-numberdlg use wxNumberEntryDialog
1117 --enable-splash use wxSplashScreen
1118 --enable-textdlg use wxTextDialog
1119 --enable-tipdlg use startup tips
1120 --enable-progressdlg use wxProgressDialog
1121 --enable-wizarddlg use wxWizard
1122 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1123 --enable-miniframe use wxMiniFrame class
1124 --enable-tooltips use wxToolTip class
1125 --enable-splines use spline drawing code
fbe2ca43 1126 --enable-mousewheel use mousewheel
a848cd7e
SC
1127 --enable-validators use wxValidator and derived classes
1128 --enable-busyinfo use wxBusyInfo
4cb1d3da 1129 --enable-joystick use wxJoystick
38b4a946 1130 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1131 --enable-dragimage use wxDragImage
1132 --enable-accessibility enable accessibility support
38b4a946 1133 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1134 --enable-palette use wxPalette class
1135 --enable-image use wxImage class
1136 --enable-gif use gif images (GIF file format)
1137 --enable-pcx use pcx images (PCX file format)
1138 --enable-iff use iff images (IFF file format)
1139 --enable-pnm use pnm images (PNM file format)
1140 --enable-xpm use xpm images (XPM file format)
1141 --enable-icocur use Windows ICO and CUR formats
77ffb593 1142 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1143 --enable-vendor=VENDOR vendor name (win32 DLL only)
1144 --disable-largefile omit support for large files
1145 --disable-gtktest do not try to compile and run a test GTK+ program
1146 --disable-gtktest Do not try to compile and run a test GTK program
1147 --disable-sdltest Do not try to compile and run a test SDL program
1148 --enable-omf use OMF object format (OS/2)
f10e38c4
VZ
1149 --disable-dependency-tracking
1150 don't use dependency tracking even if the compiler
1151 can
ebee3cd0
VS
1152 --disable-precomp-headers
1153 don't use precompiled headers even if compiler can
a848cd7e
SC
1154
1155Optional Packages:
1156 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1157 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1158 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1159 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1160 --with-motif use Motif/Lesstif
1161 --with-mac use Mac OS X
1162 --with-cocoa use Cocoa
1163 --with-wine use Wine
1164 --with-msw use MS-Windows
1165 --with-pm use OS/2 Presentation Manager
1166 --with-mgl use SciTech MGL
b3c86150 1167 --with-directfb use DirectFB
a848cd7e
SC
1168 --with-microwin use MicroWindows
1169 --with-x11 use X11
1170 --with-libpng use libpng (PNG image format)
1171 --with-libjpeg use libjpeg (JPEG file format)
1172 --with-libtiff use libtiff (TIFF file format)
1173 --with-libxpm use libxpm (XPM file format)
1174 --with-libmspack use libmspack (CHM help files loading)
1175 --with-sdl use SDL for audio on Unix
2b850ae1
RR
1176 --with-gnomeprint use GNOME print for printing under GNOME
1177 --with-gnomevfs use GNOME VFS for associating MIME types
3565d135 1178 --with-hildon use Hildon framework for Nokia 770
a848cd7e 1179 --with-opengl use OpenGL (or Mesa)
4353a8df 1180 --with-themes=all|list use only the specified comma-separated list of wxUniversal themes
a848cd7e
SC
1181 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1182 --with-regex enable support for wxRegEx class
1183 --with-zlib use zlib for LZW compression
1184 --with-odbc use the IODBC and wxODBC classes
1185 --with-expat enable XML support using expat parser
ceec2216 1186 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1187 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1188 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1189 --with-x use the X Window System
1190 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1191 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1192 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1193 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1194 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1195
1196Some influential environment variables:
dcc1b6ad
VS
1197 CC C compiler command
1198 CFLAGS C compiler flags
1199 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1200 nonstandard directory <lib dir>
1201 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1202 headers in a nonstandard directory <include dir>
1203 CPP C preprocessor
1204 CXX C++ compiler command
1205 CXXFLAGS C++ compiler flags
1206 CXXCPP C++ preprocessor
3ecd9f92 1207 PKG_CONFIG path to pkg-config utility
b3c86150
VS
1208 DIRECTFB_CFLAGS
1209 C compiler flags for DIRECTFB, overriding pkg-config
1210 DIRECTFB_LIBS
1211 linker flags for DIRECTFB, overriding pkg-config
3ecd9f92
MW
1212 PANGOX_CFLAGS
1213 C compiler flags for PANGOX, overriding pkg-config
1214 PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1215 PANGOFT2_CFLAGS
1216 C compiler flags for PANGOFT2, overriding pkg-config
1217 PANGOFT2_LIBS
1218 linker flags for PANGOFT2, overriding pkg-config
1219 PANGOXFT_CFLAGS
1220 C compiler flags for PANGOXFT, overriding pkg-config
1221 PANGOXFT_LIBS
1222 linker flags for PANGOXFT, overriding pkg-config
1223 LIBGNOMEPRINTUI_CFLAGS
1224 C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1225 LIBGNOMEPRINTUI_LIBS
1226 linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1227 GNOMEVFS_CFLAGS
1228 C compiler flags for GNOMEVFS, overriding pkg-config
1229 GNOMEVFS_LIBS
1230 linker flags for GNOMEVFS, overriding pkg-config
1231 HILDON_CFLAGS
1232 C compiler flags for HILDON, overriding pkg-config
1233 HILDON_LIBS linker flags for HILDON, overriding pkg-config
64b75e64
RD
1234 CAIRO_CFLAGS
1235 C compiler flags for CAIRO, overriding pkg-config
1236 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
3ecd9f92
MW
1237 GST_CFLAGS C compiler flags for GST, overriding pkg-config
1238 GST_LIBS linker flags for GST, overriding pkg-config
a848cd7e
SC
1239
1240Use these variables to override the choices made by `configure' or to help
1241it to find libraries and programs with nonstandard names/locations.
1242
77ffb593 1243Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1244_ACEOF
1245fi
1246
1247if test "$ac_init_help" = "recursive"; then
1248 # If there are subdirs, report their specific --help.
1249 ac_popdir=`pwd`
1250 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1251 test -d $ac_dir || continue
1252 ac_builddir=.
1253
1254if test "$ac_dir" != .; then
1255 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1256 # A "../" for each directory in $ac_dir_suffix.
1257 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1258else
1259 ac_dir_suffix= ac_top_builddir=
1260fi
1261
1262case $srcdir in
1263 .) # No --srcdir option. We are building in place.
1264 ac_srcdir=.
1265 if test -z "$ac_top_builddir"; then
1266 ac_top_srcdir=.
1267 else
1268 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1269 fi ;;
1270 [\\/]* | ?:[\\/]* ) # Absolute path.
1271 ac_srcdir=$srcdir$ac_dir_suffix;
1272 ac_top_srcdir=$srcdir ;;
1273 *) # Relative path.
1274 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1275 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1276esac
ac1cb8d3
VS
1277
1278# Do not use `cd foo && pwd` to compute absolute paths, because
1279# the directories may not exist.
1280case `pwd` in
1281.) ac_abs_builddir="$ac_dir";;
1282*)
1283 case "$ac_dir" in
1284 .) ac_abs_builddir=`pwd`;;
1285 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1286 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1287 esac;;
1288esac
1289case $ac_abs_builddir in
1290.) ac_abs_top_builddir=${ac_top_builddir}.;;
1291*)
1292 case ${ac_top_builddir}. in
1293 .) ac_abs_top_builddir=$ac_abs_builddir;;
1294 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1295 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1296 esac;;
1297esac
1298case $ac_abs_builddir in
1299.) ac_abs_srcdir=$ac_srcdir;;
1300*)
1301 case $ac_srcdir in
1302 .) ac_abs_srcdir=$ac_abs_builddir;;
1303 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1304 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1305 esac;;
1306esac
1307case $ac_abs_builddir in
1308.) ac_abs_top_srcdir=$ac_top_srcdir;;
1309*)
1310 case $ac_top_srcdir in
1311 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1312 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1313 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1314 esac;;
1315esac
a848cd7e
SC
1316
1317 cd $ac_dir
1318 # Check for guested configure; otherwise get Cygnus style configure.
1319 if test -f $ac_srcdir/configure.gnu; then
1320 echo
1321 $SHELL $ac_srcdir/configure.gnu --help=recursive
1322 elif test -f $ac_srcdir/configure; then
1323 echo
1324 $SHELL $ac_srcdir/configure --help=recursive
1325 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1326 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1327 echo
1328 $ac_configure --help
1329 else
1330 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1331 fi
479c790c 1332 cd "$ac_popdir"
a848cd7e
SC
1333 done
1334fi
1335
1336test -n "$ac_init_help" && exit 0
1337if $ac_init_version; then
1338 cat <<\_ACEOF
f1e3914f 1339wxWidgets configure 2.7.1
ac1cb8d3 1340generated by GNU Autoconf 2.59
a848cd7e 1341
ac1cb8d3 1342Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1343This configure script is free software; the Free Software Foundation
1344gives unlimited permission to copy, distribute and modify it.
1345_ACEOF
1346 exit 0
1347fi
1348exec 5>config.log
1349cat >&5 <<_ACEOF
1350This file contains any messages produced by compilers while
1351running configure, to aid debugging if configure makes a mistake.
1352
f1e3914f 1353It was created by wxWidgets $as_me 2.7.1, which was
ac1cb8d3 1354generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1355
1356 $ $0 $@
1357
1358_ACEOF
1359{
1360cat <<_ASUNAME
1361## --------- ##
1362## Platform. ##
1363## --------- ##
1364
1365hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1366uname -m = `(uname -m) 2>/dev/null || echo unknown`
1367uname -r = `(uname -r) 2>/dev/null || echo unknown`
1368uname -s = `(uname -s) 2>/dev/null || echo unknown`
1369uname -v = `(uname -v) 2>/dev/null || echo unknown`
1370
1371/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1372/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1373
1374/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1375/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1376/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1377hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1378/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1379/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1380/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1381
1382_ASUNAME
1383
1384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1385for as_dir in $PATH
1386do
1387 IFS=$as_save_IFS
1388 test -z "$as_dir" && as_dir=.
1389 echo "PATH: $as_dir"
1390done
1391
1392} >&5
1393
1394cat >&5 <<_ACEOF
1395
1396
1397## ----------- ##
1398## Core tests. ##
1399## ----------- ##
1400
1401_ACEOF
1402
1403
1404# Keep a trace of the command line.
1405# Strip out --no-create and --no-recursion so they do not pile up.
1406# Strip out --silent because we don't want to record it for future runs.
1407# Also quote any args containing shell meta-characters.
1408# Make two passes to allow for proper duplicate-argument suppression.
1409ac_configure_args=
1410ac_configure_args0=
1411ac_configure_args1=
1412ac_sep=
1413ac_must_keep_next=false
1414for ac_pass in 1 2
1415do
1416 for ac_arg
1417 do
1418 case $ac_arg in
1419 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1420 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1421 | -silent | --silent | --silen | --sile | --sil)
1422 continue ;;
1423 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1424 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1425 esac
1426 case $ac_pass in
1427 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1428 2)
1429 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1430 if test $ac_must_keep_next = true; then
ac1cb8d3 1431 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1432 else
ac1cb8d3
VS
1433 case $ac_arg in
1434 *=* | --config-cache | -C | -disable-* | --disable-* \
1435 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1436 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1437 | -with-* | --with-* | -without-* | --without-* | --x)
1438 case "$ac_configure_args0 " in
1439 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1440 esac
1441 ;;
1442 -* ) ac_must_keep_next=true ;;
1443 esac
a848cd7e
SC
1444 fi
1445 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1446 # Get rid of the leading space.
1447 ac_sep=" "
1448 ;;
1449 esac
1450 done
1451done
1452$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1453$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1454
1455# When interrupted or exit'd, cleanup temporary files, and complete
1456# config.log. We remove comments because anyway the quotes in there
1457# would cause problems or look ugly.
1458# WARNING: Be sure not to use single quotes in there, as some shells,
1459# such as our DU 5.0 friend, will then `close' the trap.
1460trap 'exit_status=$?
1461 # Save into config.log some information that might help in debugging.
1462 {
1463 echo
1464
1465 cat <<\_ASBOX
1466## ---------------- ##
1467## Cache variables. ##
1468## ---------------- ##
1469_ASBOX
1470 echo
1471 # The following way of writing the cache mishandles newlines in values,
1472{
1473 (set) 2>&1 |
1474 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1475 *ac_space=\ *)
1476 sed -n \
ac1cb8d3
VS
1477 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1479 ;;
1480 *)
1481 sed -n \
ac1cb8d3 1482 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1483 ;;
1484 esac;
1485}
1486 echo
1487
1488 cat <<\_ASBOX
1489## ----------------- ##
1490## Output variables. ##
1491## ----------------- ##
1492_ASBOX
1493 echo
1494 for ac_var in $ac_subst_vars
1495 do
1496 eval ac_val=$`echo $ac_var`
1497 echo "$ac_var='"'"'$ac_val'"'"'"
1498 done | sort
1499 echo
1500
1501 if test -n "$ac_subst_files"; then
1502 cat <<\_ASBOX
1503## ------------- ##
1504## Output files. ##
1505## ------------- ##
1506_ASBOX
1507 echo
1508 for ac_var in $ac_subst_files
1509 do
1510 eval ac_val=$`echo $ac_var`
ac1cb8d3 1511 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1512 done | sort
1513 echo
1514 fi
1515
1516 if test -s confdefs.h; then
1517 cat <<\_ASBOX
1518## ----------- ##
1519## confdefs.h. ##
1520## ----------- ##
1521_ASBOX
1522 echo
1523 sed "/^$/d" confdefs.h | sort
1524 echo
1525 fi
1526 test "$ac_signal" != 0 &&
1527 echo "$as_me: caught signal $ac_signal"
1528 echo "$as_me: exit $exit_status"
1529 } >&5
ac1cb8d3 1530 rm -f core *.core &&
a848cd7e
SC
1531 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1532 exit $exit_status
1533 ' 0
1534for ac_signal in 1 2 13 15; do
1535 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1536done
1537ac_signal=0
1538
1539# confdefs.h avoids OS command line length limits that DEFS can exceed.
1540rm -rf conftest* confdefs.h
1541# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1542echo >confdefs.h
1543
1544# Predefined preprocessor variables.
1545
1546cat >>confdefs.h <<_ACEOF
1547#define PACKAGE_NAME "$PACKAGE_NAME"
1548_ACEOF
1549
1550
1551cat >>confdefs.h <<_ACEOF
1552#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1553_ACEOF
1554
1555
1556cat >>confdefs.h <<_ACEOF
1557#define PACKAGE_VERSION "$PACKAGE_VERSION"
1558_ACEOF
1559
1560
1561cat >>confdefs.h <<_ACEOF
1562#define PACKAGE_STRING "$PACKAGE_STRING"
1563_ACEOF
1564
1565
1566cat >>confdefs.h <<_ACEOF
1567#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1568_ACEOF
1569
1570
1571# Let the site file select an alternate cache file if it wants to.
1572# Prefer explicitly selected file to automatically selected ones.
1573if test -z "$CONFIG_SITE"; then
1574 if test "x$prefix" != xNONE; then
1575 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1576 else
1577 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1578 fi
1579fi
1580for ac_site_file in $CONFIG_SITE; do
1581 if test -r "$ac_site_file"; then
1582 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1583echo "$as_me: loading site script $ac_site_file" >&6;}
1584 sed 's/^/| /' "$ac_site_file" >&5
1585 . "$ac_site_file"
1586 fi
1587done
1588
1589if test -r "$cache_file"; then
1590 # Some versions of bash will fail to source /dev/null (special
1591 # files actually), so we avoid doing that.
1592 if test -f "$cache_file"; then
1593 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1594echo "$as_me: loading cache $cache_file" >&6;}
1595 case $cache_file in
1596 [\\/]* | ?:[\\/]* ) . $cache_file;;
1597 *) . ./$cache_file;;
1598 esac
1599 fi
1600else
1601 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1602echo "$as_me: creating cache $cache_file" >&6;}
1603 >$cache_file
1604fi
1605
1606# Check that the precious variables saved in the cache have kept the same
1607# value.
1608ac_cache_corrupted=false
1609for ac_var in `(set) 2>&1 |
ac1cb8d3 1610 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1611 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1612 eval ac_new_set=\$ac_env_${ac_var}_set
1613 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1614 eval ac_new_val="\$ac_env_${ac_var}_value"
1615 case $ac_old_set,$ac_new_set in
1616 set,)
1617 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1618echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1619 ac_cache_corrupted=: ;;
1620 ,set)
1621 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1622echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1623 ac_cache_corrupted=: ;;
1624 ,);;
1625 *)
1626 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1627 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1628echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1629 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1630echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1631 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1632echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1633 ac_cache_corrupted=:
a848cd7e
SC
1634 fi;;
1635 esac
1636 # Pass precious variables to config.status.
1637 if test "$ac_new_set" = set; then
1638 case $ac_new_val in
1639 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1640 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1641 *) ac_arg=$ac_var=$ac_new_val ;;
1642 esac
1643 case " $ac_configure_args " in
1644 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1645 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1646 esac
1647 fi
1648done
1649if $ac_cache_corrupted; then
1650 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1651echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1652 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1653echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1654 { (exit 1); exit 1; }; }
1655fi
1656
1657ac_ext=c
1658ac_cpp='$CPP $CPPFLAGS'
1659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1661ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1690
1691
1692ac_aux_dir=
1693for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1694 if test -f $ac_dir/install-sh; then
1695 ac_aux_dir=$ac_dir
1696 ac_install_sh="$ac_aux_dir/install-sh -c"
1697 break
1698 elif test -f $ac_dir/install.sh; then
1699 ac_aux_dir=$ac_dir
1700 ac_install_sh="$ac_aux_dir/install.sh -c"
1701 break
1702 elif test -f $ac_dir/shtool; then
1703 ac_aux_dir=$ac_dir
1704 ac_install_sh="$ac_aux_dir/shtool install -c"
1705 break
1706 fi
1707done
1708if test -z "$ac_aux_dir"; then
1709 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1710echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1711 { (exit 1); exit 1; }; }
1712fi
1713ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1714ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1715ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1716
1717# Make sure we can run config.sub.
1718$ac_config_sub sun4 >/dev/null 2>&1 ||
1719 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1720echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1721 { (exit 1); exit 1; }; }
1722
1723echo "$as_me:$LINENO: checking build system type" >&5
1724echo $ECHO_N "checking build system type... $ECHO_C" >&6
1725if test "${ac_cv_build+set}" = set; then
1726 echo $ECHO_N "(cached) $ECHO_C" >&6
1727else
1728 ac_cv_build_alias=$build_alias
1729test -z "$ac_cv_build_alias" &&
1730 ac_cv_build_alias=`$ac_config_guess`
1731test -z "$ac_cv_build_alias" &&
1732 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1733echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1734 { (exit 1); exit 1; }; }
1735ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1736 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1737echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1738 { (exit 1); exit 1; }; }
1739
1740fi
1741echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1742echo "${ECHO_T}$ac_cv_build" >&6
1743build=$ac_cv_build
1744build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1745build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1746build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1747
1748
1749echo "$as_me:$LINENO: checking host system type" >&5
1750echo $ECHO_N "checking host system type... $ECHO_C" >&6
1751if test "${ac_cv_host+set}" = set; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
1753else
1754 ac_cv_host_alias=$host_alias
1755test -z "$ac_cv_host_alias" &&
1756 ac_cv_host_alias=$ac_cv_build_alias
1757ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1758 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1759echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1760 { (exit 1); exit 1; }; }
1761
1762fi
1763echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1764echo "${ECHO_T}$ac_cv_host" >&6
1765host=$ac_cv_host
1766host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1767host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1768host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1769
1770
1771echo "$as_me:$LINENO: checking target system type" >&5
1772echo $ECHO_N "checking target system type... $ECHO_C" >&6
1773if test "${ac_cv_target+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1775else
1776 ac_cv_target_alias=$target_alias
1777test "x$ac_cv_target_alias" = "x" &&
1778 ac_cv_target_alias=$ac_cv_host_alias
1779ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1780 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1781echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1782 { (exit 1); exit 1; }; }
1783
1784fi
1785echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1786echo "${ECHO_T}$ac_cv_target" >&6
1787target=$ac_cv_target
1788target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1789target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1790target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1791
1792
1793# The aliases save the names the user supplied, while $host etc.
1794# will get canonicalized.
1795test -n "$target_alias" &&
1796 test "$program_prefix$program_suffix$program_transform_name" = \
1797 NONENONEs,x,x, &&
1798 program_prefix=${target_alias}-
1799
1800
1801
ceec2216 1802wx_major_version_number=2
dd8df4fc 1803wx_minor_version_number=7
2add9e3c
RD
1804wx_release_number=2
1805wx_subrelease_number=0
a848cd7e 1806
ceec2216
RL
1807WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1808WX_VERSION=$WX_RELEASE.$wx_release_number
1809WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1810
ceec2216 1811WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1812
a848cd7e
SC
1813
1814
1815
1816USE_UNIX=1
1817USE_OS2=0
1818USE_WIN32=0
1819USE_DOS=0
1820USE_BEOS=0
1821USE_MAC=0
1822
1823USE_AIX=
1824USE_BSD= USE_DARWIN= USE_FREEBSD=
1825USE_GNU= USE_HPUX=
1826USE_LINUX=
1827USE_NETBSD=
1828USE_OPENBSD=
1829USE_OSF= USE_SGI=
1830USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1831USE_ULTRIX=
1832USE_UNIXWARE=
1833
1834USE_ALPHA=
1835
1836NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1837
b3c86150 1838ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
a848cd7e
SC
1839
1840DEFAULT_wxUSE_COCOA=0
1841DEFAULT_wxUSE_GTK=0
1842DEFAULT_wxUSE_MAC=0
1843DEFAULT_wxUSE_MGL=0
1844DEFAULT_wxUSE_MICROWIN=0
1845DEFAULT_wxUSE_MOTIF=0
1846DEFAULT_wxUSE_MSW=0
1847DEFAULT_wxUSE_PM=0
1848DEFAULT_wxUSE_X11=0
b3c86150 1849DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1850
1851DEFAULT_DEFAULT_wxUSE_COCOA=0
1852DEFAULT_DEFAULT_wxUSE_GTK=0
1853DEFAULT_DEFAULT_wxUSE_MAC=0
1854DEFAULT_DEFAULT_wxUSE_MGL=0
1855DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1856DEFAULT_DEFAULT_wxUSE_MOTIF=0
1857DEFAULT_DEFAULT_wxUSE_MSW=0
1858DEFAULT_DEFAULT_wxUSE_PM=0
1859DEFAULT_DEFAULT_wxUSE_X11=0
b3c86150 1860DEFAULT_DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1861
1862PROGRAM_EXT=
1863SO_SUFFIX=so
1864SAMPLES_RPATH_FLAG=
1865SAMPLES_RPATH_POSTLINK=
1866
a03b8b04
RD
1867DEFAULT_STD_FLAG=yes
1868
a848cd7e
SC
1869case "${host}" in
1870 *-hp-hpux* )
1871 USE_HPUX=1
1872 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1873 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1874 SO_SUFFIX=sl
1875 cat >>confdefs.h <<\_ACEOF
1876#define __HPUX__ 1
1877_ACEOF
1878
2eef8513 1879
c92ad099 1880 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1881 ;;
1882 *-*-linux* )
1883 USE_LINUX=1
1884 cat >>confdefs.h <<\_ACEOF
1885#define __LINUX__ 1
1886_ACEOF
1887
1888 TMP=`uname -m`
1889 if test "x$TMP" = "xalpha"; then
1890 USE_ALPHA=1
1891 cat >>confdefs.h <<\_ACEOF
1892#define __ALPHA__ 1
1893_ACEOF
1894
1895 fi
1896 DEFAULT_DEFAULT_wxUSE_GTK=1
1897 ;;
1898 *-*-gnu* | *-*-k*bsd*-gnu )
1899 USE_GNU=1
1900 TMP=`uname -m`
1901 if test "x$TMP" = "xalpha"; then
1902 USE_ALPHA=1
1903 cat >>confdefs.h <<\_ACEOF
1904#define __ALPHA__ 1
1905_ACEOF
1906
1907 fi
1908 DEFAULT_DEFAULT_wxUSE_GTK=1
1909 ;;
1910 *-*-irix5* | *-*-irix6* )
1911 USE_SGI=1
1912 USE_SVR4=1
1913 cat >>confdefs.h <<\_ACEOF
1914#define __SGI__ 1
1915_ACEOF
1916
1917 cat >>confdefs.h <<\_ACEOF
1918#define __SVR4__ 1
1919_ACEOF
1920
1921 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1922 ;;
1923 *-*-solaris2* )
1924 USE_SUN=1
1925 USE_SOLARIS=1
1926 USE_SVR4=1
1927 cat >>confdefs.h <<\_ACEOF
1928#define __SUN__ 1
1929_ACEOF
1930
1931 cat >>confdefs.h <<\_ACEOF
1932#define __SOLARIS__ 1
1933_ACEOF
1934
1935 cat >>confdefs.h <<\_ACEOF
1936#define __SVR4__ 1
1937_ACEOF
1938
1939 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1940 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1941 ;;
1942 *-*-sunos4* )
1943 USE_SUN=1
1944 USE_SUNOS=1
1945 USE_BSD=1
1946 cat >>confdefs.h <<\_ACEOF
1947#define __SUN__ 1
1948_ACEOF
1949
1950 cat >>confdefs.h <<\_ACEOF
1951#define __SUNOS__ 1
1952_ACEOF
1953
1954 cat >>confdefs.h <<\_ACEOF
1955#define __BSD__ 1
1956_ACEOF
1957
1958 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1959 ;;
1960 *-*-freebsd*)
1961 USE_BSD=1
1962 USE_FREEBSD=1
1963 cat >>confdefs.h <<\_ACEOF
1964#define __FREEBSD__ 1
1965_ACEOF
1966
1967 cat >>confdefs.h <<\_ACEOF
1968#define __BSD__ 1
1969_ACEOF
1970
1971 DEFAULT_DEFAULT_wxUSE_GTK=1
1972 ;;
c9a66001 1973 *-*-openbsd*|*-*-mirbsd*)
a848cd7e
SC
1974 USE_BSD=1
1975 USE_OPENBSD=1
1976 cat >>confdefs.h <<\_ACEOF
1977#define __OPENBSD__ 1
1978_ACEOF
1979
1980 cat >>confdefs.h <<\_ACEOF
1981#define __BSD__ 1
1982_ACEOF
1983
1984 DEFAULT_DEFAULT_wxUSE_GTK=1
1985 ;;
1986 *-*-netbsd*)
1987 USE_BSD=1
1988 USE_NETBSD=1
1989 cat >>confdefs.h <<\_ACEOF
1990#define __NETBSD__ 1
1991_ACEOF
1992
1993 cat >>confdefs.h <<\_ACEOF
1994#define __BSD__ 1
1995_ACEOF
1996
1997 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 1998 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 1999
def7c04a 2000 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
2001 ;;
2002 *-*-osf* )
2003 USE_ALPHA=1
2004 USE_OSF=1
2005 cat >>confdefs.h <<\_ACEOF
2006#define __ALPHA__ 1
2007_ACEOF
2008
2009 cat >>confdefs.h <<\_ACEOF
2010#define __OSF__ 1
2011_ACEOF
2012
2013 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2014 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2015 ;;
2016 *-*-dgux5* )
2017 USE_ALPHA=1
2018 USE_SVR4=1
2019 cat >>confdefs.h <<\_ACEOF
2020#define __ALPHA__ 1
2021_ACEOF
2022
2023 cat >>confdefs.h <<\_ACEOF
2024#define __SVR4__ 1
2025_ACEOF
2026
2027 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2028 ;;
2029 *-*-sysv5* )
2030 USE_SYSV=1
2031 USE_SVR4=1
2032 cat >>confdefs.h <<\_ACEOF
2033#define __SYSV__ 1
2034_ACEOF
2035
2036 cat >>confdefs.h <<\_ACEOF
2037#define __SVR4__ 1
2038_ACEOF
2039
2040 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2041 ;;
2042 *-*-aix* )
2043 USE_AIX=1
2044 USE_SYSV=1
2045 USE_SVR4=1
2046 SO_SUFFIX=a
2047 cat >>confdefs.h <<\_ACEOF
2048#define __AIX__ 1
2049_ACEOF
2050
2051 cat >>confdefs.h <<\_ACEOF
2052#define __SYSV__ 1
2053_ACEOF
2054
2055 cat >>confdefs.h <<\_ACEOF
2056#define __SVR4__ 1
2057_ACEOF
2058
2059 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2060 ;;
2061
2062 *-*-*UnixWare*)
2063 USE_SYSV=1
2064 USE_SVR4=1
2065 USE_UNIXWARE=1
2066 cat >>confdefs.h <<\_ACEOF
2067#define __UNIXWARE__ 1
2068_ACEOF
2069
2070 ;;
2071
2072 *-*-cygwin* | *-*-mingw32* )
2073 SO_SUFFIX=dll
2074 PROGRAM_EXT=".exe"
a848cd7e
SC
2075 DEFAULT_DEFAULT_wxUSE_MSW=1
2076 ;;
2077
2078 *-pc-msdosdjgpp )
2079 USE_UNIX=0
2080 USE_DOS=1
2081 cat >>confdefs.h <<\_ACEOF
2082#define __DOS__ 1
2083_ACEOF
2084
2085 PROGRAM_EXT=".exe"
2086 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
2087 ;;
2088
2089 *-pc-os2_emx | *-pc-os2-emx )
2090 cat >>confdefs.h <<\_ACEOF
2091#define __EMX__ 1
2092_ACEOF
2093
2094 USE_OS2=1
2095 cat >>confdefs.h <<\_ACEOF
2096#define __OS2__ 1
2097_ACEOF
2098
2099 PROGRAM_EXT=".exe"
2100 DEFAULT_DEFAULT_wxUSE_PM=1
2101 CXX=gcc
2102 LDFLAGS="$LDFLAGS -Zcrtdll"
2103 ac_executable_extensions=".exe"
2104 export ac_executable_extensions
2105 ac_save_IFS="$IFS"
2106 IFS='\\'
2107 ac_TEMP_PATH=
2108 for ac_dir in $PATH; do
2109 IFS=$ac_save_IFS
2110 if test -z "$ac_TEMP_PATH"; then
2111 ac_TEMP_PATH="$ac_dir"
2112 else
2113 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2114 fi
2115 done
2116 export PATH="$ac_TEMP_PATH"
2117 unset ac_TEMP_PATH
a03b8b04 2118 DEFAULT_STD_FLAG=no
a848cd7e
SC
2119 ;;
2120
cfda0ea8 2121 *-*-darwin* )
a848cd7e
SC
2122 USE_BSD=1
2123 USE_DARWIN=1
2124 SO_SUFFIX=dylib
2125 cat >>confdefs.h <<\_ACEOF
2126#define __BSD__ 1
2127_ACEOF
2128
2129 cat >>confdefs.h <<\_ACEOF
2130#define __DARWIN__ 1
a848cd7e
SC
2131_ACEOF
2132
2133 cat >>confdefs.h <<\_ACEOF
2134#define TARGET_CARBON 1
2135_ACEOF
2136
2137 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2138 DEFAULT_STD_FLAG=no
a848cd7e 2139 ;;
1e9e8aba
DE
2140 powerpc-apple-macos* )
2141 USE_UNIX=0
2142 ac_cv_c_bigendian=yes
2143 SO_SUFFIX=shlib
2144 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2145 DEFAULT_STD_FLAG=no
1e9e8aba 2146 ;;
a848cd7e
SC
2147
2148 *-*-beos* )
2149 USE_BEOS=1
2150 cat >>confdefs.h <<\_ACEOF
2151#define __BEOS__ 1
2152_ACEOF
2153
2154 ;;
2155
2156 *)
c9a66001
VZ
2157 { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2158echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2159 { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2160echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
5acfd58d
MW
2161
2162 DEFAULT_DEFAULT_wxUSE_X11=1
2163 DEFAULT_wxUSE_SHARED=no
a848cd7e
SC
2164esac
2165
2166
2167
2168
2169 wx_arg_cache_file="configarg.cache"
2170 echo "loading argument cache $wx_arg_cache_file"
2171 rm -f ${wx_arg_cache_file}.tmp
2172 touch ${wx_arg_cache_file}.tmp
2173 touch ${wx_arg_cache_file}
2174
2175
2176DEBUG_CONFIGURE=0
2177if test $DEBUG_CONFIGURE = 1; then
2178 DEFAULT_wxUSE_UNIVERSAL=no
2179 DEFAULT_wxUSE_STL=no
2180
2181 DEFAULT_wxUSE_NANOX=no
2182
2183 DEFAULT_wxUSE_THREADS=yes
2184
5acfd58d 2185 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2186 DEFAULT_wxUSE_OPTIMISE=no
2187 DEFAULT_wxUSE_PROFILE=no
2188 DEFAULT_wxUSE_NO_DEPS=no
2189 DEFAULT_wxUSE_NO_RTTI=no
2190 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2191 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2192 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2193 DEFAULT_wxUSE_PERMISSIVE=no
2194 DEFAULT_wxUSE_DEBUG_FLAG=yes
2195 DEFAULT_wxUSE_DEBUG_INFO=yes
2196 DEFAULT_wxUSE_DEBUG_GDB=yes
2197 DEFAULT_wxUSE_MEM_TRACING=no
2198 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2199 DEFAULT_wxUSE_DMALLOC=no
2200 DEFAULT_wxUSE_APPLE_IEEE=no
2201
2202 DEFAULT_wxUSE_EXCEPTIONS=no
2203 DEFAULT_wxUSE_LOG=yes
2204 DEFAULT_wxUSE_LOGWINDOW=no
2205 DEFAULT_wxUSE_LOGGUI=no
2206 DEFAULT_wxUSE_LOGDIALOG=no
2207
2208 DEFAULT_wxUSE_GUI=yes
2209 DEFAULT_wxUSE_CONTROLS=no
2210
2211 DEFAULT_wxUSE_REGEX=no
2212 DEFAULT_wxUSE_XML=no
2213 DEFAULT_wxUSE_EXPAT=no
2214 DEFAULT_wxUSE_ZLIB=no
2215 DEFAULT_wxUSE_LIBPNG=no
2216 DEFAULT_wxUSE_LIBJPEG=no
2217 DEFAULT_wxUSE_LIBTIFF=no
2218 DEFAULT_wxUSE_LIBXPM=no
2219 DEFAULT_wxUSE_LIBMSPACK=no
2220 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2221 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2222 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2223 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2224 DEFAULT_wxUSE_ODBC=no
2225 DEFAULT_wxUSE_OPENGL=no
2226
2227 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2228 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2229 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2230 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2231 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2232 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2233 DEFAULT_wxUSE_CMDLINE_PARSER=no
2234 DEFAULT_wxUSE_DATETIME=no
2235 DEFAULT_wxUSE_TIMER=no
2236 DEFAULT_wxUSE_STOPWATCH=no
2237 DEFAULT_wxUSE_FILE=no
2238 DEFAULT_wxUSE_FFILE=no
07158944 2239 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2240 DEFAULT_wxUSE_TEXTBUFFER=no
2241 DEFAULT_wxUSE_TEXTFILE=no
2242 DEFAULT_wxUSE_SOUND=no
3b57de8b 2243 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2244 DEFAULT_wxUSE_GSTREAMER8=no
8f3773fd 2245 DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
a848cd7e
SC
2246 DEFAULT_wxUSE_INTL=no
2247 DEFAULT_wxUSE_CONFIG=no
2248 DEFAULT_wxUSE_FONTMAP=no
2249 DEFAULT_wxUSE_STREAMS=no
2250 DEFAULT_wxUSE_SOCKETS=no
2251 DEFAULT_wxUSE_OLE=no
2252 DEFAULT_wxUSE_DATAOBJ=no
2253 DEFAULT_wxUSE_DIALUP_MANAGER=no
2254 DEFAULT_wxUSE_JOYSTICK=no
2255 DEFAULT_wxUSE_DYNLIB_CLASS=no
2256 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2257 DEFAULT_wxUSE_LONGLONG=no
2258 DEFAULT_wxUSE_GEOMETRY=no
2259
2260 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2261 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2262 DEFAULT_wxUSE_POSTSCRIPT=no
2263
2264 DEFAULT_wxUSE_CLIPBOARD=no
2265 DEFAULT_wxUSE_TOOLTIPS=no
2266 DEFAULT_wxUSE_DRAG_AND_DROP=no
2267 DEFAULT_wxUSE_DRAGIMAGE=no
2268 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2269 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2270
8a7b1113 2271 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2272 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2273 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2274 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2275
2276 DEFAULT_wxUSE_RESOURCES=no
2277 DEFAULT_wxUSE_CONSTRAINTS=no
2278 DEFAULT_wxUSE_IPC=no
2279 DEFAULT_wxUSE_HELP=no
2280 DEFAULT_wxUSE_MS_HTML_HELP=no
2281 DEFAULT_wxUSE_WXHTML_HELP=no
2282 DEFAULT_wxUSE_TREELAYOUT=no
2283 DEFAULT_wxUSE_METAFILE=no
2284 DEFAULT_wxUSE_MIMETYPE=no
2285 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2286 DEFAULT_wxUSE_PROTOCOL=no
2287 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2288 DEFAULT_wxUSE_PROTOCOL_FTP=no
2289 DEFAULT_wxUSE_PROTOCOL_FILE=no
2290 DEFAULT_wxUSE_URL=no
ca5c6ac3 2291 DEFAULT_wxUSE_VARIANT=no
a848cd7e 2292
319c5ed4 2293 DEFAULT_wxUSE_ABOUTDLG=no
a848cd7e
SC
2294 DEFAULT_wxUSE_COMMONDLGS=no
2295 DEFAULT_wxUSE_CHOICEDLG=no
2296 DEFAULT_wxUSE_COLOURDLG=no
2297 DEFAULT_wxUSE_DIRDLG=no
2298 DEFAULT_wxUSE_FILEDLG=no
2299 DEFAULT_wxUSE_FINDREPLDLG=no
2300 DEFAULT_wxUSE_FONTDLG=no
2301 DEFAULT_wxUSE_MSGDLG=no
2302 DEFAULT_wxUSE_NUMBERDLG=no
2303 DEFAULT_wxUSE_TEXTDLG=no
2304 DEFAULT_wxUSE_SPLASH=no
2305 DEFAULT_wxUSE_STARTUP_TIPS=no
2306 DEFAULT_wxUSE_PROGRESSDLG=no
2307 DEFAULT_wxUSE_WIZARDDLG=no
2308
2309 DEFAULT_wxUSE_MENUS=no
2310 DEFAULT_wxUSE_MINIFRAME=no
2311 DEFAULT_wxUSE_HTML=no
91dea314 2312 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2313 DEFAULT_wxUSE_XRC=no
3f60522a 2314 DEFAULT_wxUSE_AUI=no
646b6ec1 2315 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2316 DEFAULT_wxUSE_FILESYSTEM=no
2317 DEFAULT_wxUSE_FS_INET=no
2318 DEFAULT_wxUSE_FS_ZIP=no
26e422a9 2319 DEFAULT_wxUSE_FS_ARCHIVE=no
a848cd7e 2320 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2321 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2322 DEFAULT_wxUSE_ZIPSTREAM=no
26e422a9 2323 DEFAULT_wxUSE_TARSTREAM=no
f8f6c91a 2324 DEFAULT_wxUSE_BACKINGFILE=no
a848cd7e
SC
2325 DEFAULT_wxUSE_VALIDATORS=no
2326
2327 DEFAULT_wxUSE_ACCEL=no
3ea50042 2328 DEFAULT_wxUSE_ANIMATIONCTRL=no
a848cd7e
SC
2329 DEFAULT_wxUSE_BUTTON=no
2330 DEFAULT_wxUSE_BMPBUTTON=no
95a46303 2331 DEFAULT_wxUSE_BITMAPCOMBOBOX=no
a848cd7e
SC
2332 DEFAULT_wxUSE_CALCTRL=no
2333 DEFAULT_wxUSE_CARET=no
2334 DEFAULT_wxUSE_CHECKBOX=no
2335 DEFAULT_wxUSE_CHECKLST=no
2336 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2337 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684 2338 DEFAULT_wxUSE_COLOURPICKERCTRL=no
a848cd7e 2339 DEFAULT_wxUSE_COMBOBOX=no
a57d600f 2340 DEFAULT_wxUSE_COMBOCTRL=no
da98e9be 2341 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e 2342 DEFAULT_wxUSE_DISPLAY=no
88bbc332 2343 DEFAULT_wxUSE_DETECT_SM=no
e9263684
VZ
2344 DEFAULT_wxUSE_DIRPICKERCTRL=no
2345 DEFAULT_wxUSE_FILEPICKERCTRL=no
2346 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e 2347 DEFAULT_wxUSE_GAUGE=no
f43426c1 2348 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
a848cd7e 2349 DEFAULT_wxUSE_GRID=no
6954625c 2350 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 2351 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2352 DEFAULT_wxUSE_IMAGLIST=no
2353 DEFAULT_wxUSE_LISTBOOK=no
2354 DEFAULT_wxUSE_LISTBOX=no
2355 DEFAULT_wxUSE_LISTCTRL=no
2356 DEFAULT_wxUSE_NOTEBOOK=no
a57d600f 2357 DEFAULT_wxUSE_ODCOMBOBOX=no
a848cd7e
SC
2358 DEFAULT_wxUSE_RADIOBOX=no
2359 DEFAULT_wxUSE_RADIOBTN=no
2360 DEFAULT_wxUSE_SASH=no
2361 DEFAULT_wxUSE_SCROLLBAR=no
2362 DEFAULT_wxUSE_SLIDER=no
2363 DEFAULT_wxUSE_SPINBTN=no
2364 DEFAULT_wxUSE_SPINCTRL=no
2365 DEFAULT_wxUSE_SPLITTER=no
2366 DEFAULT_wxUSE_STATBMP=no
2367 DEFAULT_wxUSE_STATBOX=no
2368 DEFAULT_wxUSE_STATLINE=no
2369 DEFAULT_wxUSE_STATTEXT=no
2370 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2371 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2372 DEFAULT_wxUSE_TEXTCTRL=no
2373 DEFAULT_wxUSE_TOGGLEBTN=no
2374 DEFAULT_wxUSE_TOOLBAR=no
2375 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
0093c2fc 2376 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 2377 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
2378 DEFAULT_wxUSE_TREECTRL=no
2379 DEFAULT_wxUSE_POPUPWIN=no
2380 DEFAULT_wxUSE_TIPWINDOW=no
2381
2382 DEFAULT_wxUSE_UNICODE=no
2383 DEFAULT_wxUSE_UNICODE_MSLU=no
2384 DEFAULT_wxUSE_WCSRTOMBS=no
2385
2386 DEFAULT_wxUSE_PALETTE=no
2387 DEFAULT_wxUSE_IMAGE=no
2388 DEFAULT_wxUSE_GIF=no
2389 DEFAULT_wxUSE_PCX=no
2390 DEFAULT_wxUSE_PNM=no
2391 DEFAULT_wxUSE_IFF=no
2392 DEFAULT_wxUSE_XPM=no
2393 DEFAULT_wxUSE_ICO_CUR=no
2394 DEFAULT_wxUSE_ACCESSIBILITY=no
2395
2396 DEFAULT_wxUSE_MONOLITHIC=no
2397 DEFAULT_wxUSE_PLUGINS=no
2398 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2399else
2400 DEFAULT_wxUSE_UNIVERSAL=no
2401 DEFAULT_wxUSE_STL=no
2402
2403 DEFAULT_wxUSE_NANOX=no
2404
2405 DEFAULT_wxUSE_THREADS=yes
2406
5acfd58d 2407 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2408 DEFAULT_wxUSE_OPTIMISE=yes
2409 DEFAULT_wxUSE_PROFILE=no
2410 DEFAULT_wxUSE_NO_DEPS=no
2411 DEFAULT_wxUSE_NO_RTTI=no
2412 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2413 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2414 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2415 DEFAULT_wxUSE_PERMISSIVE=no
2416 DEFAULT_wxUSE_DEBUG_FLAG=no
2417 DEFAULT_wxUSE_DEBUG_INFO=no
2418 DEFAULT_wxUSE_DEBUG_GDB=no
2419 DEFAULT_wxUSE_MEM_TRACING=no
2420 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2421 DEFAULT_wxUSE_DMALLOC=no
2422 DEFAULT_wxUSE_APPLE_IEEE=yes
2423
2424 DEFAULT_wxUSE_EXCEPTIONS=yes
2425 DEFAULT_wxUSE_LOG=yes
2426 DEFAULT_wxUSE_LOGWINDOW=yes
2427 DEFAULT_wxUSE_LOGGUI=yes
2428 DEFAULT_wxUSE_LOGDIALOG=yes
2429
2430 DEFAULT_wxUSE_GUI=yes
2431
2432 DEFAULT_wxUSE_REGEX=yes
2433 DEFAULT_wxUSE_XML=yes
2434 DEFAULT_wxUSE_EXPAT=yes
2435 DEFAULT_wxUSE_ZLIB=yes
2436 DEFAULT_wxUSE_LIBPNG=yes
2437 DEFAULT_wxUSE_LIBJPEG=yes
2438 DEFAULT_wxUSE_LIBTIFF=yes
2439 DEFAULT_wxUSE_LIBXPM=yes
2440 DEFAULT_wxUSE_LIBMSPACK=yes
2441 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2442 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2443 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2444 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2445 DEFAULT_wxUSE_ODBC=no
52cb607e 2446 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2447
2448 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2449 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2450 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2451 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2452 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2453 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2454 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2455 DEFAULT_wxUSE_DATETIME=yes
2456 DEFAULT_wxUSE_TIMER=yes
2457 DEFAULT_wxUSE_STOPWATCH=yes
2458 DEFAULT_wxUSE_FILE=yes
2459 DEFAULT_wxUSE_FFILE=yes
07158944 2460 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2461 DEFAULT_wxUSE_TEXTBUFFER=yes
2462 DEFAULT_wxUSE_TEXTFILE=yes
2463 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2464 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2465 DEFAULT_wxUSE_GSTREAMER8=no
15291213 2466 DEFAULT_wxUSE_PRINTF_POS_PARAMS=yes
a848cd7e
SC
2467 DEFAULT_wxUSE_INTL=yes
2468 DEFAULT_wxUSE_CONFIG=yes
2469 DEFAULT_wxUSE_FONTMAP=yes
2470 DEFAULT_wxUSE_STREAMS=yes
2471 DEFAULT_wxUSE_SOCKETS=yes
2472 DEFAULT_wxUSE_OLE=yes
2473 DEFAULT_wxUSE_DATAOBJ=yes
2474 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2475 DEFAULT_wxUSE_JOYSTICK=yes
2476 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2477 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2478 DEFAULT_wxUSE_LONGLONG=yes
2479 DEFAULT_wxUSE_GEOMETRY=yes
2480
2481 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2482 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2483 DEFAULT_wxUSE_POSTSCRIPT=yes
2484
2485 DEFAULT_wxUSE_CLIPBOARD=yes
2486 DEFAULT_wxUSE_TOOLTIPS=yes
2487 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2488 DEFAULT_wxUSE_DRAGIMAGE=yes
2489 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2490 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2491
8a7b1113 2492 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2493 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2494 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2495 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2496
2497 DEFAULT_wxUSE_RESOURCES=no
2498 DEFAULT_wxUSE_CONSTRAINTS=yes
2499 DEFAULT_wxUSE_IPC=yes
2500 DEFAULT_wxUSE_HELP=yes
2501 DEFAULT_wxUSE_MS_HTML_HELP=yes
2502 DEFAULT_wxUSE_WXHTML_HELP=yes
2503 DEFAULT_wxUSE_TREELAYOUT=yes
2504 DEFAULT_wxUSE_METAFILE=yes
2505 DEFAULT_wxUSE_MIMETYPE=yes
2506 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2507 DEFAULT_wxUSE_PROTOCOL=yes
2508 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2509 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2510 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2511 DEFAULT_wxUSE_URL=yes
ca5c6ac3 2512 DEFAULT_wxUSE_VARIANT=yes
a848cd7e 2513
319c5ed4 2514 DEFAULT_wxUSE_ABOUTDLG=yes
a848cd7e
SC
2515 DEFAULT_wxUSE_COMMONDLGS=yes
2516 DEFAULT_wxUSE_CHOICEDLG=yes
2517 DEFAULT_wxUSE_COLOURDLG=yes
2518 DEFAULT_wxUSE_DIRDLG=yes
2519 DEFAULT_wxUSE_FILEDLG=yes
2520 DEFAULT_wxUSE_FINDREPLDLG=yes
2521 DEFAULT_wxUSE_FONTDLG=yes
2522 DEFAULT_wxUSE_MSGDLG=yes
2523 DEFAULT_wxUSE_NUMBERDLG=yes
2524 DEFAULT_wxUSE_TEXTDLG=yes
2525 DEFAULT_wxUSE_SPLASH=yes
2526 DEFAULT_wxUSE_STARTUP_TIPS=yes
2527 DEFAULT_wxUSE_PROGRESSDLG=yes
2528 DEFAULT_wxUSE_WIZARDDLG=yes
2529
2530 DEFAULT_wxUSE_MENUS=yes
2531 DEFAULT_wxUSE_MINIFRAME=yes
2532 DEFAULT_wxUSE_HTML=yes
91dea314 2533 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2534 DEFAULT_wxUSE_XRC=yes
3f60522a 2535 DEFAULT_wxUSE_AUI=yes
646b6ec1 2536 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2537 DEFAULT_wxUSE_FILESYSTEM=yes
2538 DEFAULT_wxUSE_FS_INET=yes
2539 DEFAULT_wxUSE_FS_ZIP=yes
26e422a9 2540 DEFAULT_wxUSE_FS_ARCHIVE=yes
a848cd7e 2541 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2542 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2543 DEFAULT_wxUSE_ZIPSTREAM=yes
26e422a9 2544 DEFAULT_wxUSE_TARSTREAM=yes
f8f6c91a 2545 DEFAULT_wxUSE_BACKINGFILE=yes
a848cd7e
SC
2546 DEFAULT_wxUSE_VALIDATORS=yes
2547
2548 DEFAULT_wxUSE_ACCEL=yes
3ea50042 2549 DEFAULT_wxUSE_ANIMATIONCTRL=yes
a848cd7e
SC
2550 DEFAULT_wxUSE_BUTTON=yes
2551 DEFAULT_wxUSE_BMPBUTTON=yes
95a46303 2552 DEFAULT_wxUSE_BITMAPCOMBOBOX=yes
a848cd7e
SC
2553 DEFAULT_wxUSE_CALCTRL=yes
2554 DEFAULT_wxUSE_CARET=yes
2555 DEFAULT_wxUSE_CHECKBOX=yes
2556 DEFAULT_wxUSE_CHECKLST=yes
2557 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2558 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684 2559 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
a848cd7e 2560 DEFAULT_wxUSE_COMBOBOX=yes
a57d600f 2561 DEFAULT_wxUSE_COMBOCTRL=yes
da98e9be 2562 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e 2563 DEFAULT_wxUSE_DISPLAY=yes
88bbc332 2564 DEFAULT_wxUSE_DETECT_SM=yes
e9263684
VZ
2565 DEFAULT_wxUSE_DIRPICKERCTRL=yes
2566 DEFAULT_wxUSE_FILEPICKERCTRL=yes
2567 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
2568 DEFAULT_wxUSE_GAUGE=yes
2569 DEFAULT_wxUSE_GRID=yes
f43426c1 2570 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
6954625c 2571 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 2572 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2573 DEFAULT_wxUSE_IMAGLIST=yes
2574 DEFAULT_wxUSE_LISTBOOK=yes
2575 DEFAULT_wxUSE_LISTBOX=yes
2576 DEFAULT_wxUSE_LISTCTRL=yes
2577 DEFAULT_wxUSE_NOTEBOOK=yes
a57d600f 2578 DEFAULT_wxUSE_ODCOMBOBOX=yes
a848cd7e
SC
2579 DEFAULT_wxUSE_RADIOBOX=yes
2580 DEFAULT_wxUSE_RADIOBTN=yes
2581 DEFAULT_wxUSE_SASH=yes
2582 DEFAULT_wxUSE_SCROLLBAR=yes
2583 DEFAULT_wxUSE_SLIDER=yes
2584 DEFAULT_wxUSE_SPINBTN=yes
2585 DEFAULT_wxUSE_SPINCTRL=yes
2586 DEFAULT_wxUSE_SPLITTER=yes
2587 DEFAULT_wxUSE_STATBMP=yes
2588 DEFAULT_wxUSE_STATBOX=yes
2589 DEFAULT_wxUSE_STATLINE=yes
2590 DEFAULT_wxUSE_STATTEXT=yes
2591 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2592 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2593 DEFAULT_wxUSE_TEXTCTRL=yes
2594 DEFAULT_wxUSE_TOGGLEBTN=yes
2595 DEFAULT_wxUSE_TOOLBAR=yes
2596 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
0093c2fc 2597 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 2598 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
2599 DEFAULT_wxUSE_TREECTRL=yes
2600 DEFAULT_wxUSE_POPUPWIN=yes
2601 DEFAULT_wxUSE_TIPWINDOW=yes
2602
78de529b 2603 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2604 DEFAULT_wxUSE_UNICODE_MSLU=yes
2605 DEFAULT_wxUSE_WCSRTOMBS=no
2606
2607 DEFAULT_wxUSE_PALETTE=yes
2608 DEFAULT_wxUSE_IMAGE=yes
2609 DEFAULT_wxUSE_GIF=yes
2610 DEFAULT_wxUSE_PCX=yes
2611 DEFAULT_wxUSE_IFF=no
2612 DEFAULT_wxUSE_PNM=yes
2613 DEFAULT_wxUSE_XPM=yes
2614 DEFAULT_wxUSE_ICO_CUR=yes
2615 DEFAULT_wxUSE_ACCESSIBILITY=no
2616
2617 DEFAULT_wxUSE_MONOLITHIC=no
2618 DEFAULT_wxUSE_PLUGINS=no
2619 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2620
f34ca037 2621 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2622fi
2623
2624
2625
f34ca037 2626
a848cd7e
SC
2627for toolkit in `echo $ALL_TOOLKITS`; do
2628 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2629 if test "x$LINE" != "x" ; then
2630 has_toolkit_in_cache=1
2631 eval "DEFAULT_$LINE"
2632 eval "CACHE_$toolkit=1"
f34ca037
MW
2633
2634 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2635 if test "x$LINE" != "x" ; then
2636 eval "DEFAULT_$LINE"
2637 fi
a848cd7e
SC
2638 fi
2639done
2640
2641
2642
2643 enablestring=
2644 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2645echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2646 no_cache=0
2647 # Check whether --enable-gui or --disable-gui was given.
2648if test "${enable_gui+set}" = set; then
2649 enableval="$enable_gui"
2650
2651 if test "$enableval" = yes; then
2652 ac_cv_use_gui='wxUSE_GUI=yes'
2653 else
2654 ac_cv_use_gui='wxUSE_GUI=no'
2655 fi
2656
2657else
2658
2659 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2660 if test "x$LINE" != x ; then
2661 eval "DEFAULT_$LINE"
2662 else
2663 no_cache=1
2664 fi
2665
2666 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2667
2668fi;
2669
2670 eval "$ac_cv_use_gui"
2671 if test "$no_cache" != 1; then
2672 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2673 fi
2674
2675 if test "$wxUSE_GUI" = yes; then
2676 echo "$as_me:$LINENO: result: yes" >&5
2677echo "${ECHO_T}yes" >&6
2678 else
2679 echo "$as_me:$LINENO: result: no" >&5
2680echo "${ECHO_T}no" >&6
2681 fi
2682
2683
2684 enablestring=
2685 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2686echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2687 no_cache=0
2688 # Check whether --enable-monolithic or --disable-monolithic was given.
2689if test "${enable_monolithic+set}" = set; then
2690 enableval="$enable_monolithic"
2691
2692 if test "$enableval" = yes; then
2693 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2694 else
2695 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2696 fi
2697
2698else
2699
2700 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2701 if test "x$LINE" != x ; then
2702 eval "DEFAULT_$LINE"
2703 else
2704 no_cache=1
2705 fi
2706
2707 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2708
2709fi;
2710
2711 eval "$ac_cv_use_monolithic"
2712 if test "$no_cache" != 1; then
2713 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2714 fi
2715
2716 if test "$wxUSE_MONOLITHIC" = yes; then
2717 echo "$as_me:$LINENO: result: yes" >&5
2718echo "${ECHO_T}yes" >&6
2719 else
2720 echo "$as_me:$LINENO: result: no" >&5
2721echo "${ECHO_T}no" >&6
2722 fi
2723
2724
2725 enablestring=
2726 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2727echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2728 no_cache=0
2729 # Check whether --enable-plugins or --disable-plugins was given.
2730if test "${enable_plugins+set}" = set; then
2731 enableval="$enable_plugins"
2732
2733 if test "$enableval" = yes; then
2734 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2735 else
2736 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2737 fi
2738
2739else
2740
2741 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2742 if test "x$LINE" != x ; then
2743 eval "DEFAULT_$LINE"
2744 else
2745 no_cache=1
2746 fi
2747
2748 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2749
2750fi;
2751
2752 eval "$ac_cv_use_plugins"
2753 if test "$no_cache" != 1; then
2754 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2755 fi
2756
2757 if test "$wxUSE_PLUGINS" = yes; then
2758 echo "$as_me:$LINENO: result: yes" >&5
2759echo "${ECHO_T}yes" >&6
2760 else
2761 echo "$as_me:$LINENO: result: no" >&5
2762echo "${ECHO_T}no" >&6
2763 fi
2764
2765
1c14217d
VZ
2766 withstring=without
2767 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2768echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2769 no_cache=0
2770
2771# Check whether --with-subdirs or --without-subdirs was given.
2772if test "${with_subdirs+set}" = set; then
2773 withval="$with_subdirs"
2774
2775 if test "$withval" = yes; then
2776 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2777 else
2778 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2779 fi
2780
2781else
2782
2783 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2784 if test "x$LINE" != x ; then
2785 eval "DEFAULT_$LINE"
2786 else
2787 no_cache=1
2788 fi
2789
2790 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2791
2792fi;
2793
2794 eval "$ac_cv_use_subdirs"
2795 if test "$no_cache" != 1; then
2796 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2797 fi
2798
2799 if test "$wxWITH_SUBDIRS" = yes; then
2800 echo "$as_me:$LINENO: result: yes" >&5
2801echo "${ECHO_T}yes" >&6
2802 else
2803 echo "$as_me:$LINENO: result: no" >&5
2804echo "${ECHO_T}no" >&6
2805 fi
2806
2807
a848cd7e
SC
2808if test "$wxUSE_GUI" = "yes"; then
2809
2810
2811 enablestring=
2812 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2813echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2814 no_cache=0
2815 # Check whether --enable-universal or --disable-universal was given.
2816if test "${enable_universal+set}" = set; then
2817 enableval="$enable_universal"
2818
2819 if test "$enableval" = yes; then
2820 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2821 else
2822 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2823 fi
2824
2825else
2826
2827 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2828 if test "x$LINE" != x ; then
2829 eval "DEFAULT_$LINE"
2830 else
2831 no_cache=1
2832 fi
2833
2834 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2835
2836fi;
2837
2838 eval "$ac_cv_use_universal"
2839 if test "$no_cache" != 1; then
2840 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2841 fi
2842
2843 if test "$wxUSE_UNIVERSAL" = yes; then
2844 echo "$as_me:$LINENO: result: yes" >&5
2845echo "${ECHO_T}yes" >&6
2846 else
2847 echo "$as_me:$LINENO: result: no" >&5
2848echo "${ECHO_T}no" >&6
2849 fi
2850
2851
2852# Check whether --with-gtk or --without-gtk was given.
2853if test "${with_gtk+set}" = set; then
2854 withval="$with_gtk"
2855 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2856fi;
2857
2858# Check whether --with-motif or --without-motif was given.
2859if test "${with_motif+set}" = set; then
2860 withval="$with_motif"
2861 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2862fi;
2863
2864# Check whether --with-mac or --without-mac was given.
2865if test "${with_mac+set}" = set; then
2866 withval="$with_mac"
c228d3a4 2867 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2868fi;
2869
2870# Check whether --with-cocoa or --without-cocoa was given.
2871if test "${with_cocoa+set}" = set; then
2872 withval="$with_cocoa"
c228d3a4 2873 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2874fi;
2875
2876# Check whether --with-wine or --without-wine was given.
2877if test "${with_wine+set}" = set; then
2878 withval="$with_wine"
2879 wxUSE_WINE="$withval" CACHE_WINE=1
2880fi;
2881
2882# Check whether --with-msw or --without-msw was given.
2883if test "${with_msw+set}" = set; then
2884 withval="$with_msw"
2885 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2886fi;
2887
2888# Check whether --with-pm or --without-pm was given.
2889if test "${with_pm+set}" = set; then
2890 withval="$with_pm"
2891 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2892fi;
2893
2894# Check whether --with-mgl or --without-mgl was given.
2895if test "${with_mgl+set}" = set; then
2896 withval="$with_mgl"
2897 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2898fi;
2899
b3c86150
VS
2900# Check whether --with-directfb or --without-directfb was given.
2901if test "${with_directfb+set}" = set; then
2902 withval="$with_directfb"
2903 wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
2904fi;
2905
a848cd7e
SC
2906# Check whether --with-microwin or --without-microwin was given.
2907if test "${with_microwin+set}" = set; then
2908 withval="$with_microwin"
2909 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2910fi;
2911
2912# Check whether --with-x11 or --without-x11 was given.
2913if test "${with_x11+set}" = set; then
2914 withval="$with_x11"
2915 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2916fi;
2917
2918 enablestring=
2919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2920echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2921 no_cache=0
2922 # Check whether --enable-nanox or --disable-nanox was given.
2923if test "${enable_nanox+set}" = set; then
2924 enableval="$enable_nanox"
2925
2926 if test "$enableval" = yes; then
2927 ac_cv_use_nanox='wxUSE_NANOX=yes'
2928 else
2929 ac_cv_use_nanox='wxUSE_NANOX=no'
2930 fi
2931
2932else
2933
2934 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2935 if test "x$LINE" != x ; then
2936 eval "DEFAULT_$LINE"
2937 else
2938 no_cache=1
2939 fi
2940
2941 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2942
2943fi;
2944
2945 eval "$ac_cv_use_nanox"
2946 if test "$no_cache" != 1; then
2947 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2948 fi
2949
2950 if test "$wxUSE_NANOX" = yes; then
2951 echo "$as_me:$LINENO: result: yes" >&5
2952echo "${ECHO_T}yes" >&6
2953 else
2954 echo "$as_me:$LINENO: result: no" >&5
2955echo "${ECHO_T}no" >&6
2956 fi
2957
2958
f34ca037
MW
2959# Check whether --enable-gtk2 or --disable-gtk2 was given.
2960if test "${enable_gtk2+set}" = set; then
2961 enableval="$enable_gtk2"
2962 wxUSE_GTK2="$enableval"
2963fi;
a848cd7e 2964
a848cd7e
SC
2965 enablestring=
2966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2967echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2968 no_cache=0
2969 # Check whether --enable-gpe or --disable-gpe was given.
2970if test "${enable_gpe+set}" = set; then
2971 enableval="$enable_gpe"
2972
2973 if test "$enableval" = yes; then
2974 ac_cv_use_gpe='wxUSE_GPE=yes'
2975 else
2976 ac_cv_use_gpe='wxUSE_GPE=no'
2977 fi
2978
2979else
2980
2981 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2982 if test "x$LINE" != x ; then
2983 eval "DEFAULT_$LINE"
2984 else
2985 no_cache=1
2986 fi
2987
2988 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2989
2990fi;
2991
2992 eval "$ac_cv_use_gpe"
2993 if test "$no_cache" != 1; then
2994 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2995 fi
2996
2997 if test "$wxUSE_GPE" = yes; then
2998 echo "$as_me:$LINENO: result: yes" >&5
2999echo "${ECHO_T}yes" >&6
3000 else
3001 echo "$as_me:$LINENO: result: no" >&5
3002echo "${ECHO_T}no" >&6
3003 fi
3004
3005
3006
3007 echo "$as_me:$LINENO: checking for --with-libpng" >&5
3008echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
3009 no_cache=0
3010
3011# Check whether --with-libpng or --without-libpng was given.
3012if test "${with_libpng+set}" = set; then
3013 withval="$with_libpng"
3014
3015 if test "$withval" = yes; then
3016 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
3017 elif test "$withval" = no; then
3018 ac_cv_use_libpng='wxUSE_LIBPNG=no'
3019 elif test "$withval" = sys; then
3020 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
3021 elif test "$withval" = builtin; then
3022 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
3023 else
3024 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3025echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3026 { (exit 1); exit 1; }; }
3027 fi
3028
3029else
3030
3031 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
3032 if test "x$LINE" != x ; then
3033 eval "DEFAULT_$LINE"
3034 else
3035 no_cache=1
3036 fi
3037
3038 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
3039
3040fi;
3041
3042 eval "$ac_cv_use_libpng"
3043 if test "$no_cache" != 1; then
3044 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
3045 fi
3046
3047 if test "$wxUSE_LIBPNG" = yes; then
3048 echo "$as_me:$LINENO: result: yes" >&5
3049echo "${ECHO_T}yes" >&6
3050 elif test "$wxUSE_LIBPNG" = no; then
3051 echo "$as_me:$LINENO: result: no" >&5
3052echo "${ECHO_T}no" >&6
3053 elif test "$wxUSE_LIBPNG" = sys; then
3054 echo "$as_me:$LINENO: result: system version" >&5
3055echo "${ECHO_T}system version" >&6
3056 elif test "$wxUSE_LIBPNG" = builtin; then
3057 echo "$as_me:$LINENO: result: builtin version" >&5
3058echo "${ECHO_T}builtin version" >&6
3059 else
3060 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3061echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3062 { (exit 1); exit 1; }; }
3063 fi
3064
3065
3066 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3067echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
3068 no_cache=0
3069
3070# Check whether --with-libjpeg or --without-libjpeg was given.
3071if test "${with_libjpeg+set}" = set; then
3072 withval="$with_libjpeg"
3073
3074 if test "$withval" = yes; then
3075 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3076 elif test "$withval" = no; then
3077 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3078 elif test "$withval" = sys; then
3079 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3080 elif test "$withval" = builtin; then
3081 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3082 else
3083 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3084echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3085 { (exit 1); exit 1; }; }
3086 fi
3087
3088else
3089
3090 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
3091 if test "x$LINE" != x ; then
3092 eval "DEFAULT_$LINE"
3093 else
3094 no_cache=1
3095 fi
3096
3097 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
3098
3099fi;
3100
3101 eval "$ac_cv_use_libjpeg"
3102 if test "$no_cache" != 1; then
3103 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3104 fi
3105
3106 if test "$wxUSE_LIBJPEG" = yes; then
3107 echo "$as_me:$LINENO: result: yes" >&5
3108echo "${ECHO_T}yes" >&6
3109 elif test "$wxUSE_LIBJPEG" = no; then
3110 echo "$as_me:$LINENO: result: no" >&5
3111echo "${ECHO_T}no" >&6
3112 elif test "$wxUSE_LIBJPEG" = sys; then
3113 echo "$as_me:$LINENO: result: system version" >&5
3114echo "${ECHO_T}system version" >&6
3115 elif test "$wxUSE_LIBJPEG" = builtin; then
3116 echo "$as_me:$LINENO: result: builtin version" >&5
3117echo "${ECHO_T}builtin version" >&6
3118 else
3119 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3120echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3121 { (exit 1); exit 1; }; }
3122 fi
3123
3124
3125 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3126echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
3127 no_cache=0
3128
3129# Check whether --with-libtiff or --without-libtiff was given.
3130if test "${with_libtiff+set}" = set; then
3131 withval="$with_libtiff"
3132
3133 if test "$withval" = yes; then
3134 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3135 elif test "$withval" = no; then
3136 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
3137 elif test "$withval" = sys; then
3138 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3139 elif test "$withval" = builtin; then
3140 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3141 else
3142 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3143echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3144 { (exit 1); exit 1; }; }
3145 fi
3146
3147else
3148
3149 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3150 if test "x$LINE" != x ; then
3151 eval "DEFAULT_$LINE"
3152 else
3153 no_cache=1
3154 fi
3155
3156 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3157
3158fi;
3159
3160 eval "$ac_cv_use_libtiff"
3161 if test "$no_cache" != 1; then
3162 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3163 fi
3164
3165 if test "$wxUSE_LIBTIFF" = yes; then
3166 echo "$as_me:$LINENO: result: yes" >&5
3167echo "${ECHO_T}yes" >&6
3168 elif test "$wxUSE_LIBTIFF" = no; then
3169 echo "$as_me:$LINENO: result: no" >&5
3170echo "${ECHO_T}no" >&6
3171 elif test "$wxUSE_LIBTIFF" = sys; then
3172 echo "$as_me:$LINENO: result: system version" >&5
3173echo "${ECHO_T}system version" >&6
3174 elif test "$wxUSE_LIBTIFF" = builtin; then
3175 echo "$as_me:$LINENO: result: builtin version" >&5
3176echo "${ECHO_T}builtin version" >&6
3177 else
3178 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3179echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3180 { (exit 1); exit 1; }; }
3181 fi
3182
3183
3184 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3185echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3186 no_cache=0
3187
3188# Check whether --with-libxpm or --without-libxpm was given.
3189if test "${with_libxpm+set}" = set; then
3190 withval="$with_libxpm"
3191
3192 if test "$withval" = yes; then
3193 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3194 elif test "$withval" = no; then
3195 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3196 elif test "$withval" = sys; then
3197 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3198 elif test "$withval" = builtin; then
3199 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3200 else
3201 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3202echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3203 { (exit 1); exit 1; }; }
3204 fi
3205
3206else
3207
3208 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3209 if test "x$LINE" != x ; then
3210 eval "DEFAULT_$LINE"
3211 else
3212 no_cache=1
3213 fi
3214
3215 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3216
3217fi;
3218
3219 eval "$ac_cv_use_libxpm"
3220 if test "$no_cache" != 1; then
3221 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3222 fi
3223
3224 if test "$wxUSE_LIBXPM" = yes; then
3225 echo "$as_me:$LINENO: result: yes" >&5
3226echo "${ECHO_T}yes" >&6
3227 elif test "$wxUSE_LIBXPM" = no; then
3228 echo "$as_me:$LINENO: result: no" >&5
3229echo "${ECHO_T}no" >&6
3230 elif test "$wxUSE_LIBXPM" = sys; then
3231 echo "$as_me:$LINENO: result: system version" >&5
3232echo "${ECHO_T}system version" >&6
3233 elif test "$wxUSE_LIBXPM" = builtin; then
3234 echo "$as_me:$LINENO: result: builtin version" >&5
3235echo "${ECHO_T}builtin version" >&6
3236 else
3237 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3238echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3239 { (exit 1); exit 1; }; }
3240 fi
3241
3242
1c14217d
VZ
3243 withstring=
3244 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3245echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3246 no_cache=0
3247
3248# Check whether --with-libmspack or --without-libmspack was given.
3249if test "${with_libmspack+set}" = set; then
3250 withval="$with_libmspack"
3251
3252 if test "$withval" = yes; then
3253 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3254 else
3255 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3256 fi
3257
3258else
3259
3260 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3261 if test "x$LINE" != x ; then
3262 eval "DEFAULT_$LINE"
3263 else
3264 no_cache=1
3265 fi
3266
3267 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3268
3269fi;
3270
3271 eval "$ac_cv_use_libmspack"
3272 if test "$no_cache" != 1; then
3273 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3274 fi
3275
3276 if test "$wxUSE_LIBMSPACK" = yes; then
3277 echo "$as_me:$LINENO: result: yes" >&5
3278echo "${ECHO_T}yes" >&6
3279 else
3280 echo "$as_me:$LINENO: result: no" >&5
3281echo "${ECHO_T}no" >&6
3282 fi
3283
3284
1c14217d
VZ
3285 withstring=
3286 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3287echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3288 no_cache=0
3289
3290# Check whether --with-sdl or --without-sdl was given.
3291if test "${with_sdl+set}" = set; then
3292 withval="$with_sdl"
3293
3294 if test "$withval" = yes; then
3295 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3296 else
3297 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3298 fi
3299
3300else
3301
3302 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3303 if test "x$LINE" != x ; then
3304 eval "DEFAULT_$LINE"
3305 else
3306 no_cache=1
3307 fi
3308
3309 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3310
3311fi;
3312
3313 eval "$ac_cv_use_sdl"
3314 if test "$no_cache" != 1; then
3315 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3316 fi
3317
3318 if test "$wxUSE_LIBSDL" = yes; then
3319 echo "$as_me:$LINENO: result: yes" >&5
3320echo "${ECHO_T}yes" >&6
3321 else
3322 echo "$as_me:$LINENO: result: no" >&5
3323echo "${ECHO_T}no" >&6
3324 fi
3325
3326
1c14217d
VZ
3327 withstring=
3328 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3329echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3330 no_cache=0
3331
3332# Check whether --with-gnomeprint or --without-gnomeprint was given.
3333if test "${with_gnomeprint+set}" = set; then
3334 withval="$with_gnomeprint"
3335
3336 if test "$withval" = yes; then
3337 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3338 else
3339 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3340 fi
3341
3342else
3343
3344 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3345 if test "x$LINE" != x ; then
3346 eval "DEFAULT_$LINE"
3347 else
3348 no_cache=1
3349 fi
3350
3351 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3352
3353fi;
3354
3355 eval "$ac_cv_use_gnomeprint"
3356 if test "$no_cache" != 1; then
3357 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3358 fi
3359
3360 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3361 echo "$as_me:$LINENO: result: yes" >&5
3362echo "${ECHO_T}yes" >&6
3363 else
3364 echo "$as_me:$LINENO: result: no" >&5
3365echo "${ECHO_T}no" >&6
3366 fi
3367
3368
2b850ae1
RR
3369 withstring=
3370 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3371echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3372 no_cache=0
3373
3374# Check whether --with-gnomevfs or --without-gnomevfs was given.
3375if test "${with_gnomevfs+set}" = set; then
3376 withval="$with_gnomevfs"
3377
3378 if test "$withval" = yes; then
3379 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3380 else
3381 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3382 fi
3383
3384else
3385
3386 LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3387 if test "x$LINE" != x ; then
3388 eval "DEFAULT_$LINE"
3389 else
3390 no_cache=1
3391 fi
3392
3393 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3394
3395fi;
3396
3397 eval "$ac_cv_use_gnomevfs"
3398 if test "$no_cache" != 1; then
3399 echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3400 fi
3401
3402 if test "$wxUSE_LIBGNOMEVFS" = yes; then
3403 echo "$as_me:$LINENO: result: yes" >&5
3404echo "${ECHO_T}yes" >&6
3405 else
3406 echo "$as_me:$LINENO: result: no" >&5
3407echo "${ECHO_T}no" >&6
3408 fi
3409
3410
3565d135
RR
3411 withstring=
3412 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3413echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3414 no_cache=0
3415
3416# Check whether --with-hildon or --without-hildon was given.
3417if test "${with_hildon+set}" = set; then
3418 withval="$with_hildon"
3419
3420 if test "$withval" = yes; then
3421 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3422 else
3423 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3424 fi
3425
3426else
3427
3428 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3429 if test "x$LINE" != x ; then
3430 eval "DEFAULT_$LINE"
3431 else
3432 no_cache=1
3433 fi
3434
3435 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3436
3437fi;
3438
3439 eval "$ac_cv_use_hildon"
3440 if test "$no_cache" != 1; then
3441 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3442 fi
3443
3444 if test "$wxUSE_LIBHILDON" = yes; then
3445 echo "$as_me:$LINENO: result: yes" >&5
3446echo "${ECHO_T}yes" >&6
3447 else
3448 echo "$as_me:$LINENO: result: no" >&5
3449echo "${ECHO_T}no" >&6
3450 fi
3451
3452
1c14217d
VZ
3453 withstring=
3454 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3455echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3456 no_cache=0
3457
3458# Check whether --with-opengl or --without-opengl was given.
3459if test "${with_opengl+set}" = set; then
3460 withval="$with_opengl"
3461
3462 if test "$withval" = yes; then
3463 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3464 else
3465 ac_cv_use_opengl='wxUSE_OPENGL=no'
3466 fi
3467
3468else
3469
3470 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3471 if test "x$LINE" != x ; then
3472 eval "DEFAULT_$LINE"
3473 else
3474 no_cache=1
3475 fi
3476
3477 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3478
3479fi;
3480
3481 eval "$ac_cv_use_opengl"
3482 if test "$no_cache" != 1; then
3483 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3484 fi
3485
3486 if test "$wxUSE_OPENGL" = yes; then
3487 echo "$as_me:$LINENO: result: yes" >&5
3488echo "${ECHO_T}yes" >&6
3489 else
3490 echo "$as_me:$LINENO: result: no" >&5
3491echo "${ECHO_T}no" >&6
3492 fi
3493
3494
4353a8df
VZ
3495if test "$wxUSE_UNIVERSAL" = "yes"; then
3496
3497# Check whether --with-themes or --without-themes was given.
3498if test "${with_themes+set}" = set; then
3499 withval="$with_themes"
3500 wxUNIV_THEMES="$withval"
3501fi;
3502fi
3503
a848cd7e
SC
3504fi
3505
3506
1c14217d
VZ
3507 withstring=
3508 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3509echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3510 no_cache=0
3511
3512# Check whether --with-dmalloc or --without-dmalloc was given.
3513if test "${with_dmalloc+set}" = set; then
3514 withval="$with_dmalloc"
3515
3516 if test "$withval" = yes; then
3517 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3518 else
3519 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3520 fi
3521
3522else
3523
3524 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3525 if test "x$LINE" != x ; then
3526 eval "DEFAULT_$LINE"
3527 else
3528 no_cache=1
3529 fi
3530
3531 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3532
3533fi;
3534
3535 eval "$ac_cv_use_dmalloc"
3536 if test "$no_cache" != 1; then
3537 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3538 fi
3539
3540 if test "$wxUSE_DMALLOC" = yes; then
3541 echo "$as_me:$LINENO: result: yes" >&5
3542echo "${ECHO_T}yes" >&6
3543 else
3544 echo "$as_me:$LINENO: result: no" >&5
3545echo "${ECHO_T}no" >&6
3546 fi
3547
3548
3549 echo "$as_me:$LINENO: checking for --with-regex" >&5
3550echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3551 no_cache=0
3552
3553# Check whether --with-regex or --without-regex was given.
3554if test "${with_regex+set}" = set; then
3555 withval="$with_regex"
3556
3557 if test "$withval" = yes; then
3558 ac_cv_use_regex='wxUSE_REGEX=yes'
3559 elif test "$withval" = no; then
3560 ac_cv_use_regex='wxUSE_REGEX=no'
3561 elif test "$withval" = sys; then
3562 ac_cv_use_regex='wxUSE_REGEX=sys'
3563 elif test "$withval" = builtin; then
3564 ac_cv_use_regex='wxUSE_REGEX=builtin'
3565 else
3566 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3567echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3568 { (exit 1); exit 1; }; }
3569 fi
3570
3571else
3572
3573 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3574 if test "x$LINE" != x ; then
3575 eval "DEFAULT_$LINE"
3576 else
3577 no_cache=1
3578 fi
3579
3580 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3581
3582fi;
3583
3584 eval "$ac_cv_use_regex"
3585 if test "$no_cache" != 1; then
3586 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3587 fi
3588
3589 if test "$wxUSE_REGEX" = yes; then
3590 echo "$as_me:$LINENO: result: yes" >&5
3591echo "${ECHO_T}yes" >&6
3592 elif test "$wxUSE_REGEX" = no; then
3593 echo "$as_me:$LINENO: result: no" >&5
3594echo "${ECHO_T}no" >&6
3595 elif test "$wxUSE_REGEX" = sys; then
3596 echo "$as_me:$LINENO: result: system version" >&5
3597echo "${ECHO_T}system version" >&6
3598 elif test "$wxUSE_REGEX" = builtin; then
3599 echo "$as_me:$LINENO: result: builtin version" >&5
3600echo "${ECHO_T}builtin version" >&6
3601 else
3602 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3603echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3604 { (exit 1); exit 1; }; }
3605 fi
3606
3607
3608 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3609echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3610 no_cache=0
3611
3612# Check whether --with-zlib or --without-zlib was given.
3613if test "${with_zlib+set}" = set; then
3614 withval="$with_zlib"
3615
3616 if test "$withval" = yes; then
3617 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3618 elif test "$withval" = no; then
3619 ac_cv_use_zlib='wxUSE_ZLIB=no'
3620 elif test "$withval" = sys; then
3621 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3622 elif test "$withval" = builtin; then
3623 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3624 else
3625 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3626echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3627 { (exit 1); exit 1; }; }
3628 fi
3629
3630else
3631
3632 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3633 if test "x$LINE" != x ; then
3634 eval "DEFAULT_$LINE"
3635 else
3636 no_cache=1
3637 fi
3638
3639 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3640
3641fi;
3642
3643 eval "$ac_cv_use_zlib"
3644 if test "$no_cache" != 1; then
3645 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3646 fi
3647
3648 if test "$wxUSE_ZLIB" = yes; then
3649 echo "$as_me:$LINENO: result: yes" >&5
3650echo "${ECHO_T}yes" >&6
3651 elif test "$wxUSE_ZLIB" = no; then
3652 echo "$as_me:$LINENO: result: no" >&5
3653echo "${ECHO_T}no" >&6
3654 elif test "$wxUSE_ZLIB" = sys; then
3655 echo "$as_me:$LINENO: result: system version" >&5
3656echo "${ECHO_T}system version" >&6
3657 elif test "$wxUSE_ZLIB" = builtin; then
3658 echo "$as_me:$LINENO: result: builtin version" >&5
3659echo "${ECHO_T}builtin version" >&6
3660 else
3661 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3662echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3663 { (exit 1); exit 1; }; }
3664 fi
3665
3666
3667 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3668echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3669 no_cache=0
3670
3671# Check whether --with-odbc or --without-odbc was given.
3672if test "${with_odbc+set}" = set; then
3673 withval="$with_odbc"
3674
3675 if test "$withval" = yes; then
3676 ac_cv_use_odbc='wxUSE_ODBC=yes'
3677 elif test "$withval" = no; then
3678 ac_cv_use_odbc='wxUSE_ODBC=no'
3679 elif test "$withval" = sys; then
3680 ac_cv_use_odbc='wxUSE_ODBC=sys'
3681 elif test "$withval" = builtin; then
3682 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3683 else
3684 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3685echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3686 { (exit 1); exit 1; }; }
3687 fi
3688
3689else
3690
3691 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3692 if test "x$LINE" != x ; then
3693 eval "DEFAULT_$LINE"
3694 else
3695 no_cache=1
3696 fi
3697
3698 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3699
3700fi;
3701
3702 eval "$ac_cv_use_odbc"
3703 if test "$no_cache" != 1; then
3704 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3705 fi
3706
3707 if test "$wxUSE_ODBC" = yes; then
3708 echo "$as_me:$LINENO: result: yes" >&5
3709echo "${ECHO_T}yes" >&6
3710 elif test "$wxUSE_ODBC" = no; then
3711 echo "$as_me:$LINENO: result: no" >&5
3712echo "${ECHO_T}no" >&6
3713 elif test "$wxUSE_ODBC" = sys; then
3714 echo "$as_me:$LINENO: result: system version" >&5
3715echo "${ECHO_T}system version" >&6
3716 elif test "$wxUSE_ODBC" = builtin; then
3717 echo "$as_me:$LINENO: result: builtin version" >&5
3718echo "${ECHO_T}builtin version" >&6
3719 else
3720 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3721echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3722 { (exit 1); exit 1; }; }
3723 fi
3724
3725
3726 echo "$as_me:$LINENO: checking for --with-expat" >&5
3727echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3728 no_cache=0
3729
3730# Check whether --with-expat or --without-expat was given.
3731if test "${with_expat+set}" = set; then
3732 withval="$with_expat"
3733
3734 if test "$withval" = yes; then
3735 ac_cv_use_expat='wxUSE_EXPAT=yes'
3736 elif test "$withval" = no; then
3737 ac_cv_use_expat='wxUSE_EXPAT=no'
3738 elif test "$withval" = sys; then
3739 ac_cv_use_expat='wxUSE_EXPAT=sys'
3740 elif test "$withval" = builtin; then
3741 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3742 else
3743 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3744echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3745 { (exit 1); exit 1; }; }
3746 fi
3747
3748else
3749
3750 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3751 if test "x$LINE" != x ; then
3752 eval "DEFAULT_$LINE"
3753 else
3754 no_cache=1
3755 fi
3756
3757 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3758
3759fi;
3760
3761 eval "$ac_cv_use_expat"
3762 if test "$no_cache" != 1; then
3763 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3764 fi
3765
3766 if test "$wxUSE_EXPAT" = yes; then
3767 echo "$as_me:$LINENO: result: yes" >&5
3768echo "${ECHO_T}yes" >&6
3769 elif test "$wxUSE_EXPAT" = no; then
3770 echo "$as_me:$LINENO: result: no" >&5
3771echo "${ECHO_T}no" >&6
3772 elif test "$wxUSE_EXPAT" = sys; then
3773 echo "$as_me:$LINENO: result: system version" >&5
3774echo "${ECHO_T}system version" >&6
3775 elif test "$wxUSE_EXPAT" = builtin; then
3776 echo "$as_me:$LINENO: result: builtin version" >&5
3777echo "${ECHO_T}builtin version" >&6
3778 else
3779 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3780echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3781 { (exit 1); exit 1; }; }
3782 fi
3783
3784
3785
3786
3787 enablestring=
3788 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3789echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3790 no_cache=0
3791 # Check whether --enable-shared or --disable-shared was given.
3792if test "${enable_shared+set}" = set; then
3793 enableval="$enable_shared"
3794
3795 if test "$enableval" = yes; then
3796 ac_cv_use_shared='wxUSE_SHARED=yes'
3797 else
3798 ac_cv_use_shared='wxUSE_SHARED=no'
3799 fi
3800
3801else
3802
3803 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3804 if test "x$LINE" != x ; then
3805 eval "DEFAULT_$LINE"
3806 else
3807 no_cache=1
3808 fi
3809
3810 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3811
3812fi;
3813
3814 eval "$ac_cv_use_shared"
3815 if test "$no_cache" != 1; then
3816 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3817 fi
3818
3819 if test "$wxUSE_SHARED" = yes; then
3820 echo "$as_me:$LINENO: result: yes" >&5
3821echo "${ECHO_T}yes" >&6
3822 else
3823 echo "$as_me:$LINENO: result: no" >&5
3824echo "${ECHO_T}no" >&6
3825 fi
3826
3827
3828 enablestring=
3829 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3830echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3831 no_cache=0
3832 # Check whether --enable-optimise or --disable-optimise was given.
3833if test "${enable_optimise+set}" = set; then
3834 enableval="$enable_optimise"
3835
3836 if test "$enableval" = yes; then
3837 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3838 else
3839 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3840 fi
3841
3842else
3843
3844 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3845 if test "x$LINE" != x ; then
3846 eval "DEFAULT_$LINE"
3847 else
3848 no_cache=1
3849 fi
3850
3851 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3852
3853fi;
3854
3855 eval "$ac_cv_use_optimise"
3856 if test "$no_cache" != 1; then
3857 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3858 fi
3859
3860 if test "$wxUSE_OPTIMISE" = yes; then
3861 echo "$as_me:$LINENO: result: yes" >&5
3862echo "${ECHO_T}yes" >&6
3863 else
3864 echo "$as_me:$LINENO: result: no" >&5
3865echo "${ECHO_T}no" >&6
3866 fi
3867
3868
3869 enablestring=
3870 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3871echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3872 no_cache=0
3873 # Check whether --enable-debug or --disable-debug was given.
3874if test "${enable_debug+set}" = set; then
3875 enableval="$enable_debug"
3876
3877 if test "$enableval" = yes; then
3878 ac_cv_use_debug='wxUSE_DEBUG=yes'
3879 else
3880 ac_cv_use_debug='wxUSE_DEBUG=no'
3881 fi
3882
3883else
3884
3885 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3886 if test "x$LINE" != x ; then
3887 eval "DEFAULT_$LINE"
3888 else
3889 no_cache=1
3890 fi
3891
3892 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3893
3894fi;
3895
3896 eval "$ac_cv_use_debug"
3897 if test "$no_cache" != 1; then
3898 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3899 fi
3900
3901 if test "$wxUSE_DEBUG" = yes; then
3902 echo "$as_me:$LINENO: result: yes" >&5
3903echo "${ECHO_T}yes" >&6
3904 else
3905 echo "$as_me:$LINENO: result: no" >&5
3906echo "${ECHO_T}no" >&6
3907 fi
3908
3909
3910 enablestring=
3911 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3912echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3913 no_cache=0
3914 # Check whether --enable-stl or --disable-stl was given.
3915if test "${enable_stl+set}" = set; then
3916 enableval="$enable_stl"
3917
3918 if test "$enableval" = yes; then
3919 ac_cv_use_stl='wxUSE_STL=yes'
3920 else
3921 ac_cv_use_stl='wxUSE_STL=no'
3922 fi
3923
3924else
3925
3926 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3927 if test "x$LINE" != x ; then
3928 eval "DEFAULT_$LINE"
3929 else
3930 no_cache=1
3931 fi
3932
3933 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3934
3935fi;
3936
3937 eval "$ac_cv_use_stl"
3938 if test "$no_cache" != 1; then
3939 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3940 fi
3941
3942 if test "$wxUSE_STL" = yes; then
3943 echo "$as_me:$LINENO: result: yes" >&5
3944echo "${ECHO_T}yes" >&6
3945 else
3946 echo "$as_me:$LINENO: result: no" >&5
3947echo "${ECHO_T}no" >&6
3948 fi
3949
3950if test "$USE_OS2" = "1"; then
69120ee4 3951 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3952
3953 enablestring=
3954 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3955echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3956 no_cache=0
3957 # Check whether --enable-omf or --disable-omf was given.
3958if test "${enable_omf+set}" = set; then
3959 enableval="$enable_omf"
3960
3961 if test "$enableval" = yes; then
3962 ac_cv_use_omf='wxUSE_OMF=yes'
3963 else
3964 ac_cv_use_omf='wxUSE_OMF=no'
3965 fi
3966
3967else
3968
3969 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3970 if test "x$LINE" != x ; then
3971 eval "DEFAULT_$LINE"
3972 else
3973 no_cache=1
3974 fi
3975
3976 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3977
3978fi;
3979
3980 eval "$ac_cv_use_omf"
3981 if test "$no_cache" != 1; then
3982 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3983 fi
3984
3985 if test "$wxUSE_OMF" = yes; then
3986 echo "$as_me:$LINENO: result: yes" >&5
3987echo "${ECHO_T}yes" >&6
3988 else
3989 echo "$as_me:$LINENO: result: no" >&5
3990echo "${ECHO_T}no" >&6
3991 fi
3992
3993fi
3994
3995if test "$wxUSE_DEBUG" = "yes"; then
3996 DEFAULT_wxUSE_DEBUG_FLAG=yes
3997 DEFAULT_wxUSE_DEBUG_INFO=yes
3998 BUILD=debug
3999elif test "$wxUSE_DEBUG" = "no"; then
4000 DEFAULT_wxUSE_DEBUG_FLAG=no
4001 DEFAULT_wxUSE_DEBUG_INFO=no
4002 BUILD=release
4003fi
4004
4005
4006 enablestring=
4007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4008echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
4009 no_cache=0
4010 # Check whether --enable-debug_flag or --disable-debug_flag was given.
4011if test "${enable_debug_flag+set}" = set; then
4012 enableval="$enable_debug_flag"
4013
4014 if test "$enableval" = yes; then
4015 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4016 else
4017 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4018 fi
4019
4020else
4021
4022 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
4023 if test "x$LINE" != x ; then
4024 eval "DEFAULT_$LINE"
4025 else
4026 no_cache=1
4027 fi
4028
4029 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
4030
4031fi;
4032
4033 eval "$ac_cv_use_debug_flag"
4034 if test "$no_cache" != 1; then
4035 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
4036 fi
4037
4038 if test "$wxUSE_DEBUG_FLAG" = yes; then
4039 echo "$as_me:$LINENO: result: yes" >&5
4040echo "${ECHO_T}yes" >&6
4041 else
4042 echo "$as_me:$LINENO: result: no" >&5
4043echo "${ECHO_T}no" >&6
4044 fi
4045
4046
4047 enablestring=
4048 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4049echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
4050 no_cache=0
4051 # Check whether --enable-debug_info or --disable-debug_info was given.
4052if test "${enable_debug_info+set}" = set; then
4053 enableval="$enable_debug_info"
4054
4055 if test "$enableval" = yes; then
4056 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4057 else
4058 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4059 fi
4060
4061else
4062
4063 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
4064 if test "x$LINE" != x ; then
4065 eval "DEFAULT_$LINE"
4066 else
4067 no_cache=1
4068 fi
4069
4070 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4071
4072fi;
4073
4074 eval "$ac_cv_use_debug_info"
4075 if test "$no_cache" != 1; then
4076 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4077 fi
4078
4079 if test "$wxUSE_DEBUG_INFO" = yes; then
4080 echo "$as_me:$LINENO: result: yes" >&5
4081echo "${ECHO_T}yes" >&6
4082 else
4083 echo "$as_me:$LINENO: result: no" >&5
4084echo "${ECHO_T}no" >&6
4085 fi
4086
4087
4088 enablestring=
4089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4090echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
4091 no_cache=0
4092 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
4093if test "${enable_debug_gdb+set}" = set; then
4094 enableval="$enable_debug_gdb"
4095
4096 if test "$enableval" = yes; then
4097 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4098 else
4099 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4100 fi
4101
4102else
4103
4104 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
4105 if test "x$LINE" != x ; then
4106 eval "DEFAULT_$LINE"
4107 else
4108 no_cache=1
4109 fi
4110
4111 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4112
4113fi;
4114
4115 eval "$ac_cv_use_debug_gdb"
4116 if test "$no_cache" != 1; then
4117 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4118 fi
4119
4120 if test "$wxUSE_DEBUG_GDB" = yes; then
4121 echo "$as_me:$LINENO: result: yes" >&5
4122echo "${ECHO_T}yes" >&6
4123 else
4124 echo "$as_me:$LINENO: result: no" >&5
4125echo "${ECHO_T}no" >&6
4126 fi
4127
4128
4129 enablestring=
4130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4131echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
4132 no_cache=0
4133 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
4134if test "${enable_debug_cntxt+set}" = set; then
4135 enableval="$enable_debug_cntxt"
4136
4137 if test "$enableval" = yes; then
4138 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4139 else
4140 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4141 fi
4142
4143else
4144
4145 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
4146 if test "x$LINE" != x ; then
4147 eval "DEFAULT_$LINE"
4148 else
4149 no_cache=1
4150 fi
4151
4152 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4153
4154fi;
4155
4156 eval "$ac_cv_use_debug_cntxt"
4157 if test "$no_cache" != 1; then
4158 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4159 fi
4160
4161 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4162 echo "$as_me:$LINENO: result: yes" >&5
4163echo "${ECHO_T}yes" >&6
4164 else
4165 echo "$as_me:$LINENO: result: no" >&5
4166echo "${ECHO_T}no" >&6
4167 fi
4168
4169
4170 enablestring=
4171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4172echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4173 no_cache=0
4174 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4175if test "${enable_mem_tracing+set}" = set; then
4176 enableval="$enable_mem_tracing"
4177
4178 if test "$enableval" = yes; then
4179 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4180 else
4181 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4182 fi
4183
4184else
4185
4186 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4187 if test "x$LINE" != x ; then
4188 eval "DEFAULT_$LINE"
4189 else
4190 no_cache=1
4191 fi
4192
4193 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4194
4195fi;
4196
4197 eval "$ac_cv_use_mem_tracing"
4198 if test "$no_cache" != 1; then
4199 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4200 fi
4201
4202 if test "$wxUSE_MEM_TRACING" = yes; then
4203 echo "$as_me:$LINENO: result: yes" >&5
4204echo "${ECHO_T}yes" >&6
4205 else
4206 echo "$as_me:$LINENO: result: no" >&5
4207echo "${ECHO_T}no" >&6
4208 fi
4209
4210
4211 enablestring=
4212 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4213echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4214 no_cache=0
4215 # Check whether --enable-profile or --disable-profile was given.
4216if test "${enable_profile+set}" = set; then
4217 enableval="$enable_profile"
4218
4219 if test "$enableval" = yes; then
4220 ac_cv_use_profile='wxUSE_PROFILE=yes'
4221 else
4222 ac_cv_use_profile='wxUSE_PROFILE=no'
4223 fi
4224
4225else
4226
4227 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4228 if test "x$LINE" != x ; then
4229 eval "DEFAULT_$LINE"
4230 else
4231 no_cache=1
4232 fi
4233
4234 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4235
4236fi;
4237
4238 eval "$ac_cv_use_profile"
4239 if test "$no_cache" != 1; then
4240 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4241 fi
4242
4243 if test "$wxUSE_PROFILE" = yes; then
4244 echo "$as_me:$LINENO: result: yes" >&5
4245echo "${ECHO_T}yes" >&6
4246 else
4247 echo "$as_me:$LINENO: result: no" >&5
4248echo "${ECHO_T}no" >&6
4249 fi
4250
4251
4252 enablestring=
4253 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4254echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4255 no_cache=0
4256 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4257if test "${enable_no_rtti+set}" = set; then
4258 enableval="$enable_no_rtti"
4259
4260 if test "$enableval" = yes; then
4261 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4262 else
4263 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4264 fi
4265
4266else
4267
4268 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4269 if test "x$LINE" != x ; then
4270 eval "DEFAULT_$LINE"
4271 else
4272 no_cache=1
4273 fi
4274
4275 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4276
4277fi;
4278
4279 eval "$ac_cv_use_no_rtti"
4280 if test "$no_cache" != 1; then
4281 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4282 fi
4283
4284 if test "$wxUSE_NO_RTTI" = yes; then
4285 echo "$as_me:$LINENO: result: yes" >&5
4286echo "${ECHO_T}yes" >&6
4287 else
4288 echo "$as_me:$LINENO: result: no" >&5
4289echo "${ECHO_T}no" >&6
4290 fi
4291
4292
4293 enablestring=
4294 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4295echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4296 no_cache=0
4297 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4298if test "${enable_no_exceptions+set}" = set; then
4299 enableval="$enable_no_exceptions"
4300
4301 if test "$enableval" = yes; then
4302 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4303 else
4304 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4305 fi
4306
4307else
4308
4309 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4310 if test "x$LINE" != x ; then
4311 eval "DEFAULT_$LINE"
4312 else
4313 no_cache=1
4314 fi
4315
4316 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4317
4318fi;
4319
4320 eval "$ac_cv_use_no_exceptions"
4321 if test "$no_cache" != 1; then
4322 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4323 fi
4324
4325 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4326 echo "$as_me:$LINENO: result: yes" >&5
4327echo "${ECHO_T}yes" >&6
4328 else
4329 echo "$as_me:$LINENO: result: no" >&5
4330echo "${ECHO_T}no" >&6
4331 fi
4332
4333
4334 enablestring=
4335 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4336echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4337 no_cache=0
4338 # Check whether --enable-permissive or --disable-permissive was given.
4339if test "${enable_permissive+set}" = set; then
4340 enableval="$enable_permissive"
4341
4342 if test "$enableval" = yes; then
4343 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4344 else
4345 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4346 fi
4347
4348else
4349
4350 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4351 if test "x$LINE" != x ; then
4352 eval "DEFAULT_$LINE"
4353 else
4354 no_cache=1
4355 fi
4356
4357 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4358
4359fi;
4360
4361 eval "$ac_cv_use_permissive"
4362 if test "$no_cache" != 1; then
4363 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4364 fi
4365
4366 if test "$wxUSE_PERMISSIVE" = yes; then
4367 echo "$as_me:$LINENO: result: yes" >&5
4368echo "${ECHO_T}yes" >&6
4369 else
4370 echo "$as_me:$LINENO: result: no" >&5
4371echo "${ECHO_T}no" >&6
4372 fi
4373
4374
4375 enablestring=
4376 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4377echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4378 no_cache=0
4379 # Check whether --enable-no_deps or --disable-no_deps was given.
4380if test "${enable_no_deps+set}" = set; then
4381 enableval="$enable_no_deps"
4382
4383 if test "$enableval" = yes; then
4384 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4385 else
4386 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4387 fi
4388
4389else
4390
4391 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4392 if test "x$LINE" != x ; then
4393 eval "DEFAULT_$LINE"
4394 else
4395 no_cache=1
4396 fi
4397
4398 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4399
4400fi;
4401
4402 eval "$ac_cv_use_no_deps"
4403 if test "$no_cache" != 1; then
4404 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4405 fi
4406
4407 if test "$wxUSE_NO_DEPS" = yes; then
4408 echo "$as_me:$LINENO: result: yes" >&5
4409echo "${ECHO_T}yes" >&6
4410 else
4411 echo "$as_me:$LINENO: result: no" >&5
4412echo "${ECHO_T}no" >&6
4413 fi
4414
4415
95768535 4416 enablestring=
7afc46ab
KO
4417 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4418echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4419 no_cache=0
4420 # Check whether --enable-universal_binary or --disable-universal_binary was given.
4421if test "${enable_universal_binary+set}" = set; then
4422 enableval="$enable_universal_binary"
4423
95768535 4424 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
7afc46ab
KO
4425
4426else
4427
4428 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4429 if test "x$LINE" != x ; then
4430 eval "DEFAULT_$LINE"
95768535 4431 wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
7afc46ab
KO
4432 else
4433 no_cache=1
95768535 4434 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
7afc46ab
KO
4435 fi
4436
7afc46ab
KO
4437fi;
4438
95768535 4439 eval "$wx_cv_use_universal_binary"
7afc46ab 4440 if test "$no_cache" != 1; then
95768535 4441 echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
7afc46ab
KO
4442 fi
4443
95768535
MW
4444 echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
4445echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6
7afc46ab
KO
4446
4447
a848cd7e 4448
dee1a63f
MB
4449 enablestring=enable
4450 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4451echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4452 no_cache=0
dee1a63f
MB
4453 # Check whether --enable-compat24 or --disable-compat24 was given.
4454if test "${enable_compat24+set}" = set; then
4455 enableval="$enable_compat24"
a848cd7e
SC
4456
4457 if test "$enableval" = yes; then
dee1a63f 4458 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4459 else
dee1a63f 4460 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4461 fi
4462
4463else
4464
dee1a63f 4465 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4466 if test "x$LINE" != x ; then
4467 eval "DEFAULT_$LINE"
4468 else
4469 no_cache=1
4470 fi
4471
dee1a63f 4472 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4473
4474fi;
4475
dee1a63f 4476 eval "$ac_cv_use_compat24"
a848cd7e 4477 if test "$no_cache" != 1; then
dee1a63f 4478 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4479 fi
4480
dee1a63f 4481 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4482 echo "$as_me:$LINENO: result: yes" >&5
4483echo "${ECHO_T}yes" >&6
4484 else
4485 echo "$as_me:$LINENO: result: no" >&5
4486echo "${ECHO_T}no" >&6
4487 fi
4488
4489
4490 enablestring=disable
dee1a63f
MB
4491 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4492echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4493 no_cache=0
dee1a63f
MB
4494 # Check whether --enable-compat26 or --disable-compat26 was given.
4495if test "${enable_compat26+set}" = set; then
4496 enableval="$enable_compat26"
a848cd7e
SC
4497
4498 if test "$enableval" = yes; then
dee1a63f 4499 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4500 else
dee1a63f 4501 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4502 fi
4503
4504else
4505
dee1a63f 4506 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4507 if test "x$LINE" != x ; then
4508 eval "DEFAULT_$LINE"
4509 else
4510 no_cache=1
4511 fi
4512
dee1a63f 4513 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4514
4515fi;
4516
dee1a63f 4517 eval "$ac_cv_use_compat26"
a848cd7e 4518 if test "$no_cache" != 1; then
dee1a63f 4519 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4520 fi
4521
dee1a63f 4522 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4523 echo "$as_me:$LINENO: result: yes" >&5
4524echo "${ECHO_T}yes" >&6
4525 else
4526 echo "$as_me:$LINENO: result: no" >&5
4527echo "${ECHO_T}no" >&6
4528 fi
4529
4530
ffa0583f
RL
4531
4532 enablestring=
4533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4534echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4535 no_cache=0
4536 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4537if test "${enable_rpath+set}" = set; then
4538 enableval="$enable_rpath"
ffa0583f
RL
4539
4540 if test "$enableval" = yes; then
4541 ac_cv_use_rpath='wxUSE_RPATH=yes'
4542 else
4543 ac_cv_use_rpath='wxUSE_RPATH=no'
4544 fi
4545
4546else
4547
4548 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4549 if test "x$LINE" != x ; then
4550 eval "DEFAULT_$LINE"
4551 else
4552 no_cache=1
4553 fi
4554
4555 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4556
a848cd7e
SC
4557fi;
4558
ffa0583f
RL
4559 eval "$ac_cv_use_rpath"
4560 if test "$no_cache" != 1; then
4561 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4562 fi
4563
4564 if test "$wxUSE_RPATH" = yes; then
4565 echo "$as_me:$LINENO: result: yes" >&5
4566echo "${ECHO_T}yes" >&6
4567 else
4568 echo "$as_me:$LINENO: result: no" >&5
4569echo "${ECHO_T}no" >&6
4570 fi
4571
a848cd7e
SC
4572
4573
4574
4575
4576 enablestring=
4577 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4578echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4579 no_cache=0
4580 # Check whether --enable-intl or --disable-intl was given.
4581if test "${enable_intl+set}" = set; then
4582 enableval="$enable_intl"
4583
4584 if test "$enableval" = yes; then
4585 ac_cv_use_intl='wxUSE_INTL=yes'
4586 else
4587 ac_cv_use_intl='wxUSE_INTL=no'
4588 fi
4589
4590else
4591
4592 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4593 if test "x$LINE" != x ; then
4594 eval "DEFAULT_$LINE"
4595 else
4596 no_cache=1
4597 fi
4598
4599 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4600
4601fi;
4602
4603 eval "$ac_cv_use_intl"
4604 if test "$no_cache" != 1; then
4605 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4606 fi
4607
4608 if test "$wxUSE_INTL" = yes; then
4609 echo "$as_me:$LINENO: result: yes" >&5
4610echo "${ECHO_T}yes" >&6
4611 else
4612 echo "$as_me:$LINENO: result: no" >&5
4613echo "${ECHO_T}no" >&6
4614 fi
4615
4616
4617 enablestring=
4618 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4619echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4620 no_cache=0
4621 # Check whether --enable-config or --disable-config was given.
4622if test "${enable_config+set}" = set; then
4623 enableval="$enable_config"
4624
4625 if test "$enableval" = yes; then
4626 ac_cv_use_config='wxUSE_CONFIG=yes'
4627 else
4628 ac_cv_use_config='wxUSE_CONFIG=no'
4629 fi
4630
4631else
4632
4633 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4634 if test "x$LINE" != x ; then
4635 eval "DEFAULT_$LINE"
4636 else
4637 no_cache=1
4638 fi
4639
4640 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4641
4642fi;
4643
4644 eval "$ac_cv_use_config"
4645 if test "$no_cache" != 1; then
4646 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4647 fi
4648
4649 if test "$wxUSE_CONFIG" = yes; then
4650 echo "$as_me:$LINENO: result: yes" >&5
4651echo "${ECHO_T}yes" >&6
4652 else
4653 echo "$as_me:$LINENO: result: no" >&5
4654echo "${ECHO_T}no" >&6
4655 fi
4656
4657
4658
4659 enablestring=
4660 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4661echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4662 no_cache=0
4663 # Check whether --enable-protocols or --disable-protocols was given.
4664if test "${enable_protocols+set}" = set; then
4665 enableval="$enable_protocols"
4666
4667 if test "$enableval" = yes; then
4668 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4669 else
4670 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4671 fi
4672
4673else
4674
4675 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4676 if test "x$LINE" != x ; then
4677 eval "DEFAULT_$LINE"
4678 else
4679 no_cache=1
4680 fi
4681
4682 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4683
4684fi;
4685
4686 eval "$ac_cv_use_protocols"
4687 if test "$no_cache" != 1; then
4688 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4689 fi
4690
4691 if test "$wxUSE_PROTOCOL" = yes; then
4692 echo "$as_me:$LINENO: result: yes" >&5
4693echo "${ECHO_T}yes" >&6
4694 else
4695 echo "$as_me:$LINENO: result: no" >&5
4696echo "${ECHO_T}no" >&6
4697 fi
4698
4699
4700 enablestring=
4701 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4702echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4703 no_cache=0
4704 # Check whether --enable-ftp or --disable-ftp was given.
4705if test "${enable_ftp+set}" = set; then
4706 enableval="$enable_ftp"
4707
4708 if test "$enableval" = yes; then
4709 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4710 else
4711 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4712 fi
4713
4714else
4715
4716 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4717 if test "x$LINE" != x ; then
4718 eval "DEFAULT_$LINE"
4719 else
4720 no_cache=1
4721 fi
4722
4723 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4724
4725fi;
4726
4727 eval "$ac_cv_use_ftp"
4728 if test "$no_cache" != 1; then
4729 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4730 fi
4731
4732 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4733 echo "$as_me:$LINENO: result: yes" >&5
4734echo "${ECHO_T}yes" >&6
4735 else
4736 echo "$as_me:$LINENO: result: no" >&5
4737echo "${ECHO_T}no" >&6
4738 fi
4739
4740
4741 enablestring=
4742 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4743echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4744 no_cache=0
4745 # Check whether --enable-http or --disable-http was given.
4746if test "${enable_http+set}" = set; then
4747 enableval="$enable_http"
4748
4749 if test "$enableval" = yes; then
4750 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4751 else
4752 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4753 fi
4754
4755else
4756
4757 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4758 if test "x$LINE" != x ; then
4759 eval "DEFAULT_$LINE"
4760 else
4761 no_cache=1
4762 fi
4763
4764 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4765
4766fi;
4767
4768 eval "$ac_cv_use_http"
4769 if test "$no_cache" != 1; then
4770 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4771 fi
4772
4773 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4774 echo "$as_me:$LINENO: result: yes" >&5
4775echo "${ECHO_T}yes" >&6
4776 else
4777 echo "$as_me:$LINENO: result: no" >&5
4778echo "${ECHO_T}no" >&6
4779 fi
4780
4781
4782 enablestring=
4783 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4784echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4785 no_cache=0
4786 # Check whether --enable-fileproto or --disable-fileproto was given.
4787if test "${enable_fileproto+set}" = set; then
4788 enableval="$enable_fileproto"
4789
4790 if test "$enableval" = yes; then
4791 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4792 else
4793 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4794 fi
4795
4796else
4797
4798 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4799 if test "x$LINE" != x ; then
4800 eval "DEFAULT_$LINE"
4801 else
4802 no_cache=1
4803 fi
4804
4805 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4806
4807fi;
4808
4809 eval "$ac_cv_use_fileproto"
4810 if test "$no_cache" != 1; then
4811 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4812 fi
4813
4814 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4815 echo "$as_me:$LINENO: result: yes" >&5
4816echo "${ECHO_T}yes" >&6
4817 else
4818 echo "$as_me:$LINENO: result: no" >&5
4819echo "${ECHO_T}no" >&6
4820 fi
4821
4822
4823 enablestring=
4824 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4825echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4826 no_cache=0
4827 # Check whether --enable-sockets or --disable-sockets was given.
4828if test "${enable_sockets+set}" = set; then
4829 enableval="$enable_sockets"
4830
4831 if test "$enableval" = yes; then
4832 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4833 else
4834 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4835 fi
4836
4837else
4838
4839 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4840 if test "x$LINE" != x ; then
4841 eval "DEFAULT_$LINE"
4842 else
4843 no_cache=1
4844 fi
4845
4846 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4847
4848fi;
4849
4850 eval "$ac_cv_use_sockets"
4851 if test "$no_cache" != 1; then
4852 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4853 fi
4854
4855 if test "$wxUSE_SOCKETS" = yes; then
4856 echo "$as_me:$LINENO: result: yes" >&5
4857echo "${ECHO_T}yes" >&6
4858 else
4859 echo "$as_me:$LINENO: result: no" >&5
4860echo "${ECHO_T}no" >&6
4861 fi
4862
4863
4864 enablestring=
4865 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4866echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4867 no_cache=0
4868 # Check whether --enable-ole or --disable-ole was given.
4869if test "${enable_ole+set}" = set; then
4870 enableval="$enable_ole"
4871
4872 if test "$enableval" = yes; then
4873 ac_cv_use_ole='wxUSE_OLE=yes'
4874 else
4875 ac_cv_use_ole='wxUSE_OLE=no'
4876 fi
4877
4878else
4879
4880 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4881 if test "x$LINE" != x ; then
4882 eval "DEFAULT_$LINE"
4883 else
4884 no_cache=1
4885 fi
4886
4887 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4888
4889fi;
4890
4891 eval "$ac_cv_use_ole"
4892 if test "$no_cache" != 1; then
4893 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4894 fi
4895
4896 if test "$wxUSE_OLE" = yes; then
4897 echo "$as_me:$LINENO: result: yes" >&5
4898echo "${ECHO_T}yes" >&6
4899 else
4900 echo "$as_me:$LINENO: result: no" >&5
4901echo "${ECHO_T}no" >&6
4902 fi
4903
4904
4905 enablestring=
4906 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4907echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4908 no_cache=0
4909 # Check whether --enable-dataobj or --disable-dataobj was given.
4910if test "${enable_dataobj+set}" = set; then
4911 enableval="$enable_dataobj"
4912
4913 if test "$enableval" = yes; then
4914 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4915 else
4916 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4917 fi
4918
4919else
4920
4921 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4922 if test "x$LINE" != x ; then
4923 eval "DEFAULT_$LINE"
4924 else
4925 no_cache=1
4926 fi
4927
4928 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4929
4930fi;
4931
4932 eval "$ac_cv_use_dataobj"
4933 if test "$no_cache" != 1; then
4934 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4935 fi
4936
4937 if test "$wxUSE_DATAOBJ" = yes; then
4938 echo "$as_me:$LINENO: result: yes" >&5
4939echo "${ECHO_T}yes" >&6
4940 else
4941 echo "$as_me:$LINENO: result: no" >&5
4942echo "${ECHO_T}no" >&6
4943 fi
4944
4945
4946
4947 enablestring=
4948 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4949echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4950 no_cache=0
4951 # Check whether --enable-ipc or --disable-ipc was given.
4952if test "${enable_ipc+set}" = set; then
4953 enableval="$enable_ipc"
4954
4955 if test "$enableval" = yes; then
4956 ac_cv_use_ipc='wxUSE_IPC=yes'
4957 else
4958 ac_cv_use_ipc='wxUSE_IPC=no'
4959 fi
4960
4961else
4962
4963 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4964 if test "x$LINE" != x ; then
4965 eval "DEFAULT_$LINE"
4966 else
4967 no_cache=1
4968 fi
4969
4970 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4971
4972fi;
4973
4974 eval "$ac_cv_use_ipc"
4975 if test "$no_cache" != 1; then
4976 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4977 fi
4978
4979 if test "$wxUSE_IPC" = yes; then
4980 echo "$as_me:$LINENO: result: yes" >&5
4981echo "${ECHO_T}yes" >&6
4982 else
4983 echo "$as_me:$LINENO: result: no" >&5
4984echo "${ECHO_T}no" >&6
4985 fi
4986
4987
4988
4989 enablestring=
4990 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4991echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4992 no_cache=0
4993 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4994if test "${enable_apple_ieee+set}" = set; then
4995 enableval="$enable_apple_ieee"
4996
4997 if test "$enableval" = yes; then
4998 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4999 else
5000 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
5001 fi
5002
5003else
5004
5005 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
5006 if test "x$LINE" != x ; then
5007 eval "DEFAULT_$LINE"
5008 else
5009 no_cache=1
5010 fi
5011
5012 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
5013
5014fi;
5015
5016 eval "$ac_cv_use_apple_ieee"
5017 if test "$no_cache" != 1; then
5018 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
5019 fi
5020
5021 if test "$wxUSE_APPLE_IEEE" = yes; then
5022 echo "$as_me:$LINENO: result: yes" >&5
5023echo "${ECHO_T}yes" >&6
5024 else
5025 echo "$as_me:$LINENO: result: no" >&5
5026echo "${ECHO_T}no" >&6
5027 fi
5028
5029
81f90336
MW
5030 enablestring=
5031 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
5032echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
5033 no_cache=0
5034 # Check whether --enable-arcstream or --disable-arcstream was given.
5035if test "${enable_arcstream+set}" = set; then
5036 enableval="$enable_arcstream"
5037
5038 if test "$enableval" = yes; then
9e8e867f 5039 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 5040 else
9e8e867f 5041 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
5042 fi
5043
5044else
5045
9e8e867f 5046 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
5047 if test "x$LINE" != x ; then
5048 eval "DEFAULT_$LINE"
5049 else
5050 no_cache=1
5051 fi
5052
9e8e867f 5053 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
5054
5055fi;
5056
5057 eval "$ac_cv_use_arcstream"
5058 if test "$no_cache" != 1; then
5059 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
5060 fi
5061
9e8e867f 5062 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
5063 echo "$as_me:$LINENO: result: yes" >&5
5064echo "${ECHO_T}yes" >&6
5065 else
5066 echo "$as_me:$LINENO: result: no" >&5
5067echo "${ECHO_T}no" >&6
5068 fi
5069
5070
f8f6c91a
MW
5071 enablestring=
5072 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backingfile" >&5
5073echo $ECHO_N "checking for --${enablestring:-enable}-backingfile... $ECHO_C" >&6
5074 no_cache=0
5075 # Check whether --enable-backingfile or --disable-backingfile was given.
5076if test "${enable_backingfile+set}" = set; then
5077 enableval="$enable_backingfile"
5078
5079 if test "$enableval" = yes; then
5080 ac_cv_use_backingfile='wxUSE_BACKINGFILE=yes'
5081 else
5082 ac_cv_use_backingfile='wxUSE_BACKINGFILE=no'
5083 fi
5084
5085else
5086
5087 LINE=`grep "wxUSE_BACKINGFILE" ${wx_arg_cache_file}`
5088 if test "x$LINE" != x ; then
5089 eval "DEFAULT_$LINE"
5090 else
5091 no_cache=1
5092 fi
5093
5094 ac_cv_use_backingfile='wxUSE_BACKINGFILE='$DEFAULT_wxUSE_BACKINGFILE
5095
5096fi;
5097
5098 eval "$ac_cv_use_backingfile"
5099 if test "$no_cache" != 1; then
5100 echo $ac_cv_use_backingfile >> ${wx_arg_cache_file}.tmp
5101 fi
5102
5103 if test "$wxUSE_BACKINGFILE" = yes; then
5104 echo "$as_me:$LINENO: result: yes" >&5
5105echo "${ECHO_T}yes" >&6
5106 else
5107 echo "$as_me:$LINENO: result: no" >&5
5108echo "${ECHO_T}no" >&6
5109 fi
5110
5111
a848cd7e 5112 enablestring=
36b6448c
VZ
5113 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5114echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 5115 no_cache=0
36b6448c
VZ
5116 # Check whether --enable-backtrace or --disable-backtrace was given.
5117if test "${enable_backtrace+set}" = set; then
5118 enableval="$enable_backtrace"
a848cd7e
SC
5119
5120 if test "$enableval" = yes; then
36b6448c 5121 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 5122 else
36b6448c 5123 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
5124 fi
5125
5126else
5127
36b6448c 5128 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
5129 if test "x$LINE" != x ; then
5130 eval "DEFAULT_$LINE"
5131 else
5132 no_cache=1
5133 fi
5134
36b6448c 5135 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
5136
5137fi;
5138
36b6448c 5139 eval "$ac_cv_use_backtrace"
a848cd7e 5140 if test "$no_cache" != 1; then
36b6448c 5141 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5142 fi
5143
36b6448c 5144 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
5145 echo "$as_me:$LINENO: result: yes" >&5
5146echo "${ECHO_T}yes" >&6
5147 else
5148 echo "$as_me:$LINENO: result: no" >&5
5149echo "${ECHO_T}no" >&6
5150 fi
5151
5152
eaff0f0d 5153 enablestring=
36b6448c
VZ
5154 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5155echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 5156 no_cache=0
36b6448c
VZ
5157 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5158if test "${enable_catch_segvs+set}" = set; then
5159 enableval="$enable_catch_segvs"
eaff0f0d
VZ
5160
5161 if test "$enableval" = yes; then
36b6448c 5162 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 5163 else
36b6448c 5164 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
5165 fi
5166
5167else
5168
36b6448c 5169 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
5170 if test "x$LINE" != x ; then
5171 eval "DEFAULT_$LINE"
5172 else
5173 no_cache=1
5174 fi
5175
36b6448c 5176 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
5177
5178fi;
5179
36b6448c 5180 eval "$ac_cv_use_catch_segvs"
eaff0f0d 5181 if test "$no_cache" != 1; then
36b6448c 5182 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
5183 fi
5184
36b6448c 5185 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
5186 echo "$as_me:$LINENO: result: yes" >&5
5187echo "${ECHO_T}yes" >&6
5188 else
5189 echo "$as_me:$LINENO: result: no" >&5
5190echo "${ECHO_T}no" >&6
5191 fi
5192
5193
a848cd7e
SC
5194 enablestring=
5195 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5196echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5197 no_cache=0
5198 # Check whether --enable-cmdline or --disable-cmdline was given.
5199if test "${enable_cmdline+set}" = set; then
5200 enableval="$enable_cmdline"
5201
5202 if test "$enableval" = yes; then
5203 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5204 else
5205 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5206 fi
5207
5208else
5209
5210 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5211 if test "x$LINE" != x ; then
5212 eval "DEFAULT_$LINE"
5213 else
5214 no_cache=1
5215 fi
5216
5217 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5218
5219fi;
5220
5221 eval "$ac_cv_use_cmdline"
5222 if test "$no_cache" != 1; then
5223 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5224 fi
5225
5226 if test "$wxUSE_CMDLINE_PARSER" = yes; then
5227 echo "$as_me:$LINENO: result: yes" >&5
5228echo "${ECHO_T}yes" >&6
5229 else
5230 echo "$as_me:$LINENO: result: no" >&5
5231echo "${ECHO_T}no" >&6
5232 fi
5233
5234
5235 enablestring=
5236 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5237echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5238 no_cache=0
5239 # Check whether --enable-datetime or --disable-datetime was given.
5240if test "${enable_datetime+set}" = set; then
5241 enableval="$enable_datetime"
5242
5243 if test "$enableval" = yes; then
5244 ac_cv_use_datetime='wxUSE_DATETIME=yes'
5245 else
5246 ac_cv_use_datetime='wxUSE_DATETIME=no'
5247 fi
5248
5249else
5250
5251 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5252 if test "x$LINE" != x ; then
5253 eval "DEFAULT_$LINE"
5254 else
5255 no_cache=1
5256 fi
5257
5258 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5259
5260fi;
5261
5262 eval "$ac_cv_use_datetime"
5263 if test "$no_cache" != 1; then
5264 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5265 fi
5266
5267 if test "$wxUSE_DATETIME" = yes; then
5268 echo "$as_me:$LINENO: result: yes" >&5
5269echo "${ECHO_T}yes" >&6
5270 else
5271 echo "$as_me:$LINENO: result: no" >&5
5272echo "${ECHO_T}no" >&6
5273 fi
5274
5275
36b6448c
VZ
5276 enablestring=
5277 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5278echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5279 no_cache=0
5280 # Check whether --enable-debugreport or --disable-debugreport was given.
5281if test "${enable_debugreport+set}" = set; then
5282 enableval="$enable_debugreport"
5283
5284 if test "$enableval" = yes; then
5285 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5286 else
5287 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5288 fi
5289
5290else
5291
5292 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5293 if test "x$LINE" != x ; then
5294 eval "DEFAULT_$LINE"
5295 else
5296 no_cache=1
5297 fi
5298
5299 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5300
5301fi;
5302
5303 eval "$ac_cv_use_debugreport"
5304 if test "$no_cache" != 1; then
5305 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5306 fi
5307
5308 if test "$wxUSE_DEBUGREPORT" = yes; then
5309 echo "$as_me:$LINENO: result: yes" >&5
5310echo "${ECHO_T}yes" >&6
5311 else
5312 echo "$as_me:$LINENO: result: no" >&5
5313echo "${ECHO_T}no" >&6
5314 fi
5315
5316
a848cd7e
SC
5317 enablestring=
5318 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5319echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5320 no_cache=0
5321 # Check whether --enable-dialupman or --disable-dialupman was given.
5322if test "${enable_dialupman+set}" = set; then
5323 enableval="$enable_dialupman"
5324
5325 if test "$enableval" = yes; then
5326 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5327 else
5328 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5329 fi
5330
5331else
5332
5333 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5334 if test "x$LINE" != x ; then
5335 eval "DEFAULT_$LINE"
5336 else
5337 no_cache=1
5338 fi
5339
5340 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5341
5342fi;
5343
5344 eval "$ac_cv_use_dialupman"
5345 if test "$no_cache" != 1; then
5346 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5347 fi
5348
5349 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5350 echo "$as_me:$LINENO: result: yes" >&5
5351echo "${ECHO_T}yes" >&6
5352 else
5353 echo "$as_me:$LINENO: result: no" >&5
5354echo "${ECHO_T}no" >&6
5355 fi
5356
5357
5358 enablestring=
5359 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5360echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5361 no_cache=0
5362 # Check whether --enable-dynlib or --disable-dynlib was given.
5363if test "${enable_dynlib+set}" = set; then
5364 enableval="$enable_dynlib"
5365
5366 if test "$enableval" = yes; then
5367 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5368 else
5369 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5370 fi
5371
5372else
5373
5374 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5375 if test "x$LINE" != x ; then
5376 eval "DEFAULT_$LINE"
5377 else
5378 no_cache=1
5379 fi
5380
5381 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5382
5383fi;
5384
5385 eval "$ac_cv_use_dynlib"
5386 if test "$no_cache" != 1; then
5387 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5388 fi
5389
5390 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5391 echo "$as_me:$LINENO: result: yes" >&5
5392echo "${ECHO_T}yes" >&6
5393 else
5394 echo "$as_me:$LINENO: result: no" >&5
5395echo "${ECHO_T}no" >&6
5396 fi
5397
5398
5399 enablestring=
5400 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5401echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5402 no_cache=0
5403 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5404if test "${enable_dynamicloader+set}" = set; then
5405 enableval="$enable_dynamicloader"
5406
5407 if test "$enableval" = yes; then
5408 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5409 else
5410 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5411 fi
5412
5413else
5414
5415 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5416 if test "x$LINE" != x ; then
5417 eval "DEFAULT_$LINE"
5418 else
5419 no_cache=1
5420 fi
5421
5422 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5423
5424fi;
5425
5426 eval "$ac_cv_use_dynamicloader"
5427 if test "$no_cache" != 1; then
5428 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5429 fi
5430
5431 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5432 echo "$as_me:$LINENO: result: yes" >&5
5433echo "${ECHO_T}yes" >&6
5434 else
5435 echo "$as_me:$LINENO: result: no" >&5
5436echo "${ECHO_T}no" >&6
5437 fi
5438
5439
5440 enablestring=
5441 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5442echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5443 no_cache=0
5444 # Check whether --enable-exceptions or --disable-exceptions was given.
5445if test "${enable_exceptions+set}" = set; then
5446 enableval="$enable_exceptions"
5447
5448 if test "$enableval" = yes; then
5449 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5450 else
5451 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5452 fi
5453
5454else
5455
5456 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5457 if test "x$LINE" != x ; then
5458 eval "DEFAULT_$LINE"
5459 else
5460 no_cache=1
5461 fi
5462
5463 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5464
5465fi;
5466
5467 eval "$ac_cv_use_exceptions"
5468 if test "$no_cache" != 1; then
5469 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5470 fi
5471
5472 if test "$wxUSE_EXCEPTIONS" = yes; then
5473 echo "$as_me:$LINENO: result: yes" >&5
5474echo "${ECHO_T}yes" >&6
5475 else
5476 echo "$as_me:$LINENO: result: no" >&5
5477echo "${ECHO_T}no" >&6
5478 fi
5479
5480
5481 enablestring=
5482 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5483echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5484 no_cache=0
5485 # Check whether --enable-ffile or --disable-ffile was given.
5486if test "${enable_ffile+set}" = set; then
5487 enableval="$enable_ffile"
5488
5489 if test "$enableval" = yes; then
5490 ac_cv_use_ffile='wxUSE_FFILE=yes'
5491 else
5492 ac_cv_use_ffile='wxUSE_FFILE=no'
5493 fi
5494
5495else
5496
5497 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5498 if test "x$LINE" != x ; then
5499 eval "DEFAULT_$LINE"
5500 else
5501 no_cache=1
5502 fi
5503
5504 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5505
5506fi;
5507
5508 eval "$ac_cv_use_ffile"
5509 if test "$no_cache" != 1; then
5510 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5511 fi
5512
5513 if test "$wxUSE_FFILE" = yes; then
5514 echo "$as_me:$LINENO: result: yes" >&5
5515echo "${ECHO_T}yes" >&6
5516 else
5517 echo "$as_me:$LINENO: result: no" >&5
5518echo "${ECHO_T}no" >&6
5519 fi
5520
5521
5522 enablestring=
5523 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5524echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5525 no_cache=0
5526 # Check whether --enable-file or --disable-file was given.
5527if test "${enable_file+set}" = set; then
5528 enableval="$enable_file"
5529
5530 if test "$enableval" = yes; then
5531 ac_cv_use_file='wxUSE_FILE=yes'
5532 else
5533 ac_cv_use_file='wxUSE_FILE=no'
5534 fi
5535
5536else
5537
5538 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5539 if test "x$LINE" != x ; then
5540 eval "DEFAULT_$LINE"
5541 else
5542 no_cache=1
5543 fi
5544
5545 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5546
5547fi;
5548
5549 eval "$ac_cv_use_file"
5550 if test "$no_cache" != 1; then
5551 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5552 fi
5553
5554 if test "$wxUSE_FILE" = yes; then
5555 echo "$as_me:$LINENO: result: yes" >&5
5556echo "${ECHO_T}yes" >&6
5557 else
5558 echo "$as_me:$LINENO: result: no" >&5
5559echo "${ECHO_T}no" >&6
5560 fi
5561
5562
5563 enablestring=
5564 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5565echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5566 no_cache=0
5567 # Check whether --enable-filesystem or --disable-filesystem was given.
5568if test "${enable_filesystem+set}" = set; then
5569 enableval="$enable_filesystem"
5570
5571 if test "$enableval" = yes; then
5572 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5573 else
5574 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5575 fi
5576
5577else
5578
5579 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5580 if test "x$LINE" != x ; then
5581 eval "DEFAULT_$LINE"
5582 else
5583 no_cache=1
5584 fi
5585
5586 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5587
5588fi;
5589
5590 eval "$ac_cv_use_filesystem"
5591 if test "$no_cache" != 1; then
5592 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5593 fi
5594
5595 if test "$wxUSE_FILESYSTEM" = yes; then
5596 echo "$as_me:$LINENO: result: yes" >&5
5597echo "${ECHO_T}yes" >&6
5598 else
5599 echo "$as_me:$LINENO: result: no" >&5
5600echo "${ECHO_T}no" >&6
5601 fi
5602
5603
5604 enablestring=
5605 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5606echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5607 no_cache=0
5608 # Check whether --enable-fontmap or --disable-fontmap was given.
5609if test "${enable_fontmap+set}" = set; then
5610 enableval="$enable_fontmap"
5611
5612 if test "$enableval" = yes; then
5613 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5614 else
5615 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5616 fi
5617
5618else
5619
5620 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5621 if test "x$LINE" != x ; then
5622 eval "DEFAULT_$LINE"
5623 else
5624 no_cache=1
5625 fi
5626
5627 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5628
5629fi;
5630
5631 eval "$ac_cv_use_fontmap"
5632 if test "$no_cache" != 1; then
5633 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5634 fi
5635
5636 if test "$wxUSE_FONTMAP" = yes; then
5637 echo "$as_me:$LINENO: result: yes" >&5
5638echo "${ECHO_T}yes" >&6
5639 else
5640 echo "$as_me:$LINENO: result: no" >&5
5641echo "${ECHO_T}no" >&6
5642 fi
5643
5644
26e422a9
MW
5645 enablestring=
5646 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
5647echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6
5648 no_cache=0
5649 # Check whether --enable-fs_archive or --disable-fs_archive was given.
5650if test "${enable_fs_archive+set}" = set; then
5651 enableval="$enable_fs_archive"
5652
5653 if test "$enableval" = yes; then
5654 ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
5655 else
5656 ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
5657 fi
5658
5659else
5660
5661 LINE=`grep "wxUSE_FS_ARCHIVE" ${wx_arg_cache_file}`
5662 if test "x$LINE" != x ; then
5663 eval "DEFAULT_$LINE"
5664 else
5665 no_cache=1
5666 fi
5667
5668 ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE='$DEFAULT_wxUSE_FS_ARCHIVE
5669
5670fi;
5671
5672 eval "$ac_cv_use_fs_archive"
5673 if test "$no_cache" != 1; then
5674 echo $ac_cv_use_fs_archive >> ${wx_arg_cache_file}.tmp
5675 fi
5676
5677 if test "$wxUSE_FS_ARCHIVE" = yes; then
5678 echo "$as_me:$LINENO: result: yes" >&5
5679echo "${ECHO_T}yes" >&6
5680 else
5681 echo "$as_me:$LINENO: result: no" >&5
5682echo "${ECHO_T}no" >&6
5683 fi
5684
5685
a848cd7e
SC
5686 enablestring=
5687 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5688echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5689 no_cache=0
5690 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5691if test "${enable_fs_inet+set}" = set; then
5692 enableval="$enable_fs_inet"
5693
5694 if test "$enableval" = yes; then
5695 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5696 else
5697 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5698 fi
5699
5700else
5701
5702 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5703 if test "x$LINE" != x ; then
5704 eval "DEFAULT_$LINE"
5705 else
5706 no_cache=1
5707 fi
5708
5709 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5710
5711fi;
5712
5713 eval "$ac_cv_use_fs_inet"
5714 if test "$no_cache" != 1; then
5715 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5716 fi
5717
5718 if test "$wxUSE_FS_INET" = yes; then
5719 echo "$as_me:$LINENO: result: yes" >&5
5720echo "${ECHO_T}yes" >&6
5721 else
5722 echo "$as_me:$LINENO: result: no" >&5
5723echo "${ECHO_T}no" >&6
5724 fi
5725
5726
5727 enablestring=
5728 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5729echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5730 no_cache=0
5731 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5732if test "${enable_fs_zip+set}" = set; then
5733 enableval="$enable_fs_zip"
5734
5735 if test "$enableval" = yes; then
5736 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5737 else
5738 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5739 fi
5740
5741else
5742
5743 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5744 if test "x$LINE" != x ; then
5745 eval "DEFAULT_$LINE"
5746 else
5747 no_cache=1
5748 fi
5749
5750 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5751
5752fi;
5753
5754 eval "$ac_cv_use_fs_zip"
5755 if test "$no_cache" != 1; then
5756 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5757 fi
5758
5759 if test "$wxUSE_FS_ZIP" = yes; then
5760 echo "$as_me:$LINENO: result: yes" >&5
5761echo "${ECHO_T}yes" >&6
5762 else
5763 echo "$as_me:$LINENO: result: no" >&5
5764echo "${ECHO_T}no" >&6
5765 fi
5766
5767
5768 enablestring=
5769 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5770echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5771 no_cache=0
5772 # Check whether --enable-geometry or --disable-geometry was given.
5773if test "${enable_geometry+set}" = set; then
5774 enableval="$enable_geometry"
5775
5776 if test "$enableval" = yes; then
5777 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5778 else
5779 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5780 fi
5781
5782else
5783
5784 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5785 if test "x$LINE" != x ; then
5786 eval "DEFAULT_$LINE"
5787 else
5788 no_cache=1
5789 fi
5790
5791 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5792
5793fi;
5794
5795 eval "$ac_cv_use_geometry"
5796 if test "$no_cache" != 1; then
5797 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5798 fi
5799
5800 if test "$wxUSE_GEOMETRY" = yes; then
5801 echo "$as_me:$LINENO: result: yes" >&5
5802echo "${ECHO_T}yes" >&6
5803 else
5804 echo "$as_me:$LINENO: result: no" >&5
5805echo "${ECHO_T}no" >&6
5806 fi
5807
5808
5809 enablestring=
5810 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5811echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5812 no_cache=0
5813 # Check whether --enable-log or --disable-log was given.
5814if test "${enable_log+set}" = set; then
5815 enableval="$enable_log"
5816
5817 if test "$enableval" = yes; then
5818 ac_cv_use_log='wxUSE_LOG=yes'
5819 else
5820 ac_cv_use_log='wxUSE_LOG=no'
5821 fi
5822
5823else
5824
5825 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5826 if test "x$LINE" != x ; then
5827 eval "DEFAULT_$LINE"
5828 else
5829 no_cache=1
5830 fi
5831
5832 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5833
5834fi;
5835
5836 eval "$ac_cv_use_log"
5837 if test "$no_cache" != 1; then
5838 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5839 fi
5840
5841 if test "$wxUSE_LOG" = yes; then
5842 echo "$as_me:$LINENO: result: yes" >&5
5843echo "${ECHO_T}yes" >&6
5844 else
5845 echo "$as_me:$LINENO: result: no" >&5
5846echo "${ECHO_T}no" >&6
5847 fi
5848
5849
5850 enablestring=
5851 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5852echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5853 no_cache=0
5854 # Check whether --enable-longlong or --disable-longlong was given.
5855if test "${enable_longlong+set}" = set; then
5856 enableval="$enable_longlong"
5857
5858 if test "$enableval" = yes; then
5859 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5860 else
5861 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5862 fi
5863
5864else
5865
5866 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5867 if test "x$LINE" != x ; then
5868 eval "DEFAULT_$LINE"
5869 else
5870 no_cache=1
5871 fi
5872
5873 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5874
5875fi;
5876
5877 eval "$ac_cv_use_longlong"
5878 if test "$no_cache" != 1; then
5879 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5880 fi
5881
5882 if test "$wxUSE_LONGLONG" = yes; then
5883 echo "$as_me:$LINENO: result: yes" >&5
5884echo "${ECHO_T}yes" >&6
5885 else
5886 echo "$as_me:$LINENO: result: no" >&5
5887echo "${ECHO_T}no" >&6
5888 fi
5889
5890
5891 enablestring=
5892 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5893echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5894 no_cache=0
5895 # Check whether --enable-mimetype or --disable-mimetype was given.
5896if test "${enable_mimetype+set}" = set; then
5897 enableval="$enable_mimetype"
5898
5899 if test "$enableval" = yes; then
5900 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5901 else
5902 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5903 fi
5904
5905else
5906
5907 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5908 if test "x$LINE" != x ; then
5909 eval "DEFAULT_$LINE"
5910 else
5911 no_cache=1
5912 fi
5913
5914 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5915
5916fi;
5917
5918 eval "$ac_cv_use_mimetype"
5919 if test "$no_cache" != 1; then
5920 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5921 fi
5922
5923 if test "$wxUSE_MIMETYPE" = yes; then
5924 echo "$as_me:$LINENO: result: yes" >&5
5925echo "${ECHO_T}yes" >&6
5926 else
5927 echo "$as_me:$LINENO: result: no" >&5
5928echo "${ECHO_T}no" >&6
5929 fi
5930
5931
5932 enablestring=
5933 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5934echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5935 no_cache=0
5936 # Check whether --enable-mslu or --disable-mslu was given.
5937if test "${enable_mslu+set}" = set; then
5938 enableval="$enable_mslu"
5939
5940 if test "$enableval" = yes; then
5941 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5942 else
5943 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5944 fi
5945
5946else
5947
5948 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5949 if test "x$LINE" != x ; then
5950 eval "DEFAULT_$LINE"
5951 else
5952 no_cache=1
5953 fi
5954
5955 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5956
5957fi;
5958
5959 eval "$ac_cv_use_mslu"
5960 if test "$no_cache" != 1; then
5961 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5962 fi
5963
5964 if test "$wxUSE_UNICODE_MSLU" = yes; then
5965 echo "$as_me:$LINENO: result: yes" >&5
5966echo "${ECHO_T}yes" >&6
5967 else
5968 echo "$as_me:$LINENO: result: no" >&5
5969echo "${ECHO_T}no" >&6
5970 fi
5971
5972
5973 enablestring=
5974 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5975echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5976 no_cache=0
5977 # Check whether --enable-snglinst or --disable-snglinst was given.
5978if test "${enable_snglinst+set}" = set; then
5979 enableval="$enable_snglinst"
5980
5981 if test "$enableval" = yes; then
5982 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5983 else
5984 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5985 fi
5986
5987else
5988
5989 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5990 if test "x$LINE" != x ; then
5991 eval "DEFAULT_$LINE"
5992 else
5993 no_cache=1
5994 fi
5995
5996 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5997
5998fi;
5999
6000 eval "$ac_cv_use_snglinst"
6001 if test "$no_cache" != 1; then
6002 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
6003 fi
6004
6005 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
6006 echo "$as_me:$LINENO: result: yes" >&5
6007echo "${ECHO_T}yes" >&6
6008 else
6009 echo "$as_me:$LINENO: result: no" >&5
6010echo "${ECHO_T}no" >&6
6011 fi
6012
6013
6014 enablestring=
07158944
VZ
6015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
6016echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 6017 no_cache=0
07158944
VZ
6018 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
6019if test "${enable_std_iostreams+set}" = set; then
6020 enableval="$enable_std_iostreams"
a848cd7e
SC
6021
6022 if test "$enableval" = yes; then
07158944 6023 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 6024 else
07158944 6025 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
6026 fi
6027
6028else
6029
07158944 6030 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
6031 if test "x$LINE" != x ; then
6032 eval "DEFAULT_$LINE"
6033 else
6034 no_cache=1
6035 fi
6036
07158944 6037 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
6038
6039fi;
6040
07158944 6041 eval "$ac_cv_use_std_iostreams"
a848cd7e 6042 if test "$no_cache" != 1; then
07158944 6043 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6044 fi
6045
07158944 6046 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
6047 echo "$as_me:$LINENO: result: yes" >&5
6048echo "${ECHO_T}yes" >&6
6049 else
6050 echo "$as_me:$LINENO: result: no" >&5
6051echo "${ECHO_T}no" >&6
6052 fi
6053
6054
59746b65
MW
6055 enablestring=
6056 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
6057echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
6058 no_cache=0
6059 # Check whether --enable-std_string or --disable-std_string was given.
6060if test "${enable_std_string+set}" = set; then
6061 enableval="$enable_std_string"
6062
6063 if test "$enableval" = yes; then
6064 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
6065 else
6066 ac_cv_use_std_string='wxUSE_STD_STRING=no'
6067 fi
6068
6069else
6070
6071 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
6072 if test "x$LINE" != x ; then
6073 eval "DEFAULT_$LINE"
6074 else
6075 no_cache=1
6076 fi
6077
6078 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
6079
6080fi;
6081
6082 eval "$ac_cv_use_std_string"
6083 if test "$no_cache" != 1; then
6084 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
6085 fi
6086
6087 if test "$wxUSE_STD_STRING" = yes; then
6088 echo "$as_me:$LINENO: result: yes" >&5
6089echo "${ECHO_T}yes" >&6
6090 else
6091 echo "$as_me:$LINENO: result: no" >&5
6092echo "${ECHO_T}no" >&6
6093 fi
6094
6095
a848cd7e 6096 enablestring=
07158944
VZ
6097 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
6098echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 6099 no_cache=0
07158944
VZ
6100 # Check whether --enable-stdpaths or --disable-stdpaths was given.
6101if test "${enable_stdpaths+set}" = set; then
6102 enableval="$enable_stdpaths"
a848cd7e
SC
6103
6104 if test "$enableval" = yes; then
07158944 6105 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 6106 else
07158944 6107 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
6108 fi
6109
6110else
6111
07158944 6112 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
6113 if test "x$LINE" != x ; then
6114 eval "DEFAULT_$LINE"
6115 else
6116 no_cache=1
6117 fi
6118
07158944 6119 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
6120
6121fi;
6122
07158944 6123 eval "$ac_cv_use_stdpaths"
a848cd7e 6124 if test "$no_cache" != 1; then
07158944 6125 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6126 fi
6127
07158944 6128 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
6129 echo "$as_me:$LINENO: result: yes" >&5
6130echo "${ECHO_T}yes" >&6
6131 else
6132 echo "$as_me:$LINENO: result: no" >&5
6133echo "${ECHO_T}no" >&6
6134 fi
6135
6136
6137 enablestring=
6138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
6139echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
6140 no_cache=0
6141 # Check whether --enable-stopwatch or --disable-stopwatch was given.
6142if test "${enable_stopwatch+set}" = set; then
6143 enableval="$enable_stopwatch"
6144
6145 if test "$enableval" = yes; then
6146 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
6147 else
6148 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
6149 fi
6150
6151else
6152
6153 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
6154 if test "x$LINE" != x ; then
6155 eval "DEFAULT_$LINE"
6156 else
6157 no_cache=1
6158 fi
6159
6160 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
6161
6162fi;
6163
6164 eval "$ac_cv_use_stopwatch"
6165 if test "$no_cache" != 1; then
6166 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
6167 fi
6168
6169 if test "$wxUSE_STOPWATCH" = yes; then
6170 echo "$as_me:$LINENO: result: yes" >&5
6171echo "${ECHO_T}yes" >&6
6172 else
6173 echo "$as_me:$LINENO: result: no" >&5
6174echo "${ECHO_T}no" >&6
6175 fi
6176
6177
07158944
VZ
6178 enablestring=
6179 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
6180echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
6181 no_cache=0
6182 # Check whether --enable-streams or --disable-streams was given.
6183if test "${enable_streams+set}" = set; then
6184 enableval="$enable_streams"
6185
6186 if test "$enableval" = yes; then
6187 ac_cv_use_streams='wxUSE_STREAMS=yes'
6188 else
6189 ac_cv_use_streams='wxUSE_STREAMS=no'
6190 fi
6191
6192else
6193
6194 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
6195 if test "x$LINE" != x ; then
6196 eval "DEFAULT_$LINE"
6197 else
6198 no_cache=1
6199 fi
6200
6201 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6202
6203fi;
6204
6205 eval "$ac_cv_use_streams"
6206 if test "$no_cache" != 1; then
6207 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
6208 fi
6209
6210 if test "$wxUSE_STREAMS" = yes; then
6211 echo "$as_me:$LINENO: result: yes" >&5
6212echo "${ECHO_T}yes" >&6
6213 else
6214 echo "$as_me:$LINENO: result: no" >&5
6215echo "${ECHO_T}no" >&6
6216 fi
6217
6218
a848cd7e
SC
6219 enablestring=
6220 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
6221echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
6222 no_cache=0
6223 # Check whether --enable-system_options or --disable-system_options was given.
6224if test "${enable_system_options+set}" = set; then
6225 enableval="$enable_system_options"
6226
6227 if test "$enableval" = yes; then
6228 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6229 else
6230 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6231 fi
6232
6233else
6234
6235 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6236 if test "x$LINE" != x ; then
6237 eval "DEFAULT_$LINE"
6238 else
6239 no_cache=1
6240 fi
6241
6242 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6243
6244fi;
6245
6246 eval "$ac_cv_use_system_options"
6247 if test "$no_cache" != 1; then
6248 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6249 fi
6250
6251 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6252 echo "$as_me:$LINENO: result: yes" >&5
6253echo "${ECHO_T}yes" >&6
6254 else
6255 echo "$as_me:$LINENO: result: no" >&5
6256echo "${ECHO_T}no" >&6
6257 fi
6258
6259
26e422a9
MW
6260 enablestring=
6261 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
6262echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6
6263 no_cache=0
6264 # Check whether --enable-tarstream or --disable-tarstream was given.
6265if test "${enable_tarstream+set}" = set; then
6266 enableval="$enable_tarstream"
6267
6268 if test "$enableval" = yes; then
6269 ac_cv_use_tarstream='wxUSE_TARSTREAM=yes'
6270 else
6271 ac_cv_use_tarstream='wxUSE_TARSTREAM=no'
6272 fi
6273
6274else
6275
6276 LINE=`grep "wxUSE_TARSTREAM" ${wx_arg_cache_file}`
6277 if test "x$LINE" != x ; then
6278 eval "DEFAULT_$LINE"
6279 else
6280 no_cache=1
6281 fi
6282
6283 ac_cv_use_tarstream='wxUSE_TARSTREAM='$DEFAULT_wxUSE_TARSTREAM
6284
6285fi;
6286
6287 eval "$ac_cv_use_tarstream"
6288 if test "$no_cache" != 1; then
6289 echo $ac_cv_use_tarstream >> ${wx_arg_cache_file}.tmp
6290 fi
6291
6292 if test "$wxUSE_TARSTREAM" = yes; then
6293 echo "$as_me:$LINENO: result: yes" >&5
6294echo "${ECHO_T}yes" >&6
6295 else
6296 echo "$as_me:$LINENO: result: no" >&5
6297echo "${ECHO_T}no" >&6
6298 fi
6299
6300
a848cd7e
SC
6301 enablestring=
6302 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6303echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6304 no_cache=0
6305 # Check whether --enable-textbuf or --disable-textbuf was given.
6306if test "${enable_textbuf+set}" = set; then
6307 enableval="$enable_textbuf"
6308
6309 if test "$enableval" = yes; then
6310 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6311 else
6312 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6313 fi
6314
6315else
6316
6317 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6318 if test "x$LINE" != x ; then
6319 eval "DEFAULT_$LINE"
6320 else
6321 no_cache=1
6322 fi
6323
6324 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6325
6326fi;
6327
6328 eval "$ac_cv_use_textbuf"
6329 if test "$no_cache" != 1; then
6330 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6331 fi
6332
6333 if test "$wxUSE_TEXTBUFFER" = yes; then
6334 echo "$as_me:$LINENO: result: yes" >&5
6335echo "${ECHO_T}yes" >&6
6336 else
6337 echo "$as_me:$LINENO: result: no" >&5
6338echo "${ECHO_T}no" >&6
6339 fi
6340
6341
6342 enablestring=
6343 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6344echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6345 no_cache=0
6346 # Check whether --enable-textfile or --disable-textfile was given.
6347if test "${enable_textfile+set}" = set; then
6348 enableval="$enable_textfile"
6349
6350 if test "$enableval" = yes; then
6351 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6352 else
6353 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6354 fi
6355
6356else
6357
6358 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6359 if test "x$LINE" != x ; then
6360 eval "DEFAULT_$LINE"
6361 else
6362 no_cache=1
6363 fi
6364
6365 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6366
6367fi;
6368
6369 eval "$ac_cv_use_textfile"
6370 if test "$no_cache" != 1; then
6371 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6372 fi
6373
6374 if test "$wxUSE_TEXTFILE" = yes; then
6375 echo "$as_me:$LINENO: result: yes" >&5
6376echo "${ECHO_T}yes" >&6
6377 else
6378 echo "$as_me:$LINENO: result: no" >&5
6379echo "${ECHO_T}no" >&6
6380 fi
6381
6382
6383 enablestring=
6384 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6385echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6386 no_cache=0
6387 # Check whether --enable-timer or --disable-timer was given.
6388if test "${enable_timer+set}" = set; then
6389 enableval="$enable_timer"
6390
6391 if test "$enableval" = yes; then
6392 ac_cv_use_timer='wxUSE_TIMER=yes'
6393 else
6394 ac_cv_use_timer='wxUSE_TIMER=no'
6395 fi
6396
6397else
6398
6399 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6400 if test "x$LINE" != x ; then
6401 eval "DEFAULT_$LINE"
6402 else
6403 no_cache=1
6404 fi
6405
6406 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6407
6408fi;
6409
6410 eval "$ac_cv_use_timer"
6411 if test "$no_cache" != 1; then
6412 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6413 fi
6414
6415 if test "$wxUSE_TIMER" = yes; then
6416 echo "$as_me:$LINENO: result: yes" >&5
6417echo "${ECHO_T}yes" >&6
6418 else
6419 echo "$as_me:$LINENO: result: no" >&5
6420echo "${ECHO_T}no" >&6
6421 fi
6422
6423
6424 enablestring=
6425 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6426echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6427 no_cache=0
6428 # Check whether --enable-unicode or --disable-unicode was given.
6429if test "${enable_unicode+set}" = set; then
6430 enableval="$enable_unicode"
6431
6432 if test "$enableval" = yes; then
6433 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6434 else
6435 ac_cv_use_unicode='wxUSE_UNICODE=no'
6436 fi
6437
6438else
6439
6440 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6441 if test "x$LINE" != x ; then
6442 eval "DEFAULT_$LINE"
6443 else
6444 no_cache=1
6445 fi
6446
6447 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6448
6449fi;
6450
6451 eval "$ac_cv_use_unicode"
6452 if test "$no_cache" != 1; then
6453 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6454 fi
6455
6456 if test "$wxUSE_UNICODE" = yes; then
6457 echo "$as_me:$LINENO: result: yes" >&5
6458echo "${ECHO_T}yes" >&6
6459 else
6460 echo "$as_me:$LINENO: result: no" >&5
6461echo "${ECHO_T}no" >&6
6462 fi
6463
6464
6465 enablestring=
6466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6467echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6468 no_cache=0
6469 # Check whether --enable-sound or --disable-sound was given.
6470if test "${enable_sound+set}" = set; then
6471 enableval="$enable_sound"
6472
6473 if test "$enableval" = yes; then
6474 ac_cv_use_sound='wxUSE_SOUND=yes'
6475 else
6476 ac_cv_use_sound='wxUSE_SOUND=no'
6477 fi
6478
6479else
6480
6481 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6482 if test "x$LINE" != x ; then
6483 eval "DEFAULT_$LINE"
6484 else
6485 no_cache=1
6486 fi
6487
6488 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6489
6490fi;
6491
6492 eval "$ac_cv_use_sound"
6493 if test "$no_cache" != 1; then
6494 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6495 fi
6496
6497 if test "$wxUSE_SOUND" = yes; then
6498 echo "$as_me:$LINENO: result: yes" >&5
6499echo "${ECHO_T}yes" >&6
6500 else
6501 echo "$as_me:$LINENO: result: no" >&5
6502echo "${ECHO_T}no" >&6
6503 fi
6504
6505
3b57de8b
RL
6506 enablestring=
6507 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6508echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6509 no_cache=0
6510 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6511if test "${enable_mediactrl+set}" = set; then
6512 enableval="$enable_mediactrl"
6513
6514 if test "$enableval" = yes; then
6515 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6516 else
6517 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6518 fi
6519
6520else
6521
6522 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6523 if test "x$LINE" != x ; then
6524 eval "DEFAULT_$LINE"
6525 else
6526 no_cache=1
6527 fi
6528
6529 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6530
6531fi;
6532
6533 eval "$ac_cv_use_mediactrl"
6534 if test "$no_cache" != 1; then
6535 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6536 fi
6537
6538 if test "$wxUSE_MEDIACTRL" = yes; then
6539 echo "$as_me:$LINENO: result: yes" >&5
6540echo "${ECHO_T}yes" >&6
6541 else
6542 echo "$as_me:$LINENO: result: no" >&5
6543echo "${ECHO_T}no" >&6
6544 fi
6545
6546
f10e38c4
VZ
6547 enablestring=
6548 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6549echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6550 no_cache=0
6551 # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6552if test "${enable_gstreamer8+set}" = set; then
6553 enableval="$enable_gstreamer8"
6554
6555 if test "$enableval" = yes; then
6556 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6557 else
6558 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6559 fi
6560
6561else
6562
6563 LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6564 if test "x$LINE" != x ; then
6565 eval "DEFAULT_$LINE"
6566 else
6567 no_cache=1
6568 fi
6569
6570 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6571
6572fi;
6573
6574 eval "$ac_cv_use_gstreamer8"
6575 if test "$no_cache" != 1; then
6576 echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6577 fi
6578
6579 if test "$wxUSE_GSTREAMER8" = yes; then
6580 echo "$as_me:$LINENO: result: yes" >&5
6581echo "${ECHO_T}yes" >&6
6582 else
6583 echo "$as_me:$LINENO: result: no" >&5
6584echo "${ECHO_T}no" >&6
6585 fi
6586
6587
a848cd7e 6588 enablestring=
8b6682b9
JS
6589 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6590echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
a848cd7e 6591 no_cache=0
8b6682b9
JS
6592 # Check whether --enable-printfposparam or --disable-printfposparam was given.
6593if test "${enable_printfposparam+set}" = set; then
6594 enableval="$enable_printfposparam"
a848cd7e
SC
6595
6596 if test "$enableval" = yes; then
8b6682b9 6597 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
a848cd7e 6598 else
8b6682b9 6599 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
a848cd7e
SC
6600 fi
6601
6602else
6603
8b6682b9 6604 LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
a848cd7e
SC
6605 if test "x$LINE" != x ; then
6606 eval "DEFAULT_$LINE"
6607 else
6608 no_cache=1
6609 fi
6610
8b6682b9 6611 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
a848cd7e
SC
6612
6613fi;
6614
8b6682b9 6615 eval "$ac_cv_use_printfposparam"
a848cd7e 6616 if test "$no_cache" != 1; then
8b6682b9 6617 echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6618 fi
6619
8b6682b9 6620 if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
a848cd7e
SC
6621 echo "$as_me:$LINENO: result: yes" >&5
6622echo "${ECHO_T}yes" >&6
6623 else
6624 echo "$as_me:$LINENO: result: no" >&5
6625echo "${ECHO_T}no" >&6
6626 fi
6627
6628
6629 enablestring=
6630 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6631echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6632 no_cache=0
6633 # Check whether --enable-zipstream or --disable-zipstream was given.
6634if test "${enable_zipstream+set}" = set; then
6635 enableval="$enable_zipstream"
6636
6637 if test "$enableval" = yes; then
6638 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6639 else
6640 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6641 fi
6642
6643else
6644
6645 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6646 if test "x$LINE" != x ; then
6647 eval "DEFAULT_$LINE"
6648 else
6649 no_cache=1
6650 fi
6651
6652 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6653
6654fi;
6655
6656 eval "$ac_cv_use_zipstream"
6657 if test "$no_cache" != 1; then
6658 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6659 fi
6660
6661 if test "$wxUSE_ZIPSTREAM" = yes; then
6662 echo "$as_me:$LINENO: result: yes" >&5
6663echo "${ECHO_T}yes" >&6
6664 else
6665 echo "$as_me:$LINENO: result: no" >&5
6666echo "${ECHO_T}no" >&6
6667 fi
6668
6669
a848cd7e
SC
6670
6671 enablestring=
6672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6673echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6674 no_cache=0
6675 # Check whether --enable-url or --disable-url was given.
6676if test "${enable_url+set}" = set; then
6677 enableval="$enable_url"
6678
6679 if test "$enableval" = yes; then
6680 ac_cv_use_url='wxUSE_URL=yes'
6681 else
6682 ac_cv_use_url='wxUSE_URL=no'
6683 fi
6684
6685else
6686
6687 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6688 if test "x$LINE" != x ; then
6689 eval "DEFAULT_$LINE"
6690 else
6691 no_cache=1
6692 fi
6693
6694 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6695
6696fi;
6697
6698 eval "$ac_cv_use_url"
6699 if test "$no_cache" != 1; then
6700 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6701 fi
6702
6703 if test "$wxUSE_URL" = yes; then
6704 echo "$as_me:$LINENO: result: yes" >&5
6705echo "${ECHO_T}yes" >&6
6706 else
6707 echo "$as_me:$LINENO: result: no" >&5
6708echo "${ECHO_T}no" >&6
6709 fi
6710
6711
ca5c6ac3
VZ
6712 enablestring=
6713 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
6714echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6
6715 no_cache=0
6716 # Check whether --enable-variant or --disable-variant was given.
6717if test "${enable_variant+set}" = set; then
6718 enableval="$enable_variant"
6719
6720 if test "$enableval" = yes; then
6721 ac_cv_use_variant='wxUSE_VARIANT=yes'
6722 else
6723 ac_cv_use_variant='wxUSE_VARIANT=no'
6724 fi
6725
6726else
6727
6728 LINE=`grep "wxUSE_VARIANT" ${wx_arg_cache_file}`
6729 if test "x$LINE" != x ; then
6730 eval "DEFAULT_$LINE"
6731 else
6732 no_cache=1
6733 fi
6734
6735 ac_cv_use_variant='wxUSE_VARIANT='$DEFAULT_wxUSE_VARIANT
6736
6737fi;
6738
6739 eval "$ac_cv_use_variant"
6740 if test "$no_cache" != 1; then
6741 echo $ac_cv_use_variant >> ${wx_arg_cache_file}.tmp
6742 fi
6743
6744 if test "$wxUSE_VARIANT" = yes; then
6745 echo "$as_me:$LINENO: result: yes" >&5
6746echo "${ECHO_T}yes" >&6
6747 else
6748 echo "$as_me:$LINENO: result: no" >&5
6749echo "${ECHO_T}no" >&6
6750 fi
6751
6752
a848cd7e
SC
6753 enablestring=
6754 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6755echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6756 no_cache=0
6757 # Check whether --enable-protocol or --disable-protocol was given.
6758if test "${enable_protocol+set}" = set; then
6759 enableval="$enable_protocol"
6760
6761 if test "$enableval" = yes; then
6762 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6763 else
6764 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6765 fi
6766
6767else
6768
6769 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6770 if test "x$LINE" != x ; then
6771 eval "DEFAULT_$LINE"
6772 else
6773 no_cache=1
6774 fi
6775
6776 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6777
6778fi;
6779
6780 eval "$ac_cv_use_protocol"
6781 if test "$no_cache" != 1; then
6782 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6783 fi
6784
6785 if test "$wxUSE_PROTOCOL" = yes; then
6786 echo "$as_me:$LINENO: result: yes" >&5
6787echo "${ECHO_T}yes" >&6
6788 else
6789 echo "$as_me:$LINENO: result: no" >&5
6790echo "${ECHO_T}no" >&6
6791 fi
6792
6793
6794 enablestring=
6795 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6796echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6797 no_cache=0
6798 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6799if test "${enable_protocol_http+set}" = set; then
6800 enableval="$enable_protocol_http"
6801
6802 if test "$enableval" = yes; then
6803 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6804 else
6805 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6806 fi
6807
6808else
6809
6810 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6811 if test "x$LINE" != x ; then
6812 eval "DEFAULT_$LINE"
6813 else
6814 no_cache=1
6815 fi
6816
6817 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6818
6819fi;
6820
6821 eval "$ac_cv_use_protocol_http"
6822 if test "$no_cache" != 1; then
6823 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6824 fi
6825
6826 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6827 echo "$as_me:$LINENO: result: yes" >&5
6828echo "${ECHO_T}yes" >&6
6829 else
6830 echo "$as_me:$LINENO: result: no" >&5
6831echo "${ECHO_T}no" >&6
6832 fi
6833
6834
6835 enablestring=
6836 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6837echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6838 no_cache=0
6839 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6840if test "${enable_protocol_ftp+set}" = set; then
6841 enableval="$enable_protocol_ftp"
6842
6843 if test "$enableval" = yes; then
6844 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6845 else
6846 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6847 fi
6848
6849else
6850
6851 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6852 if test "x$LINE" != x ; then
6853 eval "DEFAULT_$LINE"
6854 else
6855 no_cache=1
6856 fi
6857
6858 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6859
6860fi;
6861
6862 eval "$ac_cv_use_protocol_ftp"
6863 if test "$no_cache" != 1; then
6864 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6865 fi
6866
6867 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6868 echo "$as_me:$LINENO: result: yes" >&5
6869echo "${ECHO_T}yes" >&6
6870 else
6871 echo "$as_me:$LINENO: result: no" >&5
6872echo "${ECHO_T}no" >&6
6873 fi
6874
6875
6876 enablestring=
6877 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6878echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6879 no_cache=0
6880 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6881if test "${enable_protocol_file+set}" = set; then
6882 enableval="$enable_protocol_file"
6883
6884 if test "$enableval" = yes; then
6885 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6886 else
6887 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6888 fi
6889
6890else
6891
6892 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6893 if test "x$LINE" != x ; then
6894 eval "DEFAULT_$LINE"
6895 else
6896 no_cache=1
6897 fi
6898
6899 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6900
6901fi;
6902
6903 eval "$ac_cv_use_protocol_file"
6904 if test "$no_cache" != 1; then
6905 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6906 fi
6907
6908 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6909 echo "$as_me:$LINENO: result: yes" >&5
6910echo "${ECHO_T}yes" >&6
6911 else
6912 echo "$as_me:$LINENO: result: no" >&5
6913echo "${ECHO_T}no" >&6
6914 fi
6915
6916
6917
6918
6919
6920 enablestring=
6921 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6922echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6923 no_cache=0
6924 # Check whether --enable-threads or --disable-threads was given.
6925if test "${enable_threads+set}" = set; then
6926 enableval="$enable_threads"
6927
6928 if test "$enableval" = yes; then
6929 ac_cv_use_threads='wxUSE_THREADS=yes'
6930 else
6931 ac_cv_use_threads='wxUSE_THREADS=no'
6932 fi
6933
6934else
6935
6936 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6937 if test "x$LINE" != x ; then
6938 eval "DEFAULT_$LINE"
6939 else
6940 no_cache=1
6941 fi
6942
6943 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6944
6945fi;
6946
6947 eval "$ac_cv_use_threads"
6948 if test "$no_cache" != 1; then
6949 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6950 fi
6951
6952 if test "$wxUSE_THREADS" = yes; then
6953 echo "$as_me:$LINENO: result: yes" >&5
6954echo "${ECHO_T}yes" >&6
6955 else
6956 echo "$as_me:$LINENO: result: no" >&5
6957echo "${ECHO_T}no" >&6
6958 fi
6959
6960
6961if test "$wxUSE_GUI" = "yes"; then
6962
6963
6964
6965 enablestring=
6966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6967echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6968 no_cache=0
6969 # Check whether --enable-docview or --disable-docview was given.
6970if test "${enable_docview+set}" = set; then
6971 enableval="$enable_docview"
6972
6973 if test "$enableval" = yes; then
6974 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6975 else
6976 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6977 fi
6978
6979else
6980
6981 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6982 if test "x$LINE" != x ; then
6983 eval "DEFAULT_$LINE"
6984 else
6985 no_cache=1
6986 fi
6987
6988 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6989
6990fi;
6991
6992 eval "$ac_cv_use_docview"
6993 if test "$no_cache" != 1; then
6994 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6995 fi
6996
6997 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6998 echo "$as_me:$LINENO: result: yes" >&5
6999echo "${ECHO_T}yes" >&6
7000 else
7001 echo "$as_me:$LINENO: result: no" >&5
7002echo "${ECHO_T}no" >&6
7003 fi
7004
7005
7006 enablestring=
7007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
7008echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
7009 no_cache=0
7010 # Check whether --enable-help or --disable-help was given.
7011if test "${enable_help+set}" = set; then
7012 enableval="$enable_help"
7013
7014 if test "$enableval" = yes; then
7015 ac_cv_use_help='wxUSE_HELP=yes'
7016 else
7017 ac_cv_use_help='wxUSE_HELP=no'
7018 fi
7019
7020else
7021
7022 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
7023 if test "x$LINE" != x ; then
7024 eval "DEFAULT_$LINE"
7025 else
7026 no_cache=1
7027 fi
7028
7029 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
7030
7031fi;
7032
7033 eval "$ac_cv_use_help"
7034 if test "$no_cache" != 1; then
7035 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
7036 fi
7037
7038 if test "$wxUSE_HELP" = yes; then
7039 echo "$as_me:$LINENO: result: yes" >&5
7040echo "${ECHO_T}yes" >&6
7041 else
7042 echo "$as_me:$LINENO: result: no" >&5
7043echo "${ECHO_T}no" >&6
7044 fi
7045
7046
7047 enablestring=
7048 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
7049echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
7050 no_cache=0
7051 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
7052if test "${enable_mshtmlhelp+set}" = set; then
7053 enableval="$enable_mshtmlhelp"
7054
7055 if test "$enableval" = yes; then
7056 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
7057 else
7058 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
7059 fi
7060
7061else
7062
7063 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
7064 if test "x$LINE" != x ; then
7065 eval "DEFAULT_$LINE"
7066 else
7067 no_cache=1
7068 fi
7069
7070 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
7071
7072fi;
7073
7074 eval "$ac_cv_use_mshtmlhelp"
7075 if test "$no_cache" != 1; then
7076 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
7077 fi
7078
7079 if test "$wxUSE_MS_HTML_HELP" = yes; then
7080 echo "$as_me:$LINENO: result: yes" >&5
7081echo "${ECHO_T}yes" >&6
7082 else
7083 echo "$as_me:$LINENO: result: no" >&5
7084echo "${ECHO_T}no" >&6
7085 fi
7086
7087
7088 enablestring=
7089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7090echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7091 no_cache=0
7092 # Check whether --enable-html or --disable-html was given.
7093if test "${enable_html+set}" = set; then
7094 enableval="$enable_html"
7095
7096 if test "$enableval" = yes; then
7097 ac_cv_use_html='wxUSE_HTML=yes'
7098 else
7099 ac_cv_use_html='wxUSE_HTML=no'
7100 fi
7101
7102else
7103
7104 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
7105 if test "x$LINE" != x ; then
7106 eval "DEFAULT_$LINE"
7107 else
7108 no_cache=1
7109 fi
7110
7111 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
7112
7113fi;
7114
7115 eval "$ac_cv_use_html"
7116 if test "$no_cache" != 1; then
7117 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7118 fi
7119
7120 if test "$wxUSE_HTML" = yes; then
7121 echo "$as_me:$LINENO: result: yes" >&5
7122echo "${ECHO_T}yes" >&6
7123 else
7124 echo "$as_me:$LINENO: result: no" >&5
7125echo "${ECHO_T}no" >&6
7126 fi
7127
7128
7129 enablestring=
7130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
7131echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
7132 no_cache=0
7133 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
7134if test "${enable_htmlhelp+set}" = set; then
7135 enableval="$enable_htmlhelp"
7136
7137 if test "$enableval" = yes; then
7138 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
7139 else
7140 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
7141 fi
7142
7143else
7144
7145 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
7146 if test "x$LINE" != x ; then
7147 eval "DEFAULT_$LINE"
7148 else
7149 no_cache=1
7150 fi
7151
7152 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
7153
7154fi;
7155
7156 eval "$ac_cv_use_htmlhelp"
7157 if test "$no_cache" != 1; then
7158 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
7159 fi
7160
7161 if test "$wxUSE_WXHTML_HELP" = yes; then
7162 echo "$as_me:$LINENO: result: yes" >&5
7163echo "${ECHO_T}yes" >&6
7164 else
7165 echo "$as_me:$LINENO: result: no" >&5
7166echo "${ECHO_T}no" >&6
7167 fi
7168
7169
9a8f0513
VS
7170 enablestring=
7171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
7172echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
7173 no_cache=0
7174 # Check whether --enable-xrc or --disable-xrc was given.
7175if test "${enable_xrc+set}" = set; then
7176 enableval="$enable_xrc"
7177
7178 if test "$enableval" = yes; then
7179 ac_cv_use_xrc='wxUSE_XRC=yes'
7180 else
7181 ac_cv_use_xrc='wxUSE_XRC=no'
7182 fi
7183
7184else
7185
7186 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
7187 if test "x$LINE" != x ; then
7188 eval "DEFAULT_$LINE"
7189 else
7190 no_cache=1
7191 fi
7192
7193 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
7194
7195fi;
7196
7197 eval "$ac_cv_use_xrc"
7198 if test "$no_cache" != 1; then
7199 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
7200 fi
7201
7202 if test "$wxUSE_XRC" = yes; then
7203 echo "$as_me:$LINENO: result: yes" >&5
7204echo "${ECHO_T}yes" >&6
7205 else
7206 echo "$as_me:$LINENO: result: no" >&5
7207echo "${ECHO_T}no" >&6
7208 fi
7209
7210
3f60522a
JS
7211 enablestring=
7212 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
7213echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
7214 no_cache=0
7215 # Check whether --enable-aui or --disable-aui was given.
7216if test "${enable_aui+set}" = set; then
7217 enableval="$enable_aui"
7218
7219 if test "$enableval" = yes; then
7220 ac_cv_use_aui='wxUSE_AUI=yes'
7221 else
7222 ac_cv_use_aui='wxUSE_AUI=no'
7223 fi
7224
7225else
7226
7227 LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
7228 if test "x$LINE" != x ; then
7229 eval "DEFAULT_$LINE"
7230 else
7231 no_cache=1
7232 fi
7233
7234 ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
7235
7236fi;
7237
7238 eval "$ac_cv_use_aui"
7239 if test "$no_cache" != 1; then
7240 echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
7241 fi
7242
7243 if test "$wxUSE_AUI" = yes; then
7244 echo "$as_me:$LINENO: result: yes" >&5
7245echo "${ECHO_T}yes" >&6
7246 else
7247 echo "$as_me:$LINENO: result: no" >&5
7248echo "${ECHO_T}no" >&6
7249 fi
7250
7251
a848cd7e
SC
7252 enablestring=
7253 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
7254echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
7255 no_cache=0
7256 # Check whether --enable-constraints or --disable-constraints was given.
7257if test "${enable_constraints+set}" = set; then
7258 enableval="$enable_constraints"
7259
7260 if test "$enableval" = yes; then
7261 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
7262 else
7263 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
7264 fi
7265
7266else
7267
7268 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
7269 if test "x$LINE" != x ; then
7270 eval "DEFAULT_$LINE"
7271 else
7272 no_cache=1
7273 fi
7274
7275 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
7276
7277fi;
7278
7279 eval "$ac_cv_use_constraints"
7280 if test "$no_cache" != 1; then
7281 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
7282 fi
7283
7284 if test "$wxUSE_CONSTRAINTS" = yes; then
7285 echo "$as_me:$LINENO: result: yes" >&5
7286echo "${ECHO_T}yes" >&6
7287 else
7288 echo "$as_me:$LINENO: result: no" >&5
7289echo "${ECHO_T}no" >&6
7290 fi
7291
7292
7293 enablestring=
7294 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
7295echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
7296 no_cache=0
7297 # Check whether --enable-printarch or --disable-printarch was given.
7298if test "${enable_printarch+set}" = set; then
7299 enableval="$enable_printarch"
7300
7301 if test "$enableval" = yes; then
7302 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
7303 else
7304 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
7305 fi
7306
7307else
7308
7309 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
7310 if test "x$LINE" != x ; then
7311 eval "DEFAULT_$LINE"
7312 else
7313 no_cache=1
7314 fi
7315
7316 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7317
7318fi;
7319
7320 eval "$ac_cv_use_printarch"
7321 if test "$no_cache" != 1; then
7322 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7323 fi
7324
7325 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7326 echo "$as_me:$LINENO: result: yes" >&5
7327echo "${ECHO_T}yes" >&6
7328 else
7329 echo "$as_me:$LINENO: result: no" >&5
7330echo "${ECHO_T}no" >&6
7331 fi
7332
7333
7334 enablestring=
7335 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7336echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7337 no_cache=0
7338 # Check whether --enable-mdi or --disable-mdi was given.
7339if test "${enable_mdi+set}" = set; then
7340 enableval="$enable_mdi"
7341
7342 if test "$enableval" = yes; then
8a7b1113 7343 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 7344 else
8a7b1113 7345 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
7346 fi
7347
7348else
7349
8a7b1113 7350 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
7351 if test "x$LINE" != x ; then
7352 eval "DEFAULT_$LINE"
7353 else
7354 no_cache=1
7355 fi
7356
8a7b1113 7357 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
7358
7359fi;
7360
7361 eval "$ac_cv_use_mdi"
7362 if test "$no_cache" != 1; then
7363 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7364 fi
7365
8a7b1113
VZ
7366 if test "$wxUSE_MDI" = yes; then
7367 echo "$as_me:$LINENO: result: yes" >&5
7368echo "${ECHO_T}yes" >&6
7369 else
7370 echo "$as_me:$LINENO: result: no" >&5
7371echo "${ECHO_T}no" >&6
7372 fi
7373
7374
7375 enablestring=
7376 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7377echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7378 no_cache=0
7379 # Check whether --enable-mdidoc or --disable-mdidoc was given.
7380if test "${enable_mdidoc+set}" = set; then
7381 enableval="$enable_mdidoc"
7382
7383 if test "$enableval" = yes; then
7384 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7385 else
7386 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7387 fi
7388
7389else
7390
7391 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7392 if test "x$LINE" != x ; then
7393 eval "DEFAULT_$LINE"
7394 else
7395 no_cache=1
7396 fi
7397
7398 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7399
7400fi;
7401
7402 eval "$ac_cv_use_mdidoc"
7403 if test "$no_cache" != 1; then
7404 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7405 fi
7406
a848cd7e
SC
7407 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7408 echo "$as_me:$LINENO: result: yes" >&5
7409echo "${ECHO_T}yes" >&6
7410 else
7411 echo "$as_me:$LINENO: result: no" >&5
7412echo "${ECHO_T}no" >&6
7413 fi
7414
7415
7416 enablestring=
7417 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7418echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7419 no_cache=0
7420 # Check whether --enable-loggui or --disable-loggui was given.
7421if test "${enable_loggui+set}" = set; then
7422 enableval="$enable_loggui"
7423
7424 if test "$enableval" = yes; then
7425 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7426 else
7427 ac_cv_use_loggui='wxUSE_LOGGUI=no'
7428 fi
7429
7430else
7431
7432 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7433 if test "x$LINE" != x ; then
7434 eval "DEFAULT_$LINE"
7435 else
7436 no_cache=1
7437 fi
7438
7439 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7440
7441fi;
7442
7443 eval "$ac_cv_use_loggui"
7444 if test "$no_cache" != 1; then
7445 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7446 fi
7447
7448 if test "$wxUSE_LOGGUI" = yes; then
7449 echo "$as_me:$LINENO: result: yes" >&5
7450echo "${ECHO_T}yes" >&6
7451 else
7452 echo "$as_me:$LINENO: result: no" >&5
7453echo "${ECHO_T}no" >&6
7454 fi
7455
7456
7457 enablestring=
7458 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7459echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7460 no_cache=0
7461 # Check whether --enable-logwin or --disable-logwin was given.
7462if test "${enable_logwin+set}" = set; then
7463 enableval="$enable_logwin"
7464
7465 if test "$enableval" = yes; then
7466 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7467 else
7468 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7469 fi
7470
7471else
7472
7473 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7474 if test "x$LINE" != x ; then
7475 eval "DEFAULT_$LINE"
7476 else
7477 no_cache=1
7478 fi
7479
7480 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7481
7482fi;
7483
7484 eval "$ac_cv_use_logwin"
7485 if test "$no_cache" != 1; then
7486 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7487 fi
7488
7489 if test "$wxUSE_LOGWINDOW" = yes; then
7490 echo "$as_me:$LINENO: result: yes" >&5
7491echo "${ECHO_T}yes" >&6
7492 else
7493 echo "$as_me:$LINENO: result: no" >&5
7494echo "${ECHO_T}no" >&6
7495 fi
7496
7497
7498 enablestring=
7499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7500echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7501 no_cache=0
7502 # Check whether --enable-logdialog or --disable-logdialog was given.
7503if test "${enable_logdialog+set}" = set; then
7504 enableval="$enable_logdialog"
7505
7506 if test "$enableval" = yes; then
7507 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7508 else
7509 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7510 fi
7511
7512else
7513
7514 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7515 if test "x$LINE" != x ; then
7516 eval "DEFAULT_$LINE"
7517 else
7518 no_cache=1
7519 fi
7520
7521 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7522
7523fi;
7524
7525 eval "$ac_cv_use_logdialog"
7526 if test "$no_cache" != 1; then
7527 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7528 fi
7529
7530 if test "$wxUSE_LOGDIALOG" = yes; then
7531 echo "$as_me:$LINENO: result: yes" >&5
7532echo "${ECHO_T}yes" >&6
7533 else
7534 echo "$as_me:$LINENO: result: no" >&5
7535echo "${ECHO_T}no" >&6
7536 fi
7537
7538
646b6ec1
VS
7539 enablestring=
7540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7541echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7542 no_cache=0
7543 # Check whether --enable-webkit or --disable-webkit was given.
7544if test "${enable_webkit+set}" = set; then
7545 enableval="$enable_webkit"
7546
7547 if test "$enableval" = yes; then
7548 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7549 else
7550 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7551 fi
7552
7553else
7554
7555 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7556 if test "x$LINE" != x ; then
7557 eval "DEFAULT_$LINE"
7558 else
7559 no_cache=1
7560 fi
7561
7562 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7563
7564fi;
7565
7566 eval "$ac_cv_use_webkit"
7567 if test "$no_cache" != 1; then
7568 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7569 fi
7570
7571 if test "$wxUSE_WEBKIT" = yes; then
7572 echo "$as_me:$LINENO: result: yes" >&5
7573echo "${ECHO_T}yes" >&6
7574 else
7575 echo "$as_me:$LINENO: result: no" >&5
7576echo "${ECHO_T}no" >&6
7577 fi
7578
7579
91dea314
MW
7580 enablestring=
7581 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7582echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7583 no_cache=0
7584 # Check whether --enable-html or --disable-html was given.
7585if test "${enable_html+set}" = set; then
7586 enableval="$enable_html"
7587
7588 if test "$enableval" = yes; then
7589 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7590 else
7591 ac_cv_use_html='wxUSE_RICHTEXT=no'
7592 fi
7593
7594else
7595
7596 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7597 if test "x$LINE" != x ; then
7598 eval "DEFAULT_$LINE"
7599 else
7600 no_cache=1
7601 fi
7602
7603 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7604
7605fi;
7606
7607 eval "$ac_cv_use_html"
7608 if test "$no_cache" != 1; then
7609 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7610 fi
7611
7612 if test "$wxUSE_RICHTEXT" = yes; then
7613 echo "$as_me:$LINENO: result: yes" >&5
7614echo "${ECHO_T}yes" >&6
7615 else
7616 echo "$as_me:$LINENO: result: no" >&5
7617echo "${ECHO_T}no" >&6
7618 fi
7619
7620
f43426c1
RD
7621 enablestring=
7622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
7623echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6
7624 no_cache=0
7625 # Check whether --enable-graphics_ctx or --disable-graphics_ctx was given.
7626if test "${enable_graphics_ctx+set}" = set; then
7627 enableval="$enable_graphics_ctx"
7628
7629 if test "$enableval" = yes; then
7630 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
7631 else
7632 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
7633 fi
7634
7635else
7636
7637 LINE=`grep "wxUSE_GRAPHICS_CONTEXT" ${wx_arg_cache_file}`
7638 if test "x$LINE" != x ; then
7639 eval "DEFAULT_$LINE"
7640 else
7641 no_cache=1
7642 fi
7643
7644 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT='$DEFAULT_wxUSE_GRAPHICS_CONTEXT
7645
7646fi;
7647
7648 eval "$ac_cv_use_graphics_ctx"
7649 if test "$no_cache" != 1; then
7650 echo $ac_cv_use_graphics_ctx >> ${wx_arg_cache_file}.tmp
7651 fi
7652
7653 if test "$wxUSE_GRAPHICS_CONTEXT" = yes; then
7654 echo "$as_me:$LINENO: result: yes" >&5
7655echo "${ECHO_T}yes" >&6
7656 else
7657 echo "$as_me:$LINENO: result: no" >&5
7658echo "${ECHO_T}no" >&6
7659 fi
7660
7661
a848cd7e
SC
7662
7663 enablestring=
7664 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7665echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7666 no_cache=0
7667 # Check whether --enable-postscript or --disable-postscript was given.
7668if test "${enable_postscript+set}" = set; then
7669 enableval="$enable_postscript"
7670
7671 if test "$enableval" = yes; then
7672 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7673 else
7674 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7675 fi
7676
7677else
7678
7679 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7680 if test "x$LINE" != x ; then
7681 eval "DEFAULT_$LINE"
7682 else
7683 no_cache=1
7684 fi
7685
7686 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7687
7688fi;
7689
7690 eval "$ac_cv_use_postscript"
7691 if test "$no_cache" != 1; then
7692 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7693 fi
7694
7695 if test "$wxUSE_POSTSCRIPT" = yes; then
7696 echo "$as_me:$LINENO: result: yes" >&5
7697echo "${ECHO_T}yes" >&6
7698 else
7699 echo "$as_me:$LINENO: result: no" >&5
7700echo "${ECHO_T}no" >&6
7701 fi
7702
7703
7704
7705
7706
7707 enablestring=
7708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7709echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7710 no_cache=0
7711 # Check whether --enable-prologio or --disable-prologio was given.
7712if test "${enable_prologio+set}" = set; then
7713 enableval="$enable_prologio"
7714
7715 if test "$enableval" = yes; then
7716 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7717 else
7718 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7719 fi
7720
7721else
7722
7723 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7724 if test "x$LINE" != x ; then
7725 eval "DEFAULT_$LINE"
7726 else
7727 no_cache=1
7728 fi
7729
7730 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7731
7732fi;
7733
7734 eval "$ac_cv_use_prologio"
7735 if test "$no_cache" != 1; then
7736 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7737 fi
7738
7739 if test "$wxUSE_PROLOGIO" = yes; then
7740 echo "$as_me:$LINENO: result: yes" >&5
7741echo "${ECHO_T}yes" >&6
7742 else
7743 echo "$as_me:$LINENO: result: no" >&5
7744echo "${ECHO_T}no" >&6
7745 fi
7746
7747
7748 enablestring=
7749 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7750echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7751 no_cache=0
7752 # Check whether --enable-resources or --disable-resources was given.
7753if test "${enable_resources+set}" = set; then
7754 enableval="$enable_resources"
7755
7756 if test "$enableval" = yes; then
7757 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7758 else
7759 ac_cv_use_resources='wxUSE_RESOURCES=no'
7760 fi
7761
7762else
7763
7764 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7765 if test "x$LINE" != x ; then
7766 eval "DEFAULT_$LINE"
7767 else
7768 no_cache=1
7769 fi
7770
7771 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7772
7773fi;
7774
7775 eval "$ac_cv_use_resources"
7776 if test "$no_cache" != 1; then
7777 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7778 fi
7779
7780 if test "$wxUSE_RESOURCES" = yes; then
7781 echo "$as_me:$LINENO: result: yes" >&5
7782echo "${ECHO_T}yes" >&6
7783 else
7784 echo "$as_me:$LINENO: result: no" >&5
7785echo "${ECHO_T}no" >&6
7786 fi
7787
7788
7789
7790
7791 enablestring=
7792 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7793echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7794 no_cache=0
7795 # Check whether --enable-clipboard or --disable-clipboard was given.
7796if test "${enable_clipboard+set}" = set; then
7797 enableval="$enable_clipboard"
7798
7799 if test "$enableval" = yes; then
7800 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7801 else
7802 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7803 fi
7804
7805else
7806
7807 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7808 if test "x$LINE" != x ; then
7809 eval "DEFAULT_$LINE"
7810 else
7811 no_cache=1
7812 fi
7813
7814 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7815
7816fi;
7817
7818 eval "$ac_cv_use_clipboard"
7819 if test "$no_cache" != 1; then
7820 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7821 fi
7822
7823 if test "$wxUSE_CLIPBOARD" = yes; then
7824 echo "$as_me:$LINENO: result: yes" >&5
7825echo "${ECHO_T}yes" >&6
7826 else
7827 echo "$as_me:$LINENO: result: no" >&5
7828echo "${ECHO_T}no" >&6
7829 fi
7830
7831
7832 enablestring=
7833 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7834echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7835 no_cache=0
7836 # Check whether --enable-dnd or --disable-dnd was given.
7837if test "${enable_dnd+set}" = set; then
7838 enableval="$enable_dnd"
7839
7840 if test "$enableval" = yes; then
7841 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7842 else
7843 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7844 fi
7845
7846else
7847
7848 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7849 if test "x$LINE" != x ; then
7850 eval "DEFAULT_$LINE"
7851 else
7852 no_cache=1
7853 fi
7854
7855 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7856
7857fi;
7858
7859 eval "$ac_cv_use_dnd"
7860 if test "$no_cache" != 1; then
7861 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7862 fi
7863
7864 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7865 echo "$as_me:$LINENO: result: yes" >&5
7866echo "${ECHO_T}yes" >&6
7867 else
7868 echo "$as_me:$LINENO: result: no" >&5
7869echo "${ECHO_T}no" >&6
7870 fi
7871
7872
7873 enablestring=
7874 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7875echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7876 no_cache=0
7877 # Check whether --enable-metafile or --disable-metafile was given.
7878if test "${enable_metafile+set}" = set; then
7879 enableval="$enable_metafile"
7880
7881 if test "$enableval" = yes; then
7882 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7883 else
7884 ac_cv_use_metafile='wxUSE_METAFILE=no'
7885 fi
7886
7887else
7888
7889 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7890 if test "x$LINE" != x ; then
7891 eval "DEFAULT_$LINE"
7892 else
7893 no_cache=1
7894 fi
7895
7896 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7897
7898fi;
7899
7900 eval "$ac_cv_use_metafile"
7901 if test "$no_cache" != 1; then
7902 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7903 fi
7904
7905 if test "$wxUSE_METAFILE" = yes; then
7906 echo "$as_me:$LINENO: result: yes" >&5
7907echo "${ECHO_T}yes" >&6
7908 else
7909 echo "$as_me:$LINENO: result: no" >&5
7910echo "${ECHO_T}no" >&6
7911 fi
7912
7913
7914
7915
7916
7917 enablestring=
7918 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7919echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7920 no_cache=0
7921 # Check whether --enable-controls or --disable-controls was given.
7922if test "${enable_controls+set}" = set; then
7923 enableval="$enable_controls"
7924
7925 if test "$enableval" = yes; then
7926 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7927 else
7928 ac_cv_use_controls='wxUSE_CONTROLS=no'
7929 fi
7930
7931else
7932
7933 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7934 if test "x$LINE" != x ; then
7935 eval "DEFAULT_$LINE"
7936 else
7937 no_cache=1
7938 fi
7939
7940 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7941
7942fi;
7943
7944 eval "$ac_cv_use_controls"
7945 if test "$no_cache" != 1; then
7946 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7947 fi
7948
7949 if test "$wxUSE_CONTROLS" = yes; then
7950 echo "$as_me:$LINENO: result: yes" >&5
7951echo "${ECHO_T}yes" >&6
7952 else
7953 echo "$as_me:$LINENO: result: no" >&5
7954echo "${ECHO_T}no" >&6
7955 fi
7956
7957
7958if test "$wxUSE_CONTROLS" = "yes"; then
7959 DEFAULT_wxUSE_ACCEL=yes
3ea50042 7960 DEFAULT_wxUSE_ANIMATIONCTRL=yes
a848cd7e
SC
7961 DEFAULT_wxUSE_BMPBUTTON=yes
7962 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7963 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7964 DEFAULT_wxUSE_CARET=yes
7965 DEFAULT_wxUSE_COMBOBOX=yes
7966 DEFAULT_wxUSE_CHECKBOX=yes
7967 DEFAULT_wxUSE_CHECKLISTBOX=yes
7968 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7969 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684
VZ
7970 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7971 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 7972 DEFAULT_wxUSE_DATEPICKCTRL=yes
e9263684 7973 DEFAULT_wxUSE_DISPLAY=yes
88bbc332 7974 DEFAULT_wxUSE_DETECT_SM=yes
e9263684
VZ
7975 DEFAULT_wxUSE_DIRPICKERCTRL=yes
7976 DEFAULT_wxUSE_FILEPICKERCTRL=yes
7977 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
7978 DEFAULT_wxUSE_GAUGE=yes
7979 DEFAULT_wxUSE_GRID=yes
6954625c 7980 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 7981 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7982 DEFAULT_wxUSE_IMAGLIST=yes
7983 DEFAULT_wxUSE_LISTBOOK=yes
7984 DEFAULT_wxUSE_LISTBOX=yes
7985 DEFAULT_wxUSE_LISTCTRL=yes
7986 DEFAULT_wxUSE_NOTEBOOK=yes
7987 DEFAULT_wxUSE_RADIOBOX=yes
7988 DEFAULT_wxUSE_RADIOBTN=yes
7989 DEFAULT_wxUSE_SASH=yes
7990 DEFAULT_wxUSE_SCROLLBAR=yes
7991 DEFAULT_wxUSE_SLIDER=yes
7992 DEFAULT_wxUSE_SPINBTN=yes
7993 DEFAULT_wxUSE_SPINCTRL=yes
7994 DEFAULT_wxUSE_SPLITTER=yes
7995 DEFAULT_wxUSE_STATBMP=yes
7996 DEFAULT_wxUSE_STATBOX=yes
7997 DEFAULT_wxUSE_STATLINE=yes
7998 DEFAULT_wxUSE_STATUSBAR=yes
7999 DEFAULT_wxUSE_TAB_DIALOG=yes
8000 DEFAULT_wxUSE_TOGGLEBTN=yes
8001 DEFAULT_wxUSE_TOOLBAR=yes
8002 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
a848cd7e 8003 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 8004 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 8005 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
8006 DEFAULT_wxUSE_TREECTRL=yes
8007 DEFAULT_wxUSE_POPUPWIN=yes
8008 DEFAULT_wxUSE_TIPWINDOW=yes
8009elif test "$wxUSE_CONTROLS" = "no"; then
8010 DEFAULT_wxUSE_ACCEL=no
3ea50042 8011 DEFAULT_wxUSE_ANIMATIONCTRL=no
a848cd7e
SC
8012 DEFAULT_wxUSE_BMPBUTTON=no
8013 DEFAULT_wxUSE_BUTTON=no
8014 DEFAULT_wxUSE_CALCTRL=no
8015 DEFAULT_wxUSE_CARET=no
8016 DEFAULT_wxUSE_COMBOBOX=no
8017 DEFAULT_wxUSE_CHECKBOX=no
8018 DEFAULT_wxUSE_CHECKLISTBOX=no
8019 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 8020 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684
VZ
8021 DEFAULT_wxUSE_COLOURPICKERCTRL=no
8022 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 8023 DEFAULT_wxUSE_DATEPICKCTRL=no
e9263684 8024 DEFAULT_wxUSE_DISPLAY=no
88bbc332 8025 DEFAULT_wxUSE_DETECT_SM=no
e9263684
VZ
8026 DEFAULT_wxUSE_DIRPICKERCTRL=no
8027 DEFAULT_wxUSE_FILEPICKERCTRL=no
8028 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
8029 DEFAULT_wxUSE_GAUGE=no
8030 DEFAULT_wxUSE_GRID=no
6954625c 8031 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 8032 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
8033 DEFAULT_wxUSE_IMAGLIST=no
8034 DEFAULT_wxUSE_LISTBOOK=no
8035 DEFAULT_wxUSE_LISTBOX=no
8036 DEFAULT_wxUSE_LISTCTRL=no
8037 DEFAULT_wxUSE_NOTEBOOK=no
8038 DEFAULT_wxUSE_RADIOBOX=no
8039 DEFAULT_wxUSE_RADIOBTN=no
8040 DEFAULT_wxUSE_SASH=no
8041 DEFAULT_wxUSE_SCROLLBAR=no
8042 DEFAULT_wxUSE_SLIDER=no
8043 DEFAULT_wxUSE_SPINBTN=no
8044 DEFAULT_wxUSE_SPINCTRL=no
8045 DEFAULT_wxUSE_SPLITTER=no
8046 DEFAULT_wxUSE_STATBMP=no
8047 DEFAULT_wxUSE_STATBOX=no
8048 DEFAULT_wxUSE_STATLINE=no
8049 DEFAULT_wxUSE_STATUSBAR=no
8050 DEFAULT_wxUSE_TAB_DIALOG=no
8051 DEFAULT_wxUSE_TOGGLEBTN=no
8052 DEFAULT_wxUSE_TOOLBAR=no
8053 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
a848cd7e 8054 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 8055 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 8056 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
8057 DEFAULT_wxUSE_TREECTRL=no
8058 DEFAULT_wxUSE_POPUPWIN=no
8059 DEFAULT_wxUSE_TIPWINDOW=no
8060fi
8061
a848cd7e
SC
8062
8063 enablestring=
8064 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
8065echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
8066 no_cache=0
8067 # Check whether --enable-accel or --disable-accel was given.
8068if test "${enable_accel+set}" = set; then
8069 enableval="$enable_accel"
8070
8071 if test "$enableval" = yes; then
8072 ac_cv_use_accel='wxUSE_ACCEL=yes'
8073 else
8074 ac_cv_use_accel='wxUSE_ACCEL=no'
8075 fi
8076
8077else
8078
8079 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
8080 if test "x$LINE" != x ; then
8081 eval "DEFAULT_$LINE"
8082 else
8083 no_cache=1
8084 fi
8085
8086 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
8087
8088fi;
8089
8090 eval "$ac_cv_use_accel"
8091 if test "$no_cache" != 1; then
8092 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
8093 fi
8094
8095 if test "$wxUSE_ACCEL" = yes; then
8096 echo "$as_me:$LINENO: result: yes" >&5
8097echo "${ECHO_T}yes" >&6
8098 else
8099 echo "$as_me:$LINENO: result: no" >&5
8100echo "${ECHO_T}no" >&6
8101 fi
8102
8103
3ea50042
VZ
8104 enablestring=
8105 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
8106echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6
8107 no_cache=0
8108 # Check whether --enable-animatectrl or --disable-animatectrl was given.
8109if test "${enable_animatectrl+set}" = set; then
8110 enableval="$enable_animatectrl"
8111
8112 if test "$enableval" = yes; then
8113 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
8114 else
8115 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
8116 fi
8117
8118else
8119
8120 LINE=`grep "wxUSE_ANIMATIONCTRL" ${wx_arg_cache_file}`
8121 if test "x$LINE" != x ; then
8122 eval "DEFAULT_$LINE"
8123 else
8124 no_cache=1
8125 fi
8126
8127 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL='$DEFAULT_wxUSE_ANIMATIONCTRL
8128
8129fi;
8130
8131 eval "$ac_cv_use_animatectrl"
8132 if test "$no_cache" != 1; then
8133 echo $ac_cv_use_animatectrl >> ${wx_arg_cache_file}.tmp
8134 fi
8135
8136 if test "$wxUSE_ANIMATIONCTRL" = yes; then
8137 echo "$as_me:$LINENO: result: yes" >&5
8138echo "${ECHO_T}yes" >&6
8139 else
8140 echo "$as_me:$LINENO: result: no" >&5
8141echo "${ECHO_T}no" >&6
8142 fi
8143
8144
a848cd7e
SC
8145 enablestring=
8146 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
8147echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
8148 no_cache=0
8149 # Check whether --enable-button or --disable-button was given.
8150if test "${enable_button+set}" = set; then
8151 enableval="$enable_button"
8152
8153 if test "$enableval" = yes; then
8154 ac_cv_use_button='wxUSE_BUTTON=yes'
8155 else
8156 ac_cv_use_button='wxUSE_BUTTON=no'
8157 fi
8158
8159else
8160
8161 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
8162 if test "x$LINE" != x ; then
8163 eval "DEFAULT_$LINE"
8164 else
8165 no_cache=1
8166 fi
8167
8168 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
8169
8170fi;
8171
8172 eval "$ac_cv_use_button"
8173 if test "$no_cache" != 1; then
8174 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
8175 fi
8176
8177 if test "$wxUSE_BUTTON" = yes; then
8178 echo "$as_me:$LINENO: result: yes" >&5
8179echo "${ECHO_T}yes" >&6
8180 else
8181 echo "$as_me:$LINENO: result: no" >&5
8182echo "${ECHO_T}no" >&6
8183 fi
8184
8185
8186 enablestring=
8187 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
8188echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
8189 no_cache=0
8190 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
8191if test "${enable_bmpbutton+set}" = set; then
8192 enableval="$enable_bmpbutton"
8193
8194 if test "$enableval" = yes; then
8195 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
8196 else
8197 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
8198 fi
8199
8200else
8201
8202 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
8203 if test "x$LINE" != x ; then
8204 eval "DEFAULT_$LINE"
8205 else
8206 no_cache=1
8207 fi
8208
8209 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
8210
8211fi;
8212
8213 eval "$ac_cv_use_bmpbutton"
8214 if test "$no_cache" != 1; then
8215 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
8216 fi
8217
8218 if test "$wxUSE_BMPBUTTON" = yes; then
8219 echo "$as_me:$LINENO: result: yes" >&5
8220echo "${ECHO_T}yes" >&6
8221 else
8222 echo "$as_me:$LINENO: result: no" >&5
8223echo "${ECHO_T}no" >&6
8224 fi
8225
8226
95a46303
RR
8227 enablestring=
8228 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
8229echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6
8230 no_cache=0
8231 # Check whether --enable-bmpcombobox or --disable-bmpcombobox was given.
8232if test "${enable_bmpcombobox+set}" = set; then
8233 enableval="$enable_bmpcombobox"
8234
8235 if test "$enableval" = yes; then
8236 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
8237 else
8238 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
8239 fi
8240
8241else
8242
8243 LINE=`grep "wxUSE_BITMAPCOMBOBOX" ${wx_arg_cache_file}`
8244 if test "x$LINE" != x ; then
8245 eval "DEFAULT_$LINE"
8246 else
8247 no_cache=1
8248 fi
8249
8250 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX='$DEFAULT_wxUSE_BITMAPCOMBOBOX
8251
8252fi;
8253
8254 eval "$ac_cv_use_bmpcombobox"
8255 if test "$no_cache" != 1; then
8256 echo $ac_cv_use_bmpcombobox >> ${wx_arg_cache_file}.tmp
8257 fi
8258
8259 if test "$wxUSE_BITMAPCOMBOBOX" = yes; then
8260 echo "$as_me:$LINENO: result: yes" >&5
8261echo "${ECHO_T}yes" >&6
8262 else
8263 echo "$as_me:$LINENO: result: no" >&5
8264echo "${ECHO_T}no" >&6
8265 fi
8266
8267
a848cd7e
SC
8268 enablestring=
8269 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
8270echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
8271 no_cache=0
8272 # Check whether --enable-calendar or --disable-calendar was given.
8273if test "${enable_calendar+set}" = set; then
8274 enableval="$enable_calendar"
8275
8276 if test "$enableval" = yes; then
8277 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
8278 else
8279 ac_cv_use_calendar='wxUSE_CALCTRL=no'
8280 fi
8281
8282else
8283
8284 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
8285 if test "x$LINE" != x ; then
8286 eval "DEFAULT_$LINE"
8287 else
8288 no_cache=1
8289 fi
8290
8291 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
8292
8293fi;
8294
8295 eval "$ac_cv_use_calendar"
8296 if test "$no_cache" != 1; then
8297 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
8298 fi
8299
8300 if test "$wxUSE_CALCTRL" = yes; then
8301 echo "$as_me:$LINENO: result: yes" >&5
8302echo "${ECHO_T}yes" >&6
8303 else
8304 echo "$as_me:$LINENO: result: no" >&5
8305echo "${ECHO_T}no" >&6
8306 fi
8307
8308
8309 enablestring=
8310 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
8311echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
8312 no_cache=0
8313 # Check whether --enable-caret or --disable-caret was given.
8314if test "${enable_caret+set}" = set; then
8315 enableval="$enable_caret"
8316
8317 if test "$enableval" = yes; then
8318 ac_cv_use_caret='wxUSE_CARET=yes'
8319 else
8320 ac_cv_use_caret='wxUSE_CARET=no'
8321 fi
8322
8323else
8324
8325 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
8326 if test "x$LINE" != x ; then
8327 eval "DEFAULT_$LINE"
8328 else
8329 no_cache=1
8330 fi
8331
8332 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
8333
8334fi;
8335
8336 eval "$ac_cv_use_caret"
8337 if test "$no_cache" != 1; then
8338 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
8339 fi
8340
8341 if test "$wxUSE_CARET" = yes; then
8342 echo "$as_me:$LINENO: result: yes" >&5
8343echo "${ECHO_T}yes" >&6
8344 else
8345 echo "$as_me:$LINENO: result: no" >&5
8346echo "${ECHO_T}no" >&6
8347 fi
8348
8349
8350 enablestring=
8351 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
8352echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
8353 no_cache=0
8354 # Check whether --enable-checkbox or --disable-checkbox was given.
8355if test "${enable_checkbox+set}" = set; then
8356 enableval="$enable_checkbox"
8357
8358 if test "$enableval" = yes; then
8359 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
8360 else
8361 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
8362 fi
8363
8364else
8365
8366 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
8367 if test "x$LINE" != x ; then
8368 eval "DEFAULT_$LINE"
8369 else
8370 no_cache=1
8371 fi
8372
8373 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
8374
8375fi;
8376
8377 eval "$ac_cv_use_checkbox"
8378 if test "$no_cache" != 1; then
8379 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
8380 fi
8381
8382 if test "$wxUSE_CHECKBOX" = yes; then
8383 echo "$as_me:$LINENO: result: yes" >&5
8384echo "${ECHO_T}yes" >&6
8385 else
8386 echo "$as_me:$LINENO: result: no" >&5
8387echo "${ECHO_T}no" >&6
8388 fi
8389
8390
8391 enablestring=
8392 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
8393echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
8394 no_cache=0
8395 # Check whether --enable-checklst or --disable-checklst was given.
8396if test "${enable_checklst+set}" = set; then
8397 enableval="$enable_checklst"
8398
8399 if test "$enableval" = yes; then
8400 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
8401 else
8402 ac_cv_use_checklst='wxUSE_CHECKLST=no'
8403 fi
8404
8405else
8406
8407 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
8408 if test "x$LINE" != x ; then
8409 eval "DEFAULT_$LINE"
8410 else
8411 no_cache=1
8412 fi
8413
8414 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
8415
8416fi;
8417
8418 eval "$ac_cv_use_checklst"
8419 if test "$no_cache" != 1; then
8420 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
8421 fi
8422
8423 if test "$wxUSE_CHECKLST" = yes; then
8424 echo "$as_me:$LINENO: result: yes" >&5
8425echo "${ECHO_T}yes" >&6
8426 else
8427 echo "$as_me:$LINENO: result: no" >&5
8428echo "${ECHO_T}no" >&6
8429 fi
8430
8431
8432 enablestring=
8433 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8434echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
8435 no_cache=0
8436 # Check whether --enable-choice or --disable-choice was given.
8437if test "${enable_choice+set}" = set; then
8438 enableval="$enable_choice"
8439
8440 if test "$enableval" = yes; then
8441 ac_cv_use_choice='wxUSE_CHOICE=yes'
8442 else
8443 ac_cv_use_choice='wxUSE_CHOICE=no'
8444 fi
8445
8446else
8447
8448 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8449 if test "x$LINE" != x ; then
8450 eval "DEFAULT_$LINE"
8451 else
8452 no_cache=1
8453 fi
8454
8455 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8456
8457fi;
8458
8459 eval "$ac_cv_use_choice"
8460 if test "$no_cache" != 1; then
8461 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8462 fi
8463
8464 if test "$wxUSE_CHOICE" = yes; then
8465 echo "$as_me:$LINENO: result: yes" >&5
8466echo "${ECHO_T}yes" >&6
8467 else
8468 echo "$as_me:$LINENO: result: no" >&5
8469echo "${ECHO_T}no" >&6
8470 fi
8471
8472
92bbdbcd
WS
8473 enablestring=
8474 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8475echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8476 no_cache=0
8477 # Check whether --enable-choicebook or --disable-choicebook was given.
8478if test "${enable_choicebook+set}" = set; then
8479 enableval="$enable_choicebook"
8480
8481 if test "$enableval" = yes; then
8482 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8483 else
8484 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8485 fi
8486
8487else
8488
8489 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8490 if test "x$LINE" != x ; then
8491 eval "DEFAULT_$LINE"
8492 else
8493 no_cache=1
8494 fi
8495
8496 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8497
8498fi;
8499
8500 eval "$ac_cv_use_choicebook"
8501 if test "$no_cache" != 1; then
8502 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8503 fi
8504
8505 if test "$wxUSE_CHOICEBOOK" = yes; then
8506 echo "$as_me:$LINENO: result: yes" >&5
8507echo "${ECHO_T}yes" >&6
8508 else
8509 echo "$as_me:$LINENO: result: no" >&5
8510echo "${ECHO_T}no" >&6
8511 fi
8512
8513
e9263684
VZ
8514 enablestring=
8515 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8516echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8517 no_cache=0
8518 # Check whether --enable-colourpicker or --disable-colourpicker was given.
8519if test "${enable_colourpicker+set}" = set; then
8520 enableval="$enable_colourpicker"
8521
8522 if test "$enableval" = yes; then
8523 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8524 else
8525 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8526 fi
8527
8528else
8529
8530 LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8531 if test "x$LINE" != x ; then
8532 eval "DEFAULT_$LINE"
8533 else
8534 no_cache=1
8535 fi
8536
8537 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8538
8539fi;
8540
8541 eval "$ac_cv_use_colourpicker"
8542 if test "$no_cache" != 1; then
8543 echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8544 fi
8545
8546 if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8547 echo "$as_me:$LINENO: result: yes" >&5
8548echo "${ECHO_T}yes" >&6
8549 else
8550 echo "$as_me:$LINENO: result: no" >&5
8551echo "${ECHO_T}no" >&6
8552 fi
8553
8554
a848cd7e
SC
8555 enablestring=
8556 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8557echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8558 no_cache=0
8559 # Check whether --enable-combobox or --disable-combobox was given.
8560if test "${enable_combobox+set}" = set; then
8561 enableval="$enable_combobox"
8562
8563 if test "$enableval" = yes; then
8564 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8565 else
8566 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8567 fi
8568
8569else
8570
8571 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8572 if test "x$LINE" != x ; then
8573 eval "DEFAULT_$LINE"
8574 else
8575 no_cache=1
8576 fi
8577
8578 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8579
8580fi;
8581
8582 eval "$ac_cv_use_combobox"
8583 if test "$no_cache" != 1; then
8584 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8585 fi
8586
8587 if test "$wxUSE_COMBOBOX" = yes; then
8588 echo "$as_me:$LINENO: result: yes" >&5
8589echo "${ECHO_T}yes" >&6
8590 else
8591 echo "$as_me:$LINENO: result: no" >&5
8592echo "${ECHO_T}no" >&6
8593 fi
8594
8595
642bcba9 8596 enablestring=
a57d600f
VZ
8597 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8598echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
642bcba9 8599 no_cache=0
a57d600f
VZ
8600 # Check whether --enable-comboctrl or --disable-comboctrl was given.
8601if test "${enable_comboctrl+set}" = set; then
8602 enableval="$enable_comboctrl"
642bcba9
VZ
8603
8604 if test "$enableval" = yes; then
a57d600f 8605 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
642bcba9 8606 else
a57d600f 8607 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
642bcba9
VZ
8608 fi
8609
8610else
8611
a57d600f 8612 LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
642bcba9
VZ
8613 if test "x$LINE" != x ; then
8614 eval "DEFAULT_$LINE"
8615 else
8616 no_cache=1
8617 fi
8618
a57d600f 8619 ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
642bcba9
VZ
8620
8621fi;
8622
a57d600f 8623 eval "$ac_cv_use_comboctrl"
642bcba9 8624 if test "$no_cache" != 1; then
a57d600f 8625 echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8626 fi
8627
a57d600f 8628 if test "$wxUSE_COMBOCTRL" = yes; then
642bcba9
VZ
8629 echo "$as_me:$LINENO: result: yes" >&5
8630echo "${ECHO_T}yes" >&6
8631 else
8632 echo "$as_me:$LINENO: result: no" >&5
8633echo "${ECHO_T}no" >&6
8634 fi
8635
8636
da98e9be
VZ
8637 enablestring=
8638 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8639echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8640 no_cache=0
8641 # Check whether --enable-datepick or --disable-datepick was given.
8642if test "${enable_datepick+set}" = set; then
8643 enableval="$enable_datepick"
8644
8645 if test "$enableval" = yes; then
8646 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8647 else
8648 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8649 fi
8650
8651else
8652
8653 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8654 if test "x$LINE" != x ; then
8655 eval "DEFAULT_$LINE"
8656 else
8657 no_cache=1
8658 fi
8659
8660 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8661
8662fi;
8663
8664 eval "$ac_cv_use_datepick"
8665 if test "$no_cache" != 1; then
8666 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8667 fi
8668
8669 if test "$wxUSE_DATEPICKCTRL" = yes; then
8670 echo "$as_me:$LINENO: result: yes" >&5
8671echo "${ECHO_T}yes" >&6
8672 else
8673 echo "$as_me:$LINENO: result: no" >&5
8674echo "${ECHO_T}no" >&6
8675 fi
8676
8677
e9263684
VZ
8678 enablestring=
8679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8680echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8681 no_cache=0
8682 # Check whether --enable-dirpicker or --disable-dirpicker was given.
8683if test "${enable_dirpicker+set}" = set; then
8684 enableval="$enable_dirpicker"
8685
8686 if test "$enableval" = yes; then
8687 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8688 else
8689 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8690 fi
8691
8692else
8693
8694 LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8695 if test "x$LINE" != x ; then
8696 eval "DEFAULT_$LINE"
8697 else
8698 no_cache=1
8699 fi
8700
8701 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8702
8703fi;
8704
8705 eval "$ac_cv_use_dirpicker"
8706 if test "$no_cache" != 1; then
8707 echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8708 fi
8709
8710 if test "$wxUSE_DIRPICKERCTRL" = yes; then
8711 echo "$as_me:$LINENO: result: yes" >&5
8712echo "${ECHO_T}yes" >&6
8713 else
8714 echo "$as_me:$LINENO: result: no" >&5
8715echo "${ECHO_T}no" >&6
8716 fi
8717
8718
a848cd7e
SC
8719 enablestring=
8720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8721echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8722 no_cache=0
8723 # Check whether --enable-display or --disable-display was given.
8724if test "${enable_display+set}" = set; then
8725 enableval="$enable_display"
8726
8727 if test "$enableval" = yes; then
8728 ac_cv_use_display='wxUSE_DISPLAY=yes'
8729 else
8730 ac_cv_use_display='wxUSE_DISPLAY=no'
8731 fi
8732
8733else
8734
8735 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8736 if test "x$LINE" != x ; then
8737 eval "DEFAULT_$LINE"
8738 else
8739 no_cache=1
8740 fi
8741
8742 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8743
8744fi;
8745
8746 eval "$ac_cv_use_display"
8747 if test "$no_cache" != 1; then
8748 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8749 fi
8750
8751 if test "$wxUSE_DISPLAY" = yes; then
8752 echo "$as_me:$LINENO: result: yes" >&5
8753echo "${ECHO_T}yes" >&6
8754 else
8755 echo "$as_me:$LINENO: result: no" >&5
8756echo "${ECHO_T}no" >&6
8757 fi
8758
8759
88bbc332
RR
8760 enablestring=
8761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
8762echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6
8763 no_cache=0
8764 # Check whether --enable-detect_sm or --disable-detect_sm was given.
8765if test "${enable_detect_sm+set}" = set; then
8766 enableval="$enable_detect_sm"
8767
8768 if test "$enableval" = yes; then
8769 ac_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
8770 else
8771 ac_cv_use_detect_sm='wxUSE_DETECT_SM=no'
8772 fi
8773
8774else
8775
8776 LINE=`grep "wxUSE_DETECT_SM" ${wx_arg_cache_file}`
8777 if test "x$LINE" != x ; then
8778 eval "DEFAULT_$LINE"
8779 else
8780 no_cache=1
8781 fi
8782
8783 ac_cv_use_detect_sm='wxUSE_DETECT_SM='$DEFAULT_wxUSE_DETECT_SM
8784
8785fi;
8786
8787 eval "$ac_cv_use_detect_sm"
8788 if test "$no_cache" != 1; then
8789 echo $ac_cv_use_detect_sm >> ${wx_arg_cache_file}.tmp
8790 fi
8791
8792 if test "$wxUSE_DETECT_SM" = yes; then
8793 echo "$as_me:$LINENO: result: yes" >&5
8794echo "${ECHO_T}yes" >&6
8795 else
8796 echo "$as_me:$LINENO: result: no" >&5
8797echo "${ECHO_T}no" >&6
8798 fi
8799
8800
e9263684
VZ
8801 enablestring=
8802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8803echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8804 no_cache=0
8805 # Check whether --enable-filepicker or --disable-filepicker was given.
8806if test "${enable_filepicker+set}" = set; then
8807 enableval="$enable_filepicker"
8808
8809 if test "$enableval" = yes; then
8810 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8811 else
8812 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8813 fi
8814
8815else
8816
8817 LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8818 if test "x$LINE" != x ; then
8819 eval "DEFAULT_$LINE"
8820 else
8821 no_cache=1
8822 fi
8823
8824 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8825
8826fi;
8827
8828 eval "$ac_cv_use_filepicker"
8829 if test "$no_cache" != 1; then
8830 echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8831 fi
8832
8833 if test "$wxUSE_FILEPICKERCTRL" = yes; then
8834 echo "$as_me:$LINENO: result: yes" >&5
8835echo "${ECHO_T}yes" >&6
8836 else
8837 echo "$as_me:$LINENO: result: no" >&5
8838echo "${ECHO_T}no" >&6
8839 fi
8840
8841
8842 enablestring=
8843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8844echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8845 no_cache=0
8846 # Check whether --enable-fontpicker or --disable-fontpicker was given.
8847if test "${enable_fontpicker+set}" = set; then
8848 enableval="$enable_fontpicker"
8849
8850 if test "$enableval" = yes; then
8851 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8852 else
8853 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8854 fi
8855
8856else
8857
8858 LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8859 if test "x$LINE" != x ; then
8860 eval "DEFAULT_$LINE"
8861 else
8862 no_cache=1
8863 fi
8864
8865 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8866
8867fi;
8868
8869 eval "$ac_cv_use_fontpicker"
8870 if test "$no_cache" != 1; then
8871 echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8872 fi
8873
8874 if test "$wxUSE_FONTPICKERCTRL" = yes; then
8875 echo "$as_me:$LINENO: result: yes" >&5
8876echo "${ECHO_T}yes" >&6
8877 else
8878 echo "$as_me:$LINENO: result: no" >&5
8879echo "${ECHO_T}no" >&6
8880 fi
8881
8882
a848cd7e
SC
8883 enablestring=
8884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8885echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8886 no_cache=0
8887 # Check whether --enable-gauge or --disable-gauge was given.
8888if test "${enable_gauge+set}" = set; then
8889 enableval="$enable_gauge"
8890
8891 if test "$enableval" = yes; then
8892 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8893 else
8894 ac_cv_use_gauge='wxUSE_GAUGE=no'
8895 fi
8896
8897else
8898
8899 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8900 if test "x$LINE" != x ; then
8901 eval "DEFAULT_$LINE"
8902 else
8903 no_cache=1
8904 fi
8905
8906 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8907
8908fi;
8909
8910 eval "$ac_cv_use_gauge"
8911 if test "$no_cache" != 1; then
8912 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8913 fi
8914
8915 if test "$wxUSE_GAUGE" = yes; then
8916 echo "$as_me:$LINENO: result: yes" >&5
8917echo "${ECHO_T}yes" >&6
8918 else
8919 echo "$as_me:$LINENO: result: no" >&5
8920echo "${ECHO_T}no" >&6
8921 fi
8922
8923
8924 enablestring=
8925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8926echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8927 no_cache=0
8928 # Check whether --enable-grid or --disable-grid was given.
8929if test "${enable_grid+set}" = set; then
8930 enableval="$enable_grid"
8931
8932 if test "$enableval" = yes; then
8933 ac_cv_use_grid='wxUSE_GRID=yes'
8934 else
8935 ac_cv_use_grid='wxUSE_GRID=no'
8936 fi
8937
8938else
8939
8940 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8941 if test "x$LINE" != x ; then
8942 eval "DEFAULT_$LINE"
8943 else
8944 no_cache=1
8945 fi
8946
8947 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8948
8949fi;
8950
8951 eval "$ac_cv_use_grid"
8952 if test "$no_cache" != 1; then
8953 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8954 fi
8955
8956 if test "$wxUSE_GRID" = yes; then
8957 echo "$as_me:$LINENO: result: yes" >&5
8958echo "${ECHO_T}yes" >&6
8959 else
8960 echo "$as_me:$LINENO: result: no" >&5
8961echo "${ECHO_T}no" >&6
8962 fi
8963
8964
20e34ecc
RR
8965 enablestring=
8966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8967echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8968 no_cache=0
8969 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8970if test "${enable_dataviewctrl+set}" = set; then
8971 enableval="$enable_dataviewctrl"
8972
8973 if test "$enableval" = yes; then
8974 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8975 else
8976 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8977 fi
8978
8979else
8980
8981 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8982 if test "x$LINE" != x ; then
8983 eval "DEFAULT_$LINE"
8984 else
8985 no_cache=1
8986 fi
8987
8988 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8989
8990fi;
8991
8992 eval "$ac_cv_use_dataviewctrl"
8993 if test "$no_cache" != 1; then
8994 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8995 fi
8996
8997 if test "$wxUSE_DATAVIEWCTRL" = yes; then
8998 echo "$as_me:$LINENO: result: yes" >&5
8999echo "${ECHO_T}yes" >&6
9000 else
9001 echo "$as_me:$LINENO: result: no" >&5
9002echo "${ECHO_T}no" >&6
9003 fi
9004
9005
6954625c
VZ
9006 enablestring=
9007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
9008echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
9009 no_cache=0
9010 # Check whether --enable-hyperlink or --disable-hyperlink was given.
9011if test "${enable_hyperlink+set}" = set; then
9012 enableval="$enable_hyperlink"
9013
9014 if test "$enableval" = yes; then
9015 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
9016 else
9017 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
9018 fi
9019
9020else
9021
9022 LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
9023 if test "x$LINE" != x ; then
9024 eval "DEFAULT_$LINE"
9025 else
9026 no_cache=1
9027 fi
9028
9029 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
9030
9031fi;
9032
9033 eval "$ac_cv_use_hyperlink"
9034 if test "$no_cache" != 1; then
9035 echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
9036 fi
9037
9038 if test "$wxUSE_HYPERLINKCTRL" = yes; then
9039 echo "$as_me:$LINENO: result: yes" >&5
9040echo "${ECHO_T}yes" >&6
9041 else
9042 echo "$as_me:$LINENO: result: no" >&5
9043echo "${ECHO_T}no" >&6
9044 fi
9045
9046
a848cd7e
SC
9047 enablestring=
9048 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
9049echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
9050 no_cache=0
9051 # Check whether --enable-imaglist or --disable-imaglist was given.
9052if test "${enable_imaglist+set}" = set; then
9053 enableval="$enable_imaglist"
9054
9055 if test "$enableval" = yes; then
9056 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
9057 else
9058 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
9059 fi
9060
9061else
9062
9063 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
9064 if test "x$LINE" != x ; then
9065 eval "DEFAULT_$LINE"
9066 else
9067 no_cache=1
9068 fi
9069
9070 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
9071
9072fi;
9073
9074 eval "$ac_cv_use_imaglist"
9075 if test "$no_cache" != 1; then
9076 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
9077 fi
9078
9079 if test "$wxUSE_IMAGLIST" = yes; then
9080 echo "$as_me:$LINENO: result: yes" >&5
9081echo "${ECHO_T}yes" >&6
9082 else
9083 echo "$as_me:$LINENO: result: no" >&5
9084echo "${ECHO_T}no" >&6
9085 fi
9086
9087
9088 enablestring=
9089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
9090echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
9091 no_cache=0
9092 # Check whether --enable-listbook or --disable-listbook was given.
9093if test "${enable_listbook+set}" = set; then
9094 enableval="$enable_listbook"
9095
9096 if test "$enableval" = yes; then
9097 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
9098 else
9099 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
9100 fi
9101
9102else
9103
9104 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
9105 if test "x$LINE" != x ; then
9106 eval "DEFAULT_$LINE"
9107 else
9108 no_cache=1
9109 fi
9110
9111 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
9112
9113fi;
9114
9115 eval "$ac_cv_use_listbook"
9116 if test "$no_cache" != 1; then
9117 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
9118 fi
9119
9120 if test "$wxUSE_LISTBOOK" = yes; then
9121 echo "$as_me:$LINENO: result: yes" >&5
9122echo "${ECHO_T}yes" >&6
9123 else
9124 echo "$as_me:$LINENO: result: no" >&5
9125echo "${ECHO_T}no" >&6
9126 fi
9127
9128
9129 enablestring=
9130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
9131echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
9132 no_cache=0
9133 # Check whether --enable-listbox or --disable-listbox was given.
9134if test "${enable_listbox+set}" = set; then
9135 enableval="$enable_listbox"
9136
9137 if test "$enableval" = yes; then
9138 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
9139 else
9140 ac_cv_use_listbox='wxUSE_LISTBOX=no'
9141 fi
9142
9143else
9144
9145 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
9146 if test "x$LINE" != x ; then
9147 eval "DEFAULT_$LINE"
9148 else
9149 no_cache=1
9150 fi
9151
9152 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
9153
9154fi;
9155
9156 eval "$ac_cv_use_listbox"
9157 if test "$no_cache" != 1; then
9158 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
9159 fi
9160
9161 if test "$wxUSE_LISTBOX" = yes; then
9162 echo "$as_me:$LINENO: result: yes" >&5
9163echo "${ECHO_T}yes" >&6
9164 else
9165 echo "$as_me:$LINENO: result: no" >&5
9166echo "${ECHO_T}no" >&6
9167 fi
9168
9169
9170 enablestring=
9171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
9172echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
9173 no_cache=0
9174 # Check whether --enable-listctrl or --disable-listctrl was given.
9175if test "${enable_listctrl+set}" = set; then
9176 enableval="$enable_listctrl"
9177
9178 if test "$enableval" = yes; then
9179 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
9180 else
9181 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
9182 fi
9183
9184else
9185
9186 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
9187 if test "x$LINE" != x ; then
9188 eval "DEFAULT_$LINE"
9189 else
9190 no_cache=1
9191 fi
9192
9193 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
9194
9195fi;
9196
9197 eval "$ac_cv_use_listctrl"
9198 if test "$no_cache" != 1; then
9199 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
9200 fi
9201
9202 if test "$wxUSE_LISTCTRL" = yes; then
9203 echo "$as_me:$LINENO: result: yes" >&5
9204echo "${ECHO_T}yes" >&6
9205 else
9206 echo "$as_me:$LINENO: result: no" >&5
9207echo "${ECHO_T}no" >&6
9208 fi
9209
9210
9211 enablestring=
9212 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
9213echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
9214 no_cache=0
9215 # Check whether --enable-notebook or --disable-notebook was given.
9216if test "${enable_notebook+set}" = set; then
9217 enableval="$enable_notebook"
9218
9219 if test "$enableval" = yes; then
9220 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
9221 else
9222 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
9223 fi
9224
9225else
9226
9227 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
9228 if test "x$LINE" != x ; then
9229 eval "DEFAULT_$LINE"
9230 else
9231 no_cache=1
9232 fi
9233
9234 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
9235
9236fi;
9237
9238 eval "$ac_cv_use_notebook"
9239 if test "$no_cache" != 1; then
9240 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
9241 fi
9242
9243 if test "$wxUSE_NOTEBOOK" = yes; then
9244 echo "$as_me:$LINENO: result: yes" >&5
9245echo "${ECHO_T}yes" >&6
9246 else
9247 echo "$as_me:$LINENO: result: no" >&5
9248echo "${ECHO_T}no" >&6
9249 fi
9250
9251
642bcba9 9252 enablestring=
a57d600f
VZ
9253 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
9254echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
642bcba9 9255 no_cache=0
a57d600f
VZ
9256 # Check whether --enable-odcombobox or --disable-odcombobox was given.
9257if test "${enable_odcombobox+set}" = set; then
9258 enableval="$enable_odcombobox"
642bcba9
VZ
9259
9260 if test "$enableval" = yes; then
a57d600f 9261 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
642bcba9 9262 else
a57d600f 9263 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
642bcba9
VZ
9264 fi
9265
9266else
9267
a57d600f 9268 LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
642bcba9
VZ
9269 if test "x$LINE" != x ; then
9270 eval "DEFAULT_$LINE"
9271 else
9272 no_cache=1
9273 fi
9274
a57d600f 9275 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
642bcba9
VZ
9276
9277fi;
9278
a57d600f 9279 eval "$ac_cv_use_odcombobox"
642bcba9 9280 if test "$no_cache" != 1; then
a57d600f 9281 echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
9282 fi
9283
a57d600f 9284 if test "$wxUSE_ODCOMBOBOX" = yes; then
642bcba9
VZ
9285 echo "$as_me:$LINENO: result: yes" >&5
9286echo "${ECHO_T}yes" >&6
9287 else
9288 echo "$as_me:$LINENO: result: no" >&5
9289echo "${ECHO_T}no" >&6
9290 fi
9291
9292
a848cd7e
SC
9293 enablestring=
9294 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
9295echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
9296 no_cache=0
9297 # Check whether --enable-radiobox or --disable-radiobox was given.
9298if test "${enable_radiobox+set}" = set; then
9299 enableval="$enable_radiobox"
9300
9301 if test "$enableval" = yes; then
9302 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
9303 else
9304 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
9305 fi
9306
9307else
9308
9309 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
9310 if test "x$LINE" != x ; then
9311 eval "DEFAULT_$LINE"
9312 else
9313 no_cache=1
9314 fi
9315
9316 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
9317
9318fi;
9319
9320 eval "$ac_cv_use_radiobox"
9321 if test "$no_cache" != 1; then
9322 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
9323 fi
9324
9325 if test "$wxUSE_RADIOBOX" = yes; then
9326 echo "$as_me:$LINENO: result: yes" >&5
9327echo "${ECHO_T}yes" >&6
9328 else
9329 echo "$as_me:$LINENO: result: no" >&5
9330echo "${ECHO_T}no" >&6
9331 fi
9332
9333
9334 enablestring=
9335 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
9336echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
9337 no_cache=0
9338 # Check whether --enable-radiobtn or --disable-radiobtn was given.
9339if test "${enable_radiobtn+set}" = set; then
9340 enableval="$enable_radiobtn"
9341
9342 if test "$enableval" = yes; then
9343 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
9344 else
9345 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
9346 fi
9347
9348else
9349
9350 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
9351 if test "x$LINE" != x ; then
9352 eval "DEFAULT_$LINE"
9353 else
9354 no_cache=1
9355 fi
9356
9357 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
9358
9359fi;
9360
9361 eval "$ac_cv_use_radiobtn"
9362 if test "$no_cache" != 1; then
9363 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
9364 fi
9365
9366 if test "$wxUSE_RADIOBTN" = yes; then
9367 echo "$as_me:$LINENO: result: yes" >&5
9368echo "${ECHO_T}yes" >&6
9369 else
9370 echo "$as_me:$LINENO: result: no" >&5
9371echo "${ECHO_T}no" >&6
9372 fi
9373
9374
9375 enablestring=
9376 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
9377echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
9378 no_cache=0
9379 # Check whether --enable-sash or --disable-sash was given.
9380if test "${enable_sash+set}" = set; then
9381 enableval="$enable_sash"
9382
9383 if test "$enableval" = yes; then
9384 ac_cv_use_sash='wxUSE_SASH=yes'
9385 else
9386 ac_cv_use_sash='wxUSE_SASH=no'
9387 fi
9388
9389else
9390
9391 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
9392 if test "x$LINE" != x ; then
9393 eval "DEFAULT_$LINE"
9394 else
9395 no_cache=1
9396 fi
9397
9398 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
9399
9400fi;
9401
9402 eval "$ac_cv_use_sash"
9403 if test "$no_cache" != 1; then
9404 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
9405 fi
9406
9407 if test "$wxUSE_SASH" = yes; then
9408 echo "$as_me:$LINENO: result: yes" >&5
9409echo "${ECHO_T}yes" >&6
9410 else
9411 echo "$as_me:$LINENO: result: no" >&5
9412echo "${ECHO_T}no" >&6
9413 fi
9414
9415
9416 enablestring=
9417 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
9418echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
9419 no_cache=0
9420 # Check whether --enable-scrollbar or --disable-scrollbar was given.
9421if test "${enable_scrollbar+set}" = set; then
9422 enableval="$enable_scrollbar"
9423
9424 if test "$enableval" = yes; then
9425 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
9426 else
9427 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
9428 fi
9429
9430else
9431
9432 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
9433 if test "x$LINE" != x ; then
9434 eval "DEFAULT_$LINE"
9435 else
9436 no_cache=1
9437 fi
9438
9439 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
9440
9441fi;
9442
9443 eval "$ac_cv_use_scrollbar"
9444 if test "$no_cache" != 1; then
9445 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
9446 fi
9447
9448 if test "$wxUSE_SCROLLBAR" = yes; then
9449 echo "$as_me:$LINENO: result: yes" >&5
9450echo "${ECHO_T}yes" >&6
9451 else
9452 echo "$as_me:$LINENO: result: no" >&5
9453echo "${ECHO_T}no" >&6
9454 fi
9455
9456
9457 enablestring=
9458 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
9459echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
9460 no_cache=0
9461 # Check whether --enable-slider or --disable-slider was given.
9462if test "${enable_slider+set}" = set; then
9463 enableval="$enable_slider"
9464
9465 if test "$enableval" = yes; then
9466 ac_cv_use_slider='wxUSE_SLIDER=yes'
9467 else
9468 ac_cv_use_slider='wxUSE_SLIDER=no'
9469 fi
9470
9471else
9472
9473 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
9474 if test "x$LINE" != x ; then
9475 eval "DEFAULT_$LINE"
9476 else
9477 no_cache=1
9478 fi
9479
9480 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9481
9482fi;
9483
9484 eval "$ac_cv_use_slider"
9485 if test "$no_cache" != 1; then
9486 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9487 fi
9488
9489 if test "$wxUSE_SLIDER" = yes; then
9490 echo "$as_me:$LINENO: result: yes" >&5
9491echo "${ECHO_T}yes" >&6
9492 else
9493 echo "$as_me:$LINENO: result: no" >&5
9494echo "${ECHO_T}no" >&6
9495 fi
9496
9497
9498 enablestring=
9499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9500echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9501 no_cache=0
9502 # Check whether --enable-spinbtn or --disable-spinbtn was given.
9503if test "${enable_spinbtn+set}" = set; then
9504 enableval="$enable_spinbtn"
9505
9506 if test "$enableval" = yes; then
9507 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9508 else
9509 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9510 fi
9511
9512else
9513
9514 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9515 if test "x$LINE" != x ; then
9516 eval "DEFAULT_$LINE"
9517 else
9518 no_cache=1
9519 fi
9520
9521 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9522
9523fi;
9524
9525 eval "$ac_cv_use_spinbtn"
9526 if test "$no_cache" != 1; then
9527 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9528 fi
9529
9530 if test "$wxUSE_SPINBTN" = yes; then
9531 echo "$as_me:$LINENO: result: yes" >&5
9532echo "${ECHO_T}yes" >&6
9533 else
9534 echo "$as_me:$LINENO: result: no" >&5
9535echo "${ECHO_T}no" >&6
9536 fi
9537
9538
9539 enablestring=
9540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9541echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9542 no_cache=0
9543 # Check whether --enable-spinctrl or --disable-spinctrl was given.
9544if test "${enable_spinctrl+set}" = set; then
9545 enableval="$enable_spinctrl"
9546
9547 if test "$enableval" = yes; then
9548 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9549 else
9550 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9551 fi
9552
9553else
9554
9555 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9556 if test "x$LINE" != x ; then
9557 eval "DEFAULT_$LINE"
9558 else
9559 no_cache=1
9560 fi
9561
9562 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9563
9564fi;
9565
9566 eval "$ac_cv_use_spinctrl"
9567 if test "$no_cache" != 1; then
9568 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9569 fi
9570
9571 if test "$wxUSE_SPINCTRL" = yes; then
9572 echo "$as_me:$LINENO: result: yes" >&5
9573echo "${ECHO_T}yes" >&6
9574 else
9575 echo "$as_me:$LINENO: result: no" >&5
9576echo "${ECHO_T}no" >&6
9577 fi
9578
9579
9580 enablestring=
9581 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9582echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9583 no_cache=0
9584 # Check whether --enable-splitter or --disable-splitter was given.
9585if test "${enable_splitter+set}" = set; then
9586 enableval="$enable_splitter"
9587
9588 if test "$enableval" = yes; then
9589 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9590 else
9591 ac_cv_use_splitter='wxUSE_SPLITTER=no'
9592 fi
9593
9594else
9595
9596 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9597 if test "x$LINE" != x ; then
9598 eval "DEFAULT_$LINE"
9599 else
9600 no_cache=1
9601 fi
9602
9603 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9604
9605fi;
9606
9607 eval "$ac_cv_use_splitter"
9608 if test "$no_cache" != 1; then
9609 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9610 fi
9611
9612 if test "$wxUSE_SPLITTER" = yes; then
9613 echo "$as_me:$LINENO: result: yes" >&5
9614echo "${ECHO_T}yes" >&6
9615 else
9616 echo "$as_me:$LINENO: result: no" >&5
9617echo "${ECHO_T}no" >&6
9618 fi
9619
9620
9621 enablestring=
9622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9623echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9624 no_cache=0
9625 # Check whether --enable-statbmp or --disable-statbmp was given.
9626if test "${enable_statbmp+set}" = set; then
9627 enableval="$enable_statbmp"
9628
9629 if test "$enableval" = yes; then
9630 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9631 else
9632 ac_cv_use_statbmp='wxUSE_STATBMP=no'
9633 fi
9634
9635else
9636
9637 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9638 if test "x$LINE" != x ; then
9639 eval "DEFAULT_$LINE"
9640 else
9641 no_cache=1
9642 fi
9643
9644 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9645
9646fi;
9647
9648 eval "$ac_cv_use_statbmp"
9649 if test "$no_cache" != 1; then
9650 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9651 fi
9652
9653 if test "$wxUSE_STATBMP" = yes; then
9654 echo "$as_me:$LINENO: result: yes" >&5
9655echo "${ECHO_T}yes" >&6
9656 else
9657 echo "$as_me:$LINENO: result: no" >&5
9658echo "${ECHO_T}no" >&6
9659 fi
9660
9661
9662 enablestring=
9663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9664echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9665 no_cache=0
9666 # Check whether --enable-statbox or --disable-statbox was given.
9667if test "${enable_statbox+set}" = set; then
9668 enableval="$enable_statbox"
9669
9670 if test "$enableval" = yes; then
9671 ac_cv_use_statbox='wxUSE_STATBOX=yes'
9672 else
9673 ac_cv_use_statbox='wxUSE_STATBOX=no'
9674 fi
9675
9676else
9677
9678 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9679 if test "x$LINE" != x ; then
9680 eval "DEFAULT_$LINE"
9681 else
9682 no_cache=1
9683 fi
9684
9685 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9686
9687fi;
9688
9689 eval "$ac_cv_use_statbox"
9690 if test "$no_cache" != 1; then
9691 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9692 fi
9693
9694 if test "$wxUSE_STATBOX" = yes; then
9695 echo "$as_me:$LINENO: result: yes" >&5
9696echo "${ECHO_T}yes" >&6
9697 else
9698 echo "$as_me:$LINENO: result: no" >&5
9699echo "${ECHO_T}no" >&6
9700 fi
9701
9702
9703 enablestring=
9704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9705echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9706 no_cache=0
9707 # Check whether --enable-statline or --disable-statline was given.
9708if test "${enable_statline+set}" = set; then
9709 enableval="$enable_statline"
9710
9711 if test "$enableval" = yes; then
9712 ac_cv_use_statline='wxUSE_STATLINE=yes'
9713 else
9714 ac_cv_use_statline='wxUSE_STATLINE=no'
9715 fi
9716
9717else
9718
9719 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9720 if test "x$LINE" != x ; then
9721 eval "DEFAULT_$LINE"
9722 else
9723 no_cache=1
9724 fi
9725
9726 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9727
9728fi;
9729
9730 eval "$ac_cv_use_statline"
9731 if test "$no_cache" != 1; then
9732 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9733 fi
9734
9735 if test "$wxUSE_STATLINE" = yes; then
9736 echo "$as_me:$LINENO: result: yes" >&5
9737echo "${ECHO_T}yes" >&6
9738 else
9739 echo "$as_me:$LINENO: result: no" >&5
9740echo "${ECHO_T}no" >&6
9741 fi
9742
9743
9744 enablestring=
9745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9746echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9747 no_cache=0
9748 # Check whether --enable-stattext or --disable-stattext was given.
9749if test "${enable_stattext+set}" = set; then
9750 enableval="$enable_stattext"
9751
9752 if test "$enableval" = yes; then
9753 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9754 else
9755 ac_cv_use_stattext='wxUSE_STATTEXT=no'
9756 fi
9757
9758else
9759
9760 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9761 if test "x$LINE" != x ; then
9762 eval "DEFAULT_$LINE"
9763 else
9764 no_cache=1
9765 fi
9766
9767 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9768
9769fi;
9770
9771 eval "$ac_cv_use_stattext"
9772 if test "$no_cache" != 1; then
9773 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9774 fi
9775
9776 if test "$wxUSE_STATTEXT" = yes; then
9777 echo "$as_me:$LINENO: result: yes" >&5
9778echo "${ECHO_T}yes" >&6
9779 else
9780 echo "$as_me:$LINENO: result: no" >&5
9781echo "${ECHO_T}no" >&6
9782 fi
9783
9784
9785 enablestring=
9786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9787echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9788 no_cache=0
9789 # Check whether --enable-statusbar or --disable-statusbar was given.
9790if test "${enable_statusbar+set}" = set; then
9791 enableval="$enable_statusbar"
9792
9793 if test "$enableval" = yes; then
9794 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9795 else
9796 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9797 fi
9798
9799else
9800
9801 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9802 if test "x$LINE" != x ; then
9803 eval "DEFAULT_$LINE"
9804 else
9805 no_cache=1
9806 fi
9807
9808 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9809
9810fi;
9811
9812 eval "$ac_cv_use_statusbar"
9813 if test "$no_cache" != 1; then
9814 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9815 fi
9816
9817 if test "$wxUSE_STATUSBAR" = yes; then
9818 echo "$as_me:$LINENO: result: yes" >&5
9819echo "${ECHO_T}yes" >&6
9820 else
9821 echo "$as_me:$LINENO: result: no" >&5
9822echo "${ECHO_T}no" >&6
9823 fi
9824
9825
9826 enablestring=
9827 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9828echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9829 no_cache=0
9830 # Check whether --enable-tabdialog or --disable-tabdialog was given.
9831if test "${enable_tabdialog+set}" = set; then
9832 enableval="$enable_tabdialog"
9833
9834 if test "$enableval" = yes; then
f10e38c4 9835 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 9836 else
f10e38c4 9837 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e
SC
9838 fi
9839
9840else
9841
f10e38c4 9842 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
a848cd7e
SC
9843 if test "x$LINE" != x ; then
9844 eval "DEFAULT_$LINE"
9845 else
9846 no_cache=1
9847 fi
9848
f10e38c4 9849 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
a848cd7e
SC
9850
9851fi;
9852
9853 eval "$ac_cv_use_tabdialog"
9854 if test "$no_cache" != 1; then
9855 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9856 fi
9857
f10e38c4 9858 if test "$wxUSE_TAB_DIALOG" = yes; then
a848cd7e
SC
9859 echo "$as_me:$LINENO: result: yes" >&5
9860echo "${ECHO_T}yes" >&6
9861 else
9862 echo "$as_me:$LINENO: result: no" >&5
9863echo "${ECHO_T}no" >&6
9864 fi
9865
9866
9867 enablestring=
9868 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9869echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9870 no_cache=0
9871 # Check whether --enable-textctrl or --disable-textctrl was given.
9872if test "${enable_textctrl+set}" = set; then
9873 enableval="$enable_textctrl"
9874
9875 if test "$enableval" = yes; then
9876 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9877 else
9878 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9879 fi
9880
9881else
9882
9883 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9884 if test "x$LINE" != x ; then
9885 eval "DEFAULT_$LINE"
9886 else
9887 no_cache=1
9888 fi
9889
9890 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9891
9892fi;
9893
9894 eval "$ac_cv_use_textctrl"
9895 if test "$no_cache" != 1; then
9896 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9897 fi
9898
9899 if test "$wxUSE_TEXTCTRL" = yes; then
9900 echo "$as_me:$LINENO: result: yes" >&5
9901echo "${ECHO_T}yes" >&6
9902 else
9903 echo "$as_me:$LINENO: result: no" >&5
9904echo "${ECHO_T}no" >&6
9905 fi
9906
9907
9908 enablestring=
9909 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9910echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9911 no_cache=0
9912 # Check whether --enable-togglebtn or --disable-togglebtn was given.
9913if test "${enable_togglebtn+set}" = set; then
9914 enableval="$enable_togglebtn"
9915
9916 if test "$enableval" = yes; then
9917 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9918 else
9919 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9920 fi
9921
9922else
9923
9924 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9925 if test "x$LINE" != x ; then
9926 eval "DEFAULT_$LINE"
9927 else
9928 no_cache=1
9929 fi
9930
9931 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9932
9933fi;
9934
9935 eval "$ac_cv_use_togglebtn"
9936 if test "$no_cache" != 1; then
9937 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9938 fi
9939
9940 if test "$wxUSE_TOGGLEBTN" = yes; then
9941 echo "$as_me:$LINENO: result: yes" >&5
9942echo "${ECHO_T}yes" >&6
9943 else
9944 echo "$as_me:$LINENO: result: no" >&5
9945echo "${ECHO_T}no" >&6
9946 fi
9947
9948
9949 enablestring=
9950 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9951echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9952 no_cache=0
9953 # Check whether --enable-toolbar or --disable-toolbar was given.
9954if test "${enable_toolbar+set}" = set; then
9955 enableval="$enable_toolbar"
9956
9957 if test "$enableval" = yes; then
9958 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9959 else
9960 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9961 fi
9962
9963else
9964
9965 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9966 if test "x$LINE" != x ; then
9967 eval "DEFAULT_$LINE"
9968 else
9969 no_cache=1
9970 fi
9971
9972 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9973
9974fi;
9975
9976 eval "$ac_cv_use_toolbar"
9977 if test "$no_cache" != 1; then
9978 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9979 fi
9980
9981 if test "$wxUSE_TOOLBAR" = yes; then
9982 echo "$as_me:$LINENO: result: yes" >&5
9983echo "${ECHO_T}yes" >&6
9984 else
9985 echo "$as_me:$LINENO: result: no" >&5
9986echo "${ECHO_T}no" >&6
9987 fi
9988
9989
9990 enablestring=
9991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9992echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9993 no_cache=0
9994 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9995if test "${enable_tbarnative+set}" = set; then
9996 enableval="$enable_tbarnative"
9997
9998 if test "$enableval" = yes; then
9999 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
10000 else
10001 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
10002 fi
10003
10004else
10005
10006 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
10007 if test "x$LINE" != x ; then
10008 eval "DEFAULT_$LINE"
10009 else
10010 no_cache=1
10011 fi
10012
10013 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
10014
10015fi;
10016
10017 eval "$ac_cv_use_tbarnative"
10018 if test "$no_cache" != 1; then
10019 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
10020 fi
10021
10022 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
10023 echo "$as_me:$LINENO: result: yes" >&5
10024echo "${ECHO_T}yes" >&6
10025 else
10026 echo "$as_me:$LINENO: result: no" >&5
10027echo "${ECHO_T}no" >&6
10028 fi
10029
10030
0093c2fc
VZ
10031 enablestring=
10032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
10033echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
10034 no_cache=0
10035 # Check whether --enable-treebook or --disable-treebook was given.
10036if test "${enable_treebook+set}" = set; then
10037 enableval="$enable_treebook"
10038
10039 if test "$enableval" = yes; then
10040 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
10041 else
10042 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
10043 fi
10044
10045else
10046
10047 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
10048 if test "x$LINE" != x ; then
10049 eval "DEFAULT_$LINE"
10050 else
10051 no_cache=1
10052 fi
10053
10054 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
10055
10056fi;
10057
10058 eval "$ac_cv_use_treebook"
10059 if test "$no_cache" != 1; then
10060 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
10061 fi
10062
10063 if test "$wxUSE_TREEBOOK" = yes; then
10064 echo "$as_me:$LINENO: result: yes" >&5
10065echo "${ECHO_T}yes" >&6
10066 else
10067 echo "$as_me:$LINENO: result: no" >&5
10068echo "${ECHO_T}no" >&6
10069 fi
10070
10071
5ec3bc43
JS
10072 enablestring=
10073 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
10074echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
10075 no_cache=0
10076 # Check whether --enable-toolbook or --disable-toolbook was given.
10077if test "${enable_toolbook+set}" = set; then
10078 enableval="$enable_toolbook"
10079
10080 if test "$enableval" = yes; then
10081 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
10082 else
10083 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
10084 fi
10085
10086else
10087
10088 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
10089 if test "x$LINE" != x ; then
10090 eval "DEFAULT_$LINE"
10091 else
10092 no_cache=1
10093 fi
10094
10095 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
10096
10097fi;
10098
10099 eval "$ac_cv_use_toolbook"
10100 if test "$no_cache" != 1; then
10101 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
10102 fi
10103
10104 if test "$wxUSE_TOOLBOOK" = yes; then
10105 echo "$as_me:$LINENO: result: yes" >&5
10106echo "${ECHO_T}yes" >&6
10107 else
10108 echo "$as_me:$LINENO: result: no" >&5
10109echo "${ECHO_T}no" >&6
10110 fi
10111
10112
a848cd7e
SC
10113 enablestring=
10114 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
10115echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10116 no_cache=0
10117 # Check whether --enable-treectrl or --disable-treectrl was given.
10118if test "${enable_treectrl+set}" = set; then
10119 enableval="$enable_treectrl"
10120
10121 if test "$enableval" = yes; then
10122 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
10123 else
10124 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
10125 fi
10126
10127else
10128
10129 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
10130 if test "x$LINE" != x ; then
10131 eval "DEFAULT_$LINE"
10132 else
10133 no_cache=1
10134 fi
10135
10136 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10137
10138fi;
10139
10140 eval "$ac_cv_use_treectrl"
10141 if test "$no_cache" != 1; then
10142 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
10143 fi
10144
10145 if test "$wxUSE_TREECTRL" = yes; then
10146 echo "$as_me:$LINENO: result: yes" >&5
10147echo "${ECHO_T}yes" >&6
10148 else
10149 echo "$as_me:$LINENO: result: no" >&5
10150echo "${ECHO_T}no" >&6
10151 fi
10152
10153
10154 enablestring=
10155 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
10156echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
10157 no_cache=0
10158 # Check whether --enable-tipwindow or --disable-tipwindow was given.
10159if test "${enable_tipwindow+set}" = set; then
10160 enableval="$enable_tipwindow"
10161
10162 if test "$enableval" = yes; then
10163 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
10164 else
10165 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
10166 fi
10167
10168else
10169
10170 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
10171 if test "x$LINE" != x ; then
10172 eval "DEFAULT_$LINE"
10173 else
10174 no_cache=1
10175 fi
10176
10177 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
10178
10179fi;
10180
10181 eval "$ac_cv_use_tipwindow"
10182 if test "$no_cache" != 1; then
10183 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
10184 fi
10185
10186 if test "$wxUSE_TIPWINDOW" = yes; then
10187 echo "$as_me:$LINENO: result: yes" >&5
10188echo "${ECHO_T}yes" >&6
10189 else
10190 echo "$as_me:$LINENO: result: no" >&5
10191echo "${ECHO_T}no" >&6
10192 fi
10193
10194
10195 enablestring=
10196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
10197echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
10198 no_cache=0
10199 # Check whether --enable-popupwin or --disable-popupwin was given.
10200if test "${enable_popupwin+set}" = set; then
10201 enableval="$enable_popupwin"
10202
10203 if test "$enableval" = yes; then
10204 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
10205 else
10206 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
10207 fi
10208
10209else
10210
10211 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
10212 if test "x$LINE" != x ; then
10213 eval "DEFAULT_$LINE"
10214 else
10215 no_cache=1
10216 fi
10217
10218 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
10219
10220fi;
10221
10222 eval "$ac_cv_use_popupwin"
10223 if test "$no_cache" != 1; then
10224 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
10225 fi
10226
10227 if test "$wxUSE_POPUPWIN" = yes; then
10228 echo "$as_me:$LINENO: result: yes" >&5
10229echo "${ECHO_T}yes" >&6
10230 else
10231 echo "$as_me:$LINENO: result: no" >&5
10232echo "${ECHO_T}no" >&6
10233 fi
10234
10235
10236
10237
10238 enablestring=
10239 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
10240echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
10241 no_cache=0
10242 # Check whether --enable-commondlg or --disable-commondlg was given.
10243if test "${enable_commondlg+set}" = set; then
10244 enableval="$enable_commondlg"
10245
10246 if test "$enableval" = yes; then
10247 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
10248 else
10249 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
10250 fi
10251
10252else
10253
10254 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
10255 if test "x$LINE" != x ; then
10256 eval "DEFAULT_$LINE"
10257 else
10258 no_cache=1
10259 fi
10260
10261 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
10262
10263fi;
10264
10265 eval "$ac_cv_use_commondlg"
10266 if test "$no_cache" != 1; then
10267 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
10268 fi
10269
10270 if test "$wxUSE_COMMONDLGS" = yes; then
10271 echo "$as_me:$LINENO: result: yes" >&5
10272echo "${ECHO_T}yes" >&6
10273 else
10274 echo "$as_me:$LINENO: result: no" >&5
10275echo "${ECHO_T}no" >&6
10276 fi
10277
10278
319c5ed4
VZ
10279 enablestring=
10280 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
10281echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6
10282 no_cache=0
10283 # Check whether --enable-aboutdlg or --disable-aboutdlg was given.
10284if test "${enable_aboutdlg+set}" = set; then
10285 enableval="$enable_aboutdlg"
10286
10287 if test "$enableval" = yes; then
10288 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
10289 else
10290 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
10291 fi
10292
10293else
10294
10295 LINE=`grep "wxUSE_ABOUTDLG" ${wx_arg_cache_file}`
10296 if test "x$LINE" != x ; then
10297 eval "DEFAULT_$LINE"
10298 else
10299 no_cache=1
10300 fi
10301
10302 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG='$DEFAULT_wxUSE_ABOUTDLG
10303
10304fi;
10305
10306 eval "$ac_cv_use_aboutdlg"
10307 if test "$no_cache" != 1; then
10308 echo $ac_cv_use_aboutdlg >> ${wx_arg_cache_file}.tmp
10309 fi
10310
10311 if test "$wxUSE_ABOUTDLG" = yes; then
10312 echo "$as_me:$LINENO: result: yes" >&5
10313echo "${ECHO_T}yes" >&6
10314 else
10315 echo "$as_me:$LINENO: result: no" >&5
10316echo "${ECHO_T}no" >&6
10317 fi
10318
10319
a848cd7e
SC
10320 enablestring=
10321 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
10322echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
10323 no_cache=0
10324 # Check whether --enable-choicedlg or --disable-choicedlg was given.
10325if test "${enable_choicedlg+set}" = set; then
10326 enableval="$enable_choicedlg"
10327
10328 if test "$enableval" = yes; then
10329 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
10330 else
10331 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
10332 fi
10333
10334else
10335
10336 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
10337 if test "x$LINE" != x ; then
10338 eval "DEFAULT_$LINE"
10339 else
10340 no_cache=1
10341 fi
10342
10343 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
10344
10345fi;
10346
10347 eval "$ac_cv_use_choicedlg"
10348 if test "$no_cache" != 1; then
10349 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
10350 fi
10351
10352 if test "$wxUSE_CHOICEDLG" = yes; then
10353 echo "$as_me:$LINENO: result: yes" >&5
10354echo "${ECHO_T}yes" >&6
10355 else
10356 echo "$as_me:$LINENO: result: no" >&5
10357echo "${ECHO_T}no" >&6
10358 fi
10359
10360
10361 enablestring=
10362 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
10363echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
10364 no_cache=0
10365 # Check whether --enable-coldlg or --disable-coldlg was given.
10366if test "${enable_coldlg+set}" = set; then
10367 enableval="$enable_coldlg"
10368
10369 if test "$enableval" = yes; then
10370 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
10371 else
10372 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
10373 fi
10374
10375else
10376
10377 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
10378 if test "x$LINE" != x ; then
10379 eval "DEFAULT_$LINE"
10380 else
10381 no_cache=1
10382 fi
10383
10384 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
10385
10386fi;
10387
10388 eval "$ac_cv_use_coldlg"
10389 if test "$no_cache" != 1; then
10390 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
10391 fi
10392
10393 if test "$wxUSE_COLOURDLG" = yes; then
10394 echo "$as_me:$LINENO: result: yes" >&5
10395echo "${ECHO_T}yes" >&6
10396 else
10397 echo "$as_me:$LINENO: result: no" >&5
10398echo "${ECHO_T}no" >&6
10399 fi
10400
10401
10402 enablestring=
10403 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
10404echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
10405 no_cache=0
10406 # Check whether --enable-filedlg or --disable-filedlg was given.
10407if test "${enable_filedlg+set}" = set; then
10408 enableval="$enable_filedlg"
10409
10410 if test "$enableval" = yes; then
10411 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
10412 else
10413 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
10414 fi
10415
10416else
10417
10418 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
10419 if test "x$LINE" != x ; then
10420 eval "DEFAULT_$LINE"
10421 else
10422 no_cache=1
10423 fi
10424
10425 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
10426
10427fi;
10428
10429 eval "$ac_cv_use_filedlg"
10430 if test "$no_cache" != 1; then
10431 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
10432 fi
10433
10434 if test "$wxUSE_FILEDLG" = yes; then
10435 echo "$as_me:$LINENO: result: yes" >&5
10436echo "${ECHO_T}yes" >&6
10437 else
10438 echo "$as_me:$LINENO: result: no" >&5
10439echo "${ECHO_T}no" >&6
10440 fi
10441
10442
10443 enablestring=
10444 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
10445echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
10446 no_cache=0
10447 # Check whether --enable-finddlg or --disable-finddlg was given.
10448if test "${enable_finddlg+set}" = set; then
10449 enableval="$enable_finddlg"
10450
10451 if test "$enableval" = yes; then
10452 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
10453 else
10454 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
10455 fi
10456
10457else
10458
10459 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
10460 if test "x$LINE" != x ; then
10461 eval "DEFAULT_$LINE"
10462 else
10463 no_cache=1
10464 fi
10465
10466 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
10467
10468fi;
10469
10470 eval "$ac_cv_use_finddlg"
10471 if test "$no_cache" != 1; then
10472 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
10473 fi
10474
10475 if test "$wxUSE_FINDREPLDLG" = yes; then
10476 echo "$as_me:$LINENO: result: yes" >&5
10477echo "${ECHO_T}yes" >&6
10478 else
10479 echo "$as_me:$LINENO: result: no" >&5
10480echo "${ECHO_T}no" >&6
10481 fi
10482
10483
10484 enablestring=
10485 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10486echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10487 no_cache=0
10488 # Check whether --enable-fontdlg or --disable-fontdlg was given.
10489if test "${enable_fontdlg+set}" = set; then
10490 enableval="$enable_fontdlg"
10491
10492 if test "$enableval" = yes; then
10493 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10494 else
10495 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10496 fi
10497
10498else
10499
10500 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10501 if test "x$LINE" != x ; then
10502 eval "DEFAULT_$LINE"
10503 else
10504 no_cache=1
10505 fi
10506
10507 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10508
10509fi;
10510
10511 eval "$ac_cv_use_fontdlg"
10512 if test "$no_cache" != 1; then
10513 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10514 fi
10515
10516 if test "$wxUSE_FONTDLG" = yes; then
10517 echo "$as_me:$LINENO: result: yes" >&5
10518echo "${ECHO_T}yes" >&6
10519 else
10520 echo "$as_me:$LINENO: result: no" >&5
10521echo "${ECHO_T}no" >&6
10522 fi
10523
10524
10525 enablestring=
10526 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10527echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10528 no_cache=0
10529 # Check whether --enable-dirdlg or --disable-dirdlg was given.
10530if test "${enable_dirdlg+set}" = set; then
10531 enableval="$enable_dirdlg"
10532
10533 if test "$enableval" = yes; then
10534 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10535 else
10536 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10537 fi
10538
10539else
10540
10541 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10542 if test "x$LINE" != x ; then
10543 eval "DEFAULT_$LINE"
10544 else
10545 no_cache=1
10546 fi
10547
10548 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10549
10550fi;
10551
10552 eval "$ac_cv_use_dirdlg"
10553 if test "$no_cache" != 1; then
10554 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10555 fi
10556
10557 if test "$wxUSE_DIRDLG" = yes; then
10558 echo "$as_me:$LINENO: result: yes" >&5
10559echo "${ECHO_T}yes" >&6
10560 else
10561 echo "$as_me:$LINENO: result: no" >&5
10562echo "${ECHO_T}no" >&6
10563 fi
10564
10565
10566 enablestring=
10567 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10568echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10569 no_cache=0
10570 # Check whether --enable-msgdlg or --disable-msgdlg was given.
10571if test "${enable_msgdlg+set}" = set; then
10572 enableval="$enable_msgdlg"
10573
10574 if test "$enableval" = yes; then
10575 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10576 else
10577 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10578 fi
10579
10580else
10581
10582 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10583 if test "x$LINE" != x ; then
10584 eval "DEFAULT_$LINE"
10585 else
10586 no_cache=1
10587 fi
10588
10589 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10590
10591fi;
10592
10593 eval "$ac_cv_use_msgdlg"
10594 if test "$no_cache" != 1; then
10595 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10596 fi
10597
10598 if test "$wxUSE_MSGDLG" = yes; then
10599 echo "$as_me:$LINENO: result: yes" >&5
10600echo "${ECHO_T}yes" >&6
10601 else
10602 echo "$as_me:$LINENO: result: no" >&5
10603echo "${ECHO_T}no" >&6
10604 fi
10605
10606
10607 enablestring=
10608 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10609echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10610 no_cache=0
10611 # Check whether --enable-numberdlg or --disable-numberdlg was given.
10612if test "${enable_numberdlg+set}" = set; then
10613 enableval="$enable_numberdlg"
10614
10615 if test "$enableval" = yes; then
10616 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10617 else
10618 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10619 fi
10620
10621else
10622
10623 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10624 if test "x$LINE" != x ; then
10625 eval "DEFAULT_$LINE"
10626 else
10627 no_cache=1
10628 fi
10629
10630 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10631
10632fi;
10633
10634 eval "$ac_cv_use_numberdlg"
10635 if test "$no_cache" != 1; then
10636 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10637 fi
10638
10639 if test "$wxUSE_NUMBERDLG" = yes; then
10640 echo "$as_me:$LINENO: result: yes" >&5
10641echo "${ECHO_T}yes" >&6
10642 else
10643 echo "$as_me:$LINENO: result: no" >&5
10644echo "${ECHO_T}no" >&6
10645 fi
10646
10647
10648 enablestring=
10649 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10650echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10651 no_cache=0
10652 # Check whether --enable-splash or --disable-splash was given.
10653if test "${enable_splash+set}" = set; then
10654 enableval="$enable_splash"
10655
10656 if test "$enableval" = yes; then
10657 ac_cv_use_splash='wxUSE_SPLASH=yes'
10658 else
10659 ac_cv_use_splash='wxUSE_SPLASH=no'
10660 fi
10661
10662else
10663
10664 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10665 if test "x$LINE" != x ; then
10666 eval "DEFAULT_$LINE"
10667 else
10668 no_cache=1
10669 fi
10670
10671 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10672
10673fi;
10674
10675 eval "$ac_cv_use_splash"
10676 if test "$no_cache" != 1; then
10677 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10678 fi
10679
10680 if test "$wxUSE_SPLASH" = yes; then
10681 echo "$as_me:$LINENO: result: yes" >&5
10682echo "${ECHO_T}yes" >&6
10683 else
10684 echo "$as_me:$LINENO: result: no" >&5
10685echo "${ECHO_T}no" >&6
10686 fi
10687
10688
10689 enablestring=
10690 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10691echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10692 no_cache=0
10693 # Check whether --enable-textdlg or --disable-textdlg was given.
10694if test "${enable_textdlg+set}" = set; then
10695 enableval="$enable_textdlg"
10696
10697 if test "$enableval" = yes; then
10698 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10699 else
10700 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10701 fi
10702
10703else
10704
10705 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10706 if test "x$LINE" != x ; then
10707 eval "DEFAULT_$LINE"
10708 else
10709 no_cache=1
10710 fi
10711
10712 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10713
10714fi;
10715
10716 eval "$ac_cv_use_textdlg"
10717 if test "$no_cache" != 1; then
10718 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10719 fi
10720
10721 if test "$wxUSE_TEXTDLG" = yes; then
10722 echo "$as_me:$LINENO: result: yes" >&5
10723echo "${ECHO_T}yes" >&6
10724 else
10725 echo "$as_me:$LINENO: result: no" >&5
10726echo "${ECHO_T}no" >&6
10727 fi
10728
10729
10730 enablestring=
10731 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10732echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10733 no_cache=0
10734 # Check whether --enable-tipdlg or --disable-tipdlg was given.
10735if test "${enable_tipdlg+set}" = set; then
10736 enableval="$enable_tipdlg"
10737
10738 if test "$enableval" = yes; then
10739 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10740 else
10741 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10742 fi
10743
10744else
10745
10746 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10747 if test "x$LINE" != x ; then
10748 eval "DEFAULT_$LINE"
10749 else
10750 no_cache=1
10751 fi
10752
10753 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10754
10755fi;
10756
10757 eval "$ac_cv_use_tipdlg"
10758 if test "$no_cache" != 1; then
10759 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10760 fi
10761
10762 if test "$wxUSE_STARTUP_TIPS" = yes; then
10763 echo "$as_me:$LINENO: result: yes" >&5
10764echo "${ECHO_T}yes" >&6
10765 else
10766 echo "$as_me:$LINENO: result: no" >&5
10767echo "${ECHO_T}no" >&6
10768 fi
10769
10770
10771 enablestring=
10772 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10773echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10774 no_cache=0
10775 # Check whether --enable-progressdlg or --disable-progressdlg was given.
10776if test "${enable_progressdlg+set}" = set; then
10777 enableval="$enable_progressdlg"
10778
10779 if test "$enableval" = yes; then
10780 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10781 else
10782 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10783 fi
10784
10785else
10786
10787 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10788 if test "x$LINE" != x ; then
10789 eval "DEFAULT_$LINE"
10790 else
10791 no_cache=1
10792 fi
10793
10794 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10795
10796fi;
10797
10798 eval "$ac_cv_use_progressdlg"
10799 if test "$no_cache" != 1; then
10800 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10801 fi
10802
10803 if test "$wxUSE_PROGRESSDLG" = yes; then
10804 echo "$as_me:$LINENO: result: yes" >&5
10805echo "${ECHO_T}yes" >&6
10806 else
10807 echo "$as_me:$LINENO: result: no" >&5
10808echo "${ECHO_T}no" >&6
10809 fi
10810
10811
10812 enablestring=
10813 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10814echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10815 no_cache=0
10816 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10817if test "${enable_wizarddlg+set}" = set; then
10818 enableval="$enable_wizarddlg"
10819
10820 if test "$enableval" = yes; then
10821 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10822 else
10823 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10824 fi
10825
10826else
10827
10828 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10829 if test "x$LINE" != x ; then
10830 eval "DEFAULT_$LINE"
10831 else
10832 no_cache=1
10833 fi
10834
10835 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10836
10837fi;
10838
10839 eval "$ac_cv_use_wizarddlg"
10840 if test "$no_cache" != 1; then
10841 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10842 fi
10843
10844 if test "$wxUSE_WIZARDDLG" = yes; then
10845 echo "$as_me:$LINENO: result: yes" >&5
10846echo "${ECHO_T}yes" >&6
10847 else
10848 echo "$as_me:$LINENO: result: no" >&5
10849echo "${ECHO_T}no" >&6
10850 fi
10851
10852
10853
10854
10855 enablestring=
10856 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10857echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10858 no_cache=0
10859 # Check whether --enable-menus or --disable-menus was given.
10860if test "${enable_menus+set}" = set; then
10861 enableval="$enable_menus"
10862
10863 if test "$enableval" = yes; then
10864 ac_cv_use_menus='wxUSE_MENUS=yes'
10865 else
10866 ac_cv_use_menus='wxUSE_MENUS=no'
10867 fi
10868
10869else
10870
10871 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10872 if test "x$LINE" != x ; then
10873 eval "DEFAULT_$LINE"
10874 else
10875 no_cache=1
10876 fi
10877
10878 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10879
10880fi;
10881
10882 eval "$ac_cv_use_menus"
10883 if test "$no_cache" != 1; then
10884 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10885 fi
10886
10887 if test "$wxUSE_MENUS" = yes; then
10888 echo "$as_me:$LINENO: result: yes" >&5
10889echo "${ECHO_T}yes" >&6
10890 else
10891 echo "$as_me:$LINENO: result: no" >&5
10892echo "${ECHO_T}no" >&6
10893 fi
10894
10895
10896 enablestring=
10897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10898echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10899 no_cache=0
10900 # Check whether --enable-miniframe or --disable-miniframe was given.
10901if test "${enable_miniframe+set}" = set; then
10902 enableval="$enable_miniframe"
10903
10904 if test "$enableval" = yes; then
10905 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10906 else
10907 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10908 fi
10909
10910else
10911
10912 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10913 if test "x$LINE" != x ; then
10914 eval "DEFAULT_$LINE"
10915 else
10916 no_cache=1
10917 fi
10918
10919 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10920
10921fi;
10922
10923 eval "$ac_cv_use_miniframe"
10924 if test "$no_cache" != 1; then
10925 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10926 fi
10927
10928 if test "$wxUSE_MINIFRAME" = yes; then
10929 echo "$as_me:$LINENO: result: yes" >&5
10930echo "${ECHO_T}yes" >&6
10931 else
10932 echo "$as_me:$LINENO: result: no" >&5
10933echo "${ECHO_T}no" >&6
10934 fi
10935
10936
10937 enablestring=
10938 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10939echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10940 no_cache=0
10941 # Check whether --enable-tooltips or --disable-tooltips was given.
10942if test "${enable_tooltips+set}" = set; then
10943 enableval="$enable_tooltips"
10944
10945 if test "$enableval" = yes; then
10946 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10947 else
10948 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10949 fi
10950
10951else
10952
10953 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10954 if test "x$LINE" != x ; then
10955 eval "DEFAULT_$LINE"
10956 else
10957 no_cache=1
10958 fi
10959
10960 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10961
10962fi;
10963
10964 eval "$ac_cv_use_tooltips"
10965 if test "$no_cache" != 1; then
10966 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10967 fi
10968
10969 if test "$wxUSE_TOOLTIPS" = yes; then
10970 echo "$as_me:$LINENO: result: yes" >&5
10971echo "${ECHO_T}yes" >&6
10972 else
10973 echo "$as_me:$LINENO: result: no" >&5
10974echo "${ECHO_T}no" >&6
10975 fi
10976
10977
10978 enablestring=
10979 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10980echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10981 no_cache=0
10982 # Check whether --enable-splines or --disable-splines was given.
10983if test "${enable_splines+set}" = set; then
10984 enableval="$enable_splines"
10985
10986 if test "$enableval" = yes; then
10987 ac_cv_use_splines='wxUSE_SPLINES=yes'
10988 else
10989 ac_cv_use_splines='wxUSE_SPLINES=no'
10990 fi
10991
10992else
10993
10994 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10995 if test "x$LINE" != x ; then
10996 eval "DEFAULT_$LINE"
10997 else
10998 no_cache=1
10999 fi
11000
11001 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
11002
11003fi;
11004
11005 eval "$ac_cv_use_splines"
11006 if test "$no_cache" != 1; then
11007 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
11008 fi
11009
11010 if test "$wxUSE_SPLINES" = yes; then
11011 echo "$as_me:$LINENO: result: yes" >&5
11012echo "${ECHO_T}yes" >&6
11013 else
11014 echo "$as_me:$LINENO: result: no" >&5
11015echo "${ECHO_T}no" >&6
11016 fi
11017
11018
fbe2ca43
SN
11019 enablestring=
11020 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
11021echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
11022 no_cache=0
11023 # Check whether --enable-mousewheel or --disable-mousewheel was given.
11024if test "${enable_mousewheel+set}" = set; then
11025 enableval="$enable_mousewheel"
11026
11027 if test "$enableval" = yes; then
11028 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
11029 else
11030 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
11031 fi
11032
11033else
11034
11035 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
11036 if test "x$LINE" != x ; then
11037 eval "DEFAULT_$LINE"
11038 else
11039 no_cache=1
11040 fi
11041
11042 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
11043
11044fi;
11045
11046 eval "$ac_cv_use_mousewheel"
11047 if test "$no_cache" != 1; then
11048 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
11049 fi
11050
11051 if test "$wxUSE_MOUSEWHEEL" = yes; then
11052 echo "$as_me:$LINENO: result: yes" >&5
11053echo "${ECHO_T}yes" >&6
11054 else
11055 echo "$as_me:$LINENO: result: no" >&5
11056echo "${ECHO_T}no" >&6
11057 fi
11058
11059
a848cd7e
SC
11060 enablestring=
11061 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
11062echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
11063 no_cache=0
11064 # Check whether --enable-validators or --disable-validators was given.
11065if test "${enable_validators+set}" = set; then
11066 enableval="$enable_validators"
11067
11068 if test "$enableval" = yes; then
11069 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
11070 else
11071 ac_cv_use_validators='wxUSE_VALIDATORS=no'
11072 fi
11073
11074else
11075
11076 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
11077 if test "x$LINE" != x ; then
11078 eval "DEFAULT_$LINE"
11079 else
11080 no_cache=1
11081 fi
11082
11083 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
11084
11085fi;
11086
11087 eval "$ac_cv_use_validators"
11088 if test "$no_cache" != 1; then
11089 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
11090 fi
11091
11092 if test "$wxUSE_VALIDATORS" = yes; then
11093 echo "$as_me:$LINENO: result: yes" >&5
11094echo "${ECHO_T}yes" >&6
11095 else
11096 echo "$as_me:$LINENO: result: no" >&5
11097echo "${ECHO_T}no" >&6
11098 fi
11099
11100
11101 enablestring=
11102 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
11103echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
11104 no_cache=0
11105 # Check whether --enable-busyinfo or --disable-busyinfo was given.
11106if test "${enable_busyinfo+set}" = set; then
11107 enableval="$enable_busyinfo"
11108
11109 if test "$enableval" = yes; then
11110 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
11111 else
11112 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
11113 fi
11114
11115else
11116
11117 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
11118 if test "x$LINE" != x ; then
11119 eval "DEFAULT_$LINE"
11120 else
11121 no_cache=1
11122 fi
11123
11124 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
11125
11126fi;
11127
11128 eval "$ac_cv_use_busyinfo"
11129 if test "$no_cache" != 1; then
11130 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
11131 fi
11132
11133 if test "$wxUSE_BUSYINFO" = yes; then
11134 echo "$as_me:$LINENO: result: yes" >&5
11135echo "${ECHO_T}yes" >&6
11136 else
11137 echo "$as_me:$LINENO: result: no" >&5
11138echo "${ECHO_T}no" >&6
11139 fi
11140
11141
11142 enablestring=
11143 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
11144echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
11145 no_cache=0
11146 # Check whether --enable-joystick or --disable-joystick was given.
11147if test "${enable_joystick+set}" = set; then
11148 enableval="$enable_joystick"
11149
11150 if test "$enableval" = yes; then
11151 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
11152 else
11153 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
11154 fi
11155
11156else
11157
11158 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
11159 if test "x$LINE" != x ; then
11160 eval "DEFAULT_$LINE"
11161 else
11162 no_cache=1
11163 fi
11164
11165 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
11166
11167fi;
11168
11169 eval "$ac_cv_use_joystick"
11170 if test "$no_cache" != 1; then
11171 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
11172 fi
11173
11174 if test "$wxUSE_JOYSTICK" = yes; then
11175 echo "$as_me:$LINENO: result: yes" >&5
11176echo "${ECHO_T}yes" >&6
11177 else
11178 echo "$as_me:$LINENO: result: no" >&5
11179echo "${ECHO_T}no" >&6
11180 fi
11181
11182
11183 enablestring=
11184 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
11185echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
11186 no_cache=0
11187 # Check whether --enable-metafile or --disable-metafile was given.
11188if test "${enable_metafile+set}" = set; then
11189 enableval="$enable_metafile"
11190
11191 if test "$enableval" = yes; then
11192 ac_cv_use_metafile='wxUSE_METAFILE=yes'
11193 else
11194 ac_cv_use_metafile='wxUSE_METAFILE=no'
11195 fi
11196
11197else
11198
11199 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
11200 if test "x$LINE" != x ; then
11201 eval "DEFAULT_$LINE"
11202 else
11203 no_cache=1
11204 fi
11205
11206 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
11207
11208fi;
11209
11210 eval "$ac_cv_use_metafile"
11211 if test "$no_cache" != 1; then
11212 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
11213 fi
11214
11215 if test "$wxUSE_METAFILE" = yes; then
11216 echo "$as_me:$LINENO: result: yes" >&5
11217echo "${ECHO_T}yes" >&6
11218 else
11219 echo "$as_me:$LINENO: result: no" >&5
11220echo "${ECHO_T}no" >&6
11221 fi
11222
11223
11224 enablestring=
11225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
11226echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
11227 no_cache=0
11228 # Check whether --enable-dragimage or --disable-dragimage was given.
11229if test "${enable_dragimage+set}" = set; then
11230 enableval="$enable_dragimage"
11231
11232 if test "$enableval" = yes; then
11233 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
11234 else
11235 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
11236 fi
11237
11238else
11239
11240 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
11241 if test "x$LINE" != x ; then
11242 eval "DEFAULT_$LINE"
11243 else
11244 no_cache=1
11245 fi
11246
11247 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
11248
11249fi;
11250
11251 eval "$ac_cv_use_dragimage"
11252 if test "$no_cache" != 1; then
11253 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
11254 fi
11255
11256 if test "$wxUSE_DRAGIMAGE" = yes; then
11257 echo "$as_me:$LINENO: result: yes" >&5
11258echo "${ECHO_T}yes" >&6
11259 else
11260 echo "$as_me:$LINENO: result: no" >&5
11261echo "${ECHO_T}no" >&6
11262 fi
11263
11264
11265 enablestring=
11266 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
11267echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
11268 no_cache=0
11269 # Check whether --enable-accessibility or --disable-accessibility was given.
11270if test "${enable_accessibility+set}" = set; then
11271 enableval="$enable_accessibility"
11272
11273 if test "$enableval" = yes; then
11274 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
11275 else
11276 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
11277 fi
11278
11279else
11280
11281 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
11282 if test "x$LINE" != x ; then
11283 eval "DEFAULT_$LINE"
11284 else
11285 no_cache=1
11286 fi
11287
11288 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
11289
11290fi;
11291
11292 eval "$ac_cv_use_accessibility"
11293 if test "$no_cache" != 1; then
11294 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
11295 fi
11296
11297 if test "$wxUSE_ACCESSIBILITY" = yes; then
11298 echo "$as_me:$LINENO: result: yes" >&5
11299echo "${ECHO_T}yes" >&6
11300 else
11301 echo "$as_me:$LINENO: result: no" >&5
11302echo "${ECHO_T}no" >&6
11303 fi
11304
11305
38b4a946
VZ
11306if test "$wxUSE_MSW" = "1"; then
11307
11308 enablestring=
11309 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
11310echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
11311 no_cache=0
11312 # Check whether --enable-dccache or --disable-dccache was given.
11313if test "${enable_dccache+set}" = set; then
11314 enableval="$enable_dccache"
11315
11316 if test "$enableval" = yes; then
11317 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
11318 else
11319 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
11320 fi
11321
11322else
11323
11324 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
11325 if test "x$LINE" != x ; then
11326 eval "DEFAULT_$LINE"
11327 else
11328 no_cache=1
11329 fi
11330
11331 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
11332
11333fi;
11334
11335 eval "$ac_cv_use_dccache"
11336 if test "$no_cache" != 1; then
11337 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
11338 fi
11339
11340 if test "$wxUSE_DC_CACHEING" = yes; then
11341 echo "$as_me:$LINENO: result: yes" >&5
11342echo "${ECHO_T}yes" >&6
11343 else
11344 echo "$as_me:$LINENO: result: no" >&5
11345echo "${ECHO_T}no" >&6
11346 fi
11347
11348fi
11349
a848cd7e
SC
11350
11351
11352 enablestring=
11353 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
11354echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
11355 no_cache=0
11356 # Check whether --enable-palette or --disable-palette was given.
11357if test "${enable_palette+set}" = set; then
11358 enableval="$enable_palette"
11359
11360 if test "$enableval" = yes; then
11361 ac_cv_use_palette='wxUSE_PALETTE=yes'
11362 else
11363 ac_cv_use_palette='wxUSE_PALETTE=no'
11364 fi
11365
11366else
11367
11368 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
11369 if test "x$LINE" != x ; then
11370 eval "DEFAULT_$LINE"
11371 else
11372 no_cache=1
11373 fi
11374
11375 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
11376
11377fi;
11378
11379 eval "$ac_cv_use_palette"
11380 if test "$no_cache" != 1; then
11381 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
11382 fi
11383
11384 if test "$wxUSE_PALETTE" = yes; then
11385 echo "$as_me:$LINENO: result: yes" >&5
11386echo "${ECHO_T}yes" >&6
11387 else
11388 echo "$as_me:$LINENO: result: no" >&5
11389echo "${ECHO_T}no" >&6
11390 fi
11391
11392
11393 enablestring=
11394 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
11395echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
11396 no_cache=0
11397 # Check whether --enable-image or --disable-image was given.
11398if test "${enable_image+set}" = set; then
11399 enableval="$enable_image"
11400
11401 if test "$enableval" = yes; then
11402 ac_cv_use_image='wxUSE_IMAGE=yes'
11403 else
11404 ac_cv_use_image='wxUSE_IMAGE=no'
11405 fi
11406
11407else
11408
11409 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
11410 if test "x$LINE" != x ; then
11411 eval "DEFAULT_$LINE"
11412 else
11413 no_cache=1
11414 fi
11415
11416 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
11417
11418fi;
11419
11420 eval "$ac_cv_use_image"
11421 if test "$no_cache" != 1; then
11422 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
11423 fi
11424
11425 if test "$wxUSE_IMAGE" = yes; then
11426 echo "$as_me:$LINENO: result: yes" >&5
11427echo "${ECHO_T}yes" >&6
11428 else
11429 echo "$as_me:$LINENO: result: no" >&5
11430echo "${ECHO_T}no" >&6
11431 fi
11432
11433
11434 enablestring=
11435 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
11436echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
11437 no_cache=0
11438 # Check whether --enable-gif or --disable-gif was given.
11439if test "${enable_gif+set}" = set; then
11440 enableval="$enable_gif"
11441
11442 if test "$enableval" = yes; then
11443 ac_cv_use_gif='wxUSE_GIF=yes'
11444 else
11445 ac_cv_use_gif='wxUSE_GIF=no'
11446 fi
11447
11448else
11449
11450 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
11451 if test "x$LINE" != x ; then
11452 eval "DEFAULT_$LINE"
11453 else
11454 no_cache=1
11455 fi
11456
11457 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
11458
11459fi;
11460
11461 eval "$ac_cv_use_gif"
11462 if test "$no_cache" != 1; then
11463 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
11464 fi
11465
11466 if test "$wxUSE_GIF" = yes; then
11467 echo "$as_me:$LINENO: result: yes" >&5
11468echo "${ECHO_T}yes" >&6
11469 else
11470 echo "$as_me:$LINENO: result: no" >&5
11471echo "${ECHO_T}no" >&6
11472 fi
11473
11474
11475 enablestring=
11476 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11477echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11478 no_cache=0
11479 # Check whether --enable-pcx or --disable-pcx was given.
11480if test "${enable_pcx+set}" = set; then
11481 enableval="$enable_pcx"
11482
11483 if test "$enableval" = yes; then
11484 ac_cv_use_pcx='wxUSE_PCX=yes'
11485 else
11486 ac_cv_use_pcx='wxUSE_PCX=no'
11487 fi
11488
11489else
11490
11491 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11492 if test "x$LINE" != x ; then
11493 eval "DEFAULT_$LINE"
11494 else
11495 no_cache=1
11496 fi
11497
11498 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11499
11500fi;
11501
11502 eval "$ac_cv_use_pcx"
11503 if test "$no_cache" != 1; then
11504 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11505 fi
11506
11507 if test "$wxUSE_PCX" = yes; then
11508 echo "$as_me:$LINENO: result: yes" >&5
11509echo "${ECHO_T}yes" >&6
11510 else
11511 echo "$as_me:$LINENO: result: no" >&5
11512echo "${ECHO_T}no" >&6
11513 fi
11514
11515
11516 enablestring=
11517 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11518echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11519 no_cache=0
11520 # Check whether --enable-iff or --disable-iff was given.
11521if test "${enable_iff+set}" = set; then
11522 enableval="$enable_iff"
11523
11524 if test "$enableval" = yes; then
11525 ac_cv_use_iff='wxUSE_IFF=yes'
11526 else
11527 ac_cv_use_iff='wxUSE_IFF=no'
11528 fi
11529
11530else
11531
11532 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11533 if test "x$LINE" != x ; then
11534 eval "DEFAULT_$LINE"
11535 else
11536 no_cache=1
11537 fi
11538
11539 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11540
11541fi;
11542
11543 eval "$ac_cv_use_iff"
11544 if test "$no_cache" != 1; then
11545 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11546 fi
11547
11548 if test "$wxUSE_IFF" = yes; then
11549 echo "$as_me:$LINENO: result: yes" >&5
11550echo "${ECHO_T}yes" >&6
11551 else
11552 echo "$as_me:$LINENO: result: no" >&5
11553echo "${ECHO_T}no" >&6
11554 fi
11555
11556
11557 enablestring=
11558 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11559echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11560 no_cache=0
11561 # Check whether --enable-pnm or --disable-pnm was given.
11562if test "${enable_pnm+set}" = set; then
11563 enableval="$enable_pnm"
11564
11565 if test "$enableval" = yes; then
11566 ac_cv_use_pnm='wxUSE_PNM=yes'
11567 else
11568 ac_cv_use_pnm='wxUSE_PNM=no'
11569 fi
11570
11571else
11572
11573 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11574 if test "x$LINE" != x ; then
11575 eval "DEFAULT_$LINE"
11576 else
11577 no_cache=1
11578 fi
11579
11580 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11581
11582fi;
11583
11584 eval "$ac_cv_use_pnm"
11585 if test "$no_cache" != 1; then
11586 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11587 fi
11588
11589 if test "$wxUSE_PNM" = yes; then
11590 echo "$as_me:$LINENO: result: yes" >&5
11591echo "${ECHO_T}yes" >&6
11592 else
11593 echo "$as_me:$LINENO: result: no" >&5
11594echo "${ECHO_T}no" >&6
11595 fi
11596
11597
11598 enablestring=
11599 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11600echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11601 no_cache=0
11602 # Check whether --enable-xpm or --disable-xpm was given.
11603if test "${enable_xpm+set}" = set; then
11604 enableval="$enable_xpm"
11605
11606 if test "$enableval" = yes; then
11607 ac_cv_use_xpm='wxUSE_XPM=yes'
11608 else
11609 ac_cv_use_xpm='wxUSE_XPM=no'
11610 fi
11611
11612else
11613
11614 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11615 if test "x$LINE" != x ; then
11616 eval "DEFAULT_$LINE"
11617 else
11618 no_cache=1
11619 fi
11620
11621 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11622
11623fi;
11624
11625 eval "$ac_cv_use_xpm"
11626 if test "$no_cache" != 1; then
11627 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11628 fi
11629
11630 if test "$wxUSE_XPM" = yes; then
11631 echo "$as_me:$LINENO: result: yes" >&5
11632echo "${ECHO_T}yes" >&6
11633 else
11634 echo "$as_me:$LINENO: result: no" >&5
11635echo "${ECHO_T}no" >&6
11636 fi
11637
11638
11639 enablestring=
11640 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11641echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11642 no_cache=0
11643 # Check whether --enable-ico_cur or --disable-ico_cur was given.
11644if test "${enable_ico_cur+set}" = set; then
11645 enableval="$enable_ico_cur"
11646
11647 if test "$enableval" = yes; then
11648 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11649 else
11650 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11651 fi
11652
11653else
11654
11655 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11656 if test "x$LINE" != x ; then
11657 eval "DEFAULT_$LINE"
11658 else
11659 no_cache=1
11660 fi
11661
11662 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11663
11664fi;
11665
11666 eval "$ac_cv_use_ico_cur"
11667 if test "$no_cache" != 1; then
11668 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11669 fi
11670
11671 if test "$wxUSE_ICO_CUR" = yes; then
11672 echo "$as_me:$LINENO: result: yes" >&5
11673echo "${ECHO_T}yes" >&6
11674 else
11675 echo "$as_me:$LINENO: result: no" >&5
11676echo "${ECHO_T}no" >&6
11677 fi
11678
11679
11680fi
11681
11682
11683
ceec2216
RL
11684# Check whether --with-flavour or --without-flavour was given.
11685if test "${with_flavour+set}" = set; then
11686 withval="$with_flavour"
11687 WX_FLAVOUR="$withval"
11688fi;
11689
11690
11691
a848cd7e
SC
11692 enablestring=
11693 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11694echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11695 no_cache=0
11696 # Check whether --enable-official_build or --disable-official_build was given.
11697if test "${enable_official_build+set}" = set; then
11698 enableval="$enable_official_build"
11699
11700 if test "$enableval" = yes; then
11701 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11702 else
11703 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11704 fi
11705
11706else
11707
11708 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11709 if test "x$LINE" != x ; then
11710 eval "DEFAULT_$LINE"
11711 else
11712 no_cache=1
11713 fi
11714
11715 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11716
11717fi;
11718
11719 eval "$ac_cv_use_official_build"
11720 if test "$no_cache" != 1; then
11721 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11722 fi
11723
11724 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11725 echo "$as_me:$LINENO: result: yes" >&5
11726echo "${ECHO_T}yes" >&6
11727 else
11728 echo "$as_me:$LINENO: result: no" >&5
11729echo "${ECHO_T}no" >&6
11730 fi
11731
11732# Check whether --enable-vendor or --disable-vendor was given.
11733if test "${enable_vendor+set}" = set; then
11734 enableval="$enable_vendor"
11735 VENDOR="$enableval"
11736fi;
11737if test "x$VENDOR" = "x"; then
11738 VENDOR="custom"
11739fi
11740
a848cd7e
SC
11741
11742
11743
11744 echo "saving argument cache $wx_arg_cache_file"
11745 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11746
11747
11748
11749echo "$as_me:$LINENO: checking for toolkit" >&5
11750echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11751
11752# In Wine, we need to default to MSW, not GTK or MOTIF
11753if test "$wxUSE_WINE" = "yes"; then
11754 DEFAULT_DEFAULT_wxUSE_GTK=0
11755 DEFAULT_DEFAULT_wxUSE_MOTIF=0
11756 DEFAULT_DEFAULT_wxUSE_MSW=1
11757 wxUSE_SHARED=no
11758fi
11759
f597b41c 11760
a848cd7e
SC
11761if test "$wxUSE_GUI" = "yes"; then
11762
11763 if test "$USE_BEOS" = 1; then
11764 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11765echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11766 { (exit 1); exit 1; }; }
11767 fi
11768
11769 if test "$TOOLKIT_GIVEN" = 1; then
11770 for toolkit in `echo $ALL_TOOLKITS`; do
11771 var=wxUSE_$toolkit
11772 eval "value=\$${var}"
f34ca037
MW
11773 if test "x$value" = "xno"; then
11774 eval "$var=0"
11775 elif test "x$value" != "x"; then
11776 eval "$var=1"
11777 fi
11778
11779 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11780 eval "wx${toolkit}_VERSION=$value"
11781 fi
a848cd7e
SC
11782 done
11783 else
11784 for toolkit in `echo $ALL_TOOLKITS`; do
11785 if test "$has_toolkit_in_cache" != 1; then
11786 var=DEFAULT_DEFAULT_wxUSE_$toolkit
11787 else
11788 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
11789
11790 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11791 if test "x$version" != "x"; then
11792 eval "wx${toolkit}_VERSION=$version"
11793 fi
a848cd7e
SC
11794 fi
11795 eval "wxUSE_$toolkit=\$${var}"
11796 done
11797 fi
11798
11799 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
b3c86150 11800 + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
a848cd7e
SC
11801 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11802
11803 case "${host}" in
11804 *-pc-os2_emx | *-pc-os2-emx )
11805 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11806 esac
11807
11808 case "$NUM_TOOLKITS" in
11809 1)
11810 ;;
11811 0)
11812 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11813echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11814 { (exit 1); exit 1; }; }
11815 ;;
11816 *)
11817 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11818echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11819 { (exit 1); exit 1; }; }
11820 esac
11821
f34ca037
MW
11822 # to be removed when --disable-gtk2 isn't needed
11823 if test "x$wxUSE_GTK2" = "xyes"; then
11824 wxGTK_VERSION=2
11825 elif test "x$wxUSE_GTK2" = "xno"; then
11826 wxGTK_VERSION=1
11827 fi
11828
a848cd7e
SC
11829 for toolkit in `echo $ALL_TOOLKITS`; do
11830 var=wxUSE_$toolkit
11831 eval "value=\$${var}"
11832 if test "x$value" != x; then
11833 cache_var=CACHE_$toolkit
11834 eval "cache=\$${cache_var}"
11835 if test "$cache" = 1; then
11836 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
11837 eval "version=\$wx${toolkit}_VERSION"
11838 if test "x$version" != "x"; then
11839 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11840 fi
a848cd7e
SC
11841 fi
11842 if test "$value" = 1; then
11843 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11844 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11845echo "${ECHO_T}$toolkit_echo" >&6
11846 fi
11847 fi
11848 done
11849else
11850 if test "x$host_alias" != "x"; then
11851 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11852echo "${ECHO_T}base ($host_alias hosted) only" >&6
11853 else
11854 echo "$as_me:$LINENO: result: base only" >&5
11855echo "${ECHO_T}base only" >&6
11856 fi
11857fi
11858
11859wants_win32=0
11860doesnt_want_win32=0
11861case "${host}" in
11862 *-*-cygwin*)
11863 if test "$wxUSE_MSW" = 1 ; then
11864 wants_win32=1
7275146d 11865 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
11866 else
11867 doesnt_want_win32=1
11868 fi
11869 ;;
11870 *-*-mingw*)
11871 wants_win32=1
11872 ;;
11873esac
11874
11875if test "$wxUSE_WINE" = "yes"; then
11876 wants_win32=1
11877 CC=winegcc
11878 CXX=wineg++
a848cd7e
SC
11879 LDFLAGS_GUI="-mwindows"
11880fi
11881
11882if test "$wants_win32" = 1 ; then
11883 USE_UNIX=0
11884 USE_WIN32=1
11885 cat >>confdefs.h <<\_ACEOF
11886#define __WIN32__ 1
11887_ACEOF
11888
11889 cat >>confdefs.h <<\_ACEOF
11890#define __WIN95__ 1
11891_ACEOF
11892
11893 cat >>confdefs.h <<\_ACEOF
11894#define __WINDOWS__ 1
11895_ACEOF
11896
11897 cat >>confdefs.h <<\_ACEOF
11898#define __GNUWIN32__ 1
11899_ACEOF
11900
11901 cat >>confdefs.h <<\_ACEOF
11902#define STRICT 1
11903_ACEOF
11904
11905 cat >>confdefs.h <<\_ACEOF
11906#define WINVER 0x0400
11907_ACEOF
11908
11909fi
11910if test "$doesnt_want_win32" = 1 ; then
11911 USE_UNIX=1
11912 USE_WIN32=0
11913fi
11914
11915if test "$USE_UNIX" = 1 ; then
11916 wxUSE_UNIX=yes
11917 cat >>confdefs.h <<\_ACEOF
11918#define __UNIX__ 1
11919_ACEOF
11920
11921fi
11922
11923
11924cat >confcache <<\_ACEOF
11925# This file is a shell script that caches the results of configure
11926# tests run on this system so they can be shared between configure
11927# scripts and configure runs, see configure's option --config-cache.
11928# It is not useful on other systems. If it contains results you don't
11929# want to keep, you may remove or edit it.
11930#
11931# config.status only pays attention to the cache file if you give it
11932# the --recheck option to rerun configure.
11933#
11934# `ac_cv_env_foo' variables (set or unset) will be overridden when
11935# loading this file, other *unset* `ac_cv_foo' will be assigned the
11936# following values.
11937
11938_ACEOF
11939
11940# The following way of writing the cache mishandles newlines in values,
11941# but we know of no workaround that is simple, portable, and efficient.
11942# So, don't put newlines in cache variables' values.
11943# Ultrix sh set writes to stderr and can't be redirected directly,
11944# and sets the high bit in the cache file unless we assign to the vars.
11945{
11946 (set) 2>&1 |
11947 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11948 *ac_space=\ *)
11949 # `set' does not quote correctly, so add quotes (double-quote
11950 # substitution turns \\\\ into \\, and sed turns \\ into \).
11951 sed -n \
ac1cb8d3
VS
11952 "s/'/'\\\\''/g;
11953 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
11954 ;;
11955 *)
11956 # `set' quotes correctly as required by POSIX, so do not add quotes.
11957 sed -n \
ac1cb8d3 11958 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
11959 ;;
11960 esac;
11961} |
11962 sed '
11963 t clear
11964 : clear
11965 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11966 t end
11967 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11968 : end' >>confcache
11969if diff $cache_file confcache >/dev/null 2>&1; then :; else
11970 if test -w $cache_file; then
11971 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11972 cat confcache >$cache_file
11973 else
11974 echo "not updating unwritable cache $cache_file"
11975 fi
11976fi
11977rm -f confcache
11978
a848cd7e 11979CFLAGS=${CFLAGS:=}
6dcfc289
DE
11980
11981
3006edc0 11982
6dcfc289 11983 ac_ext=c
a848cd7e
SC
11984ac_cpp='$CPP $CPPFLAGS'
11985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11987ac_compiler_gnu=$ac_cv_c_compiler_gnu
11988if test -n "$ac_tool_prefix"; then
11989 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11990set dummy ${ac_tool_prefix}gcc; ac_word=$2
11991echo "$as_me:$LINENO: checking for $ac_word" >&5
11992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11993if test "${ac_cv_prog_CC+set}" = set; then
11994 echo $ECHO_N "(cached) $ECHO_C" >&6
11995else
11996 if test -n "$CC"; then
11997 ac_cv_prog_CC="$CC" # Let the user override the test.
11998else
11999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12000for as_dir in $PATH
12001do
12002 IFS=$as_save_IFS
12003 test -z "$as_dir" && as_dir=.
12004 for ac_exec_ext in '' $ac_executable_extensions; do
12005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12006 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12008 break 2
12009 fi
12010done
12011done
12012
12013fi
12014fi
12015CC=$ac_cv_prog_CC
12016if test -n "$CC"; then
12017 echo "$as_me:$LINENO: result: $CC" >&5
12018echo "${ECHO_T}$CC" >&6
12019else
12020 echo "$as_me:$LINENO: result: no" >&5
12021echo "${ECHO_T}no" >&6
12022fi
12023
12024fi
12025if test -z "$ac_cv_prog_CC"; then
12026 ac_ct_CC=$CC
12027 # Extract the first word of "gcc", so it can be a program name with args.
12028set dummy gcc; ac_word=$2
12029echo "$as_me:$LINENO: checking for $ac_word" >&5
12030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12031if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12032 echo $ECHO_N "(cached) $ECHO_C" >&6
12033else
12034 if test -n "$ac_ct_CC"; then
12035 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12036else
12037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12038for as_dir in $PATH
12039do
12040 IFS=$as_save_IFS
12041 test -z "$as_dir" && as_dir=.
12042 for ac_exec_ext in '' $ac_executable_extensions; do
12043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12044 ac_cv_prog_ac_ct_CC="gcc"
12045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12046 break 2
12047 fi
12048done
12049done
12050
12051fi
12052fi
12053ac_ct_CC=$ac_cv_prog_ac_ct_CC
12054if test -n "$ac_ct_CC"; then
12055 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12056echo "${ECHO_T}$ac_ct_CC" >&6
12057else
12058 echo "$as_me:$LINENO: result: no" >&5
12059echo "${ECHO_T}no" >&6
12060fi
12061
12062 CC=$ac_ct_CC
12063else
12064 CC="$ac_cv_prog_CC"
12065fi
12066
12067if test -z "$CC"; then
12068 if test -n "$ac_tool_prefix"; then
12069 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12070set dummy ${ac_tool_prefix}cc; ac_word=$2
12071echo "$as_me:$LINENO: checking for $ac_word" >&5
12072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12073if test "${ac_cv_prog_CC+set}" = set; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
12075else
12076 if test -n "$CC"; then
12077 ac_cv_prog_CC="$CC" # Let the user override the test.
12078else
12079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12080for as_dir in $PATH
12081do
12082 IFS=$as_save_IFS
12083 test -z "$as_dir" && as_dir=.
12084 for ac_exec_ext in '' $ac_executable_extensions; do
12085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12086 ac_cv_prog_CC="${ac_tool_prefix}cc"
12087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12088 break 2
12089 fi
12090done
12091done
12092
12093fi
12094fi
12095CC=$ac_cv_prog_CC
12096if test -n "$CC"; then
12097 echo "$as_me:$LINENO: result: $CC" >&5
12098echo "${ECHO_T}$CC" >&6
12099else
12100 echo "$as_me:$LINENO: result: no" >&5
12101echo "${ECHO_T}no" >&6
12102fi
12103
12104fi
12105if test -z "$ac_cv_prog_CC"; then
12106 ac_ct_CC=$CC
12107 # Extract the first word of "cc", so it can be a program name with args.
12108set dummy cc; ac_word=$2
12109echo "$as_me:$LINENO: checking for $ac_word" >&5
12110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12111if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12112 echo $ECHO_N "(cached) $ECHO_C" >&6
12113else
12114 if test -n "$ac_ct_CC"; then
12115 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12116else
12117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12118for as_dir in $PATH
12119do
12120 IFS=$as_save_IFS
12121 test -z "$as_dir" && as_dir=.
12122 for ac_exec_ext in '' $ac_executable_extensions; do
12123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12124 ac_cv_prog_ac_ct_CC="cc"
12125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12126 break 2
12127 fi
12128done
12129done
12130
12131fi
12132fi
12133ac_ct_CC=$ac_cv_prog_ac_ct_CC
12134if test -n "$ac_ct_CC"; then
12135 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12136echo "${ECHO_T}$ac_ct_CC" >&6
12137else
12138 echo "$as_me:$LINENO: result: no" >&5
12139echo "${ECHO_T}no" >&6
12140fi
12141
12142 CC=$ac_ct_CC
12143else
12144 CC="$ac_cv_prog_CC"
12145fi
12146
12147fi
12148if test -z "$CC"; then
12149 # Extract the first word of "cc", so it can be a program name with args.
12150set dummy cc; ac_word=$2
12151echo "$as_me:$LINENO: checking for $ac_word" >&5
12152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12153if test "${ac_cv_prog_CC+set}" = set; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12155else
12156 if test -n "$CC"; then
12157 ac_cv_prog_CC="$CC" # Let the user override the test.
12158else
12159 ac_prog_rejected=no
12160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12161for as_dir in $PATH
12162do
12163 IFS=$as_save_IFS
12164 test -z "$as_dir" && as_dir=.
12165 for ac_exec_ext in '' $ac_executable_extensions; do
12166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12167 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12168 ac_prog_rejected=yes
12169 continue
12170 fi
12171 ac_cv_prog_CC="cc"
12172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12173 break 2
12174 fi
12175done
12176done
12177
12178if test $ac_prog_rejected = yes; then
12179 # We found a bogon in the path, so make sure we never use it.
12180 set dummy $ac_cv_prog_CC
12181 shift
12182 if test $# != 0; then
12183 # We chose a different compiler from the bogus one.
12184 # However, it has the same basename, so the bogon will be chosen
12185 # first if we set CC to just the basename; use the full file name.
12186 shift
12187 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12188 fi
12189fi
12190fi
12191fi
12192CC=$ac_cv_prog_CC
12193if test -n "$CC"; then
12194 echo "$as_me:$LINENO: result: $CC" >&5
12195echo "${ECHO_T}$CC" >&6
12196else
12197 echo "$as_me:$LINENO: result: no" >&5
12198echo "${ECHO_T}no" >&6
12199fi
12200
12201fi
12202if test -z "$CC"; then
12203 if test -n "$ac_tool_prefix"; then
12204 for ac_prog in cl
12205 do
12206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12207set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12208echo "$as_me:$LINENO: checking for $ac_word" >&5
12209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12210if test "${ac_cv_prog_CC+set}" = set; then
12211 echo $ECHO_N "(cached) $ECHO_C" >&6
12212else
12213 if test -n "$CC"; then
12214 ac_cv_prog_CC="$CC" # Let the user override the test.
12215else
12216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12217for as_dir in $PATH
12218do
12219 IFS=$as_save_IFS
12220 test -z "$as_dir" && as_dir=.
12221 for ac_exec_ext in '' $ac_executable_extensions; do
12222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12223 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12225 break 2
12226 fi
12227done
12228done
12229
12230fi
12231fi
12232CC=$ac_cv_prog_CC
12233if test -n "$CC"; then
12234 echo "$as_me:$LINENO: result: $CC" >&5
12235echo "${ECHO_T}$CC" >&6
12236else
12237 echo "$as_me:$LINENO: result: no" >&5
12238echo "${ECHO_T}no" >&6
12239fi
12240
12241 test -n "$CC" && break
12242 done
12243fi
12244if test -z "$CC"; then
12245 ac_ct_CC=$CC
12246 for ac_prog in cl
12247do
12248 # Extract the first word of "$ac_prog", so it can be a program name with args.
12249set dummy $ac_prog; ac_word=$2
12250echo "$as_me:$LINENO: checking for $ac_word" >&5
12251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12252if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12253 echo $ECHO_N "(cached) $ECHO_C" >&6
12254else
12255 if test -n "$ac_ct_CC"; then
12256 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12257else
12258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12259for as_dir in $PATH
12260do
12261 IFS=$as_save_IFS
12262 test -z "$as_dir" && as_dir=.
12263 for ac_exec_ext in '' $ac_executable_extensions; do
12264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12265 ac_cv_prog_ac_ct_CC="$ac_prog"
12266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12267 break 2
12268 fi
12269done
12270done
12271
12272fi
12273fi
12274ac_ct_CC=$ac_cv_prog_ac_ct_CC
12275if test -n "$ac_ct_CC"; then
12276 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12277echo "${ECHO_T}$ac_ct_CC" >&6
12278else
12279 echo "$as_me:$LINENO: result: no" >&5
12280echo "${ECHO_T}no" >&6
12281fi
12282
12283 test -n "$ac_ct_CC" && break
12284done
12285
12286 CC=$ac_ct_CC
12287fi
12288
12289fi
12290
12291
12292test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12293See \`config.log' for more details." >&5
12294echo "$as_me: error: no acceptable C compiler found in \$PATH
12295See \`config.log' for more details." >&2;}
12296 { (exit 1); exit 1; }; }
12297
12298# Provide some information about the compiler.
12299echo "$as_me:$LINENO:" \
12300 "checking for C compiler version" >&5
12301ac_compiler=`set X $ac_compile; echo $2`
12302{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12303 (eval $ac_compiler --version </dev/null >&5) 2>&5
12304 ac_status=$?
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }
12307{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12308 (eval $ac_compiler -v </dev/null >&5) 2>&5
12309 ac_status=$?
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); }
12312{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12313 (eval $ac_compiler -V </dev/null >&5) 2>&5
12314 ac_status=$?
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }
12317
12318cat >conftest.$ac_ext <<_ACEOF
12319/* confdefs.h. */
12320_ACEOF
12321cat confdefs.h >>conftest.$ac_ext
12322cat >>conftest.$ac_ext <<_ACEOF
12323/* end confdefs.h. */
12324
12325int
12326main ()
12327{
12328
12329 ;
12330 return 0;
12331}
12332_ACEOF
12333ac_clean_files_save=$ac_clean_files
12334ac_clean_files="$ac_clean_files a.out a.exe b.out"
12335# Try to create an executable without -o first, disregard a.out.
12336# It will help us diagnose broken compilers, and finding out an intuition
12337# of exeext.
ac1cb8d3
VS
12338echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
12339echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
12340ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
12341if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
12342 (eval $ac_link_default) 2>&5
12343 ac_status=$?
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); }; then
12346 # Find the output, starting from the most likely. This scheme is
12347# not robust to junk in `.', hence go to wildcards (a.*) only as a last
12348# resort.
12349
12350# Be careful to initialize this variable, since it used to be cached.
12351# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
12352ac_cv_exeext=
12353# b.out is created by i960 compilers.
12354for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
12355do
12356 test -f "$ac_file" || continue
12357 case $ac_file in
12358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 12359 ;;
a848cd7e 12360 conftest.$ac_ext )
ac1cb8d3
VS
12361 # This is the source file.
12362 ;;
a848cd7e 12363 [ab].out )
ac1cb8d3
VS
12364 # We found the default executable, but exeext='' is most
12365 # certainly right.
12366 break;;
a848cd7e 12367 *.* )
ac1cb8d3
VS
12368 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12369 # FIXME: I believe we export ac_cv_exeext for Libtool,
12370 # but it would be cool to find out if it's true. Does anybody
12371 # maintain Libtool? --akim.
12372 export ac_cv_exeext
12373 break;;
a848cd7e 12374 * )
ac1cb8d3 12375 break;;
a848cd7e
SC
12376 esac
12377done
12378else
12379 echo "$as_me: failed program was:" >&5
12380sed 's/^/| /' conftest.$ac_ext >&5
12381
12382{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
12383See \`config.log' for more details." >&5
12384echo "$as_me: error: C compiler cannot create executables
12385See \`config.log' for more details." >&2;}
12386 { (exit 77); exit 77; }; }
12387fi
12388
12389ac_exeext=$ac_cv_exeext
12390echo "$as_me:$LINENO: result: $ac_file" >&5
12391echo "${ECHO_T}$ac_file" >&6
12392
12393# Check the compiler produces executables we can run. If not, either
12394# the compiler is broken, or we cross compile.
12395echo "$as_me:$LINENO: checking whether the C compiler works" >&5
12396echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
12397# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
12398# If not cross compiling, check that we can run a simple program.
12399if test "$cross_compiling" != yes; then
12400 if { ac_try='./$ac_file'
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12403 ac_status=$?
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; }; then
12406 cross_compiling=no
12407 else
12408 if test "$cross_compiling" = maybe; then
12409 cross_compiling=yes
12410 else
12411 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
12412If you meant to cross compile, use \`--host'.
12413See \`config.log' for more details." >&5
12414echo "$as_me: error: cannot run C compiled programs.
12415If you meant to cross compile, use \`--host'.
12416See \`config.log' for more details." >&2;}
12417 { (exit 1); exit 1; }; }
12418 fi
12419 fi
12420fi
12421echo "$as_me:$LINENO: result: yes" >&5
12422echo "${ECHO_T}yes" >&6
12423
12424rm -f a.out a.exe conftest$ac_cv_exeext b.out
12425ac_clean_files=$ac_clean_files_save
12426# Check the compiler produces executables we can run. If not, either
12427# the compiler is broken, or we cross compile.
12428echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12429echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12430echo "$as_me:$LINENO: result: $cross_compiling" >&5
12431echo "${ECHO_T}$cross_compiling" >&6
12432
12433echo "$as_me:$LINENO: checking for suffix of executables" >&5
12434echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12436 (eval $ac_link) 2>&5
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; then
12440 # If both `conftest.exe' and `conftest' are `present' (well, observable)
12441# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
12442# work properly (i.e., refer to `conftest.exe'), while it won't with
12443# `rm'.
12444for ac_file in conftest.exe conftest conftest.*; do
12445 test -f "$ac_file" || continue
12446 case $ac_file in
12447 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12448 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
12449 export ac_cv_exeext
12450 break;;
a848cd7e
SC
12451 * ) break;;
12452 esac
12453done
12454else
12455 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12456See \`config.log' for more details." >&5
12457echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12458See \`config.log' for more details." >&2;}
12459 { (exit 1); exit 1; }; }
12460fi
12461
12462rm -f conftest$ac_cv_exeext
12463echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12464echo "${ECHO_T}$ac_cv_exeext" >&6
12465
12466rm -f conftest.$ac_ext
12467EXEEXT=$ac_cv_exeext
12468ac_exeext=$EXEEXT
12469echo "$as_me:$LINENO: checking for suffix of object files" >&5
12470echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12471if test "${ac_cv_objext+set}" = set; then
12472 echo $ECHO_N "(cached) $ECHO_C" >&6
12473else
12474 cat >conftest.$ac_ext <<_ACEOF
12475/* confdefs.h. */
12476_ACEOF
12477cat confdefs.h >>conftest.$ac_ext
12478cat >>conftest.$ac_ext <<_ACEOF
12479/* end confdefs.h. */
12480
12481int
12482main ()
12483{
12484
12485 ;
12486 return 0;
12487}
12488_ACEOF
12489rm -f conftest.o conftest.obj
12490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12491 (eval $ac_compile) 2>&5
12492 ac_status=$?
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; then
12495 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12496 case $ac_file in
12497 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12498 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12499 break;;
12500 esac
12501done
12502else
12503 echo "$as_me: failed program was:" >&5
12504sed 's/^/| /' conftest.$ac_ext >&5
12505
12506{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12507See \`config.log' for more details." >&5
12508echo "$as_me: error: cannot compute suffix of object files: cannot compile
12509See \`config.log' for more details." >&2;}
12510 { (exit 1); exit 1; }; }
12511fi
12512
12513rm -f conftest.$ac_cv_objext conftest.$ac_ext
12514fi
12515echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12516echo "${ECHO_T}$ac_cv_objext" >&6
12517OBJEXT=$ac_cv_objext
12518ac_objext=$OBJEXT
12519echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12520echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12521if test "${ac_cv_c_compiler_gnu+set}" = set; then
12522 echo $ECHO_N "(cached) $ECHO_C" >&6
12523else
12524 cat >conftest.$ac_ext <<_ACEOF
12525/* confdefs.h. */
12526_ACEOF
12527cat confdefs.h >>conftest.$ac_ext
12528cat >>conftest.$ac_ext <<_ACEOF
12529/* end confdefs.h. */
12530
12531int
12532main ()
12533{
12534#ifndef __GNUC__
12535 choke me
12536#endif
12537
12538 ;
12539 return 0;
12540}
12541_ACEOF
12542rm -f conftest.$ac_objext
12543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12544 (eval $ac_compile) 2>conftest.er1
a848cd7e 12545 ac_status=$?
ac1cb8d3
VS
12546 grep -v '^ *+' conftest.er1 >conftest.err
12547 rm -f conftest.er1
12548 cat conftest.err >&5
a848cd7e
SC
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); } &&
479c790c 12551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12554 ac_status=$?
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; } &&
12557 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12560 ac_status=$?
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
12563 ac_compiler_gnu=yes
12564else
12565 echo "$as_me: failed program was:" >&5
12566sed 's/^/| /' conftest.$ac_ext >&5
12567
12568ac_compiler_gnu=no
12569fi
ac1cb8d3 12570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12571ac_cv_c_compiler_gnu=$ac_compiler_gnu
12572
12573fi
12574echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12575echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12576GCC=`test $ac_compiler_gnu = yes && echo yes`
12577ac_test_CFLAGS=${CFLAGS+set}
12578ac_save_CFLAGS=$CFLAGS
15291213 12579CFLAGS="-g"
a848cd7e
SC
12580echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12581echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12582if test "${ac_cv_prog_cc_g+set}" = set; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
12584else
12585 cat >conftest.$ac_ext <<_ACEOF
12586/* confdefs.h. */
12587_ACEOF
12588cat confdefs.h >>conftest.$ac_ext
12589cat >>conftest.$ac_ext <<_ACEOF
12590/* end confdefs.h. */
12591
12592int
12593main ()
12594{
12595
12596 ;
12597 return 0;
12598}
12599_ACEOF
12600rm -f conftest.$ac_objext
12601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12602 (eval $ac_compile) 2>conftest.er1
a848cd7e 12603 ac_status=$?
ac1cb8d3
VS
12604 grep -v '^ *+' conftest.er1 >conftest.err
12605 rm -f conftest.er1
12606 cat conftest.err >&5
a848cd7e
SC
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } &&
479c790c 12609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611 (eval $ac_try) 2>&5
12612 ac_status=$?
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; } &&
12615 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12617 (eval $ac_try) 2>&5
12618 ac_status=$?
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); }; }; then
12621 ac_cv_prog_cc_g=yes
12622else
12623 echo "$as_me: failed program was:" >&5
12624sed 's/^/| /' conftest.$ac_ext >&5
12625
12626ac_cv_prog_cc_g=no
12627fi
ac1cb8d3 12628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12629fi
12630echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12631echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12632if test "$ac_test_CFLAGS" = set; then
12633 CFLAGS=$ac_save_CFLAGS
12634elif test $ac_cv_prog_cc_g = yes; then
12635 if test "$GCC" = yes; then
12636 CFLAGS="-g -O2"
12637 else
12638 CFLAGS="-g"
12639 fi
12640else
12641 if test "$GCC" = yes; then
12642 CFLAGS="-O2"
12643 else
12644 CFLAGS=
12645 fi
12646fi
12647echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12648echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12649if test "${ac_cv_prog_cc_stdc+set}" = set; then
12650 echo $ECHO_N "(cached) $ECHO_C" >&6
12651else
12652 ac_cv_prog_cc_stdc=no
12653ac_save_CC=$CC
12654cat >conftest.$ac_ext <<_ACEOF
12655/* confdefs.h. */
12656_ACEOF
12657cat confdefs.h >>conftest.$ac_ext
12658cat >>conftest.$ac_ext <<_ACEOF
12659/* end confdefs.h. */
12660#include <stdarg.h>
12661#include <stdio.h>
12662#include <sys/types.h>
12663#include <sys/stat.h>
12664/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12665struct buf { int x; };
12666FILE * (*rcsopen) (struct buf *, struct stat *, int);
12667static char *e (p, i)
12668 char **p;
12669 int i;
12670{
12671 return p[i];
12672}
12673static char *f (char * (*g) (char **, int), char **p, ...)
12674{
12675 char *s;
12676 va_list v;
12677 va_start (v,p);
12678 s = g (p, va_arg (v,int));
12679 va_end (v);
12680 return s;
12681}
ac1cb8d3
VS
12682
12683/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12684 function prototypes and stuff, but not '\xHH' hex character constants.
12685 These don't provoke an error unfortunately, instead are silently treated
12686 as 'x'. The following induces an error, until -std1 is added to get
12687 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12688 array size at least. It's necessary to write '\x00'==0 to get something
12689 that's true only with -std1. */
12690int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12691
a848cd7e
SC
12692int test (int i, double x);
12693struct s1 {int (*f) (int a);};
12694struct s2 {int (*f) (double a);};
12695int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12696int argc;
12697char **argv;
12698int
12699main ()
12700{
12701return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12702 ;
12703 return 0;
12704}
12705_ACEOF
12706# Don't try gcc -ansi; that turns off useful extensions and
12707# breaks some systems' header files.
12708# AIX -qlanglvl=ansi
12709# Ultrix and OSF/1 -std1
12710# HP-UX 10.20 and later -Ae
12711# HP-UX older versions -Aa -D_HPUX_SOURCE
12712# SVR4 -Xc -D__EXTENSIONS__
12713for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12714do
12715 CC="$ac_save_CC $ac_arg"
12716 rm -f conftest.$ac_objext
12717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12718 (eval $ac_compile) 2>conftest.er1
a848cd7e 12719 ac_status=$?
ac1cb8d3
VS
12720 grep -v '^ *+' conftest.er1 >conftest.err
12721 rm -f conftest.er1
12722 cat conftest.err >&5
a848cd7e
SC
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } &&
479c790c 12725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12727 (eval $ac_try) 2>&5
12728 ac_status=$?
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); }; } &&
12731 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12733 (eval $ac_try) 2>&5
12734 ac_status=$?
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); }; }; then
12737 ac_cv_prog_cc_stdc=$ac_arg
12738break
12739else
12740 echo "$as_me: failed program was:" >&5
12741sed 's/^/| /' conftest.$ac_ext >&5
12742
12743fi
ac1cb8d3 12744rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
12745done
12746rm -f conftest.$ac_ext conftest.$ac_objext
12747CC=$ac_save_CC
12748
12749fi
12750
12751case "x$ac_cv_prog_cc_stdc" in
12752 x|xno)
12753 echo "$as_me:$LINENO: result: none needed" >&5
12754echo "${ECHO_T}none needed" >&6 ;;
12755 *)
12756 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12757echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12758 CC="$CC $ac_cv_prog_cc_stdc" ;;
12759esac
12760
12761# Some people use a C++ compiler to compile C. Since we use `exit',
12762# in C++ we need to declare it. In case someone uses the same compiler
12763# for both compiling C and C++ we need to have the C++ compiler decide
12764# the declaration of exit, since it's the most demanding environment.
12765cat >conftest.$ac_ext <<_ACEOF
12766#ifndef __cplusplus
12767 choke me
12768#endif
12769_ACEOF
12770rm -f conftest.$ac_objext
12771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12772 (eval $ac_compile) 2>conftest.er1
a848cd7e 12773 ac_status=$?
ac1cb8d3
VS
12774 grep -v '^ *+' conftest.er1 >conftest.err
12775 rm -f conftest.er1
12776 cat conftest.err >&5
a848cd7e
SC
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } &&
479c790c 12779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12781 (eval $ac_try) 2>&5
12782 ac_status=$?
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); }; } &&
12785 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787 (eval $ac_try) 2>&5
12788 ac_status=$?
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; }; then
12791 for ac_declaration in \
ac1cb8d3 12792 '' \
a848cd7e
SC
12793 'extern "C" void std::exit (int) throw (); using std::exit;' \
12794 'extern "C" void std::exit (int); using std::exit;' \
12795 'extern "C" void exit (int) throw ();' \
12796 'extern "C" void exit (int);' \
12797 'void exit (int);'
12798do
12799 cat >conftest.$ac_ext <<_ACEOF
12800/* confdefs.h. */
12801_ACEOF
12802cat confdefs.h >>conftest.$ac_ext
12803cat >>conftest.$ac_ext <<_ACEOF
12804/* end confdefs.h. */
de59c161 12805$ac_declaration
ac1cb8d3 12806#include <stdlib.h>
a848cd7e
SC
12807int
12808main ()
12809{
12810exit (42);
12811 ;
12812 return 0;
12813}
12814_ACEOF
12815rm -f conftest.$ac_objext
12816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12817 (eval $ac_compile) 2>conftest.er1
a848cd7e 12818 ac_status=$?
ac1cb8d3
VS
12819 grep -v '^ *+' conftest.er1 >conftest.err
12820 rm -f conftest.er1
12821 cat conftest.err >&5
a848cd7e
SC
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); } &&
479c790c 12824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12826 (eval $ac_try) 2>&5
12827 ac_status=$?
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); }; } &&
12830 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12832 (eval $ac_try) 2>&5
12833 ac_status=$?
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); }; }; then
12836 :
12837else
12838 echo "$as_me: failed program was:" >&5
12839sed 's/^/| /' conftest.$ac_ext >&5
12840
12841continue
12842fi
ac1cb8d3 12843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12844 cat >conftest.$ac_ext <<_ACEOF
12845/* confdefs.h. */
12846_ACEOF
12847cat confdefs.h >>conftest.$ac_ext
12848cat >>conftest.$ac_ext <<_ACEOF
12849/* end confdefs.h. */
12850$ac_declaration
12851int
12852main ()
12853{
12854exit (42);
12855 ;
12856 return 0;
12857}
12858_ACEOF
12859rm -f conftest.$ac_objext
12860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12861 (eval $ac_compile) 2>conftest.er1
a848cd7e 12862 ac_status=$?
ac1cb8d3
VS
12863 grep -v '^ *+' conftest.er1 >conftest.err
12864 rm -f conftest.er1
12865 cat conftest.err >&5
a848cd7e
SC
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); } &&
479c790c 12868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12870 (eval $ac_try) 2>&5
12871 ac_status=$?
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); }; } &&
12874 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12876 (eval $ac_try) 2>&5
12877 ac_status=$?
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); }; }; then
12880 break
12881else
12882 echo "$as_me: failed program was:" >&5
12883sed 's/^/| /' conftest.$ac_ext >&5
12884
12885fi
ac1cb8d3 12886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12887done
12888rm -f conftest*
12889if test -n "$ac_declaration"; then
12890 echo '#ifdef __cplusplus' >>confdefs.h
12891 echo $ac_declaration >>confdefs.h
12892 echo '#endif' >>confdefs.h
12893fi
12894
12895else
12896 echo "$as_me: failed program was:" >&5
12897sed 's/^/| /' conftest.$ac_ext >&5
12898
12899fi
ac1cb8d3 12900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12901ac_ext=c
12902ac_cpp='$CPP $CPPFLAGS'
12903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12905ac_compiler_gnu=$ac_cv_c_compiler_gnu
12906
ab0ad5f1
VZ
12907
12908
12909 ac_ext=c
12910ac_cpp='$CPP $CPPFLAGS'
12911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12913ac_compiler_gnu=$ac_cv_c_compiler_gnu
12914
12915 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12916echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12917if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12918 echo $ECHO_N "(cached) $ECHO_C" >&6
12919else
12920 cat >conftest.$ac_ext <<_ACEOF
12921/* confdefs.h. */
12922_ACEOF
12923cat confdefs.h >>conftest.$ac_ext
12924cat >>conftest.$ac_ext <<_ACEOF
12925/* end confdefs.h. */
12926
12927int
12928main ()
12929{
12930
12931 #ifndef __INTEL_COMPILER
12932 choke me
12933 #endif
12934
12935 ;
12936 return 0;
12937}
12938_ACEOF
12939rm -f conftest.$ac_objext
12940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12941 (eval $ac_compile) 2>conftest.er1
12942 ac_status=$?
12943 grep -v '^ *+' conftest.er1 >conftest.err
12944 rm -f conftest.er1
12945 cat conftest.err >&5
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); } &&
479c790c 12948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
12949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12950 (eval $ac_try) 2>&5
12951 ac_status=$?
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); }; } &&
12954 { ac_try='test -s conftest.$ac_objext'
12955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12956 (eval $ac_try) 2>&5
12957 ac_status=$?
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); }; }; then
12960 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12961else
12962 echo "$as_me: failed program was:" >&5
12963sed 's/^/| /' conftest.$ac_ext >&5
12964
12965bakefile_cv_c_compiler___INTEL_COMPILER=no
12966
12967fi
12968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12969
12970
12971fi
12972echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12973echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12974 ac_ext=c
12975ac_cpp='$CPP $CPPFLAGS'
12976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12978ac_compiler_gnu=$ac_cv_c_compiler_gnu
12979
12980 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12981 :; INTELCC=yes
12982 else
12983 :;
12984 fi
12985
12986
12987 if test "x$GCC" != "xyes"; then
3006edc0
VZ
12988 if test "xCC" = "xC"; then
12989 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 12990echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 12991if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
12992 echo $ECHO_N "(cached) $ECHO_C" >&6
12993else
12994 cat >conftest.$ac_ext <<_ACEOF
12995/* confdefs.h. */
12996_ACEOF
12997cat confdefs.h >>conftest.$ac_ext
12998cat >>conftest.$ac_ext <<_ACEOF
12999/* end confdefs.h. */
13000
13001int
13002main ()
13003{
13004
13005 ;
13006 return 0;
13007}
13008_ACEOF
13009rm -f conftest.$ac_objext conftest.$ac_ext.o
13010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13011 (eval $ac_compile) 2>&5
13012 ac_status=$?
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); }; then
13015 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13016 case $ac_file in
13017 conftest.$ac_ext.o)
0093c2fc 13018 bakefile_cv_c_exto="-ext o"
480ccd21
DE
13019 ;;
13020 *)
13021 ;;
13022 esac
13023done
13024else
13025 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13026See \`config.log' for more details." >&5
13027echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13028See \`config.log' for more details." >&2;}
13029 { (exit 1); exit 1; }; }
13030
13031fi
13032
13033rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13034
13035fi
0093c2fc
VZ
13036echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
13037echo "${ECHO_T}$bakefile_cv_c_exto" >&6
13038if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 13039 if test "c" = "c"; then
0093c2fc 13040 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
13041 fi
13042 if test "c" = "cxx"; then
0093c2fc 13043 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
13044 fi
13045fi
13046
0093c2fc 13047 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
13048 unset ac_cv_prog_cc_g
13049 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 13050ac_save_CFLAGS=$CFLAGS
15291213 13051CFLAGS="-g"
480ccd21
DE
13052echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13053echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13054if test "${ac_cv_prog_cc_g+set}" = set; then
13055 echo $ECHO_N "(cached) $ECHO_C" >&6
13056else
13057 cat >conftest.$ac_ext <<_ACEOF
13058/* confdefs.h. */
13059_ACEOF
13060cat confdefs.h >>conftest.$ac_ext
13061cat >>conftest.$ac_ext <<_ACEOF
13062/* end confdefs.h. */
13063
13064int
13065main ()
13066{
13067
13068 ;
13069 return 0;
13070}
13071_ACEOF
13072rm -f conftest.$ac_objext
13073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13074 (eval $ac_compile) 2>conftest.er1
13075 ac_status=$?
13076 grep -v '^ *+' conftest.er1 >conftest.err
13077 rm -f conftest.er1
13078 cat conftest.err >&5
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); } &&
479c790c 13081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
13082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083 (eval $ac_try) 2>&5
13084 ac_status=$?
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; } &&
13087 { ac_try='test -s conftest.$ac_objext'
13088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13089 (eval $ac_try) 2>&5
13090 ac_status=$?
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); }; }; then
13093 ac_cv_prog_cc_g=yes
13094else
13095 echo "$as_me: failed program was:" >&5
13096sed 's/^/| /' conftest.$ac_ext >&5
13097
13098ac_cv_prog_cc_g=no
13099fi
13100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13101fi
13102echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13103echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13104if test "$ac_test_CFLAGS" = set; then
13105 CFLAGS=$ac_save_CFLAGS
13106elif test $ac_cv_prog_cc_g = yes; then
13107 if test "$GCC" = yes; then
13108 CFLAGS="-g -O2"
13109 else
13110 CFLAGS="-g"
13111 fi
13112else
13113 if test "$GCC" = yes; then
13114 CFLAGS="-O2"
13115 else
13116 CFLAGS=
13117 fi
13118fi
3006edc0 13119 fi
ab0ad5f1 13120 fi
3006edc0
VZ
13121
13122 case `uname -s` in
13123 AIX*)
13124 ac_ext=c
13125ac_cpp='$CPP $CPPFLAGS'
13126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13128ac_compiler_gnu=$ac_cv_c_compiler_gnu
13129
13130echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
13131echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 13132if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
13133 echo $ECHO_N "(cached) $ECHO_C" >&6
13134else
13135 cat >conftest.$ac_ext <<_ACEOF
13136/* confdefs.h. */
13137_ACEOF
13138cat confdefs.h >>conftest.$ac_ext
13139cat >>conftest.$ac_ext <<_ACEOF
13140/* end confdefs.h. */
13141
13142int
13143main ()
13144{
13145#ifndef __xlC__
13146 choke me
13147#endif
13148
13149 ;
13150 return 0;
13151}
13152_ACEOF
13153rm -f conftest.$ac_objext
13154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13155 (eval $ac_compile) 2>conftest.er1
13156 ac_status=$?
13157 grep -v '^ *+' conftest.er1 >conftest.err
13158 rm -f conftest.er1
13159 cat conftest.err >&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); } &&
479c790c 13162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164 (eval $ac_try) 2>&5
13165 ac_status=$?
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; } &&
13168 { ac_try='test -s conftest.$ac_objext'
13169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13170 (eval $ac_try) 2>&5
13171 ac_status=$?
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); }; }; then
0093c2fc 13174 bakefile_compiler_xlc=yes
3006edc0
VZ
13175else
13176 echo "$as_me: failed program was:" >&5
13177sed 's/^/| /' conftest.$ac_ext >&5
13178
0093c2fc 13179bakefile_compiler_xlc=no
3006edc0
VZ
13180fi
13181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13182 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
13183
13184fi
0093c2fc
VZ
13185echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13186echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 13187
0093c2fc 13188XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
13189ac_ext=c
13190ac_cpp='$CPP $CPPFLAGS'
13191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13193ac_compiler_gnu=$ac_cv_c_compiler_gnu
13194
13195
13196 ;;
13197
13198 Darwin)
13199 ac_ext=c
95986553
DE
13200ac_cpp='$CPP $CPPFLAGS'
13201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13203ac_compiler_gnu=$ac_cv_c_compiler_gnu
13204
13205echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
13206echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
13207if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
13208 echo $ECHO_N "(cached) $ECHO_C" >&6
13209else
13210 cat >conftest.$ac_ext <<_ACEOF
13211/* confdefs.h. */
13212_ACEOF
13213cat confdefs.h >>conftest.$ac_ext
13214cat >>conftest.$ac_ext <<_ACEOF
13215/* end confdefs.h. */
13216
13217int
13218main ()
13219{
13220#ifndef __MWERKS__
13221 choke me
13222#endif
13223
13224 ;
13225 return 0;
13226}
13227_ACEOF
13228rm -f conftest.$ac_objext
13229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13230 (eval $ac_compile) 2>conftest.er1
13231 ac_status=$?
13232 grep -v '^ *+' conftest.er1 >conftest.err
13233 rm -f conftest.er1
13234 cat conftest.err >&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); } &&
479c790c 13237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
13238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239 (eval $ac_try) 2>&5
13240 ac_status=$?
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; } &&
13243 { ac_try='test -s conftest.$ac_objext'
13244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13245 (eval $ac_try) 2>&5
13246 ac_status=$?
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); }; }; then
13249 bakefile_compiler_mwerks=yes
13250else
13251 echo "$as_me: failed program was:" >&5
13252sed 's/^/| /' conftest.$ac_ext >&5
13253
13254bakefile_compiler_mwerks=no
13255fi
13256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13257 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
13258
13259fi
13260echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
13261echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
13262
0e6fa1d9 13263MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
13264ac_ext=c
13265ac_cpp='$CPP $CPPFLAGS'
13266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13268ac_compiler_gnu=$ac_cv_c_compiler_gnu
13269
13270
3006edc0 13271 ac_ext=c
9273ffba
DE
13272ac_cpp='$CPP $CPPFLAGS'
13273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13275ac_compiler_gnu=$ac_cv_c_compiler_gnu
13276
13277echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
13278echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 13279if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
13280 echo $ECHO_N "(cached) $ECHO_C" >&6
13281else
13282 cat >conftest.$ac_ext <<_ACEOF
13283/* confdefs.h. */
13284_ACEOF
13285cat confdefs.h >>conftest.$ac_ext
13286cat >>conftest.$ac_ext <<_ACEOF
13287/* end confdefs.h. */
13288
13289int
13290main ()
13291{
13292#ifndef __xlC__
13293 choke me
13294#endif
13295
13296 ;
13297 return 0;
13298}
13299_ACEOF
13300rm -f conftest.$ac_objext
13301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13302 (eval $ac_compile) 2>conftest.er1
13303 ac_status=$?
13304 grep -v '^ *+' conftest.er1 >conftest.err
13305 rm -f conftest.er1
13306 cat conftest.err >&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); } &&
479c790c 13309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
13310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13311 (eval $ac_try) 2>&5
13312 ac_status=$?
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); }; } &&
13315 { ac_try='test -s conftest.$ac_objext'
13316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13317 (eval $ac_try) 2>&5
13318 ac_status=$?
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); }; }; then
0093c2fc 13321 bakefile_compiler_xlc=yes
9273ffba
DE
13322else
13323 echo "$as_me: failed program was:" >&5
13324sed 's/^/| /' conftest.$ac_ext >&5
13325
0093c2fc 13326bakefile_compiler_xlc=no
9273ffba
DE
13327fi
13328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13329 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
13330
13331fi
0093c2fc
VZ
13332echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13333echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 13334
0093c2fc 13335XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
13336ac_ext=c
13337ac_cpp='$CPP $CPPFLAGS'
13338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13340ac_compiler_gnu=$ac_cv_c_compiler_gnu
13341
13342
3006edc0
VZ
13343 ;;
13344
13345 IRIX*)
a848cd7e 13346
6dcfc289 13347
0ad5d837
VZ
13348 ac_ext=c
13349ac_cpp='$CPP $CPPFLAGS'
13350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13352ac_compiler_gnu=$ac_cv_c_compiler_gnu
13353
13354 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
13355echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
13356if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
13357 echo $ECHO_N "(cached) $ECHO_C" >&6
13358else
13359 cat >conftest.$ac_ext <<_ACEOF
13360/* confdefs.h. */
13361_ACEOF
13362cat confdefs.h >>conftest.$ac_ext
13363cat >>conftest.$ac_ext <<_ACEOF
13364/* end confdefs.h. */
13365
13366int
13367main ()
13368{
13369
13370 #ifndef _SGI_COMPILER_VERSION
13371 choke me
13372 #endif
13373
13374 ;
13375 return 0;
13376}
13377_ACEOF
13378rm -f conftest.$ac_objext
13379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13380 (eval $ac_compile) 2>conftest.er1
13381 ac_status=$?
13382 grep -v '^ *+' conftest.er1 >conftest.err
13383 rm -f conftest.er1
13384 cat conftest.err >&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); } &&
479c790c 13387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
13388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13389 (eval $ac_try) 2>&5
13390 ac_status=$?
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); }; } &&
13393 { ac_try='test -s conftest.$ac_objext'
13394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13395 (eval $ac_try) 2>&5
13396 ac_status=$?
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }; }; then
13399 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
13400else
13401 echo "$as_me: failed program was:" >&5
13402sed 's/^/| /' conftest.$ac_ext >&5
13403
13404bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
13405
13406fi
13407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13408
13409
13410fi
13411echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
13412echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
13413 ac_ext=c
13414ac_cpp='$CPP $CPPFLAGS'
13415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13417ac_compiler_gnu=$ac_cv_c_compiler_gnu
13418
13419 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13420 :; SGICC=yes
13421 else
13422 :;
13423 fi
13424
13425
3006edc0
VZ
13426 ;;
13427
0093c2fc 13428 HP-UX*)
3006edc0
VZ
13429
13430
13431 ac_ext=c
13432ac_cpp='$CPP $CPPFLAGS'
13433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13435ac_compiler_gnu=$ac_cv_c_compiler_gnu
13436
0093c2fc
VZ
13437 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
13438echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
13439if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
13440 echo $ECHO_N "(cached) $ECHO_C" >&6
13441else
13442 cat >conftest.$ac_ext <<_ACEOF
13443/* confdefs.h. */
13444_ACEOF
13445cat confdefs.h >>conftest.$ac_ext
13446cat >>conftest.$ac_ext <<_ACEOF
13447/* end confdefs.h. */
13448
13449int
13450main ()
13451{
13452
0093c2fc 13453 #ifndef __HP_cc
3006edc0
VZ
13454 choke me
13455 #endif
13456
13457 ;
13458 return 0;
13459}
13460_ACEOF
13461rm -f conftest.$ac_objext
13462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13463 (eval $ac_compile) 2>conftest.er1
13464 ac_status=$?
13465 grep -v '^ *+' conftest.er1 >conftest.err
13466 rm -f conftest.er1
13467 cat conftest.err >&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } &&
479c790c 13470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13472 (eval $ac_try) 2>&5
13473 ac_status=$?
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); }; } &&
13476 { ac_try='test -s conftest.$ac_objext'
13477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13478 (eval $ac_try) 2>&5
13479 ac_status=$?
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); }; }; then
0093c2fc 13482 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
13483else
13484 echo "$as_me: failed program was:" >&5
13485sed 's/^/| /' conftest.$ac_ext >&5
13486
0093c2fc 13487bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
13488
13489fi
13490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13491
13492
13493fi
0093c2fc
VZ
13494echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13495echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
13496 ac_ext=c
13497ac_cpp='$CPP $CPPFLAGS'
13498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13500ac_compiler_gnu=$ac_cv_c_compiler_gnu
13501
0093c2fc
VZ
13502 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13503 :; HPCC=yes
a1aa0349
VZ
13504 else
13505 :;
13506 fi
13507
13508
13509 ;;
13510
0093c2fc 13511 OSF1)
a1aa0349
VZ
13512
13513
13514 ac_ext=c
13515ac_cpp='$CPP $CPPFLAGS'
13516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13518ac_compiler_gnu=$ac_cv_c_compiler_gnu
13519
0093c2fc
VZ
13520 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13521echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13522if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
13523 echo $ECHO_N "(cached) $ECHO_C" >&6
13524else
13525 cat >conftest.$ac_ext <<_ACEOF
13526/* confdefs.h. */
13527_ACEOF
13528cat confdefs.h >>conftest.$ac_ext
13529cat >>conftest.$ac_ext <<_ACEOF
13530/* end confdefs.h. */
13531
13532int
13533main ()
13534{
13535
0093c2fc 13536 #ifndef __DECC
a1aa0349
VZ
13537 choke me
13538 #endif
13539
13540 ;
13541 return 0;
13542}
13543_ACEOF
13544rm -f conftest.$ac_objext
13545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13546 (eval $ac_compile) 2>conftest.er1
13547 ac_status=$?
13548 grep -v '^ *+' conftest.er1 >conftest.err
13549 rm -f conftest.er1
13550 cat conftest.err >&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); } &&
479c790c 13553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
13554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13555 (eval $ac_try) 2>&5
13556 ac_status=$?
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); }; } &&
13559 { ac_try='test -s conftest.$ac_objext'
13560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13561 (eval $ac_try) 2>&5
13562 ac_status=$?
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); }; }; then
0093c2fc 13565 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
13566else
13567 echo "$as_me: failed program was:" >&5
13568sed 's/^/| /' conftest.$ac_ext >&5
13569
0093c2fc 13570bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
13571
13572fi
13573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13574
13575
13576fi
0093c2fc
VZ
13577echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13578echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
13579 ac_ext=c
13580ac_cpp='$CPP $CPPFLAGS'
13581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13583ac_compiler_gnu=$ac_cv_c_compiler_gnu
13584
0093c2fc
VZ
13585 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13586 :; COMPAQCC=yes
13587 else
13588 :;
13589 fi
13590
13591
13592 ;;
13593
13594 SunOS)
13595
13596
13597 ac_ext=c
13598ac_cpp='$CPP $CPPFLAGS'
13599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13601ac_compiler_gnu=$ac_cv_c_compiler_gnu
13602
13603 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13604echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13605if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13606 echo $ECHO_N "(cached) $ECHO_C" >&6
13607else
13608 cat >conftest.$ac_ext <<_ACEOF
13609/* confdefs.h. */
13610_ACEOF
13611cat confdefs.h >>conftest.$ac_ext
13612cat >>conftest.$ac_ext <<_ACEOF
13613/* end confdefs.h. */
13614
13615int
13616main ()
13617{
13618
13619 #ifndef __SUNPRO_C
13620 choke me
13621 #endif
13622
13623 ;
13624 return 0;
13625}
13626_ACEOF
13627rm -f conftest.$ac_objext
13628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13629 (eval $ac_compile) 2>conftest.er1
13630 ac_status=$?
13631 grep -v '^ *+' conftest.er1 >conftest.err
13632 rm -f conftest.er1
13633 cat conftest.err >&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); } &&
479c790c 13636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
13637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13638 (eval $ac_try) 2>&5
13639 ac_status=$?
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); }; } &&
13642 { ac_try='test -s conftest.$ac_objext'
13643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644 (eval $ac_try) 2>&5
13645 ac_status=$?
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; }; then
13648 bakefile_cv_c_compiler___SUNPRO_C=yes
13649else
13650 echo "$as_me: failed program was:" >&5
13651sed 's/^/| /' conftest.$ac_ext >&5
13652
13653bakefile_cv_c_compiler___SUNPRO_C=no
13654
13655fi
13656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13657
13658
13659fi
13660echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13661echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13662 ac_ext=c
13663ac_cpp='$CPP $CPPFLAGS'
13664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13666ac_compiler_gnu=$ac_cv_c_compiler_gnu
13667
13668 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13669 :; SUNCC=yes
3006edc0
VZ
13670 else
13671 :;
13672 fi
13673
13674
13675 ;;
13676 esac
ab0ad5f1 13677 fi
a9e5b1f0
MW
13678
13679
3006edc0 13680
a848cd7e
SC
13681ac_ext=c
13682ac_cpp='$CPP $CPPFLAGS'
13683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13685ac_compiler_gnu=$ac_cv_c_compiler_gnu
13686echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13687echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13688# On Suns, sometimes $CPP names a directory.
13689if test -n "$CPP" && test -d "$CPP"; then
13690 CPP=
13691fi
13692if test -z "$CPP"; then
13693 if test "${ac_cv_prog_CPP+set}" = set; then
13694 echo $ECHO_N "(cached) $ECHO_C" >&6
13695else
13696 # Double quotes because CPP needs to be expanded
13697 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13698 do
13699 ac_preproc_ok=false
13700for ac_c_preproc_warn_flag in '' yes
13701do
13702 # Use a header file that comes with gcc, so configuring glibc
13703 # with a fresh cross-compiler works.
13704 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13705 # <limits.h> exists even on freestanding compilers.
13706 # On the NeXT, cc -E runs the code through the compiler's parser,
13707 # not just through cpp. "Syntax error" is here to catch this case.
13708 cat >conftest.$ac_ext <<_ACEOF
13709/* confdefs.h. */
13710_ACEOF
13711cat confdefs.h >>conftest.$ac_ext
13712cat >>conftest.$ac_ext <<_ACEOF
13713/* end confdefs.h. */
13714#ifdef __STDC__
13715# include <limits.h>
13716#else
13717# include <assert.h>
13718#endif
ac1cb8d3 13719 Syntax error
a848cd7e
SC
13720_ACEOF
13721if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13723 ac_status=$?
13724 grep -v '^ *+' conftest.er1 >conftest.err
13725 rm -f conftest.er1
13726 cat conftest.err >&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } >/dev/null; then
13729 if test -s conftest.err; then
13730 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13732 else
13733 ac_cpp_err=
13734 fi
13735else
13736 ac_cpp_err=yes
13737fi
13738if test -z "$ac_cpp_err"; then
13739 :
13740else
13741 echo "$as_me: failed program was:" >&5
13742sed 's/^/| /' conftest.$ac_ext >&5
13743
13744 # Broken: fails on valid input.
13745continue
13746fi
13747rm -f conftest.err conftest.$ac_ext
13748
13749 # OK, works on sane cases. Now check whether non-existent headers
13750 # can be detected and how.
13751 cat >conftest.$ac_ext <<_ACEOF
13752/* confdefs.h. */
13753_ACEOF
13754cat confdefs.h >>conftest.$ac_ext
13755cat >>conftest.$ac_ext <<_ACEOF
13756/* end confdefs.h. */
13757#include <ac_nonexistent.h>
13758_ACEOF
13759if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13761 ac_status=$?
13762 grep -v '^ *+' conftest.er1 >conftest.err
13763 rm -f conftest.er1
13764 cat conftest.err >&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } >/dev/null; then
13767 if test -s conftest.err; then
13768 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13769 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13770 else
13771 ac_cpp_err=
13772 fi
13773else
13774 ac_cpp_err=yes
13775fi
13776if test -z "$ac_cpp_err"; then
13777 # Broken: success on invalid input.
13778continue
13779else
13780 echo "$as_me: failed program was:" >&5
13781sed 's/^/| /' conftest.$ac_ext >&5
13782
13783 # Passes both tests.
13784ac_preproc_ok=:
13785break
13786fi
13787rm -f conftest.err conftest.$ac_ext
13788
13789done
13790# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13791rm -f conftest.err conftest.$ac_ext
13792if $ac_preproc_ok; then
13793 break
13794fi
13795
13796 done
13797 ac_cv_prog_CPP=$CPP
13798
13799fi
13800 CPP=$ac_cv_prog_CPP
13801else
13802 ac_cv_prog_CPP=$CPP
13803fi
13804echo "$as_me:$LINENO: result: $CPP" >&5
13805echo "${ECHO_T}$CPP" >&6
13806ac_preproc_ok=false
13807for ac_c_preproc_warn_flag in '' yes
13808do
13809 # Use a header file that comes with gcc, so configuring glibc
13810 # with a fresh cross-compiler works.
13811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13812 # <limits.h> exists even on freestanding compilers.
13813 # On the NeXT, cc -E runs the code through the compiler's parser,
13814 # not just through cpp. "Syntax error" is here to catch this case.
13815 cat >conftest.$ac_ext <<_ACEOF
13816/* confdefs.h. */
13817_ACEOF
13818cat confdefs.h >>conftest.$ac_ext
13819cat >>conftest.$ac_ext <<_ACEOF
13820/* end confdefs.h. */
13821#ifdef __STDC__
13822# include <limits.h>
13823#else
13824# include <assert.h>
13825#endif
ac1cb8d3 13826 Syntax error
a848cd7e
SC
13827_ACEOF
13828if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13830 ac_status=$?
13831 grep -v '^ *+' conftest.er1 >conftest.err
13832 rm -f conftest.er1
13833 cat conftest.err >&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); } >/dev/null; then
13836 if test -s conftest.err; then
13837 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13839 else
13840 ac_cpp_err=
13841 fi
13842else
13843 ac_cpp_err=yes
13844fi
13845if test -z "$ac_cpp_err"; then
13846 :
13847else
13848 echo "$as_me: failed program was:" >&5
13849sed 's/^/| /' conftest.$ac_ext >&5
13850
13851 # Broken: fails on valid input.
13852continue
13853fi
13854rm -f conftest.err conftest.$ac_ext
13855
13856 # OK, works on sane cases. Now check whether non-existent headers
13857 # can be detected and how.
13858 cat >conftest.$ac_ext <<_ACEOF
13859/* confdefs.h. */
13860_ACEOF
13861cat confdefs.h >>conftest.$ac_ext
13862cat >>conftest.$ac_ext <<_ACEOF
13863/* end confdefs.h. */
13864#include <ac_nonexistent.h>
13865_ACEOF
13866if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13868 ac_status=$?
13869 grep -v '^ *+' conftest.er1 >conftest.err
13870 rm -f conftest.er1
13871 cat conftest.err >&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); } >/dev/null; then
13874 if test -s conftest.err; then
13875 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13877 else
13878 ac_cpp_err=
13879 fi
13880else
13881 ac_cpp_err=yes
13882fi
13883if test -z "$ac_cpp_err"; then
13884 # Broken: success on invalid input.
13885continue
13886else
13887 echo "$as_me: failed program was:" >&5
13888sed 's/^/| /' conftest.$ac_ext >&5
13889
13890 # Passes both tests.
13891ac_preproc_ok=:
13892break
13893fi
13894rm -f conftest.err conftest.$ac_ext
13895
13896done
13897# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13898rm -f conftest.err conftest.$ac_ext
13899if $ac_preproc_ok; then
13900 :
13901else
13902 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13903See \`config.log' for more details." >&5
13904echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13905See \`config.log' for more details." >&2;}
13906 { (exit 1); exit 1; }; }
13907fi
13908
13909ac_ext=c
13910ac_cpp='$CPP $CPPFLAGS'
13911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13913ac_compiler_gnu=$ac_cv_c_compiler_gnu
13914
13915
13916echo "$as_me:$LINENO: checking for egrep" >&5
13917echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13918if test "${ac_cv_prog_egrep+set}" = set; then
13919 echo $ECHO_N "(cached) $ECHO_C" >&6
13920else
13921 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13922 then ac_cv_prog_egrep='grep -E'
13923 else ac_cv_prog_egrep='egrep'
13924 fi
13925fi
13926echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13927echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13928 EGREP=$ac_cv_prog_egrep
13929
13930
13931if test $ac_cv_c_compiler_gnu = yes; then
13932 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13933echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13934if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13935 echo $ECHO_N "(cached) $ECHO_C" >&6
13936else
13937 ac_pattern="Autoconf.*'x'"
13938 cat >conftest.$ac_ext <<_ACEOF
13939/* confdefs.h. */
13940_ACEOF
13941cat confdefs.h >>conftest.$ac_ext
13942cat >>conftest.$ac_ext <<_ACEOF
13943/* end confdefs.h. */
13944#include <sgtty.h>
13945Autoconf TIOCGETP
13946_ACEOF
13947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13948 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13949 ac_cv_prog_gcc_traditional=yes
13950else
13951 ac_cv_prog_gcc_traditional=no
13952fi
13953rm -f conftest*
13954
13955
13956 if test $ac_cv_prog_gcc_traditional = no; then
13957 cat >conftest.$ac_ext <<_ACEOF
13958/* confdefs.h. */
13959_ACEOF
13960cat confdefs.h >>conftest.$ac_ext
13961cat >>conftest.$ac_ext <<_ACEOF
13962/* end confdefs.h. */
13963#include <termio.h>
13964Autoconf TCGETA
13965_ACEOF
13966if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13967 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13968 ac_cv_prog_gcc_traditional=yes
13969fi
13970rm -f conftest*
13971
13972 fi
13973fi
13974echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13975echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13976 if test $ac_cv_prog_gcc_traditional = yes; then
13977 CC="$CC -traditional"
13978 fi
13979fi
13980
13981
a848cd7e
SC
13982ac_ext=cc
13983ac_cpp='$CXXCPP $CPPFLAGS'
13984ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13985ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13986ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13987
13988
13989CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
13990
13991
3006edc0 13992
6dcfc289 13993 ac_ext=cc
a848cd7e
SC
13994ac_cpp='$CXXCPP $CPPFLAGS'
13995ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13996ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13997ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13998if test -n "$ac_tool_prefix"; then
13999 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
14000 do
14001 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14002set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14003echo "$as_me:$LINENO: checking for $ac_word" >&5
14004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14005if test "${ac_cv_prog_CXX+set}" = set; then
14006 echo $ECHO_N "(cached) $ECHO_C" >&6
14007else
14008 if test -n "$CXX"; then
14009 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14010else
14011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14012for as_dir in $PATH
14013do
14014 IFS=$as_save_IFS
14015 test -z "$as_dir" && as_dir=.
14016 for ac_exec_ext in '' $ac_executable_extensions; do
14017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14018 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14020 break 2
14021 fi
14022done
14023done
14024
14025fi
14026fi
14027CXX=$ac_cv_prog_CXX
14028if test -n "$CXX"; then
14029 echo "$as_me:$LINENO: result: $CXX" >&5
14030echo "${ECHO_T}$CXX" >&6
14031else
14032 echo "$as_me:$LINENO: result: no" >&5
14033echo "${ECHO_T}no" >&6
14034fi
14035
14036 test -n "$CXX" && break
14037 done
14038fi
14039if test -z "$CXX"; then
14040 ac_ct_CXX=$CXX
14041 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
14042do
14043 # Extract the first word of "$ac_prog", so it can be a program name with args.
14044set dummy $ac_prog; ac_word=$2
14045echo "$as_me:$LINENO: checking for $ac_word" >&5
14046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14047if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
14048 echo $ECHO_N "(cached) $ECHO_C" >&6
14049else
14050 if test -n "$ac_ct_CXX"; then
14051 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14052else
14053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14054for as_dir in $PATH
14055do
14056 IFS=$as_save_IFS
14057 test -z "$as_dir" && as_dir=.
14058 for ac_exec_ext in '' $ac_executable_extensions; do
14059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14060 ac_cv_prog_ac_ct_CXX="$ac_prog"
14061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14062 break 2
14063 fi
14064done
14065done
14066
14067fi
14068fi
14069ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14070if test -n "$ac_ct_CXX"; then
14071 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
14072echo "${ECHO_T}$ac_ct_CXX" >&6
14073else
14074 echo "$as_me:$LINENO: result: no" >&5
14075echo "${ECHO_T}no" >&6
14076fi
14077
14078 test -n "$ac_ct_CXX" && break
14079done
14080test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
14081
14082 CXX=$ac_ct_CXX
14083fi
14084
14085
14086# Provide some information about the compiler.
14087echo "$as_me:$LINENO:" \
14088 "checking for C++ compiler version" >&5
14089ac_compiler=`set X $ac_compile; echo $2`
14090{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
14091 (eval $ac_compiler --version </dev/null >&5) 2>&5
14092 ac_status=$?
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); }
14095{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
14096 (eval $ac_compiler -v </dev/null >&5) 2>&5
14097 ac_status=$?
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); }
14100{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
14101 (eval $ac_compiler -V </dev/null >&5) 2>&5
14102 ac_status=$?
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }
14105
14106echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
14107echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
14108if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
14109 echo $ECHO_N "(cached) $ECHO_C" >&6
14110else
14111 cat >conftest.$ac_ext <<_ACEOF
14112/* confdefs.h. */
14113_ACEOF
14114cat confdefs.h >>conftest.$ac_ext
14115cat >>conftest.$ac_ext <<_ACEOF
14116/* end confdefs.h. */
14117
14118int
14119main ()
14120{
14121#ifndef __GNUC__
14122 choke me
14123#endif
14124
14125 ;
14126 return 0;
14127}
14128_ACEOF
14129rm -f conftest.$ac_objext
14130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14131 (eval $ac_compile) 2>conftest.er1
a848cd7e 14132 ac_status=$?
ac1cb8d3
VS
14133 grep -v '^ *+' conftest.er1 >conftest.err
14134 rm -f conftest.er1
14135 cat conftest.err >&5
a848cd7e
SC
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } &&
479c790c 14138 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140 (eval $ac_try) 2>&5
14141 ac_status=$?
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); }; } &&
14144 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14147 ac_status=$?
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; }; then
14150 ac_compiler_gnu=yes
14151else
14152 echo "$as_me: failed program was:" >&5
14153sed 's/^/| /' conftest.$ac_ext >&5
14154
14155ac_compiler_gnu=no
14156fi
ac1cb8d3 14157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14158ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14159
14160fi
14161echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
14162echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
14163GXX=`test $ac_compiler_gnu = yes && echo yes`
14164ac_test_CXXFLAGS=${CXXFLAGS+set}
14165ac_save_CXXFLAGS=$CXXFLAGS
14166CXXFLAGS="-g"
14167echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
14168echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
14169if test "${ac_cv_prog_cxx_g+set}" = set; then
14170 echo $ECHO_N "(cached) $ECHO_C" >&6
14171else
14172 cat >conftest.$ac_ext <<_ACEOF
14173/* confdefs.h. */
14174_ACEOF
14175cat confdefs.h >>conftest.$ac_ext
14176cat >>conftest.$ac_ext <<_ACEOF
14177/* end confdefs.h. */
14178
14179int
14180main ()
14181{
14182
14183 ;
14184 return 0;
14185}
14186_ACEOF
14187rm -f conftest.$ac_objext
14188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14189 (eval $ac_compile) 2>conftest.er1
a848cd7e 14190 ac_status=$?
ac1cb8d3
VS
14191 grep -v '^ *+' conftest.er1 >conftest.err
14192 rm -f conftest.er1
14193 cat conftest.err >&5
a848cd7e
SC
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); } &&
479c790c 14196 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14198 (eval $ac_try) 2>&5
14199 ac_status=$?
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); }; } &&
14202 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14204 (eval $ac_try) 2>&5
14205 ac_status=$?
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); }; }; then
14208 ac_cv_prog_cxx_g=yes
14209else
14210 echo "$as_me: failed program was:" >&5
14211sed 's/^/| /' conftest.$ac_ext >&5
14212
14213ac_cv_prog_cxx_g=no
14214fi
ac1cb8d3 14215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14216fi
14217echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
14218echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
14219if test "$ac_test_CXXFLAGS" = set; then
14220 CXXFLAGS=$ac_save_CXXFLAGS
14221elif test $ac_cv_prog_cxx_g = yes; then
14222 if test "$GXX" = yes; then
15291213 14223 CXXFLAGS="-g -O2"
a848cd7e 14224 else
15291213 14225 CXXFLAGS="-g"
a848cd7e
SC
14226 fi
14227else
14228 if test "$GXX" = yes; then
14229 CXXFLAGS="-O2"
14230 else
14231 CXXFLAGS=
14232 fi
14233fi
14234for ac_declaration in \
ac1cb8d3 14235 '' \
a848cd7e
SC
14236 'extern "C" void std::exit (int) throw (); using std::exit;' \
14237 'extern "C" void std::exit (int); using std::exit;' \
14238 'extern "C" void exit (int) throw ();' \
14239 'extern "C" void exit (int);' \
14240 'void exit (int);'
14241do
14242 cat >conftest.$ac_ext <<_ACEOF
14243/* confdefs.h. */
14244_ACEOF
14245cat confdefs.h >>conftest.$ac_ext
14246cat >>conftest.$ac_ext <<_ACEOF
14247/* end confdefs.h. */
de59c161 14248$ac_declaration
ac1cb8d3 14249#include <stdlib.h>
a848cd7e
SC
14250int
14251main ()
14252{
14253exit (42);
14254 ;
14255 return 0;
14256}
14257_ACEOF
14258rm -f conftest.$ac_objext
14259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14260 (eval $ac_compile) 2>conftest.er1
a848cd7e 14261 ac_status=$?
ac1cb8d3
VS
14262 grep -v '^ *+' conftest.er1 >conftest.err
14263 rm -f conftest.er1
14264 cat conftest.err >&5
a848cd7e
SC
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } &&
479c790c 14267 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14270 ac_status=$?
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; } &&
14273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275 (eval $ac_try) 2>&5
14276 ac_status=$?
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; }; then
14279 :
14280else
14281 echo "$as_me: failed program was:" >&5
14282sed 's/^/| /' conftest.$ac_ext >&5
14283
14284continue
14285fi
ac1cb8d3 14286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14287 cat >conftest.$ac_ext <<_ACEOF
14288/* confdefs.h. */
14289_ACEOF
14290cat confdefs.h >>conftest.$ac_ext
14291cat >>conftest.$ac_ext <<_ACEOF
14292/* end confdefs.h. */
14293$ac_declaration
14294int
14295main ()
14296{
14297exit (42);
14298 ;
14299 return 0;
14300}
14301_ACEOF
14302rm -f conftest.$ac_objext
14303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14304 (eval $ac_compile) 2>conftest.er1
a848cd7e 14305 ac_status=$?
ac1cb8d3
VS
14306 grep -v '^ *+' conftest.er1 >conftest.err
14307 rm -f conftest.er1
14308 cat conftest.err >&5
a848cd7e
SC
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); } &&
479c790c 14311 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14313 (eval $ac_try) 2>&5
14314 ac_status=$?
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; } &&
14317 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319 (eval $ac_try) 2>&5
14320 ac_status=$?
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; }; then
14323 break
14324else
14325 echo "$as_me: failed program was:" >&5
14326sed 's/^/| /' conftest.$ac_ext >&5
14327
14328fi
ac1cb8d3 14329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14330done
14331rm -f conftest*
14332if test -n "$ac_declaration"; then
14333 echo '#ifdef __cplusplus' >>confdefs.h
14334 echo $ac_declaration >>confdefs.h
14335 echo '#endif' >>confdefs.h
14336fi
14337
14338ac_ext=cc
14339ac_cpp='$CXXCPP $CPPFLAGS'
14340ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14341ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14342ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14343
ab0ad5f1
VZ
14344
14345
14346 ac_ext=cc
14347ac_cpp='$CXXCPP $CPPFLAGS'
14348ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14349ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14350ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14351
14352 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
14353echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
14354if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
14355 echo $ECHO_N "(cached) $ECHO_C" >&6
14356else
14357 cat >conftest.$ac_ext <<_ACEOF
14358/* confdefs.h. */
14359_ACEOF
14360cat confdefs.h >>conftest.$ac_ext
14361cat >>conftest.$ac_ext <<_ACEOF
14362/* end confdefs.h. */
14363
14364int
14365main ()
14366{
14367
14368 #ifndef __INTEL_COMPILER
14369 choke me
14370 #endif
14371
14372 ;
14373 return 0;
14374}
14375_ACEOF
14376rm -f conftest.$ac_objext
14377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14378 (eval $ac_compile) 2>conftest.er1
14379 ac_status=$?
14380 grep -v '^ *+' conftest.er1 >conftest.err
14381 rm -f conftest.er1
14382 cat conftest.err >&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } &&
479c790c 14385 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14388 ac_status=$?
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; } &&
14391 { ac_try='test -s conftest.$ac_objext'
14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14394 ac_status=$?
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; }; then
14397 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
14398else
14399 echo "$as_me: failed program was:" >&5
14400sed 's/^/| /' conftest.$ac_ext >&5
14401
14402bakefile_cv_cxx_compiler___INTEL_COMPILER=no
14403
14404fi
14405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14406
14407
14408fi
14409echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
14410echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
14411 ac_ext=cc
14412ac_cpp='$CXXCPP $CPPFLAGS'
14413ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14414ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14415ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14416
14417 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
14418 :; INTELCXX=yes
14419 else
14420 :;
14421 fi
14422
14423
3006edc0
VZ
14424 if test "x$GCXX" != "xyes"; then
14425 if test "xCXX" = "xC"; then
14426 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 14427echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 14428if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
14429 echo $ECHO_N "(cached) $ECHO_C" >&6
14430else
14431 cat >conftest.$ac_ext <<_ACEOF
14432/* confdefs.h. */
14433_ACEOF
14434cat confdefs.h >>conftest.$ac_ext
14435cat >>conftest.$ac_ext <<_ACEOF
14436/* end confdefs.h. */
14437
14438int
14439main ()
14440{
14441
14442 ;
14443 return 0;
14444}
14445_ACEOF
14446rm -f conftest.$ac_objext conftest.$ac_ext.o
14447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14448 (eval $ac_compile) 2>&5
14449 ac_status=$?
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); }; then
14452 for ac_file in `(ls conftest.* 2>/dev/null)`; do
14453 case $ac_file in
14454 conftest.$ac_ext.o)
0093c2fc 14455 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
14456 ;;
14457 *)
14458 ;;
14459 esac
14460done
14461else
14462 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14463See \`config.log' for more details." >&5
14464echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14465See \`config.log' for more details." >&2;}
14466 { (exit 1); exit 1; }; }
14467
14468fi
14469
14470rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14471
14472fi
0093c2fc
VZ
14473echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
14474echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
14475if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 14476 if test "cxx" = "c"; then
0093c2fc 14477 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
14478 fi
14479 if test "cxx" = "cxx"; then
0093c2fc 14480 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
14481 fi
14482fi
14483
0093c2fc 14484 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
14485 unset ac_cv_prog_cc_g
14486 ac_test_CFLAGS=${CFLAGS+set}
14487ac_save_CFLAGS=$CFLAGS
15291213 14488CFLAGS="-g"
3006edc0
VZ
14489echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14490echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14491if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
14492 echo $ECHO_N "(cached) $ECHO_C" >&6
14493else
14494 cat >conftest.$ac_ext <<_ACEOF
14495/* confdefs.h. */
14496_ACEOF
14497cat confdefs.h >>conftest.$ac_ext
14498cat >>conftest.$ac_ext <<_ACEOF
14499/* end confdefs.h. */
14500
14501int
14502main ()
14503{
14504
14505 ;
14506 return 0;
14507}
14508_ACEOF
14509rm -f conftest.$ac_objext
14510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14511 (eval $ac_compile) 2>conftest.er1
14512 ac_status=$?
14513 grep -v '^ *+' conftest.er1 >conftest.err
14514 rm -f conftest.er1
14515 cat conftest.err >&5
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); } &&
479c790c 14518 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
14519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14521 ac_status=$?
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; } &&
14524 { ac_try='test -s conftest.$ac_objext'
14525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526 (eval $ac_try) 2>&5
14527 ac_status=$?
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; }; then
3006edc0 14530 ac_cv_prog_cc_g=yes
480ccd21
DE
14531else
14532 echo "$as_me: failed program was:" >&5
14533sed 's/^/| /' conftest.$ac_ext >&5
14534
3006edc0 14535ac_cv_prog_cc_g=no
480ccd21
DE
14536fi
14537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14538fi
3006edc0
VZ
14539echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14540echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14541if test "$ac_test_CFLAGS" = set; then
14542 CFLAGS=$ac_save_CFLAGS
14543elif test $ac_cv_prog_cc_g = yes; then
14544 if test "$GCC" = yes; then
14545 CFLAGS="-g -O2"
480ccd21 14546 else
3006edc0 14547 CFLAGS="-g"
480ccd21
DE
14548 fi
14549else
3006edc0
VZ
14550 if test "$GCC" = yes; then
14551 CFLAGS="-O2"
480ccd21 14552 else
3006edc0 14553 CFLAGS=
480ccd21
DE
14554 fi
14555fi
3006edc0 14556 fi
ab0ad5f1 14557 fi
3006edc0
VZ
14558
14559 case `uname -s` in
14560 AIX*)
14561 ac_ext=cc
14562ac_cpp='$CXXCPP $CPPFLAGS'
14563ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14564ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14565ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14566
14567echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14568echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14569if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
14570 echo $ECHO_N "(cached) $ECHO_C" >&6
14571else
14572 cat >conftest.$ac_ext <<_ACEOF
14573/* confdefs.h. */
14574_ACEOF
14575cat confdefs.h >>conftest.$ac_ext
14576cat >>conftest.$ac_ext <<_ACEOF
14577/* end confdefs.h. */
14578
14579int
14580main ()
14581{
14582#ifndef __xlC__
14583 choke me
14584#endif
14585
14586 ;
14587 return 0;
14588}
14589_ACEOF
14590rm -f conftest.$ac_objext
14591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14592 (eval $ac_compile) 2>conftest.er1
14593 ac_status=$?
14594 grep -v '^ *+' conftest.er1 >conftest.err
14595 rm -f conftest.er1
14596 cat conftest.err >&5
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); } &&
479c790c 14599 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14601 (eval $ac_try) 2>&5
14602 ac_status=$?
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); }; } &&
14605 { ac_try='test -s conftest.$ac_objext'
14606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607 (eval $ac_try) 2>&5
14608 ac_status=$?
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); }; }; then
0093c2fc 14611 bakefile_compiler_xlc=yes
3006edc0
VZ
14612else
14613 echo "$as_me: failed program was:" >&5
14614sed 's/^/| /' conftest.$ac_ext >&5
14615
0093c2fc 14616bakefile_compiler_xlc=no
3006edc0
VZ
14617fi
14618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14619 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
14620
14621fi
0093c2fc
VZ
14622echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14623echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 14624
0093c2fc 14625XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
14626ac_ext=cc
14627ac_cpp='$CXXCPP $CPPFLAGS'
14628ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14629ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14630ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14631
14632
14633 ;;
14634
14635 Darwin)
14636 ac_ext=cc
95986553
DE
14637ac_cpp='$CXXCPP $CPPFLAGS'
14638ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14639ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14640ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14641
14642echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14643echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14644if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14645 echo $ECHO_N "(cached) $ECHO_C" >&6
14646else
14647 cat >conftest.$ac_ext <<_ACEOF
14648/* confdefs.h. */
14649_ACEOF
14650cat confdefs.h >>conftest.$ac_ext
14651cat >>conftest.$ac_ext <<_ACEOF
14652/* end confdefs.h. */
14653
14654int
14655main ()
14656{
14657#ifndef __MWERKS__
14658 choke me
14659#endif
14660
14661 ;
14662 return 0;
14663}
14664_ACEOF
14665rm -f conftest.$ac_objext
14666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14667 (eval $ac_compile) 2>conftest.er1
14668 ac_status=$?
14669 grep -v '^ *+' conftest.er1 >conftest.err
14670 rm -f conftest.er1
14671 cat conftest.err >&5
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); } &&
479c790c 14674 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
14675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676 (eval $ac_try) 2>&5
14677 ac_status=$?
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); }; } &&
14680 { ac_try='test -s conftest.$ac_objext'
14681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14682 (eval $ac_try) 2>&5
14683 ac_status=$?
14684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); }; }; then
14686 bakefile_compiler_mwerks=yes
14687else
14688 echo "$as_me: failed program was:" >&5
14689sed 's/^/| /' conftest.$ac_ext >&5
14690
14691bakefile_compiler_mwerks=no
14692fi
14693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14694 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14695
14696fi
14697echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14698echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14699
0e6fa1d9 14700MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
14701ac_ext=cc
14702ac_cpp='$CXXCPP $CPPFLAGS'
14703ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14704ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14705ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14706
14707
3006edc0 14708 ac_ext=cc
9273ffba
DE
14709ac_cpp='$CXXCPP $CPPFLAGS'
14710ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14711ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14712ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14713
14714echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14715echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14716if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
14717 echo $ECHO_N "(cached) $ECHO_C" >&6
14718else
14719 cat >conftest.$ac_ext <<_ACEOF
14720/* confdefs.h. */
14721_ACEOF
14722cat confdefs.h >>conftest.$ac_ext
14723cat >>conftest.$ac_ext <<_ACEOF
14724/* end confdefs.h. */
14725
14726int
14727main ()
14728{
14729#ifndef __xlC__
14730 choke me
14731#endif
14732
14733 ;
14734 return 0;
14735}
14736_ACEOF
14737rm -f conftest.$ac_objext
14738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14739 (eval $ac_compile) 2>conftest.er1
14740 ac_status=$?
14741 grep -v '^ *+' conftest.er1 >conftest.err
14742 rm -f conftest.er1
14743 cat conftest.err >&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } &&
479c790c 14746 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
14747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748 (eval $ac_try) 2>&5
14749 ac_status=$?
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; } &&
14752 { ac_try='test -s conftest.$ac_objext'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14755 ac_status=$?
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; }; then
0093c2fc 14758 bakefile_compiler_xlc=yes
9273ffba
DE
14759else
14760 echo "$as_me: failed program was:" >&5
14761sed 's/^/| /' conftest.$ac_ext >&5
14762
0093c2fc 14763bakefile_compiler_xlc=no
9273ffba
DE
14764fi
14765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14766 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
14767
14768fi
0093c2fc
VZ
14769echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14770echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 14771
0093c2fc 14772XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
14773ac_ext=cc
14774ac_cpp='$CXXCPP $CPPFLAGS'
14775ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14776ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14777ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14778
14779
3006edc0
VZ
14780 ;;
14781
14782 IRIX*)
95986553 14783
6dcfc289 14784
0ad5d837
VZ
14785 ac_ext=cc
14786ac_cpp='$CXXCPP $CPPFLAGS'
14787ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14788ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14789ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14790
14791 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14792echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14793if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14794 echo $ECHO_N "(cached) $ECHO_C" >&6
14795else
14796 cat >conftest.$ac_ext <<_ACEOF
14797/* confdefs.h. */
14798_ACEOF
14799cat confdefs.h >>conftest.$ac_ext
14800cat >>conftest.$ac_ext <<_ACEOF
14801/* end confdefs.h. */
14802
14803int
14804main ()
14805{
14806
14807 #ifndef _SGI_COMPILER_VERSION
14808 choke me
14809 #endif
14810
14811 ;
14812 return 0;
14813}
14814_ACEOF
14815rm -f conftest.$ac_objext
14816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14817 (eval $ac_compile) 2>conftest.er1
14818 ac_status=$?
14819 grep -v '^ *+' conftest.er1 >conftest.err
14820 rm -f conftest.er1
14821 cat conftest.err >&5
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); } &&
479c790c 14824 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
14825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826 (eval $ac_try) 2>&5
14827 ac_status=$?
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; } &&
14830 { ac_try='test -s conftest.$ac_objext'
14831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14832 (eval $ac_try) 2>&5
14833 ac_status=$?
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); }; }; then
14836 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14837else
14838 echo "$as_me: failed program was:" >&5
14839sed 's/^/| /' conftest.$ac_ext >&5
14840
14841bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14842
14843fi
14844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14845
14846
14847fi
14848echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14849echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14850 ac_ext=cc
14851ac_cpp='$CXXCPP $CPPFLAGS'
14852ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14853ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14854ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14855
14856 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14857 :; SGICXX=yes
14858 else
14859 :;
14860 fi
14861
14862
3006edc0
VZ
14863 ;;
14864
0093c2fc 14865 HP-UX*)
3006edc0
VZ
14866
14867
14868 ac_ext=cc
14869ac_cpp='$CXXCPP $CPPFLAGS'
14870ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14871ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14872ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14873
0093c2fc
VZ
14874 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14875echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14876if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14877 echo $ECHO_N "(cached) $ECHO_C" >&6
14878else
14879 cat >conftest.$ac_ext <<_ACEOF
14880/* confdefs.h. */
14881_ACEOF
14882cat confdefs.h >>conftest.$ac_ext
14883cat >>conftest.$ac_ext <<_ACEOF
14884/* end confdefs.h. */
14885
14886int
14887main ()
14888{
14889
0093c2fc 14890 #ifndef __HP_aCC
3006edc0
VZ
14891 choke me
14892 #endif
14893
14894 ;
14895 return 0;
14896}
14897_ACEOF
14898rm -f conftest.$ac_objext
14899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14900 (eval $ac_compile) 2>conftest.er1
14901 ac_status=$?
14902 grep -v '^ *+' conftest.er1 >conftest.err
14903 rm -f conftest.er1
14904 cat conftest.err >&5
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); } &&
479c790c 14907 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14909 (eval $ac_try) 2>&5
14910 ac_status=$?
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); }; } &&
14913 { ac_try='test -s conftest.$ac_objext'
14914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14915 (eval $ac_try) 2>&5
14916 ac_status=$?
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); }; }; then
0093c2fc 14919 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14920else
14921 echo "$as_me: failed program was:" >&5
14922sed 's/^/| /' conftest.$ac_ext >&5
14923
0093c2fc 14924bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14925
14926fi
14927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14928
14929
14930fi
0093c2fc
VZ
14931echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14932echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
14933 ac_ext=cc
14934ac_cpp='$CXXCPP $CPPFLAGS'
14935ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14936ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14937ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14938
0093c2fc
VZ
14939 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14940 :; HPCXX=yes
a1aa0349
VZ
14941 else
14942 :;
14943 fi
14944
14945
14946 ;;
14947
0093c2fc 14948 OSF1)
a1aa0349
VZ
14949
14950
14951 ac_ext=cc
14952ac_cpp='$CXXCPP $CPPFLAGS'
14953ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14954ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14955ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14956
0093c2fc
VZ
14957 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14958echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14959if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14960 echo $ECHO_N "(cached) $ECHO_C" >&6
14961else
14962 cat >conftest.$ac_ext <<_ACEOF
14963/* confdefs.h. */
14964_ACEOF
14965cat confdefs.h >>conftest.$ac_ext
14966cat >>conftest.$ac_ext <<_ACEOF
14967/* end confdefs.h. */
14968
14969int
14970main ()
14971{
14972
0093c2fc 14973 #ifndef __DECCXX
a1aa0349
VZ
14974 choke me
14975 #endif
14976
14977 ;
14978 return 0;
14979}
14980_ACEOF
14981rm -f conftest.$ac_objext
14982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14983 (eval $ac_compile) 2>conftest.er1
14984 ac_status=$?
14985 grep -v '^ *+' conftest.er1 >conftest.err
14986 rm -f conftest.er1
14987 cat conftest.err >&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } &&
479c790c 14990 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
14991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14992 (eval $ac_try) 2>&5
14993 ac_status=$?
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); }; } &&
14996 { ac_try='test -s conftest.$ac_objext'
14997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14998 (eval $ac_try) 2>&5
14999 ac_status=$?
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); }; }; then
0093c2fc 15002 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
15003else
15004 echo "$as_me: failed program was:" >&5
15005sed 's/^/| /' conftest.$ac_ext >&5
15006
0093c2fc 15007bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
15008
15009fi
15010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15011
15012
15013fi
0093c2fc
VZ
15014echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
15015echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
15016 ac_ext=cc
15017ac_cpp='$CXXCPP $CPPFLAGS'
15018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15021
0093c2fc
VZ
15022 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
15023 :; COMPAQCXX=yes
15024 else
15025 :;
15026 fi
15027
15028
15029 ;;
15030
15031 SunOS)
15032
15033
15034 ac_ext=cc
15035ac_cpp='$CXXCPP $CPPFLAGS'
15036ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15037ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15038ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15039
15040 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
15041echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
15042if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
15043 echo $ECHO_N "(cached) $ECHO_C" >&6
15044else
15045 cat >conftest.$ac_ext <<_ACEOF
15046/* confdefs.h. */
15047_ACEOF
15048cat confdefs.h >>conftest.$ac_ext
15049cat >>conftest.$ac_ext <<_ACEOF
15050/* end confdefs.h. */
15051
15052int
15053main ()
15054{
15055
15056 #ifndef __SUNPRO_CC
15057 choke me
15058 #endif
15059
15060 ;
15061 return 0;
15062}
15063_ACEOF
15064rm -f conftest.$ac_objext
15065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15066 (eval $ac_compile) 2>conftest.er1
15067 ac_status=$?
15068 grep -v '^ *+' conftest.er1 >conftest.err
15069 rm -f conftest.er1
15070 cat conftest.err >&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); } &&
479c790c 15073 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
15074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15075 (eval $ac_try) 2>&5
15076 ac_status=$?
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); }; } &&
15079 { ac_try='test -s conftest.$ac_objext'
15080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15081 (eval $ac_try) 2>&5
15082 ac_status=$?
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }; }; then
15085 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
15086else
15087 echo "$as_me: failed program was:" >&5
15088sed 's/^/| /' conftest.$ac_ext >&5
15089
15090bakefile_cv_cxx_compiler___SUNPRO_CC=no
15091
15092fi
15093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15094
15095
15096fi
15097echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
15098echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
15099 ac_ext=cc
15100ac_cpp='$CXXCPP $CPPFLAGS'
15101ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15102ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15103ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15104
15105 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
15106 :; SUNCXX=yes
3006edc0
VZ
15107 else
15108 :;
ab0ad5f1 15109 fi
a9e5b1f0
MW
15110
15111
3006edc0
VZ
15112 ;;
15113 esac
15114 fi
15115
15116
15117
a848cd7e
SC
15118if test -n "$ac_tool_prefix"; then
15119 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15120set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15121echo "$as_me:$LINENO: checking for $ac_word" >&5
15122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15123if test "${ac_cv_prog_RANLIB+set}" = set; then
15124 echo $ECHO_N "(cached) $ECHO_C" >&6
15125else
15126 if test -n "$RANLIB"; then
15127 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15128else
15129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15130for as_dir in $PATH
15131do
15132 IFS=$as_save_IFS
15133 test -z "$as_dir" && as_dir=.
15134 for ac_exec_ext in '' $ac_executable_extensions; do
15135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15136 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15138 break 2
15139 fi
15140done
15141done
15142
15143fi
15144fi
15145RANLIB=$ac_cv_prog_RANLIB
15146if test -n "$RANLIB"; then
15147 echo "$as_me:$LINENO: result: $RANLIB" >&5
15148echo "${ECHO_T}$RANLIB" >&6
15149else
15150 echo "$as_me:$LINENO: result: no" >&5
15151echo "${ECHO_T}no" >&6
15152fi
15153
15154fi
15155if test -z "$ac_cv_prog_RANLIB"; then
15156 ac_ct_RANLIB=$RANLIB
15157 # Extract the first word of "ranlib", so it can be a program name with args.
15158set dummy ranlib; ac_word=$2
15159echo "$as_me:$LINENO: checking for $ac_word" >&5
15160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15161if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15162 echo $ECHO_N "(cached) $ECHO_C" >&6
15163else
15164 if test -n "$ac_ct_RANLIB"; then
15165 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15166else
15167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15168for as_dir in $PATH
15169do
15170 IFS=$as_save_IFS
15171 test -z "$as_dir" && as_dir=.
15172 for ac_exec_ext in '' $ac_executable_extensions; do
15173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15174 ac_cv_prog_ac_ct_RANLIB="ranlib"
15175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15176 break 2
15177 fi
15178done
15179done
15180
15181 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15182fi
15183fi
15184ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15185if test -n "$ac_ct_RANLIB"; then
15186 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15187echo "${ECHO_T}$ac_ct_RANLIB" >&6
15188else
15189 echo "$as_me:$LINENO: result: no" >&5
15190echo "${ECHO_T}no" >&6
15191fi
15192
15193 RANLIB=$ac_ct_RANLIB
15194else
15195 RANLIB="$ac_cv_prog_RANLIB"
15196fi
15197
15198
8c80d384
DE
15199if test -n "$ac_tool_prefix"; then
15200 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15201set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
15202echo "$as_me:$LINENO: checking for $ac_word" >&5
15203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15204if test "${ac_cv_prog_AR+set}" = set; then
15205 echo $ECHO_N "(cached) $ECHO_C" >&6
15206else
15207 if test -n "$AR"; then
15208 ac_cv_prog_AR="$AR" # Let the user override the test.
15209else
15210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15211for as_dir in $PATH
15212do
15213 IFS=$as_save_IFS
15214 test -z "$as_dir" && as_dir=.
15215 for ac_exec_ext in '' $ac_executable_extensions; do
15216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 15217 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
15218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15219 break 2
15220 fi
15221done
15222done
15223
15224fi
15225fi
15226AR=$ac_cv_prog_AR
15227if test -n "$AR"; then
15228 echo "$as_me:$LINENO: result: $AR" >&5
15229echo "${ECHO_T}$AR" >&6
15230else
15231 echo "$as_me:$LINENO: result: no" >&5
15232echo "${ECHO_T}no" >&6
15233fi
15234
8c80d384
DE
15235fi
15236if test -z "$ac_cv_prog_AR"; then
15237 ac_ct_AR=$AR
15238 # Extract the first word of "ar", so it can be a program name with args.
15239set dummy ar; ac_word=$2
15240echo "$as_me:$LINENO: checking for $ac_word" >&5
15241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15242if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15243 echo $ECHO_N "(cached) $ECHO_C" >&6
15244else
15245 if test -n "$ac_ct_AR"; then
15246 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15247else
15248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15249for as_dir in $PATH
15250do
15251 IFS=$as_save_IFS
15252 test -z "$as_dir" && as_dir=.
15253 for ac_exec_ext in '' $ac_executable_extensions; do
15254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15255 ac_cv_prog_ac_ct_AR="ar"
15256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15257 break 2
15258 fi
15259done
15260done
15261
15262fi
15263fi
15264ac_ct_AR=$ac_cv_prog_ac_ct_AR
15265if test -n "$ac_ct_AR"; then
15266 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15267echo "${ECHO_T}$ac_ct_AR" >&6
15268else
15269 echo "$as_me:$LINENO: result: no" >&5
15270echo "${ECHO_T}no" >&6
15271fi
15272
15273 AR=$ac_ct_AR
15274else
15275 AR="$ac_cv_prog_AR"
15276fi
15277
a848cd7e 15278if test "x$AR" = "x" ; then
77ffb593
JS
15279 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
15280echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
15281 { (exit 1); exit 1; }; }
15282fi
15283
15284# Find a good install program. We prefer a C program (faster),
15285# so one script is as good as another. But avoid the broken or
15286# incompatible versions:
15287# SysV /etc/install, /usr/sbin/install
15288# SunOS /usr/etc/install
15289# IRIX /sbin/install
15290# AIX /bin/install
15291# AmigaOS /C/install, which installs bootblocks on floppy discs
15292# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15293# AFS /usr/afsws/bin/install, which mishandles nonexistent args
15294# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 15295# OS/2's system install, which has a completely different semantic
a848cd7e
SC
15296# ./install, which can be erroneously created by make from ./install.sh.
15297echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
15298echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
15299if test -z "$INSTALL"; then
15300if test "${ac_cv_path_install+set}" = set; then
15301 echo $ECHO_N "(cached) $ECHO_C" >&6
15302else
15303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15304for as_dir in $PATH
15305do
15306 IFS=$as_save_IFS
15307 test -z "$as_dir" && as_dir=.
15308 # Account for people who put trailing slashes in PATH elements.
15309case $as_dir/ in
15310 ./ | .// | /cC/* | \
15311 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 15312 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
15313 /usr/ucb/* ) ;;
15314 *)
15315 # OSF1 and SCO ODT 3.0 have their own names for install.
15316 # Don't use installbsd from OSF since it installs stuff as root
15317 # by default.
15318 for ac_prog in ginstall scoinst install; do
15319 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
15320 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15321 if test $ac_prog = install &&
15322 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15323 # AIX install. It has an incompatible calling convention.
15324 :
15325 elif test $ac_prog = install &&
15326 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15327 # program-specific install script used by HP pwplus--don't use.
15328 :
15329 else
15330 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15331 break 3
15332 fi
15333 fi
a848cd7e
SC
15334 done
15335 done
15336 ;;
15337esac
15338done
15339
15340
15341fi
15342 if test "${ac_cv_path_install+set}" = set; then
15343 INSTALL=$ac_cv_path_install
15344 else
15345 # As a last resort, use the slow shell script. We don't cache a
15346 # path for INSTALL within a source directory, because that will
15347 # break other packages using the cache if that directory is
15348 # removed, or if the path is relative.
15349 INSTALL=$ac_install_sh
15350 fi
15351fi
15352echo "$as_me:$LINENO: result: $INSTALL" >&5
15353echo "${ECHO_T}$INSTALL" >&6
15354
15355# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15356# It thinks the first close brace ends the variable substitution.
15357test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15358
15359test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15360
15361test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15362
15363
15364case ${INSTALL} in
15365 /* ) # Absolute
15366 ;;
15367 ?:* ) # Drive letter, considered as absolute.
15368 ;;
15369 *)
15370 INSTALL=`pwd`/${INSTALL} ;;
15371esac
15372
a848cd7e
SC
15373
15374case "${host}" in
15375
cfda0ea8 15376 *-*-darwin* )
a848cd7e
SC
15377 INSTALL_PROGRAM="cp -fp"
15378 INSTALL_DATA="cp -fp"
15379 ;;
15380 *)
15381 ;;
15382esac
15383
8c80d384
DE
15384if test -n "$ac_tool_prefix"; then
15385 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15386set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
15387echo "$as_me:$LINENO: checking for $ac_word" >&5
15388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15389if test "${ac_cv_prog_STRIP+set}" = set; then
15390 echo $ECHO_N "(cached) $ECHO_C" >&6
15391else
15392 if test -n "$STRIP"; then
15393 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15394else
15395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15396for as_dir in $PATH
15397do
15398 IFS=$as_save_IFS
15399 test -z "$as_dir" && as_dir=.
15400 for ac_exec_ext in '' $ac_executable_extensions; do
15401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 15402 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
15403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15404 break 2
15405 fi
15406done
15407done
15408
a848cd7e
SC
15409fi
15410fi
15411STRIP=$ac_cv_prog_STRIP
15412if test -n "$STRIP"; then
15413 echo "$as_me:$LINENO: result: $STRIP" >&5
15414echo "${ECHO_T}$STRIP" >&6
15415else
15416 echo "$as_me:$LINENO: result: no" >&5
15417echo "${ECHO_T}no" >&6
15418fi
15419
8c80d384
DE
15420fi
15421if test -z "$ac_cv_prog_STRIP"; then
15422 ac_ct_STRIP=$STRIP
15423 # Extract the first word of "strip", so it can be a program name with args.
15424set dummy strip; ac_word=$2
15425echo "$as_me:$LINENO: checking for $ac_word" >&5
15426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15427if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15428 echo $ECHO_N "(cached) $ECHO_C" >&6
15429else
15430 if test -n "$ac_ct_STRIP"; then
15431 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15432else
15433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15434for as_dir in $PATH
15435do
15436 IFS=$as_save_IFS
15437 test -z "$as_dir" && as_dir=.
15438 for ac_exec_ext in '' $ac_executable_extensions; do
15439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15440 ac_cv_prog_ac_ct_STRIP="strip"
15441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15442 break 2
15443 fi
15444done
15445done
15446
15447 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
15448fi
15449fi
15450ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15451if test -n "$ac_ct_STRIP"; then
15452 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15453echo "${ECHO_T}$ac_ct_STRIP" >&6
15454else
15455 echo "$as_me:$LINENO: result: no" >&5
15456echo "${ECHO_T}no" >&6
15457fi
15458
15459 STRIP=$ac_ct_STRIP
15460else
15461 STRIP="$ac_cv_prog_STRIP"
15462fi
15463
15464
15465if test "$wxUSE_WINE" = "yes"; then
15466 if test -n "$ac_tool_prefix"; then
15467 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
15468set dummy ${ac_tool_prefix}wrc; ac_word=$2
15469echo "$as_me:$LINENO: checking for $ac_word" >&5
15470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15471if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
15472 echo $ECHO_N "(cached) $ECHO_C" >&6
15473else
8ced02f6
DE
15474 if test -n "$WINDRES"; then
15475 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
15476else
15477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15478for as_dir in $PATH
15479do
15480 IFS=$as_save_IFS
15481 test -z "$as_dir" && as_dir=.
15482 for ac_exec_ext in '' $ac_executable_extensions; do
15483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15484 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
15485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15486 break 2
15487 fi
15488done
15489done
15490
15491fi
15492fi
8ced02f6
DE
15493WINDRES=$ac_cv_prog_WINDRES
15494if test -n "$WINDRES"; then
15495 echo "$as_me:$LINENO: result: $WINDRES" >&5
15496echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
15497else
15498 echo "$as_me:$LINENO: result: no" >&5
15499echo "${ECHO_T}no" >&6
15500fi
15501
15502fi
8ced02f6
DE
15503if test -z "$ac_cv_prog_WINDRES"; then
15504 ac_ct_WINDRES=$WINDRES
8c80d384
DE
15505 # Extract the first word of "wrc", so it can be a program name with args.
15506set dummy wrc; ac_word=$2
15507echo "$as_me:$LINENO: checking for $ac_word" >&5
15508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15509if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
15510 echo $ECHO_N "(cached) $ECHO_C" >&6
15511else
8ced02f6
DE
15512 if test -n "$ac_ct_WINDRES"; then
15513 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
15514else
15515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15516for as_dir in $PATH
15517do
15518 IFS=$as_save_IFS
15519 test -z "$as_dir" && as_dir=.
15520 for ac_exec_ext in '' $ac_executable_extensions; do
15521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15522 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
15523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15524 break 2
15525 fi
15526done
15527done
15528
15529fi
15530fi
8ced02f6
DE
15531ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15532if test -n "$ac_ct_WINDRES"; then
15533 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15534echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
15535else
15536 echo "$as_me:$LINENO: result: no" >&5
15537echo "${ECHO_T}no" >&6
15538fi
15539
8ced02f6 15540 WINDRES=$ac_ct_WINDRES
8c80d384 15541else
8ced02f6 15542 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
15543fi
15544
004ee6da 15545 RESCOMP="$WINDRES"
8c80d384
DE
15546else
15547 case "${host}" in
15548 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
15549 if test -n "$ac_tool_prefix"; then
15550 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15551set dummy ${ac_tool_prefix}windres; ac_word=$2
15552echo "$as_me:$LINENO: checking for $ac_word" >&5
15553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15554if test "${ac_cv_prog_WINDRES+set}" = set; then
15555 echo $ECHO_N "(cached) $ECHO_C" >&6
15556else
15557 if test -n "$WINDRES"; then
15558 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15559else
15560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15561for as_dir in $PATH
15562do
15563 IFS=$as_save_IFS
15564 test -z "$as_dir" && as_dir=.
15565 for ac_exec_ext in '' $ac_executable_extensions; do
15566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15567 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15569 break 2
15570 fi
15571done
15572done
15573
15574fi
15575fi
15576WINDRES=$ac_cv_prog_WINDRES
15577if test -n "$WINDRES"; then
15578 echo "$as_me:$LINENO: result: $WINDRES" >&5
15579echo "${ECHO_T}$WINDRES" >&6
15580else
15581 echo "$as_me:$LINENO: result: no" >&5
15582echo "${ECHO_T}no" >&6
15583fi
15584
15585fi
15586if test -z "$ac_cv_prog_WINDRES"; then
15587 ac_ct_WINDRES=$WINDRES
15588 # Extract the first word of "windres", so it can be a program name with args.
15589set dummy windres; ac_word=$2
15590echo "$as_me:$LINENO: checking for $ac_word" >&5
15591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15592if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15593 echo $ECHO_N "(cached) $ECHO_C" >&6
15594else
15595 if test -n "$ac_ct_WINDRES"; then
15596 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15597else
15598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15599for as_dir in $PATH
15600do
15601 IFS=$as_save_IFS
15602 test -z "$as_dir" && as_dir=.
15603 for ac_exec_ext in '' $ac_executable_extensions; do
15604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15605 ac_cv_prog_ac_ct_WINDRES="windres"
15606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15607 break 2
15608 fi
15609done
15610done
15611
15612fi
15613fi
15614ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15615if test -n "$ac_ct_WINDRES"; then
15616 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15617echo "${ECHO_T}$ac_ct_WINDRES" >&6
15618else
15619 echo "$as_me:$LINENO: result: no" >&5
15620echo "${ECHO_T}no" >&6
15621fi
15622
15623 WINDRES=$ac_ct_WINDRES
15624else
15625 WINDRES="$ac_cv_prog_WINDRES"
15626fi
15627
15628 RESCOMP="$WINDRES"
15629 if test -n "$ac_tool_prefix"; then
8c80d384
DE
15630 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15631set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15632echo "$as_me:$LINENO: checking for $ac_word" >&5
15633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15634if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15635 echo $ECHO_N "(cached) $ECHO_C" >&6
15636else
15637 if test -n "$DLLTOOL"; then
15638 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15639else
15640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15641for as_dir in $PATH
15642do
15643 IFS=$as_save_IFS
15644 test -z "$as_dir" && as_dir=.
15645 for ac_exec_ext in '' $ac_executable_extensions; do
15646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15647 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15649 break 2
15650 fi
15651done
15652done
15653
15654fi
15655fi
15656DLLTOOL=$ac_cv_prog_DLLTOOL
15657if test -n "$DLLTOOL"; then
15658 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15659echo "${ECHO_T}$DLLTOOL" >&6
15660else
15661 echo "$as_me:$LINENO: result: no" >&5
15662echo "${ECHO_T}no" >&6
15663fi
15664
15665fi
15666if test -z "$ac_cv_prog_DLLTOOL"; then
15667 ac_ct_DLLTOOL=$DLLTOOL
15668 # Extract the first word of "dlltool", so it can be a program name with args.
15669set dummy dlltool; ac_word=$2
15670echo "$as_me:$LINENO: checking for $ac_word" >&5
15671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15672if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15673 echo $ECHO_N "(cached) $ECHO_C" >&6
15674else
15675 if test -n "$ac_ct_DLLTOOL"; then
15676 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15677else
15678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15679for as_dir in $PATH
15680do
15681 IFS=$as_save_IFS
15682 test -z "$as_dir" && as_dir=.
15683 for ac_exec_ext in '' $ac_executable_extensions; do
15684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15685 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15687 break 2
15688 fi
15689done
15690done
15691
15692fi
15693fi
15694ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15695if test -n "$ac_ct_DLLTOOL"; then
15696 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15697echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15698else
15699 echo "$as_me:$LINENO: result: no" >&5
15700echo "${ECHO_T}no" >&6
15701fi
15702
15703 DLLTOOL=$ac_ct_DLLTOOL
15704else
15705 DLLTOOL="$ac_cv_prog_DLLTOOL"
15706fi
15707
15708 ;;
15709 esac
15710fi
a848cd7e
SC
15711
15712echo "$as_me:$LINENO: checking if make is GNU make" >&5
15713echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15714if test "${wx_cv_prog_makeisgnu+set}" = set; then
15715 echo $ECHO_N "(cached) $ECHO_C" >&6
15716else
15717
15718 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15719 egrep -s GNU > /dev/null); then
15720 wx_cv_prog_makeisgnu="yes"
15721 else
15722 wx_cv_prog_makeisgnu="no"
15723 fi
15724
15725fi
15726echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15727echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15728
15729if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15730 IF_GNU_MAKE=""
15731else
15732 IF_GNU_MAKE="#"
15733fi
15734
15735
15736
15737if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15738echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15739echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15740if test "${wx_cv_prog_makevpath+set}" = set; then
15741 echo $ECHO_N "(cached) $ECHO_C" >&6
15742else
15743
15744cat - << EOF > confMake
15745check : file
15746 cp \$? \$@
15747 cp \$? final_file
15748EOF
15749
15750if test ! -d sub ; then
15751 mkdir sub
15752fi
15753echo dummy > sub/file
15754${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15755RESULT=$?
15756rm -f sub/file check final_file confMake
15757rmdir sub
15758if test "$RESULT" = 0; then
15759 wx_cv_prog_makevpath="yes"
15760else
15761 wx_cv_prog_makevpath="no"
15762fi
15763
15764fi
15765echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15766echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15767
15768if test "x$wx_cv_prog_makevpath" != "xyes"; then
15769{ { echo "$as_me:$LINENO: error:
15770You need a make-utility that is able to use the variable
15771VPATH correctly.
15772If your version of make does not support VPATH correctly,
15773please install GNU-make (possibly as gmake), and start
15774configure with the following command:
15775export MAKE=gmake; ./configure for sh-type shells
15776setenv MAKE gmake; ./configure for csh-type shells
15777Also please do remember to use gmake in this case every time
15778you are trying to compile.
15779" >&5
15780echo "$as_me: error:
15781You need a make-utility that is able to use the variable
15782VPATH correctly.
15783If your version of make does not support VPATH correctly,
15784please install GNU-make (possibly as gmake), and start
15785configure with the following command:
15786export MAKE=gmake; ./configure for sh-type shells
15787setenv MAKE gmake; ./configure for csh-type shells
15788Also please do remember to use gmake in this case every time
15789you are trying to compile.
15790" >&2;}
15791 { (exit 1); exit 1; }; }
15792fi fi
15793echo "$as_me:$LINENO: checking whether ln -s works" >&5
15794echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15795LN_S=$as_ln_s
15796if test "$LN_S" = "ln -s"; then
15797 echo "$as_me:$LINENO: result: yes" >&5
15798echo "${ECHO_T}yes" >&6
15799else
15800 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15801echo "${ECHO_T}no, using $LN_S" >&6
15802fi
15803
15804
bcaab0f9 15805
a848cd7e 15806
2113bc77 15807if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 15808 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
15809fi
15810
4d7ec9f1
DE
15811case "${host}" in
15812 powerpc-*-darwin* )
15813 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15814echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15815 cat >conftest.$ac_ext <<_ACEOF
15816/* confdefs.h. */
15817_ACEOF
15818cat confdefs.h >>conftest.$ac_ext
15819cat >>conftest.$ac_ext <<_ACEOF
15820/* end confdefs.h. */
15821
15822int
15823main ()
15824{
15825#ifndef __POWERPC__
15826 choke me for lack of PowerPC
15827#endif
15828
15829 ;
15830 return 0;
15831}
15832_ACEOF
15833rm -f conftest.$ac_objext
15834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15835 (eval $ac_compile) 2>conftest.er1
15836 ac_status=$?
15837 grep -v '^ *+' conftest.er1 >conftest.err
15838 rm -f conftest.er1
15839 cat conftest.err >&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); } &&
479c790c 15842 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15844 (eval $ac_try) 2>&5
15845 ac_status=$?
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); }; } &&
15848 { ac_try='test -s conftest.$ac_objext'
15849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15850 (eval $ac_try) 2>&5
15851 ac_status=$?
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); }; }; then
15854 echo "$as_me:$LINENO: result: yes" >&5
15855echo "${ECHO_T}yes" >&6
15856else
15857 echo "$as_me: failed program was:" >&5
15858sed 's/^/| /' conftest.$ac_ext >&5
15859
15860echo "$as_me:$LINENO: result: no" >&5
15861echo "${ECHO_T}no" >&6
15862 cat >>confdefs.h <<\_ACEOF
15863#define __POWERPC__ 1
15864_ACEOF
15865
15866
15867fi
15868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15869 ;;
15870esac
15871
15872case "${host}" in
15873 *-*-darwin* )
4d7ec9f1
DE
15874 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15875echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15876 cat >conftest.$ac_ext <<_ACEOF
15877/* confdefs.h. */
15878_ACEOF
15879cat confdefs.h >>conftest.$ac_ext
15880cat >>conftest.$ac_ext <<_ACEOF
15881/* end confdefs.h. */
15882#include <CoreFoundation/CFBase.h>
15883
15884int
15885main ()
15886{
15887
15888 ;
15889 return 0;
15890}
15891_ACEOF
15892rm -f conftest.$ac_objext
15893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15894 (eval $ac_compile) 2>conftest.er1
15895 ac_status=$?
15896 grep -v '^ *+' conftest.er1 >conftest.err
15897 rm -f conftest.er1
15898 cat conftest.err >&5
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); } &&
479c790c 15901 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903 (eval $ac_try) 2>&5
15904 ac_status=$?
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); }; } &&
15907 { ac_try='test -s conftest.$ac_objext'
15908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15909 (eval $ac_try) 2>&5
15910 ac_status=$?
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); }; }; then
15913 echo "$as_me:$LINENO: result: yes" >&5
15914echo "${ECHO_T}yes" >&6
15915else
15916 echo "$as_me: failed program was:" >&5
15917sed 's/^/| /' conftest.$ac_ext >&5
15918
15919echo "$as_me:$LINENO: result: no" >&5
15920echo "${ECHO_T}no" >&6
15921 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15922echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15923 cat >conftest.$ac_ext <<_ACEOF
15924/* confdefs.h. */
15925_ACEOF
15926cat confdefs.h >>conftest.$ac_ext
15927cat >>conftest.$ac_ext <<_ACEOF
15928/* end confdefs.h. */
15929#define __CF_USE_FRAMEWORK_INCLUDES__
15930#include <CoreFoundation/CFBase.h>
15931
15932int
15933main ()
15934{
15935
15936 ;
15937 return 0;
15938}
15939_ACEOF
15940rm -f conftest.$ac_objext
15941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15942 (eval $ac_compile) 2>conftest.er1
15943 ac_status=$?
15944 grep -v '^ *+' conftest.er1 >conftest.err
15945 rm -f conftest.er1
15946 cat conftest.err >&5
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); } &&
479c790c 15949 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15951 (eval $ac_try) 2>&5
15952 ac_status=$?
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); }; } &&
15955 { ac_try='test -s conftest.$ac_objext'
15956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15957 (eval $ac_try) 2>&5
15958 ac_status=$?
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; }; then
15961 echo "$as_me:$LINENO: result: yes" >&5
15962echo "${ECHO_T}yes" >&6
c92ad099 15963 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15964else
15965 echo "$as_me: failed program was:" >&5
15966sed 's/^/| /' conftest.$ac_ext >&5
15967
15968{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15969See \`config.log' for more details." >&5
15970echo "$as_me: error: no. CoreFoundation not available.
15971See \`config.log' for more details." >&2;}
15972 { (exit 1); exit 1; }; }
15973
15974fi
15975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15976
15977
15978fi
15979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15980 ;;
15981esac
15982
a848cd7e
SC
15983case "${host}" in
15984 *-pc-os2_emx | *-pc-os2-emx )
6ba87b06
SN
15985 ac_ext=c
15986ac_cpp='$CPP $CPPFLAGS'
15987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15989ac_compiler_gnu=$ac_cv_c_compiler_gnu
15990
15991 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
a848cd7e
SC
15992 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15993echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15994if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15995 echo $ECHO_N "(cached) $ECHO_C" >&6
15996else
15997 ac_check_lib_save_LIBS=$LIBS
15998LIBS="-lcExt $LIBS"
15999cat >conftest.$ac_ext <<_ACEOF
16000/* confdefs.h. */
16001_ACEOF
16002cat confdefs.h >>conftest.$ac_ext
16003cat >>conftest.$ac_ext <<_ACEOF
16004/* end confdefs.h. */
16005
16006/* Override any gcc2 internal prototype to avoid an error. */
16007#ifdef __cplusplus
16008extern "C"
16009#endif
16010/* We use char because int might match the return type of a gcc2
16011 builtin and then its argument prototype would still apply. */
16012char drand48 ();
16013int
16014main ()
16015{
16016drand48 ();
16017 ;
16018 return 0;
16019}
16020_ACEOF
16021rm -f conftest.$ac_objext conftest$ac_exeext
16022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 16023 (eval $ac_link) 2>conftest.er1
a848cd7e 16024 ac_status=$?
ac1cb8d3
VS
16025 grep -v '^ *+' conftest.er1 >conftest.err
16026 rm -f conftest.er1
16027 cat conftest.err >&5
a848cd7e
SC
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); } &&
479c790c 16030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16032 (eval $ac_try) 2>&5
16033 ac_status=$?
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); }; } &&
16036 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
16037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16038 (eval $ac_try) 2>&5
16039 ac_status=$?
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); }; }; then
16042 ac_cv_lib_cExt_drand48=yes
16043else
16044 echo "$as_me: failed program was:" >&5
16045sed 's/^/| /' conftest.$ac_ext >&5
16046
16047ac_cv_lib_cExt_drand48=no
16048fi
ac1cb8d3
VS
16049rm -f conftest.err conftest.$ac_objext \
16050 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
16051LIBS=$ac_check_lib_save_LIBS
16052fi
16053echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
16054echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
16055if test $ac_cv_lib_cExt_drand48 = yes; then
16056 LIBS="$LIBS -lcExt"
16057fi
16058
16059 else
16060 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
16061 fi
69120ee4
VZ
16062 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
16063echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
16064if test "${wx_cv_gccversion+set}" = set; then
16065 echo $ECHO_N "(cached) $ECHO_C" >&6
16066else
16067
391a765e
VS
16068 if test "$cross_compiling" = yes; then
16069 wx_cv_gccversion="EMX2"
16070
16071else
16072 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
16073/* confdefs.h. */
16074_ACEOF
16075cat confdefs.h >>conftest.$ac_ext
16076cat >>conftest.$ac_ext <<_ACEOF
16077/* end confdefs.h. */
16078
391a765e 16079 #include <stdio.h>
a848cd7e 16080
391a765e
VS
16081 int main()
16082 {
16083 FILE *f=fopen("conftestval", "w");
16084 if (!f) exit(1);
16085 fprintf(f,
a848cd7e 16086 #if (__GNUC__ < 3)
391a765e
VS
16087 "EMX2"
16088 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
16089 "EMX3"
16090 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
16091 "Innotek5"
16092 #else
16093 "Innotek6"
a848cd7e 16094 #endif
5039a2df 16095 );
391a765e
VS
16096 exit(0);
16097 }
a848cd7e 16098
a848cd7e 16099_ACEOF
391a765e
VS
16100rm -f conftest$ac_exeext
16101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16102 (eval $ac_link) 2>&5
ac1cb8d3
VS
16103 ac_status=$?
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 16105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
16106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16107 (eval $ac_try) 2>&5
16108 ac_status=$?
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); }; }; then
391a765e 16111 wx_cv_gccversion=`cat conftestval`
a848cd7e 16112else
391a765e
VS
16113 echo "$as_me: program exited with status $ac_status" >&5
16114echo "$as_me: failed program was:" >&5
a848cd7e
SC
16115sed 's/^/| /' conftest.$ac_ext >&5
16116
391a765e
VS
16117( exit $ac_status )
16118wx_cv_gccversion="EMX2"
a848cd7e 16119fi
391a765e 16120rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 16121fi
a848cd7e
SC
16122
16123fi
16124echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
16125echo "${ECHO_T}$wx_cv_gccversion" >&6
6ba87b06
SN
16126 ac_ext=cc
16127ac_cpp='$CXXCPP $CPPFLAGS'
16128ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16129ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16130ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16131
391a765e 16132 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
16133 LIBS="$LIBS -lstdcpp"
16134 LDFLAGS="$LDFLAGS -Zsysv-signals"
16135 else
391a765e 16136 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 16137 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
16138 LDFLAGS="$LDFLAGS -Zsysv-signals"
16139 else
16140 LIBS="$LIBS -lstdc++"
16141 fi
16142 fi
94acd38e
DE
16143 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
16144 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
16145echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
16146 wxUSE_OMF=yes
ec3edcc9 16147 enable_omf=yes
a848cd7e
SC
16148 fi
16149 ;;
16150 *)
16151
95986553 16152 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
16153echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
16154if test "${ac_cv_string_strcasecmp+set}" = set; then
16155 echo $ECHO_N "(cached) $ECHO_C" >&6
16156else
16157
16158 cat >conftest.$ac_ext <<_ACEOF
16159/* confdefs.h. */
16160_ACEOF
16161cat confdefs.h >>conftest.$ac_ext
16162cat >>conftest.$ac_ext <<_ACEOF
16163/* end confdefs.h. */
16164
16165 #include <string.h>
16166
16167int
16168main ()
16169{
16170
16171 strcasecmp("foo", "bar");
16172
16173 ;
16174 return 0;
16175}
16176_ACEOF
16177rm -f conftest.$ac_objext conftest$ac_exeext
16178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 16179 (eval $ac_link) 2>conftest.er1
a848cd7e 16180 ac_status=$?
ac1cb8d3
VS
16181 grep -v '^ *+' conftest.er1 >conftest.err
16182 rm -f conftest.er1
16183 cat conftest.err >&5
a848cd7e
SC
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); } &&
479c790c 16186 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16188 (eval $ac_try) 2>&5
16189 ac_status=$?
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); }; } &&
16192 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
16193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16194 (eval $ac_try) 2>&5
16195 ac_status=$?
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); }; }; then
16198 ac_cv_string_strcasecmp=yes
16199else
16200 echo "$as_me: failed program was:" >&5
16201sed 's/^/| /' conftest.$ac_ext >&5
16202
16203ac_cv_string_strcasecmp=no
16204
16205fi
ac1cb8d3
VS
16206rm -f conftest.err conftest.$ac_objext \
16207 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
16208
16209fi
16210echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
16211echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
16212
16213 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
16214 cat >>confdefs.h <<\_ACEOF
16215#define HAVE_STRCASECMP_IN_STRING_H 1
16216_ACEOF
16217
16218 else
16219 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
16220echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
16221if test "${ac_cv_strings_strcasecmp+set}" = set; then
16222 echo $ECHO_N "(cached) $ECHO_C" >&6
16223else
16224
16225 cat >conftest.$ac_ext <<_ACEOF
16226/* confdefs.h. */
16227_ACEOF
16228cat confdefs.h >>conftest.$ac_ext
16229cat >>conftest.$ac_ext <<_ACEOF
16230/* end confdefs.h. */
16231
16232 #include <strings.h>
16233
16234int
16235main ()
16236{
16237
16238 strcasecmp("foo", "bar");
16239
16240 ;
16241 return 0;
16242}
16243_ACEOF
16244rm -f conftest.$ac_objext conftest$ac_exeext
16245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 16246 (eval $ac_link) 2>conftest.er1
a848cd7e 16247 ac_status=$?
ac1cb8d3
VS
16248 grep -v '^ *+' conftest.er1 >conftest.err
16249 rm -f conftest.er1
16250 cat conftest.err >&5
a848cd7e
SC
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); } &&
479c790c 16253 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255 (eval $ac_try) 2>&5
16256 ac_status=$?
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; } &&
16259 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
16260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16261 (eval $ac_try) 2>&5
16262 ac_status=$?
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); }; }; then
16265 ac_cv_strings_strcasecmp=yes
16266else
16267 echo "$as_me: failed program was:" >&5
16268sed 's/^/| /' conftest.$ac_ext >&5
16269
16270ac_cv_strings_strcasecmp=no
16271
16272fi
ac1cb8d3
VS
16273rm -f conftest.err conftest.$ac_objext \
16274 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
16275
16276fi
16277echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
16278echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
16279
0c3c69fc 16280 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
16281 cat >>confdefs.h <<\_ACEOF
16282#define HAVE_STRCASECMP_IN_STRINGS_H 1
16283_ACEOF
16284
16285 else
16286 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
16287echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
16288 { (exit 1); exit 1; }; }
16289 fi
16290 fi
16291
a848cd7e
SC
16292 ;;
16293esac
16294
16295
5d7b7554
VZ
16296ac_ext=cc
16297ac_cpp='$CXXCPP $CPPFLAGS'
16298ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16299ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16300ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16301echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16302echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
16303if test -z "$CXXCPP"; then
16304 if test "${ac_cv_prog_CXXCPP+set}" = set; then
16305 echo $ECHO_N "(cached) $ECHO_C" >&6
16306else
16307 # Double quotes because CXXCPP needs to be expanded
16308 for CXXCPP in "$CXX -E" "/lib/cpp"
16309 do
16310 ac_preproc_ok=false
16311for ac_cxx_preproc_warn_flag in '' yes
16312do
16313 # Use a header file that comes with gcc, so configuring glibc
16314 # with a fresh cross-compiler works.
16315 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16316 # <limits.h> exists even on freestanding compilers.
16317 # On the NeXT, cc -E runs the code through the compiler's parser,
16318 # not just through cpp. "Syntax error" is here to catch this case.
16319 cat >conftest.$ac_ext <<_ACEOF
16320/* confdefs.h. */
16321_ACEOF
16322cat confdefs.h >>conftest.$ac_ext
16323cat >>conftest.$ac_ext <<_ACEOF
16324/* end confdefs.h. */
16325#ifdef __STDC__
16326# include <limits.h>
16327#else
16328# include <assert.h>
16329#endif
16330 Syntax error
16331_ACEOF
16332if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16334 ac_status=$?
16335 grep -v '^ *+' conftest.er1 >conftest.err
16336 rm -f conftest.er1
16337 cat conftest.err >&5
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); } >/dev/null; then
16340 if test -s conftest.err; then
16341 ac_cpp_err=$ac_cxx_preproc_warn_flag
16342 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16343 else
16344 ac_cpp_err=
16345 fi
16346else
16347 ac_cpp_err=yes
16348fi
16349if test -z "$ac_cpp_err"; then
16350 :
16351else
16352 echo "$as_me: failed program was:" >&5
16353sed 's/^/| /' conftest.$ac_ext >&5
16354
16355 # Broken: fails on valid input.
16356continue
16357fi
16358rm -f conftest.err conftest.$ac_ext
16359
16360 # OK, works on sane cases. Now check whether non-existent headers
16361 # can be detected and how.
16362 cat >conftest.$ac_ext <<_ACEOF
16363/* confdefs.h. */
16364_ACEOF
16365cat confdefs.h >>conftest.$ac_ext
16366cat >>conftest.$ac_ext <<_ACEOF
16367/* end confdefs.h. */
16368#include <ac_nonexistent.h>
16369_ACEOF
16370if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16372 ac_status=$?
16373 grep -v '^ *+' conftest.er1 >conftest.err
16374 rm -f conftest.er1
16375 cat conftest.err >&5
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); } >/dev/null; then
16378 if test -s conftest.err; then
16379 ac_cpp_err=$ac_cxx_preproc_warn_flag
16380 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16381 else
16382 ac_cpp_err=
16383 fi
16384else
16385 ac_cpp_err=yes
16386fi
16387if test -z "$ac_cpp_err"; then
16388 # Broken: success on invalid input.
16389continue
16390else
16391 echo "$as_me: failed program was:" >&5
16392sed 's/^/| /' conftest.$ac_ext >&5
16393
16394 # Passes both tests.
16395ac_preproc_ok=:
16396break
16397fi
16398rm -f conftest.err conftest.$ac_ext
16399
16400done
16401# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16402rm -f conftest.err conftest.$ac_ext
16403if $ac_preproc_ok; then
16404 break
16405fi
16406
16407 done
16408 ac_cv_prog_CXXCPP=$CXXCPP
16409
16410fi
16411 CXXCPP=$ac_cv_prog_CXXCPP
16412else
16413 ac_cv_prog_CXXCPP=$CXXCPP
16414fi
16415echo "$as_me:$LINENO: result: $CXXCPP" >&5
16416echo "${ECHO_T}$CXXCPP" >&6
16417ac_preproc_ok=false
16418for ac_cxx_preproc_warn_flag in '' yes
16419do
16420 # Use a header file that comes with gcc, so configuring glibc
16421 # with a fresh cross-compiler works.
16422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16423 # <limits.h> exists even on freestanding compilers.
16424 # On the NeXT, cc -E runs the code through the compiler's parser,
16425 # not just through cpp. "Syntax error" is here to catch this case.
16426 cat >conftest.$ac_ext <<_ACEOF
16427/* confdefs.h. */
16428_ACEOF
16429cat confdefs.h >>conftest.$ac_ext
16430cat >>conftest.$ac_ext <<_ACEOF
16431/* end confdefs.h. */
16432#ifdef __STDC__
16433# include <limits.h>
16434#else
16435# include <assert.h>
16436#endif
16437 Syntax error
16438_ACEOF
16439if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16441 ac_status=$?
16442 grep -v '^ *+' conftest.er1 >conftest.err
16443 rm -f conftest.er1
16444 cat conftest.err >&5
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); } >/dev/null; then
16447 if test -s conftest.err; then
16448 ac_cpp_err=$ac_cxx_preproc_warn_flag
16449 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16450 else
16451 ac_cpp_err=
16452 fi
16453else
16454 ac_cpp_err=yes
16455fi
16456if test -z "$ac_cpp_err"; then
16457 :
16458else
16459 echo "$as_me: failed program was:" >&5
16460sed 's/^/| /' conftest.$ac_ext >&5
16461
16462 # Broken: fails on valid input.
16463continue
16464fi
16465rm -f conftest.err conftest.$ac_ext
16466
16467 # OK, works on sane cases. Now check whether non-existent headers
16468 # can be detected and how.
16469 cat >conftest.$ac_ext <<_ACEOF
16470/* confdefs.h. */
16471_ACEOF
16472cat confdefs.h >>conftest.$ac_ext
16473cat >>conftest.$ac_ext <<_ACEOF
16474/* end confdefs.h. */
16475#include <ac_nonexistent.h>
16476_ACEOF
16477if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16479 ac_status=$?
16480 grep -v '^ *+' conftest.er1 >conftest.err
16481 rm -f conftest.er1
16482 cat conftest.err >&5
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); } >/dev/null; then
16485 if test -s conftest.err; then
16486 ac_cpp_err=$ac_cxx_preproc_warn_flag
16487 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16488 else
16489 ac_cpp_err=
16490 fi
16491else
16492 ac_cpp_err=yes
16493fi
16494if test -z "$ac_cpp_err"; then
16495 # Broken: success on invalid input.
16496continue
16497else
16498 echo "$as_me: failed program was:" >&5
16499sed 's/^/| /' conftest.$ac_ext >&5
16500
16501 # Passes both tests.
16502ac_preproc_ok=:
16503break
16504fi
16505rm -f conftest.err conftest.$ac_ext
16506
16507done
16508# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16509rm -f conftest.err conftest.$ac_ext
16510if $ac_preproc_ok; then
16511 :
16512else
16513 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16514See \`config.log' for more details." >&5
16515echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16516See \`config.log' for more details." >&2;}
16517 { (exit 1); exit 1; }; }
16518fi
16519
16520ac_ext=cc
16521ac_cpp='$CXXCPP $CPPFLAGS'
16522ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16523ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16524ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16525
16526
a848cd7e
SC
16527echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16528echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16529if test "${ac_cv_header_stdc+set}" = set; then
16530 echo $ECHO_N "(cached) $ECHO_C" >&6
16531else
16532 cat >conftest.$ac_ext <<_ACEOF
16533/* confdefs.h. */
16534_ACEOF
16535cat confdefs.h >>conftest.$ac_ext
16536cat >>conftest.$ac_ext <<_ACEOF
16537/* end confdefs.h. */
16538#include <stdlib.h>
16539#include <stdarg.h>
16540#include <string.h>
16541#include <float.h>
16542
16543int
16544main ()
16545{
16546
16547 ;
16548 return 0;
16549}
16550_ACEOF
16551rm -f conftest.$ac_objext
16552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16553 (eval $ac_compile) 2>conftest.er1
a848cd7e 16554 ac_status=$?
ac1cb8d3
VS
16555 grep -v '^ *+' conftest.er1 >conftest.err
16556 rm -f conftest.er1
16557 cat conftest.err >&5
a848cd7e
SC
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); } &&
479c790c 16560 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16563 ac_status=$?
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; } &&
16566 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568 (eval $ac_try) 2>&5
16569 ac_status=$?
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; }; then
16572 ac_cv_header_stdc=yes
16573else
16574 echo "$as_me: failed program was:" >&5
16575sed 's/^/| /' conftest.$ac_ext >&5
16576
16577ac_cv_header_stdc=no
16578fi
ac1cb8d3 16579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16580
16581if test $ac_cv_header_stdc = yes; then
16582 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16583 cat >conftest.$ac_ext <<_ACEOF
16584/* confdefs.h. */
16585_ACEOF
16586cat confdefs.h >>conftest.$ac_ext
16587cat >>conftest.$ac_ext <<_ACEOF
16588/* end confdefs.h. */
16589#include <string.h>
16590
16591_ACEOF
16592if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16593 $EGREP "memchr" >/dev/null 2>&1; then
16594 :
16595else
16596 ac_cv_header_stdc=no
16597fi
16598rm -f conftest*
16599
16600fi
16601
16602if test $ac_cv_header_stdc = yes; then
16603 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16604 cat >conftest.$ac_ext <<_ACEOF
16605/* confdefs.h. */
16606_ACEOF
16607cat confdefs.h >>conftest.$ac_ext
16608cat >>conftest.$ac_ext <<_ACEOF
16609/* end confdefs.h. */
16610#include <stdlib.h>
16611
16612_ACEOF
16613if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16614 $EGREP "free" >/dev/null 2>&1; then
16615 :
16616else
16617 ac_cv_header_stdc=no
16618fi
16619rm -f conftest*
16620
16621fi
16622
16623if test $ac_cv_header_stdc = yes; then
16624 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16625 if test "$cross_compiling" = yes; then
16626 :
16627else
16628 cat >conftest.$ac_ext <<_ACEOF
16629/* confdefs.h. */
16630_ACEOF
16631cat confdefs.h >>conftest.$ac_ext
16632cat >>conftest.$ac_ext <<_ACEOF
16633/* end confdefs.h. */
16634#include <ctype.h>
16635#if ((' ' & 0x0FF) == 0x020)
16636# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16637# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16638#else
16639# define ISLOWER(c) \
ac1cb8d3
VS
16640 (('a' <= (c) && (c) <= 'i') \
16641 || ('j' <= (c) && (c) <= 'r') \
16642 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
16643# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16644#endif
16645
16646#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16647int
16648main ()
16649{
16650 int i;
16651 for (i = 0; i < 256; i++)
16652 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 16653 || toupper (i) != TOUPPER (i))
a848cd7e
SC
16654 exit(2);
16655 exit (0);
16656}
16657_ACEOF
16658rm -f conftest$ac_exeext
16659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16660 (eval $ac_link) 2>&5
16661 ac_status=$?
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16665 (eval $ac_try) 2>&5
16666 ac_status=$?
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); }; }; then
16669 :
16670else
16671 echo "$as_me: program exited with status $ac_status" >&5
16672echo "$as_me: failed program was:" >&5
16673sed 's/^/| /' conftest.$ac_ext >&5
16674
16675( exit $ac_status )
16676ac_cv_header_stdc=no
16677fi
ac1cb8d3 16678rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16679fi
16680fi
16681fi
16682echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16683echo "${ECHO_T}$ac_cv_header_stdc" >&6
16684if test $ac_cv_header_stdc = yes; then
16685
16686cat >>confdefs.h <<\_ACEOF
16687#define STDC_HEADERS 1
16688_ACEOF
16689
16690fi
16691
16692# On IRIX 5.3, sys/types and inttypes.h are conflicting.
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 16703 inttypes.h stdint.h unistd.h
a848cd7e
SC
16704do
16705as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16706echo "$as_me:$LINENO: checking for $ac_header" >&5
16707echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16708if eval "test \"\${$as_ac_Header+set}\" = set"; then
16709 echo $ECHO_N "(cached) $ECHO_C" >&6
16710else
16711 cat >conftest.$ac_ext <<_ACEOF
16712/* confdefs.h. */
16713_ACEOF
16714cat confdefs.h >>conftest.$ac_ext
16715cat >>conftest.$ac_ext <<_ACEOF
16716/* end confdefs.h. */
16717$ac_includes_default
16718
16719#include <$ac_header>
16720_ACEOF
16721rm -f conftest.$ac_objext
16722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16723 (eval $ac_compile) 2>conftest.er1
a848cd7e 16724 ac_status=$?
ac1cb8d3
VS
16725 grep -v '^ *+' conftest.er1 >conftest.err
16726 rm -f conftest.er1
16727 cat conftest.err >&5
a848cd7e
SC
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); } &&
479c790c 16730 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16732 (eval $ac_try) 2>&5
16733 ac_status=$?
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; } &&
16736 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738 (eval $ac_try) 2>&5
16739 ac_status=$?
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; }; then
16742 eval "$as_ac_Header=yes"
16743else
16744 echo "$as_me: failed program was:" >&5
16745sed 's/^/| /' conftest.$ac_ext >&5
16746
16747eval "$as_ac_Header=no"
16748fi
ac1cb8d3 16749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16750fi
16751echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16752echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16753if test `eval echo '${'$as_ac_Header'}'` = yes; then
16754 cat >>confdefs.h <<_ACEOF
16755#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16756_ACEOF
16757
16758fi
16759
16760done
16761
16762
16763
16764for ac_header in stdlib.h
16765do
16766as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16767if eval "test \"\${$as_ac_Header+set}\" = set"; then
16768 echo "$as_me:$LINENO: checking for $ac_header" >&5
16769echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16770if eval "test \"\${$as_ac_Header+set}\" = set"; then
16771 echo $ECHO_N "(cached) $ECHO_C" >&6
16772fi
16773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16774echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16775else
16776 # Is the header compilable?
16777echo "$as_me:$LINENO: checking $ac_header usability" >&5
16778echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16779cat >conftest.$ac_ext <<_ACEOF
16780/* confdefs.h. */
16781_ACEOF
16782cat confdefs.h >>conftest.$ac_ext
16783cat >>conftest.$ac_ext <<_ACEOF
16784/* end confdefs.h. */
16785$ac_includes_default
16786#include <$ac_header>
16787_ACEOF
16788rm -f conftest.$ac_objext
16789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16790 (eval $ac_compile) 2>conftest.er1
a848cd7e 16791 ac_status=$?
ac1cb8d3
VS
16792 grep -v '^ *+' conftest.er1 >conftest.err
16793 rm -f conftest.er1
16794 cat conftest.err >&5
a848cd7e
SC
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); } &&
479c790c 16797 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16799 (eval $ac_try) 2>&5
16800 ac_status=$?
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); }; } &&
16803 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805 (eval $ac_try) 2>&5
16806 ac_status=$?
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; }; then
16809 ac_header_compiler=yes
16810else
16811 echo "$as_me: failed program was:" >&5
16812sed 's/^/| /' conftest.$ac_ext >&5
16813
16814ac_header_compiler=no
16815fi
ac1cb8d3 16816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16817echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16818echo "${ECHO_T}$ac_header_compiler" >&6
16819
16820# Is the header present?
16821echo "$as_me:$LINENO: checking $ac_header presence" >&5
16822echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16823cat >conftest.$ac_ext <<_ACEOF
16824/* confdefs.h. */
16825_ACEOF
16826cat confdefs.h >>conftest.$ac_ext
16827cat >>conftest.$ac_ext <<_ACEOF
16828/* end confdefs.h. */
16829#include <$ac_header>
16830_ACEOF
16831if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16833 ac_status=$?
16834 grep -v '^ *+' conftest.er1 >conftest.err
16835 rm -f conftest.er1
16836 cat conftest.err >&5
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); } >/dev/null; then
16839 if test -s conftest.err; then
5d7b7554
VZ
16840 ac_cpp_err=$ac_cxx_preproc_warn_flag
16841 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16842 else
16843 ac_cpp_err=
16844 fi
16845else
16846 ac_cpp_err=yes
16847fi
16848if test -z "$ac_cpp_err"; then
16849 ac_header_preproc=yes
16850else
16851 echo "$as_me: failed program was:" >&5
16852sed 's/^/| /' conftest.$ac_ext >&5
16853
16854 ac_header_preproc=no
16855fi
16856rm -f conftest.err conftest.$ac_ext
16857echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16858echo "${ECHO_T}$ac_header_preproc" >&6
16859
16860# So? What about this header?
5d7b7554 16861case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16862 yes:no: )
a848cd7e
SC
16863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16864echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16866echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16867 ac_header_preproc=yes
a848cd7e 16868 ;;
ac1cb8d3 16869 no:yes:* )
a848cd7e
SC
16870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16871echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16873echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16874 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16875echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16876 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16877echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16879echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16880 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16881echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16882 (
16883 cat <<\_ASBOX
ac1cb8d3
VS
16884## ----------------------------------------- ##
16885## Report this to wx-dev@lists.wxwidgets.org ##
16886## ----------------------------------------- ##
a848cd7e
SC
16887_ASBOX
16888 ) |
16889 sed "s/^/$as_me: WARNING: /" >&2
16890 ;;
16891esac
16892echo "$as_me:$LINENO: checking for $ac_header" >&5
16893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16894if eval "test \"\${$as_ac_Header+set}\" = set"; then
16895 echo $ECHO_N "(cached) $ECHO_C" >&6
16896else
ac1cb8d3 16897 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16898fi
16899echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16900echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16901
16902fi
16903if test `eval echo '${'$as_ac_Header'}'` = yes; then
16904 cat >>confdefs.h <<_ACEOF
16905#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16906_ACEOF
16907
16908fi
16909
16910done
16911
16912
16913for ac_header in malloc.h
16914do
16915as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16916if eval "test \"\${$as_ac_Header+set}\" = set"; then
16917 echo "$as_me:$LINENO: checking for $ac_header" >&5
16918echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16919if eval "test \"\${$as_ac_Header+set}\" = set"; then
16920 echo $ECHO_N "(cached) $ECHO_C" >&6
16921fi
16922echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16923echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16924else
16925 # Is the header compilable?
16926echo "$as_me:$LINENO: checking $ac_header usability" >&5
16927echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16928cat >conftest.$ac_ext <<_ACEOF
16929/* confdefs.h. */
16930_ACEOF
16931cat confdefs.h >>conftest.$ac_ext
16932cat >>conftest.$ac_ext <<_ACEOF
16933/* end confdefs.h. */
16934$ac_includes_default
16935#include <$ac_header>
16936_ACEOF
16937rm -f conftest.$ac_objext
16938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16939 (eval $ac_compile) 2>conftest.er1
a848cd7e 16940 ac_status=$?
ac1cb8d3
VS
16941 grep -v '^ *+' conftest.er1 >conftest.err
16942 rm -f conftest.er1
16943 cat conftest.err >&5
a848cd7e
SC
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); } &&
479c790c 16946 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16948 (eval $ac_try) 2>&5
16949 ac_status=$?
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); }; } &&
16952 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16954 (eval $ac_try) 2>&5
16955 ac_status=$?
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); }; }; then
16958 ac_header_compiler=yes
16959else
16960 echo "$as_me: failed program was:" >&5
16961sed 's/^/| /' conftest.$ac_ext >&5
16962
16963ac_header_compiler=no
16964fi
ac1cb8d3 16965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16966echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16967echo "${ECHO_T}$ac_header_compiler" >&6
16968
16969# Is the header present?
16970echo "$as_me:$LINENO: checking $ac_header presence" >&5
16971echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16972cat >conftest.$ac_ext <<_ACEOF
16973/* confdefs.h. */
16974_ACEOF
16975cat confdefs.h >>conftest.$ac_ext
16976cat >>conftest.$ac_ext <<_ACEOF
16977/* end confdefs.h. */
16978#include <$ac_header>
16979_ACEOF
16980if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16982 ac_status=$?
16983 grep -v '^ *+' conftest.er1 >conftest.err
16984 rm -f conftest.er1
16985 cat conftest.err >&5
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); } >/dev/null; then
16988 if test -s conftest.err; then
5d7b7554
VZ
16989 ac_cpp_err=$ac_cxx_preproc_warn_flag
16990 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16991 else
16992 ac_cpp_err=
16993 fi
16994else
16995 ac_cpp_err=yes
16996fi
16997if test -z "$ac_cpp_err"; then
16998 ac_header_preproc=yes
16999else
17000 echo "$as_me: failed program was:" >&5
17001sed 's/^/| /' conftest.$ac_ext >&5
17002
17003 ac_header_preproc=no
17004fi
17005rm -f conftest.err conftest.$ac_ext
17006echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17007echo "${ECHO_T}$ac_header_preproc" >&6
17008
17009# So? What about this header?
5d7b7554 17010case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17011 yes:no: )
a848cd7e
SC
17012 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17013echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17015echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17016 ac_header_preproc=yes
a848cd7e 17017 ;;
ac1cb8d3 17018 no:yes:* )
a848cd7e
SC
17019 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17020echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17021 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17022echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17023 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17024echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17025 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17026echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17028echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17029 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17030echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17031 (
17032 cat <<\_ASBOX
ac1cb8d3
VS
17033## ----------------------------------------- ##
17034## Report this to wx-dev@lists.wxwidgets.org ##
17035## ----------------------------------------- ##
a848cd7e
SC
17036_ASBOX
17037 ) |
17038 sed "s/^/$as_me: WARNING: /" >&2
17039 ;;
17040esac
17041echo "$as_me:$LINENO: checking for $ac_header" >&5
17042echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17043if eval "test \"\${$as_ac_Header+set}\" = set"; then
17044 echo $ECHO_N "(cached) $ECHO_C" >&6
17045else
ac1cb8d3 17046 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17047fi
17048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17049echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17050
17051fi
17052if test `eval echo '${'$as_ac_Header'}'` = yes; then
17053 cat >>confdefs.h <<_ACEOF
17054#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17055_ACEOF
17056
17057fi
17058
17059done
17060
17061
17062for ac_header in unistd.h
17063do
17064as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17065if eval "test \"\${$as_ac_Header+set}\" = set"; then
17066 echo "$as_me:$LINENO: checking for $ac_header" >&5
17067echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17068if eval "test \"\${$as_ac_Header+set}\" = set"; then
17069 echo $ECHO_N "(cached) $ECHO_C" >&6
17070fi
17071echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17072echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17073else
17074 # Is the header compilable?
17075echo "$as_me:$LINENO: checking $ac_header usability" >&5
17076echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17077cat >conftest.$ac_ext <<_ACEOF
17078/* confdefs.h. */
17079_ACEOF
17080cat confdefs.h >>conftest.$ac_ext
17081cat >>conftest.$ac_ext <<_ACEOF
17082/* end confdefs.h. */
17083$ac_includes_default
17084#include <$ac_header>
17085_ACEOF
17086rm -f conftest.$ac_objext
17087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17088 (eval $ac_compile) 2>conftest.er1
a848cd7e 17089 ac_status=$?
ac1cb8d3
VS
17090 grep -v '^ *+' conftest.er1 >conftest.err
17091 rm -f conftest.er1
17092 cat conftest.err >&5
a848cd7e
SC
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); } &&
479c790c 17095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17097 (eval $ac_try) 2>&5
17098 ac_status=$?
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; } &&
17101 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17103 (eval $ac_try) 2>&5
17104 ac_status=$?
17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); }; }; then
17107 ac_header_compiler=yes
17108else
17109 echo "$as_me: failed program was:" >&5
17110sed 's/^/| /' conftest.$ac_ext >&5
17111
17112ac_header_compiler=no
17113fi
ac1cb8d3 17114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17115echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17116echo "${ECHO_T}$ac_header_compiler" >&6
17117
17118# Is the header present?
17119echo "$as_me:$LINENO: checking $ac_header presence" >&5
17120echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17121cat >conftest.$ac_ext <<_ACEOF
17122/* confdefs.h. */
17123_ACEOF
17124cat confdefs.h >>conftest.$ac_ext
17125cat >>conftest.$ac_ext <<_ACEOF
17126/* end confdefs.h. */
17127#include <$ac_header>
17128_ACEOF
17129if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17131 ac_status=$?
17132 grep -v '^ *+' conftest.er1 >conftest.err
17133 rm -f conftest.er1
17134 cat conftest.err >&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); } >/dev/null; then
17137 if test -s conftest.err; then
5d7b7554
VZ
17138 ac_cpp_err=$ac_cxx_preproc_warn_flag
17139 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17140 else
17141 ac_cpp_err=
17142 fi
17143else
17144 ac_cpp_err=yes
17145fi
17146if test -z "$ac_cpp_err"; then
17147 ac_header_preproc=yes
17148else
17149 echo "$as_me: failed program was:" >&5
17150sed 's/^/| /' conftest.$ac_ext >&5
17151
17152 ac_header_preproc=no
17153fi
17154rm -f conftest.err conftest.$ac_ext
17155echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17156echo "${ECHO_T}$ac_header_preproc" >&6
17157
17158# So? What about this header?
5d7b7554 17159case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17160 yes:no: )
a848cd7e
SC
17161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17162echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17164echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17165 ac_header_preproc=yes
a848cd7e 17166 ;;
ac1cb8d3 17167 no:yes:* )
a848cd7e
SC
17168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17169echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17171echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17173echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17175echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17177echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17179echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17180 (
17181 cat <<\_ASBOX
ac1cb8d3
VS
17182## ----------------------------------------- ##
17183## Report this to wx-dev@lists.wxwidgets.org ##
17184## ----------------------------------------- ##
a848cd7e
SC
17185_ASBOX
17186 ) |
17187 sed "s/^/$as_me: WARNING: /" >&2
17188 ;;
17189esac
17190echo "$as_me:$LINENO: checking for $ac_header" >&5
17191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17192if eval "test \"\${$as_ac_Header+set}\" = set"; then
17193 echo $ECHO_N "(cached) $ECHO_C" >&6
17194else
ac1cb8d3 17195 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17196fi
17197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17198echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17199
17200fi
17201if test `eval echo '${'$as_ac_Header'}'` = yes; then
17202 cat >>confdefs.h <<_ACEOF
17203#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17204_ACEOF
17205
17206fi
17207
17208done
17209
17210
17211for ac_header in wchar.h
17212do
17213as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17214if eval "test \"\${$as_ac_Header+set}\" = set"; then
17215 echo "$as_me:$LINENO: checking for $ac_header" >&5
17216echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17217if eval "test \"\${$as_ac_Header+set}\" = set"; then
17218 echo $ECHO_N "(cached) $ECHO_C" >&6
17219fi
17220echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17221echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17222else
17223 # Is the header compilable?
17224echo "$as_me:$LINENO: checking $ac_header usability" >&5
17225echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17226cat >conftest.$ac_ext <<_ACEOF
17227/* confdefs.h. */
17228_ACEOF
17229cat confdefs.h >>conftest.$ac_ext
17230cat >>conftest.$ac_ext <<_ACEOF
17231/* end confdefs.h. */
17232$ac_includes_default
17233#include <$ac_header>
17234_ACEOF
17235rm -f conftest.$ac_objext
17236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17237 (eval $ac_compile) 2>conftest.er1
a848cd7e 17238 ac_status=$?
ac1cb8d3
VS
17239 grep -v '^ *+' conftest.er1 >conftest.err
17240 rm -f conftest.er1
17241 cat conftest.err >&5
a848cd7e
SC
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); } &&
479c790c 17244 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17246 (eval $ac_try) 2>&5
17247 ac_status=$?
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); }; } &&
17250 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252 (eval $ac_try) 2>&5
17253 ac_status=$?
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; }; then
17256 ac_header_compiler=yes
17257else
17258 echo "$as_me: failed program was:" >&5
17259sed 's/^/| /' conftest.$ac_ext >&5
17260
17261ac_header_compiler=no
17262fi
ac1cb8d3 17263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17264echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17265echo "${ECHO_T}$ac_header_compiler" >&6
17266
17267# Is the header present?
17268echo "$as_me:$LINENO: checking $ac_header presence" >&5
17269echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17270cat >conftest.$ac_ext <<_ACEOF
17271/* confdefs.h. */
17272_ACEOF
17273cat confdefs.h >>conftest.$ac_ext
17274cat >>conftest.$ac_ext <<_ACEOF
17275/* end confdefs.h. */
17276#include <$ac_header>
17277_ACEOF
17278if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17280 ac_status=$?
17281 grep -v '^ *+' conftest.er1 >conftest.err
17282 rm -f conftest.er1
17283 cat conftest.err >&5
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); } >/dev/null; then
17286 if test -s conftest.err; then
5d7b7554
VZ
17287 ac_cpp_err=$ac_cxx_preproc_warn_flag
17288 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17289 else
17290 ac_cpp_err=
17291 fi
17292else
17293 ac_cpp_err=yes
17294fi
17295if test -z "$ac_cpp_err"; then
17296 ac_header_preproc=yes
17297else
17298 echo "$as_me: failed program was:" >&5
17299sed 's/^/| /' conftest.$ac_ext >&5
17300
17301 ac_header_preproc=no
17302fi
17303rm -f conftest.err conftest.$ac_ext
17304echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17305echo "${ECHO_T}$ac_header_preproc" >&6
17306
17307# So? What about this header?
5d7b7554 17308case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17309 yes:no: )
a848cd7e
SC
17310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17311echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17313echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17314 ac_header_preproc=yes
a848cd7e 17315 ;;
ac1cb8d3 17316 no:yes:* )
a848cd7e
SC
17317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17318echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17320echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17322echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17324echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17326echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17328echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17329 (
17330 cat <<\_ASBOX
ac1cb8d3
VS
17331## ----------------------------------------- ##
17332## Report this to wx-dev@lists.wxwidgets.org ##
17333## ----------------------------------------- ##
a848cd7e
SC
17334_ASBOX
17335 ) |
17336 sed "s/^/$as_me: WARNING: /" >&2
17337 ;;
17338esac
17339echo "$as_me:$LINENO: checking for $ac_header" >&5
17340echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17341if eval "test \"\${$as_ac_Header+set}\" = set"; then
17342 echo $ECHO_N "(cached) $ECHO_C" >&6
17343else
ac1cb8d3 17344 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17345fi
17346echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17347echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17348
17349fi
17350if test `eval echo '${'$as_ac_Header'}'` = yes; then
17351 cat >>confdefs.h <<_ACEOF
17352#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17353_ACEOF
17354
17355fi
17356
17357done
17358
17359
17360if test "$ac_cv_header_wchar_h" != "yes"; then
17361
17362for ac_header in wcstr.h
17363do
17364as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17365if eval "test \"\${$as_ac_Header+set}\" = set"; then
17366 echo "$as_me:$LINENO: checking for $ac_header" >&5
17367echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17368if eval "test \"\${$as_ac_Header+set}\" = set"; then
17369 echo $ECHO_N "(cached) $ECHO_C" >&6
17370fi
17371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17372echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17373else
17374 # Is the header compilable?
17375echo "$as_me:$LINENO: checking $ac_header usability" >&5
17376echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17377cat >conftest.$ac_ext <<_ACEOF
17378/* confdefs.h. */
17379_ACEOF
17380cat confdefs.h >>conftest.$ac_ext
17381cat >>conftest.$ac_ext <<_ACEOF
17382/* end confdefs.h. */
17383$ac_includes_default
17384#include <$ac_header>
17385_ACEOF
17386rm -f conftest.$ac_objext
17387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17388 (eval $ac_compile) 2>conftest.er1
a848cd7e 17389 ac_status=$?
ac1cb8d3
VS
17390 grep -v '^ *+' conftest.er1 >conftest.err
17391 rm -f conftest.er1
17392 cat conftest.err >&5
a848cd7e
SC
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); } &&
479c790c 17395 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17397 (eval $ac_try) 2>&5
17398 ac_status=$?
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); }; } &&
17401 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17403 (eval $ac_try) 2>&5
17404 ac_status=$?
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; }; then
17407 ac_header_compiler=yes
17408else
17409 echo "$as_me: failed program was:" >&5
17410sed 's/^/| /' conftest.$ac_ext >&5
17411
17412ac_header_compiler=no
17413fi
ac1cb8d3 17414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17415echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17416echo "${ECHO_T}$ac_header_compiler" >&6
17417
17418# Is the header present?
17419echo "$as_me:$LINENO: checking $ac_header presence" >&5
17420echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17421cat >conftest.$ac_ext <<_ACEOF
17422/* confdefs.h. */
17423_ACEOF
17424cat confdefs.h >>conftest.$ac_ext
17425cat >>conftest.$ac_ext <<_ACEOF
17426/* end confdefs.h. */
17427#include <$ac_header>
17428_ACEOF
17429if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17431 ac_status=$?
17432 grep -v '^ *+' conftest.er1 >conftest.err
17433 rm -f conftest.er1
17434 cat conftest.err >&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); } >/dev/null; then
17437 if test -s conftest.err; then
5d7b7554
VZ
17438 ac_cpp_err=$ac_cxx_preproc_warn_flag
17439 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17440 else
17441 ac_cpp_err=
17442 fi
17443else
17444 ac_cpp_err=yes
17445fi
17446if test -z "$ac_cpp_err"; then
17447 ac_header_preproc=yes
17448else
17449 echo "$as_me: failed program was:" >&5
17450sed 's/^/| /' conftest.$ac_ext >&5
17451
17452 ac_header_preproc=no
17453fi
17454rm -f conftest.err conftest.$ac_ext
17455echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17456echo "${ECHO_T}$ac_header_preproc" >&6
17457
17458# So? What about this header?
5d7b7554 17459case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17460 yes:no: )
a848cd7e
SC
17461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17462echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17464echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17465 ac_header_preproc=yes
a848cd7e 17466 ;;
ac1cb8d3 17467 no:yes:* )
a848cd7e
SC
17468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17469echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17471echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17473echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17475echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17477echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17479echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17480 (
17481 cat <<\_ASBOX
ac1cb8d3
VS
17482## ----------------------------------------- ##
17483## Report this to wx-dev@lists.wxwidgets.org ##
17484## ----------------------------------------- ##
a848cd7e
SC
17485_ASBOX
17486 ) |
17487 sed "s/^/$as_me: WARNING: /" >&2
17488 ;;
17489esac
17490echo "$as_me:$LINENO: checking for $ac_header" >&5
17491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17492if eval "test \"\${$as_ac_Header+set}\" = set"; then
17493 echo $ECHO_N "(cached) $ECHO_C" >&6
17494else
ac1cb8d3 17495 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17496fi
17497echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17498echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17499
17500fi
17501if test `eval echo '${'$as_ac_Header'}'` = yes; then
17502 cat >>confdefs.h <<_ACEOF
17503#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17504_ACEOF
17505
17506fi
17507
17508done
17509
17510fi
17511
17512
17513for ac_header in fnmatch.h
17514do
17515as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17516if eval "test \"\${$as_ac_Header+set}\" = set"; then
17517 echo "$as_me:$LINENO: checking for $ac_header" >&5
17518echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17519if eval "test \"\${$as_ac_Header+set}\" = set"; then
17520 echo $ECHO_N "(cached) $ECHO_C" >&6
17521fi
17522echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17523echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17524else
17525 # Is the header compilable?
17526echo "$as_me:$LINENO: checking $ac_header usability" >&5
17527echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17528cat >conftest.$ac_ext <<_ACEOF
17529/* confdefs.h. */
17530_ACEOF
17531cat confdefs.h >>conftest.$ac_ext
17532cat >>conftest.$ac_ext <<_ACEOF
17533/* end confdefs.h. */
17534$ac_includes_default
17535#include <$ac_header>
17536_ACEOF
17537rm -f conftest.$ac_objext
17538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17539 (eval $ac_compile) 2>conftest.er1
a848cd7e 17540 ac_status=$?
ac1cb8d3
VS
17541 grep -v '^ *+' conftest.er1 >conftest.err
17542 rm -f conftest.er1
17543 cat conftest.err >&5
a848cd7e
SC
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } &&
479c790c 17546 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17548 (eval $ac_try) 2>&5
17549 ac_status=$?
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); }; } &&
17552 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17554 (eval $ac_try) 2>&5
17555 ac_status=$?
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; }; then
17558 ac_header_compiler=yes
17559else
17560 echo "$as_me: failed program was:" >&5
17561sed 's/^/| /' conftest.$ac_ext >&5
17562
17563ac_header_compiler=no
17564fi
ac1cb8d3 17565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17566echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17567echo "${ECHO_T}$ac_header_compiler" >&6
17568
17569# Is the header present?
17570echo "$as_me:$LINENO: checking $ac_header presence" >&5
17571echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17572cat >conftest.$ac_ext <<_ACEOF
17573/* confdefs.h. */
17574_ACEOF
17575cat confdefs.h >>conftest.$ac_ext
17576cat >>conftest.$ac_ext <<_ACEOF
17577/* end confdefs.h. */
17578#include <$ac_header>
17579_ACEOF
17580if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17582 ac_status=$?
17583 grep -v '^ *+' conftest.er1 >conftest.err
17584 rm -f conftest.er1
17585 cat conftest.err >&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); } >/dev/null; then
17588 if test -s conftest.err; then
5d7b7554
VZ
17589 ac_cpp_err=$ac_cxx_preproc_warn_flag
17590 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17591 else
17592 ac_cpp_err=
17593 fi
17594else
17595 ac_cpp_err=yes
17596fi
17597if test -z "$ac_cpp_err"; then
17598 ac_header_preproc=yes
17599else
17600 echo "$as_me: failed program was:" >&5
17601sed 's/^/| /' conftest.$ac_ext >&5
17602
17603 ac_header_preproc=no
17604fi
17605rm -f conftest.err conftest.$ac_ext
17606echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17607echo "${ECHO_T}$ac_header_preproc" >&6
17608
17609# So? What about this header?
5d7b7554 17610case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17611 yes:no: )
a848cd7e
SC
17612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17613echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17615echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17616 ac_header_preproc=yes
a848cd7e 17617 ;;
ac1cb8d3 17618 no:yes:* )
a848cd7e
SC
17619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17620echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17622echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17623 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17624echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17625 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17626echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17628echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17629 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17630echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17631 (
17632 cat <<\_ASBOX
ac1cb8d3
VS
17633## ----------------------------------------- ##
17634## Report this to wx-dev@lists.wxwidgets.org ##
17635## ----------------------------------------- ##
a848cd7e
SC
17636_ASBOX
17637 ) |
17638 sed "s/^/$as_me: WARNING: /" >&2
17639 ;;
17640esac
17641echo "$as_me:$LINENO: checking for $ac_header" >&5
17642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17643if eval "test \"\${$as_ac_Header+set}\" = set"; then
17644 echo $ECHO_N "(cached) $ECHO_C" >&6
17645else
ac1cb8d3 17646 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17647fi
17648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17649echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17650
17651fi
17652if test `eval echo '${'$as_ac_Header'}'` = yes; then
17653 cat >>confdefs.h <<_ACEOF
17654#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17655_ACEOF
17656
17657fi
17658
17659done
17660
17661
a848cd7e
SC
17662
17663for ac_header in langinfo.h
17664do
17665as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17666if eval "test \"\${$as_ac_Header+set}\" = set"; then
17667 echo "$as_me:$LINENO: checking for $ac_header" >&5
17668echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17669if eval "test \"\${$as_ac_Header+set}\" = set"; then
17670 echo $ECHO_N "(cached) $ECHO_C" >&6
17671fi
17672echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17673echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17674else
17675 # Is the header compilable?
17676echo "$as_me:$LINENO: checking $ac_header usability" >&5
17677echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17678cat >conftest.$ac_ext <<_ACEOF
17679/* confdefs.h. */
17680_ACEOF
17681cat confdefs.h >>conftest.$ac_ext
17682cat >>conftest.$ac_ext <<_ACEOF
17683/* end confdefs.h. */
17684$ac_includes_default
17685#include <$ac_header>
17686_ACEOF
17687rm -f conftest.$ac_objext
17688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17689 (eval $ac_compile) 2>conftest.er1
a848cd7e 17690 ac_status=$?
ac1cb8d3
VS
17691 grep -v '^ *+' conftest.er1 >conftest.err
17692 rm -f conftest.er1
17693 cat conftest.err >&5
a848cd7e
SC
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); } &&
479c790c 17696 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698 (eval $ac_try) 2>&5
17699 ac_status=$?
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); }; } &&
17702 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704 (eval $ac_try) 2>&5
17705 ac_status=$?
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); }; }; then
17708 ac_header_compiler=yes
17709else
17710 echo "$as_me: failed program was:" >&5
17711sed 's/^/| /' conftest.$ac_ext >&5
17712
17713ac_header_compiler=no
17714fi
ac1cb8d3 17715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17716echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17717echo "${ECHO_T}$ac_header_compiler" >&6
17718
17719# Is the header present?
17720echo "$as_me:$LINENO: checking $ac_header presence" >&5
17721echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17722cat >conftest.$ac_ext <<_ACEOF
17723/* confdefs.h. */
17724_ACEOF
17725cat confdefs.h >>conftest.$ac_ext
17726cat >>conftest.$ac_ext <<_ACEOF
17727/* end confdefs.h. */
17728#include <$ac_header>
17729_ACEOF
17730if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17731 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17732 ac_status=$?
17733 grep -v '^ *+' conftest.er1 >conftest.err
17734 rm -f conftest.er1
17735 cat conftest.err >&5
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); } >/dev/null; then
17738 if test -s conftest.err; then
5d7b7554
VZ
17739 ac_cpp_err=$ac_cxx_preproc_warn_flag
17740 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17741 else
17742 ac_cpp_err=
17743 fi
17744else
17745 ac_cpp_err=yes
17746fi
17747if test -z "$ac_cpp_err"; then
17748 ac_header_preproc=yes
17749else
17750 echo "$as_me: failed program was:" >&5
17751sed 's/^/| /' conftest.$ac_ext >&5
17752
17753 ac_header_preproc=no
17754fi
17755rm -f conftest.err conftest.$ac_ext
17756echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17757echo "${ECHO_T}$ac_header_preproc" >&6
17758
17759# So? What about this header?
5d7b7554 17760case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17761 yes:no: )
a848cd7e
SC
17762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17763echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17765echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17766 ac_header_preproc=yes
a848cd7e 17767 ;;
ac1cb8d3 17768 no:yes:* )
a848cd7e
SC
17769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17770echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17772echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17774echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17776echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17778echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17780echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17781 (
17782 cat <<\_ASBOX
ac1cb8d3
VS
17783## ----------------------------------------- ##
17784## Report this to wx-dev@lists.wxwidgets.org ##
17785## ----------------------------------------- ##
a848cd7e
SC
17786_ASBOX
17787 ) |
17788 sed "s/^/$as_me: WARNING: /" >&2
17789 ;;
17790esac
17791echo "$as_me:$LINENO: checking for $ac_header" >&5
17792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17793if eval "test \"\${$as_ac_Header+set}\" = set"; then
17794 echo $ECHO_N "(cached) $ECHO_C" >&6
17795else
ac1cb8d3 17796 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17797fi
17798echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17799echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17800
17801fi
17802if test `eval echo '${'$as_ac_Header'}'` = yes; then
17803 cat >>confdefs.h <<_ACEOF
17804#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17805_ACEOF
17806
17807fi
17808
17809done
17810
17811
17812case "${host}" in
17813 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
17814 if test $ac_cv_header_langinfo_h = "yes" \
17815 -a \( "$wx_cv_gccversion" = "EMX2" \
17816 -o "$wx_cv_gccversion" = "EMX3" \
17817 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
17818 LIBS="$LIBS -lintl"
17819 fi
17820 ;;
17821esac
17822
bc023abb
MW
17823if test "$USE_UNIX" = 1 ; then
17824
17825for ac_header in sys/select.h
17826do
17827as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17828if eval "test \"\${$as_ac_Header+set}\" = set"; then
17829 echo "$as_me:$LINENO: checking for $ac_header" >&5
17830echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17831if eval "test \"\${$as_ac_Header+set}\" = set"; then
17832 echo $ECHO_N "(cached) $ECHO_C" >&6
17833fi
17834echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17835echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17836else
17837 # Is the header compilable?
17838echo "$as_me:$LINENO: checking $ac_header usability" >&5
17839echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17840cat >conftest.$ac_ext <<_ACEOF
17841/* confdefs.h. */
17842_ACEOF
17843cat confdefs.h >>conftest.$ac_ext
17844cat >>conftest.$ac_ext <<_ACEOF
17845/* end confdefs.h. */
17846$ac_includes_default
17847#include <$ac_header>
17848_ACEOF
17849rm -f conftest.$ac_objext
17850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17851 (eval $ac_compile) 2>conftest.er1
17852 ac_status=$?
17853 grep -v '^ *+' conftest.er1 >conftest.err
17854 rm -f conftest.er1
17855 cat conftest.err >&5
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); } &&
479c790c 17858 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
bc023abb
MW
17859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17860 (eval $ac_try) 2>&5
17861 ac_status=$?
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); }; } &&
17864 { ac_try='test -s conftest.$ac_objext'
17865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17866 (eval $ac_try) 2>&5
17867 ac_status=$?
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); }; }; then
17870 ac_header_compiler=yes
17871else
17872 echo "$as_me: failed program was:" >&5
17873sed 's/^/| /' conftest.$ac_ext >&5
17874
17875ac_header_compiler=no
17876fi
17877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17878echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17879echo "${ECHO_T}$ac_header_compiler" >&6
17880
17881# Is the header present?
17882echo "$as_me:$LINENO: checking $ac_header presence" >&5
17883echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17884cat >conftest.$ac_ext <<_ACEOF
17885/* confdefs.h. */
17886_ACEOF
17887cat confdefs.h >>conftest.$ac_ext
17888cat >>conftest.$ac_ext <<_ACEOF
17889/* end confdefs.h. */
17890#include <$ac_header>
17891_ACEOF
17892if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17894 ac_status=$?
17895 grep -v '^ *+' conftest.er1 >conftest.err
17896 rm -f conftest.er1
17897 cat conftest.err >&5
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); } >/dev/null; then
17900 if test -s conftest.err; then
17901 ac_cpp_err=$ac_cxx_preproc_warn_flag
17902 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17903 else
17904 ac_cpp_err=
17905 fi
17906else
17907 ac_cpp_err=yes
17908fi
17909if test -z "$ac_cpp_err"; then
17910 ac_header_preproc=yes
17911else
17912 echo "$as_me: failed program was:" >&5
17913sed 's/^/| /' conftest.$ac_ext >&5
17914
17915 ac_header_preproc=no
17916fi
17917rm -f conftest.err conftest.$ac_ext
17918echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17919echo "${ECHO_T}$ac_header_preproc" >&6
17920
17921# So? What about this header?
17922case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17923 yes:no: )
17924 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17925echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17927echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17928 ac_header_preproc=yes
17929 ;;
17930 no:yes:* )
17931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17932echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17934echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17935 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17936echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17937 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17938echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17940echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17941 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17942echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17943 (
17944 cat <<\_ASBOX
17945## ----------------------------------------- ##
17946## Report this to wx-dev@lists.wxwidgets.org ##
17947## ----------------------------------------- ##
17948_ASBOX
17949 ) |
17950 sed "s/^/$as_me: WARNING: /" >&2
17951 ;;
17952esac
17953echo "$as_me:$LINENO: checking for $ac_header" >&5
17954echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17955if eval "test \"\${$as_ac_Header+set}\" = set"; then
17956 echo $ECHO_N "(cached) $ECHO_C" >&6
17957else
17958 eval "$as_ac_Header=\$ac_header_preproc"
17959fi
17960echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17961echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17962
17963fi
17964if test `eval echo '${'$as_ac_Header'}'` = yes; then
17965 cat >>confdefs.h <<_ACEOF
17966#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17967_ACEOF
17968
17969fi
17970
17971done
17972
17973fi
17974
a848cd7e
SC
17975
17976echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17977echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17978if test "${ac_cv_c_const+set}" = set; then
17979 echo $ECHO_N "(cached) $ECHO_C" >&6
17980else
17981 cat >conftest.$ac_ext <<_ACEOF
17982/* confdefs.h. */
17983_ACEOF
17984cat confdefs.h >>conftest.$ac_ext
17985cat >>conftest.$ac_ext <<_ACEOF
17986/* end confdefs.h. */
17987
17988int
17989main ()
17990{
17991/* FIXME: Include the comments suggested by Paul. */
17992#ifndef __cplusplus
17993 /* Ultrix mips cc rejects this. */
17994 typedef int charset[2];
17995 const charset x;
17996 /* SunOS 4.1.1 cc rejects this. */
17997 char const *const *ccp;
17998 char **p;
17999 /* NEC SVR4.0.2 mips cc rejects this. */
18000 struct point {int x, y;};
18001 static struct point const zero = {0,0};
18002 /* AIX XL C 1.02.0.0 rejects this.
18003 It does not let you subtract one const X* pointer from another in
18004 an arm of an if-expression whose if-part is not a constant
18005 expression */
18006 const char *g = "string";
18007 ccp = &g + (g ? g-g : 0);
18008 /* HPUX 7.0 cc rejects these. */
18009 ++ccp;
18010 p = (char**) ccp;
18011 ccp = (char const *const *) p;
18012 { /* SCO 3.2v4 cc rejects this. */
18013 char *t;
18014 char const *s = 0 ? (char *) 0 : (char const *) 0;
18015
18016 *t++ = 0;
18017 }
18018 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18019 int x[] = {25, 17};
18020 const int *foo = &x[0];
18021 ++foo;
18022 }
18023 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18024 typedef const int *iptr;
18025 iptr p = 0;
18026 ++p;
18027 }
18028 { /* AIX XL C 1.02.0.0 rejects this saying
18029 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18030 struct s { int j; const int *ap[3]; };
18031 struct s *b; b->j = 5;
18032 }
18033 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18034 const int foo = 10;
18035 }
18036#endif
18037
18038 ;
18039 return 0;
18040}
18041_ACEOF
18042rm -f conftest.$ac_objext
18043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18044 (eval $ac_compile) 2>conftest.er1
a848cd7e 18045 ac_status=$?
ac1cb8d3
VS
18046 grep -v '^ *+' conftest.er1 >conftest.err
18047 rm -f conftest.er1
18048 cat conftest.err >&5
a848cd7e
SC
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); } &&
479c790c 18051 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18053 (eval $ac_try) 2>&5
18054 ac_status=$?
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); }; } &&
18057 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059 (eval $ac_try) 2>&5
18060 ac_status=$?
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); }; }; then
18063 ac_cv_c_const=yes
18064else
18065 echo "$as_me: failed program was:" >&5
18066sed 's/^/| /' conftest.$ac_ext >&5
18067
18068ac_cv_c_const=no
18069fi
ac1cb8d3 18070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18071fi
18072echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18073echo "${ECHO_T}$ac_cv_c_const" >&6
18074if test $ac_cv_c_const = no; then
18075
18076cat >>confdefs.h <<\_ACEOF
18077#define const
18078_ACEOF
18079
18080fi
18081
18082echo "$as_me:$LINENO: checking for inline" >&5
18083echo $ECHO_N "checking for inline... $ECHO_C" >&6
18084if test "${ac_cv_c_inline+set}" = set; then
18085 echo $ECHO_N "(cached) $ECHO_C" >&6
18086else
18087 ac_cv_c_inline=no
18088for ac_kw in inline __inline__ __inline; do
18089 cat >conftest.$ac_ext <<_ACEOF
18090/* confdefs.h. */
18091_ACEOF
18092cat confdefs.h >>conftest.$ac_ext
18093cat >>conftest.$ac_ext <<_ACEOF
18094/* end confdefs.h. */
18095#ifndef __cplusplus
18096typedef int foo_t;
18097static $ac_kw foo_t static_foo () {return 0; }
18098$ac_kw foo_t foo () {return 0; }
18099#endif
18100
18101_ACEOF
18102rm -f conftest.$ac_objext
18103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18104 (eval $ac_compile) 2>conftest.er1
a848cd7e 18105 ac_status=$?
ac1cb8d3
VS
18106 grep -v '^ *+' conftest.er1 >conftest.err
18107 rm -f conftest.er1
18108 cat conftest.err >&5
a848cd7e
SC
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); } &&
479c790c 18111 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18113 (eval $ac_try) 2>&5
18114 ac_status=$?
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); }; } &&
18117 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18119 (eval $ac_try) 2>&5
18120 ac_status=$?
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; }; then
18123 ac_cv_c_inline=$ac_kw; break
18124else
18125 echo "$as_me: failed program was:" >&5
18126sed 's/^/| /' conftest.$ac_ext >&5
18127
18128fi
ac1cb8d3 18129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18130done
18131
18132fi
18133echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18134echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
18135
18136
a848cd7e
SC
18137case $ac_cv_c_inline in
18138 inline | yes) ;;
ac1cb8d3
VS
18139 *)
18140 case $ac_cv_c_inline in
18141 no) ac_val=;;
18142 *) ac_val=$ac_cv_c_inline;;
18143 esac
18144 cat >>confdefs.h <<_ACEOF
18145#ifndef __cplusplus
18146#define inline $ac_val
18147#endif
de59c161 18148_ACEOF
ac1cb8d3 18149 ;;
a848cd7e
SC
18150esac
18151
18152
18153echo "$as_me:$LINENO: checking for char" >&5
18154echo $ECHO_N "checking for char... $ECHO_C" >&6
18155if test "${ac_cv_type_char+set}" = set; then
18156 echo $ECHO_N "(cached) $ECHO_C" >&6
18157else
18158 cat >conftest.$ac_ext <<_ACEOF
18159/* confdefs.h. */
18160_ACEOF
18161cat confdefs.h >>conftest.$ac_ext
18162cat >>conftest.$ac_ext <<_ACEOF
18163/* end confdefs.h. */
18164$ac_includes_default
18165int
18166main ()
18167{
18168if ((char *) 0)
18169 return 0;
18170if (sizeof (char))
18171 return 0;
18172 ;
18173 return 0;
18174}
18175_ACEOF
18176rm -f conftest.$ac_objext
18177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18178 (eval $ac_compile) 2>conftest.er1
a848cd7e 18179 ac_status=$?
ac1cb8d3
VS
18180 grep -v '^ *+' conftest.er1 >conftest.err
18181 rm -f conftest.er1
18182 cat conftest.err >&5
a848cd7e
SC
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); } &&
479c790c 18185 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18187 (eval $ac_try) 2>&5
18188 ac_status=$?
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); }; } &&
18191 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18193 (eval $ac_try) 2>&5
18194 ac_status=$?
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); }; }; then
18197 ac_cv_type_char=yes
18198else
18199 echo "$as_me: failed program was:" >&5
18200sed 's/^/| /' conftest.$ac_ext >&5
18201
18202ac_cv_type_char=no
18203fi
ac1cb8d3 18204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18205fi
18206echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
18207echo "${ECHO_T}$ac_cv_type_char" >&6
18208
18209echo "$as_me:$LINENO: checking size of char" >&5
18210echo $ECHO_N "checking size of char... $ECHO_C" >&6
18211if test "${ac_cv_sizeof_char+set}" = set; then
18212 echo $ECHO_N "(cached) $ECHO_C" >&6
18213else
18214 if test "$ac_cv_type_char" = yes; then
18215 # The cast to unsigned long works around a bug in the HP C Compiler
18216 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18217 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18218 # This bug is HP SR number 8606223364.
18219 if test "$cross_compiling" = yes; then
18220 # Depending upon the size, compute the lo and hi bounds.
18221cat >conftest.$ac_ext <<_ACEOF
18222/* confdefs.h. */
18223_ACEOF
18224cat confdefs.h >>conftest.$ac_ext
18225cat >>conftest.$ac_ext <<_ACEOF
18226/* end confdefs.h. */
18227$ac_includes_default
18228int
18229main ()
18230{
18231static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
18232test_array [0] = 0
18233
18234 ;
18235 return 0;
18236}
18237_ACEOF
18238rm -f conftest.$ac_objext
18239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18240 (eval $ac_compile) 2>conftest.er1
a848cd7e 18241 ac_status=$?
ac1cb8d3
VS
18242 grep -v '^ *+' conftest.er1 >conftest.err
18243 rm -f conftest.er1
18244 cat conftest.err >&5
a848cd7e
SC
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); } &&
479c790c 18247 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18249 (eval $ac_try) 2>&5
18250 ac_status=$?
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); }; } &&
18253 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18255 (eval $ac_try) 2>&5
18256 ac_status=$?
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); }; }; then
18259 ac_lo=0 ac_mid=0
18260 while :; do
18261 cat >conftest.$ac_ext <<_ACEOF
18262/* confdefs.h. */
18263_ACEOF
18264cat confdefs.h >>conftest.$ac_ext
18265cat >>conftest.$ac_ext <<_ACEOF
18266/* end confdefs.h. */
18267$ac_includes_default
18268int
18269main ()
18270{
18271static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18272test_array [0] = 0
18273
18274 ;
18275 return 0;
18276}
18277_ACEOF
18278rm -f conftest.$ac_objext
18279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18280 (eval $ac_compile) 2>conftest.er1
a848cd7e 18281 ac_status=$?
ac1cb8d3
VS
18282 grep -v '^ *+' conftest.er1 >conftest.err
18283 rm -f conftest.er1
18284 cat conftest.err >&5
a848cd7e
SC
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); } &&
479c790c 18287 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18289 (eval $ac_try) 2>&5
18290 ac_status=$?
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; } &&
18293 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18295 (eval $ac_try) 2>&5
18296 ac_status=$?
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); }; }; then
18299 ac_hi=$ac_mid; break
18300else
18301 echo "$as_me: failed program was:" >&5
18302sed 's/^/| /' conftest.$ac_ext >&5
18303
18304ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18305 if test $ac_lo -le $ac_mid; then
18306 ac_lo= ac_hi=
18307 break
18308 fi
18309 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18310fi
ac1cb8d3 18311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18312 done
18313else
18314 echo "$as_me: failed program was:" >&5
18315sed 's/^/| /' conftest.$ac_ext >&5
18316
18317cat >conftest.$ac_ext <<_ACEOF
18318/* confdefs.h. */
18319_ACEOF
18320cat confdefs.h >>conftest.$ac_ext
18321cat >>conftest.$ac_ext <<_ACEOF
18322/* end confdefs.h. */
18323$ac_includes_default
18324int
18325main ()
18326{
18327static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
18328test_array [0] = 0
18329
18330 ;
18331 return 0;
18332}
18333_ACEOF
18334rm -f conftest.$ac_objext
18335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18336 (eval $ac_compile) 2>conftest.er1
a848cd7e 18337 ac_status=$?
ac1cb8d3
VS
18338 grep -v '^ *+' conftest.er1 >conftest.err
18339 rm -f conftest.er1
18340 cat conftest.err >&5
a848cd7e
SC
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); } &&
479c790c 18343 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345 (eval $ac_try) 2>&5
18346 ac_status=$?
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); }; } &&
18349 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18351 (eval $ac_try) 2>&5
18352 ac_status=$?
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); }; }; then
18355 ac_hi=-1 ac_mid=-1
18356 while :; do
18357 cat >conftest.$ac_ext <<_ACEOF
18358/* confdefs.h. */
18359_ACEOF
18360cat confdefs.h >>conftest.$ac_ext
18361cat >>conftest.$ac_ext <<_ACEOF
18362/* end confdefs.h. */
18363$ac_includes_default
18364int
18365main ()
18366{
18367static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
18368test_array [0] = 0
18369
18370 ;
18371 return 0;
18372}
18373_ACEOF
18374rm -f conftest.$ac_objext
18375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18376 (eval $ac_compile) 2>conftest.er1
a848cd7e 18377 ac_status=$?
ac1cb8d3
VS
18378 grep -v '^ *+' conftest.er1 >conftest.err
18379 rm -f conftest.er1
18380 cat conftest.err >&5
a848cd7e
SC
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); } &&
479c790c 18383 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18385 (eval $ac_try) 2>&5
18386 ac_status=$?
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); }; } &&
18389 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18391 (eval $ac_try) 2>&5
18392 ac_status=$?
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); }; }; then
18395 ac_lo=$ac_mid; break
18396else
18397 echo "$as_me: failed program was:" >&5
18398sed 's/^/| /' conftest.$ac_ext >&5
18399
18400ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18401 if test $ac_mid -le $ac_hi; then
18402 ac_lo= ac_hi=
18403 break
18404 fi
18405 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18406fi
ac1cb8d3 18407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18408 done
18409else
18410 echo "$as_me: failed program was:" >&5
18411sed 's/^/| /' conftest.$ac_ext >&5
18412
18413ac_lo= ac_hi=
18414fi
ac1cb8d3 18415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18416fi
ac1cb8d3 18417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18418# Binary search between lo and hi bounds.
18419while test "x$ac_lo" != "x$ac_hi"; do
18420 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18421 cat >conftest.$ac_ext <<_ACEOF
18422/* confdefs.h. */
18423_ACEOF
18424cat confdefs.h >>conftest.$ac_ext
18425cat >>conftest.$ac_ext <<_ACEOF
18426/* end confdefs.h. */
18427$ac_includes_default
18428int
18429main ()
18430{
18431static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18432test_array [0] = 0
18433
18434 ;
18435 return 0;
18436}
18437_ACEOF
18438rm -f conftest.$ac_objext
18439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18440 (eval $ac_compile) 2>conftest.er1
a848cd7e 18441 ac_status=$?
ac1cb8d3
VS
18442 grep -v '^ *+' conftest.er1 >conftest.err
18443 rm -f conftest.er1
18444 cat conftest.err >&5
a848cd7e
SC
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); } &&
479c790c 18447 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18449 (eval $ac_try) 2>&5
18450 ac_status=$?
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); }; } &&
18453 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18455 (eval $ac_try) 2>&5
18456 ac_status=$?
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); }; }; then
18459 ac_hi=$ac_mid
18460else
18461 echo "$as_me: failed program was:" >&5
18462sed 's/^/| /' conftest.$ac_ext >&5
18463
18464ac_lo=`expr '(' $ac_mid ')' + 1`
18465fi
ac1cb8d3 18466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18467done
18468case $ac_lo in
18469?*) ac_cv_sizeof_char=$ac_lo;;
18470'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18471See \`config.log' for more details." >&5
18472echo "$as_me: error: cannot compute sizeof (char), 77
18473See \`config.log' for more details." >&2;}
18474 { (exit 1); exit 1; }; } ;;
18475esac
18476else
18477 if test "$cross_compiling" = yes; then
479c790c
VZ
18478 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18479echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18480 { (exit 1); exit 1; }; }
18481else
18482 cat >conftest.$ac_ext <<_ACEOF
18483/* confdefs.h. */
18484_ACEOF
18485cat confdefs.h >>conftest.$ac_ext
18486cat >>conftest.$ac_ext <<_ACEOF
18487/* end confdefs.h. */
18488$ac_includes_default
18489long longval () { return (long) (sizeof (char)); }
18490unsigned long ulongval () { return (long) (sizeof (char)); }
18491#include <stdio.h>
18492#include <stdlib.h>
18493int
18494main ()
18495{
18496
18497 FILE *f = fopen ("conftest.val", "w");
18498 if (! f)
18499 exit (1);
18500 if (((long) (sizeof (char))) < 0)
18501 {
18502 long i = longval ();
18503 if (i != ((long) (sizeof (char))))
18504 exit (1);
18505 fprintf (f, "%ld\n", i);
18506 }
18507 else
18508 {
18509 unsigned long i = ulongval ();
18510 if (i != ((long) (sizeof (char))))
18511 exit (1);
18512 fprintf (f, "%lu\n", i);
18513 }
18514 exit (ferror (f) || fclose (f) != 0);
18515
18516 ;
18517 return 0;
18518}
18519_ACEOF
18520rm -f conftest$ac_exeext
18521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18522 (eval $ac_link) 2>&5
18523 ac_status=$?
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18527 (eval $ac_try) 2>&5
18528 ac_status=$?
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); }; }; then
18531 ac_cv_sizeof_char=`cat conftest.val`
18532else
18533 echo "$as_me: program exited with status $ac_status" >&5
18534echo "$as_me: failed program was:" >&5
18535sed 's/^/| /' conftest.$ac_ext >&5
18536
18537( exit $ac_status )
18538{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18539See \`config.log' for more details." >&5
18540echo "$as_me: error: cannot compute sizeof (char), 77
18541See \`config.log' for more details." >&2;}
18542 { (exit 1); exit 1; }; }
18543fi
ac1cb8d3 18544rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18545fi
18546fi
18547rm -f conftest.val
18548else
18549 ac_cv_sizeof_char=0
18550fi
18551fi
18552echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18553echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18554cat >>confdefs.h <<_ACEOF
18555#define SIZEOF_CHAR $ac_cv_sizeof_char
18556_ACEOF
18557
18558
18559echo "$as_me:$LINENO: checking for short" >&5
18560echo $ECHO_N "checking for short... $ECHO_C" >&6
18561if test "${ac_cv_type_short+set}" = set; then
18562 echo $ECHO_N "(cached) $ECHO_C" >&6
18563else
18564 cat >conftest.$ac_ext <<_ACEOF
18565/* confdefs.h. */
18566_ACEOF
18567cat confdefs.h >>conftest.$ac_ext
18568cat >>conftest.$ac_ext <<_ACEOF
18569/* end confdefs.h. */
18570$ac_includes_default
18571int
18572main ()
18573{
18574if ((short *) 0)
18575 return 0;
18576if (sizeof (short))
18577 return 0;
18578 ;
18579 return 0;
18580}
18581_ACEOF
18582rm -f conftest.$ac_objext
18583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18584 (eval $ac_compile) 2>conftest.er1
a848cd7e 18585 ac_status=$?
ac1cb8d3
VS
18586 grep -v '^ *+' conftest.er1 >conftest.err
18587 rm -f conftest.er1
18588 cat conftest.err >&5
a848cd7e
SC
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); } &&
479c790c 18591 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18593 (eval $ac_try) 2>&5
18594 ac_status=$?
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); }; } &&
18597 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18599 (eval $ac_try) 2>&5
18600 ac_status=$?
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); }; }; then
18603 ac_cv_type_short=yes
18604else
18605 echo "$as_me: failed program was:" >&5
18606sed 's/^/| /' conftest.$ac_ext >&5
18607
18608ac_cv_type_short=no
18609fi
ac1cb8d3 18610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18611fi
18612echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18613echo "${ECHO_T}$ac_cv_type_short" >&6
18614
18615echo "$as_me:$LINENO: checking size of short" >&5
18616echo $ECHO_N "checking size of short... $ECHO_C" >&6
18617if test "${ac_cv_sizeof_short+set}" = set; then
18618 echo $ECHO_N "(cached) $ECHO_C" >&6
18619else
18620 if test "$ac_cv_type_short" = yes; then
18621 # The cast to unsigned long works around a bug in the HP C Compiler
18622 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18623 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18624 # This bug is HP SR number 8606223364.
18625 if test "$cross_compiling" = yes; then
18626 # Depending upon the size, compute the lo and hi bounds.
18627cat >conftest.$ac_ext <<_ACEOF
18628/* confdefs.h. */
18629_ACEOF
18630cat confdefs.h >>conftest.$ac_ext
18631cat >>conftest.$ac_ext <<_ACEOF
18632/* end confdefs.h. */
18633$ac_includes_default
18634int
18635main ()
18636{
18637static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18638test_array [0] = 0
18639
18640 ;
18641 return 0;
18642}
18643_ACEOF
18644rm -f conftest.$ac_objext
18645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18646 (eval $ac_compile) 2>conftest.er1
a848cd7e 18647 ac_status=$?
ac1cb8d3
VS
18648 grep -v '^ *+' conftest.er1 >conftest.err
18649 rm -f conftest.er1
18650 cat conftest.err >&5
a848cd7e
SC
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); } &&
479c790c 18653 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18655 (eval $ac_try) 2>&5
18656 ac_status=$?
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); }; } &&
18659 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18661 (eval $ac_try) 2>&5
18662 ac_status=$?
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); }; }; then
18665 ac_lo=0 ac_mid=0
18666 while :; do
18667 cat >conftest.$ac_ext <<_ACEOF
18668/* confdefs.h. */
18669_ACEOF
18670cat confdefs.h >>conftest.$ac_ext
18671cat >>conftest.$ac_ext <<_ACEOF
18672/* end confdefs.h. */
18673$ac_includes_default
18674int
18675main ()
18676{
18677static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18678test_array [0] = 0
18679
18680 ;
18681 return 0;
18682}
18683_ACEOF
18684rm -f conftest.$ac_objext
18685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18686 (eval $ac_compile) 2>conftest.er1
a848cd7e 18687 ac_status=$?
ac1cb8d3
VS
18688 grep -v '^ *+' conftest.er1 >conftest.err
18689 rm -f conftest.er1
18690 cat conftest.err >&5
a848cd7e
SC
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); } &&
479c790c 18693 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18695 (eval $ac_try) 2>&5
18696 ac_status=$?
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); }; } &&
18699 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18701 (eval $ac_try) 2>&5
18702 ac_status=$?
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); }; }; then
18705 ac_hi=$ac_mid; break
18706else
18707 echo "$as_me: failed program was:" >&5
18708sed 's/^/| /' conftest.$ac_ext >&5
18709
18710ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18711 if test $ac_lo -le $ac_mid; then
18712 ac_lo= ac_hi=
18713 break
18714 fi
18715 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18716fi
ac1cb8d3 18717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18718 done
18719else
18720 echo "$as_me: failed program was:" >&5
18721sed 's/^/| /' conftest.$ac_ext >&5
18722
18723cat >conftest.$ac_ext <<_ACEOF
18724/* confdefs.h. */
18725_ACEOF
18726cat confdefs.h >>conftest.$ac_ext
18727cat >>conftest.$ac_ext <<_ACEOF
18728/* end confdefs.h. */
18729$ac_includes_default
18730int
18731main ()
18732{
18733static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18734test_array [0] = 0
18735
18736 ;
18737 return 0;
18738}
18739_ACEOF
18740rm -f conftest.$ac_objext
18741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18742 (eval $ac_compile) 2>conftest.er1
a848cd7e 18743 ac_status=$?
ac1cb8d3
VS
18744 grep -v '^ *+' conftest.er1 >conftest.err
18745 rm -f conftest.er1
18746 cat conftest.err >&5
a848cd7e
SC
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); } &&
479c790c 18749 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18751 (eval $ac_try) 2>&5
18752 ac_status=$?
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); }; } &&
18755 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18757 (eval $ac_try) 2>&5
18758 ac_status=$?
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); }; }; then
18761 ac_hi=-1 ac_mid=-1
18762 while :; do
18763 cat >conftest.$ac_ext <<_ACEOF
18764/* confdefs.h. */
18765_ACEOF
18766cat confdefs.h >>conftest.$ac_ext
18767cat >>conftest.$ac_ext <<_ACEOF
18768/* end confdefs.h. */
18769$ac_includes_default
18770int
18771main ()
18772{
18773static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18774test_array [0] = 0
18775
18776 ;
18777 return 0;
18778}
18779_ACEOF
18780rm -f conftest.$ac_objext
18781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18782 (eval $ac_compile) 2>conftest.er1
a848cd7e 18783 ac_status=$?
ac1cb8d3
VS
18784 grep -v '^ *+' conftest.er1 >conftest.err
18785 rm -f conftest.er1
18786 cat conftest.err >&5
a848cd7e
SC
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); } &&
479c790c 18789 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18791 (eval $ac_try) 2>&5
18792 ac_status=$?
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }; } &&
18795 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18797 (eval $ac_try) 2>&5
18798 ac_status=$?
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); }; }; then
18801 ac_lo=$ac_mid; break
18802else
18803 echo "$as_me: failed program was:" >&5
18804sed 's/^/| /' conftest.$ac_ext >&5
18805
18806ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18807 if test $ac_mid -le $ac_hi; then
18808 ac_lo= ac_hi=
18809 break
18810 fi
18811 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18812fi
ac1cb8d3 18813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18814 done
18815else
18816 echo "$as_me: failed program was:" >&5
18817sed 's/^/| /' conftest.$ac_ext >&5
18818
18819ac_lo= ac_hi=
18820fi
ac1cb8d3 18821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18822fi
ac1cb8d3 18823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18824# Binary search between lo and hi bounds.
18825while test "x$ac_lo" != "x$ac_hi"; do
18826 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18827 cat >conftest.$ac_ext <<_ACEOF
18828/* confdefs.h. */
18829_ACEOF
18830cat confdefs.h >>conftest.$ac_ext
18831cat >>conftest.$ac_ext <<_ACEOF
18832/* end confdefs.h. */
18833$ac_includes_default
18834int
18835main ()
18836{
18837static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18838test_array [0] = 0
18839
18840 ;
18841 return 0;
18842}
18843_ACEOF
18844rm -f conftest.$ac_objext
18845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18846 (eval $ac_compile) 2>conftest.er1
a848cd7e 18847 ac_status=$?
ac1cb8d3
VS
18848 grep -v '^ *+' conftest.er1 >conftest.err
18849 rm -f conftest.er1
18850 cat conftest.err >&5
a848cd7e
SC
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); } &&
479c790c 18853 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18855 (eval $ac_try) 2>&5
18856 ac_status=$?
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); }; } &&
18859 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18861 (eval $ac_try) 2>&5
18862 ac_status=$?
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); }; }; then
18865 ac_hi=$ac_mid
18866else
18867 echo "$as_me: failed program was:" >&5
18868sed 's/^/| /' conftest.$ac_ext >&5
18869
18870ac_lo=`expr '(' $ac_mid ')' + 1`
18871fi
ac1cb8d3 18872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18873done
18874case $ac_lo in
18875?*) ac_cv_sizeof_short=$ac_lo;;
18876'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18877See \`config.log' for more details." >&5
18878echo "$as_me: error: cannot compute sizeof (short), 77
18879See \`config.log' for more details." >&2;}
18880 { (exit 1); exit 1; }; } ;;
18881esac
18882else
18883 if test "$cross_compiling" = yes; then
479c790c
VZ
18884 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18885echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18886 { (exit 1); exit 1; }; }
18887else
18888 cat >conftest.$ac_ext <<_ACEOF
18889/* confdefs.h. */
18890_ACEOF
18891cat confdefs.h >>conftest.$ac_ext
18892cat >>conftest.$ac_ext <<_ACEOF
18893/* end confdefs.h. */
18894$ac_includes_default
18895long longval () { return (long) (sizeof (short)); }
18896unsigned long ulongval () { return (long) (sizeof (short)); }
18897#include <stdio.h>
18898#include <stdlib.h>
18899int
18900main ()
18901{
18902
18903 FILE *f = fopen ("conftest.val", "w");
18904 if (! f)
18905 exit (1);
18906 if (((long) (sizeof (short))) < 0)
18907 {
18908 long i = longval ();
18909 if (i != ((long) (sizeof (short))))
18910 exit (1);
18911 fprintf (f, "%ld\n", i);
18912 }
18913 else
18914 {
18915 unsigned long i = ulongval ();
18916 if (i != ((long) (sizeof (short))))
18917 exit (1);
18918 fprintf (f, "%lu\n", i);
18919 }
18920 exit (ferror (f) || fclose (f) != 0);
18921
18922 ;
18923 return 0;
18924}
18925_ACEOF
18926rm -f conftest$ac_exeext
18927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18928 (eval $ac_link) 2>&5
18929 ac_status=$?
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18933 (eval $ac_try) 2>&5
18934 ac_status=$?
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); }; }; then
18937 ac_cv_sizeof_short=`cat conftest.val`
18938else
18939 echo "$as_me: program exited with status $ac_status" >&5
18940echo "$as_me: failed program was:" >&5
18941sed 's/^/| /' conftest.$ac_ext >&5
18942
18943( exit $ac_status )
18944{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18945See \`config.log' for more details." >&5
18946echo "$as_me: error: cannot compute sizeof (short), 77
18947See \`config.log' for more details." >&2;}
18948 { (exit 1); exit 1; }; }
18949fi
ac1cb8d3 18950rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18951fi
18952fi
18953rm -f conftest.val
18954else
18955 ac_cv_sizeof_short=0
18956fi
18957fi
18958echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18959echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18960cat >>confdefs.h <<_ACEOF
18961#define SIZEOF_SHORT $ac_cv_sizeof_short
18962_ACEOF
18963
18964
18965echo "$as_me:$LINENO: checking for void *" >&5
18966echo $ECHO_N "checking for void *... $ECHO_C" >&6
18967if test "${ac_cv_type_void_p+set}" = set; then
18968 echo $ECHO_N "(cached) $ECHO_C" >&6
18969else
18970 cat >conftest.$ac_ext <<_ACEOF
18971/* confdefs.h. */
18972_ACEOF
18973cat confdefs.h >>conftest.$ac_ext
18974cat >>conftest.$ac_ext <<_ACEOF
18975/* end confdefs.h. */
18976$ac_includes_default
18977int
18978main ()
18979{
18980if ((void * *) 0)
18981 return 0;
18982if (sizeof (void *))
18983 return 0;
18984 ;
18985 return 0;
18986}
18987_ACEOF
18988rm -f conftest.$ac_objext
18989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18990 (eval $ac_compile) 2>conftest.er1
a848cd7e 18991 ac_status=$?
ac1cb8d3
VS
18992 grep -v '^ *+' conftest.er1 >conftest.err
18993 rm -f conftest.er1
18994 cat conftest.err >&5
a848cd7e
SC
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); } &&
479c790c 18997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999 (eval $ac_try) 2>&5
19000 ac_status=$?
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); }; } &&
19003 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19005 (eval $ac_try) 2>&5
19006 ac_status=$?
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); }; }; then
19009 ac_cv_type_void_p=yes
19010else
19011 echo "$as_me: failed program was:" >&5
19012sed 's/^/| /' conftest.$ac_ext >&5
19013
19014ac_cv_type_void_p=no
19015fi
ac1cb8d3 19016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19017fi
19018echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
19019echo "${ECHO_T}$ac_cv_type_void_p" >&6
19020
19021echo "$as_me:$LINENO: checking size of void *" >&5
19022echo $ECHO_N "checking size of void *... $ECHO_C" >&6
19023if test "${ac_cv_sizeof_void_p+set}" = set; then
19024 echo $ECHO_N "(cached) $ECHO_C" >&6
19025else
19026 if test "$ac_cv_type_void_p" = yes; then
19027 # The cast to unsigned long works around a bug in the HP C Compiler
19028 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19029 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19030 # This bug is HP SR number 8606223364.
19031 if test "$cross_compiling" = yes; then
19032 # Depending upon the size, compute the lo and hi bounds.
19033cat >conftest.$ac_ext <<_ACEOF
19034/* confdefs.h. */
19035_ACEOF
19036cat confdefs.h >>conftest.$ac_ext
19037cat >>conftest.$ac_ext <<_ACEOF
19038/* end confdefs.h. */
19039$ac_includes_default
19040int
19041main ()
19042{
19043static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
19044test_array [0] = 0
19045
19046 ;
19047 return 0;
19048}
19049_ACEOF
19050rm -f conftest.$ac_objext
19051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19052 (eval $ac_compile) 2>conftest.er1
a848cd7e 19053 ac_status=$?
ac1cb8d3
VS
19054 grep -v '^ *+' conftest.er1 >conftest.err
19055 rm -f conftest.er1
19056 cat conftest.err >&5
a848cd7e
SC
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); } &&
479c790c 19059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19061 (eval $ac_try) 2>&5
19062 ac_status=$?
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); }; } &&
19065 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19067 (eval $ac_try) 2>&5
19068 ac_status=$?
19069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); }; }; then
19071 ac_lo=0 ac_mid=0
19072 while :; do
19073 cat >conftest.$ac_ext <<_ACEOF
19074/* confdefs.h. */
19075_ACEOF
19076cat confdefs.h >>conftest.$ac_ext
19077cat >>conftest.$ac_ext <<_ACEOF
19078/* end confdefs.h. */
19079$ac_includes_default
19080int
19081main ()
19082{
19083static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
19084test_array [0] = 0
19085
19086 ;
19087 return 0;
19088}
19089_ACEOF
19090rm -f conftest.$ac_objext
19091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19092 (eval $ac_compile) 2>conftest.er1
a848cd7e 19093 ac_status=$?
ac1cb8d3
VS
19094 grep -v '^ *+' conftest.er1 >conftest.err
19095 rm -f conftest.er1
19096 cat conftest.err >&5
a848cd7e
SC
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); } &&
479c790c 19099 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19101 (eval $ac_try) 2>&5
19102 ac_status=$?
19103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104 (exit $ac_status); }; } &&
19105 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19107 (eval $ac_try) 2>&5
19108 ac_status=$?
19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); }; }; then
19111 ac_hi=$ac_mid; break
19112else
19113 echo "$as_me: failed program was:" >&5
19114sed 's/^/| /' conftest.$ac_ext >&5
19115
19116ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19117 if test $ac_lo -le $ac_mid; then
19118 ac_lo= ac_hi=
19119 break
19120 fi
19121 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19122fi
ac1cb8d3 19123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19124 done
19125else
19126 echo "$as_me: failed program was:" >&5
19127sed 's/^/| /' conftest.$ac_ext >&5
19128
19129cat >conftest.$ac_ext <<_ACEOF
19130/* confdefs.h. */
19131_ACEOF
19132cat confdefs.h >>conftest.$ac_ext
19133cat >>conftest.$ac_ext <<_ACEOF
19134/* end confdefs.h. */
19135$ac_includes_default
19136int
19137main ()
19138{
19139static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
19140test_array [0] = 0
19141
19142 ;
19143 return 0;
19144}
19145_ACEOF
19146rm -f conftest.$ac_objext
19147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19148 (eval $ac_compile) 2>conftest.er1
a848cd7e 19149 ac_status=$?
ac1cb8d3
VS
19150 grep -v '^ *+' conftest.er1 >conftest.err
19151 rm -f conftest.er1
19152 cat conftest.err >&5
a848cd7e
SC
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); } &&
479c790c 19155 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157 (eval $ac_try) 2>&5
19158 ac_status=$?
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; } &&
19161 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19163 (eval $ac_try) 2>&5
19164 ac_status=$?
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); }; }; then
19167 ac_hi=-1 ac_mid=-1
19168 while :; do
19169 cat >conftest.$ac_ext <<_ACEOF
19170/* confdefs.h. */
19171_ACEOF
19172cat confdefs.h >>conftest.$ac_ext
19173cat >>conftest.$ac_ext <<_ACEOF
19174/* end confdefs.h. */
19175$ac_includes_default
19176int
19177main ()
19178{
19179static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
19180test_array [0] = 0
19181
19182 ;
19183 return 0;
19184}
19185_ACEOF
19186rm -f conftest.$ac_objext
19187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19188 (eval $ac_compile) 2>conftest.er1
a848cd7e 19189 ac_status=$?
ac1cb8d3
VS
19190 grep -v '^ *+' conftest.er1 >conftest.err
19191 rm -f conftest.er1
19192 cat conftest.err >&5
a848cd7e
SC
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); } &&
479c790c 19195 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19197 (eval $ac_try) 2>&5
19198 ac_status=$?
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); }; } &&
19201 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19203 (eval $ac_try) 2>&5
19204 ac_status=$?
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); }; }; then
19207 ac_lo=$ac_mid; break
19208else
19209 echo "$as_me: failed program was:" >&5
19210sed 's/^/| /' conftest.$ac_ext >&5
19211
19212ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19213 if test $ac_mid -le $ac_hi; then
19214 ac_lo= ac_hi=
19215 break
19216 fi
19217 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19218fi
ac1cb8d3 19219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19220 done
19221else
19222 echo "$as_me: failed program was:" >&5
19223sed 's/^/| /' conftest.$ac_ext >&5
19224
19225ac_lo= ac_hi=
19226fi
ac1cb8d3 19227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19228fi
ac1cb8d3 19229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19230# Binary search between lo and hi bounds.
19231while test "x$ac_lo" != "x$ac_hi"; do
19232 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19233 cat >conftest.$ac_ext <<_ACEOF
19234/* confdefs.h. */
19235_ACEOF
19236cat confdefs.h >>conftest.$ac_ext
19237cat >>conftest.$ac_ext <<_ACEOF
19238/* end confdefs.h. */
19239$ac_includes_default
19240int
19241main ()
19242{
19243static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
19244test_array [0] = 0
19245
19246 ;
19247 return 0;
19248}
19249_ACEOF
19250rm -f conftest.$ac_objext
19251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19252 (eval $ac_compile) 2>conftest.er1
a848cd7e 19253 ac_status=$?
ac1cb8d3
VS
19254 grep -v '^ *+' conftest.er1 >conftest.err
19255 rm -f conftest.er1
19256 cat conftest.err >&5
a848cd7e
SC
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); } &&
479c790c 19259 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19261 (eval $ac_try) 2>&5
19262 ac_status=$?
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); }; } &&
19265 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19267 (eval $ac_try) 2>&5
19268 ac_status=$?
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); }; }; then
19271 ac_hi=$ac_mid
19272else
19273 echo "$as_me: failed program was:" >&5
19274sed 's/^/| /' conftest.$ac_ext >&5
19275
19276ac_lo=`expr '(' $ac_mid ')' + 1`
19277fi
ac1cb8d3 19278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19279done
19280case $ac_lo in
19281?*) ac_cv_sizeof_void_p=$ac_lo;;
19282'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19283See \`config.log' for more details." >&5
19284echo "$as_me: error: cannot compute sizeof (void *), 77
19285See \`config.log' for more details." >&2;}
19286 { (exit 1); exit 1; }; } ;;
19287esac
19288else
19289 if test "$cross_compiling" = yes; then
479c790c
VZ
19290 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19291echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19292 { (exit 1); exit 1; }; }
19293else
19294 cat >conftest.$ac_ext <<_ACEOF
19295/* confdefs.h. */
19296_ACEOF
19297cat confdefs.h >>conftest.$ac_ext
19298cat >>conftest.$ac_ext <<_ACEOF
19299/* end confdefs.h. */
19300$ac_includes_default
19301long longval () { return (long) (sizeof (void *)); }
19302unsigned long ulongval () { return (long) (sizeof (void *)); }
19303#include <stdio.h>
19304#include <stdlib.h>
19305int
19306main ()
19307{
19308
19309 FILE *f = fopen ("conftest.val", "w");
19310 if (! f)
19311 exit (1);
19312 if (((long) (sizeof (void *))) < 0)
19313 {
19314 long i = longval ();
19315 if (i != ((long) (sizeof (void *))))
19316 exit (1);
19317 fprintf (f, "%ld\n", i);
19318 }
19319 else
19320 {
19321 unsigned long i = ulongval ();
19322 if (i != ((long) (sizeof (void *))))
19323 exit (1);
19324 fprintf (f, "%lu\n", i);
19325 }
19326 exit (ferror (f) || fclose (f) != 0);
19327
19328 ;
19329 return 0;
19330}
19331_ACEOF
19332rm -f conftest$ac_exeext
19333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19334 (eval $ac_link) 2>&5
19335 ac_status=$?
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19339 (eval $ac_try) 2>&5
19340 ac_status=$?
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); }; }; then
19343 ac_cv_sizeof_void_p=`cat conftest.val`
19344else
19345 echo "$as_me: program exited with status $ac_status" >&5
19346echo "$as_me: failed program was:" >&5
19347sed 's/^/| /' conftest.$ac_ext >&5
19348
19349( exit $ac_status )
19350{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19351See \`config.log' for more details." >&5
19352echo "$as_me: error: cannot compute sizeof (void *), 77
19353See \`config.log' for more details." >&2;}
19354 { (exit 1); exit 1; }; }
19355fi
ac1cb8d3 19356rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19357fi
19358fi
19359rm -f conftest.val
19360else
19361 ac_cv_sizeof_void_p=0
19362fi
19363fi
19364echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
19365echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
19366cat >>confdefs.h <<_ACEOF
19367#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
19368_ACEOF
19369
19370
19371echo "$as_me:$LINENO: checking for int" >&5
19372echo $ECHO_N "checking for int... $ECHO_C" >&6
19373if test "${ac_cv_type_int+set}" = set; then
19374 echo $ECHO_N "(cached) $ECHO_C" >&6
19375else
19376 cat >conftest.$ac_ext <<_ACEOF
19377/* confdefs.h. */
19378_ACEOF
19379cat confdefs.h >>conftest.$ac_ext
19380cat >>conftest.$ac_ext <<_ACEOF
19381/* end confdefs.h. */
19382$ac_includes_default
19383int
19384main ()
19385{
19386if ((int *) 0)
19387 return 0;
19388if (sizeof (int))
19389 return 0;
19390 ;
19391 return 0;
19392}
19393_ACEOF
19394rm -f conftest.$ac_objext
19395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19396 (eval $ac_compile) 2>conftest.er1
a848cd7e 19397 ac_status=$?
ac1cb8d3
VS
19398 grep -v '^ *+' conftest.er1 >conftest.err
19399 rm -f conftest.er1
19400 cat conftest.err >&5
a848cd7e
SC
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); } &&
479c790c 19403 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19405 (eval $ac_try) 2>&5
19406 ac_status=$?
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); }; } &&
19409 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19411 (eval $ac_try) 2>&5
19412 ac_status=$?
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); }; }; then
19415 ac_cv_type_int=yes
19416else
19417 echo "$as_me: failed program was:" >&5
19418sed 's/^/| /' conftest.$ac_ext >&5
19419
19420ac_cv_type_int=no
19421fi
ac1cb8d3 19422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19423fi
19424echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19425echo "${ECHO_T}$ac_cv_type_int" >&6
19426
19427echo "$as_me:$LINENO: checking size of int" >&5
19428echo $ECHO_N "checking size of int... $ECHO_C" >&6
19429if test "${ac_cv_sizeof_int+set}" = set; then
19430 echo $ECHO_N "(cached) $ECHO_C" >&6
19431else
19432 if test "$ac_cv_type_int" = yes; then
19433 # The cast to unsigned long works around a bug in the HP C Compiler
19434 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19435 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19436 # This bug is HP SR number 8606223364.
19437 if test "$cross_compiling" = yes; then
19438 # Depending upon the size, compute the lo and hi bounds.
19439cat >conftest.$ac_ext <<_ACEOF
19440/* confdefs.h. */
19441_ACEOF
19442cat confdefs.h >>conftest.$ac_ext
19443cat >>conftest.$ac_ext <<_ACEOF
19444/* end confdefs.h. */
19445$ac_includes_default
19446int
19447main ()
19448{
19449static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
19450test_array [0] = 0
19451
19452 ;
19453 return 0;
19454}
19455_ACEOF
19456rm -f conftest.$ac_objext
19457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19458 (eval $ac_compile) 2>conftest.er1
a848cd7e 19459 ac_status=$?
ac1cb8d3
VS
19460 grep -v '^ *+' conftest.er1 >conftest.err
19461 rm -f conftest.er1
19462 cat conftest.err >&5
a848cd7e
SC
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); } &&
479c790c 19465 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19467 (eval $ac_try) 2>&5
19468 ac_status=$?
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); }; } &&
19471 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19473 (eval $ac_try) 2>&5
19474 ac_status=$?
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); }; }; then
19477 ac_lo=0 ac_mid=0
19478 while :; do
19479 cat >conftest.$ac_ext <<_ACEOF
19480/* confdefs.h. */
19481_ACEOF
19482cat confdefs.h >>conftest.$ac_ext
19483cat >>conftest.$ac_ext <<_ACEOF
19484/* end confdefs.h. */
19485$ac_includes_default
19486int
19487main ()
19488{
19489static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19490test_array [0] = 0
19491
19492 ;
19493 return 0;
19494}
19495_ACEOF
19496rm -f conftest.$ac_objext
19497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19498 (eval $ac_compile) 2>conftest.er1
a848cd7e 19499 ac_status=$?
ac1cb8d3
VS
19500 grep -v '^ *+' conftest.er1 >conftest.err
19501 rm -f conftest.er1
19502 cat conftest.err >&5
a848cd7e
SC
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); } &&
479c790c 19505 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19507 (eval $ac_try) 2>&5
19508 ac_status=$?
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); }; } &&
19511 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19513 (eval $ac_try) 2>&5
19514 ac_status=$?
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); }; }; then
19517 ac_hi=$ac_mid; break
19518else
19519 echo "$as_me: failed program was:" >&5
19520sed 's/^/| /' conftest.$ac_ext >&5
19521
19522ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19523 if test $ac_lo -le $ac_mid; then
19524 ac_lo= ac_hi=
19525 break
19526 fi
19527 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19528fi
ac1cb8d3 19529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19530 done
19531else
19532 echo "$as_me: failed program was:" >&5
19533sed 's/^/| /' conftest.$ac_ext >&5
19534
19535cat >conftest.$ac_ext <<_ACEOF
19536/* confdefs.h. */
19537_ACEOF
19538cat confdefs.h >>conftest.$ac_ext
19539cat >>conftest.$ac_ext <<_ACEOF
19540/* end confdefs.h. */
19541$ac_includes_default
19542int
19543main ()
19544{
19545static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19546test_array [0] = 0
19547
19548 ;
19549 return 0;
19550}
19551_ACEOF
19552rm -f conftest.$ac_objext
19553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19554 (eval $ac_compile) 2>conftest.er1
a848cd7e 19555 ac_status=$?
ac1cb8d3
VS
19556 grep -v '^ *+' conftest.er1 >conftest.err
19557 rm -f conftest.er1
19558 cat conftest.err >&5
a848cd7e
SC
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); } &&
479c790c 19561 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19563 (eval $ac_try) 2>&5
19564 ac_status=$?
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); }; } &&
19567 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19569 (eval $ac_try) 2>&5
19570 ac_status=$?
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); }; }; then
19573 ac_hi=-1 ac_mid=-1
19574 while :; do
19575 cat >conftest.$ac_ext <<_ACEOF
19576/* confdefs.h. */
19577_ACEOF
19578cat confdefs.h >>conftest.$ac_ext
19579cat >>conftest.$ac_ext <<_ACEOF
19580/* end confdefs.h. */
19581$ac_includes_default
19582int
19583main ()
19584{
19585static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19586test_array [0] = 0
19587
19588 ;
19589 return 0;
19590}
19591_ACEOF
19592rm -f conftest.$ac_objext
19593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19594 (eval $ac_compile) 2>conftest.er1
a848cd7e 19595 ac_status=$?
ac1cb8d3
VS
19596 grep -v '^ *+' conftest.er1 >conftest.err
19597 rm -f conftest.er1
19598 cat conftest.err >&5
a848cd7e
SC
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } &&
479c790c 19601 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19603 (eval $ac_try) 2>&5
19604 ac_status=$?
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); }; } &&
19607 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19609 (eval $ac_try) 2>&5
19610 ac_status=$?
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); }; }; then
19613 ac_lo=$ac_mid; break
19614else
19615 echo "$as_me: failed program was:" >&5
19616sed 's/^/| /' conftest.$ac_ext >&5
19617
19618ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19619 if test $ac_mid -le $ac_hi; then
19620 ac_lo= ac_hi=
19621 break
19622 fi
19623 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19624fi
ac1cb8d3 19625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19626 done
19627else
19628 echo "$as_me: failed program was:" >&5
19629sed 's/^/| /' conftest.$ac_ext >&5
19630
19631ac_lo= ac_hi=
19632fi
ac1cb8d3 19633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19634fi
ac1cb8d3 19635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19636# Binary search between lo and hi bounds.
19637while test "x$ac_lo" != "x$ac_hi"; do
19638 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19639 cat >conftest.$ac_ext <<_ACEOF
19640/* confdefs.h. */
19641_ACEOF
19642cat confdefs.h >>conftest.$ac_ext
19643cat >>conftest.$ac_ext <<_ACEOF
19644/* end confdefs.h. */
19645$ac_includes_default
19646int
19647main ()
19648{
19649static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19650test_array [0] = 0
19651
19652 ;
19653 return 0;
19654}
19655_ACEOF
19656rm -f conftest.$ac_objext
19657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19658 (eval $ac_compile) 2>conftest.er1
a848cd7e 19659 ac_status=$?
ac1cb8d3
VS
19660 grep -v '^ *+' conftest.er1 >conftest.err
19661 rm -f conftest.er1
19662 cat conftest.err >&5
a848cd7e
SC
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); } &&
479c790c 19665 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19667 (eval $ac_try) 2>&5
19668 ac_status=$?
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); }; } &&
19671 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19673 (eval $ac_try) 2>&5
19674 ac_status=$?
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); }; }; then
19677 ac_hi=$ac_mid
19678else
19679 echo "$as_me: failed program was:" >&5
19680sed 's/^/| /' conftest.$ac_ext >&5
19681
19682ac_lo=`expr '(' $ac_mid ')' + 1`
19683fi
ac1cb8d3 19684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19685done
19686case $ac_lo in
19687?*) ac_cv_sizeof_int=$ac_lo;;
19688'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19689See \`config.log' for more details." >&5
19690echo "$as_me: error: cannot compute sizeof (int), 77
19691See \`config.log' for more details." >&2;}
19692 { (exit 1); exit 1; }; } ;;
19693esac
19694else
19695 if test "$cross_compiling" = yes; then
479c790c
VZ
19696 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19697echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19698 { (exit 1); exit 1; }; }
19699else
19700 cat >conftest.$ac_ext <<_ACEOF
19701/* confdefs.h. */
19702_ACEOF
19703cat confdefs.h >>conftest.$ac_ext
19704cat >>conftest.$ac_ext <<_ACEOF
19705/* end confdefs.h. */
19706$ac_includes_default
19707long longval () { return (long) (sizeof (int)); }
19708unsigned long ulongval () { return (long) (sizeof (int)); }
19709#include <stdio.h>
19710#include <stdlib.h>
19711int
19712main ()
19713{
19714
19715 FILE *f = fopen ("conftest.val", "w");
19716 if (! f)
19717 exit (1);
19718 if (((long) (sizeof (int))) < 0)
19719 {
19720 long i = longval ();
19721 if (i != ((long) (sizeof (int))))
19722 exit (1);
19723 fprintf (f, "%ld\n", i);
19724 }
19725 else
19726 {
19727 unsigned long i = ulongval ();
19728 if (i != ((long) (sizeof (int))))
19729 exit (1);
19730 fprintf (f, "%lu\n", i);
19731 }
19732 exit (ferror (f) || fclose (f) != 0);
19733
19734 ;
19735 return 0;
19736}
19737_ACEOF
19738rm -f conftest$ac_exeext
19739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19740 (eval $ac_link) 2>&5
19741 ac_status=$?
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19745 (eval $ac_try) 2>&5
19746 ac_status=$?
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); }; }; then
19749 ac_cv_sizeof_int=`cat conftest.val`
19750else
19751 echo "$as_me: program exited with status $ac_status" >&5
19752echo "$as_me: failed program was:" >&5
19753sed 's/^/| /' conftest.$ac_ext >&5
19754
19755( exit $ac_status )
19756{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19757See \`config.log' for more details." >&5
19758echo "$as_me: error: cannot compute sizeof (int), 77
19759See \`config.log' for more details." >&2;}
19760 { (exit 1); exit 1; }; }
19761fi
ac1cb8d3 19762rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19763fi
19764fi
19765rm -f conftest.val
19766else
19767 ac_cv_sizeof_int=0
19768fi
19769fi
19770echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19771echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19772cat >>confdefs.h <<_ACEOF
19773#define SIZEOF_INT $ac_cv_sizeof_int
19774_ACEOF
19775
19776
19777echo "$as_me:$LINENO: checking for long" >&5
19778echo $ECHO_N "checking for long... $ECHO_C" >&6
19779if test "${ac_cv_type_long+set}" = set; then
19780 echo $ECHO_N "(cached) $ECHO_C" >&6
19781else
19782 cat >conftest.$ac_ext <<_ACEOF
19783/* confdefs.h. */
19784_ACEOF
19785cat confdefs.h >>conftest.$ac_ext
19786cat >>conftest.$ac_ext <<_ACEOF
19787/* end confdefs.h. */
19788$ac_includes_default
19789int
19790main ()
19791{
19792if ((long *) 0)
19793 return 0;
19794if (sizeof (long))
19795 return 0;
19796 ;
19797 return 0;
19798}
19799_ACEOF
19800rm -f conftest.$ac_objext
19801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19802 (eval $ac_compile) 2>conftest.er1
a848cd7e 19803 ac_status=$?
ac1cb8d3
VS
19804 grep -v '^ *+' conftest.er1 >conftest.err
19805 rm -f conftest.er1
19806 cat conftest.err >&5
a848cd7e
SC
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); } &&
479c790c 19809 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811 (eval $ac_try) 2>&5
19812 ac_status=$?
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; } &&
19815 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19817 (eval $ac_try) 2>&5
19818 ac_status=$?
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); }; }; then
19821 ac_cv_type_long=yes
19822else
19823 echo "$as_me: failed program was:" >&5
19824sed 's/^/| /' conftest.$ac_ext >&5
19825
19826ac_cv_type_long=no
19827fi
ac1cb8d3 19828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19829fi
19830echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19831echo "${ECHO_T}$ac_cv_type_long" >&6
19832
19833echo "$as_me:$LINENO: checking size of long" >&5
19834echo $ECHO_N "checking size of long... $ECHO_C" >&6
19835if test "${ac_cv_sizeof_long+set}" = set; then
19836 echo $ECHO_N "(cached) $ECHO_C" >&6
19837else
19838 if test "$ac_cv_type_long" = yes; then
19839 # The cast to unsigned long works around a bug in the HP C Compiler
19840 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19841 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19842 # This bug is HP SR number 8606223364.
19843 if test "$cross_compiling" = yes; then
19844 # Depending upon the size, compute the lo and hi bounds.
19845cat >conftest.$ac_ext <<_ACEOF
19846/* confdefs.h. */
19847_ACEOF
19848cat confdefs.h >>conftest.$ac_ext
19849cat >>conftest.$ac_ext <<_ACEOF
19850/* end confdefs.h. */
19851$ac_includes_default
19852int
19853main ()
19854{
19855static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19856test_array [0] = 0
19857
19858 ;
19859 return 0;
19860}
19861_ACEOF
19862rm -f conftest.$ac_objext
19863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19864 (eval $ac_compile) 2>conftest.er1
a848cd7e 19865 ac_status=$?
ac1cb8d3
VS
19866 grep -v '^ *+' conftest.er1 >conftest.err
19867 rm -f conftest.er1
19868 cat conftest.err >&5
a848cd7e
SC
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); } &&
479c790c 19871 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19873 (eval $ac_try) 2>&5
19874 ac_status=$?
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); }; } &&
19877 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19879 (eval $ac_try) 2>&5
19880 ac_status=$?
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); }; }; then
19883 ac_lo=0 ac_mid=0
19884 while :; do
19885 cat >conftest.$ac_ext <<_ACEOF
19886/* confdefs.h. */
19887_ACEOF
19888cat confdefs.h >>conftest.$ac_ext
19889cat >>conftest.$ac_ext <<_ACEOF
19890/* end confdefs.h. */
19891$ac_includes_default
19892int
19893main ()
19894{
19895static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19896test_array [0] = 0
19897
19898 ;
19899 return 0;
19900}
19901_ACEOF
19902rm -f conftest.$ac_objext
19903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19904 (eval $ac_compile) 2>conftest.er1
a848cd7e 19905 ac_status=$?
ac1cb8d3
VS
19906 grep -v '^ *+' conftest.er1 >conftest.err
19907 rm -f conftest.er1
19908 cat conftest.err >&5
a848cd7e
SC
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); } &&
479c790c 19911 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19913 (eval $ac_try) 2>&5
19914 ac_status=$?
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); }; } &&
19917 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19919 (eval $ac_try) 2>&5
19920 ac_status=$?
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); }; }; then
19923 ac_hi=$ac_mid; break
19924else
19925 echo "$as_me: failed program was:" >&5
19926sed 's/^/| /' conftest.$ac_ext >&5
19927
19928ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19929 if test $ac_lo -le $ac_mid; then
19930 ac_lo= ac_hi=
19931 break
19932 fi
19933 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19934fi
ac1cb8d3 19935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19936 done
19937else
19938 echo "$as_me: failed program was:" >&5
19939sed 's/^/| /' conftest.$ac_ext >&5
19940
19941cat >conftest.$ac_ext <<_ACEOF
19942/* confdefs.h. */
19943_ACEOF
19944cat confdefs.h >>conftest.$ac_ext
19945cat >>conftest.$ac_ext <<_ACEOF
19946/* end confdefs.h. */
19947$ac_includes_default
19948int
19949main ()
19950{
19951static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19952test_array [0] = 0
19953
19954 ;
19955 return 0;
19956}
19957_ACEOF
19958rm -f conftest.$ac_objext
19959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19960 (eval $ac_compile) 2>conftest.er1
a848cd7e 19961 ac_status=$?
ac1cb8d3
VS
19962 grep -v '^ *+' conftest.er1 >conftest.err
19963 rm -f conftest.er1
19964 cat conftest.err >&5
a848cd7e
SC
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); } &&
479c790c 19967 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19969 (eval $ac_try) 2>&5
19970 ac_status=$?
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); }; } &&
19973 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19975 (eval $ac_try) 2>&5
19976 ac_status=$?
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); }; }; then
19979 ac_hi=-1 ac_mid=-1
19980 while :; do
19981 cat >conftest.$ac_ext <<_ACEOF
19982/* confdefs.h. */
19983_ACEOF
19984cat confdefs.h >>conftest.$ac_ext
19985cat >>conftest.$ac_ext <<_ACEOF
19986/* end confdefs.h. */
19987$ac_includes_default
19988int
19989main ()
19990{
19991static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19992test_array [0] = 0
19993
19994 ;
19995 return 0;
19996}
19997_ACEOF
19998rm -f conftest.$ac_objext
19999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20000 (eval $ac_compile) 2>conftest.er1
a848cd7e 20001 ac_status=$?
ac1cb8d3
VS
20002 grep -v '^ *+' conftest.er1 >conftest.err
20003 rm -f conftest.er1
20004 cat conftest.err >&5
a848cd7e
SC
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); } &&
479c790c 20007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20009 (eval $ac_try) 2>&5
20010 ac_status=$?
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); }; } &&
20013 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20015 (eval $ac_try) 2>&5
20016 ac_status=$?
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); }; }; then
20019 ac_lo=$ac_mid; break
20020else
20021 echo "$as_me: failed program was:" >&5
20022sed 's/^/| /' conftest.$ac_ext >&5
20023
20024ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20025 if test $ac_mid -le $ac_hi; then
20026 ac_lo= ac_hi=
20027 break
20028 fi
20029 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20030fi
ac1cb8d3 20031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20032 done
20033else
20034 echo "$as_me: failed program was:" >&5
20035sed 's/^/| /' conftest.$ac_ext >&5
20036
20037ac_lo= ac_hi=
20038fi
ac1cb8d3 20039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20040fi
ac1cb8d3 20041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20042# Binary search between lo and hi bounds.
20043while test "x$ac_lo" != "x$ac_hi"; do
20044 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20045 cat >conftest.$ac_ext <<_ACEOF
20046/* confdefs.h. */
20047_ACEOF
20048cat confdefs.h >>conftest.$ac_ext
20049cat >>conftest.$ac_ext <<_ACEOF
20050/* end confdefs.h. */
20051$ac_includes_default
20052int
20053main ()
20054{
20055static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
20056test_array [0] = 0
20057
20058 ;
20059 return 0;
20060}
20061_ACEOF
20062rm -f conftest.$ac_objext
20063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20064 (eval $ac_compile) 2>conftest.er1
a848cd7e 20065 ac_status=$?
ac1cb8d3
VS
20066 grep -v '^ *+' conftest.er1 >conftest.err
20067 rm -f conftest.er1
20068 cat conftest.err >&5
a848cd7e
SC
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); } &&
479c790c 20071 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20073 (eval $ac_try) 2>&5
20074 ac_status=$?
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); }; } &&
20077 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079 (eval $ac_try) 2>&5
20080 ac_status=$?
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); }; }; then
20083 ac_hi=$ac_mid
20084else
20085 echo "$as_me: failed program was:" >&5
20086sed 's/^/| /' conftest.$ac_ext >&5
20087
20088ac_lo=`expr '(' $ac_mid ')' + 1`
20089fi
ac1cb8d3 20090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20091done
20092case $ac_lo in
20093?*) ac_cv_sizeof_long=$ac_lo;;
20094'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20095See \`config.log' for more details." >&5
20096echo "$as_me: error: cannot compute sizeof (long), 77
20097See \`config.log' for more details." >&2;}
20098 { (exit 1); exit 1; }; } ;;
20099esac
20100else
20101 if test "$cross_compiling" = yes; then
479c790c
VZ
20102 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20103echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20104 { (exit 1); exit 1; }; }
20105else
20106 cat >conftest.$ac_ext <<_ACEOF
20107/* confdefs.h. */
20108_ACEOF
20109cat confdefs.h >>conftest.$ac_ext
20110cat >>conftest.$ac_ext <<_ACEOF
20111/* end confdefs.h. */
20112$ac_includes_default
20113long longval () { return (long) (sizeof (long)); }
20114unsigned long ulongval () { return (long) (sizeof (long)); }
20115#include <stdio.h>
20116#include <stdlib.h>
20117int
20118main ()
20119{
20120
20121 FILE *f = fopen ("conftest.val", "w");
20122 if (! f)
20123 exit (1);
20124 if (((long) (sizeof (long))) < 0)
20125 {
20126 long i = longval ();
20127 if (i != ((long) (sizeof (long))))
20128 exit (1);
20129 fprintf (f, "%ld\n", i);
20130 }
20131 else
20132 {
20133 unsigned long i = ulongval ();
20134 if (i != ((long) (sizeof (long))))
20135 exit (1);
20136 fprintf (f, "%lu\n", i);
20137 }
20138 exit (ferror (f) || fclose (f) != 0);
20139
20140 ;
20141 return 0;
20142}
20143_ACEOF
20144rm -f conftest$ac_exeext
20145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20146 (eval $ac_link) 2>&5
20147 ac_status=$?
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151 (eval $ac_try) 2>&5
20152 ac_status=$?
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; }; then
20155 ac_cv_sizeof_long=`cat conftest.val`
20156else
20157 echo "$as_me: program exited with status $ac_status" >&5
20158echo "$as_me: failed program was:" >&5
20159sed 's/^/| /' conftest.$ac_ext >&5
20160
20161( exit $ac_status )
20162{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20163See \`config.log' for more details." >&5
20164echo "$as_me: error: cannot compute sizeof (long), 77
20165See \`config.log' for more details." >&2;}
20166 { (exit 1); exit 1; }; }
20167fi
ac1cb8d3 20168rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20169fi
20170fi
20171rm -f conftest.val
20172else
20173 ac_cv_sizeof_long=0
20174fi
20175fi
20176echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
20177echo "${ECHO_T}$ac_cv_sizeof_long" >&6
20178cat >>confdefs.h <<_ACEOF
20179#define SIZEOF_LONG $ac_cv_sizeof_long
20180_ACEOF
20181
20182
20183echo "$as_me:$LINENO: checking for size_t" >&5
20184echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20185if test "${ac_cv_type_size_t+set}" = set; then
20186 echo $ECHO_N "(cached) $ECHO_C" >&6
20187else
20188 cat >conftest.$ac_ext <<_ACEOF
20189/* confdefs.h. */
20190_ACEOF
20191cat confdefs.h >>conftest.$ac_ext
20192cat >>conftest.$ac_ext <<_ACEOF
20193/* end confdefs.h. */
20194$ac_includes_default
20195int
20196main ()
20197{
20198if ((size_t *) 0)
20199 return 0;
20200if (sizeof (size_t))
20201 return 0;
20202 ;
20203 return 0;
20204}
20205_ACEOF
20206rm -f conftest.$ac_objext
20207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20208 (eval $ac_compile) 2>conftest.er1
a848cd7e 20209 ac_status=$?
ac1cb8d3
VS
20210 grep -v '^ *+' conftest.er1 >conftest.err
20211 rm -f conftest.er1
20212 cat conftest.err >&5
a848cd7e
SC
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 (exit $ac_status); } &&
479c790c 20215 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20217 (eval $ac_try) 2>&5
20218 ac_status=$?
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); }; } &&
20221 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20223 (eval $ac_try) 2>&5
20224 ac_status=$?
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); }; }; then
20227 ac_cv_type_size_t=yes
20228else
20229 echo "$as_me: failed program was:" >&5
20230sed 's/^/| /' conftest.$ac_ext >&5
20231
20232ac_cv_type_size_t=no
20233fi
ac1cb8d3 20234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20235fi
20236echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20237echo "${ECHO_T}$ac_cv_type_size_t" >&6
20238
20239echo "$as_me:$LINENO: checking size of size_t" >&5
20240echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
20241if test "${ac_cv_sizeof_size_t+set}" = set; then
20242 echo $ECHO_N "(cached) $ECHO_C" >&6
20243else
20244 if test "$ac_cv_type_size_t" = yes; then
20245 # The cast to unsigned long works around a bug in the HP C Compiler
20246 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20247 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20248 # This bug is HP SR number 8606223364.
20249 if test "$cross_compiling" = yes; then
20250 # Depending upon the size, compute the lo and hi bounds.
20251cat >conftest.$ac_ext <<_ACEOF
20252/* confdefs.h. */
20253_ACEOF
20254cat confdefs.h >>conftest.$ac_ext
20255cat >>conftest.$ac_ext <<_ACEOF
20256/* end confdefs.h. */
20257$ac_includes_default
20258int
20259main ()
20260{
20261static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
20262test_array [0] = 0
20263
20264 ;
20265 return 0;
20266}
20267_ACEOF
20268rm -f conftest.$ac_objext
20269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20270 (eval $ac_compile) 2>conftest.er1
a848cd7e 20271 ac_status=$?
ac1cb8d3
VS
20272 grep -v '^ *+' conftest.er1 >conftest.err
20273 rm -f conftest.er1
20274 cat conftest.err >&5
a848cd7e
SC
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); } &&
479c790c 20277 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20279 (eval $ac_try) 2>&5
20280 ac_status=$?
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); }; } &&
20283 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20285 (eval $ac_try) 2>&5
20286 ac_status=$?
20287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); }; }; then
20289 ac_lo=0 ac_mid=0
20290 while :; do
20291 cat >conftest.$ac_ext <<_ACEOF
20292/* confdefs.h. */
20293_ACEOF
20294cat confdefs.h >>conftest.$ac_ext
20295cat >>conftest.$ac_ext <<_ACEOF
20296/* end confdefs.h. */
20297$ac_includes_default
20298int
20299main ()
20300{
20301static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20302test_array [0] = 0
20303
20304 ;
20305 return 0;
20306}
20307_ACEOF
20308rm -f conftest.$ac_objext
20309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20310 (eval $ac_compile) 2>conftest.er1
a848cd7e 20311 ac_status=$?
ac1cb8d3
VS
20312 grep -v '^ *+' conftest.er1 >conftest.err
20313 rm -f conftest.er1
20314 cat conftest.err >&5
a848cd7e
SC
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); } &&
479c790c 20317 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20319 (eval $ac_try) 2>&5
20320 ac_status=$?
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); }; } &&
20323 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20325 (eval $ac_try) 2>&5
20326 ac_status=$?
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); }; }; then
20329 ac_hi=$ac_mid; break
20330else
20331 echo "$as_me: failed program was:" >&5
20332sed 's/^/| /' conftest.$ac_ext >&5
20333
20334ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20335 if test $ac_lo -le $ac_mid; then
20336 ac_lo= ac_hi=
20337 break
20338 fi
20339 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20340fi
ac1cb8d3 20341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20342 done
20343else
20344 echo "$as_me: failed program was:" >&5
20345sed 's/^/| /' conftest.$ac_ext >&5
20346
20347cat >conftest.$ac_ext <<_ACEOF
20348/* confdefs.h. */
20349_ACEOF
20350cat confdefs.h >>conftest.$ac_ext
20351cat >>conftest.$ac_ext <<_ACEOF
20352/* end confdefs.h. */
20353$ac_includes_default
20354int
20355main ()
20356{
20357static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
20358test_array [0] = 0
20359
20360 ;
20361 return 0;
20362}
20363_ACEOF
20364rm -f conftest.$ac_objext
20365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20366 (eval $ac_compile) 2>conftest.er1
a848cd7e 20367 ac_status=$?
ac1cb8d3
VS
20368 grep -v '^ *+' conftest.er1 >conftest.err
20369 rm -f conftest.er1
20370 cat conftest.err >&5
a848cd7e
SC
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); } &&
479c790c 20373 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20375 (eval $ac_try) 2>&5
20376 ac_status=$?
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); }; } &&
20379 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20381 (eval $ac_try) 2>&5
20382 ac_status=$?
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); }; }; then
20385 ac_hi=-1 ac_mid=-1
20386 while :; do
20387 cat >conftest.$ac_ext <<_ACEOF
20388/* confdefs.h. */
20389_ACEOF
20390cat confdefs.h >>conftest.$ac_ext
20391cat >>conftest.$ac_ext <<_ACEOF
20392/* end confdefs.h. */
20393$ac_includes_default
20394int
20395main ()
20396{
20397static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
20398test_array [0] = 0
20399
20400 ;
20401 return 0;
20402}
20403_ACEOF
20404rm -f conftest.$ac_objext
20405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20406 (eval $ac_compile) 2>conftest.er1
a848cd7e 20407 ac_status=$?
ac1cb8d3
VS
20408 grep -v '^ *+' conftest.er1 >conftest.err
20409 rm -f conftest.er1
20410 cat conftest.err >&5
a848cd7e
SC
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); } &&
479c790c 20413 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20415 (eval $ac_try) 2>&5
20416 ac_status=$?
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); }; } &&
20419 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20421 (eval $ac_try) 2>&5
20422 ac_status=$?
20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); }; }; then
20425 ac_lo=$ac_mid; break
20426else
20427 echo "$as_me: failed program was:" >&5
20428sed 's/^/| /' conftest.$ac_ext >&5
20429
20430ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20431 if test $ac_mid -le $ac_hi; then
20432 ac_lo= ac_hi=
20433 break
20434 fi
20435 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20436fi
ac1cb8d3 20437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20438 done
20439else
20440 echo "$as_me: failed program was:" >&5
20441sed 's/^/| /' conftest.$ac_ext >&5
20442
20443ac_lo= ac_hi=
20444fi
ac1cb8d3 20445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20446fi
ac1cb8d3 20447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20448# Binary search between lo and hi bounds.
20449while test "x$ac_lo" != "x$ac_hi"; do
20450 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20451 cat >conftest.$ac_ext <<_ACEOF
20452/* confdefs.h. */
20453_ACEOF
20454cat confdefs.h >>conftest.$ac_ext
20455cat >>conftest.$ac_ext <<_ACEOF
20456/* end confdefs.h. */
20457$ac_includes_default
20458int
20459main ()
20460{
20461static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20462test_array [0] = 0
20463
20464 ;
20465 return 0;
20466}
20467_ACEOF
20468rm -f conftest.$ac_objext
20469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20470 (eval $ac_compile) 2>conftest.er1
a848cd7e 20471 ac_status=$?
ac1cb8d3
VS
20472 grep -v '^ *+' conftest.er1 >conftest.err
20473 rm -f conftest.er1
20474 cat conftest.err >&5
a848cd7e
SC
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); } &&
479c790c 20477 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20479 (eval $ac_try) 2>&5
20480 ac_status=$?
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); }; } &&
20483 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20485 (eval $ac_try) 2>&5
20486 ac_status=$?
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); }; }; then
20489 ac_hi=$ac_mid
20490else
20491 echo "$as_me: failed program was:" >&5
20492sed 's/^/| /' conftest.$ac_ext >&5
20493
20494ac_lo=`expr '(' $ac_mid ')' + 1`
20495fi
ac1cb8d3 20496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20497done
20498case $ac_lo in
20499?*) ac_cv_sizeof_size_t=$ac_lo;;
20500'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20501See \`config.log' for more details." >&5
20502echo "$as_me: error: cannot compute sizeof (size_t), 77
20503See \`config.log' for more details." >&2;}
20504 { (exit 1); exit 1; }; } ;;
20505esac
20506else
20507 if test "$cross_compiling" = yes; then
479c790c
VZ
20508 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20509echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20510 { (exit 1); exit 1; }; }
20511else
20512 cat >conftest.$ac_ext <<_ACEOF
20513/* confdefs.h. */
20514_ACEOF
20515cat confdefs.h >>conftest.$ac_ext
20516cat >>conftest.$ac_ext <<_ACEOF
20517/* end confdefs.h. */
20518$ac_includes_default
20519long longval () { return (long) (sizeof (size_t)); }
20520unsigned long ulongval () { return (long) (sizeof (size_t)); }
20521#include <stdio.h>
20522#include <stdlib.h>
20523int
20524main ()
20525{
20526
20527 FILE *f = fopen ("conftest.val", "w");
20528 if (! f)
20529 exit (1);
20530 if (((long) (sizeof (size_t))) < 0)
20531 {
20532 long i = longval ();
20533 if (i != ((long) (sizeof (size_t))))
20534 exit (1);
20535 fprintf (f, "%ld\n", i);
20536 }
20537 else
20538 {
20539 unsigned long i = ulongval ();
20540 if (i != ((long) (sizeof (size_t))))
20541 exit (1);
20542 fprintf (f, "%lu\n", i);
20543 }
20544 exit (ferror (f) || fclose (f) != 0);
20545
20546 ;
20547 return 0;
20548}
20549_ACEOF
20550rm -f conftest$ac_exeext
20551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20552 (eval $ac_link) 2>&5
20553 ac_status=$?
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20557 (eval $ac_try) 2>&5
20558 ac_status=$?
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); }; }; then
20561 ac_cv_sizeof_size_t=`cat conftest.val`
20562else
20563 echo "$as_me: program exited with status $ac_status" >&5
20564echo "$as_me: failed program was:" >&5
20565sed 's/^/| /' conftest.$ac_ext >&5
20566
20567( exit $ac_status )
20568{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20569See \`config.log' for more details." >&5
20570echo "$as_me: error: cannot compute sizeof (size_t), 77
20571See \`config.log' for more details." >&2;}
20572 { (exit 1); exit 1; }; }
20573fi
ac1cb8d3 20574rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20575fi
20576fi
20577rm -f conftest.val
20578else
20579 ac_cv_sizeof_size_t=0
20580fi
20581fi
20582echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20583echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20584cat >>confdefs.h <<_ACEOF
20585#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20586_ACEOF
20587
20588
20589
20590case "${host}" in
20591 arm-*-linux* )
20592 echo "$as_me:$LINENO: checking for long long" >&5
20593echo $ECHO_N "checking for long long... $ECHO_C" >&6
20594if test "${ac_cv_type_long_long+set}" = set; then
20595 echo $ECHO_N "(cached) $ECHO_C" >&6
20596else
20597 cat >conftest.$ac_ext <<_ACEOF
20598/* confdefs.h. */
20599_ACEOF
20600cat confdefs.h >>conftest.$ac_ext
20601cat >>conftest.$ac_ext <<_ACEOF
20602/* end confdefs.h. */
20603$ac_includes_default
20604int
20605main ()
20606{
20607if ((long long *) 0)
20608 return 0;
20609if (sizeof (long long))
20610 return 0;
20611 ;
20612 return 0;
20613}
20614_ACEOF
20615rm -f conftest.$ac_objext
20616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20617 (eval $ac_compile) 2>conftest.er1
a848cd7e 20618 ac_status=$?
ac1cb8d3
VS
20619 grep -v '^ *+' conftest.er1 >conftest.err
20620 rm -f conftest.er1
20621 cat conftest.err >&5
a848cd7e
SC
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); } &&
479c790c 20624 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20626 (eval $ac_try) 2>&5
20627 ac_status=$?
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); }; } &&
20630 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20632 (eval $ac_try) 2>&5
20633 ac_status=$?
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); }; }; then
20636 ac_cv_type_long_long=yes
20637else
20638 echo "$as_me: failed program was:" >&5
20639sed 's/^/| /' conftest.$ac_ext >&5
20640
20641ac_cv_type_long_long=no
20642fi
ac1cb8d3 20643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20644fi
20645echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20646echo "${ECHO_T}$ac_cv_type_long_long" >&6
20647
20648echo "$as_me:$LINENO: checking size of long long" >&5
20649echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20650if test "${ac_cv_sizeof_long_long+set}" = set; then
20651 echo $ECHO_N "(cached) $ECHO_C" >&6
20652else
20653 if test "$ac_cv_type_long_long" = yes; then
20654 # The cast to unsigned long works around a bug in the HP C Compiler
20655 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20656 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20657 # This bug is HP SR number 8606223364.
20658 if test "$cross_compiling" = yes; then
20659 # Depending upon the size, compute the lo and hi bounds.
20660cat >conftest.$ac_ext <<_ACEOF
20661/* confdefs.h. */
20662_ACEOF
20663cat confdefs.h >>conftest.$ac_ext
20664cat >>conftest.$ac_ext <<_ACEOF
20665/* end confdefs.h. */
20666$ac_includes_default
20667int
20668main ()
20669{
20670static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20671test_array [0] = 0
20672
20673 ;
20674 return 0;
20675}
20676_ACEOF
20677rm -f conftest.$ac_objext
20678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20679 (eval $ac_compile) 2>conftest.er1
a848cd7e 20680 ac_status=$?
ac1cb8d3
VS
20681 grep -v '^ *+' conftest.er1 >conftest.err
20682 rm -f conftest.er1
20683 cat conftest.err >&5
a848cd7e
SC
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); } &&
479c790c 20686 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20688 (eval $ac_try) 2>&5
20689 ac_status=$?
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); }; } &&
20692 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20694 (eval $ac_try) 2>&5
20695 ac_status=$?
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); }; }; then
20698 ac_lo=0 ac_mid=0
20699 while :; do
20700 cat >conftest.$ac_ext <<_ACEOF
20701/* confdefs.h. */
20702_ACEOF
20703cat confdefs.h >>conftest.$ac_ext
20704cat >>conftest.$ac_ext <<_ACEOF
20705/* end confdefs.h. */
20706$ac_includes_default
20707int
20708main ()
20709{
20710static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20711test_array [0] = 0
20712
20713 ;
20714 return 0;
20715}
20716_ACEOF
20717rm -f conftest.$ac_objext
20718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20719 (eval $ac_compile) 2>conftest.er1
a848cd7e 20720 ac_status=$?
ac1cb8d3
VS
20721 grep -v '^ *+' conftest.er1 >conftest.err
20722 rm -f conftest.er1
20723 cat conftest.err >&5
a848cd7e
SC
20724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725 (exit $ac_status); } &&
479c790c 20726 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20728 (eval $ac_try) 2>&5
20729 ac_status=$?
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); }; } &&
20732 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20734 (eval $ac_try) 2>&5
20735 ac_status=$?
20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); }; }; then
20738 ac_hi=$ac_mid; break
20739else
20740 echo "$as_me: failed program was:" >&5
20741sed 's/^/| /' conftest.$ac_ext >&5
20742
20743ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20744 if test $ac_lo -le $ac_mid; then
20745 ac_lo= ac_hi=
20746 break
20747 fi
20748 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20749fi
ac1cb8d3 20750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20751 done
20752else
20753 echo "$as_me: failed program was:" >&5
20754sed 's/^/| /' conftest.$ac_ext >&5
20755
20756cat >conftest.$ac_ext <<_ACEOF
20757/* confdefs.h. */
20758_ACEOF
20759cat confdefs.h >>conftest.$ac_ext
20760cat >>conftest.$ac_ext <<_ACEOF
20761/* end confdefs.h. */
20762$ac_includes_default
20763int
20764main ()
20765{
20766static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20767test_array [0] = 0
20768
20769 ;
20770 return 0;
20771}
20772_ACEOF
20773rm -f conftest.$ac_objext
20774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20775 (eval $ac_compile) 2>conftest.er1
a848cd7e 20776 ac_status=$?
ac1cb8d3
VS
20777 grep -v '^ *+' conftest.er1 >conftest.err
20778 rm -f conftest.er1
20779 cat conftest.err >&5
a848cd7e
SC
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); } &&
479c790c 20782 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20784 (eval $ac_try) 2>&5
20785 ac_status=$?
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); }; } &&
20788 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790 (eval $ac_try) 2>&5
20791 ac_status=$?
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); }; }; then
20794 ac_hi=-1 ac_mid=-1
20795 while :; do
20796 cat >conftest.$ac_ext <<_ACEOF
20797/* confdefs.h. */
20798_ACEOF
20799cat confdefs.h >>conftest.$ac_ext
20800cat >>conftest.$ac_ext <<_ACEOF
20801/* end confdefs.h. */
20802$ac_includes_default
20803int
20804main ()
20805{
20806static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20807test_array [0] = 0
20808
20809 ;
20810 return 0;
20811}
20812_ACEOF
20813rm -f conftest.$ac_objext
20814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20815 (eval $ac_compile) 2>conftest.er1
a848cd7e 20816 ac_status=$?
ac1cb8d3
VS
20817 grep -v '^ *+' conftest.er1 >conftest.err
20818 rm -f conftest.er1
20819 cat conftest.err >&5
a848cd7e
SC
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); } &&
479c790c 20822 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20824 (eval $ac_try) 2>&5
20825 ac_status=$?
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); }; } &&
20828 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20830 (eval $ac_try) 2>&5
20831 ac_status=$?
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); }; }; then
20834 ac_lo=$ac_mid; break
20835else
20836 echo "$as_me: failed program was:" >&5
20837sed 's/^/| /' conftest.$ac_ext >&5
20838
20839ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20840 if test $ac_mid -le $ac_hi; then
20841 ac_lo= ac_hi=
20842 break
20843 fi
20844 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20845fi
ac1cb8d3 20846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20847 done
20848else
20849 echo "$as_me: failed program was:" >&5
20850sed 's/^/| /' conftest.$ac_ext >&5
20851
20852ac_lo= ac_hi=
20853fi
ac1cb8d3 20854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20855fi
ac1cb8d3 20856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20857# Binary search between lo and hi bounds.
20858while test "x$ac_lo" != "x$ac_hi"; do
20859 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20860 cat >conftest.$ac_ext <<_ACEOF
20861/* confdefs.h. */
20862_ACEOF
20863cat confdefs.h >>conftest.$ac_ext
20864cat >>conftest.$ac_ext <<_ACEOF
20865/* end confdefs.h. */
20866$ac_includes_default
20867int
20868main ()
20869{
20870static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20871test_array [0] = 0
20872
20873 ;
20874 return 0;
20875}
20876_ACEOF
20877rm -f conftest.$ac_objext
20878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20879 (eval $ac_compile) 2>conftest.er1
a848cd7e 20880 ac_status=$?
ac1cb8d3
VS
20881 grep -v '^ *+' conftest.er1 >conftest.err
20882 rm -f conftest.er1
20883 cat conftest.err >&5
a848cd7e
SC
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); } &&
479c790c 20886 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20888 (eval $ac_try) 2>&5
20889 ac_status=$?
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); }; } &&
20892 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20894 (eval $ac_try) 2>&5
20895 ac_status=$?
20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); }; }; then
20898 ac_hi=$ac_mid
20899else
20900 echo "$as_me: failed program was:" >&5
20901sed 's/^/| /' conftest.$ac_ext >&5
20902
20903ac_lo=`expr '(' $ac_mid ')' + 1`
20904fi
ac1cb8d3 20905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20906done
20907case $ac_lo in
20908?*) ac_cv_sizeof_long_long=$ac_lo;;
20909'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20910See \`config.log' for more details." >&5
20911echo "$as_me: error: cannot compute sizeof (long long), 77
20912See \`config.log' for more details." >&2;}
20913 { (exit 1); exit 1; }; } ;;
20914esac
20915else
20916 if test "$cross_compiling" = yes; then
479c790c
VZ
20917 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20918echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20919 { (exit 1); exit 1; }; }
20920else
20921 cat >conftest.$ac_ext <<_ACEOF
20922/* confdefs.h. */
20923_ACEOF
20924cat confdefs.h >>conftest.$ac_ext
20925cat >>conftest.$ac_ext <<_ACEOF
20926/* end confdefs.h. */
20927$ac_includes_default
20928long longval () { return (long) (sizeof (long long)); }
20929unsigned long ulongval () { return (long) (sizeof (long long)); }
20930#include <stdio.h>
20931#include <stdlib.h>
20932int
20933main ()
20934{
20935
20936 FILE *f = fopen ("conftest.val", "w");
20937 if (! f)
20938 exit (1);
20939 if (((long) (sizeof (long long))) < 0)
20940 {
20941 long i = longval ();
20942 if (i != ((long) (sizeof (long long))))
20943 exit (1);
20944 fprintf (f, "%ld\n", i);
20945 }
20946 else
20947 {
20948 unsigned long i = ulongval ();
20949 if (i != ((long) (sizeof (long long))))
20950 exit (1);
20951 fprintf (f, "%lu\n", i);
20952 }
20953 exit (ferror (f) || fclose (f) != 0);
20954
20955 ;
20956 return 0;
20957}
20958_ACEOF
20959rm -f conftest$ac_exeext
20960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20961 (eval $ac_link) 2>&5
20962 ac_status=$?
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20966 (eval $ac_try) 2>&5
20967 ac_status=$?
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); }; }; then
20970 ac_cv_sizeof_long_long=`cat conftest.val`
20971else
20972 echo "$as_me: program exited with status $ac_status" >&5
20973echo "$as_me: failed program was:" >&5
20974sed 's/^/| /' conftest.$ac_ext >&5
20975
20976( exit $ac_status )
20977{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20978See \`config.log' for more details." >&5
20979echo "$as_me: error: cannot compute sizeof (long long), 77
20980See \`config.log' for more details." >&2;}
20981 { (exit 1); exit 1; }; }
20982fi
ac1cb8d3 20983rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20984fi
20985fi
20986rm -f conftest.val
20987else
20988 ac_cv_sizeof_long_long=0
20989fi
20990fi
20991echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20992echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20993cat >>confdefs.h <<_ACEOF
20994#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20995_ACEOF
20996
20997
20998 ;;
20999 *-hp-hpux* )
21000 echo "$as_me:$LINENO: checking for long long" >&5
21001echo $ECHO_N "checking for long long... $ECHO_C" >&6
21002if test "${ac_cv_type_long_long+set}" = set; then
21003 echo $ECHO_N "(cached) $ECHO_C" >&6
21004else
21005 cat >conftest.$ac_ext <<_ACEOF
21006/* confdefs.h. */
21007_ACEOF
21008cat confdefs.h >>conftest.$ac_ext
21009cat >>conftest.$ac_ext <<_ACEOF
21010/* end confdefs.h. */
21011$ac_includes_default
21012int
21013main ()
21014{
21015if ((long long *) 0)
21016 return 0;
21017if (sizeof (long long))
21018 return 0;
21019 ;
21020 return 0;
21021}
21022_ACEOF
21023rm -f conftest.$ac_objext
21024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21025 (eval $ac_compile) 2>conftest.er1
a848cd7e 21026 ac_status=$?
ac1cb8d3
VS
21027 grep -v '^ *+' conftest.er1 >conftest.err
21028 rm -f conftest.er1
21029 cat conftest.err >&5
a848cd7e
SC
21030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031 (exit $ac_status); } &&
479c790c 21032 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21034 (eval $ac_try) 2>&5
21035 ac_status=$?
21036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037 (exit $ac_status); }; } &&
21038 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21040 (eval $ac_try) 2>&5
21041 ac_status=$?
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); }; }; then
21044 ac_cv_type_long_long=yes
21045else
21046 echo "$as_me: failed program was:" >&5
21047sed 's/^/| /' conftest.$ac_ext >&5
21048
21049ac_cv_type_long_long=no
21050fi
ac1cb8d3 21051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21052fi
21053echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21054echo "${ECHO_T}$ac_cv_type_long_long" >&6
21055
21056echo "$as_me:$LINENO: checking size of long long" >&5
21057echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21058if test "${ac_cv_sizeof_long_long+set}" = set; then
21059 echo $ECHO_N "(cached) $ECHO_C" >&6
21060else
21061 if test "$ac_cv_type_long_long" = yes; then
21062 # The cast to unsigned long works around a bug in the HP C Compiler
21063 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21064 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21065 # This bug is HP SR number 8606223364.
21066 if test "$cross_compiling" = yes; then
21067 # Depending upon the size, compute the lo and hi bounds.
21068cat >conftest.$ac_ext <<_ACEOF
21069/* confdefs.h. */
21070_ACEOF
21071cat confdefs.h >>conftest.$ac_ext
21072cat >>conftest.$ac_ext <<_ACEOF
21073/* end confdefs.h. */
21074$ac_includes_default
21075int
21076main ()
21077{
21078static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21079test_array [0] = 0
21080
21081 ;
21082 return 0;
21083}
21084_ACEOF
21085rm -f conftest.$ac_objext
21086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21087 (eval $ac_compile) 2>conftest.er1
a848cd7e 21088 ac_status=$?
ac1cb8d3
VS
21089 grep -v '^ *+' conftest.er1 >conftest.err
21090 rm -f conftest.er1
21091 cat conftest.err >&5
a848cd7e
SC
21092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); } &&
479c790c 21094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21096 (eval $ac_try) 2>&5
21097 ac_status=$?
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); }; } &&
21100 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21102 (eval $ac_try) 2>&5
21103 ac_status=$?
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); }; }; then
21106 ac_lo=0 ac_mid=0
21107 while :; do
21108 cat >conftest.$ac_ext <<_ACEOF
21109/* confdefs.h. */
21110_ACEOF
21111cat confdefs.h >>conftest.$ac_ext
21112cat >>conftest.$ac_ext <<_ACEOF
21113/* end confdefs.h. */
21114$ac_includes_default
21115int
21116main ()
21117{
21118static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21119test_array [0] = 0
21120
21121 ;
21122 return 0;
21123}
21124_ACEOF
21125rm -f conftest.$ac_objext
21126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21127 (eval $ac_compile) 2>conftest.er1
a848cd7e 21128 ac_status=$?
ac1cb8d3
VS
21129 grep -v '^ *+' conftest.er1 >conftest.err
21130 rm -f conftest.er1
21131 cat conftest.err >&5
a848cd7e
SC
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); } &&
479c790c 21134 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21136 (eval $ac_try) 2>&5
21137 ac_status=$?
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); }; } &&
21140 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21142 (eval $ac_try) 2>&5
21143 ac_status=$?
21144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145 (exit $ac_status); }; }; then
21146 ac_hi=$ac_mid; break
21147else
21148 echo "$as_me: failed program was:" >&5
21149sed 's/^/| /' conftest.$ac_ext >&5
21150
21151ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
21152 if test $ac_lo -le $ac_mid; then
21153 ac_lo= ac_hi=
21154 break
21155 fi
21156 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 21157fi
ac1cb8d3 21158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21159 done
21160else
21161 echo "$as_me: failed program was:" >&5
21162sed 's/^/| /' conftest.$ac_ext >&5
21163
21164cat >conftest.$ac_ext <<_ACEOF
21165/* confdefs.h. */
21166_ACEOF
21167cat confdefs.h >>conftest.$ac_ext
21168cat >>conftest.$ac_ext <<_ACEOF
21169/* end confdefs.h. */
21170$ac_includes_default
21171int
21172main ()
21173{
21174static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21175test_array [0] = 0
21176
21177 ;
21178 return 0;
21179}
21180_ACEOF
21181rm -f conftest.$ac_objext
21182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21183 (eval $ac_compile) 2>conftest.er1
a848cd7e 21184 ac_status=$?
ac1cb8d3
VS
21185 grep -v '^ *+' conftest.er1 >conftest.err
21186 rm -f conftest.er1
21187 cat conftest.err >&5
a848cd7e
SC
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); } &&
479c790c 21190 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21192 (eval $ac_try) 2>&5
21193 ac_status=$?
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); }; } &&
21196 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21198 (eval $ac_try) 2>&5
21199 ac_status=$?
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); }; }; then
21202 ac_hi=-1 ac_mid=-1
21203 while :; do
21204 cat >conftest.$ac_ext <<_ACEOF
21205/* confdefs.h. */
21206_ACEOF
21207cat confdefs.h >>conftest.$ac_ext
21208cat >>conftest.$ac_ext <<_ACEOF
21209/* end confdefs.h. */
21210$ac_includes_default
21211int
21212main ()
21213{
21214static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21215test_array [0] = 0
21216
21217 ;
21218 return 0;
21219}
21220_ACEOF
21221rm -f conftest.$ac_objext
21222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21223 (eval $ac_compile) 2>conftest.er1
a848cd7e 21224 ac_status=$?
ac1cb8d3
VS
21225 grep -v '^ *+' conftest.er1 >conftest.err
21226 rm -f conftest.er1
21227 cat conftest.err >&5
a848cd7e
SC
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); } &&
479c790c 21230 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21232 (eval $ac_try) 2>&5
21233 ac_status=$?
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); }; } &&
21236 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21238 (eval $ac_try) 2>&5
21239 ac_status=$?
21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241 (exit $ac_status); }; }; then
21242 ac_lo=$ac_mid; break
21243else
21244 echo "$as_me: failed program was:" >&5
21245sed 's/^/| /' conftest.$ac_ext >&5
21246
21247ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
21248 if test $ac_mid -le $ac_hi; then
21249 ac_lo= ac_hi=
21250 break
21251 fi
21252 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21253fi
ac1cb8d3 21254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21255 done
21256else
21257 echo "$as_me: failed program was:" >&5
21258sed 's/^/| /' conftest.$ac_ext >&5
21259
21260ac_lo= ac_hi=
21261fi
ac1cb8d3 21262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21263fi
ac1cb8d3 21264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21265# Binary search between lo and hi bounds.
21266while test "x$ac_lo" != "x$ac_hi"; do
21267 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21268 cat >conftest.$ac_ext <<_ACEOF
21269/* confdefs.h. */
21270_ACEOF
21271cat confdefs.h >>conftest.$ac_ext
21272cat >>conftest.$ac_ext <<_ACEOF
21273/* end confdefs.h. */
21274$ac_includes_default
21275int
21276main ()
21277{
21278static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21279test_array [0] = 0
21280
21281 ;
21282 return 0;
21283}
21284_ACEOF
21285rm -f conftest.$ac_objext
21286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21287 (eval $ac_compile) 2>conftest.er1
a848cd7e 21288 ac_status=$?
ac1cb8d3
VS
21289 grep -v '^ *+' conftest.er1 >conftest.err
21290 rm -f conftest.er1
21291 cat conftest.err >&5
a848cd7e
SC
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); } &&
479c790c 21294 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21296 (eval $ac_try) 2>&5
21297 ac_status=$?
21298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299 (exit $ac_status); }; } &&
21300 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21302 (eval $ac_try) 2>&5
21303 ac_status=$?
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); }; }; then
21306 ac_hi=$ac_mid
21307else
21308 echo "$as_me: failed program was:" >&5
21309sed 's/^/| /' conftest.$ac_ext >&5
21310
21311ac_lo=`expr '(' $ac_mid ')' + 1`
21312fi
ac1cb8d3 21313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21314done
21315case $ac_lo in
21316?*) ac_cv_sizeof_long_long=$ac_lo;;
21317'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21318See \`config.log' for more details." >&5
21319echo "$as_me: error: cannot compute sizeof (long long), 77
21320See \`config.log' for more details." >&2;}
21321 { (exit 1); exit 1; }; } ;;
21322esac
21323else
21324 if test "$cross_compiling" = yes; then
479c790c
VZ
21325 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21326echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
21327 { (exit 1); exit 1; }; }
21328else
21329 cat >conftest.$ac_ext <<_ACEOF
21330/* confdefs.h. */
21331_ACEOF
21332cat confdefs.h >>conftest.$ac_ext
21333cat >>conftest.$ac_ext <<_ACEOF
21334/* end confdefs.h. */
21335$ac_includes_default
21336long longval () { return (long) (sizeof (long long)); }
21337unsigned long ulongval () { return (long) (sizeof (long long)); }
21338#include <stdio.h>
21339#include <stdlib.h>
21340int
21341main ()
21342{
21343
21344 FILE *f = fopen ("conftest.val", "w");
21345 if (! f)
21346 exit (1);
21347 if (((long) (sizeof (long long))) < 0)
21348 {
21349 long i = longval ();
21350 if (i != ((long) (sizeof (long long))))
21351 exit (1);
21352 fprintf (f, "%ld\n", i);
21353 }
21354 else
21355 {
21356 unsigned long i = ulongval ();
21357 if (i != ((long) (sizeof (long long))))
21358 exit (1);
21359 fprintf (f, "%lu\n", i);
21360 }
21361 exit (ferror (f) || fclose (f) != 0);
21362
21363 ;
21364 return 0;
21365}
21366_ACEOF
21367rm -f conftest$ac_exeext
21368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21369 (eval $ac_link) 2>&5
21370 ac_status=$?
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21374 (eval $ac_try) 2>&5
21375 ac_status=$?
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); }; }; then
21378 ac_cv_sizeof_long_long=`cat conftest.val`
21379else
21380 echo "$as_me: program exited with status $ac_status" >&5
21381echo "$as_me: failed program was:" >&5
21382sed 's/^/| /' conftest.$ac_ext >&5
21383
21384( exit $ac_status )
21385{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21386See \`config.log' for more details." >&5
21387echo "$as_me: error: cannot compute sizeof (long long), 77
21388See \`config.log' for more details." >&2;}
21389 { (exit 1); exit 1; }; }
21390fi
ac1cb8d3 21391rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21392fi
21393fi
21394rm -f conftest.val
21395else
21396 ac_cv_sizeof_long_long=0
21397fi
21398fi
21399echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21400echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21401cat >>confdefs.h <<_ACEOF
21402#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21403_ACEOF
21404
21405
21406 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 21407 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
21408 fi
21409 ;;
21410 * )
21411 echo "$as_me:$LINENO: checking for long long" >&5
21412echo $ECHO_N "checking for long long... $ECHO_C" >&6
21413if test "${ac_cv_type_long_long+set}" = set; then
21414 echo $ECHO_N "(cached) $ECHO_C" >&6
21415else
21416 cat >conftest.$ac_ext <<_ACEOF
21417/* confdefs.h. */
21418_ACEOF
21419cat confdefs.h >>conftest.$ac_ext
21420cat >>conftest.$ac_ext <<_ACEOF
21421/* end confdefs.h. */
21422$ac_includes_default
21423int
21424main ()
21425{
21426if ((long long *) 0)
21427 return 0;
21428if (sizeof (long long))
21429 return 0;
21430 ;
21431 return 0;
21432}
21433_ACEOF
21434rm -f conftest.$ac_objext
21435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21436 (eval $ac_compile) 2>conftest.er1
a848cd7e 21437 ac_status=$?
ac1cb8d3
VS
21438 grep -v '^ *+' conftest.er1 >conftest.err
21439 rm -f conftest.er1
21440 cat conftest.err >&5
a848cd7e
SC
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); } &&
479c790c 21443 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21445 (eval $ac_try) 2>&5
21446 ac_status=$?
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); }; } &&
21449 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21451 (eval $ac_try) 2>&5
21452 ac_status=$?
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); }; }; then
21455 ac_cv_type_long_long=yes
21456else
21457 echo "$as_me: failed program was:" >&5
21458sed 's/^/| /' conftest.$ac_ext >&5
21459
21460ac_cv_type_long_long=no
21461fi
ac1cb8d3 21462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21463fi
21464echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21465echo "${ECHO_T}$ac_cv_type_long_long" >&6
21466
21467echo "$as_me:$LINENO: checking size of long long" >&5
21468echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21469if test "${ac_cv_sizeof_long_long+set}" = set; then
21470 echo $ECHO_N "(cached) $ECHO_C" >&6
21471else
21472 if test "$ac_cv_type_long_long" = yes; then
21473 # The cast to unsigned long works around a bug in the HP C Compiler
21474 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21475 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21476 # This bug is HP SR number 8606223364.
21477 if test "$cross_compiling" = yes; then
21478 # Depending upon the size, compute the lo and hi bounds.
21479cat >conftest.$ac_ext <<_ACEOF
21480/* confdefs.h. */
21481_ACEOF
21482cat confdefs.h >>conftest.$ac_ext
21483cat >>conftest.$ac_ext <<_ACEOF
21484/* end confdefs.h. */
21485$ac_includes_default
21486int
21487main ()
21488{
21489static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21490test_array [0] = 0
21491
21492 ;
21493 return 0;
21494}
21495_ACEOF
21496rm -f conftest.$ac_objext
21497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21498 (eval $ac_compile) 2>conftest.er1
a848cd7e 21499 ac_status=$?
ac1cb8d3
VS
21500 grep -v '^ *+' conftest.er1 >conftest.err
21501 rm -f conftest.er1
21502 cat conftest.err >&5
a848cd7e
SC
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); } &&
479c790c 21505 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21507 (eval $ac_try) 2>&5
21508 ac_status=$?
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); }; } &&
21511 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513 (eval $ac_try) 2>&5
21514 ac_status=$?
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); }; }; then
21517 ac_lo=0 ac_mid=0
21518 while :; do
21519 cat >conftest.$ac_ext <<_ACEOF
21520/* confdefs.h. */
21521_ACEOF
21522cat confdefs.h >>conftest.$ac_ext
21523cat >>conftest.$ac_ext <<_ACEOF
21524/* end confdefs.h. */
21525$ac_includes_default
21526int
21527main ()
21528{
21529static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21530test_array [0] = 0
21531
21532 ;
21533 return 0;
21534}
21535_ACEOF
21536rm -f conftest.$ac_objext
21537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21538 (eval $ac_compile) 2>conftest.er1
a848cd7e 21539 ac_status=$?
ac1cb8d3
VS
21540 grep -v '^ *+' conftest.er1 >conftest.err
21541 rm -f conftest.er1
21542 cat conftest.err >&5
a848cd7e
SC
21543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544 (exit $ac_status); } &&
479c790c 21545 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21547 (eval $ac_try) 2>&5
21548 ac_status=$?
21549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); }; } &&
21551 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21553 (eval $ac_try) 2>&5
21554 ac_status=$?
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); }; }; then
21557 ac_hi=$ac_mid; break
21558else
21559 echo "$as_me: failed program was:" >&5
21560sed 's/^/| /' conftest.$ac_ext >&5
21561
21562ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
21563 if test $ac_lo -le $ac_mid; then
21564 ac_lo= ac_hi=
21565 break
21566 fi
21567 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 21568fi
ac1cb8d3 21569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21570 done
21571else
21572 echo "$as_me: failed program was:" >&5
21573sed 's/^/| /' conftest.$ac_ext >&5
21574
21575cat >conftest.$ac_ext <<_ACEOF
21576/* confdefs.h. */
21577_ACEOF
21578cat confdefs.h >>conftest.$ac_ext
21579cat >>conftest.$ac_ext <<_ACEOF
21580/* end confdefs.h. */
21581$ac_includes_default
21582int
21583main ()
21584{
21585static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21586test_array [0] = 0
21587
21588 ;
21589 return 0;
21590}
21591_ACEOF
21592rm -f conftest.$ac_objext
21593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21594 (eval $ac_compile) 2>conftest.er1
a848cd7e 21595 ac_status=$?
ac1cb8d3
VS
21596 grep -v '^ *+' conftest.er1 >conftest.err
21597 rm -f conftest.er1
21598 cat conftest.err >&5
a848cd7e
SC
21599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); } &&
479c790c 21601 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21603 (eval $ac_try) 2>&5
21604 ac_status=$?
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); }; } &&
21607 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21609 (eval $ac_try) 2>&5
21610 ac_status=$?
21611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612 (exit $ac_status); }; }; then
21613 ac_hi=-1 ac_mid=-1
21614 while :; do
21615 cat >conftest.$ac_ext <<_ACEOF
21616/* confdefs.h. */
21617_ACEOF
21618cat confdefs.h >>conftest.$ac_ext
21619cat >>conftest.$ac_ext <<_ACEOF
21620/* end confdefs.h. */
21621$ac_includes_default
21622int
21623main ()
21624{
21625static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21626test_array [0] = 0
21627
21628 ;
21629 return 0;
21630}
21631_ACEOF
21632rm -f conftest.$ac_objext
21633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21634 (eval $ac_compile) 2>conftest.er1
a848cd7e 21635 ac_status=$?
ac1cb8d3
VS
21636 grep -v '^ *+' conftest.er1 >conftest.err
21637 rm -f conftest.er1
21638 cat conftest.err >&5
a848cd7e
SC
21639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640 (exit $ac_status); } &&
479c790c 21641 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21643 (eval $ac_try) 2>&5
21644 ac_status=$?
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); }; } &&
21647 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21649 (eval $ac_try) 2>&5
21650 ac_status=$?
21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); }; }; then
21653 ac_lo=$ac_mid; break
21654else
21655 echo "$as_me: failed program was:" >&5
21656sed 's/^/| /' conftest.$ac_ext >&5
21657
21658ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
21659 if test $ac_mid -le $ac_hi; then
21660 ac_lo= ac_hi=
21661 break
21662 fi
21663 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21664fi
ac1cb8d3 21665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21666 done
21667else
21668 echo "$as_me: failed program was:" >&5
21669sed 's/^/| /' conftest.$ac_ext >&5
21670
21671ac_lo= ac_hi=
21672fi
ac1cb8d3 21673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21674fi
ac1cb8d3 21675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21676# Binary search between lo and hi bounds.
21677while test "x$ac_lo" != "x$ac_hi"; do
21678 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21679 cat >conftest.$ac_ext <<_ACEOF
21680/* confdefs.h. */
21681_ACEOF
21682cat confdefs.h >>conftest.$ac_ext
21683cat >>conftest.$ac_ext <<_ACEOF
21684/* end confdefs.h. */
21685$ac_includes_default
21686int
21687main ()
21688{
21689static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21690test_array [0] = 0
21691
21692 ;
21693 return 0;
21694}
21695_ACEOF
21696rm -f conftest.$ac_objext
21697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21698 (eval $ac_compile) 2>conftest.er1
a848cd7e 21699 ac_status=$?
ac1cb8d3
VS
21700 grep -v '^ *+' conftest.er1 >conftest.err
21701 rm -f conftest.er1
21702 cat conftest.err >&5
a848cd7e
SC
21703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704 (exit $ac_status); } &&
479c790c 21705 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21707 (eval $ac_try) 2>&5
21708 ac_status=$?
21709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); }; } &&
21711 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21713 (eval $ac_try) 2>&5
21714 ac_status=$?
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); }; }; then
21717 ac_hi=$ac_mid
21718else
21719 echo "$as_me: failed program was:" >&5
21720sed 's/^/| /' conftest.$ac_ext >&5
21721
21722ac_lo=`expr '(' $ac_mid ')' + 1`
21723fi
ac1cb8d3 21724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21725done
21726case $ac_lo in
21727?*) ac_cv_sizeof_long_long=$ac_lo;;
21728'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21729See \`config.log' for more details." >&5
21730echo "$as_me: error: cannot compute sizeof (long long), 77
21731See \`config.log' for more details." >&2;}
21732 { (exit 1); exit 1; }; } ;;
21733esac
21734else
21735 if test "$cross_compiling" = yes; then
479c790c
VZ
21736 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21737echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
21738 { (exit 1); exit 1; }; }
21739else
21740 cat >conftest.$ac_ext <<_ACEOF
21741/* confdefs.h. */
21742_ACEOF
21743cat confdefs.h >>conftest.$ac_ext
21744cat >>conftest.$ac_ext <<_ACEOF
21745/* end confdefs.h. */
21746$ac_includes_default
21747long longval () { return (long) (sizeof (long long)); }
21748unsigned long ulongval () { return (long) (sizeof (long long)); }
21749#include <stdio.h>
21750#include <stdlib.h>
21751int
21752main ()
21753{
21754
21755 FILE *f = fopen ("conftest.val", "w");
21756 if (! f)
21757 exit (1);
21758 if (((long) (sizeof (long long))) < 0)
21759 {
21760 long i = longval ();
21761 if (i != ((long) (sizeof (long long))))
21762 exit (1);
21763 fprintf (f, "%ld\n", i);
21764 }
21765 else
21766 {
21767 unsigned long i = ulongval ();
21768 if (i != ((long) (sizeof (long long))))
21769 exit (1);
21770 fprintf (f, "%lu\n", i);
21771 }
21772 exit (ferror (f) || fclose (f) != 0);
21773
21774 ;
21775 return 0;
21776}
21777_ACEOF
21778rm -f conftest$ac_exeext
21779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21780 (eval $ac_link) 2>&5
21781 ac_status=$?
21782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21785 (eval $ac_try) 2>&5
21786 ac_status=$?
21787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788 (exit $ac_status); }; }; then
21789 ac_cv_sizeof_long_long=`cat conftest.val`
21790else
21791 echo "$as_me: program exited with status $ac_status" >&5
21792echo "$as_me: failed program was:" >&5
21793sed 's/^/| /' conftest.$ac_ext >&5
21794
21795( exit $ac_status )
21796{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21797See \`config.log' for more details." >&5
21798echo "$as_me: error: cannot compute sizeof (long long), 77
21799See \`config.log' for more details." >&2;}
21800 { (exit 1); exit 1; }; }
21801fi
ac1cb8d3 21802rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21803fi
21804fi
21805rm -f conftest.val
21806else
21807 ac_cv_sizeof_long_long=0
21808fi
21809fi
21810echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21811echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21812cat >>confdefs.h <<_ACEOF
21813#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21814_ACEOF
21815
21816
21817esac
21818
238ecede
MW
21819echo "$as_me:$LINENO: checking for wchar_t" >&5
21820echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21821if test "${ac_cv_type_wchar_t+set}" = set; then
21822 echo $ECHO_N "(cached) $ECHO_C" >&6
21823else
21824 cat >conftest.$ac_ext <<_ACEOF
21825/* confdefs.h. */
21826_ACEOF
21827cat confdefs.h >>conftest.$ac_ext
21828cat >>conftest.$ac_ext <<_ACEOF
21829/* end confdefs.h. */
21830
83d8eb47
MW
21831 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21832 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21833 # error "fake wchar_t"
21834 #endif
21835 #ifdef HAVE_WCHAR_H
21836 # ifdef __CYGWIN__
21837 # include <stddef.h>
21838 # endif
21839 # include <wchar.h>
21840 #endif
21841 #ifdef HAVE_STDLIB_H
21842 # include <stdlib.h>
21843 #endif
21844 #include <stdio.h>
21845
21846
21847
21848int
21849main ()
21850{
21851if ((wchar_t *) 0)
21852 return 0;
21853if (sizeof (wchar_t))
21854 return 0;
21855 ;
21856 return 0;
21857}
21858_ACEOF
21859rm -f conftest.$ac_objext
21860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21861 (eval $ac_compile) 2>conftest.er1
21862 ac_status=$?
21863 grep -v '^ *+' conftest.er1 >conftest.err
21864 rm -f conftest.er1
21865 cat conftest.err >&5
21866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867 (exit $ac_status); } &&
479c790c 21868 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21870 (eval $ac_try) 2>&5
21871 ac_status=$?
21872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873 (exit $ac_status); }; } &&
21874 { ac_try='test -s conftest.$ac_objext'
21875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21876 (eval $ac_try) 2>&5
21877 ac_status=$?
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); }; }; then
21880 ac_cv_type_wchar_t=yes
21881else
21882 echo "$as_me: failed program was:" >&5
21883sed 's/^/| /' conftest.$ac_ext >&5
21884
21885ac_cv_type_wchar_t=no
21886fi
21887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21888fi
21889echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21890echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21891
a848cd7e
SC
21892echo "$as_me:$LINENO: checking size of wchar_t" >&5
21893echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 21894if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
21895 echo $ECHO_N "(cached) $ECHO_C" >&6
21896else
238ecede
MW
21897 if test "$ac_cv_type_wchar_t" = yes; then
21898 # The cast to unsigned long works around a bug in the HP C Compiler
21899 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21900 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21901 # This bug is HP SR number 8606223364.
21902 if test "$cross_compiling" = yes; then
21903 # Depending upon the size, compute the lo and hi bounds.
21904cat >conftest.$ac_ext <<_ACEOF
21905/* confdefs.h. */
21906_ACEOF
21907cat confdefs.h >>conftest.$ac_ext
21908cat >>conftest.$ac_ext <<_ACEOF
21909/* end confdefs.h. */
21910
83d8eb47
MW
21911 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21912 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21913 # error "fake wchar_t"
21914 #endif
21915 #ifdef HAVE_WCHAR_H
21916 # ifdef __CYGWIN__
21917 # include <stddef.h>
21918 # endif
21919 # include <wchar.h>
21920 #endif
21921 #ifdef HAVE_STDLIB_H
21922 # include <stdlib.h>
21923 #endif
21924 #include <stdio.h>
21925
21926
21927
21928int
21929main ()
21930{
21931static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21932test_array [0] = 0
21933
21934 ;
21935 return 0;
21936}
21937_ACEOF
21938rm -f conftest.$ac_objext
21939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21940 (eval $ac_compile) 2>conftest.er1
21941 ac_status=$?
21942 grep -v '^ *+' conftest.er1 >conftest.err
21943 rm -f conftest.er1
21944 cat conftest.err >&5
21945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946 (exit $ac_status); } &&
479c790c 21947 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21949 (eval $ac_try) 2>&5
21950 ac_status=$?
21951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952 (exit $ac_status); }; } &&
21953 { ac_try='test -s conftest.$ac_objext'
21954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21955 (eval $ac_try) 2>&5
21956 ac_status=$?
21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958 (exit $ac_status); }; }; then
21959 ac_lo=0 ac_mid=0
21960 while :; do
21961 cat >conftest.$ac_ext <<_ACEOF
21962/* confdefs.h. */
21963_ACEOF
21964cat confdefs.h >>conftest.$ac_ext
21965cat >>conftest.$ac_ext <<_ACEOF
21966/* end confdefs.h. */
21967
83d8eb47
MW
21968 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21969 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21970 # error "fake wchar_t"
21971 #endif
21972 #ifdef HAVE_WCHAR_H
21973 # ifdef __CYGWIN__
21974 # include <stddef.h>
21975 # endif
21976 # include <wchar.h>
21977 #endif
21978 #ifdef HAVE_STDLIB_H
21979 # include <stdlib.h>
21980 #endif
21981 #include <stdio.h>
21982
21983
21984
21985int
21986main ()
21987{
21988static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21989test_array [0] = 0
21990
21991 ;
21992 return 0;
21993}
21994_ACEOF
21995rm -f conftest.$ac_objext
21996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21997 (eval $ac_compile) 2>conftest.er1
21998 ac_status=$?
21999 grep -v '^ *+' conftest.er1 >conftest.err
22000 rm -f conftest.er1
22001 cat conftest.err >&5
22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003 (exit $ac_status); } &&
479c790c 22004 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
22005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22006 (eval $ac_try) 2>&5
22007 ac_status=$?
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); }; } &&
22010 { ac_try='test -s conftest.$ac_objext'
22011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22012 (eval $ac_try) 2>&5
22013 ac_status=$?
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); }; }; then
22016 ac_hi=$ac_mid; break
22017else
22018 echo "$as_me: failed program was:" >&5
22019sed 's/^/| /' conftest.$ac_ext >&5
22020
22021ac_lo=`expr $ac_mid + 1`
22022 if test $ac_lo -le $ac_mid; then
22023 ac_lo= ac_hi=
22024 break
22025 fi
22026 ac_mid=`expr 2 '*' $ac_mid + 1`
22027fi
22028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22029 done
22030else
22031 echo "$as_me: failed program was:" >&5
22032sed 's/^/| /' conftest.$ac_ext >&5
22033
22034cat >conftest.$ac_ext <<_ACEOF
22035/* confdefs.h. */
22036_ACEOF
22037cat confdefs.h >>conftest.$ac_ext
22038cat >>conftest.$ac_ext <<_ACEOF
22039/* end confdefs.h. */
22040
83d8eb47
MW
22041 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22042 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
22043 # error "fake wchar_t"
22044 #endif
22045 #ifdef HAVE_WCHAR_H
22046 # ifdef __CYGWIN__
22047 # include <stddef.h>
22048 # endif
22049 # include <wchar.h>
22050 #endif
22051 #ifdef HAVE_STDLIB_H
22052 # include <stdlib.h>
22053 #endif
22054 #include <stdio.h>
22055
22056
22057
22058int
22059main ()
22060{
22061static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
22062test_array [0] = 0
22063
22064 ;
22065 return 0;
22066}
22067_ACEOF
22068rm -f conftest.$ac_objext
22069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22070 (eval $ac_compile) 2>conftest.er1
22071 ac_status=$?
22072 grep -v '^ *+' conftest.er1 >conftest.err
22073 rm -f conftest.er1
22074 cat conftest.err >&5
22075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076 (exit $ac_status); } &&
479c790c 22077 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
22078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22079 (eval $ac_try) 2>&5
22080 ac_status=$?
22081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082 (exit $ac_status); }; } &&
22083 { ac_try='test -s conftest.$ac_objext'
22084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22085 (eval $ac_try) 2>&5
22086 ac_status=$?
22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088 (exit $ac_status); }; }; then
22089 ac_hi=-1 ac_mid=-1
22090 while :; do
22091 cat >conftest.$ac_ext <<_ACEOF
22092/* confdefs.h. */
22093_ACEOF
22094cat confdefs.h >>conftest.$ac_ext
22095cat >>conftest.$ac_ext <<_ACEOF
22096/* end confdefs.h. */
22097
83d8eb47
MW
22098 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22099 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
22100 # error "fake wchar_t"
22101 #endif
22102 #ifdef HAVE_WCHAR_H
22103 # ifdef __CYGWIN__
22104 # include <stddef.h>
22105 # endif
22106 # include <wchar.h>
22107 #endif
22108 #ifdef HAVE_STDLIB_H
22109 # include <stdlib.h>
22110 #endif
22111 #include <stdio.h>
22112
22113
22114
22115int
22116main ()
22117{
22118static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
22119test_array [0] = 0
22120
22121 ;
22122 return 0;
22123}
22124_ACEOF
22125rm -f conftest.$ac_objext
22126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22127 (eval $ac_compile) 2>conftest.er1
22128 ac_status=$?
22129 grep -v '^ *+' conftest.er1 >conftest.err
22130 rm -f conftest.er1
22131 cat conftest.err >&5
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); } &&
479c790c 22134 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
22135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22136 (eval $ac_try) 2>&5
22137 ac_status=$?
22138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139 (exit $ac_status); }; } &&
22140 { ac_try='test -s conftest.$ac_objext'
22141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22142 (eval $ac_try) 2>&5
22143 ac_status=$?
22144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); }; }; then
22146 ac_lo=$ac_mid; break
22147else
22148 echo "$as_me: failed program was:" >&5
22149sed 's/^/| /' conftest.$ac_ext >&5
22150
22151ac_hi=`expr '(' $ac_mid ')' - 1`
22152 if test $ac_mid -le $ac_hi; then
22153 ac_lo= ac_hi=
22154 break
22155 fi
22156 ac_mid=`expr 2 '*' $ac_mid`
22157fi
22158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22159 done
22160else
22161 echo "$as_me: failed program was:" >&5
22162sed 's/^/| /' conftest.$ac_ext >&5
22163
22164ac_lo= ac_hi=
22165fi
22166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22167fi
22168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22169# Binary search between lo and hi bounds.
22170while test "x$ac_lo" != "x$ac_hi"; do
22171 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22172 cat >conftest.$ac_ext <<_ACEOF
22173/* confdefs.h. */
22174_ACEOF
22175cat confdefs.h >>conftest.$ac_ext
22176cat >>conftest.$ac_ext <<_ACEOF
22177/* end confdefs.h. */
22178
83d8eb47
MW
22179 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22180 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
22181 # error "fake wchar_t"
22182 #endif
22183 #ifdef HAVE_WCHAR_H
22184 # ifdef __CYGWIN__
22185 # include <stddef.h>
22186 # endif
22187 # include <wchar.h>
22188 #endif
22189 #ifdef HAVE_STDLIB_H
22190 # include <stdlib.h>
22191 #endif
22192 #include <stdio.h>
a848cd7e 22193
a848cd7e 22194
a848cd7e 22195
238ecede
MW
22196int
22197main ()
22198{
22199static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
22200test_array [0] = 0
a848cd7e 22201
238ecede
MW
22202 ;
22203 return 0;
22204}
22205_ACEOF
22206rm -f conftest.$ac_objext
22207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22208 (eval $ac_compile) 2>conftest.er1
22209 ac_status=$?
22210 grep -v '^ *+' conftest.er1 >conftest.err
22211 rm -f conftest.er1
22212 cat conftest.err >&5
22213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214 (exit $ac_status); } &&
479c790c 22215 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
22216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22217 (eval $ac_try) 2>&5
22218 ac_status=$?
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); }; } &&
22221 { ac_try='test -s conftest.$ac_objext'
22222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22223 (eval $ac_try) 2>&5
22224 ac_status=$?
22225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226 (exit $ac_status); }; }; then
22227 ac_hi=$ac_mid
22228else
22229 echo "$as_me: failed program was:" >&5
22230sed 's/^/| /' conftest.$ac_ext >&5
22231
22232ac_lo=`expr '(' $ac_mid ')' + 1`
22233fi
22234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22235done
22236case $ac_lo in
22237?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22238'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
22239See \`config.log' for more details." >&5
22240echo "$as_me: error: cannot compute sizeof (wchar_t), 77
22241See \`config.log' for more details." >&2;}
22242 { (exit 1); exit 1; }; } ;;
22243esac
22244else
22245 if test "$cross_compiling" = yes; then
479c790c
VZ
22246 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
22247echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 22248 { (exit 1); exit 1; }; }
a848cd7e
SC
22249else
22250 cat >conftest.$ac_ext <<_ACEOF
22251/* confdefs.h. */
22252_ACEOF
22253cat confdefs.h >>conftest.$ac_ext
22254cat >>conftest.$ac_ext <<_ACEOF
22255/* end confdefs.h. */
22256
83d8eb47
MW
22257 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22258 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
22259 # error "fake wchar_t"
22260 #endif
22261 #ifdef HAVE_WCHAR_H
22262 # ifdef __CYGWIN__
22263 # include <stddef.h>
22264 # endif
22265 # include <wchar.h>
22266 #endif
22267 #ifdef HAVE_STDLIB_H
22268 # include <stdlib.h>
22269 #endif
22270 #include <stdio.h>
22271
22272
22273
22274long longval () { return (long) (sizeof (wchar_t)); }
22275unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
22276#include <stdio.h>
22277#include <stdlib.h>
22278int
22279main ()
22280{
a848cd7e 22281
238ecede
MW
22282 FILE *f = fopen ("conftest.val", "w");
22283 if (! f)
22284 exit (1);
22285 if (((long) (sizeof (wchar_t))) < 0)
22286 {
22287 long i = longval ();
22288 if (i != ((long) (sizeof (wchar_t))))
22289 exit (1);
22290 fprintf (f, "%ld\n", i);
22291 }
22292 else
22293 {
22294 unsigned long i = ulongval ();
22295 if (i != ((long) (sizeof (wchar_t))))
22296 exit (1);
22297 fprintf (f, "%lu\n", i);
22298 }
22299 exit (ferror (f) || fclose (f) != 0);
22300
22301 ;
22302 return 0;
22303}
a848cd7e
SC
22304_ACEOF
22305rm -f conftest$ac_exeext
22306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22307 (eval $ac_link) 2>&5
22308 ac_status=$?
22309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22312 (eval $ac_try) 2>&5
22313 ac_status=$?
22314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315 (exit $ac_status); }; }; then
238ecede 22316 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
22317else
22318 echo "$as_me: program exited with status $ac_status" >&5
22319echo "$as_me: failed program was:" >&5
22320sed 's/^/| /' conftest.$ac_ext >&5
22321
22322( exit $ac_status )
238ecede
MW
22323{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
22324See \`config.log' for more details." >&5
22325echo "$as_me: error: cannot compute sizeof (wchar_t), 77
22326See \`config.log' for more details." >&2;}
22327 { (exit 1); exit 1; }; }
a848cd7e 22328fi
ac1cb8d3 22329rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 22330fi
a848cd7e 22331fi
238ecede
MW
22332rm -f conftest.val
22333else
22334 ac_cv_sizeof_wchar_t=0
22335fi
22336fi
22337echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22338echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 22339cat >>confdefs.h <<_ACEOF
238ecede 22340#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
22341_ACEOF
22342
22343
47a7e797
MW
22344if test "$ac_cv_sizeof_wchar_t" != "0"; then
22345 wxUSE_WCHAR_T=yes
22346else
22347 wxUSE_WCHAR_T=no
22348fi
238ecede 22349
ba3d13e1
VZ
22350echo "$as_me:$LINENO: checking for va_copy" >&5
22351echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
22352if test "${wx_cv_func_va_copy+set}" = set; then
22353 echo $ECHO_N "(cached) $ECHO_C" >&6
22354else
22355
22356 cat >conftest.$ac_ext <<_ACEOF
22357
22358 #include <stdarg.h>
22359 void foo(char *f, ...)
22360 {
22361 va_list ap1, ap2;
22362 va_start(ap1, f);
22363 va_copy(ap2, ap1);
22364 va_end(ap2);
22365 va_end(ap1);
22366 }
5886b072
VZ
22367 int main()
22368 {
b902e639
VZ
22369 foo("hi", 17);
22370 return 0;
5886b072 22371 }
ba3d13e1
VZ
22372_ACEOF
22373rm -f conftest.$ac_objext conftest$ac_exeext
22374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22375 (eval $ac_link) 2>conftest.er1
22376 ac_status=$?
22377 grep -v '^ *+' conftest.er1 >conftest.err
22378 rm -f conftest.er1
22379 cat conftest.err >&5
22380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381 (exit $ac_status); } &&
479c790c 22382 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
22383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22384 (eval $ac_try) 2>&5
22385 ac_status=$?
22386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); }; } &&
22388 { ac_try='test -s conftest$ac_exeext'
22389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22390 (eval $ac_try) 2>&5
22391 ac_status=$?
22392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393 (exit $ac_status); }; }; then
22394 wx_cv_func_va_copy=yes
22395else
22396 echo "$as_me: failed program was:" >&5
22397sed 's/^/| /' conftest.$ac_ext >&5
22398
22399wx_cv_func_va_copy=no
22400
22401fi
22402rm -f conftest.err conftest.$ac_objext \
22403 conftest$ac_exeext conftest.$ac_ext
22404
22405
22406fi
22407echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
22408echo "${ECHO_T}$wx_cv_func_va_copy" >&6
22409
22410if test $wx_cv_func_va_copy = "yes"; then
22411 cat >>confdefs.h <<\_ACEOF
22412#define HAVE_VA_COPY 1
22413_ACEOF
22414
22415else
22416 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
22417echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
22418if test "${wx_cv_type_va_list_lvalue+set}" = set; then
22419 echo $ECHO_N "(cached) $ECHO_C" >&6
22420else
22421
22422 if test "$cross_compiling" = yes; then
22423 wx_cv_type_va_list_lvalue=yes
22424
22425else
22426 cat >conftest.$ac_ext <<_ACEOF
22427
22428 #include <stdarg.h>
22429 int foo(char *f, ...)
22430 {
22431 va_list ap1, ap2;
22432 va_start(ap1, f);
22433 ap2 = ap1;
22434 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
22435 return 1;
22436 va_end(ap2);
22437 va_end(ap1);
22438 return 0;
22439 }
22440 int main()
22441 {
22442 return foo("hi", 17);
22443 }
22444_ACEOF
22445rm -f conftest$ac_exeext
22446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22447 (eval $ac_link) 2>&5
22448 ac_status=$?
22449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22452 (eval $ac_try) 2>&5
22453 ac_status=$?
22454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); }; }; then
22456 wx_cv_type_va_list_lvalue=yes
22457else
22458 echo "$as_me: program exited with status $ac_status" >&5
22459echo "$as_me: failed program was:" >&5
22460sed 's/^/| /' conftest.$ac_ext >&5
22461
22462( exit $ac_status )
22463wx_cv_type_va_list_lvalue=no
22464fi
22465rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22466fi
22467
22468
22469fi
22470echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
22471echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
22472
22473 if test $wx_cv_type_va_list_lvalue != "yes"; then
22474 cat >>confdefs.h <<\_ACEOF
22475#define VA_LIST_IS_ARRAY 1
22476_ACEOF
22477
22478 fi
22479fi
22480
ca766534
VS
22481echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
22482echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6
22483if test "${wx_cv_have_variadic_macros+set}" = set; then
22484 echo $ECHO_N "(cached) $ECHO_C" >&6
22485else
22486
22487 cat >conftest.$ac_ext <<_ACEOF
22488/* confdefs.h. */
22489_ACEOF
22490cat confdefs.h >>conftest.$ac_ext
22491cat >>conftest.$ac_ext <<_ACEOF
22492/* end confdefs.h. */
22493
22494 #include <stdio.h>
22495 #define test(fmt, ...) printf(fmt, __VA_ARGS__)
22496
22497int
22498main ()
22499{
22500
22501 test("%s %d %p", "test", 1, 0);
22502
22503
22504 ;
22505 return 0;
22506}
22507_ACEOF
22508rm -f conftest.$ac_objext
22509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22510 (eval $ac_compile) 2>conftest.er1
22511 ac_status=$?
22512 grep -v '^ *+' conftest.er1 >conftest.err
22513 rm -f conftest.er1
22514 cat conftest.err >&5
22515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22516 (exit $ac_status); } &&
479c790c 22517 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ca766534
VS
22518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22519 (eval $ac_try) 2>&5
22520 ac_status=$?
22521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522 (exit $ac_status); }; } &&
22523 { ac_try='test -s conftest.$ac_objext'
22524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22525 (eval $ac_try) 2>&5
22526 ac_status=$?
22527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528 (exit $ac_status); }; }; then
22529 wx_cv_have_variadic_macros=yes
22530else
22531 echo "$as_me: failed program was:" >&5
22532sed 's/^/| /' conftest.$ac_ext >&5
22533
22534wx_cv_have_variadic_macros=no
22535
22536fi
22537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22538
22539
22540fi
22541echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
22542echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6
22543
22544if test $wx_cv_have_variadic_macros = "yes"; then
22545 cat >>confdefs.h <<\_ACEOF
22546#define HAVE_VARIADIC_MACROS 1
22547_ACEOF
22548
22549fi
22550
a848cd7e
SC
22551# Check whether --enable-largefile or --disable-largefile was given.
22552if test "${enable_largefile+set}" = set; then
22553 enableval="$enable_largefile"
22554
22555fi;
22556if test "$enable_largefile" != no; then
22557 wx_largefile=no
22558
22559 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22560echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
22561if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22562 echo $ECHO_N "(cached) $ECHO_C" >&6
22563else
22564
22565 cat >conftest.$ac_ext <<_ACEOF
22566/* confdefs.h. */
22567_ACEOF
22568cat confdefs.h >>conftest.$ac_ext
22569cat >>conftest.$ac_ext <<_ACEOF
22570/* end confdefs.h. */
22571#define _FILE_OFFSET_BITS 64
22572 #include <sys/types.h>
22573int
22574main ()
22575{
22576typedef struct {
22577 unsigned int field: sizeof(off_t) == 8;
22578} wxlf;
22579
22580 ;
22581 return 0;
22582}
22583_ACEOF
22584rm -f conftest.$ac_objext
22585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22586 (eval $ac_compile) 2>conftest.er1
a848cd7e 22587 ac_status=$?
ac1cb8d3
VS
22588 grep -v '^ *+' conftest.er1 >conftest.err
22589 rm -f conftest.er1
22590 cat conftest.err >&5
a848cd7e
SC
22591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22592 (exit $ac_status); } &&
479c790c 22593 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22595 (eval $ac_try) 2>&5
22596 ac_status=$?
22597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598 (exit $ac_status); }; } &&
22599 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22601 (eval $ac_try) 2>&5
22602 ac_status=$?
22603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); }; }; then
22605 ac_cv_sys_file_offset_bits=64
22606else
22607 echo "$as_me: failed program was:" >&5
22608sed 's/^/| /' conftest.$ac_ext >&5
22609
22610ac_cv_sys_file_offset_bits=no
22611fi
ac1cb8d3 22612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22613
22614
22615fi
22616echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22617echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
22618
22619 if test "$ac_cv_sys_file_offset_bits" != no; then
22620 wx_largefile=yes
22621 cat >>confdefs.h <<_ACEOF
22622#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22623_ACEOF
22624
22625 fi
22626
22627 if test "x$wx_largefile" != "xyes"; then
22628
22629 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22630echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
22631if test "${ac_cv_sys_large_files+set}" = set; then
22632 echo $ECHO_N "(cached) $ECHO_C" >&6
22633else
22634
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#define _LARGE_FILES 1
22642 #include <sys/types.h>
22643int
22644main ()
22645{
22646typedef struct {
22647 unsigned int field: sizeof(off_t) == 8;
22648} wxlf;
22649
22650 ;
22651 return 0;
22652}
22653_ACEOF
22654rm -f conftest.$ac_objext
22655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22656 (eval $ac_compile) 2>conftest.er1
a848cd7e 22657 ac_status=$?
ac1cb8d3
VS
22658 grep -v '^ *+' conftest.er1 >conftest.err
22659 rm -f conftest.er1
22660 cat conftest.err >&5
a848cd7e
SC
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'
ac1cb8d3
VS
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'
a848cd7e
SC
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 ac_cv_sys_large_files=1
22676else
22677 echo "$as_me: failed program was:" >&5
22678sed 's/^/| /' conftest.$ac_ext >&5
22679
22680ac_cv_sys_large_files=no
22681fi
ac1cb8d3 22682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22683
22684
22685fi
22686echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22687echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22688
22689 if test "$ac_cv_sys_large_files" != no; then
22690 wx_largefile=yes
22691 cat >>confdefs.h <<_ACEOF
22692#define _LARGE_FILES $ac_cv_sys_large_files
22693_ACEOF
22694
22695 fi
22696
22697 fi
22698
22699 echo "$as_me:$LINENO: checking if large file support is available" >&5
22700echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
22701 if test "x$wx_largefile" = "xyes"; then
22702 cat >>confdefs.h <<\_ACEOF
22703#define HAVE_LARGEFILE_SUPPORT 1
22704_ACEOF
22705
22706 fi
22707 echo "$as_me:$LINENO: result: $wx_largefile" >&5
22708echo "${ECHO_T}$wx_largefile" >&6
22709fi
22710
5b674b9d
DE
22711
22712if test "x$wx_largefile" = "xyes"; then
22713 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 22714 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
22715
22716 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
22717 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
22718echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
22719if test "${wx_cv_STDC_EXT_required+set}" = set; then
22720 echo $ECHO_N "(cached) $ECHO_C" >&6
22721else
22722
00421666
MW
22723 cat >conftest.$ac_ext <<_ACEOF
22724/* confdefs.h. */
22725_ACEOF
22726cat confdefs.h >>conftest.$ac_ext
22727cat >>conftest.$ac_ext <<_ACEOF
22728/* end confdefs.h. */
22729
22730int
22731main ()
22732{
22733
22734 #ifndef __STDC_EXT__
22735 choke me
22736 #endif
22737
22738 ;
22739 return 0;
22740}
22741_ACEOF
22742rm -f conftest.$ac_objext
22743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22744 (eval $ac_compile) 2>conftest.er1
22745 ac_status=$?
22746 grep -v '^ *+' conftest.er1 >conftest.err
22747 rm -f conftest.er1
22748 cat conftest.err >&5
22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); } &&
479c790c 22751 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
00421666
MW
22752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22753 (eval $ac_try) 2>&5
22754 ac_status=$?
22755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 (exit $ac_status); }; } &&
22757 { ac_try='test -s conftest.$ac_objext'
22758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22759 (eval $ac_try) 2>&5
22760 ac_status=$?
22761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762 (exit $ac_status); }; }; then
22763 wx_cv_STDC_EXT_required=no
22764else
22765 echo "$as_me: failed program was:" >&5
22766sed 's/^/| /' conftest.$ac_ext >&5
22767
22768wx_cv_STDC_EXT_required=yes
22769
22770fi
22771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
00421666
MW
22772
22773
22774fi
22775echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22776echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22777 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 22778 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
22779 fi
22780 fi
5b674b9d 22781 else
5ff751d6 22782 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
22783 fi
22784 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
22785echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22786if test "${ac_cv_sys_largefile_source+set}" = set; then
22787 echo $ECHO_N "(cached) $ECHO_C" >&6
22788else
22789 while :; do
22790 ac_cv_sys_largefile_source=no
22791 cat >conftest.$ac_ext <<_ACEOF
22792/* confdefs.h. */
22793_ACEOF
22794cat confdefs.h >>conftest.$ac_ext
22795cat >>conftest.$ac_ext <<_ACEOF
22796/* end confdefs.h. */
22797#include <stdio.h>
22798int
22799main ()
22800{
22801return !fseeko;
22802 ;
22803 return 0;
22804}
22805_ACEOF
22806rm -f conftest.$ac_objext
22807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22808 (eval $ac_compile) 2>conftest.er1
22809 ac_status=$?
22810 grep -v '^ *+' conftest.er1 >conftest.err
22811 rm -f conftest.er1
22812 cat conftest.err >&5
22813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814 (exit $ac_status); } &&
479c790c 22815 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22817 (eval $ac_try) 2>&5
22818 ac_status=$?
22819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22820 (exit $ac_status); }; } &&
22821 { ac_try='test -s conftest.$ac_objext'
22822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22823 (eval $ac_try) 2>&5
22824 ac_status=$?
22825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826 (exit $ac_status); }; }; then
22827 break
22828else
22829 echo "$as_me: failed program was:" >&5
22830sed 's/^/| /' conftest.$ac_ext >&5
22831
22832fi
22833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22834 cat >conftest.$ac_ext <<_ACEOF
22835/* confdefs.h. */
22836_ACEOF
22837cat confdefs.h >>conftest.$ac_ext
22838cat >>conftest.$ac_ext <<_ACEOF
22839/* end confdefs.h. */
22840#define _LARGEFILE_SOURCE 1
22841#include <stdio.h>
22842int
22843main ()
22844{
22845return !fseeko;
22846 ;
22847 return 0;
22848}
22849_ACEOF
22850rm -f conftest.$ac_objext
22851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22852 (eval $ac_compile) 2>conftest.er1
22853 ac_status=$?
22854 grep -v '^ *+' conftest.er1 >conftest.err
22855 rm -f conftest.er1
22856 cat conftest.err >&5
22857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858 (exit $ac_status); } &&
479c790c 22859 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22861 (eval $ac_try) 2>&5
22862 ac_status=$?
22863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22864 (exit $ac_status); }; } &&
22865 { ac_try='test -s conftest.$ac_objext'
22866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22867 (eval $ac_try) 2>&5
22868 ac_status=$?
22869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22870 (exit $ac_status); }; }; then
22871 ac_cv_sys_largefile_source=1; break
22872else
22873 echo "$as_me: failed program was:" >&5
22874sed 's/^/| /' conftest.$ac_ext >&5
22875
22876fi
22877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22878 break
22879done
22880fi
22881echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22882echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22883if test "$ac_cv_sys_largefile_source" != no; then
22884
22885cat >>confdefs.h <<_ACEOF
22886#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22887_ACEOF
22888
22889fi
22890rm -f conftest*
22891
22892# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22893# in glibc 2.1.3, but that breaks too many other things.
22894# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22895echo "$as_me:$LINENO: checking for fseeko" >&5
22896echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22897if test "${ac_cv_func_fseeko+set}" = set; then
22898 echo $ECHO_N "(cached) $ECHO_C" >&6
22899else
22900 cat >conftest.$ac_ext <<_ACEOF
22901/* confdefs.h. */
22902_ACEOF
22903cat confdefs.h >>conftest.$ac_ext
22904cat >>conftest.$ac_ext <<_ACEOF
22905/* end confdefs.h. */
22906#include <stdio.h>
22907int
22908main ()
22909{
22910return fseeko && fseeko (stdin, 0, 0);
22911 ;
22912 return 0;
22913}
22914_ACEOF
22915rm -f conftest.$ac_objext conftest$ac_exeext
22916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22917 (eval $ac_link) 2>conftest.er1
22918 ac_status=$?
22919 grep -v '^ *+' conftest.er1 >conftest.err
22920 rm -f conftest.er1
22921 cat conftest.err >&5
22922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923 (exit $ac_status); } &&
479c790c 22924 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22926 (eval $ac_try) 2>&5
22927 ac_status=$?
22928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); }; } &&
22930 { ac_try='test -s conftest$ac_exeext'
22931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22932 (eval $ac_try) 2>&5
22933 ac_status=$?
22934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935 (exit $ac_status); }; }; then
22936 ac_cv_func_fseeko=yes
22937else
22938 echo "$as_me: failed program was:" >&5
22939sed 's/^/| /' conftest.$ac_ext >&5
22940
22941ac_cv_func_fseeko=no
22942fi
22943rm -f conftest.err conftest.$ac_objext \
22944 conftest$ac_exeext conftest.$ac_ext
22945fi
22946echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22947echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22948if test $ac_cv_func_fseeko = yes; then
22949
22950cat >>confdefs.h <<\_ACEOF
22951#define HAVE_FSEEKO 1
22952_ACEOF
22953
22954fi
22955
5b674b9d 22956 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 22957 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 22958 fi
a848cd7e
SC
22959fi
22960
22961echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22962echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22963if test "${ac_cv_c_bigendian+set}" = set; then
22964 echo $ECHO_N "(cached) $ECHO_C" >&6
22965else
22966 ac_cv_c_bigendian=unknown
22967# See if sys/param.h defines the BYTE_ORDER macro.
22968cat >conftest.$ac_ext <<_ACEOF
22969/* confdefs.h. */
22970_ACEOF
22971cat confdefs.h >>conftest.$ac_ext
22972cat >>conftest.$ac_ext <<_ACEOF
22973/* end confdefs.h. */
22974#include <sys/types.h>
22975#include <sys/param.h>
22976int
22977main ()
22978{
22979
22980#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22981 bogus endian macros
22982#endif
22983 ;
22984 return 0;
22985}
22986_ACEOF
22987rm -f conftest.$ac_objext
22988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22989 (eval $ac_compile) 2>conftest.er1
a848cd7e 22990 ac_status=$?
ac1cb8d3
VS
22991 grep -v '^ *+' conftest.er1 >conftest.err
22992 rm -f conftest.er1
22993 cat conftest.err >&5
a848cd7e
SC
22994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995 (exit $ac_status); } &&
479c790c 22996 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22998 (eval $ac_try) 2>&5
22999 ac_status=$?
23000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23001 (exit $ac_status); }; } &&
23002 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23004 (eval $ac_try) 2>&5
23005 ac_status=$?
23006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); }; }; then
23008 # It does; now see whether it defined to BIG_ENDIAN or not.
23009cat >conftest.$ac_ext <<_ACEOF
23010/* confdefs.h. */
23011_ACEOF
23012cat confdefs.h >>conftest.$ac_ext
23013cat >>conftest.$ac_ext <<_ACEOF
23014/* end confdefs.h. */
23015#include <sys/types.h>
23016#include <sys/param.h>
23017int
23018main ()
23019{
23020
23021#if BYTE_ORDER != BIG_ENDIAN
23022 not big endian
23023#endif
23024 ;
23025 return 0;
23026}
23027_ACEOF
23028rm -f conftest.$ac_objext
23029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23030 (eval $ac_compile) 2>conftest.er1
a848cd7e 23031 ac_status=$?
ac1cb8d3
VS
23032 grep -v '^ *+' conftest.er1 >conftest.err
23033 rm -f conftest.er1
23034 cat conftest.err >&5
a848cd7e
SC
23035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036 (exit $ac_status); } &&
479c790c 23037 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23039 (eval $ac_try) 2>&5
23040 ac_status=$?
23041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23042 (exit $ac_status); }; } &&
23043 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23045 (eval $ac_try) 2>&5
23046 ac_status=$?
23047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048 (exit $ac_status); }; }; then
23049 ac_cv_c_bigendian=yes
23050else
23051 echo "$as_me: failed program was:" >&5
23052sed 's/^/| /' conftest.$ac_ext >&5
23053
23054ac_cv_c_bigendian=no
23055fi
ac1cb8d3 23056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23057else
23058 echo "$as_me: failed program was:" >&5
23059sed 's/^/| /' conftest.$ac_ext >&5
23060
23061fi
ac1cb8d3 23062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23063if test $ac_cv_c_bigendian = unknown; then
23064if test "$cross_compiling" = yes; then
23065 ac_cv_c_bigendian=unknown
23066else
23067 cat >conftest.$ac_ext <<_ACEOF
23068/* confdefs.h. */
23069_ACEOF
23070cat confdefs.h >>conftest.$ac_ext
23071cat >>conftest.$ac_ext <<_ACEOF
23072/* end confdefs.h. */
23073main () {
23074 /* Are we little or big endian? From Harbison&Steele. */
23075 union
23076 {
23077 long l;
23078 char c[sizeof (long)];
23079 } u;
23080 u.l = 1;
23081 exit (u.c[sizeof (long) - 1] == 1);
23082}
23083_ACEOF
23084rm -f conftest$ac_exeext
23085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23086 (eval $ac_link) 2>&5
23087 ac_status=$?
23088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23091 (eval $ac_try) 2>&5
23092 ac_status=$?
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); }; }; then
23095 ac_cv_c_bigendian=no
23096else
23097 echo "$as_me: program exited with status $ac_status" >&5
23098echo "$as_me: failed program was:" >&5
23099sed 's/^/| /' conftest.$ac_ext >&5
23100
23101( exit $ac_status )
23102ac_cv_c_bigendian=yes
23103fi
ac1cb8d3 23104rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23105fi
23106fi
23107fi
23108echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23109echo "${ECHO_T}$ac_cv_c_bigendian" >&6
23110if test $ac_cv_c_bigendian = unknown; then
23111 { 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
23112echo "$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;}
23113fi
23114if test $ac_cv_c_bigendian = yes; then
23115 cat >>confdefs.h <<\_ACEOF
23116#define WORDS_BIGENDIAN 1
23117_ACEOF
23118
23119fi
23120
23121
a848cd7e
SC
23122
23123
23124
23125 ac_ext=cc
23126ac_cpp='$CXXCPP $CPPFLAGS'
23127ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23128ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23129ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23130
23131
23132
23133for ac_header in iostream
23134do
23135as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23136if eval "test \"\${$as_ac_Header+set}\" = set"; then
23137 echo "$as_me:$LINENO: checking for $ac_header" >&5
23138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23139if eval "test \"\${$as_ac_Header+set}\" = set"; then
23140 echo $ECHO_N "(cached) $ECHO_C" >&6
23141fi
23142echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23143echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23144else
23145 # Is the header compilable?
23146echo "$as_me:$LINENO: checking $ac_header usability" >&5
23147echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23148cat >conftest.$ac_ext <<_ACEOF
23149/* confdefs.h. */
23150_ACEOF
23151cat confdefs.h >>conftest.$ac_ext
23152cat >>conftest.$ac_ext <<_ACEOF
23153/* end confdefs.h. */
23154$ac_includes_default
23155#include <$ac_header>
23156_ACEOF
23157rm -f conftest.$ac_objext
23158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23159 (eval $ac_compile) 2>conftest.er1
a848cd7e 23160 ac_status=$?
ac1cb8d3
VS
23161 grep -v '^ *+' conftest.er1 >conftest.err
23162 rm -f conftest.er1
23163 cat conftest.err >&5
a848cd7e
SC
23164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165 (exit $ac_status); } &&
479c790c 23166 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23168 (eval $ac_try) 2>&5
23169 ac_status=$?
23170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171 (exit $ac_status); }; } &&
23172 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23174 (eval $ac_try) 2>&5
23175 ac_status=$?
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); }; }; then
23178 ac_header_compiler=yes
23179else
23180 echo "$as_me: failed program was:" >&5
23181sed 's/^/| /' conftest.$ac_ext >&5
23182
23183ac_header_compiler=no
23184fi
ac1cb8d3 23185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23186echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23187echo "${ECHO_T}$ac_header_compiler" >&6
23188
23189# Is the header present?
23190echo "$as_me:$LINENO: checking $ac_header presence" >&5
23191echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23192cat >conftest.$ac_ext <<_ACEOF
23193/* confdefs.h. */
23194_ACEOF
23195cat confdefs.h >>conftest.$ac_ext
23196cat >>conftest.$ac_ext <<_ACEOF
23197/* end confdefs.h. */
23198#include <$ac_header>
23199_ACEOF
23200if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23202 ac_status=$?
23203 grep -v '^ *+' conftest.er1 >conftest.err
23204 rm -f conftest.er1
23205 cat conftest.err >&5
23206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207 (exit $ac_status); } >/dev/null; then
23208 if test -s conftest.err; then
23209 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23210 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
23211 else
23212 ac_cpp_err=
23213 fi
23214else
23215 ac_cpp_err=yes
23216fi
23217if test -z "$ac_cpp_err"; then
23218 ac_header_preproc=yes
23219else
23220 echo "$as_me: failed program was:" >&5
23221sed 's/^/| /' conftest.$ac_ext >&5
23222
23223 ac_header_preproc=no
23224fi
23225rm -f conftest.err conftest.$ac_ext
23226echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23227echo "${ECHO_T}$ac_header_preproc" >&6
23228
23229# So? What about this header?
ac1cb8d3
VS
23230case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23231 yes:no: )
a848cd7e
SC
23232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23233echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23235echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23236 ac_header_preproc=yes
a848cd7e 23237 ;;
ac1cb8d3 23238 no:yes:* )
a848cd7e
SC
23239 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23240echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23241 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23242echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23243 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23244echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23245 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23246echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23248echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23249 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23250echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23251 (
23252 cat <<\_ASBOX
ac1cb8d3
VS
23253## ----------------------------------------- ##
23254## Report this to wx-dev@lists.wxwidgets.org ##
23255## ----------------------------------------- ##
a848cd7e
SC
23256_ASBOX
23257 ) |
23258 sed "s/^/$as_me: WARNING: /" >&2
23259 ;;
23260esac
23261echo "$as_me:$LINENO: checking for $ac_header" >&5
23262echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23263if eval "test \"\${$as_ac_Header+set}\" = set"; then
23264 echo $ECHO_N "(cached) $ECHO_C" >&6
23265else
ac1cb8d3 23266 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
23267fi
23268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23269echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23270
23271fi
23272if test `eval echo '${'$as_ac_Header'}'` = yes; then
23273 cat >>confdefs.h <<_ACEOF
23274#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23275_ACEOF
23276
23277fi
23278
23279done
23280
23281
23282 if test "$ac_cv_header_iostream" = "yes" ; then
23283 :
23284 else
23285 cat >>confdefs.h <<\_ACEOF
23286#define wxUSE_IOSTREAMH 1
23287_ACEOF
23288
23289 fi
23290
5d7b7554
VZ
23291 ac_ext=cc
23292ac_cpp='$CXXCPP $CPPFLAGS'
23293ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23294ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23295ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23296
23297
23298
23299
23300 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
23301echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
23302if test "${wx_cv_cpp_bool+set}" = set; then
23303 echo $ECHO_N "(cached) $ECHO_C" >&6
23304else
23305
23306
23307
23308 ac_ext=cc
23309ac_cpp='$CXXCPP $CPPFLAGS'
23310ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23311ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23312ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23313
23314
23315 cat >conftest.$ac_ext <<_ACEOF
23316/* confdefs.h. */
23317_ACEOF
23318cat confdefs.h >>conftest.$ac_ext
23319cat >>conftest.$ac_ext <<_ACEOF
23320/* end confdefs.h. */
23321
23322
23323int
23324main ()
23325{
23326
23327 bool b = true;
23328
23329 return 0;
23330
23331 ;
23332 return 0;
23333}
23334_ACEOF
23335rm -f conftest.$ac_objext
23336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23337 (eval $ac_compile) 2>conftest.er1
a848cd7e 23338 ac_status=$?
ac1cb8d3
VS
23339 grep -v '^ *+' conftest.er1 >conftest.err
23340 rm -f conftest.er1
23341 cat conftest.err >&5
a848cd7e
SC
23342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343 (exit $ac_status); } &&
479c790c 23344 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23346 (eval $ac_try) 2>&5
23347 ac_status=$?
23348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349 (exit $ac_status); }; } &&
23350 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23352 (eval $ac_try) 2>&5
23353 ac_status=$?
23354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355 (exit $ac_status); }; }; then
23356
23357 wx_cv_cpp_bool=yes
23358
23359else
23360 echo "$as_me: failed program was:" >&5
23361sed 's/^/| /' conftest.$ac_ext >&5
23362
23363
23364 wx_cv_cpp_bool=no
23365
23366
23367fi
ac1cb8d3 23368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23369
5d7b7554
VZ
23370 ac_ext=cc
23371ac_cpp='$CXXCPP $CPPFLAGS'
23372ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23373ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23374ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23375
23376
23377fi
23378echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
23379echo "${ECHO_T}$wx_cv_cpp_bool" >&6
23380
23381 if test "$wx_cv_cpp_bool" = "yes"; then
23382 cat >>confdefs.h <<\_ACEOF
23383#define HAVE_BOOL 1
23384_ACEOF
23385
23386 fi
23387
23388
23389
23390 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
23391echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
23392if test "${wx_cv_explicit+set}" = set; then
23393 echo $ECHO_N "(cached) $ECHO_C" >&6
23394else
23395
23396
23397
23398 ac_ext=cc
23399ac_cpp='$CXXCPP $CPPFLAGS'
23400ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23401ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23402ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23403
23404
23405 cat >conftest.$ac_ext <<_ACEOF
23406/* confdefs.h. */
23407_ACEOF
23408cat confdefs.h >>conftest.$ac_ext
23409cat >>conftest.$ac_ext <<_ACEOF
23410/* end confdefs.h. */
23411
23412 class Foo { public: explicit Foo(int) {} };
23413
23414int
23415main ()
23416{
23417
23418 return 0;
23419
23420 ;
23421 return 0;
23422}
23423_ACEOF
23424rm -f conftest.$ac_objext
23425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23426 (eval $ac_compile) 2>conftest.er1
a848cd7e 23427 ac_status=$?
ac1cb8d3
VS
23428 grep -v '^ *+' conftest.er1 >conftest.err
23429 rm -f conftest.er1
23430 cat conftest.err >&5
a848cd7e
SC
23431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432 (exit $ac_status); } &&
479c790c 23433 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23435 (eval $ac_try) 2>&5
23436 ac_status=$?
23437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438 (exit $ac_status); }; } &&
23439 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23441 (eval $ac_try) 2>&5
23442 ac_status=$?
23443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23444 (exit $ac_status); }; }; then
23445
23446 cat >conftest.$ac_ext <<_ACEOF
23447/* confdefs.h. */
23448_ACEOF
23449cat confdefs.h >>conftest.$ac_ext
23450cat >>conftest.$ac_ext <<_ACEOF
23451/* end confdefs.h. */
23452
23453 class Foo { public: explicit Foo(int) {} };
23454 static void TakeFoo(const Foo& foo) { }
23455
23456int
23457main ()
23458{
23459
23460 TakeFoo(17);
23461 return 0;
23462
23463 ;
23464 return 0;
23465}
23466_ACEOF
23467rm -f conftest.$ac_objext
23468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23469 (eval $ac_compile) 2>conftest.er1
a848cd7e 23470 ac_status=$?
ac1cb8d3
VS
23471 grep -v '^ *+' conftest.er1 >conftest.err
23472 rm -f conftest.er1
23473 cat conftest.err >&5
a848cd7e
SC
23474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475 (exit $ac_status); } &&
479c790c 23476 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23478 (eval $ac_try) 2>&5
23479 ac_status=$?
23480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481 (exit $ac_status); }; } &&
23482 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23484 (eval $ac_try) 2>&5
23485 ac_status=$?
23486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487 (exit $ac_status); }; }; then
23488 wx_cv_explicit=no
23489else
23490 echo "$as_me: failed program was:" >&5
23491sed 's/^/| /' conftest.$ac_ext >&5
23492
23493wx_cv_explicit=yes
23494
23495fi
ac1cb8d3 23496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23497
23498else
23499 echo "$as_me: failed program was:" >&5
23500sed 's/^/| /' conftest.$ac_ext >&5
23501
23502wx_cv_explicit=no
23503
23504fi
ac1cb8d3 23505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23506
5d7b7554
VZ
23507 ac_ext=cc
23508ac_cpp='$CXXCPP $CPPFLAGS'
23509ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23510ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23511ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23512
23513
23514fi
23515echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
23516echo "${ECHO_T}$wx_cv_explicit" >&6
23517
23518 if test "$wx_cv_explicit" = "yes"; then
23519 cat >>confdefs.h <<\_ACEOF
23520#define HAVE_EXPLICIT 1
23521_ACEOF
23522
23523 fi
23524
23525
23526echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
23527echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
23528if test "${ac_cv_cxx_const_cast+set}" = set; then
23529 echo $ECHO_N "(cached) $ECHO_C" >&6
23530else
23531
23532
23533 ac_ext=cc
23534ac_cpp='$CXXCPP $CPPFLAGS'
23535ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23536ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23537ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23538
23539 cat >conftest.$ac_ext <<_ACEOF
23540/* confdefs.h. */
23541_ACEOF
23542cat confdefs.h >>conftest.$ac_ext
23543cat >>conftest.$ac_ext <<_ACEOF
23544/* end confdefs.h. */
23545
23546int
23547main ()
23548{
23549int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
23550 ;
23551 return 0;
23552}
23553_ACEOF
23554rm -f conftest.$ac_objext
23555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23556 (eval $ac_compile) 2>conftest.er1
a848cd7e 23557 ac_status=$?
ac1cb8d3
VS
23558 grep -v '^ *+' conftest.er1 >conftest.err
23559 rm -f conftest.er1
23560 cat conftest.err >&5
a848cd7e
SC
23561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562 (exit $ac_status); } &&
479c790c 23563 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23565 (eval $ac_try) 2>&5
23566 ac_status=$?
23567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568 (exit $ac_status); }; } &&
23569 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23571 (eval $ac_try) 2>&5
23572 ac_status=$?
23573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23574 (exit $ac_status); }; }; then
23575 ac_cv_cxx_const_cast=yes
23576else
23577 echo "$as_me: failed program was:" >&5
23578sed 's/^/| /' conftest.$ac_ext >&5
23579
23580ac_cv_cxx_const_cast=no
23581fi
ac1cb8d3 23582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23583 ac_ext=cc
23584ac_cpp='$CXXCPP $CPPFLAGS'
23585ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23586ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23587ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23588
23589
23590fi
23591echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23592echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
23593if test "$ac_cv_cxx_const_cast" = yes; then
23594
23595cat >>confdefs.h <<\_ACEOF
23596#define HAVE_CONST_CAST
23597_ACEOF
23598
23599fi
23600
7714864e
RL
23601echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23602echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
23603if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23604 echo $ECHO_N "(cached) $ECHO_C" >&6
23605else
23606
23607
23608 ac_ext=cc
23609ac_cpp='$CXXCPP $CPPFLAGS'
23610ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23611ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23612ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23613
23614 cat >conftest.$ac_ext <<_ACEOF
23615/* confdefs.h. */
23616_ACEOF
23617cat confdefs.h >>conftest.$ac_ext
23618cat >>conftest.$ac_ext <<_ACEOF
23619/* end confdefs.h. */
23620#include <typeinfo>
23621class Base { public : Base () {} virtual void f () = 0;};
23622class Derived : public Base { public : Derived () {} virtual void f () {} };
23623class Unrelated { public : Unrelated () {} };
23624int g (Unrelated&) { return 0; }
23625int
23626main ()
23627{
23628
23629Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23630 ;
23631 return 0;
23632}
23633_ACEOF
23634rm -f conftest.$ac_objext
23635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23636 (eval $ac_compile) 2>conftest.er1
23637 ac_status=$?
23638 grep -v '^ *+' conftest.er1 >conftest.err
23639 rm -f conftest.er1
23640 cat conftest.err >&5
23641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642 (exit $ac_status); } &&
479c790c 23643 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
23644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23645 (eval $ac_try) 2>&5
23646 ac_status=$?
23647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648 (exit $ac_status); }; } &&
23649 { ac_try='test -s conftest.$ac_objext'
23650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23651 (eval $ac_try) 2>&5
23652 ac_status=$?
23653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23654 (exit $ac_status); }; }; then
23655 ac_cv_cxx_reinterpret_cast=yes
23656else
23657 echo "$as_me: failed program was:" >&5
23658sed 's/^/| /' conftest.$ac_ext >&5
23659
23660ac_cv_cxx_reinterpret_cast=no
23661fi
23662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23663 ac_ext=cc
23664ac_cpp='$CXXCPP $CPPFLAGS'
23665ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23666ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23667ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7714864e
RL
23668
23669
23670fi
23671echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23672echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
23673if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23674
23675cat >>confdefs.h <<\_ACEOF
23676#define HAVE_REINTERPRET_CAST
23677_ACEOF
23678
23679fi
23680
a848cd7e
SC
23681echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23682echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
23683if test "${ac_cv_cxx_static_cast+set}" = set; then
23684 echo $ECHO_N "(cached) $ECHO_C" >&6
23685else
23686
23687
23688 ac_ext=cc
23689ac_cpp='$CXXCPP $CPPFLAGS'
23690ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23691ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23692ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23693
23694 cat >conftest.$ac_ext <<_ACEOF
23695/* confdefs.h. */
23696_ACEOF
23697cat confdefs.h >>conftest.$ac_ext
23698cat >>conftest.$ac_ext <<_ACEOF
23699/* end confdefs.h. */
23700#include <typeinfo>
23701class Base { public : Base () {} virtual void f () = 0; };
23702class Derived : public Base { public : Derived () {} virtual void f () {} };
23703int g (Derived&) { return 0; }
23704int
23705main ()
23706{
23707
23708Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23709 ;
23710 return 0;
23711}
23712_ACEOF
23713rm -f conftest.$ac_objext
23714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23715 (eval $ac_compile) 2>conftest.er1
a848cd7e 23716 ac_status=$?
ac1cb8d3
VS
23717 grep -v '^ *+' conftest.er1 >conftest.err
23718 rm -f conftest.er1
23719 cat conftest.err >&5
a848cd7e
SC
23720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721 (exit $ac_status); } &&
479c790c 23722 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23724 (eval $ac_try) 2>&5
23725 ac_status=$?
23726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727 (exit $ac_status); }; } &&
23728 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23730 (eval $ac_try) 2>&5
23731 ac_status=$?
23732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733 (exit $ac_status); }; }; then
23734 ac_cv_cxx_static_cast=yes
23735else
23736 echo "$as_me: failed program was:" >&5
23737sed 's/^/| /' conftest.$ac_ext >&5
23738
23739ac_cv_cxx_static_cast=no
23740fi
ac1cb8d3 23741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23742 ac_ext=cc
23743ac_cpp='$CXXCPP $CPPFLAGS'
23744ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23745ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23746ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23747
23748
23749fi
23750echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23751echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23752if test "$ac_cv_cxx_static_cast" = yes; then
23753
23754cat >>confdefs.h <<\_ACEOF
23755#define HAVE_STATIC_CAST
23756_ACEOF
23757
23758fi
23759
23760
3c28b7cb 23761if test "x$SUNCXX" = xyes; then
c92ad099 23762 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
23763fi
23764
9122d155 23765if test "x$SUNCC" = xyes; then
c92ad099 23766 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
23767fi
23768
0ad5d837 23769if test "x$SGICC" = "xyes"; then
c92ad099 23770 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
23771fi
23772if test "x$SGICXX" = "xyes"; then
c92ad099 23773 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
23774fi
23775
2eef8513 23776if test "x$HPCC" = "xyes"; then
c92ad099 23777 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
23778fi
23779if test "x$HPCXX" = "xyes"; then
c92ad099 23780 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
23781fi
23782
23783if test "x$COMPAQCXX" = "xyes"; then
23784 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23785fi
23786
f56c22b4 23787if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
23788 if test "$wxUSE_UNICODE" = "yes"; then
23789 std_string="std::wstring"
23790 char_type="wchar_t"
23791 else
23792 std_string="std::string"
23793 char_type="char"
23794 fi
23795
23796 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23797echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
23798 cat >conftest.$ac_ext <<_ACEOF
23799/* confdefs.h. */
23800_ACEOF
23801cat confdefs.h >>conftest.$ac_ext
23802cat >>conftest.$ac_ext <<_ACEOF
23803/* end confdefs.h. */
23804#include <string>
a848cd7e
SC
23805int
23806main ()
23807{
f56c22b4 23808$std_string foo;
a848cd7e
SC
23809 ;
23810 return 0;
23811}
23812_ACEOF
23813rm -f conftest.$ac_objext
23814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23815 (eval $ac_compile) 2>conftest.er1
a848cd7e 23816 ac_status=$?
ac1cb8d3
VS
23817 grep -v '^ *+' conftest.er1 >conftest.err
23818 rm -f conftest.er1
23819 cat conftest.err >&5
a848cd7e
SC
23820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23821 (exit $ac_status); } &&
479c790c 23822 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23824 (eval $ac_try) 2>&5
23825 ac_status=$?
23826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23827 (exit $ac_status); }; } &&
23828 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23830 (eval $ac_try) 2>&5
23831 ac_status=$?
23832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23833 (exit $ac_status); }; }; then
23834 echo "$as_me:$LINENO: result: yes" >&5
23835echo "${ECHO_T}yes" >&6
0a08f02a
MB
23836 cat >>confdefs.h <<\_ACEOF
23837#define HAVE_STD_WSTRING 1
23838_ACEOF
23839
a848cd7e
SC
23840else
23841 echo "$as_me: failed program was:" >&5
23842sed 's/^/| /' conftest.$ac_ext >&5
23843
23844echo "$as_me:$LINENO: result: no" >&5
23845echo "${ECHO_T}no" >&6
f56c22b4
MW
23846 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23847echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
23848 cat >conftest.$ac_ext <<_ACEOF
23849/* confdefs.h. */
23850_ACEOF
23851cat confdefs.h >>conftest.$ac_ext
23852cat >>conftest.$ac_ext <<_ACEOF
23853/* end confdefs.h. */
23854
23855 #ifdef HAVE_WCHAR_H
23856 # ifdef __CYGWIN__
23857 # include <stddef.h>
23858 # endif
23859 # include <wchar.h>
23860 #endif
23861 #ifdef HAVE_STDLIB_H
23862 # include <stdlib.h>
23863 #endif
23864 #include <stdio.h>
23865 #include <string>
23866
23867int
23868main ()
23869{
f56c22b4
MW
23870std::basic_string<$char_type> foo;
23871 const $char_type* dummy = foo.c_str();
0a08f02a
MB
23872 ;
23873 return 0;
23874}
23875_ACEOF
23876rm -f conftest.$ac_objext
23877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23878 (eval $ac_compile) 2>conftest.er1
23879 ac_status=$?
23880 grep -v '^ *+' conftest.er1 >conftest.err
23881 rm -f conftest.er1
23882 cat conftest.err >&5
23883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884 (exit $ac_status); } &&
479c790c 23885 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
23886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23887 (eval $ac_try) 2>&5
23888 ac_status=$?
23889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890 (exit $ac_status); }; } &&
23891 { ac_try='test -s conftest.$ac_objext'
23892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23893 (eval $ac_try) 2>&5
23894 ac_status=$?
23895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23896 (exit $ac_status); }; }; then
23897 echo "$as_me:$LINENO: result: yes" >&5
23898echo "${ECHO_T}yes" >&6
23899else
23900 echo "$as_me: failed program was:" >&5
23901sed 's/^/| /' conftest.$ac_ext >&5
23902
23903echo "$as_me:$LINENO: result: no" >&5
23904echo "${ECHO_T}no" >&6
f56c22b4 23905 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
23906 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23907echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23908 { (exit 1); exit 1; }; }
23909 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23910 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23911echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 23912 { (exit 1); exit 1; }; }
f56c22b4
MW
23913 else
23914 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23915echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23916 wxUSE_STD_STRING=no
23917 fi
23918
0a08f02a 23919
a848cd7e 23920fi
ac1cb8d3 23921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23922
0a08f02a
MB
23923fi
23924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4
MW
23925fi
23926
23927if test "$wxUSE_STD_IOSTREAM" = "yes"; then
f56c22b4
MW
23928 echo "$as_me:$LINENO: checking for std::istream" >&5
23929echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23930if test "${ac_cv_type_std__istream+set}" = set; then
23931 echo $ECHO_N "(cached) $ECHO_C" >&6
23932else
23933 cat >conftest.$ac_ext <<_ACEOF
23934/* confdefs.h. */
23935_ACEOF
23936cat confdefs.h >>conftest.$ac_ext
23937cat >>conftest.$ac_ext <<_ACEOF
23938/* end confdefs.h. */
23939#include <iostream>
23940
23941int
23942main ()
23943{
23944if ((std::istream *) 0)
23945 return 0;
23946if (sizeof (std::istream))
23947 return 0;
23948 ;
23949 return 0;
23950}
23951_ACEOF
23952rm -f conftest.$ac_objext
23953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23954 (eval $ac_compile) 2>conftest.er1
23955 ac_status=$?
23956 grep -v '^ *+' conftest.er1 >conftest.err
23957 rm -f conftest.er1
23958 cat conftest.err >&5
23959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23960 (exit $ac_status); } &&
479c790c 23961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23963 (eval $ac_try) 2>&5
23964 ac_status=$?
23965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23966 (exit $ac_status); }; } &&
23967 { ac_try='test -s conftest.$ac_objext'
23968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23969 (eval $ac_try) 2>&5
23970 ac_status=$?
23971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23972 (exit $ac_status); }; }; then
23973 ac_cv_type_std__istream=yes
23974else
23975 echo "$as_me: failed program was:" >&5
23976sed 's/^/| /' conftest.$ac_ext >&5
23977
23978ac_cv_type_std__istream=no
23979fi
23980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23981fi
23982echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23983echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23984if test $ac_cv_type_std__istream = yes; then
23985
23986cat >>confdefs.h <<_ACEOF
23987#define HAVE_STD__ISTREAM 1
23988_ACEOF
23989
23990
23991else
23992 wxUSE_STD_IOSTREAM=no
23993fi
23994echo "$as_me:$LINENO: checking for std::ostream" >&5
23995echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23996if test "${ac_cv_type_std__ostream+set}" = set; then
23997 echo $ECHO_N "(cached) $ECHO_C" >&6
23998else
23999 cat >conftest.$ac_ext <<_ACEOF
24000/* confdefs.h. */
24001_ACEOF
24002cat confdefs.h >>conftest.$ac_ext
24003cat >>conftest.$ac_ext <<_ACEOF
24004/* end confdefs.h. */
24005#include <iostream>
24006
24007int
24008main ()
24009{
24010if ((std::ostream *) 0)
24011 return 0;
24012if (sizeof (std::ostream))
24013 return 0;
24014 ;
24015 return 0;
24016}
24017_ACEOF
24018rm -f conftest.$ac_objext
24019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24020 (eval $ac_compile) 2>conftest.er1
24021 ac_status=$?
24022 grep -v '^ *+' conftest.er1 >conftest.err
24023 rm -f conftest.er1
24024 cat conftest.err >&5
24025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026 (exit $ac_status); } &&
479c790c 24027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
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); }; } &&
24033 { ac_try='test -s conftest.$ac_objext'
24034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24035 (eval $ac_try) 2>&5
24036 ac_status=$?
24037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24038 (exit $ac_status); }; }; then
24039 ac_cv_type_std__ostream=yes
24040else
24041 echo "$as_me: failed program was:" >&5
24042sed 's/^/| /' conftest.$ac_ext >&5
24043
24044ac_cv_type_std__ostream=no
24045fi
24046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24047fi
24048echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
24049echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
24050if test $ac_cv_type_std__ostream = yes; then
24051
24052cat >>confdefs.h <<_ACEOF
24053#define HAVE_STD__OSTREAM 1
24054_ACEOF
24055
24056
24057else
24058 wxUSE_STD_IOSTREAM=no
24059fi
24060
24061
24062 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
24063 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
24064 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
24065echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
24066 { (exit 1); exit 1; }; }
24067 else
24068 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 24069echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 24070 fi
f56c22b4 24071 fi
0a08f02a
MB
24072fi
24073
24074if test "$wxUSE_STL" = "yes"; then
0a08f02a
MB
24075 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
24076echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
24077 cat >conftest.$ac_ext <<_ACEOF
24078/* confdefs.h. */
24079_ACEOF
24080cat confdefs.h >>conftest.$ac_ext
24081cat >>conftest.$ac_ext <<_ACEOF
24082/* end confdefs.h. */
24083#include <string>
0a08f02a
MB
24084 #include <functional>
24085 #include <algorithm>
24086 #include <vector>
24087 #include <list>
a848cd7e
SC
24088int
24089main ()
24090{
0a08f02a
MB
24091std::vector<int> moo;
24092 std::list<int> foo;
24093 std::vector<int>::iterator it =
24094 std::find_if(moo.begin(), moo.end(),
24095 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
24096 ;
24097 return 0;
24098}
24099_ACEOF
24100rm -f conftest.$ac_objext
24101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24102 (eval $ac_compile) 2>conftest.er1
a848cd7e 24103 ac_status=$?
ac1cb8d3
VS
24104 grep -v '^ *+' conftest.er1 >conftest.err
24105 rm -f conftest.er1
24106 cat conftest.err >&5
a848cd7e
SC
24107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24108 (exit $ac_status); } &&
479c790c 24109 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24111 (eval $ac_try) 2>&5
24112 ac_status=$?
24113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114 (exit $ac_status); }; } &&
24115 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24117 (eval $ac_try) 2>&5
24118 ac_status=$?
24119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24120 (exit $ac_status); }; }; then
24121 echo "$as_me:$LINENO: result: yes" >&5
24122echo "${ECHO_T}yes" >&6
a848cd7e
SC
24123else
24124 echo "$as_me: failed program was:" >&5
24125sed 's/^/| /' conftest.$ac_ext >&5
24126
24127echo "$as_me:$LINENO: result: no" >&5
24128echo "${ECHO_T}no" >&6
0a08f02a
MB
24129 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
24130echo "$as_me: error: Basic STL functionality missing" >&2;}
24131 { (exit 1); exit 1; }; }
a848cd7e 24132fi
ac1cb8d3 24133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24134
24135 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
24136echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
24137 cat >conftest.$ac_ext <<_ACEOF
24138/* confdefs.h. */
24139_ACEOF
24140cat confdefs.h >>conftest.$ac_ext
24141cat >>conftest.$ac_ext <<_ACEOF
24142/* end confdefs.h. */
24143#include <string>
24144int
24145main ()
24146{
24147std::string foo, bar;
24148 foo.compare(bar);
24149 foo.compare(1, 1, bar);
24150 foo.compare(1, 1, bar, 1, 1);
24151 foo.compare("");
24152 foo.compare(1, 1, "");
24153 foo.compare(1, 1, "", 2);
24154 ;
24155 return 0;
24156}
24157_ACEOF
24158rm -f conftest.$ac_objext
24159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24160 (eval $ac_compile) 2>conftest.er1
a848cd7e 24161 ac_status=$?
ac1cb8d3
VS
24162 grep -v '^ *+' conftest.er1 >conftest.err
24163 rm -f conftest.er1
24164 cat conftest.err >&5
a848cd7e
SC
24165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24166 (exit $ac_status); } &&
479c790c 24167 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24169 (eval $ac_try) 2>&5
24170 ac_status=$?
24171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24172 (exit $ac_status); }; } &&
24173 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24175 (eval $ac_try) 2>&5
24176 ac_status=$?
24177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24178 (exit $ac_status); }; }; then
24179 echo "$as_me:$LINENO: result: yes" >&5
24180echo "${ECHO_T}yes" >&6
24181 cat >>confdefs.h <<\_ACEOF
24182#define HAVE_STD_STRING_COMPARE 1
24183_ACEOF
24184
24185else
24186 echo "$as_me: failed program was:" >&5
24187sed 's/^/| /' conftest.$ac_ext >&5
24188
24189echo "$as_me:$LINENO: result: no" >&5
24190echo "${ECHO_T}no" >&6
24191fi
ac1cb8d3 24192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24193
24194 if test "${ac_cv_header_hash_map+set}" = set; then
24195 echo "$as_me:$LINENO: checking for hash_map" >&5
24196echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
24197if test "${ac_cv_header_hash_map+set}" = set; then
24198 echo $ECHO_N "(cached) $ECHO_C" >&6
24199fi
24200echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24201echo "${ECHO_T}$ac_cv_header_hash_map" >&6
24202else
24203 # Is the header compilable?
24204echo "$as_me:$LINENO: checking hash_map usability" >&5
24205echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
24206cat >conftest.$ac_ext <<_ACEOF
24207/* confdefs.h. */
24208_ACEOF
24209cat confdefs.h >>conftest.$ac_ext
24210cat >>conftest.$ac_ext <<_ACEOF
24211/* end confdefs.h. */
24212$ac_includes_default
24213#include <hash_map>
24214_ACEOF
24215rm -f conftest.$ac_objext
24216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24217 (eval $ac_compile) 2>conftest.er1
bdcade0a 24218 ac_status=$?
ac1cb8d3
VS
24219 grep -v '^ *+' conftest.er1 >conftest.err
24220 rm -f conftest.er1
24221 cat conftest.err >&5
bdcade0a
MB
24222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24223 (exit $ac_status); } &&
479c790c 24224 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24226 (eval $ac_try) 2>&5
24227 ac_status=$?
24228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24229 (exit $ac_status); }; } &&
24230 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24232 (eval $ac_try) 2>&5
24233 ac_status=$?
24234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24235 (exit $ac_status); }; }; then
24236 ac_header_compiler=yes
24237else
24238 echo "$as_me: failed program was:" >&5
24239sed 's/^/| /' conftest.$ac_ext >&5
24240
24241ac_header_compiler=no
24242fi
ac1cb8d3 24243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24244echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24245echo "${ECHO_T}$ac_header_compiler" >&6
24246
24247# Is the header present?
24248echo "$as_me:$LINENO: checking hash_map presence" >&5
24249echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
24250cat >conftest.$ac_ext <<_ACEOF
24251/* confdefs.h. */
24252_ACEOF
24253cat confdefs.h >>conftest.$ac_ext
24254cat >>conftest.$ac_ext <<_ACEOF
24255/* end confdefs.h. */
24256#include <hash_map>
24257_ACEOF
24258if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24260 ac_status=$?
24261 grep -v '^ *+' conftest.er1 >conftest.err
24262 rm -f conftest.er1
24263 cat conftest.err >&5
24264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24265 (exit $ac_status); } >/dev/null; then
24266 if test -s conftest.err; then
24267 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 24268 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
24269 else
24270 ac_cpp_err=
24271 fi
24272else
24273 ac_cpp_err=yes
24274fi
24275if test -z "$ac_cpp_err"; then
24276 ac_header_preproc=yes
24277else
24278 echo "$as_me: failed program was:" >&5
24279sed 's/^/| /' conftest.$ac_ext >&5
24280
24281 ac_header_preproc=no
24282fi
24283rm -f conftest.err conftest.$ac_ext
24284echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24285echo "${ECHO_T}$ac_header_preproc" >&6
24286
24287# So? What about this header?
ac1cb8d3
VS
24288case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24289 yes:no: )
bdcade0a
MB
24290 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24291echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24292 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
24293echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
24294 ac_header_preproc=yes
bdcade0a 24295 ;;
ac1cb8d3 24296 no:yes:* )
bdcade0a
MB
24297 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
24298echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24299 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
24300echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
24301 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
24302echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
24303 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
24304echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
24305 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
24306echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24307 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
24308echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
24309 (
24310 cat <<\_ASBOX
ac1cb8d3
VS
24311## ----------------------------------------- ##
24312## Report this to wx-dev@lists.wxwidgets.org ##
24313## ----------------------------------------- ##
bdcade0a
MB
24314_ASBOX
24315 ) |
24316 sed "s/^/$as_me: WARNING: /" >&2
24317 ;;
24318esac
24319echo "$as_me:$LINENO: checking for hash_map" >&5
24320echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
24321if test "${ac_cv_header_hash_map+set}" = set; then
24322 echo $ECHO_N "(cached) $ECHO_C" >&6
24323else
24324 ac_cv_header_hash_map=$ac_header_preproc
24325fi
24326echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24327echo "${ECHO_T}$ac_cv_header_hash_map" >&6
24328
24329fi
24330if test $ac_cv_header_hash_map = yes; then
24331 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24332echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24333 cat >conftest.$ac_ext <<_ACEOF
24334/* confdefs.h. */
24335_ACEOF
24336cat confdefs.h >>conftest.$ac_ext
24337cat >>conftest.$ac_ext <<_ACEOF
24338/* end confdefs.h. */
24339#include <hash_map>
24340 #include <hash_set>
24341int
24342main ()
24343{
24344std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
24345 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
24346 ;
24347 return 0;
24348}
24349_ACEOF
24350rm -f conftest.$ac_objext
24351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24352 (eval $ac_compile) 2>conftest.er1
bdcade0a 24353 ac_status=$?
ac1cb8d3
VS
24354 grep -v '^ *+' conftest.er1 >conftest.err
24355 rm -f conftest.er1
24356 cat conftest.err >&5
bdcade0a
MB
24357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24358 (exit $ac_status); } &&
479c790c 24359 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24361 (eval $ac_try) 2>&5
24362 ac_status=$?
24363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364 (exit $ac_status); }; } &&
24365 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24367 (eval $ac_try) 2>&5
24368 ac_status=$?
24369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24370 (exit $ac_status); }; }; then
24371 echo "$as_me:$LINENO: result: yes" >&5
24372echo "${ECHO_T}yes" >&6
24373 cat >>confdefs.h <<\_ACEOF
24374#define HAVE_HASH_MAP 1
24375_ACEOF
24376
24377 cat >>confdefs.h <<\_ACEOF
24378#define HAVE_STD_HASH_MAP 1
24379_ACEOF
24380
24381else
24382 echo "$as_me: failed program was:" >&5
24383sed 's/^/| /' conftest.$ac_ext >&5
24384
24385echo "$as_me:$LINENO: result: no" >&5
24386echo "${ECHO_T}no" >&6
24387fi
ac1cb8d3 24388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24389
24390fi
24391
24392
24393
24394 if test "${ac_cv_header_ext_hash_map+set}" = set; then
24395 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24396echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24397if test "${ac_cv_header_ext_hash_map+set}" = set; then
24398 echo $ECHO_N "(cached) $ECHO_C" >&6
24399fi
24400echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24401echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24402else
24403 # Is the header compilable?
24404echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
24405echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
24406cat >conftest.$ac_ext <<_ACEOF
24407/* confdefs.h. */
24408_ACEOF
24409cat confdefs.h >>conftest.$ac_ext
24410cat >>conftest.$ac_ext <<_ACEOF
24411/* end confdefs.h. */
24412$ac_includes_default
24413#include <ext/hash_map>
24414_ACEOF
24415rm -f conftest.$ac_objext
24416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24417 (eval $ac_compile) 2>conftest.er1
bdcade0a 24418 ac_status=$?
ac1cb8d3
VS
24419 grep -v '^ *+' conftest.er1 >conftest.err
24420 rm -f conftest.er1
24421 cat conftest.err >&5
bdcade0a
MB
24422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423 (exit $ac_status); } &&
479c790c 24424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24426 (eval $ac_try) 2>&5
24427 ac_status=$?
24428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429 (exit $ac_status); }; } &&
24430 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24432 (eval $ac_try) 2>&5
24433 ac_status=$?
24434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24435 (exit $ac_status); }; }; then
24436 ac_header_compiler=yes
24437else
24438 echo "$as_me: failed program was:" >&5
24439sed 's/^/| /' conftest.$ac_ext >&5
24440
24441ac_header_compiler=no
24442fi
ac1cb8d3 24443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24444echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24445echo "${ECHO_T}$ac_header_compiler" >&6
24446
24447# Is the header present?
24448echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
24449echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
24450cat >conftest.$ac_ext <<_ACEOF
24451/* confdefs.h. */
24452_ACEOF
24453cat confdefs.h >>conftest.$ac_ext
24454cat >>conftest.$ac_ext <<_ACEOF
24455/* end confdefs.h. */
24456#include <ext/hash_map>
24457_ACEOF
24458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24460 ac_status=$?
24461 grep -v '^ *+' conftest.er1 >conftest.err
24462 rm -f conftest.er1
24463 cat conftest.err >&5
24464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24465 (exit $ac_status); } >/dev/null; then
24466 if test -s conftest.err; then
24467 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 24468 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
24469 else
24470 ac_cpp_err=
24471 fi
24472else
24473 ac_cpp_err=yes
24474fi
24475if test -z "$ac_cpp_err"; then
24476 ac_header_preproc=yes
24477else
24478 echo "$as_me: failed program was:" >&5
24479sed 's/^/| /' conftest.$ac_ext >&5
24480
24481 ac_header_preproc=no
24482fi
24483rm -f conftest.err conftest.$ac_ext
24484echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24485echo "${ECHO_T}$ac_header_preproc" >&6
24486
24487# So? What about this header?
ac1cb8d3
VS
24488case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24489 yes:no: )
bdcade0a
MB
24490 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24491echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24492 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
24493echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
24494 ac_header_preproc=yes
bdcade0a 24495 ;;
ac1cb8d3 24496 no:yes:* )
bdcade0a
MB
24497 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
24498echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24499 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
24500echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
24501 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
24502echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
24503 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
24504echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
24505 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
24506echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24507 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
24508echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
24509 (
24510 cat <<\_ASBOX
ac1cb8d3
VS
24511## ----------------------------------------- ##
24512## Report this to wx-dev@lists.wxwidgets.org ##
24513## ----------------------------------------- ##
bdcade0a
MB
24514_ASBOX
24515 ) |
24516 sed "s/^/$as_me: WARNING: /" >&2
24517 ;;
24518esac
24519echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24520echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24521if test "${ac_cv_header_ext_hash_map+set}" = set; then
24522 echo $ECHO_N "(cached) $ECHO_C" >&6
24523else
24524 ac_cv_header_ext_hash_map=$ac_header_preproc
24525fi
24526echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24527echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24528
24529fi
24530if test $ac_cv_header_ext_hash_map = yes; then
24531 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24532echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24533 cat >conftest.$ac_ext <<_ACEOF
24534/* confdefs.h. */
24535_ACEOF
24536cat confdefs.h >>conftest.$ac_ext
24537cat >>conftest.$ac_ext <<_ACEOF
24538/* end confdefs.h. */
24539#include <ext/hash_map>
24540 #include <ext/hash_set>
24541int
24542main ()
24543{
24544__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
24545 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
24546 ;
24547 return 0;
24548}
24549_ACEOF
24550rm -f conftest.$ac_objext
24551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24552 (eval $ac_compile) 2>conftest.er1
bdcade0a 24553 ac_status=$?
ac1cb8d3
VS
24554 grep -v '^ *+' conftest.er1 >conftest.err
24555 rm -f conftest.er1
24556 cat conftest.err >&5
bdcade0a
MB
24557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558 (exit $ac_status); } &&
479c790c 24559 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24561 (eval $ac_try) 2>&5
24562 ac_status=$?
24563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24564 (exit $ac_status); }; } &&
24565 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24567 (eval $ac_try) 2>&5
24568 ac_status=$?
24569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570 (exit $ac_status); }; }; then
24571 echo "$as_me:$LINENO: result: yes" >&5
24572echo "${ECHO_T}yes" >&6
24573 cat >>confdefs.h <<\_ACEOF
24574#define HAVE_EXT_HASH_MAP 1
24575_ACEOF
24576
24577 cat >>confdefs.h <<\_ACEOF
24578#define HAVE_GNU_CXX_HASH_MAP 1
24579_ACEOF
24580
24581else
24582 echo "$as_me: failed program was:" >&5
24583sed 's/^/| /' conftest.$ac_ext >&5
24584
24585echo "$as_me:$LINENO: result: no" >&5
24586echo "${ECHO_T}no" >&6
24587fi
ac1cb8d3 24588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24589
24590fi
24591
24592
a848cd7e
SC
24593fi
24594
24595
24596SEARCH_INCLUDE="\
24597 /usr/local/include \
24598 \
24599 /usr/Motif-2.1/include \
24600 /usr/Motif-1.2/include \
24601 /usr/include/Motif1.2 \
a848cd7e
SC
24602 \
24603 /usr/dt/include \
24604 /usr/openwin/include \
24605 \
24606 /usr/include/Xm \
24607 \
24608 /usr/X11R6/include \
24609 /usr/X11R6.4/include \
24610 /usr/X11R5/include \
24611 /usr/X11R4/include \
24612 \
24613 /usr/include/X11R6 \
24614 /usr/include/X11R5 \
24615 /usr/include/X11R4 \
24616 \
24617 /usr/local/X11R6/include \
24618 /usr/local/X11R5/include \
24619 /usr/local/X11R4/include \
24620 \
24621 /usr/local/include/X11R6 \
24622 /usr/local/include/X11R5 \
24623 /usr/local/include/X11R4 \
24624 \
24625 /usr/X11/include \
24626 /usr/include/X11 \
24627 /usr/local/X11/include \
24628 /usr/local/include/X11 \
24629 \
a848cd7e 24630 /usr/XFree86/include/X11 \
e051b34e
MW
24631 /usr/pkg/include \
24632 \
a848cd7e
SC
24633 /usr/openwin/share/include"
24634
6f9cf1e6 24635echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 24636echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
24637
24638case "${host}" in
24639 *-*-irix6* )
24640 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
24641 echo $ECHO_N "(cached) $ECHO_C" >&6
24642else
24643
c687b303
VZ
24644 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24645 for e in a so sl dylib dll.a; do
24646 libc="$d/libc.$e"
24647 if test -f $libc; then
24648 save_LIBS="$LIBS"
24649 LIBS="$libc"
24650 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
24651int main() { return 0; }
24652_ACEOF
24653rm -f conftest.$ac_objext conftest$ac_exeext
24654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24655 (eval $ac_link) 2>conftest.er1
24656 ac_status=$?
24657 grep -v '^ *+' conftest.er1 >conftest.err
24658 rm -f conftest.er1
24659 cat conftest.err >&5
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); } &&
479c790c 24662 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
24663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24664 (eval $ac_try) 2>&5
24665 ac_status=$?
24666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667 (exit $ac_status); }; } &&
24668 { ac_try='test -s conftest$ac_exeext'
24669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24670 (eval $ac_try) 2>&5
24671 ac_status=$?
24672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24673 (exit $ac_status); }; }; then
24674 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24675else
24676 echo "$as_me: failed program was:" >&5
24677sed 's/^/| /' conftest.$ac_ext >&5
24678
24679fi
24680rm -f conftest.err conftest.$ac_objext \
24681 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
24682 LIBS="$save_LIBS"
24683 if test "x$wx_cv_std_libpath" != "x"; then
24684 break 2
24685 fi
24686 fi
24687 done
24688 done
24689 if test "x$wx_cv_std_libpath" = "x"; then
24690 wx_cv_std_libpath="lib"
0ad5d837 24691 fi
0ad5d837
VZ
24692
24693
24694fi
6f9cf1e6
MW
24695
24696 ;;
24697
24698 *-*-solaris2* )
24699 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24700 wx_cv_std_libpath="lib/64"
24701 else
24702 wx_cv_std_libpath="lib"
24703 fi
24704 ;;
24705
24706 *-*-linux* )
24707 if test "$ac_cv_sizeof_void_p" = 8 -a \
24708 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24709 wx_cv_std_libpath="lib64"
24710 else
24711 wx_cv_std_libpath="lib"
24712 fi
c687b303
VZ
24713 ;;
24714
24715 *)
24716 wx_cv_std_libpath="lib";
24717 ;;
24718esac
0ad5d837 24719
6f9cf1e6
MW
24720echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24721echo "${ECHO_T}$wx_cv_std_libpath" >&6
24722
24723SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 24724
3eca31dc
MW
24725if test "$build" != "$host" -a "$GCC" = yes; then
24726 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24727 cross_root=`dirname $cross_root`
24728 cross_root=`dirname $cross_root`
24729
24730 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24731 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 24732 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
24733
24734 if test -z "$PKG_CONFIG_PATH"; then
24735 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24736 export PKG_CONFIG_PATH
24737 fi
24738
24739 if test -z "$x_includes" -o "$x_includes" = NONE; then
24740
24741ac_find_includes=
24742for ac_dir in $SEARCH_INCLUDE /usr/include;
24743 do
24744 if test -f "$ac_dir/X11/Intrinsic.h"; then
24745 ac_find_includes=$ac_dir
24746 break
24747 fi
24748 done
24749
24750 x_includes=$ac_find_includes
24751 fi
24752 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24753
0ad5d837
VZ
24754 ac_find_libraries=
24755 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
24756 do
24757 for ac_extension in a so sl dylib dll.a; do
24758 if test -f "$ac_dir/libXt.$ac_extension"; then
24759 ac_find_libraries=$ac_dir
24760 break 2
24761 fi
24762 done
24763 done
24764
24765 x_libraries=$ac_find_libraries
24766 fi
24767 fi
24768fi
24769
a848cd7e
SC
24770
24771cat >confcache <<\_ACEOF
24772# This file is a shell script that caches the results of configure
24773# tests run on this system so they can be shared between configure
24774# scripts and configure runs, see configure's option --config-cache.
24775# It is not useful on other systems. If it contains results you don't
24776# want to keep, you may remove or edit it.
24777#
24778# config.status only pays attention to the cache file if you give it
24779# the --recheck option to rerun configure.
24780#
24781# `ac_cv_env_foo' variables (set or unset) will be overridden when
24782# loading this file, other *unset* `ac_cv_foo' will be assigned the
24783# following values.
24784
24785_ACEOF
24786
24787# The following way of writing the cache mishandles newlines in values,
24788# but we know of no workaround that is simple, portable, and efficient.
24789# So, don't put newlines in cache variables' values.
24790# Ultrix sh set writes to stderr and can't be redirected directly,
24791# and sets the high bit in the cache file unless we assign to the vars.
24792{
24793 (set) 2>&1 |
24794 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24795 *ac_space=\ *)
24796 # `set' does not quote correctly, so add quotes (double-quote
24797 # substitution turns \\\\ into \\, and sed turns \\ into \).
24798 sed -n \
ac1cb8d3
VS
24799 "s/'/'\\\\''/g;
24800 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
24801 ;;
24802 *)
24803 # `set' quotes correctly as required by POSIX, so do not add quotes.
24804 sed -n \
ac1cb8d3 24805 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
24806 ;;
24807 esac;
24808} |
24809 sed '
24810 t clear
24811 : clear
24812 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24813 t end
24814 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24815 : end' >>confcache
24816if diff $cache_file confcache >/dev/null 2>&1; then :; else
24817 if test -w $cache_file; then
24818 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24819 cat confcache >$cache_file
24820 else
24821 echo "not updating unwritable cache $cache_file"
24822 fi
24823fi
24824rm -f confcache
24825
24826if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24827 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24828echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24829if test "${wx_cv_lib_glibc21+set}" = set; then
24830 echo $ECHO_N "(cached) $ECHO_C" >&6
24831else
24832
24833 cat >conftest.$ac_ext <<_ACEOF
24834/* confdefs.h. */
24835_ACEOF
24836cat confdefs.h >>conftest.$ac_ext
24837cat >>conftest.$ac_ext <<_ACEOF
24838/* end confdefs.h. */
24839#include <features.h>
24840int
24841main ()
24842{
24843
24844 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 24845 not glibc 2.1
a848cd7e
SC
24846 #endif
24847
24848 ;
24849 return 0;
24850}
24851_ACEOF
24852rm -f conftest.$ac_objext
24853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24854 (eval $ac_compile) 2>conftest.er1
a848cd7e 24855 ac_status=$?
ac1cb8d3
VS
24856 grep -v '^ *+' conftest.er1 >conftest.err
24857 rm -f conftest.er1
24858 cat conftest.err >&5
a848cd7e
SC
24859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860 (exit $ac_status); } &&
479c790c 24861 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24863 (eval $ac_try) 2>&5
24864 ac_status=$?
24865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866 (exit $ac_status); }; } &&
24867 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24869 (eval $ac_try) 2>&5
24870 ac_status=$?
24871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24872 (exit $ac_status); }; }; then
24873
24874 wx_cv_lib_glibc21=yes
24875
24876else
24877 echo "$as_me: failed program was:" >&5
24878sed 's/^/| /' conftest.$ac_ext >&5
24879
24880
24881 wx_cv_lib_glibc21=no
24882
24883
24884fi
ac1cb8d3 24885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24886
24887fi
24888echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24889echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24890 if test "$wx_cv_lib_glibc21" = "yes"; then
24891 cat >>confdefs.h <<\_ACEOF
24892#define wxHAVE_GLIBC2 1
24893_ACEOF
24894
24895 fi
24896fi
24897
24898if test "x$wx_cv_lib_glibc21" = "xyes"; then
24899 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24900 cat >>confdefs.h <<\_ACEOF
24901#define _GNU_SOURCE 1
24902_ACEOF
24903
24904 fi
24905fi
24906
5d7b7554
VZ
24907have_cos=0
24908have_floor=0
a848cd7e 24909
5d7b7554
VZ
24910for ac_func in cos
24911do
24912as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24913echo "$as_me:$LINENO: checking for $ac_func" >&5
24914echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24915if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e 24916 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 24917else
5d7b7554 24918 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
24919/* confdefs.h. */
24920_ACEOF
24921cat confdefs.h >>conftest.$ac_ext
24922cat >>conftest.$ac_ext <<_ACEOF
24923/* end confdefs.h. */
5d7b7554
VZ
24924/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24926#define $ac_func innocuous_$ac_func
24927
24928/* System header to define __stub macros and hopefully few prototypes,
24929 which can conflict with char $ac_func (); below.
24930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24931 <limits.h> exists even on freestanding compilers. */
24932
24933#ifdef __STDC__
24934# include <limits.h>
24935#else
24936# include <assert.h>
24937#endif
24938
24939#undef $ac_func
24940
24941/* Override any gcc2 internal prototype to avoid an error. */
24942#ifdef __cplusplus
24943extern "C"
24944{
24945#endif
24946/* We use char because int might match the return type of a gcc2
24947 builtin and then its argument prototype would still apply. */
24948char $ac_func ();
24949/* The GNU C library defines this for functions which it implements
24950 to always fail with ENOSYS. Some functions are actually named
24951 something starting with __ and the normal name is an alias. */
24952#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24953choke me
24954#else
24955char (*f) () = $ac_func;
24956#endif
24957#ifdef __cplusplus
24958}
24959#endif
24960
24961int
24962main ()
24963{
24964return f != $ac_func;
24965 ;
24966 return 0;
24967}
a848cd7e 24968_ACEOF
5d7b7554
VZ
24969rm -f conftest.$ac_objext conftest$ac_exeext
24970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24971 (eval $ac_link) 2>conftest.er1
a848cd7e 24972 ac_status=$?
ac1cb8d3
VS
24973 grep -v '^ *+' conftest.er1 >conftest.err
24974 rm -f conftest.er1
24975 cat conftest.err >&5
a848cd7e
SC
24976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24977 (exit $ac_status); } &&
479c790c 24978 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24980 (eval $ac_try) 2>&5
24981 ac_status=$?
24982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983 (exit $ac_status); }; } &&
5d7b7554 24984 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24986 (eval $ac_try) 2>&5
24987 ac_status=$?
24988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24989 (exit $ac_status); }; }; then
5d7b7554 24990 eval "$as_ac_var=yes"
a848cd7e
SC
24991else
24992 echo "$as_me: failed program was:" >&5
24993sed 's/^/| /' conftest.$ac_ext >&5
24994
5d7b7554 24995eval "$as_ac_var=no"
a848cd7e 24996fi
5d7b7554
VZ
24997rm -f conftest.err conftest.$ac_objext \
24998 conftest$ac_exeext conftest.$ac_ext
a848cd7e 24999fi
5d7b7554
VZ
25000echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25001echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25002if test `eval echo '${'$as_ac_var'}'` = yes; then
25003 cat >>confdefs.h <<_ACEOF
25004#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25005_ACEOF
25006 have_cos=1
a848cd7e 25007fi
5d7b7554 25008done
a848cd7e 25009
ab0f0edd 25010
5d7b7554 25011for ac_func in floor
a848cd7e
SC
25012do
25013as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25014echo "$as_me:$LINENO: checking for $ac_func" >&5
25015echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25016if eval "test \"\${$as_ac_var+set}\" = set"; then
25017 echo $ECHO_N "(cached) $ECHO_C" >&6
25018else
25019 cat >conftest.$ac_ext <<_ACEOF
25020/* confdefs.h. */
25021_ACEOF
25022cat confdefs.h >>conftest.$ac_ext
25023cat >>conftest.$ac_ext <<_ACEOF
25024/* end confdefs.h. */
ac1cb8d3
VS
25025/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25027#define $ac_func innocuous_$ac_func
25028
a848cd7e
SC
25029/* System header to define __stub macros and hopefully few prototypes,
25030 which can conflict with char $ac_func (); below.
25031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25032 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25033
a848cd7e
SC
25034#ifdef __STDC__
25035# include <limits.h>
25036#else
25037# include <assert.h>
25038#endif
ac1cb8d3
VS
25039
25040#undef $ac_func
25041
a848cd7e
SC
25042/* Override any gcc2 internal prototype to avoid an error. */
25043#ifdef __cplusplus
25044extern "C"
25045{
25046#endif
25047/* We use char because int might match the return type of a gcc2
25048 builtin and then its argument prototype would still apply. */
25049char $ac_func ();
25050/* The GNU C library defines this for functions which it implements
25051 to always fail with ENOSYS. Some functions are actually named
25052 something starting with __ and the normal name is an alias. */
25053#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25054choke me
25055#else
25056char (*f) () = $ac_func;
25057#endif
25058#ifdef __cplusplus
25059}
25060#endif
25061
25062int
25063main ()
25064{
25065return f != $ac_func;
25066 ;
25067 return 0;
25068}
25069_ACEOF
25070rm -f conftest.$ac_objext conftest$ac_exeext
25071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25072 (eval $ac_link) 2>conftest.er1
a848cd7e 25073 ac_status=$?
ac1cb8d3
VS
25074 grep -v '^ *+' conftest.er1 >conftest.err
25075 rm -f conftest.er1
25076 cat conftest.err >&5
a848cd7e
SC
25077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); } &&
479c790c 25079 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25081 (eval $ac_try) 2>&5
25082 ac_status=$?
25083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25084 (exit $ac_status); }; } &&
25085 { ac_try='test -s conftest$ac_exeext'
25086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25087 (eval $ac_try) 2>&5
25088 ac_status=$?
25089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25090 (exit $ac_status); }; }; then
25091 eval "$as_ac_var=yes"
25092else
25093 echo "$as_me: failed program was:" >&5
25094sed 's/^/| /' conftest.$ac_ext >&5
25095
25096eval "$as_ac_var=no"
25097fi
25098rm -f conftest.err conftest.$ac_objext \
25099 conftest$ac_exeext conftest.$ac_ext
25100fi
25101echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25102echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25103if test `eval echo '${'$as_ac_var'}'` = yes; then
25104 cat >>confdefs.h <<_ACEOF
25105#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25106_ACEOF
25107 have_floor=1
25108fi
25109done
25110
25111echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
25112echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
25113if test "$have_cos" = 1 -a "$have_floor" = 1; then
25114 echo "$as_me:$LINENO: result: yes" >&5
25115echo "${ECHO_T}yes" >&6
25116else
25117 echo "$as_me:$LINENO: result: no" >&5
25118echo "${ECHO_T}no" >&6
25119 LIBS="$LIBS -lm"
25120 # use different functions to avoid configure caching
25121 have_sin=0
25122 have_ceil=0
25123
25124for ac_func in sin
25125do
25126as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25127echo "$as_me:$LINENO: checking for $ac_func" >&5
25128echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25129if eval "test \"\${$as_ac_var+set}\" = set"; then
25130 echo $ECHO_N "(cached) $ECHO_C" >&6
25131else
25132 cat >conftest.$ac_ext <<_ACEOF
25133/* confdefs.h. */
25134_ACEOF
25135cat confdefs.h >>conftest.$ac_ext
25136cat >>conftest.$ac_ext <<_ACEOF
25137/* end confdefs.h. */
25138/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25140#define $ac_func innocuous_$ac_func
25141
25142/* System header to define __stub macros and hopefully few prototypes,
25143 which can conflict with char $ac_func (); below.
25144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25145 <limits.h> exists even on freestanding compilers. */
25146
25147#ifdef __STDC__
25148# include <limits.h>
25149#else
25150# include <assert.h>
25151#endif
25152
25153#undef $ac_func
25154
25155/* Override any gcc2 internal prototype to avoid an error. */
25156#ifdef __cplusplus
25157extern "C"
25158{
25159#endif
25160/* We use char because int might match the return type of a gcc2
25161 builtin and then its argument prototype would still apply. */
25162char $ac_func ();
25163/* The GNU C library defines this for functions which it implements
25164 to always fail with ENOSYS. Some functions are actually named
25165 something starting with __ and the normal name is an alias. */
25166#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25167choke me
25168#else
25169char (*f) () = $ac_func;
25170#endif
25171#ifdef __cplusplus
25172}
25173#endif
25174
25175int
25176main ()
25177{
25178return f != $ac_func;
25179 ;
25180 return 0;
25181}
25182_ACEOF
25183rm -f conftest.$ac_objext conftest$ac_exeext
25184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25185 (eval $ac_link) 2>conftest.er1
25186 ac_status=$?
25187 grep -v '^ *+' conftest.er1 >conftest.err
25188 rm -f conftest.er1
25189 cat conftest.err >&5
25190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191 (exit $ac_status); } &&
479c790c 25192 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25194 (eval $ac_try) 2>&5
25195 ac_status=$?
25196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197 (exit $ac_status); }; } &&
25198 { ac_try='test -s conftest$ac_exeext'
25199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25200 (eval $ac_try) 2>&5
25201 ac_status=$?
25202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203 (exit $ac_status); }; }; then
25204 eval "$as_ac_var=yes"
25205else
25206 echo "$as_me: failed program was:" >&5
25207sed 's/^/| /' conftest.$ac_ext >&5
25208
25209eval "$as_ac_var=no"
25210fi
25211rm -f conftest.err conftest.$ac_objext \
25212 conftest$ac_exeext conftest.$ac_ext
25213fi
25214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25215echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25216if test `eval echo '${'$as_ac_var'}'` = yes; then
25217 cat >>confdefs.h <<_ACEOF
25218#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25219_ACEOF
25220 have_sin=1
25221fi
25222done
25223
25224
25225for ac_func in ceil
25226do
25227as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25228echo "$as_me:$LINENO: checking for $ac_func" >&5
25229echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25230if eval "test \"\${$as_ac_var+set}\" = set"; then
25231 echo $ECHO_N "(cached) $ECHO_C" >&6
25232else
25233 cat >conftest.$ac_ext <<_ACEOF
25234/* confdefs.h. */
25235_ACEOF
25236cat confdefs.h >>conftest.$ac_ext
25237cat >>conftest.$ac_ext <<_ACEOF
25238/* end confdefs.h. */
25239/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25241#define $ac_func innocuous_$ac_func
25242
25243/* System header to define __stub macros and hopefully few prototypes,
25244 which can conflict with char $ac_func (); below.
25245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25246 <limits.h> exists even on freestanding compilers. */
25247
25248#ifdef __STDC__
25249# include <limits.h>
25250#else
25251# include <assert.h>
25252#endif
25253
25254#undef $ac_func
25255
25256/* Override any gcc2 internal prototype to avoid an error. */
25257#ifdef __cplusplus
25258extern "C"
25259{
25260#endif
25261/* We use char because int might match the return type of a gcc2
25262 builtin and then its argument prototype would still apply. */
25263char $ac_func ();
25264/* The GNU C library defines this for functions which it implements
25265 to always fail with ENOSYS. Some functions are actually named
25266 something starting with __ and the normal name is an alias. */
25267#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25268choke me
25269#else
25270char (*f) () = $ac_func;
25271#endif
25272#ifdef __cplusplus
25273}
25274#endif
25275
25276int
25277main ()
25278{
25279return f != $ac_func;
25280 ;
25281 return 0;
25282}
25283_ACEOF
25284rm -f conftest.$ac_objext conftest$ac_exeext
25285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25286 (eval $ac_link) 2>conftest.er1
25287 ac_status=$?
25288 grep -v '^ *+' conftest.er1 >conftest.err
25289 rm -f conftest.er1
25290 cat conftest.err >&5
25291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292 (exit $ac_status); } &&
479c790c 25293 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25295 (eval $ac_try) 2>&5
25296 ac_status=$?
25297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25298 (exit $ac_status); }; } &&
25299 { ac_try='test -s conftest$ac_exeext'
25300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25301 (eval $ac_try) 2>&5
25302 ac_status=$?
25303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25304 (exit $ac_status); }; }; then
25305 eval "$as_ac_var=yes"
25306else
25307 echo "$as_me: failed program was:" >&5
25308sed 's/^/| /' conftest.$ac_ext >&5
25309
25310eval "$as_ac_var=no"
25311fi
25312rm -f conftest.err conftest.$ac_objext \
25313 conftest$ac_exeext conftest.$ac_ext
25314fi
25315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25316echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25317if test `eval echo '${'$as_ac_var'}'` = yes; then
25318 cat >>confdefs.h <<_ACEOF
25319#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25320_ACEOF
25321 have_ceil=1
25322fi
25323done
25324
25325 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
25326echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
25327 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
25328 echo "$as_me:$LINENO: result: yes" >&5
25329echo "${ECHO_T}yes" >&6
25330 else
25331 echo "$as_me:$LINENO: result: no" >&5
25332echo "${ECHO_T}no" >&6
25333 # not sure we should warn the user, crash, etc.
25334 fi
25335fi
25336
ec3edcc9
VZ
25337if test "wxUSE_UNICODE" = "yes"; then
25338
25339for ac_func in wcstoull
25340do
25341as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25342echo "$as_me:$LINENO: checking for $ac_func" >&5
25343echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25344if eval "test \"\${$as_ac_var+set}\" = set"; then
25345 echo $ECHO_N "(cached) $ECHO_C" >&6
25346else
25347 cat >conftest.$ac_ext <<_ACEOF
25348/* confdefs.h. */
25349_ACEOF
25350cat confdefs.h >>conftest.$ac_ext
25351cat >>conftest.$ac_ext <<_ACEOF
25352/* end confdefs.h. */
25353/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25355#define $ac_func innocuous_$ac_func
25356
25357/* System header to define __stub macros and hopefully few prototypes,
25358 which can conflict with char $ac_func (); below.
25359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25360 <limits.h> exists even on freestanding compilers. */
25361
25362#ifdef __STDC__
25363# include <limits.h>
25364#else
25365# include <assert.h>
25366#endif
25367
25368#undef $ac_func
25369
25370/* Override any gcc2 internal prototype to avoid an error. */
25371#ifdef __cplusplus
25372extern "C"
25373{
25374#endif
25375/* We use char because int might match the return type of a gcc2
25376 builtin and then its argument prototype would still apply. */
25377char $ac_func ();
25378/* The GNU C library defines this for functions which it implements
25379 to always fail with ENOSYS. Some functions are actually named
25380 something starting with __ and the normal name is an alias. */
25381#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25382choke me
25383#else
25384char (*f) () = $ac_func;
25385#endif
25386#ifdef __cplusplus
25387}
25388#endif
25389
25390int
25391main ()
25392{
25393return f != $ac_func;
25394 ;
25395 return 0;
25396}
25397_ACEOF
25398rm -f conftest.$ac_objext conftest$ac_exeext
25399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25400 (eval $ac_link) 2>conftest.er1
25401 ac_status=$?
25402 grep -v '^ *+' conftest.er1 >conftest.err
25403 rm -f conftest.er1
25404 cat conftest.err >&5
25405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406 (exit $ac_status); } &&
25407 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25409 (eval $ac_try) 2>&5
25410 ac_status=$?
25411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412 (exit $ac_status); }; } &&
25413 { ac_try='test -s conftest$ac_exeext'
25414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25415 (eval $ac_try) 2>&5
25416 ac_status=$?
25417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418 (exit $ac_status); }; }; then
25419 eval "$as_ac_var=yes"
25420else
25421 echo "$as_me: failed program was:" >&5
25422sed 's/^/| /' conftest.$ac_ext >&5
25423
25424eval "$as_ac_var=no"
25425fi
25426rm -f conftest.err conftest.$ac_objext \
25427 conftest$ac_exeext conftest.$ac_ext
25428fi
25429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25430echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25431if test `eval echo '${'$as_ac_var'}'` = yes; then
25432 cat >>confdefs.h <<_ACEOF
25433#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25434_ACEOF
25435
25436fi
25437done
25438
25439else
25440
25441for ac_func in strtoull
25442do
25443as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25444echo "$as_me:$LINENO: checking for $ac_func" >&5
25445echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25446if eval "test \"\${$as_ac_var+set}\" = set"; then
25447 echo $ECHO_N "(cached) $ECHO_C" >&6
25448else
25449 cat >conftest.$ac_ext <<_ACEOF
25450/* confdefs.h. */
25451_ACEOF
25452cat confdefs.h >>conftest.$ac_ext
25453cat >>conftest.$ac_ext <<_ACEOF
25454/* end confdefs.h. */
25455/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25457#define $ac_func innocuous_$ac_func
25458
25459/* System header to define __stub macros and hopefully few prototypes,
25460 which can conflict with char $ac_func (); below.
25461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25462 <limits.h> exists even on freestanding compilers. */
25463
25464#ifdef __STDC__
25465# include <limits.h>
25466#else
25467# include <assert.h>
25468#endif
25469
25470#undef $ac_func
25471
25472/* Override any gcc2 internal prototype to avoid an error. */
25473#ifdef __cplusplus
25474extern "C"
25475{
25476#endif
25477/* We use char because int might match the return type of a gcc2
25478 builtin and then its argument prototype would still apply. */
25479char $ac_func ();
25480/* The GNU C library defines this for functions which it implements
25481 to always fail with ENOSYS. Some functions are actually named
25482 something starting with __ and the normal name is an alias. */
25483#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25484choke me
25485#else
25486char (*f) () = $ac_func;
25487#endif
25488#ifdef __cplusplus
25489}
25490#endif
25491
25492int
25493main ()
25494{
25495return f != $ac_func;
25496 ;
25497 return 0;
25498}
25499_ACEOF
25500rm -f conftest.$ac_objext conftest$ac_exeext
25501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25502 (eval $ac_link) 2>conftest.er1
25503 ac_status=$?
25504 grep -v '^ *+' conftest.er1 >conftest.err
25505 rm -f conftest.er1
25506 cat conftest.err >&5
25507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508 (exit $ac_status); } &&
25509 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25511 (eval $ac_try) 2>&5
25512 ac_status=$?
25513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514 (exit $ac_status); }; } &&
25515 { ac_try='test -s conftest$ac_exeext'
25516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25517 (eval $ac_try) 2>&5
25518 ac_status=$?
25519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25520 (exit $ac_status); }; }; then
25521 eval "$as_ac_var=yes"
25522else
25523 echo "$as_me: failed program was:" >&5
25524sed 's/^/| /' conftest.$ac_ext >&5
25525
25526eval "$as_ac_var=no"
25527fi
25528rm -f conftest.err conftest.$ac_objext \
25529 conftest$ac_exeext conftest.$ac_ext
25530fi
25531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25532echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25533if test `eval echo '${'$as_ac_var'}'` = yes; then
25534 cat >>confdefs.h <<_ACEOF
25535#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25536_ACEOF
25537
25538fi
25539done
25540
25541fi
25542
5d7b7554
VZ
25543
25544
25545if test "$wxUSE_REGEX" != "no"; then
25546 cat >>confdefs.h <<\_ACEOF
25547#define wxUSE_REGEX 1
25548_ACEOF
25549
25550
25551 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
25552 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
25553echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
25554 wxUSE_REGEX=builtin
25555 fi
25556
25557 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
25558 if test "${ac_cv_header_regex_h+set}" = set; then
25559 echo "$as_me:$LINENO: checking for regex.h" >&5
25560echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25561if test "${ac_cv_header_regex_h+set}" = set; then
25562 echo $ECHO_N "(cached) $ECHO_C" >&6
25563fi
25564echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25565echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25566else
25567 # Is the header compilable?
25568echo "$as_me:$LINENO: checking regex.h usability" >&5
25569echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
25570cat >conftest.$ac_ext <<_ACEOF
25571/* confdefs.h. */
25572_ACEOF
25573cat confdefs.h >>conftest.$ac_ext
25574cat >>conftest.$ac_ext <<_ACEOF
25575/* end confdefs.h. */
25576$ac_includes_default
25577#include <regex.h>
25578_ACEOF
25579rm -f conftest.$ac_objext
25580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25581 (eval $ac_compile) 2>conftest.er1
25582 ac_status=$?
25583 grep -v '^ *+' conftest.er1 >conftest.err
25584 rm -f conftest.er1
25585 cat conftest.err >&5
25586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25587 (exit $ac_status); } &&
479c790c 25588 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25590 (eval $ac_try) 2>&5
25591 ac_status=$?
25592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593 (exit $ac_status); }; } &&
25594 { ac_try='test -s conftest.$ac_objext'
25595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25596 (eval $ac_try) 2>&5
25597 ac_status=$?
25598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599 (exit $ac_status); }; }; then
25600 ac_header_compiler=yes
25601else
25602 echo "$as_me: failed program was:" >&5
25603sed 's/^/| /' conftest.$ac_ext >&5
25604
25605ac_header_compiler=no
25606fi
25607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25608echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25609echo "${ECHO_T}$ac_header_compiler" >&6
25610
25611# Is the header present?
25612echo "$as_me:$LINENO: checking regex.h presence" >&5
25613echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
25614cat >conftest.$ac_ext <<_ACEOF
25615/* confdefs.h. */
25616_ACEOF
25617cat confdefs.h >>conftest.$ac_ext
25618cat >>conftest.$ac_ext <<_ACEOF
25619/* end confdefs.h. */
25620#include <regex.h>
25621_ACEOF
25622if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25624 ac_status=$?
25625 grep -v '^ *+' conftest.er1 >conftest.err
25626 rm -f conftest.er1
25627 cat conftest.err >&5
25628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25629 (exit $ac_status); } >/dev/null; then
25630 if test -s conftest.err; then
25631 ac_cpp_err=$ac_cxx_preproc_warn_flag
25632 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25633 else
25634 ac_cpp_err=
25635 fi
25636else
25637 ac_cpp_err=yes
25638fi
25639if test -z "$ac_cpp_err"; then
25640 ac_header_preproc=yes
25641else
25642 echo "$as_me: failed program was:" >&5
25643sed 's/^/| /' conftest.$ac_ext >&5
25644
25645 ac_header_preproc=no
25646fi
25647rm -f conftest.err conftest.$ac_ext
25648echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25649echo "${ECHO_T}$ac_header_preproc" >&6
25650
25651# So? What about this header?
25652case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25653 yes:no: )
25654 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
25655echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25656 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
25657echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
25658 ac_header_preproc=yes
25659 ;;
25660 no:yes:* )
25661 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
25662echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
25663 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
25664echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
25665 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
25666echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
25667 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
25668echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
25669 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
25670echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
25671 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
25672echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
25673 (
25674 cat <<\_ASBOX
25675## ----------------------------------------- ##
25676## Report this to wx-dev@lists.wxwidgets.org ##
25677## ----------------------------------------- ##
25678_ASBOX
25679 ) |
25680 sed "s/^/$as_me: WARNING: /" >&2
25681 ;;
25682esac
25683echo "$as_me:$LINENO: checking for regex.h" >&5
25684echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25685if test "${ac_cv_header_regex_h+set}" = set; then
25686 echo $ECHO_N "(cached) $ECHO_C" >&6
25687else
25688 ac_cv_header_regex_h=$ac_header_preproc
25689fi
25690echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25691echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25692
25693fi
25694if test $ac_cv_header_regex_h = yes; then
25695
25696
25697for ac_func in regcomp re_search
25698do
25699as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25700echo "$as_me:$LINENO: checking for $ac_func" >&5
25701echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25702if eval "test \"\${$as_ac_var+set}\" = set"; then
25703 echo $ECHO_N "(cached) $ECHO_C" >&6
25704else
25705 cat >conftest.$ac_ext <<_ACEOF
25706/* confdefs.h. */
25707_ACEOF
25708cat confdefs.h >>conftest.$ac_ext
25709cat >>conftest.$ac_ext <<_ACEOF
25710/* end confdefs.h. */
25711/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25713#define $ac_func innocuous_$ac_func
25714
25715/* System header to define __stub macros and hopefully few prototypes,
25716 which can conflict with char $ac_func (); below.
25717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25718 <limits.h> exists even on freestanding compilers. */
25719
25720#ifdef __STDC__
25721# include <limits.h>
25722#else
25723# include <assert.h>
25724#endif
25725
25726#undef $ac_func
25727
25728/* Override any gcc2 internal prototype to avoid an error. */
25729#ifdef __cplusplus
25730extern "C"
25731{
25732#endif
25733/* We use char because int might match the return type of a gcc2
25734 builtin and then its argument prototype would still apply. */
25735char $ac_func ();
25736/* The GNU C library defines this for functions which it implements
25737 to always fail with ENOSYS. Some functions are actually named
25738 something starting with __ and the normal name is an alias. */
25739#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25740choke me
25741#else
25742char (*f) () = $ac_func;
25743#endif
25744#ifdef __cplusplus
25745}
25746#endif
25747
25748int
25749main ()
25750{
25751return f != $ac_func;
25752 ;
25753 return 0;
25754}
25755_ACEOF
25756rm -f conftest.$ac_objext conftest$ac_exeext
25757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25758 (eval $ac_link) 2>conftest.er1
25759 ac_status=$?
25760 grep -v '^ *+' conftest.er1 >conftest.err
25761 rm -f conftest.er1
25762 cat conftest.err >&5
25763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25764 (exit $ac_status); } &&
479c790c 25765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25767 (eval $ac_try) 2>&5
25768 ac_status=$?
25769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770 (exit $ac_status); }; } &&
25771 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25773 (eval $ac_try) 2>&5
25774 ac_status=$?
25775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25776 (exit $ac_status); }; }; then
25777 eval "$as_ac_var=yes"
25778else
25779 echo "$as_me: failed program was:" >&5
25780sed 's/^/| /' conftest.$ac_ext >&5
25781
25782eval "$as_ac_var=no"
25783fi
ac1cb8d3
VS
25784rm -f conftest.err conftest.$ac_objext \
25785 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25786fi
25787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25788echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25789if test `eval echo '${'$as_ac_var'}'` = yes; then
25790 cat >>confdefs.h <<_ACEOF
25791#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25792_ACEOF
25793
25794fi
25795done
25796
25797fi
25798
25799
25800
25801 if test "x$ac_cv_func_regcomp" != "xyes"; then
25802 if test "$wxUSE_REGEX" = "sys" ; then
25803 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25804echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25805 { (exit 1); exit 1; }; }
25806 else
25807 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25808echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25809 wxUSE_REGEX=builtin
25810 fi
25811 else
25812 wxUSE_REGEX=sys
25813 cat >>confdefs.h <<\_ACEOF
25814#define WX_NO_REGEX_ADVANCED 1
25815_ACEOF
25816
25817 fi
25818 fi
25819fi
25820
25821
25822ZLIB_LINK=
25823if test "$wxUSE_ZLIB" != "no" ; then
25824 cat >>confdefs.h <<\_ACEOF
25825#define wxUSE_ZLIB 1
25826_ACEOF
25827
25828
25829 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25830 if test "$USE_DARWIN" = 1; then
25831 system_zlib_h_ok="yes"
25832 else
25833 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25834echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
25835if test "${ac_cv_header_zlib_h+set}" = set; then
25836 echo $ECHO_N "(cached) $ECHO_C" >&6
25837else
25838 if test "$cross_compiling" = yes; then
25839 unset ac_cv_header_zlib_h
25840
25841else
25842 cat >conftest.$ac_ext <<_ACEOF
25843/* confdefs.h. */
25844_ACEOF
25845cat confdefs.h >>conftest.$ac_ext
25846cat >>conftest.$ac_ext <<_ACEOF
25847/* end confdefs.h. */
25848
25849 #include <zlib.h>
25850 #include <stdio.h>
25851
25852 int main()
25853 {
25854 FILE *f=fopen("conftestval", "w");
25855 if (!f) exit(1);
25856 fprintf(f, "%s",
25857 ZLIB_VERSION[0] == '1' &&
25858 (ZLIB_VERSION[2] > '1' ||
25859 (ZLIB_VERSION[2] == '1' &&
25860 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25861 exit(0);
25862 }
25863
25864_ACEOF
25865rm -f conftest$ac_exeext
25866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25867 (eval $ac_link) 2>&5
25868 ac_status=$?
25869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25872 (eval $ac_try) 2>&5
25873 ac_status=$?
25874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875 (exit $ac_status); }; }; then
25876 ac_cv_header_zlib_h=`cat conftestval`
25877else
25878 echo "$as_me: program exited with status $ac_status" >&5
25879echo "$as_me: failed program was:" >&5
25880sed 's/^/| /' conftest.$ac_ext >&5
25881
25882( exit $ac_status )
25883ac_cv_header_zlib_h=no
25884fi
ac1cb8d3 25885rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25886fi
25887
25888fi
25889echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25890echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25891 if test "${ac_cv_header_zlib_h+set}" = set; then
25892 echo "$as_me:$LINENO: checking for zlib.h" >&5
25893echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25894if test "${ac_cv_header_zlib_h+set}" = set; then
25895 echo $ECHO_N "(cached) $ECHO_C" >&6
25896fi
25897echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25898echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25899else
25900 # Is the header compilable?
25901echo "$as_me:$LINENO: checking zlib.h usability" >&5
25902echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25903cat >conftest.$ac_ext <<_ACEOF
25904/* confdefs.h. */
25905_ACEOF
25906cat confdefs.h >>conftest.$ac_ext
25907cat >>conftest.$ac_ext <<_ACEOF
25908/* end confdefs.h. */
25909$ac_includes_default
25910#include <zlib.h>
25911_ACEOF
25912rm -f conftest.$ac_objext
25913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25914 (eval $ac_compile) 2>conftest.er1
a848cd7e 25915 ac_status=$?
ac1cb8d3
VS
25916 grep -v '^ *+' conftest.er1 >conftest.err
25917 rm -f conftest.er1
25918 cat conftest.err >&5
a848cd7e
SC
25919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25920 (exit $ac_status); } &&
479c790c 25921 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25923 (eval $ac_try) 2>&5
25924 ac_status=$?
25925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25926 (exit $ac_status); }; } &&
25927 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25929 (eval $ac_try) 2>&5
25930 ac_status=$?
25931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25932 (exit $ac_status); }; }; then
25933 ac_header_compiler=yes
25934else
25935 echo "$as_me: failed program was:" >&5
25936sed 's/^/| /' conftest.$ac_ext >&5
25937
25938ac_header_compiler=no
25939fi
ac1cb8d3 25940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25941echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25942echo "${ECHO_T}$ac_header_compiler" >&6
25943
25944# Is the header present?
25945echo "$as_me:$LINENO: checking zlib.h presence" >&5
25946echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25947cat >conftest.$ac_ext <<_ACEOF
25948/* confdefs.h. */
25949_ACEOF
25950cat confdefs.h >>conftest.$ac_ext
25951cat >>conftest.$ac_ext <<_ACEOF
25952/* end confdefs.h. */
25953#include <zlib.h>
25954_ACEOF
25955if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25957 ac_status=$?
25958 grep -v '^ *+' conftest.er1 >conftest.err
25959 rm -f conftest.er1
25960 cat conftest.err >&5
25961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962 (exit $ac_status); } >/dev/null; then
25963 if test -s conftest.err; then
5d7b7554
VZ
25964 ac_cpp_err=$ac_cxx_preproc_warn_flag
25965 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25966 else
25967 ac_cpp_err=
25968 fi
25969else
25970 ac_cpp_err=yes
25971fi
25972if test -z "$ac_cpp_err"; then
25973 ac_header_preproc=yes
25974else
25975 echo "$as_me: failed program was:" >&5
25976sed 's/^/| /' conftest.$ac_ext >&5
25977
25978 ac_header_preproc=no
25979fi
25980rm -f conftest.err conftest.$ac_ext
25981echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25982echo "${ECHO_T}$ac_header_preproc" >&6
25983
25984# So? What about this header?
5d7b7554 25985case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25986 yes:no: )
a848cd7e
SC
25987 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25988echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25989 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25990echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25991 ac_header_preproc=yes
a848cd7e 25992 ;;
ac1cb8d3 25993 no:yes:* )
a848cd7e
SC
25994 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25995echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25996 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
25997echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
25998 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25999echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
26000 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
26001echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26002 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
26003echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26004 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
26005echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26006 (
26007 cat <<\_ASBOX
ac1cb8d3
VS
26008## ----------------------------------------- ##
26009## Report this to wx-dev@lists.wxwidgets.org ##
26010## ----------------------------------------- ##
a848cd7e
SC
26011_ASBOX
26012 ) |
26013 sed "s/^/$as_me: WARNING: /" >&2
26014 ;;
26015esac
26016echo "$as_me:$LINENO: checking for zlib.h" >&5
26017echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
26018if test "${ac_cv_header_zlib_h+set}" = set; then
26019 echo $ECHO_N "(cached) $ECHO_C" >&6
26020else
26021 ac_cv_header_zlib_h=$ac_header_preproc
26022fi
26023echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26024echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
26025
26026fi
26027
26028
26029
26030 system_zlib_h_ok=$ac_cv_header_zlib_h
26031 fi
26032
26033 if test "$system_zlib_h_ok" = "yes"; then
26034 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
26035echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
26036if test "${ac_cv_lib_z_deflate+set}" = set; then
26037 echo $ECHO_N "(cached) $ECHO_C" >&6
26038else
26039 ac_check_lib_save_LIBS=$LIBS
26040LIBS="-lz $LIBS"
26041cat >conftest.$ac_ext <<_ACEOF
26042/* confdefs.h. */
26043_ACEOF
26044cat confdefs.h >>conftest.$ac_ext
26045cat >>conftest.$ac_ext <<_ACEOF
26046/* end confdefs.h. */
26047
26048/* Override any gcc2 internal prototype to avoid an error. */
26049#ifdef __cplusplus
26050extern "C"
26051#endif
26052/* We use char because int might match the return type of a gcc2
26053 builtin and then its argument prototype would still apply. */
26054char deflate ();
26055int
26056main ()
26057{
26058deflate ();
26059 ;
26060 return 0;
26061}
26062_ACEOF
26063rm -f conftest.$ac_objext conftest$ac_exeext
26064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26065 (eval $ac_link) 2>conftest.er1
a848cd7e 26066 ac_status=$?
ac1cb8d3
VS
26067 grep -v '^ *+' conftest.er1 >conftest.err
26068 rm -f conftest.er1
26069 cat conftest.err >&5
a848cd7e
SC
26070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26071 (exit $ac_status); } &&
479c790c 26072 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26074 (eval $ac_try) 2>&5
26075 ac_status=$?
26076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26077 (exit $ac_status); }; } &&
26078 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26080 (eval $ac_try) 2>&5
26081 ac_status=$?
26082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083 (exit $ac_status); }; }; then
26084 ac_cv_lib_z_deflate=yes
26085else
26086 echo "$as_me: failed program was:" >&5
26087sed 's/^/| /' conftest.$ac_ext >&5
26088
26089ac_cv_lib_z_deflate=no
26090fi
ac1cb8d3
VS
26091rm -f conftest.err conftest.$ac_objext \
26092 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26093LIBS=$ac_check_lib_save_LIBS
26094fi
26095echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
26096echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
26097if test $ac_cv_lib_z_deflate = yes; then
26098 ZLIB_LINK=" -lz"
26099fi
26100
26101 fi
26102
26103 if test "x$ZLIB_LINK" = "x" ; then
26104 if test "$wxUSE_ZLIB" = "sys" ; then
26105 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
26106echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
26107 { (exit 1); exit 1; }; }
26108 else
26109 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
26110echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
26111 wxUSE_ZLIB=builtin
26112 fi
26113 else
26114 wxUSE_ZLIB=sys
26115 fi
26116 fi
26117fi
26118
26119
26120PNG_LINK=
26121if test "$wxUSE_LIBPNG" != "no" ; then
26122 cat >>confdefs.h <<\_ACEOF
26123#define wxUSE_LIBPNG 1
26124_ACEOF
26125
26126
26127 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
26128 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
26129echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
26130 wxUSE_LIBPNG=sys
26131 fi
26132
26133 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
26134 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
26135echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
26136 wxUSE_LIBPNG=builtin
26137 fi
26138
26139 if test "$wxUSE_MGL" != 1 ; then
26140 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
26141 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
26142echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
26143if test "${ac_cv_header_png_h+set}" = set; then
26144 echo $ECHO_N "(cached) $ECHO_C" >&6
26145else
26146 if test "$cross_compiling" = yes; then
26147 unset ac_cv_header_png_h
26148
26149else
26150 cat >conftest.$ac_ext <<_ACEOF
26151/* confdefs.h. */
26152_ACEOF
26153cat confdefs.h >>conftest.$ac_ext
26154cat >>conftest.$ac_ext <<_ACEOF
26155/* end confdefs.h. */
26156
26157 #include <png.h>
26158 #include <stdio.h>
26159
26160 int main()
26161 {
26162 FILE *f=fopen("conftestval", "w");
26163 if (!f) exit(1);
26164 fprintf(f, "%s",
26165 PNG_LIBPNG_VER > 90 ? "yes" : "no");
26166 exit(0);
26167 }
26168
26169_ACEOF
26170rm -f conftest$ac_exeext
26171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26172 (eval $ac_link) 2>&5
26173 ac_status=$?
26174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26177 (eval $ac_try) 2>&5
26178 ac_status=$?
26179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26180 (exit $ac_status); }; }; then
26181 ac_cv_header_png_h=`cat conftestval`
26182else
26183 echo "$as_me: program exited with status $ac_status" >&5
26184echo "$as_me: failed program was:" >&5
26185sed 's/^/| /' conftest.$ac_ext >&5
26186
26187( exit $ac_status )
26188ac_cv_header_png_h=no
26189fi
ac1cb8d3 26190rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26191fi
26192
26193fi
26194echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26195echo "${ECHO_T}$ac_cv_header_png_h" >&6
26196 if test "${ac_cv_header_png_h+set}" = set; then
26197 echo "$as_me:$LINENO: checking for png.h" >&5
26198echo $ECHO_N "checking for png.h... $ECHO_C" >&6
26199if test "${ac_cv_header_png_h+set}" = set; then
26200 echo $ECHO_N "(cached) $ECHO_C" >&6
26201fi
26202echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26203echo "${ECHO_T}$ac_cv_header_png_h" >&6
26204else
26205 # Is the header compilable?
26206echo "$as_me:$LINENO: checking png.h usability" >&5
26207echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
26208cat >conftest.$ac_ext <<_ACEOF
26209/* confdefs.h. */
26210_ACEOF
26211cat confdefs.h >>conftest.$ac_ext
26212cat >>conftest.$ac_ext <<_ACEOF
26213/* end confdefs.h. */
26214$ac_includes_default
26215#include <png.h>
26216_ACEOF
26217rm -f conftest.$ac_objext
26218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26219 (eval $ac_compile) 2>conftest.er1
a848cd7e 26220 ac_status=$?
ac1cb8d3
VS
26221 grep -v '^ *+' conftest.er1 >conftest.err
26222 rm -f conftest.er1
26223 cat conftest.err >&5
a848cd7e
SC
26224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26225 (exit $ac_status); } &&
479c790c 26226 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26228 (eval $ac_try) 2>&5
26229 ac_status=$?
26230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26231 (exit $ac_status); }; } &&
26232 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26234 (eval $ac_try) 2>&5
26235 ac_status=$?
26236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26237 (exit $ac_status); }; }; then
26238 ac_header_compiler=yes
26239else
26240 echo "$as_me: failed program was:" >&5
26241sed 's/^/| /' conftest.$ac_ext >&5
26242
26243ac_header_compiler=no
26244fi
ac1cb8d3 26245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26246echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26247echo "${ECHO_T}$ac_header_compiler" >&6
26248
26249# Is the header present?
26250echo "$as_me:$LINENO: checking png.h presence" >&5
26251echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
26252cat >conftest.$ac_ext <<_ACEOF
26253/* confdefs.h. */
26254_ACEOF
26255cat confdefs.h >>conftest.$ac_ext
26256cat >>conftest.$ac_ext <<_ACEOF
26257/* end confdefs.h. */
26258#include <png.h>
26259_ACEOF
26260if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26262 ac_status=$?
26263 grep -v '^ *+' conftest.er1 >conftest.err
26264 rm -f conftest.er1
26265 cat conftest.err >&5
26266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26267 (exit $ac_status); } >/dev/null; then
26268 if test -s conftest.err; then
5d7b7554
VZ
26269 ac_cpp_err=$ac_cxx_preproc_warn_flag
26270 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26271 else
26272 ac_cpp_err=
26273 fi
26274else
26275 ac_cpp_err=yes
26276fi
26277if test -z "$ac_cpp_err"; then
26278 ac_header_preproc=yes
26279else
26280 echo "$as_me: failed program was:" >&5
26281sed 's/^/| /' conftest.$ac_ext >&5
26282
26283 ac_header_preproc=no
26284fi
26285rm -f conftest.err conftest.$ac_ext
26286echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26287echo "${ECHO_T}$ac_header_preproc" >&6
26288
26289# So? What about this header?
5d7b7554 26290case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26291 yes:no: )
a848cd7e
SC
26292 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
26293echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26294 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
26295echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
26296 ac_header_preproc=yes
a848cd7e 26297 ;;
ac1cb8d3 26298 no:yes:* )
a848cd7e
SC
26299 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
26300echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26301 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
26302echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
26303 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
26304echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
26305 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
26306echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26307 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
26308echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26309 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
26310echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26311 (
26312 cat <<\_ASBOX
ac1cb8d3
VS
26313## ----------------------------------------- ##
26314## Report this to wx-dev@lists.wxwidgets.org ##
26315## ----------------------------------------- ##
a848cd7e
SC
26316_ASBOX
26317 ) |
26318 sed "s/^/$as_me: WARNING: /" >&2
26319 ;;
26320esac
26321echo "$as_me:$LINENO: checking for png.h" >&5
26322echo $ECHO_N "checking for png.h... $ECHO_C" >&6
26323if test "${ac_cv_header_png_h+set}" = set; then
26324 echo $ECHO_N "(cached) $ECHO_C" >&6
26325else
26326 ac_cv_header_png_h=$ac_header_preproc
26327fi
26328echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26329echo "${ECHO_T}$ac_cv_header_png_h" >&6
26330
26331fi
26332
26333
26334
26335 if test "$ac_cv_header_png_h" = "yes"; then
26336 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
26337echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
26338if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
26339 echo $ECHO_N "(cached) $ECHO_C" >&6
26340else
26341 ac_check_lib_save_LIBS=$LIBS
26342LIBS="-lpng -lz -lm $LIBS"
26343cat >conftest.$ac_ext <<_ACEOF
26344/* confdefs.h. */
26345_ACEOF
26346cat confdefs.h >>conftest.$ac_ext
26347cat >>conftest.$ac_ext <<_ACEOF
26348/* end confdefs.h. */
26349
26350/* Override any gcc2 internal prototype to avoid an error. */
26351#ifdef __cplusplus
26352extern "C"
26353#endif
26354/* We use char because int might match the return type of a gcc2
26355 builtin and then its argument prototype would still apply. */
26356char png_check_sig ();
26357int
26358main ()
26359{
26360png_check_sig ();
26361 ;
26362 return 0;
26363}
26364_ACEOF
26365rm -f conftest.$ac_objext conftest$ac_exeext
26366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26367 (eval $ac_link) 2>conftest.er1
a848cd7e 26368 ac_status=$?
ac1cb8d3
VS
26369 grep -v '^ *+' conftest.er1 >conftest.err
26370 rm -f conftest.er1
26371 cat conftest.err >&5
a848cd7e
SC
26372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26373 (exit $ac_status); } &&
479c790c 26374 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26376 (eval $ac_try) 2>&5
26377 ac_status=$?
26378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26379 (exit $ac_status); }; } &&
26380 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26382 (eval $ac_try) 2>&5
26383 ac_status=$?
26384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26385 (exit $ac_status); }; }; then
26386 ac_cv_lib_png_png_check_sig=yes
26387else
26388 echo "$as_me: failed program was:" >&5
26389sed 's/^/| /' conftest.$ac_ext >&5
26390
26391ac_cv_lib_png_png_check_sig=no
26392fi
ac1cb8d3
VS
26393rm -f conftest.err conftest.$ac_objext \
26394 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26395LIBS=$ac_check_lib_save_LIBS
26396fi
26397echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
26398echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
26399if test $ac_cv_lib_png_png_check_sig = yes; then
26400 PNG_LINK=" -lpng -lz"
26401fi
26402
26403 fi
26404
26405 if test "x$PNG_LINK" = "x" ; then
26406 if test "$wxUSE_LIBPNG" = "sys" ; then
26407 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
26408echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
26409 { (exit 1); exit 1; }; }
26410 else
26411 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
26412echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
26413 wxUSE_LIBPNG=builtin
26414 fi
26415 else
26416 wxUSE_LIBPNG=sys
26417 fi
26418 fi
26419 fi
26420
26421 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
26422fi
26423
26424
26425JPEG_LINK=
26426if test "$wxUSE_LIBJPEG" != "no" ; then
26427 cat >>confdefs.h <<\_ACEOF
26428#define wxUSE_LIBJPEG 1
26429_ACEOF
26430
26431
26432 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
26433 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
26434echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
26435 wxUSE_LIBJPEG=sys
26436 fi
26437
26438 if test "$wxUSE_MGL" != 1 ; then
26439 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
26440 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
26441echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
26442 if test "${ac_cv_header_jpeglib_h+set}" = set; then
26443 echo $ECHO_N "(cached) $ECHO_C" >&6
26444else
26445 cat >conftest.$ac_ext <<_ACEOF
26446/* confdefs.h. */
26447_ACEOF
26448cat confdefs.h >>conftest.$ac_ext
26449cat >>conftest.$ac_ext <<_ACEOF
26450/* end confdefs.h. */
26451
26452 #undef HAVE_STDLIB_H
26453 #include <stdio.h>
26454 #include <jpeglib.h>
26455
26456int
26457main ()
26458{
26459
26460
26461 ;
26462 return 0;
26463}
26464_ACEOF
26465rm -f conftest.$ac_objext
26466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26467 (eval $ac_compile) 2>conftest.er1
a848cd7e 26468 ac_status=$?
ac1cb8d3
VS
26469 grep -v '^ *+' conftest.er1 >conftest.err
26470 rm -f conftest.er1
26471 cat conftest.err >&5
a848cd7e
SC
26472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26473 (exit $ac_status); } &&
479c790c 26474 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26476 (eval $ac_try) 2>&5
26477 ac_status=$?
26478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479 (exit $ac_status); }; } &&
26480 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26482 (eval $ac_try) 2>&5
26483 ac_status=$?
26484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26485 (exit $ac_status); }; }; then
26486 ac_cv_header_jpeglib_h=yes
26487else
26488 echo "$as_me: failed program was:" >&5
26489sed 's/^/| /' conftest.$ac_ext >&5
26490
26491ac_cv_header_jpeglib_h=no
26492
26493fi
ac1cb8d3 26494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26495
26496fi
26497
26498 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
26499echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
26500
26501 if test "$ac_cv_header_jpeglib_h" = "yes"; then
26502 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
26503echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
26504if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
26505 echo $ECHO_N "(cached) $ECHO_C" >&6
26506else
26507 ac_check_lib_save_LIBS=$LIBS
26508LIBS="-ljpeg $LIBS"
26509cat >conftest.$ac_ext <<_ACEOF
26510/* confdefs.h. */
26511_ACEOF
26512cat confdefs.h >>conftest.$ac_ext
26513cat >>conftest.$ac_ext <<_ACEOF
26514/* end confdefs.h. */
26515
26516/* Override any gcc2 internal prototype to avoid an error. */
26517#ifdef __cplusplus
26518extern "C"
26519#endif
26520/* We use char because int might match the return type of a gcc2
26521 builtin and then its argument prototype would still apply. */
26522char jpeg_read_header ();
26523int
26524main ()
26525{
26526jpeg_read_header ();
26527 ;
26528 return 0;
26529}
26530_ACEOF
26531rm -f conftest.$ac_objext conftest$ac_exeext
26532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26533 (eval $ac_link) 2>conftest.er1
a848cd7e 26534 ac_status=$?
ac1cb8d3
VS
26535 grep -v '^ *+' conftest.er1 >conftest.err
26536 rm -f conftest.er1
26537 cat conftest.err >&5
a848cd7e
SC
26538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539 (exit $ac_status); } &&
479c790c 26540 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26542 (eval $ac_try) 2>&5
26543 ac_status=$?
26544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26545 (exit $ac_status); }; } &&
26546 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26548 (eval $ac_try) 2>&5
26549 ac_status=$?
26550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551 (exit $ac_status); }; }; then
26552 ac_cv_lib_jpeg_jpeg_read_header=yes
26553else
26554 echo "$as_me: failed program was:" >&5
26555sed 's/^/| /' conftest.$ac_ext >&5
26556
26557ac_cv_lib_jpeg_jpeg_read_header=no
26558fi
ac1cb8d3
VS
26559rm -f conftest.err conftest.$ac_objext \
26560 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26561LIBS=$ac_check_lib_save_LIBS
26562fi
26563echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26564echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
26565if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26566 JPEG_LINK=" -ljpeg"
26567fi
26568
26569 fi
26570
26571 if test "x$JPEG_LINK" = "x" ; then
26572 if test "$wxUSE_LIBJPEG" = "sys" ; then
26573 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
26574echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
26575 { (exit 1); exit 1; }; }
26576 else
26577 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
26578echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
26579 wxUSE_LIBJPEG=builtin
26580 fi
26581 else
26582 wxUSE_LIBJPEG=sys
26583 fi
26584 fi
26585 fi
26586fi
26587
26588
26589TIFF_LINK=
26590TIFF_PREREQ_LINKS=-lm
26591if test "$wxUSE_LIBTIFF" != "no" ; then
26592 cat >>confdefs.h <<\_ACEOF
26593#define wxUSE_LIBTIFF 1
26594_ACEOF
26595
26596
26597 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
26598 if test "$wxUSE_LIBJPEG" = "sys"; then
26599 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
26600 fi
26601 if test "$wxUSE_ZLIB" = "sys"; then
26602 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
26603 fi
26604 if test "${ac_cv_header_tiffio_h+set}" = set; then
26605 echo "$as_me:$LINENO: checking for tiffio.h" >&5
26606echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26607if test "${ac_cv_header_tiffio_h+set}" = set; then
26608 echo $ECHO_N "(cached) $ECHO_C" >&6
26609fi
26610echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26611echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26612else
26613 # Is the header compilable?
26614echo "$as_me:$LINENO: checking tiffio.h usability" >&5
26615echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
26616cat >conftest.$ac_ext <<_ACEOF
26617/* confdefs.h. */
26618_ACEOF
26619cat confdefs.h >>conftest.$ac_ext
26620cat >>conftest.$ac_ext <<_ACEOF
26621/* end confdefs.h. */
26622$ac_includes_default
26623#include <tiffio.h>
26624_ACEOF
26625rm -f conftest.$ac_objext
26626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26627 (eval $ac_compile) 2>conftest.er1
a848cd7e 26628 ac_status=$?
ac1cb8d3
VS
26629 grep -v '^ *+' conftest.er1 >conftest.err
26630 rm -f conftest.er1
26631 cat conftest.err >&5
a848cd7e
SC
26632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26633 (exit $ac_status); } &&
479c790c 26634 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26636 (eval $ac_try) 2>&5
26637 ac_status=$?
26638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26639 (exit $ac_status); }; } &&
26640 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26642 (eval $ac_try) 2>&5
26643 ac_status=$?
26644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26645 (exit $ac_status); }; }; then
26646 ac_header_compiler=yes
26647else
26648 echo "$as_me: failed program was:" >&5
26649sed 's/^/| /' conftest.$ac_ext >&5
26650
26651ac_header_compiler=no
26652fi
ac1cb8d3 26653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26654echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26655echo "${ECHO_T}$ac_header_compiler" >&6
26656
26657# Is the header present?
26658echo "$as_me:$LINENO: checking tiffio.h presence" >&5
26659echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
26660cat >conftest.$ac_ext <<_ACEOF
26661/* confdefs.h. */
26662_ACEOF
26663cat confdefs.h >>conftest.$ac_ext
26664cat >>conftest.$ac_ext <<_ACEOF
26665/* end confdefs.h. */
26666#include <tiffio.h>
26667_ACEOF
26668if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26670 ac_status=$?
26671 grep -v '^ *+' conftest.er1 >conftest.err
26672 rm -f conftest.er1
26673 cat conftest.err >&5
26674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675 (exit $ac_status); } >/dev/null; then
26676 if test -s conftest.err; then
5d7b7554
VZ
26677 ac_cpp_err=$ac_cxx_preproc_warn_flag
26678 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26679 else
26680 ac_cpp_err=
26681 fi
26682else
26683 ac_cpp_err=yes
26684fi
26685if test -z "$ac_cpp_err"; then
26686 ac_header_preproc=yes
26687else
26688 echo "$as_me: failed program was:" >&5
26689sed 's/^/| /' conftest.$ac_ext >&5
26690
26691 ac_header_preproc=no
26692fi
26693rm -f conftest.err conftest.$ac_ext
26694echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26695echo "${ECHO_T}$ac_header_preproc" >&6
26696
26697# So? What about this header?
5d7b7554 26698case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26699 yes:no: )
a848cd7e
SC
26700 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
26701echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26702 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
26703echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
26704 ac_header_preproc=yes
a848cd7e 26705 ;;
ac1cb8d3 26706 no:yes:* )
a848cd7e
SC
26707 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
26708echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26709 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
26710echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
26711 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
26712echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
26713 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
26714echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26715 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
26716echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26717 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
26718echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26719 (
26720 cat <<\_ASBOX
ac1cb8d3
VS
26721## ----------------------------------------- ##
26722## Report this to wx-dev@lists.wxwidgets.org ##
26723## ----------------------------------------- ##
a848cd7e
SC
26724_ASBOX
26725 ) |
26726 sed "s/^/$as_me: WARNING: /" >&2
26727 ;;
26728esac
26729echo "$as_me:$LINENO: checking for tiffio.h" >&5
26730echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26731if test "${ac_cv_header_tiffio_h+set}" = set; then
26732 echo $ECHO_N "(cached) $ECHO_C" >&6
26733else
26734 ac_cv_header_tiffio_h=$ac_header_preproc
26735fi
26736echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26737echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26738
26739fi
26740if test $ac_cv_header_tiffio_h = yes; then
26741
26742 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
26743echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
26744if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
26745 echo $ECHO_N "(cached) $ECHO_C" >&6
26746else
26747 ac_check_lib_save_LIBS=$LIBS
26748LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
26749cat >conftest.$ac_ext <<_ACEOF
26750/* confdefs.h. */
26751_ACEOF
26752cat confdefs.h >>conftest.$ac_ext
26753cat >>conftest.$ac_ext <<_ACEOF
26754/* end confdefs.h. */
26755
26756/* Override any gcc2 internal prototype to avoid an error. */
26757#ifdef __cplusplus
26758extern "C"
26759#endif
26760/* We use char because int might match the return type of a gcc2
26761 builtin and then its argument prototype would still apply. */
26762char TIFFError ();
26763int
26764main ()
26765{
26766TIFFError ();
26767 ;
26768 return 0;
26769}
26770_ACEOF
26771rm -f conftest.$ac_objext conftest$ac_exeext
26772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26773 (eval $ac_link) 2>conftest.er1
a848cd7e 26774 ac_status=$?
ac1cb8d3
VS
26775 grep -v '^ *+' conftest.er1 >conftest.err
26776 rm -f conftest.er1
26777 cat conftest.err >&5
a848cd7e
SC
26778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26779 (exit $ac_status); } &&
479c790c 26780 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26782 (eval $ac_try) 2>&5
26783 ac_status=$?
26784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785 (exit $ac_status); }; } &&
26786 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26788 (eval $ac_try) 2>&5
26789 ac_status=$?
26790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26791 (exit $ac_status); }; }; then
26792 ac_cv_lib_tiff_TIFFError=yes
26793else
26794 echo "$as_me: failed program was:" >&5
26795sed 's/^/| /' conftest.$ac_ext >&5
26796
26797ac_cv_lib_tiff_TIFFError=no
26798fi
ac1cb8d3
VS
26799rm -f conftest.err conftest.$ac_objext \
26800 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26801LIBS=$ac_check_lib_save_LIBS
26802fi
26803echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26804echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
26805if test $ac_cv_lib_tiff_TIFFError = yes; then
26806 TIFF_LINK=" -ltiff"
26807fi
26808
26809
26810
26811fi
26812
26813
26814
26815 if test "x$TIFF_LINK" = "x" ; then
26816 if test "$wxUSE_LIBTIFF" = "sys" ; then
26817 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26818echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26819 { (exit 1); exit 1; }; }
26820 else
26821 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26822echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26823 wxUSE_LIBTIFF=builtin
26824 fi
26825 else
26826 wxUSE_LIBTIFF=sys
26827 fi
26828 fi
26829fi
26830
26831
47a7e797
MW
26832if test "$wxUSE_WCHAR_T" != "yes"; then
26833 if test "$wxUSE_EXPAT" != "no"; then
26834 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26835echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26836 wxUSE_EXPAT=no
26837 fi
26838 if test "$wxUSE_XML" != "no"; then
26839 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26840echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26841 wxUSE_XML=no
26842 fi
26843fi
26844
a848cd7e
SC
26845if test "$wxUSE_EXPAT" != "no"; then
26846 wxUSE_XML=yes
26847 cat >>confdefs.h <<\_ACEOF
26848#define wxUSE_EXPAT 1
26849_ACEOF
26850
26851 cat >>confdefs.h <<\_ACEOF
26852#define wxUSE_XML 1
26853_ACEOF
26854
26855
26856 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26857 if test "${ac_cv_header_expat_h+set}" = set; then
26858 echo "$as_me:$LINENO: checking for expat.h" >&5
26859echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26860if test "${ac_cv_header_expat_h+set}" = set; then
26861 echo $ECHO_N "(cached) $ECHO_C" >&6
26862fi
26863echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26864echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26865else
26866 # Is the header compilable?
26867echo "$as_me:$LINENO: checking expat.h usability" >&5
26868echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
26869cat >conftest.$ac_ext <<_ACEOF
26870/* confdefs.h. */
26871_ACEOF
26872cat confdefs.h >>conftest.$ac_ext
26873cat >>conftest.$ac_ext <<_ACEOF
26874/* end confdefs.h. */
26875$ac_includes_default
26876#include <expat.h>
26877_ACEOF
26878rm -f conftest.$ac_objext
26879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26880 (eval $ac_compile) 2>conftest.er1
a848cd7e 26881 ac_status=$?
ac1cb8d3
VS
26882 grep -v '^ *+' conftest.er1 >conftest.err
26883 rm -f conftest.er1
26884 cat conftest.err >&5
a848cd7e
SC
26885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26886 (exit $ac_status); } &&
479c790c 26887 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26889 (eval $ac_try) 2>&5
26890 ac_status=$?
26891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26892 (exit $ac_status); }; } &&
26893 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26895 (eval $ac_try) 2>&5
26896 ac_status=$?
26897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26898 (exit $ac_status); }; }; then
26899 ac_header_compiler=yes
26900else
26901 echo "$as_me: failed program was:" >&5
26902sed 's/^/| /' conftest.$ac_ext >&5
26903
26904ac_header_compiler=no
26905fi
ac1cb8d3 26906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26907echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26908echo "${ECHO_T}$ac_header_compiler" >&6
26909
26910# Is the header present?
26911echo "$as_me:$LINENO: checking expat.h presence" >&5
26912echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
26913cat >conftest.$ac_ext <<_ACEOF
26914/* confdefs.h. */
26915_ACEOF
26916cat confdefs.h >>conftest.$ac_ext
26917cat >>conftest.$ac_ext <<_ACEOF
26918/* end confdefs.h. */
26919#include <expat.h>
26920_ACEOF
26921if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26923 ac_status=$?
26924 grep -v '^ *+' conftest.er1 >conftest.err
26925 rm -f conftest.er1
26926 cat conftest.err >&5
26927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26928 (exit $ac_status); } >/dev/null; then
26929 if test -s conftest.err; then
5d7b7554
VZ
26930 ac_cpp_err=$ac_cxx_preproc_warn_flag
26931 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26932 else
26933 ac_cpp_err=
26934 fi
26935else
26936 ac_cpp_err=yes
26937fi
26938if test -z "$ac_cpp_err"; then
26939 ac_header_preproc=yes
26940else
26941 echo "$as_me: failed program was:" >&5
26942sed 's/^/| /' conftest.$ac_ext >&5
26943
26944 ac_header_preproc=no
26945fi
26946rm -f conftest.err conftest.$ac_ext
26947echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26948echo "${ECHO_T}$ac_header_preproc" >&6
26949
26950# So? What about this header?
5d7b7554 26951case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26952 yes:no: )
a848cd7e
SC
26953 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26954echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26955 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26956echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26957 ac_header_preproc=yes
a848cd7e 26958 ;;
ac1cb8d3 26959 no:yes:* )
a848cd7e
SC
26960 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26961echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26962 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
26963echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
26964 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26965echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26966 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
26967echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26968 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26969echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26970 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26971echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26972 (
26973 cat <<\_ASBOX
ac1cb8d3
VS
26974## ----------------------------------------- ##
26975## Report this to wx-dev@lists.wxwidgets.org ##
26976## ----------------------------------------- ##
a848cd7e
SC
26977_ASBOX
26978 ) |
26979 sed "s/^/$as_me: WARNING: /" >&2
26980 ;;
26981esac
26982echo "$as_me:$LINENO: checking for expat.h" >&5
26983echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26984if test "${ac_cv_header_expat_h+set}" = set; then
26985 echo $ECHO_N "(cached) $ECHO_C" >&6
26986else
26987 ac_cv_header_expat_h=$ac_header_preproc
26988fi
26989echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26990echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26991
26992fi
26993if test $ac_cv_header_expat_h = yes; then
26994 found_expat_h=1
26995fi
26996
26997
26998 if test "x$found_expat_h" = "x1"; then
26999 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
27000echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
27001if test "${wx_cv_expat_is_not_broken+set}" = set; then
27002 echo $ECHO_N "(cached) $ECHO_C" >&6
27003else
27004
a848cd7e
SC
27005 cat >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#include <expat.h>
27012int
27013main ()
27014{
27015
27016 ;
27017 return 0;
27018}
27019_ACEOF
27020rm -f conftest.$ac_objext
27021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27022 (eval $ac_compile) 2>conftest.er1
a848cd7e 27023 ac_status=$?
ac1cb8d3
VS
27024 grep -v '^ *+' conftest.er1 >conftest.err
27025 rm -f conftest.er1
27026 cat conftest.err >&5
a848cd7e
SC
27027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028 (exit $ac_status); } &&
479c790c 27029 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27031 (eval $ac_try) 2>&5
27032 ac_status=$?
27033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034 (exit $ac_status); }; } &&
27035 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27037 (eval $ac_try) 2>&5
27038 ac_status=$?
27039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040 (exit $ac_status); }; }; then
27041 wx_cv_expat_is_not_broken=yes
27042else
27043 echo "$as_me: failed program was:" >&5
27044sed 's/^/| /' conftest.$ac_ext >&5
27045
27046wx_cv_expat_is_not_broken=no
27047
27048fi
ac1cb8d3 27049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27050
27051
27052fi
27053echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
27054echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
27055 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
27056 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
27057echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
27058if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
27059 echo $ECHO_N "(cached) $ECHO_C" >&6
27060else
27061 ac_check_lib_save_LIBS=$LIBS
27062LIBS="-lexpat $LIBS"
27063cat >conftest.$ac_ext <<_ACEOF
27064/* confdefs.h. */
27065_ACEOF
27066cat confdefs.h >>conftest.$ac_ext
27067cat >>conftest.$ac_ext <<_ACEOF
27068/* end confdefs.h. */
27069
27070/* Override any gcc2 internal prototype to avoid an error. */
27071#ifdef __cplusplus
27072extern "C"
27073#endif
27074/* We use char because int might match the return type of a gcc2
27075 builtin and then its argument prototype would still apply. */
27076char XML_ParserCreate ();
27077int
27078main ()
27079{
27080XML_ParserCreate ();
27081 ;
27082 return 0;
27083}
27084_ACEOF
27085rm -f conftest.$ac_objext conftest$ac_exeext
27086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27087 (eval $ac_link) 2>conftest.er1
a848cd7e 27088 ac_status=$?
ac1cb8d3
VS
27089 grep -v '^ *+' conftest.er1 >conftest.err
27090 rm -f conftest.er1
27091 cat conftest.err >&5
a848cd7e
SC
27092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27093 (exit $ac_status); } &&
479c790c 27094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27096 (eval $ac_try) 2>&5
27097 ac_status=$?
27098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27099 (exit $ac_status); }; } &&
27100 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27102 (eval $ac_try) 2>&5
27103 ac_status=$?
27104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27105 (exit $ac_status); }; }; then
27106 ac_cv_lib_expat_XML_ParserCreate=yes
27107else
27108 echo "$as_me: failed program was:" >&5
27109sed 's/^/| /' conftest.$ac_ext >&5
27110
27111ac_cv_lib_expat_XML_ParserCreate=no
27112fi
ac1cb8d3
VS
27113rm -f conftest.err conftest.$ac_objext \
27114 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27115LIBS=$ac_check_lib_save_LIBS
27116fi
27117echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
27118echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
27119if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
27120 EXPAT_LINK=" -lexpat"
27121fi
27122
27123 fi
27124 fi
27125 if test "x$EXPAT_LINK" = "x" ; then
27126 if test "$wxUSE_EXPAT" = "sys" ; then
27127 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
27128echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
27129 { (exit 1); exit 1; }; }
27130 else
27131 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
27132echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
27133 wxUSE_EXPAT=builtin
27134 fi
27135 else
27136 wxUSE_EXPAT=sys
27137 fi
27138 fi
27139 if test "$wxUSE_EXPAT" = "builtin" ; then
27140
27141
27142subdirs="$subdirs src/expat"
27143
27144 fi
27145fi
27146
27147
27148
27149if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
27150 if test "${ac_cv_header_mspack_h+set}" = set; then
27151 echo "$as_me:$LINENO: checking for mspack.h" >&5
27152echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
27153if test "${ac_cv_header_mspack_h+set}" = set; then
27154 echo $ECHO_N "(cached) $ECHO_C" >&6
27155fi
27156echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
27157echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
27158else
27159 # Is the header compilable?
27160echo "$as_me:$LINENO: checking mspack.h usability" >&5
27161echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
27162cat >conftest.$ac_ext <<_ACEOF
27163/* confdefs.h. */
27164_ACEOF
27165cat confdefs.h >>conftest.$ac_ext
27166cat >>conftest.$ac_ext <<_ACEOF
27167/* end confdefs.h. */
27168$ac_includes_default
27169#include <mspack.h>
27170_ACEOF
27171rm -f conftest.$ac_objext
27172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27173 (eval $ac_compile) 2>conftest.er1
a848cd7e 27174 ac_status=$?
ac1cb8d3
VS
27175 grep -v '^ *+' conftest.er1 >conftest.err
27176 rm -f conftest.er1
27177 cat conftest.err >&5
a848cd7e
SC
27178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179 (exit $ac_status); } &&
479c790c 27180 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27182 (eval $ac_try) 2>&5
27183 ac_status=$?
27184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185 (exit $ac_status); }; } &&
27186 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27188 (eval $ac_try) 2>&5
27189 ac_status=$?
27190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27191 (exit $ac_status); }; }; then
27192 ac_header_compiler=yes
27193else
27194 echo "$as_me: failed program was:" >&5
27195sed 's/^/| /' conftest.$ac_ext >&5
27196
27197ac_header_compiler=no
27198fi
ac1cb8d3 27199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27200echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27201echo "${ECHO_T}$ac_header_compiler" >&6
27202
27203# Is the header present?
27204echo "$as_me:$LINENO: checking mspack.h presence" >&5
27205echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
27206cat >conftest.$ac_ext <<_ACEOF
27207/* confdefs.h. */
27208_ACEOF
27209cat confdefs.h >>conftest.$ac_ext
27210cat >>conftest.$ac_ext <<_ACEOF
27211/* end confdefs.h. */
27212#include <mspack.h>
27213_ACEOF
27214if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27216 ac_status=$?
27217 grep -v '^ *+' conftest.er1 >conftest.err
27218 rm -f conftest.er1
27219 cat conftest.err >&5
27220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27221 (exit $ac_status); } >/dev/null; then
27222 if test -s conftest.err; then
5d7b7554
VZ
27223 ac_cpp_err=$ac_cxx_preproc_warn_flag
27224 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
27225 else
27226 ac_cpp_err=
27227 fi
27228else
27229 ac_cpp_err=yes
27230fi
27231if test -z "$ac_cpp_err"; then
27232 ac_header_preproc=yes
27233else
27234 echo "$as_me: failed program was:" >&5
27235sed 's/^/| /' conftest.$ac_ext >&5
27236
27237 ac_header_preproc=no
27238fi
27239rm -f conftest.err conftest.$ac_ext
27240echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27241echo "${ECHO_T}$ac_header_preproc" >&6
27242
27243# So? What about this header?
5d7b7554 27244case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 27245 yes:no: )
a848cd7e
SC
27246 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
27247echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27248 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
27249echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
27250 ac_header_preproc=yes
a848cd7e 27251 ;;
ac1cb8d3 27252 no:yes:* )
a848cd7e
SC
27253 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
27254echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27255 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
27256echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
27257 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
27258echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
27259 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
27260echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27261 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
27262echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27263 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
27264echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27265 (
27266 cat <<\_ASBOX
ac1cb8d3
VS
27267## ----------------------------------------- ##
27268## Report this to wx-dev@lists.wxwidgets.org ##
27269## ----------------------------------------- ##
a848cd7e
SC
27270_ASBOX
27271 ) |
27272 sed "s/^/$as_me: WARNING: /" >&2
27273 ;;
27274esac
27275echo "$as_me:$LINENO: checking for mspack.h" >&5
27276echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
27277if test "${ac_cv_header_mspack_h+set}" = set; then
27278 echo $ECHO_N "(cached) $ECHO_C" >&6
27279else
27280 ac_cv_header_mspack_h=$ac_header_preproc
27281fi
27282echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
27283echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
27284
27285fi
27286if test $ac_cv_header_mspack_h = yes; then
27287 found_mspack_h=1
27288fi
27289
27290
27291 if test "x$found_mspack_h" = "x1"; then
27292 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
27293echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
27294if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
27295 echo $ECHO_N "(cached) $ECHO_C" >&6
27296else
27297 ac_check_lib_save_LIBS=$LIBS
27298LIBS="-lmspack $LIBS"
27299cat >conftest.$ac_ext <<_ACEOF
27300/* confdefs.h. */
27301_ACEOF
27302cat confdefs.h >>conftest.$ac_ext
27303cat >>conftest.$ac_ext <<_ACEOF
27304/* end confdefs.h. */
27305
27306/* Override any gcc2 internal prototype to avoid an error. */
27307#ifdef __cplusplus
27308extern "C"
27309#endif
27310/* We use char because int might match the return type of a gcc2
27311 builtin and then its argument prototype would still apply. */
27312char mspack_create_chm_decompressor ();
27313int
27314main ()
27315{
27316mspack_create_chm_decompressor ();
27317 ;
27318 return 0;
27319}
27320_ACEOF
27321rm -f conftest.$ac_objext conftest$ac_exeext
27322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27323 (eval $ac_link) 2>conftest.er1
a848cd7e 27324 ac_status=$?
ac1cb8d3
VS
27325 grep -v '^ *+' conftest.er1 >conftest.err
27326 rm -f conftest.er1
27327 cat conftest.err >&5
a848cd7e
SC
27328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27329 (exit $ac_status); } &&
479c790c 27330 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27332 (eval $ac_try) 2>&5
27333 ac_status=$?
27334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27335 (exit $ac_status); }; } &&
27336 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27338 (eval $ac_try) 2>&5
27339 ac_status=$?
27340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27341 (exit $ac_status); }; }; then
27342 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
27343else
27344 echo "$as_me: failed program was:" >&5
27345sed 's/^/| /' conftest.$ac_ext >&5
27346
27347ac_cv_lib_mspack_mspack_create_chm_decompressor=no
27348fi
ac1cb8d3
VS
27349rm -f conftest.err conftest.$ac_objext \
27350 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27351LIBS=$ac_check_lib_save_LIBS
27352fi
27353echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
27354echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
27355if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
27356 MSPACK_LINK=" -lmspack"
27357fi
27358
27359 fi
27360 if test "x$MSPACK_LINK" = "x" ; then
27361 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
27362 fi
27363fi
27364
27365if test "$wxUSE_LIBMSPACK" != "no"; then
27366 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
27367#define wxUSE_LIBMSPACK 1
27368_ACEOF
27369
a848cd7e
SC
27370fi
27371
27372
27373
27374AFMINSTALL=
27375WIN32INSTALL=
27376
27377TOOLKIT=
27378TOOLKIT_INCLUDE=
27379WIDGET_SET=
27380
27381if test "$USE_WIN32" = 1 ; then
27382
27383for ac_header in w32api.h
27384do
27385as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27386if eval "test \"\${$as_ac_Header+set}\" = set"; then
27387 echo "$as_me:$LINENO: checking for $ac_header" >&5
27388echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27389if eval "test \"\${$as_ac_Header+set}\" = set"; then
27390 echo $ECHO_N "(cached) $ECHO_C" >&6
27391fi
27392echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27393echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27394else
27395 # Is the header compilable?
27396echo "$as_me:$LINENO: checking $ac_header usability" >&5
27397echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27398cat >conftest.$ac_ext <<_ACEOF
27399/* confdefs.h. */
27400_ACEOF
27401cat confdefs.h >>conftest.$ac_ext
27402cat >>conftest.$ac_ext <<_ACEOF
27403/* end confdefs.h. */
27404$ac_includes_default
27405#include <$ac_header>
27406_ACEOF
27407rm -f conftest.$ac_objext
27408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27409 (eval $ac_compile) 2>conftest.er1
a848cd7e 27410 ac_status=$?
ac1cb8d3
VS
27411 grep -v '^ *+' conftest.er1 >conftest.err
27412 rm -f conftest.er1
27413 cat conftest.err >&5
a848cd7e
SC
27414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27415 (exit $ac_status); } &&
479c790c 27416 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27418 (eval $ac_try) 2>&5
27419 ac_status=$?
27420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27421 (exit $ac_status); }; } &&
27422 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27424 (eval $ac_try) 2>&5
27425 ac_status=$?
27426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27427 (exit $ac_status); }; }; then
27428 ac_header_compiler=yes
27429else
27430 echo "$as_me: failed program was:" >&5
27431sed 's/^/| /' conftest.$ac_ext >&5
27432
27433ac_header_compiler=no
27434fi
ac1cb8d3 27435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27436echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27437echo "${ECHO_T}$ac_header_compiler" >&6
27438
27439# Is the header present?
27440echo "$as_me:$LINENO: checking $ac_header presence" >&5
27441echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27442cat >conftest.$ac_ext <<_ACEOF
27443/* confdefs.h. */
27444_ACEOF
27445cat confdefs.h >>conftest.$ac_ext
27446cat >>conftest.$ac_ext <<_ACEOF
27447/* end confdefs.h. */
27448#include <$ac_header>
27449_ACEOF
27450if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27452 ac_status=$?
27453 grep -v '^ *+' conftest.er1 >conftest.err
27454 rm -f conftest.er1
27455 cat conftest.err >&5
27456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27457 (exit $ac_status); } >/dev/null; then
27458 if test -s conftest.err; then
5d7b7554
VZ
27459 ac_cpp_err=$ac_cxx_preproc_warn_flag
27460 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
27461 else
27462 ac_cpp_err=
27463 fi
27464else
27465 ac_cpp_err=yes
27466fi
27467if test -z "$ac_cpp_err"; then
27468 ac_header_preproc=yes
27469else
27470 echo "$as_me: failed program was:" >&5
27471sed 's/^/| /' conftest.$ac_ext >&5
27472
27473 ac_header_preproc=no
27474fi
27475rm -f conftest.err conftest.$ac_ext
27476echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27477echo "${ECHO_T}$ac_header_preproc" >&6
27478
27479# So? What about this header?
5d7b7554 27480case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 27481 yes:no: )
a848cd7e
SC
27482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27483echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27485echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27486 ac_header_preproc=yes
a848cd7e 27487 ;;
ac1cb8d3 27488 no:yes:* )
a848cd7e
SC
27489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27490echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27492echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27494echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27496echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27498echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27500echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27501 (
27502 cat <<\_ASBOX
ac1cb8d3
VS
27503## ----------------------------------------- ##
27504## Report this to wx-dev@lists.wxwidgets.org ##
27505## ----------------------------------------- ##
a848cd7e
SC
27506_ASBOX
27507 ) |
27508 sed "s/^/$as_me: WARNING: /" >&2
27509 ;;
27510esac
27511echo "$as_me:$LINENO: checking for $ac_header" >&5
27512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27513if eval "test \"\${$as_ac_Header+set}\" = set"; then
27514 echo $ECHO_N "(cached) $ECHO_C" >&6
27515else
ac1cb8d3 27516 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
27517fi
27518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27519echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27520
27521fi
27522if test `eval echo '${'$as_ac_Header'}'` = yes; then
27523 cat >>confdefs.h <<_ACEOF
27524#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27525_ACEOF
27526
27527fi
27528
27529done
27530
27531 if test "${ac_cv_header_windows_h+set}" = set; then
27532 echo "$as_me:$LINENO: checking for windows.h" >&5
27533echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27534if test "${ac_cv_header_windows_h+set}" = set; then
27535 echo $ECHO_N "(cached) $ECHO_C" >&6
27536fi
27537echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27538echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27539else
27540 # Is the header compilable?
27541echo "$as_me:$LINENO: checking windows.h usability" >&5
27542echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
27543cat >conftest.$ac_ext <<_ACEOF
27544/* confdefs.h. */
27545_ACEOF
27546cat confdefs.h >>conftest.$ac_ext
27547cat >>conftest.$ac_ext <<_ACEOF
27548/* end confdefs.h. */
27549$ac_includes_default
27550#include <windows.h>
27551_ACEOF
27552rm -f conftest.$ac_objext
27553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27554 (eval $ac_compile) 2>conftest.er1
a848cd7e 27555 ac_status=$?
ac1cb8d3
VS
27556 grep -v '^ *+' conftest.er1 >conftest.err
27557 rm -f conftest.er1
27558 cat conftest.err >&5
a848cd7e
SC
27559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27560 (exit $ac_status); } &&
479c790c 27561 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27563 (eval $ac_try) 2>&5
27564 ac_status=$?
27565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566 (exit $ac_status); }; } &&
27567 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27569 (eval $ac_try) 2>&5
27570 ac_status=$?
27571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572 (exit $ac_status); }; }; then
27573 ac_header_compiler=yes
27574else
27575 echo "$as_me: failed program was:" >&5
27576sed 's/^/| /' conftest.$ac_ext >&5
27577
27578ac_header_compiler=no
27579fi
ac1cb8d3 27580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27581echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27582echo "${ECHO_T}$ac_header_compiler" >&6
27583
27584# Is the header present?
27585echo "$as_me:$LINENO: checking windows.h presence" >&5
27586echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
27587cat >conftest.$ac_ext <<_ACEOF
27588/* confdefs.h. */
27589_ACEOF
27590cat confdefs.h >>conftest.$ac_ext
27591cat >>conftest.$ac_ext <<_ACEOF
27592/* end confdefs.h. */
27593#include <windows.h>
27594_ACEOF
27595if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27597 ac_status=$?
27598 grep -v '^ *+' conftest.er1 >conftest.err
27599 rm -f conftest.er1
27600 cat conftest.err >&5
27601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27602 (exit $ac_status); } >/dev/null; then
27603 if test -s conftest.err; then
5d7b7554
VZ
27604 ac_cpp_err=$ac_cxx_preproc_warn_flag
27605 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
27606 else
27607 ac_cpp_err=
27608 fi
27609else
27610 ac_cpp_err=yes
27611fi
27612if test -z "$ac_cpp_err"; then
27613 ac_header_preproc=yes
27614else
27615 echo "$as_me: failed program was:" >&5
27616sed 's/^/| /' conftest.$ac_ext >&5
27617
27618 ac_header_preproc=no
27619fi
27620rm -f conftest.err conftest.$ac_ext
27621echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27622echo "${ECHO_T}$ac_header_preproc" >&6
27623
27624# So? What about this header?
5d7b7554 27625case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 27626 yes:no: )
a848cd7e
SC
27627 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
27628echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27629 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
27630echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
27631 ac_header_preproc=yes
a848cd7e 27632 ;;
ac1cb8d3 27633 no:yes:* )
a848cd7e
SC
27634 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
27635echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27636 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
27637echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
27638 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
27639echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
27640 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
27641echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27642 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
27643echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27644 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
27645echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27646 (
27647 cat <<\_ASBOX
ac1cb8d3
VS
27648## ----------------------------------------- ##
27649## Report this to wx-dev@lists.wxwidgets.org ##
27650## ----------------------------------------- ##
a848cd7e
SC
27651_ASBOX
27652 ) |
27653 sed "s/^/$as_me: WARNING: /" >&2
27654 ;;
27655esac
27656echo "$as_me:$LINENO: checking for windows.h" >&5
27657echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27658if test "${ac_cv_header_windows_h+set}" = set; then
27659 echo $ECHO_N "(cached) $ECHO_C" >&6
27660else
27661 ac_cv_header_windows_h=$ac_header_preproc
27662fi
27663echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27664echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27665
27666fi
27667if test $ac_cv_header_windows_h = yes; then
27668 :
27669else
27670
27671 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
27672echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
27673 { (exit 1); exit 1; }; }
27674
27675fi
27676
27677
27678
27679 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
27680
27681 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
27682 LIBS="$LIBS -loleacc"
27683 fi
27684
27685 case "${host}" in
27686 *-*-cygwin* )
27687 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
27688 esac
27689
27690 if test "$wxUSE_ODBC" = "sys" ; then
27691 wxUSE_ODBC = "yes"
27692 fi
27693 if test "$wxUSE_ODBC" = "yes" ; then
27694 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
27695 cat >>confdefs.h <<\_ACEOF
27696#define wxUSE_ODBC 1
27697_ACEOF
27698
27699 fi
27700
370d2fd7 27701 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
27702 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
27703
004ee6da 27704 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 27705
a848cd7e 27706 WIN32INSTALL=win32install
5f41d1bf
MW
27707
27708 echo "$as_me:$LINENO: checking for boolean" >&5
27709echo $ECHO_N "checking for boolean... $ECHO_C" >&6
27710if test "${ac_cv_type_boolean+set}" = set; then
27711 echo $ECHO_N "(cached) $ECHO_C" >&6
27712else
27713 cat >conftest.$ac_ext <<_ACEOF
27714/* confdefs.h. */
27715_ACEOF
27716cat confdefs.h >>conftest.$ac_ext
27717cat >>conftest.$ac_ext <<_ACEOF
27718/* end confdefs.h. */
27719#include <windows.h>
27720
27721int
27722main ()
27723{
27724if ((boolean *) 0)
27725 return 0;
27726if (sizeof (boolean))
27727 return 0;
27728 ;
27729 return 0;
27730}
27731_ACEOF
27732rm -f conftest.$ac_objext
27733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27734 (eval $ac_compile) 2>conftest.er1
27735 ac_status=$?
27736 grep -v '^ *+' conftest.er1 >conftest.err
27737 rm -f conftest.er1
27738 cat conftest.err >&5
27739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27740 (exit $ac_status); } &&
479c790c 27741 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5f41d1bf
MW
27742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27743 (eval $ac_try) 2>&5
27744 ac_status=$?
27745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27746 (exit $ac_status); }; } &&
27747 { ac_try='test -s conftest.$ac_objext'
27748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27749 (eval $ac_try) 2>&5
27750 ac_status=$?
27751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752 (exit $ac_status); }; }; then
27753 ac_cv_type_boolean=yes
27754else
27755 echo "$as_me: failed program was:" >&5
27756sed 's/^/| /' conftest.$ac_ext >&5
27757
27758ac_cv_type_boolean=no
27759fi
27760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27761fi
27762echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27763echo "${ECHO_T}$ac_cv_type_boolean" >&6
27764if test $ac_cv_type_boolean = yes; then
27765
27766cat >>confdefs.h <<_ACEOF
27767#define HAVE_BOOLEAN 1
27768_ACEOF
27769
27770
27771fi
27772
dcfd4ac4
MW
27773
27774
27775for ac_header in pbt.h
27776do
27777as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27778if eval "test \"\${$as_ac_Header+set}\" = set"; then
27779 echo "$as_me:$LINENO: checking for $ac_header" >&5
27780echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27781if eval "test \"\${$as_ac_Header+set}\" = set"; then
27782 echo $ECHO_N "(cached) $ECHO_C" >&6
27783fi
27784echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27785echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27786else
27787 # Is the header compilable?
27788echo "$as_me:$LINENO: checking $ac_header usability" >&5
27789echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27790cat >conftest.$ac_ext <<_ACEOF
27791/* confdefs.h. */
27792_ACEOF
27793cat confdefs.h >>conftest.$ac_ext
27794cat >>conftest.$ac_ext <<_ACEOF
27795/* end confdefs.h. */
27796$ac_includes_default
27797#include <$ac_header>
27798_ACEOF
27799rm -f conftest.$ac_objext
27800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27801 (eval $ac_compile) 2>conftest.er1
27802 ac_status=$?
27803 grep -v '^ *+' conftest.er1 >conftest.err
27804 rm -f conftest.er1
27805 cat conftest.err >&5
27806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807 (exit $ac_status); } &&
479c790c 27808 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
dcfd4ac4
MW
27809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27810 (eval $ac_try) 2>&5
27811 ac_status=$?
27812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27813 (exit $ac_status); }; } &&
27814 { ac_try='test -s conftest.$ac_objext'
27815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27816 (eval $ac_try) 2>&5
27817 ac_status=$?
27818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819 (exit $ac_status); }; }; then
27820 ac_header_compiler=yes
27821else
27822 echo "$as_me: failed program was:" >&5
27823sed 's/^/| /' conftest.$ac_ext >&5
27824
27825ac_header_compiler=no
27826fi
27827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27828echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27829echo "${ECHO_T}$ac_header_compiler" >&6
27830
27831# Is the header present?
27832echo "$as_me:$LINENO: checking $ac_header presence" >&5
27833echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27834cat >conftest.$ac_ext <<_ACEOF
27835/* confdefs.h. */
27836_ACEOF
27837cat confdefs.h >>conftest.$ac_ext
27838cat >>conftest.$ac_ext <<_ACEOF
27839/* end confdefs.h. */
27840#include <$ac_header>
27841_ACEOF
27842if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27844 ac_status=$?
27845 grep -v '^ *+' conftest.er1 >conftest.err
27846 rm -f conftest.er1
27847 cat conftest.err >&5
27848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849 (exit $ac_status); } >/dev/null; then
27850 if test -s conftest.err; then
27851 ac_cpp_err=$ac_cxx_preproc_warn_flag
27852 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27853 else
27854 ac_cpp_err=
27855 fi
27856else
27857 ac_cpp_err=yes
27858fi
27859if test -z "$ac_cpp_err"; then
27860 ac_header_preproc=yes
27861else
27862 echo "$as_me: failed program was:" >&5
27863sed 's/^/| /' conftest.$ac_ext >&5
27864
27865 ac_header_preproc=no
27866fi
27867rm -f conftest.err conftest.$ac_ext
27868echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27869echo "${ECHO_T}$ac_header_preproc" >&6
27870
27871# So? What about this header?
27872case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27873 yes:no: )
27874 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27875echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27877echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27878 ac_header_preproc=yes
27879 ;;
27880 no:yes:* )
27881 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27882echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27883 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27884echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27885 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27886echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27887 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27888echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27890echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27891 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27892echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27893 (
27894 cat <<\_ASBOX
27895## ----------------------------------------- ##
27896## Report this to wx-dev@lists.wxwidgets.org ##
27897## ----------------------------------------- ##
27898_ASBOX
27899 ) |
27900 sed "s/^/$as_me: WARNING: /" >&2
27901 ;;
27902esac
27903echo "$as_me:$LINENO: checking for $ac_header" >&5
27904echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27905if eval "test \"\${$as_ac_Header+set}\" = set"; then
27906 echo $ECHO_N "(cached) $ECHO_C" >&6
27907else
27908 eval "$as_ac_Header=\$ac_header_preproc"
27909fi
27910echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27911echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27912
27913fi
27914if test `eval echo '${'$as_ac_Header'}'` = yes; then
27915 cat >>confdefs.h <<_ACEOF
27916#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27917_ACEOF
27918
27919else
27920 cat >>confdefs.h <<\_ACEOF
27921#define NEED_PBT_H 1
27922_ACEOF
27923
27924fi
27925
27926done
27927
a848cd7e
SC
27928fi
27929
27930if test "$wxUSE_GUI" = "yes"; then
27931 USE_GUI=1
27932
27933 GUI_TK_LIBRARY=
27934
27935 WXGTK12=
27936 WXGTK127=
27937 WXGTK20=
27938 WXGPE=
27939
207bc66c
RN
27940 if test "$wxUSE_COCOA" = 1 ; then
27941 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27942 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27943echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27944 wxUSE_PRINTING_ARCHITECTURE=no
27945 fi
27946 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27947 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27948echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27949 wxUSE_DRAG_AND_DROP=no
27950 fi
27951 if test "$wxUSE_DRAGIMAGE" = "yes"; then
27952 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
27953echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
27954 wxUSE_DRAGIMAGE=no
27955 fi
27956 fi
27957
a848cd7e
SC
27958 if test "$wxUSE_MSW" = 1 ; then
27959 TOOLKIT=MSW
27960 GUIDIST=MSW_DIST
27961
ceec2216 27962 case "${host}" in
a848cd7e
SC
27963 *-*-mingw32* )
27964 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27965 esac
27966 fi
27967
27968 if test "$wxUSE_GTK" = 1; then
5d7b7554
VZ
27969 ac_ext=c
27970ac_cpp='$CPP $CPPFLAGS'
27971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27973ac_compiler_gnu=$ac_cv_c_compiler_gnu
27974
27975
a848cd7e
SC
27976 echo "$as_me:$LINENO: checking for GTK+ version" >&5
27977echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
27978
27979 gtk_version_cached=1
27980 if test "${wx_cv_lib_gtk+set}" = set; then
27981 echo $ECHO_N "(cached) $ECHO_C" >&6
27982else
27983
27984 gtk_version_cached=0
27985 echo "$as_me:$LINENO: result: " >&5
27986echo "${ECHO_T}" >&6
27987
27988 GTK_MODULES=
27989 if test "$wxUSE_THREADS" = "yes"; then
27990 GTK_MODULES=gthread
27991 fi
27992
f597b41c 27993 wx_cv_lib_gtk=
5001df0d
MW
27994 if test "x$wxGTK_VERSION" != "x1"
27995 then
27996 case "${host}" in
27997 *-*-solaris2* )
27998 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 27999 enable_gtktest=no
5001df0d
MW
28000 fi
28001 esac
28002
a848cd7e
SC
28003 # Check whether --enable-gtktest or --disable-gtktest was given.
28004if test "${enable_gtktest+set}" = set; then
28005 enableval="$enable_gtktest"
28006
28007else
28008 enable_gtktest=yes
28009fi;
28010
28011 pkg_config_args=gtk+-2.0
28012 for module in . $GTK_MODULES
28013 do
28014 case "$module" in
28015 gthread)
28016 pkg_config_args="$pkg_config_args gthread-2.0"
28017 ;;
28018 esac
28019 done
28020
28021 no_gtk=""
28022
28023 # Extract the first word of "pkg-config", so it can be a program name with args.
28024set dummy pkg-config; ac_word=$2
28025echo "$as_me:$LINENO: checking for $ac_word" >&5
28026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28027if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28028 echo $ECHO_N "(cached) $ECHO_C" >&6
28029else
28030 case $PKG_CONFIG in
28031 [\\/]* | ?:[\\/]*)
28032 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28033 ;;
28034 *)
28035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28036for as_dir in $PATH
28037do
28038 IFS=$as_save_IFS
28039 test -z "$as_dir" && as_dir=.
28040 for ac_exec_ext in '' $ac_executable_extensions; do
28041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28042 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28044 break 2
28045 fi
28046done
28047done
28048
28049 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28050 ;;
28051esac
28052fi
28053PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28054
28055if test -n "$PKG_CONFIG"; then
28056 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28057echo "${ECHO_T}$PKG_CONFIG" >&6
28058else
28059 echo "$as_me:$LINENO: result: no" >&5
28060echo "${ECHO_T}no" >&6
28061fi
28062
28063
28064 if test x$PKG_CONFIG != xno ; then
28065 if pkg-config --atleast-pkgconfig-version 0.7 ; then
28066 :
28067 else
c2218763 28068 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
28069 no_gtk=yes
28070 PKG_CONFIG=no
28071 fi
28072 else
28073 no_gtk=yes
28074 fi
28075
28076 min_gtk_version=2.0.0
28077 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
28078echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
28079
28080 if test x$PKG_CONFIG != xno ; then
28081 ## don't try to run the test against uninstalled libtool libs
28082 if $PKG_CONFIG --uninstalled $pkg_config_args; then
28083 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
28084 enable_gtktest=no
28085 fi
28086
28087 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
28088 :
28089 else
28090 no_gtk=yes
28091 fi
28092 fi
28093
28094 if test x"$no_gtk" = x ; then
28095 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
28096 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
28097 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28098 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28099 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28100 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28101 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28102 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28103 if test "x$enable_gtktest" = "xyes" ; then
28104 ac_save_CFLAGS="$CFLAGS"
28105 ac_save_LIBS="$LIBS"
28106 CFLAGS="$CFLAGS $GTK_CFLAGS"
28107 LIBS="$GTK_LIBS $LIBS"
28108 rm -f conf.gtktest
28109 if test "$cross_compiling" = yes; then
28110 echo $ac_n "cross compiling; assumed OK... $ac_c"
28111else
28112 cat >conftest.$ac_ext <<_ACEOF
28113/* confdefs.h. */
28114_ACEOF
28115cat confdefs.h >>conftest.$ac_ext
28116cat >>conftest.$ac_ext <<_ACEOF
28117/* end confdefs.h. */
28118
28119#include <gtk/gtk.h>
28120#include <stdio.h>
28121#include <stdlib.h>
28122
28123int
28124main ()
28125{
28126 int major, minor, micro;
28127 char *tmp_version;
28128
28129 system ("touch conf.gtktest");
28130
28131 /* HP/UX 9 (%@#!) writes to sscanf strings */
28132 tmp_version = g_strdup("$min_gtk_version");
28133 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28134 printf("%s, bad version string\n", "$min_gtk_version");
28135 exit(1);
28136 }
28137
28138 if ((gtk_major_version != $gtk_config_major_version) ||
28139 (gtk_minor_version != $gtk_config_minor_version) ||
28140 (gtk_micro_version != $gtk_config_micro_version))
28141 {
28142 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28143 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28144 gtk_major_version, gtk_minor_version, gtk_micro_version);
28145 printf ("*** was found! If pkg-config was correct, then it is best\n");
28146 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28147 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28148 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28149 printf("*** required on your system.\n");
28150 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
28151 printf("*** to point to the correct configuration files\n");
28152 }
28153 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28154 (gtk_minor_version != GTK_MINOR_VERSION) ||
28155 (gtk_micro_version != GTK_MICRO_VERSION))
28156 {
28157 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28158 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28159 printf("*** library (version %d.%d.%d)\n",
28160 gtk_major_version, gtk_minor_version, gtk_micro_version);
28161 }
28162 else
28163 {
28164 if ((gtk_major_version > major) ||
28165 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28166 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28167 {
28168 return 0;
28169 }
28170 else
28171 {
28172 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28173 gtk_major_version, gtk_minor_version, gtk_micro_version);
28174 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28175 major, minor, micro);
28176 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28177 printf("***\n");
28178 printf("*** If you have already installed a sufficiently new version, this error\n");
28179 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
28180 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28181 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
28182 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
28183 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28184 printf("*** so that the correct libraries are found at run-time))\n");
28185 }
28186 }
28187 return 1;
28188}
28189
28190_ACEOF
28191rm -f conftest$ac_exeext
28192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28193 (eval $ac_link) 2>&5
28194 ac_status=$?
28195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28198 (eval $ac_try) 2>&5
28199 ac_status=$?
28200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201 (exit $ac_status); }; }; then
28202 :
28203else
28204 echo "$as_me: program exited with status $ac_status" >&5
28205echo "$as_me: failed program was:" >&5
28206sed 's/^/| /' conftest.$ac_ext >&5
28207
28208( exit $ac_status )
28209no_gtk=yes
28210fi
ac1cb8d3 28211rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28212fi
28213 CFLAGS="$ac_save_CFLAGS"
28214 LIBS="$ac_save_LIBS"
28215 fi
28216 fi
28217 if test "x$no_gtk" = x ; then
28218 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
28219echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
28220 wx_cv_lib_gtk=2.0
28221 else
28222 echo "$as_me:$LINENO: result: no" >&5
28223echo "${ECHO_T}no" >&6
28224 if test "$PKG_CONFIG" = "no" ; then
28225 echo "*** A new enough version of pkg-config was not found."
28226 echo "*** See http://pkgconfig.sourceforge.net"
28227 else
28228 if test -f conf.gtktest ; then
28229 :
28230 else
28231 echo "*** Could not run GTK+ test program, checking why..."
28232 ac_save_CFLAGS="$CFLAGS"
28233 ac_save_LIBS="$LIBS"
28234 CFLAGS="$CFLAGS $GTK_CFLAGS"
28235 LIBS="$LIBS $GTK_LIBS"
28236 cat >conftest.$ac_ext <<_ACEOF
28237/* confdefs.h. */
28238_ACEOF
28239cat confdefs.h >>conftest.$ac_ext
28240cat >>conftest.$ac_ext <<_ACEOF
28241/* end confdefs.h. */
28242
28243#include <gtk/gtk.h>
28244#include <stdio.h>
28245
28246int
28247main ()
28248{
28249 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28250 ;
28251 return 0;
28252}
28253_ACEOF
28254rm -f conftest.$ac_objext conftest$ac_exeext
28255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28256 (eval $ac_link) 2>conftest.er1
a848cd7e 28257 ac_status=$?
ac1cb8d3
VS
28258 grep -v '^ *+' conftest.er1 >conftest.err
28259 rm -f conftest.er1
28260 cat conftest.err >&5
a848cd7e
SC
28261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262 (exit $ac_status); } &&
479c790c 28263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28265 (eval $ac_try) 2>&5
28266 ac_status=$?
28267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28268 (exit $ac_status); }; } &&
28269 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28271 (eval $ac_try) 2>&5
28272 ac_status=$?
28273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28274 (exit $ac_status); }; }; then
28275 echo "*** The test program compiled, but did not run. This usually means"
28276 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
28277 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
28278 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28279 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28280 echo "*** is required on your system"
28281 echo "***"
28282 echo "*** If you have an old version installed, it is best to remove it, although"
28283 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28284else
28285 echo "$as_me: failed program was:" >&5
28286sed 's/^/| /' conftest.$ac_ext >&5
28287
28288 echo "*** The test program failed to compile or link. See the file config.log for the"
28289 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
28290fi
ac1cb8d3
VS
28291rm -f conftest.err conftest.$ac_objext \
28292 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28293 CFLAGS="$ac_save_CFLAGS"
28294 LIBS="$ac_save_LIBS"
28295 fi
28296 fi
28297 GTK_CFLAGS=""
28298 GTK_LIBS=""
28299 :
28300 fi
28301
28302
28303 rm -f conf.gtktest
28304
5001df0d
MW
28305
28306 case "${host}" in
28307 *-*-solaris2* )
28308 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
28309 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
28310 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
28311 fi
28312 if test "$wxUSE_SHARED" != "yes"; then
28313 GTK_LIBS="$GTK_LIBS -lX11"
28314 fi
28315 esac
f597b41c
MW
28316 fi
28317
f34ca037
MW
28318 if test -z "$wx_cv_lib_gtk"; then
28319 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
28320
28321# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
28322if test "${with_gtk_prefix+set}" = set; then
28323 withval="$with_gtk_prefix"
28324 gtk_config_prefix="$withval"
28325else
28326 gtk_config_prefix=""
28327fi;
28328
28329# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
28330if test "${with_gtk_exec_prefix+set}" = set; then
28331 withval="$with_gtk_exec_prefix"
28332 gtk_config_exec_prefix="$withval"
28333else
28334 gtk_config_exec_prefix=""
28335fi;
28336# Check whether --enable-gtktest or --disable-gtktest was given.
28337if test "${enable_gtktest+set}" = set; then
28338 enableval="$enable_gtktest"
28339
28340else
28341 enable_gtktest=yes
28342fi;
28343
28344 for module in . $GTK_MODULES
28345 do
28346 case "$module" in
28347 gthread)
28348 gtk_config_args="$gtk_config_args gthread"
28349 ;;
28350 esac
28351 done
28352
28353 if test x$gtk_config_exec_prefix != x ; then
28354 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28355 if test x${GTK_CONFIG+set} != xset ; then
28356 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28357 fi
28358 fi
28359 if test x$gtk_config_prefix != x ; then
28360 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28361 if test x${GTK_CONFIG+set} != xset ; then
28362 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28363 fi
28364 fi
28365
28366 # Extract the first word of "gtk-config", so it can be a program name with args.
28367set dummy gtk-config; ac_word=$2
28368echo "$as_me:$LINENO: checking for $ac_word" >&5
28369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28370if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28371 echo $ECHO_N "(cached) $ECHO_C" >&6
28372else
28373 case $GTK_CONFIG in
28374 [\\/]* | ?:[\\/]*)
28375 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28376 ;;
28377 *)
28378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28379for as_dir in $PATH
28380do
28381 IFS=$as_save_IFS
28382 test -z "$as_dir" && as_dir=.
28383 for ac_exec_ext in '' $ac_executable_extensions; do
28384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28385 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28387 break 2
28388 fi
28389done
28390done
28391
28392 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28393 ;;
28394esac
28395fi
28396GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28397
28398if test -n "$GTK_CONFIG"; then
28399 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28400echo "${ECHO_T}$GTK_CONFIG" >&6
28401else
28402 echo "$as_me:$LINENO: result: no" >&5
28403echo "${ECHO_T}no" >&6
28404fi
28405
28406 min_gtk_version=1.2.7
28407 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28408echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28409 no_gtk=""
28410 if test "$GTK_CONFIG" = "no" ; then
28411 no_gtk=yes
28412 else
28413 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28414 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28415 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28416 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28417 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28418 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28419 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28420 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28421 if test "x$enable_gtktest" = "xyes" ; then
28422 ac_save_CFLAGS="$CFLAGS"
28423 ac_save_LIBS="$LIBS"
28424 CFLAGS="$CFLAGS $GTK_CFLAGS"
28425 LIBS="$GTK_LIBS $LIBS"
28426 rm -f conf.gtktest
28427 if test "$cross_compiling" = yes; then
28428 echo $ac_n "cross compiling; assumed OK... $ac_c"
28429else
28430 cat >conftest.$ac_ext <<_ACEOF
28431/* confdefs.h. */
28432_ACEOF
28433cat confdefs.h >>conftest.$ac_ext
28434cat >>conftest.$ac_ext <<_ACEOF
28435/* end confdefs.h. */
28436
28437#include <gtk/gtk.h>
28438#include <stdio.h>
28439#include <stdlib.h>
28440
28441int
28442main ()
28443{
28444 int major, minor, micro;
28445 char *tmp_version;
28446
28447 system ("touch conf.gtktest");
28448
28449 /* HP/UX 9 (%@#!) writes to sscanf strings */
28450 tmp_version = g_strdup("$min_gtk_version");
28451 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28452 printf("%s, bad version string\n", "$min_gtk_version");
28453 exit(1);
28454 }
28455
28456 if ((gtk_major_version != $gtk_config_major_version) ||
28457 (gtk_minor_version != $gtk_config_minor_version) ||
28458 (gtk_micro_version != $gtk_config_micro_version))
28459 {
28460 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28461 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28462 gtk_major_version, gtk_minor_version, gtk_micro_version);
28463 printf ("*** was found! If gtk-config was correct, then it is best\n");
28464 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28465 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28466 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28467 printf("*** required on your system.\n");
28468 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28469 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28470 printf("*** before re-running configure\n");
28471 }
28472#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28473 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28474 (gtk_minor_version != GTK_MINOR_VERSION) ||
28475 (gtk_micro_version != GTK_MICRO_VERSION))
28476 {
28477 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28478 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28479 printf("*** library (version %d.%d.%d)\n",
28480 gtk_major_version, gtk_minor_version, gtk_micro_version);
28481 }
28482#endif /* defined (GTK_MAJOR_VERSION) ... */
28483 else
28484 {
28485 if ((gtk_major_version > major) ||
28486 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28487 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28488 {
28489 return 0;
28490 }
28491 else
28492 {
28493 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28494 gtk_major_version, gtk_minor_version, gtk_micro_version);
28495 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28496 major, minor, micro);
28497 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28498 printf("***\n");
28499 printf("*** If you have already installed a sufficiently new version, this error\n");
28500 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28501 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28502 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28503 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28504 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28505 printf("*** so that the correct libraries are found at run-time))\n");
28506 }
28507 }
28508 return 1;
28509}
28510
28511_ACEOF
28512rm -f conftest$ac_exeext
28513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28514 (eval $ac_link) 2>&5
28515 ac_status=$?
28516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28519 (eval $ac_try) 2>&5
28520 ac_status=$?
28521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28522 (exit $ac_status); }; }; then
28523 :
28524else
28525 echo "$as_me: program exited with status $ac_status" >&5
28526echo "$as_me: failed program was:" >&5
28527sed 's/^/| /' conftest.$ac_ext >&5
28528
28529( exit $ac_status )
28530no_gtk=yes
28531fi
ac1cb8d3 28532rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28533fi
28534 CFLAGS="$ac_save_CFLAGS"
28535 LIBS="$ac_save_LIBS"
28536 fi
28537 fi
28538 if test "x$no_gtk" = x ; then
28539 echo "$as_me:$LINENO: result: yes" >&5
28540echo "${ECHO_T}yes" >&6
28541 wx_cv_lib_gtk=1.2.7
28542 else
28543 echo "$as_me:$LINENO: result: no" >&5
28544echo "${ECHO_T}no" >&6
28545 if test "$GTK_CONFIG" = "no" ; then
28546 echo "*** The gtk-config script installed by GTK could not be found"
28547 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28548 echo "*** your path, or set the GTK_CONFIG environment variable to the"
28549 echo "*** full path to gtk-config."
28550 else
28551 if test -f conf.gtktest ; then
28552 :
28553 else
28554 echo "*** Could not run GTK test program, checking why..."
28555 CFLAGS="$CFLAGS $GTK_CFLAGS"
28556 LIBS="$LIBS $GTK_LIBS"
28557 cat >conftest.$ac_ext <<_ACEOF
28558/* confdefs.h. */
28559_ACEOF
28560cat confdefs.h >>conftest.$ac_ext
28561cat >>conftest.$ac_ext <<_ACEOF
28562/* end confdefs.h. */
28563
28564#include <gtk/gtk.h>
28565#include <stdio.h>
28566
28567int
28568main ()
28569{
28570 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28571 ;
28572 return 0;
28573}
28574_ACEOF
28575rm -f conftest.$ac_objext conftest$ac_exeext
28576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28577 (eval $ac_link) 2>conftest.er1
a848cd7e 28578 ac_status=$?
ac1cb8d3
VS
28579 grep -v '^ *+' conftest.er1 >conftest.err
28580 rm -f conftest.er1
28581 cat conftest.err >&5
a848cd7e
SC
28582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28583 (exit $ac_status); } &&
479c790c 28584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28586 (eval $ac_try) 2>&5
28587 ac_status=$?
28588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589 (exit $ac_status); }; } &&
28590 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28592 (eval $ac_try) 2>&5
28593 ac_status=$?
28594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28595 (exit $ac_status); }; }; then
28596 echo "*** The test program compiled, but did not run. This usually means"
28597 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28598 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28599 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28600 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28601 echo "*** is required on your system"
28602 echo "***"
28603 echo "*** If you have an old version installed, it is best to remove it, although"
28604 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28605 echo "***"
28606 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28607 echo "*** came with the system with the command"
28608 echo "***"
28609 echo "*** rpm --erase --nodeps gtk gtk-devel"
28610else
28611 echo "$as_me: failed program was:" >&5
28612sed 's/^/| /' conftest.$ac_ext >&5
28613
28614 echo "*** The test program failed to compile or link. See the file config.log for the"
28615 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28616 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28617 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28618fi
ac1cb8d3
VS
28619rm -f conftest.err conftest.$ac_objext \
28620 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28621 CFLAGS="$ac_save_CFLAGS"
28622 LIBS="$ac_save_LIBS"
28623 fi
28624 fi
28625 GTK_CFLAGS=""
28626 GTK_LIBS=""
28627 :
28628 fi
28629
28630
28631 rm -f conf.gtktest
28632
28633
f34ca037 28634 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
28635
28636# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
28637if test "${with_gtk_prefix+set}" = set; then
28638 withval="$with_gtk_prefix"
28639 gtk_config_prefix="$withval"
28640else
28641 gtk_config_prefix=""
28642fi;
28643
28644# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
28645if test "${with_gtk_exec_prefix+set}" = set; then
28646 withval="$with_gtk_exec_prefix"
28647 gtk_config_exec_prefix="$withval"
28648else
28649 gtk_config_exec_prefix=""
28650fi;
28651# Check whether --enable-gtktest or --disable-gtktest was given.
28652if test "${enable_gtktest+set}" = set; then
28653 enableval="$enable_gtktest"
28654
28655else
28656 enable_gtktest=yes
28657fi;
28658
28659 for module in . $GTK_MODULES
28660 do
28661 case "$module" in
28662 gthread)
28663 gtk_config_args="$gtk_config_args gthread"
28664 ;;
28665 esac
28666 done
28667
28668 if test x$gtk_config_exec_prefix != x ; then
28669 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28670 if test x${GTK_CONFIG+set} != xset ; then
28671 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28672 fi
28673 fi
28674 if test x$gtk_config_prefix != x ; then
28675 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28676 if test x${GTK_CONFIG+set} != xset ; then
28677 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28678 fi
28679 fi
28680
28681 # Extract the first word of "gtk-config", so it can be a program name with args.
28682set dummy gtk-config; ac_word=$2
28683echo "$as_me:$LINENO: checking for $ac_word" >&5
28684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28685if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28686 echo $ECHO_N "(cached) $ECHO_C" >&6
28687else
28688 case $GTK_CONFIG in
28689 [\\/]* | ?:[\\/]*)
28690 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28691 ;;
28692 *)
28693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28694for as_dir in $PATH
28695do
28696 IFS=$as_save_IFS
28697 test -z "$as_dir" && as_dir=.
28698 for ac_exec_ext in '' $ac_executable_extensions; do
28699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28700 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28702 break 2
28703 fi
28704done
28705done
28706
28707 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28708 ;;
28709esac
28710fi
28711GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28712
28713if test -n "$GTK_CONFIG"; then
28714 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28715echo "${ECHO_T}$GTK_CONFIG" >&6
28716else
28717 echo "$as_me:$LINENO: result: no" >&5
28718echo "${ECHO_T}no" >&6
28719fi
28720
28721 min_gtk_version=1.2.3
28722 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28723echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28724 no_gtk=""
28725 if test "$GTK_CONFIG" = "no" ; then
28726 no_gtk=yes
28727 else
28728 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28729 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28730 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28731 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28732 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28733 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28734 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28735 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28736 if test "x$enable_gtktest" = "xyes" ; then
28737 ac_save_CFLAGS="$CFLAGS"
28738 ac_save_LIBS="$LIBS"
28739 CFLAGS="$CFLAGS $GTK_CFLAGS"
28740 LIBS="$GTK_LIBS $LIBS"
28741 rm -f conf.gtktest
28742 if test "$cross_compiling" = yes; then
28743 echo $ac_n "cross compiling; assumed OK... $ac_c"
28744else
28745 cat >conftest.$ac_ext <<_ACEOF
28746/* confdefs.h. */
28747_ACEOF
28748cat confdefs.h >>conftest.$ac_ext
28749cat >>conftest.$ac_ext <<_ACEOF
28750/* end confdefs.h. */
28751
28752#include <gtk/gtk.h>
28753#include <stdio.h>
28754#include <stdlib.h>
28755
28756int
28757main ()
28758{
28759 int major, minor, micro;
28760 char *tmp_version;
28761
28762 system ("touch conf.gtktest");
28763
28764 /* HP/UX 9 (%@#!) writes to sscanf strings */
28765 tmp_version = g_strdup("$min_gtk_version");
28766 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28767 printf("%s, bad version string\n", "$min_gtk_version");
28768 exit(1);
28769 }
28770
28771 if ((gtk_major_version != $gtk_config_major_version) ||
28772 (gtk_minor_version != $gtk_config_minor_version) ||
28773 (gtk_micro_version != $gtk_config_micro_version))
28774 {
28775 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28776 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28777 gtk_major_version, gtk_minor_version, gtk_micro_version);
28778 printf ("*** was found! If gtk-config was correct, then it is best\n");
28779 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28780 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28781 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28782 printf("*** required on your system.\n");
28783 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28784 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28785 printf("*** before re-running configure\n");
28786 }
28787#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28788 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28789 (gtk_minor_version != GTK_MINOR_VERSION) ||
28790 (gtk_micro_version != GTK_MICRO_VERSION))
28791 {
28792 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28793 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28794 printf("*** library (version %d.%d.%d)\n",
28795 gtk_major_version, gtk_minor_version, gtk_micro_version);
28796 }
28797#endif /* defined (GTK_MAJOR_VERSION) ... */
28798 else
28799 {
28800 if ((gtk_major_version > major) ||
28801 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28802 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28803 {
28804 return 0;
28805 }
28806 else
28807 {
28808 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28809 gtk_major_version, gtk_minor_version, gtk_micro_version);
28810 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28811 major, minor, micro);
28812 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28813 printf("***\n");
28814 printf("*** If you have already installed a sufficiently new version, this error\n");
28815 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28816 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28817 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28818 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28819 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28820 printf("*** so that the correct libraries are found at run-time))\n");
28821 }
28822 }
28823 return 1;
28824}
28825
28826_ACEOF
28827rm -f conftest$ac_exeext
28828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28829 (eval $ac_link) 2>&5
28830 ac_status=$?
28831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28834 (eval $ac_try) 2>&5
28835 ac_status=$?
28836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28837 (exit $ac_status); }; }; then
28838 :
28839else
28840 echo "$as_me: program exited with status $ac_status" >&5
28841echo "$as_me: failed program was:" >&5
28842sed 's/^/| /' conftest.$ac_ext >&5
28843
28844( exit $ac_status )
28845no_gtk=yes
28846fi
ac1cb8d3 28847rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28848fi
28849 CFLAGS="$ac_save_CFLAGS"
28850 LIBS="$ac_save_LIBS"
28851 fi
28852 fi
28853 if test "x$no_gtk" = x ; then
28854 echo "$as_me:$LINENO: result: yes" >&5
28855echo "${ECHO_T}yes" >&6
28856 wx_cv_lib_gtk=1.2.3
28857 else
28858 echo "$as_me:$LINENO: result: no" >&5
28859echo "${ECHO_T}no" >&6
28860 if test "$GTK_CONFIG" = "no" ; then
28861 echo "*** The gtk-config script installed by GTK could not be found"
28862 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28863 echo "*** your path, or set the GTK_CONFIG environment variable to the"
28864 echo "*** full path to gtk-config."
28865 else
28866 if test -f conf.gtktest ; then
28867 :
28868 else
28869 echo "*** Could not run GTK test program, checking why..."
28870 CFLAGS="$CFLAGS $GTK_CFLAGS"
28871 LIBS="$LIBS $GTK_LIBS"
28872 cat >conftest.$ac_ext <<_ACEOF
28873/* confdefs.h. */
28874_ACEOF
28875cat confdefs.h >>conftest.$ac_ext
28876cat >>conftest.$ac_ext <<_ACEOF
28877/* end confdefs.h. */
28878
28879#include <gtk/gtk.h>
28880#include <stdio.h>
28881
28882int
28883main ()
28884{
28885 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28886 ;
28887 return 0;
28888}
28889_ACEOF
28890rm -f conftest.$ac_objext conftest$ac_exeext
28891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28892 (eval $ac_link) 2>conftest.er1
a848cd7e 28893 ac_status=$?
ac1cb8d3
VS
28894 grep -v '^ *+' conftest.er1 >conftest.err
28895 rm -f conftest.er1
28896 cat conftest.err >&5
a848cd7e
SC
28897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28898 (exit $ac_status); } &&
479c790c 28899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28901 (eval $ac_try) 2>&5
28902 ac_status=$?
28903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28904 (exit $ac_status); }; } &&
28905 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28907 (eval $ac_try) 2>&5
28908 ac_status=$?
28909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910 (exit $ac_status); }; }; then
28911 echo "*** The test program compiled, but did not run. This usually means"
28912 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28913 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28914 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28915 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28916 echo "*** is required on your system"
28917 echo "***"
28918 echo "*** If you have an old version installed, it is best to remove it, although"
28919 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28920 echo "***"
28921 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28922 echo "*** came with the system with the command"
28923 echo "***"
28924 echo "*** rpm --erase --nodeps gtk gtk-devel"
28925else
28926 echo "$as_me: failed program was:" >&5
28927sed 's/^/| /' conftest.$ac_ext >&5
28928
28929 echo "*** The test program failed to compile or link. See the file config.log for the"
28930 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28931 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28932 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28933fi
ac1cb8d3
VS
28934rm -f conftest.err conftest.$ac_objext \
28935 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28936 CFLAGS="$ac_save_CFLAGS"
28937 LIBS="$ac_save_LIBS"
28938 fi
28939 fi
28940 GTK_CFLAGS=""
28941 GTK_LIBS=""
28942 :
28943 fi
28944
28945
28946 rm -f conf.gtktest
28947
f34ca037 28948 fi
a848cd7e
SC
28949 fi
28950 fi
28951
28952 if test -z "$wx_cv_lib_gtk"; then
28953 wx_cv_lib_gtk=none
28954 else
28955 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 28956 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
28957 fi
28958
28959
28960fi
28961
28962
28963 if test "$gtk_version_cached" = 1; then
28964 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28965echo "${ECHO_T}$wx_cv_lib_gtk" >&6
28966 fi
28967
28968 case "$wx_cv_lib_gtk" in
28969 2.0) WXGTK20=1
28970 TOOLKIT_VERSION=2
28971 ;;
28972 1.2.7) WXGTK127=1
28973 WXGTK12=1
28974 ;;
28975 1.2.3) WXGTK12=1
28976 ;;
28977 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
28978The development files for GTK+ were not found. For GTK+ 2, please
28979ensure that pkg-config is in the path and that gtk+-2.0.pc is
28980installed. For GTK+ 1.2 please check that gtk-config is in the path,
28981and that the version is 1.2.3 or above. Also check that the
28982libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28983--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28984 " >&5
28985echo "$as_me: error:
f597b41c
MW
28986The development files for GTK+ were not found. For GTK+ 2, please
28987ensure that pkg-config is in the path and that gtk+-2.0.pc is
28988installed. For GTK+ 1.2 please check that gtk-config is in the path,
28989and that the version is 1.2.3 or above. Also check that the
28990libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28991--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28992 " >&2;}
28993 { (exit 1); exit 1; }; }
28994 ;;
28995 esac
28996
28997 if test "$WXGTK20" = 1; then
6954625c 28998 save_CFLAGS="$CFLAGS"
304205f1 28999 save_LIBS="$LIBS"
6954625c 29000 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 29001 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 29002
58e65954
MW
29003 echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
29004echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6
29005if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
29006 echo $ECHO_N "(cached) $ECHO_C" >&6
29007else
29008 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
29009/* confdefs.h. */
29010_ACEOF
29011cat confdefs.h >>conftest.$ac_ext
29012cat >>conftest.$ac_ext <<_ACEOF
29013/* end confdefs.h. */
58e65954 29014#include <gtk/gtk.h>
304205f1 29015
d12aef51
VZ
29016int
29017main ()
29018{
58e65954
MW
29019#ifndef gtk_icon_size_lookup
29020 char *p = (char *) gtk_icon_size_lookup;
29021#endif
abc736fd
MW
29022
29023 ;
29024 return 0;
29025}
29026_ACEOF
29027rm -f conftest.$ac_objext
29028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29029 (eval $ac_compile) 2>conftest.er1
29030 ac_status=$?
29031 grep -v '^ *+' conftest.er1 >conftest.err
29032 rm -f conftest.er1
29033 cat conftest.err >&5
29034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29035 (exit $ac_status); } &&
479c790c 29036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
29037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29038 (eval $ac_try) 2>&5
29039 ac_status=$?
29040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29041 (exit $ac_status); }; } &&
29042 { ac_try='test -s conftest.$ac_objext'
29043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29044 (eval $ac_try) 2>&5
29045 ac_status=$?
29046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29047 (exit $ac_status); }; }; then
58e65954 29048 ac_cv_have_decl_gtk_icon_size_lookup=yes
abc736fd
MW
29049else
29050 echo "$as_me: failed program was:" >&5
29051sed 's/^/| /' conftest.$ac_ext >&5
29052
58e65954
MW
29053ac_cv_have_decl_gtk_icon_size_lookup=no
29054fi
29055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29056fi
29057echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
29058echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6
29059if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
abc736fd 29060
58e65954
MW
29061cat >>confdefs.h <<_ACEOF
29062#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
abc736fd
MW
29063_ACEOF
29064
58e65954
MW
29065
29066else
29067 cat >>confdefs.h <<_ACEOF
29068#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
29069_ACEOF
29070
29071cat >>confdefs.h <<\_ACEOF
29072#define NEED_GTK_ICON_SIZE_LOOKUP 1
29073_ACEOF
abc736fd
MW
29074
29075fi
58e65954
MW
29076
29077
abc736fd 29078
e9263684
VZ
29079 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
29080echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
29081 cat >conftest.$ac_ext <<_ACEOF
29082/* confdefs.h. */
29083_ACEOF
29084cat confdefs.h >>conftest.$ac_ext
29085cat >>conftest.$ac_ext <<_ACEOF
29086/* end confdefs.h. */
29087
29088 #include <gtk/gtk.h>
29089
29090int
29091main ()
29092{
29093
29094 #if !GTK_CHECK_VERSION(2,6,0)
29095 Not GTK+ 2.6
29096 #endif
29097
29098 ;
29099 return 0;
29100}
29101_ACEOF
29102rm -f conftest.$ac_objext
29103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29104 (eval $ac_compile) 2>conftest.er1
29105 ac_status=$?
29106 grep -v '^ *+' conftest.er1 >conftest.err
29107 rm -f conftest.er1
29108 cat conftest.err >&5
29109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110 (exit $ac_status); } &&
479c790c 29111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e9263684
VZ
29112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29113 (eval $ac_try) 2>&5
29114 ac_status=$?
29115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29116 (exit $ac_status); }; } &&
29117 { ac_try='test -s conftest.$ac_objext'
29118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29119 (eval $ac_try) 2>&5
29120 ac_status=$?
29121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122 (exit $ac_status); }; }; then
29123
29124 cat >>confdefs.h <<\_ACEOF
29125#define __WXGTK26__ 1
29126_ACEOF
29127
29128 cat >>confdefs.h <<\_ACEOF
29129#define __WXGTK24__ 1
29130_ACEOF
29131
29132 echo "$as_me:$LINENO: result: yes" >&5
29133echo "${ECHO_T}yes" >&6
29134 ac_wxgtk26=1
29135
29136else
29137 echo "$as_me: failed program was:" >&5
29138sed 's/^/| /' conftest.$ac_ext >&5
29139
29140
29141 echo "$as_me:$LINENO: result: no" >&5
29142echo "${ECHO_T}no" >&6
29143 ac_wxgtk26=0
29144
29145fi
29146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29147
29148 if test "$ac_wxgtk26" = 0; then
9755e73b
VS
29149 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
29150echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
29151 cat >conftest.$ac_ext <<_ACEOF
29152/* confdefs.h. */
29153_ACEOF
29154cat confdefs.h >>conftest.$ac_ext
29155cat >>conftest.$ac_ext <<_ACEOF
29156/* end confdefs.h. */
29157
29158 #include <gtk/gtk.h>
29159
29160int
29161main ()
29162{
29163
29164 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 29165 Not GTK+ 2.4
9755e73b
VS
29166 #endif
29167
29168 ;
29169 return 0;
29170}
29171_ACEOF
29172rm -f conftest.$ac_objext
29173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29174 (eval $ac_compile) 2>conftest.er1
29175 ac_status=$?
29176 grep -v '^ *+' conftest.er1 >conftest.err
29177 rm -f conftest.er1
29178 cat conftest.err >&5
29179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29180 (exit $ac_status); } &&
479c790c 29181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
29182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29183 (eval $ac_try) 2>&5
29184 ac_status=$?
29185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29186 (exit $ac_status); }; } &&
29187 { ac_try='test -s conftest.$ac_objext'
29188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29189 (eval $ac_try) 2>&5
29190 ac_status=$?
29191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29192 (exit $ac_status); }; }; then
29193
29194 cat >>confdefs.h <<\_ACEOF
29195#define __WXGTK24__ 1
29196_ACEOF
29197
29198 echo "$as_me:$LINENO: result: yes" >&5
29199echo "${ECHO_T}yes" >&6
29200
29201else
29202 echo "$as_me: failed program was:" >&5
29203sed 's/^/| /' conftest.$ac_ext >&5
29204
29205
29206 echo "$as_me:$LINENO: result: no" >&5
29207echo "${ECHO_T}no" >&6
29208
29209fi
29210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e9263684 29211 fi
9755e73b 29212
6954625c 29213 CFLAGS="$save_CFLAGS"
304205f1 29214 LIBS="$save_LIBS"
a848cd7e
SC
29215 else
29216 if test "$wxUSE_UNICODE" = "yes"; then
29217 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
29218echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
29219 wxUSE_UNICODE=no
29220 fi
64b75e64
RD
29221
29222 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
29223echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
29224if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
29225 echo $ECHO_N "(cached) $ECHO_C" >&6
29226else
29227 ac_check_lib_save_LIBS=$LIBS
29228LIBS="-lgdk $LIBS"
29229cat >conftest.$ac_ext <<_ACEOF
29230/* confdefs.h. */
29231_ACEOF
29232cat confdefs.h >>conftest.$ac_ext
29233cat >>conftest.$ac_ext <<_ACEOF
29234/* end confdefs.h. */
29235
29236/* Override any gcc2 internal prototype to avoid an error. */
29237#ifdef __cplusplus
29238extern "C"
29239#endif
29240/* We use char because int might match the return type of a gcc2
29241 builtin and then its argument prototype would still apply. */
29242char gdk_im_open ();
29243int
29244main ()
29245{
29246gdk_im_open ();
29247 ;
29248 return 0;
29249}
29250_ACEOF
29251rm -f conftest.$ac_objext conftest$ac_exeext
29252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29253 (eval $ac_link) 2>conftest.er1
29254 ac_status=$?
29255 grep -v '^ *+' conftest.er1 >conftest.err
29256 rm -f conftest.er1
29257 cat conftest.err >&5
29258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29259 (exit $ac_status); } &&
479c790c 29260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
64b75e64
RD
29261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29262 (eval $ac_try) 2>&5
29263 ac_status=$?
29264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29265 (exit $ac_status); }; } &&
29266 { ac_try='test -s conftest$ac_exeext'
29267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29268 (eval $ac_try) 2>&5
29269 ac_status=$?
29270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29271 (exit $ac_status); }; }; then
29272 ac_cv_lib_gdk_gdk_im_open=yes
29273else
29274 echo "$as_me: failed program was:" >&5
29275sed 's/^/| /' conftest.$ac_ext >&5
29276
29277ac_cv_lib_gdk_gdk_im_open=no
29278fi
29279rm -f conftest.err conftest.$ac_objext \
29280 conftest$ac_exeext conftest.$ac_ext
29281LIBS=$ac_check_lib_save_LIBS
29282fi
29283echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
29284echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
29285if test $ac_cv_lib_gdk_gdk_im_open = yes; then
29286 cat >>confdefs.h <<\_ACEOF
29287#define HAVE_XIM 1
29288_ACEOF
29289
29290fi
29291
a848cd7e
SC
29292 fi
29293
e56f4f9e
VZ
29294 ac_ext=cc
29295ac_cpp='$CXXCPP $CPPFLAGS'
29296ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29297ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29298ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29299
29300
a848cd7e
SC
29301 if test "$USE_DARWIN" != 1; then
29302
29303for ac_func in poll
29304do
29305as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29306echo "$as_me:$LINENO: checking for $ac_func" >&5
29307echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29308if eval "test \"\${$as_ac_var+set}\" = set"; then
29309 echo $ECHO_N "(cached) $ECHO_C" >&6
29310else
29311 cat >conftest.$ac_ext <<_ACEOF
29312/* confdefs.h. */
29313_ACEOF
29314cat confdefs.h >>conftest.$ac_ext
29315cat >>conftest.$ac_ext <<_ACEOF
29316/* end confdefs.h. */
ac1cb8d3
VS
29317/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29319#define $ac_func innocuous_$ac_func
29320
a848cd7e
SC
29321/* System header to define __stub macros and hopefully few prototypes,
29322 which can conflict with char $ac_func (); below.
29323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29324 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29325
a848cd7e
SC
29326#ifdef __STDC__
29327# include <limits.h>
29328#else
29329# include <assert.h>
29330#endif
ac1cb8d3
VS
29331
29332#undef $ac_func
29333
a848cd7e
SC
29334/* Override any gcc2 internal prototype to avoid an error. */
29335#ifdef __cplusplus
29336extern "C"
29337{
29338#endif
29339/* We use char because int might match the return type of a gcc2
29340 builtin and then its argument prototype would still apply. */
29341char $ac_func ();
29342/* The GNU C library defines this for functions which it implements
29343 to always fail with ENOSYS. Some functions are actually named
29344 something starting with __ and the normal name is an alias. */
29345#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29346choke me
29347#else
29348char (*f) () = $ac_func;
29349#endif
29350#ifdef __cplusplus
29351}
29352#endif
29353
29354int
29355main ()
29356{
29357return f != $ac_func;
29358 ;
29359 return 0;
29360}
29361_ACEOF
29362rm -f conftest.$ac_objext conftest$ac_exeext
29363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29364 (eval $ac_link) 2>conftest.er1
a848cd7e 29365 ac_status=$?
ac1cb8d3
VS
29366 grep -v '^ *+' conftest.er1 >conftest.err
29367 rm -f conftest.er1
29368 cat conftest.err >&5
a848cd7e
SC
29369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29370 (exit $ac_status); } &&
479c790c 29371 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29373 (eval $ac_try) 2>&5
29374 ac_status=$?
29375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29376 (exit $ac_status); }; } &&
29377 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29379 (eval $ac_try) 2>&5
29380 ac_status=$?
29381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29382 (exit $ac_status); }; }; then
29383 eval "$as_ac_var=yes"
29384else
29385 echo "$as_me: failed program was:" >&5
29386sed 's/^/| /' conftest.$ac_ext >&5
29387
29388eval "$as_ac_var=no"
29389fi
ac1cb8d3
VS
29390rm -f conftest.err conftest.$ac_objext \
29391 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29392fi
29393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29394echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29395if test `eval echo '${'$as_ac_var'}'` = yes; then
29396 cat >>confdefs.h <<_ACEOF
29397#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29398_ACEOF
29399
29400fi
29401done
29402
29403 fi
29404
29405 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
29406 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
29407
29408 AFMINSTALL=afminstall
29409 TOOLKIT=GTK
29410 GUIDIST=GTK_DIST
29411
a848cd7e
SC
29412 if test "$wxUSE_GPE" = "yes"; then
29413 echo "$as_me:$LINENO: checking for gpewidget library" >&5
29414echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
29415
0ad5d837
VZ
29416 ac_find_libraries=
29417 for ac_dir in $SEARCH_LIB;
a848cd7e 29418 do
3eca31dc 29419 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29420 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
29421 ac_find_libraries=$ac_dir
29422 break 2
29423 fi
29424 done
29425 done
29426
29427 if test "$ac_find_libraries" != "" ; then
29428
0ad5d837 29429 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
29430 ac_path_to_link=""
29431 else
0ad5d837
VZ
29432 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29433 result=$?
29434 if test $result = 0; then
29435 ac_path_to_link=""
29436 else
29437 ac_path_to_link=" -L$ac_find_libraries"
29438 fi
a848cd7e
SC
29439 fi
29440
29441 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29442 WXGPE=1
0ad5d837
VZ
29443 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29444echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
29445 else
29446 echo "$as_me:$LINENO: result: not found" >&5
29447echo "${ECHO_T}not found" >&6
29448 fi
29449
29450 fi
29451 fi
29452
29453 if test "$wxUSE_MGL" = 1; then
29454 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29455echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
29456 if test "x$MGL_ROOT" = x ; then
29457 echo "$as_me:$LINENO: result: not found" >&5
29458echo "${ECHO_T}not found" >&6
29459 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29460echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29461 { (exit 1); exit 1; }; }
29462 else
29463 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29464echo "${ECHO_T}$MGL_ROOT" >&6
29465 fi
29466
29467 echo "$as_me:$LINENO: checking for libmgl location" >&5
29468echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
29469 case "${host}" in
29470 *-*-linux* )
29471 if test "x$wxUSE_SHARED" = xyes ; then
29472 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29473 else
29474 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29475 fi
29476 ;;
29477 *-pc-msdosdjgpp )
29478 mgl_os_candidates="dos32/dj2"
29479 ;;
29480 *)
29481 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29482echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29483 { (exit 1); exit 1; }; }
29484 esac
29485
29486 mgl_lib_type=""
29487 mgl_os=""
29488
29489 for mgl_os_i in $mgl_os_candidates ; do
29490 if test "x$mgl_os" = x ; then
29491 if test "$wxUSE_DEBUG_FLAG" = yes ; then
29492 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29493 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29494 mgl_lib_type=debug
29495 mgl_os=$mgl_os_i
29496 fi
29497 fi
29498 if test "x$mgl_lib_type" = x ; then
29499 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29500 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29501 mgl_lib_type=release
29502 mgl_os=$mgl_os_i
29503 fi
29504 fi
29505 fi
29506 done
29507
29508 if test "x$mgl_os" = x ; then
29509 echo "$as_me:$LINENO: result: not found" >&5
29510echo "${ECHO_T}not found" >&6
29511 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29512echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29513 { (exit 1); exit 1; }; }
29514 fi
29515 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29516echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
29517
29518 wxUSE_UNIVERSAL="yes"
29519
29520 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29521 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29522
29523 AFMINSTALL=afminstall
29524 TOOLKIT=MGL
29525 GUIDIST=MGL_DIST
29526 fi
29527
b3c86150
VS
29528 if test "$wxUSE_DFB" = 1; then
29529
29530
29531if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29532 if test -n "$ac_tool_prefix"; then
29533 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29534set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29535echo "$as_me:$LINENO: checking for $ac_word" >&5
29536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29537if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29538 echo $ECHO_N "(cached) $ECHO_C" >&6
29539else
29540 case $PKG_CONFIG in
29541 [\\/]* | ?:[\\/]*)
29542 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29543 ;;
29544 *)
29545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29546for as_dir in $PATH
29547do
29548 IFS=$as_save_IFS
29549 test -z "$as_dir" && as_dir=.
29550 for ac_exec_ext in '' $ac_executable_extensions; do
29551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29552 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29554 break 2
29555 fi
29556done
29557done
29558
29559 ;;
29560esac
29561fi
29562PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29563
29564if test -n "$PKG_CONFIG"; then
29565 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29566echo "${ECHO_T}$PKG_CONFIG" >&6
29567else
29568 echo "$as_me:$LINENO: result: no" >&5
29569echo "${ECHO_T}no" >&6
29570fi
29571
29572fi
29573if test -z "$ac_cv_path_PKG_CONFIG"; then
29574 ac_pt_PKG_CONFIG=$PKG_CONFIG
29575 # Extract the first word of "pkg-config", so it can be a program name with args.
29576set dummy pkg-config; ac_word=$2
29577echo "$as_me:$LINENO: checking for $ac_word" >&5
29578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29579if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29580 echo $ECHO_N "(cached) $ECHO_C" >&6
29581else
29582 case $ac_pt_PKG_CONFIG in
29583 [\\/]* | ?:[\\/]*)
29584 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29585 ;;
29586 *)
29587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29588for as_dir in $PATH
29589do
29590 IFS=$as_save_IFS
29591 test -z "$as_dir" && as_dir=.
29592 for ac_exec_ext in '' $ac_executable_extensions; do
29593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29594 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29596 break 2
29597 fi
29598done
29599done
29600
29601 ;;
29602esac
29603fi
29604ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29605
29606if test -n "$ac_pt_PKG_CONFIG"; then
29607 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29608echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
29609else
29610 echo "$as_me:$LINENO: result: no" >&5
29611echo "${ECHO_T}no" >&6
29612fi
29613
29614 PKG_CONFIG=$ac_pt_PKG_CONFIG
29615else
29616 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29617fi
29618
29619fi
29620if test -n "$PKG_CONFIG"; then
29621 _pkg_min_version=0.9.0
29622 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29623echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
29624 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29625 echo "$as_me:$LINENO: result: yes" >&5
29626echo "${ECHO_T}yes" >&6
29627 else
29628 echo "$as_me:$LINENO: result: no" >&5
29629echo "${ECHO_T}no" >&6
29630 PKG_CONFIG=""
29631 fi
29632
29633fi
29634
479c790c 29635
b3c86150
VS
29636pkg_failed=no
29637echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29638echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6
29639
29640if test -n "$PKG_CONFIG"; then
29641 if test -n "$DIRECTFB_CFLAGS"; then
29642 pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29643 else
29644 if test -n "$PKG_CONFIG" && \
737d3175
VZ
29645 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29646 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
b3c86150
VS
29647 ac_status=$?
29648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29649 (exit $ac_status); }; then
737d3175 29650 pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.22" 2>/dev/null`
b3c86150
VS
29651else
29652 pkg_failed=yes
29653fi
29654 fi
29655else
29656 pkg_failed=untried
29657fi
29658if test -n "$PKG_CONFIG"; then
29659 if test -n "$DIRECTFB_LIBS"; then
29660 pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29661 else
29662 if test -n "$PKG_CONFIG" && \
737d3175
VZ
29663 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29664 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
b3c86150
VS
29665 ac_status=$?
29666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29667 (exit $ac_status); }; then
737d3175 29668 pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.22" 2>/dev/null`
b3c86150
VS
29669else
29670 pkg_failed=yes
29671fi
29672 fi
29673else
29674 pkg_failed=untried
29675fi
29676
29677
29678
29679if test $pkg_failed = yes; then
29680
29681if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29682 _pkg_short_errors_supported=yes
29683else
29684 _pkg_short_errors_supported=no
29685fi
29686 if test $_pkg_short_errors_supported = yes; then
737d3175 29687 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.22"`
b3c86150 29688 else
737d3175 29689 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.22"`
b3c86150
VS
29690 fi
29691 # Put the nasty error message in config.log where it belongs
29692 echo "$DIRECTFB_PKG_ERRORS" >&5
29693
29694
29695 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29696echo "$as_me: error: DirectFB not found." >&2;}
29697 { (exit 1); exit 1; }; }
29698
29699
29700elif test $pkg_failed = untried; then
29701
29702 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29703echo "$as_me: error: DirectFB not found." >&2;}
29704 { (exit 1); exit 1; }; }
29705
29706
29707else
29708 DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29709 DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29710 echo "$as_me:$LINENO: result: yes" >&5
29711echo "${ECHO_T}yes" >&6
29712
29713 wxUSE_UNIVERSAL="yes"
29714 TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29715 GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29716 TOOLKIT=DFB
29717 GUIDIST=DFB_DIST
29718
29719fi
29720 fi
29721
a848cd7e
SC
29722 if test "$wxUSE_MICROWIN" = 1; then
29723 echo "$as_me:$LINENO: checking for MicroWindows" >&5
29724echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
29725 if test "x$MICROWINDOWS" = x ; then
29726 echo "$as_me:$LINENO: result: not found" >&5
29727echo "${ECHO_T}not found" >&6
29728 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29729echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29730 { (exit 1); exit 1; }; }
29731 else
29732 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29733echo "${ECHO_T}$MICROWINDOWS" >&6
29734 fi
29735
29736 if test -f $MICROWINDOWS/lib/libmwin.a; then
29737 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29738echo "${ECHO_T}MicroWindows' libraries found." >&6
29739 else
29740 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29741echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29742 { (exit 1); exit 1; }; }
29743 fi
29744
29745 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29746 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29747
29748 wxUSE_UNIVERSAL="yes"
29749
29750 AFMINSTALL=afminstall
29751 TOOLKIT=MICROWIN
29752 GUIDIST=MICROWIN_DIST
29753
29754 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29755 fi
29756
74b84332 29757 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
479c790c
VZ
29758
29759if test "x$ac_path_x_has_been_run" != xyes; then
29760 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
29761echo $ECHO_N "checking for X... $ECHO_C" >&6
29762
479c790c 29763ac_path_x_has_been_run=yes
a848cd7e
SC
29764
29765# Check whether --with-x or --without-x was given.
29766if test "${with_x+set}" = set; then
29767 withval="$with_x"
29768
29769fi;
29770# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29771if test "x$with_x" = xno; then
29772 # The user explicitly disabled X.
29773 have_x=disabled
29774else
29775 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
29776 # Both variables are already set.
29777 have_x=yes
29778 else
29779 if test "${ac_cv_have_x+set}" = set; then
29780 echo $ECHO_N "(cached) $ECHO_C" >&6
29781else
29782 # One or both of the vars are not set, and there is no cached value.
29783ac_x_includes=no ac_x_libraries=no
29784rm -fr conftest.dir
29785if mkdir conftest.dir; then
29786 cd conftest.dir
29787 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
29788 cat >Imakefile <<'_ACEOF'
29789acfindx:
29790 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
29791_ACEOF
29792 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
29793 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29794 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
29795 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29796 for ac_extension in a so sl; do
29797 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
29798 test -f $ac_im_libdir/libX11.$ac_extension; then
29799 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
29800 fi
29801 done
29802 # Screen out bogus values from the imake configuration. They are
29803 # bogus both because they are the default anyway, and because
29804 # using them would break gcc on systems where it needs fixed includes.
29805 case $ac_im_incroot in
29806 /usr/include) ;;
29807 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29808 esac
29809 case $ac_im_usrlibdir in
29810 /usr/lib | /lib) ;;
29811 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29812 esac
29813 fi
29814 cd ..
29815 rm -fr conftest.dir
29816fi
29817
29818# Standard set of common directories for X headers.
29819# Check X11 before X11Rn because it is often a symlink to the current release.
29820ac_x_header_dirs='
29821/usr/X11/include
29822/usr/X11R6/include
29823/usr/X11R5/include
29824/usr/X11R4/include
29825
29826/usr/include/X11
29827/usr/include/X11R6
29828/usr/include/X11R5
29829/usr/include/X11R4
29830
29831/usr/local/X11/include
29832/usr/local/X11R6/include
29833/usr/local/X11R5/include
29834/usr/local/X11R4/include
29835
29836/usr/local/include/X11
29837/usr/local/include/X11R6
29838/usr/local/include/X11R5
29839/usr/local/include/X11R4
29840
29841/usr/X386/include
29842/usr/x386/include
29843/usr/XFree86/include/X11
29844
29845/usr/include
29846/usr/local/include
29847/usr/unsupported/include
29848/usr/athena/include
29849/usr/local/x11r5/include
29850/usr/lpp/Xamples/include
29851
29852/usr/openwin/include
29853/usr/openwin/share/include'
29854
29855if test "$ac_x_includes" = no; then
479c790c 29856 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
29857 # First, try using that file with no special directory specified.
29858 cat >conftest.$ac_ext <<_ACEOF
29859/* confdefs.h. */
29860_ACEOF
29861cat confdefs.h >>conftest.$ac_ext
29862cat >>conftest.$ac_ext <<_ACEOF
29863/* end confdefs.h. */
ec3edcc9 29864#include <X11/Xlib.h>
a848cd7e
SC
29865_ACEOF
29866if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29868 ac_status=$?
29869 grep -v '^ *+' conftest.er1 >conftest.err
29870 rm -f conftest.er1
29871 cat conftest.err >&5
29872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29873 (exit $ac_status); } >/dev/null; then
29874 if test -s conftest.err; then
5d7b7554
VZ
29875 ac_cpp_err=$ac_cxx_preproc_warn_flag
29876 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
29877 else
29878 ac_cpp_err=
29879 fi
29880else
29881 ac_cpp_err=yes
29882fi
29883if test -z "$ac_cpp_err"; then
29884 # We can compile using X headers with no special include directory.
29885ac_x_includes=
29886else
29887 echo "$as_me: failed program was:" >&5
29888sed 's/^/| /' conftest.$ac_ext >&5
29889
29890 for ac_dir in $ac_x_header_dirs; do
ec3edcc9 29891 if test -r "$ac_dir/X11/Xlib.h"; then
a848cd7e
SC
29892 ac_x_includes=$ac_dir
29893 break
29894 fi
29895done
29896fi
29897rm -f conftest.err conftest.$ac_ext
29898fi # $ac_x_includes = no
29899
29900if test "$ac_x_libraries" = no; then
29901 # Check for the libraries.
29902 # See if we find them without any special options.
29903 # Don't add to $LIBS permanently.
29904 ac_save_LIBS=$LIBS
ec3edcc9 29905 LIBS="-lX11 $LIBS"
a848cd7e
SC
29906 cat >conftest.$ac_ext <<_ACEOF
29907/* confdefs.h. */
29908_ACEOF
29909cat confdefs.h >>conftest.$ac_ext
29910cat >>conftest.$ac_ext <<_ACEOF
29911/* end confdefs.h. */
ec3edcc9 29912#include <X11/Xlib.h>
a848cd7e
SC
29913int
29914main ()
29915{
ec3edcc9 29916XrmInitialize ()
a848cd7e
SC
29917 ;
29918 return 0;
29919}
29920_ACEOF
29921rm -f conftest.$ac_objext conftest$ac_exeext
29922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29923 (eval $ac_link) 2>conftest.er1
a848cd7e 29924 ac_status=$?
ac1cb8d3
VS
29925 grep -v '^ *+' conftest.er1 >conftest.err
29926 rm -f conftest.er1
29927 cat conftest.err >&5
a848cd7e
SC
29928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29929 (exit $ac_status); } &&
479c790c 29930 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29932 (eval $ac_try) 2>&5
29933 ac_status=$?
29934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29935 (exit $ac_status); }; } &&
29936 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29938 (eval $ac_try) 2>&5
29939 ac_status=$?
29940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29941 (exit $ac_status); }; }; then
29942 LIBS=$ac_save_LIBS
29943# We can link X programs with no special library path.
29944ac_x_libraries=
29945else
29946 echo "$as_me: failed program was:" >&5
29947sed 's/^/| /' conftest.$ac_ext >&5
29948
29949LIBS=$ac_save_LIBS
29950for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29951do
29952 # Don't even attempt the hair of trying to link an X program!
29953 for ac_extension in a so sl; do
ec3edcc9 29954 if test -r $ac_dir/libX11.$ac_extension; then
a848cd7e
SC
29955 ac_x_libraries=$ac_dir
29956 break 2
29957 fi
29958 done
29959done
29960fi
ac1cb8d3
VS
29961rm -f conftest.err conftest.$ac_objext \
29962 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29963fi # $ac_x_libraries = no
29964
29965if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
29966 # Didn't find X anywhere. Cache the known absence of X.
29967 ac_cv_have_x="have_x=no"
29968else
29969 # Record where we found X for the cache.
29970 ac_cv_have_x="have_x=yes \
ac1cb8d3 29971 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
29972fi
29973fi
29974
29975 fi
29976 eval "$ac_cv_have_x"
29977fi # $with_x != no
29978
29979if test "$have_x" != yes; then
29980 echo "$as_me:$LINENO: result: $have_x" >&5
29981echo "${ECHO_T}$have_x" >&6
29982 no_x=yes
29983else
29984 # If each of the values was on the command line, it overrides each guess.
29985 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29986 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29987 # Update the cache value to reflect the command line values.
29988 ac_cv_have_x="have_x=yes \
29989 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
479c790c
VZ
29990 # It might be that x_includes is empty (headers are found in the
29991 # standard search path. Then output the corresponding message
29992 ac_out_x_includes=$x_includes
29993 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
29994 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
29995echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
29996fi
29997
479c790c 29998fi
a848cd7e
SC
29999if test "$no_x" = yes; then
30000 # Not all programs may use this symbol, but it does not hurt to define it.
30001
30002cat >>confdefs.h <<\_ACEOF
30003#define X_DISPLAY_MISSING 1
30004_ACEOF
30005
30006 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30007else
30008 if test -n "$x_includes"; then
30009 X_CFLAGS="$X_CFLAGS -I$x_includes"
30010 fi
30011
30012 # It would also be nice to do this for all -L options, not just this one.
30013 if test -n "$x_libraries"; then
30014 X_LIBS="$X_LIBS -L$x_libraries"
30015 # For Solaris; some versions of Sun CC require a space after -R and
30016 # others require no space. Words are not sufficient . . . .
30017 case `(uname -sr) 2>/dev/null` in
30018 "SunOS 5"*)
30019 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30020echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
30021 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30022 cat >conftest.$ac_ext <<_ACEOF
30023/* confdefs.h. */
30024_ACEOF
30025cat confdefs.h >>conftest.$ac_ext
30026cat >>conftest.$ac_ext <<_ACEOF
30027/* end confdefs.h. */
30028
30029int
30030main ()
30031{
30032
30033 ;
30034 return 0;
30035}
30036_ACEOF
30037rm -f conftest.$ac_objext conftest$ac_exeext
30038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30039 (eval $ac_link) 2>conftest.er1
a848cd7e 30040 ac_status=$?
ac1cb8d3
VS
30041 grep -v '^ *+' conftest.er1 >conftest.err
30042 rm -f conftest.er1
30043 cat conftest.err >&5
a848cd7e
SC
30044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045 (exit $ac_status); } &&
479c790c 30046 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30048 (eval $ac_try) 2>&5
30049 ac_status=$?
30050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30051 (exit $ac_status); }; } &&
30052 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30054 (eval $ac_try) 2>&5
30055 ac_status=$?
30056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30057 (exit $ac_status); }; }; then
30058 ac_R_nospace=yes
30059else
30060 echo "$as_me: failed program was:" >&5
30061sed 's/^/| /' conftest.$ac_ext >&5
30062
30063ac_R_nospace=no
30064fi
ac1cb8d3
VS
30065rm -f conftest.err conftest.$ac_objext \
30066 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30067 if test $ac_R_nospace = yes; then
30068 echo "$as_me:$LINENO: result: no" >&5
30069echo "${ECHO_T}no" >&6
30070 X_LIBS="$X_LIBS -R$x_libraries"
30071 else
30072 LIBS="$ac_xsave_LIBS -R $x_libraries"
30073 cat >conftest.$ac_ext <<_ACEOF
30074/* confdefs.h. */
30075_ACEOF
30076cat confdefs.h >>conftest.$ac_ext
30077cat >>conftest.$ac_ext <<_ACEOF
30078/* end confdefs.h. */
30079
30080int
30081main ()
30082{
30083
30084 ;
30085 return 0;
30086}
30087_ACEOF
30088rm -f conftest.$ac_objext conftest$ac_exeext
30089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30090 (eval $ac_link) 2>conftest.er1
a848cd7e 30091 ac_status=$?
ac1cb8d3
VS
30092 grep -v '^ *+' conftest.er1 >conftest.err
30093 rm -f conftest.er1
30094 cat conftest.err >&5
a848cd7e
SC
30095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30096 (exit $ac_status); } &&
479c790c 30097 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30099 (eval $ac_try) 2>&5
30100 ac_status=$?
30101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102 (exit $ac_status); }; } &&
30103 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30105 (eval $ac_try) 2>&5
30106 ac_status=$?
30107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30108 (exit $ac_status); }; }; then
30109 ac_R_space=yes
30110else
30111 echo "$as_me: failed program was:" >&5
30112sed 's/^/| /' conftest.$ac_ext >&5
30113
30114ac_R_space=no
30115fi
ac1cb8d3
VS
30116rm -f conftest.err conftest.$ac_objext \
30117 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30118 if test $ac_R_space = yes; then
30119 echo "$as_me:$LINENO: result: yes" >&5
30120echo "${ECHO_T}yes" >&6
30121 X_LIBS="$X_LIBS -R $x_libraries"
30122 else
30123 echo "$as_me:$LINENO: result: neither works" >&5
30124echo "${ECHO_T}neither works" >&6
30125 fi
30126 fi
30127 LIBS=$ac_xsave_LIBS
30128 esac
30129 fi
30130
30131 # Check for system-dependent libraries X programs must link with.
30132 # Do this before checking for the system-independent R6 libraries
30133 # (-lICE), since we may need -lsocket or whatever for X linking.
30134
30135 if test "$ISC" = yes; then
30136 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30137 else
30138 # Martyn Johnson says this is needed for Ultrix, if the X
30139 # libraries were built with DECnet support. And Karl Berry says
30140 # the Alpha needs dnet_stub (dnet does not exist).
30141 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30142 cat >conftest.$ac_ext <<_ACEOF
30143/* confdefs.h. */
30144_ACEOF
30145cat confdefs.h >>conftest.$ac_ext
30146cat >>conftest.$ac_ext <<_ACEOF
30147/* end confdefs.h. */
30148
30149/* Override any gcc2 internal prototype to avoid an error. */
30150#ifdef __cplusplus
30151extern "C"
30152#endif
30153/* We use char because int might match the return type of a gcc2
30154 builtin and then its argument prototype would still apply. */
30155char XOpenDisplay ();
30156int
30157main ()
30158{
30159XOpenDisplay ();
30160 ;
30161 return 0;
30162}
30163_ACEOF
30164rm -f conftest.$ac_objext conftest$ac_exeext
30165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30166 (eval $ac_link) 2>conftest.er1
a848cd7e 30167 ac_status=$?
ac1cb8d3
VS
30168 grep -v '^ *+' conftest.er1 >conftest.err
30169 rm -f conftest.er1
30170 cat conftest.err >&5
a848cd7e
SC
30171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30172 (exit $ac_status); } &&
479c790c 30173 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30175 (eval $ac_try) 2>&5
30176 ac_status=$?
30177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30178 (exit $ac_status); }; } &&
30179 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30181 (eval $ac_try) 2>&5
30182 ac_status=$?
30183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30184 (exit $ac_status); }; }; then
30185 :
30186else
30187 echo "$as_me: failed program was:" >&5
30188sed 's/^/| /' conftest.$ac_ext >&5
30189
30190echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30191echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
30192if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30193 echo $ECHO_N "(cached) $ECHO_C" >&6
30194else
30195 ac_check_lib_save_LIBS=$LIBS
30196LIBS="-ldnet $LIBS"
30197cat >conftest.$ac_ext <<_ACEOF
30198/* confdefs.h. */
30199_ACEOF
30200cat confdefs.h >>conftest.$ac_ext
30201cat >>conftest.$ac_ext <<_ACEOF
30202/* end confdefs.h. */
30203
30204/* Override any gcc2 internal prototype to avoid an error. */
30205#ifdef __cplusplus
30206extern "C"
30207#endif
30208/* We use char because int might match the return type of a gcc2
30209 builtin and then its argument prototype would still apply. */
30210char dnet_ntoa ();
30211int
30212main ()
30213{
30214dnet_ntoa ();
30215 ;
30216 return 0;
30217}
30218_ACEOF
30219rm -f conftest.$ac_objext conftest$ac_exeext
30220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30221 (eval $ac_link) 2>conftest.er1
a848cd7e 30222 ac_status=$?
ac1cb8d3
VS
30223 grep -v '^ *+' conftest.er1 >conftest.err
30224 rm -f conftest.er1
30225 cat conftest.err >&5
a848cd7e
SC
30226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30227 (exit $ac_status); } &&
479c790c 30228 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30230 (eval $ac_try) 2>&5
30231 ac_status=$?
30232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30233 (exit $ac_status); }; } &&
30234 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30236 (eval $ac_try) 2>&5
30237 ac_status=$?
30238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30239 (exit $ac_status); }; }; then
30240 ac_cv_lib_dnet_dnet_ntoa=yes
30241else
30242 echo "$as_me: failed program was:" >&5
30243sed 's/^/| /' conftest.$ac_ext >&5
30244
30245ac_cv_lib_dnet_dnet_ntoa=no
30246fi
ac1cb8d3
VS
30247rm -f conftest.err conftest.$ac_objext \
30248 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30249LIBS=$ac_check_lib_save_LIBS
30250fi
30251echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30252echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
30253if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30254 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30255fi
30256
30257 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30258 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30259echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
30260if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30261 echo $ECHO_N "(cached) $ECHO_C" >&6
30262else
30263 ac_check_lib_save_LIBS=$LIBS
30264LIBS="-ldnet_stub $LIBS"
30265cat >conftest.$ac_ext <<_ACEOF
30266/* confdefs.h. */
30267_ACEOF
30268cat confdefs.h >>conftest.$ac_ext
30269cat >>conftest.$ac_ext <<_ACEOF
30270/* end confdefs.h. */
30271
30272/* Override any gcc2 internal prototype to avoid an error. */
30273#ifdef __cplusplus
30274extern "C"
30275#endif
30276/* We use char because int might match the return type of a gcc2
30277 builtin and then its argument prototype would still apply. */
30278char dnet_ntoa ();
30279int
30280main ()
30281{
30282dnet_ntoa ();
30283 ;
30284 return 0;
30285}
30286_ACEOF
30287rm -f conftest.$ac_objext conftest$ac_exeext
30288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30289 (eval $ac_link) 2>conftest.er1
a848cd7e 30290 ac_status=$?
ac1cb8d3
VS
30291 grep -v '^ *+' conftest.er1 >conftest.err
30292 rm -f conftest.er1
30293 cat conftest.err >&5
a848cd7e
SC
30294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30295 (exit $ac_status); } &&
479c790c 30296 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30298 (eval $ac_try) 2>&5
30299 ac_status=$?
30300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30301 (exit $ac_status); }; } &&
30302 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30304 (eval $ac_try) 2>&5
30305 ac_status=$?
30306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30307 (exit $ac_status); }; }; then
30308 ac_cv_lib_dnet_stub_dnet_ntoa=yes
30309else
30310 echo "$as_me: failed program was:" >&5
30311sed 's/^/| /' conftest.$ac_ext >&5
30312
30313ac_cv_lib_dnet_stub_dnet_ntoa=no
30314fi
ac1cb8d3
VS
30315rm -f conftest.err conftest.$ac_objext \
30316 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30317LIBS=$ac_check_lib_save_LIBS
30318fi
30319echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30320echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
30321if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30322 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30323fi
30324
30325 fi
30326fi
ac1cb8d3
VS
30327rm -f conftest.err conftest.$ac_objext \
30328 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30329 LIBS="$ac_xsave_LIBS"
30330
30331 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30332 # to get the SysV transport functions.
30333 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30334 # needs -lnsl.
30335 # The nsl library prevents programs from opening the X display
30336 # on Irix 5.2, according to T.E. Dickey.
30337 # The functions gethostbyname, getservbyname, and inet_addr are
30338 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30339 echo "$as_me:$LINENO: checking for gethostbyname" >&5
30340echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
30341if test "${ac_cv_func_gethostbyname+set}" = set; then
30342 echo $ECHO_N "(cached) $ECHO_C" >&6
30343else
30344 cat >conftest.$ac_ext <<_ACEOF
30345/* confdefs.h. */
30346_ACEOF
30347cat confdefs.h >>conftest.$ac_ext
30348cat >>conftest.$ac_ext <<_ACEOF
30349/* end confdefs.h. */
ac1cb8d3
VS
30350/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30352#define gethostbyname innocuous_gethostbyname
30353
a848cd7e
SC
30354/* System header to define __stub macros and hopefully few prototypes,
30355 which can conflict with char gethostbyname (); below.
30356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30357 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30358
a848cd7e
SC
30359#ifdef __STDC__
30360# include <limits.h>
30361#else
30362# include <assert.h>
30363#endif
ac1cb8d3
VS
30364
30365#undef gethostbyname
30366
a848cd7e
SC
30367/* Override any gcc2 internal prototype to avoid an error. */
30368#ifdef __cplusplus
30369extern "C"
30370{
30371#endif
30372/* We use char because int might match the return type of a gcc2
30373 builtin and then its argument prototype would still apply. */
30374char gethostbyname ();
30375/* The GNU C library defines this for functions which it implements
30376 to always fail with ENOSYS. Some functions are actually named
30377 something starting with __ and the normal name is an alias. */
30378#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
30379choke me
30380#else
30381char (*f) () = gethostbyname;
30382#endif
30383#ifdef __cplusplus
30384}
30385#endif
30386
30387int
30388main ()
30389{
30390return f != gethostbyname;
30391 ;
30392 return 0;
30393}
30394_ACEOF
30395rm -f conftest.$ac_objext conftest$ac_exeext
30396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30397 (eval $ac_link) 2>conftest.er1
a848cd7e 30398 ac_status=$?
ac1cb8d3
VS
30399 grep -v '^ *+' conftest.er1 >conftest.err
30400 rm -f conftest.er1
30401 cat conftest.err >&5
a848cd7e
SC
30402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30403 (exit $ac_status); } &&
479c790c 30404 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30406 (eval $ac_try) 2>&5
30407 ac_status=$?
30408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30409 (exit $ac_status); }; } &&
30410 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
30416 ac_cv_func_gethostbyname=yes
30417else
30418 echo "$as_me: failed program was:" >&5
30419sed 's/^/| /' conftest.$ac_ext >&5
30420
30421ac_cv_func_gethostbyname=no
30422fi
ac1cb8d3
VS
30423rm -f conftest.err conftest.$ac_objext \
30424 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30425fi
30426echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30427echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
30428
30429 if test $ac_cv_func_gethostbyname = no; then
30430 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30431echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
30432if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30433 echo $ECHO_N "(cached) $ECHO_C" >&6
30434else
30435 ac_check_lib_save_LIBS=$LIBS
30436LIBS="-lnsl $LIBS"
30437cat >conftest.$ac_ext <<_ACEOF
30438/* confdefs.h. */
30439_ACEOF
30440cat confdefs.h >>conftest.$ac_ext
30441cat >>conftest.$ac_ext <<_ACEOF
30442/* end confdefs.h. */
30443
30444/* Override any gcc2 internal prototype to avoid an error. */
30445#ifdef __cplusplus
30446extern "C"
30447#endif
30448/* We use char because int might match the return type of a gcc2
30449 builtin and then its argument prototype would still apply. */
30450char gethostbyname ();
30451int
30452main ()
30453{
30454gethostbyname ();
30455 ;
30456 return 0;
30457}
30458_ACEOF
30459rm -f conftest.$ac_objext conftest$ac_exeext
30460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
30461 (eval $ac_link) 2>conftest.er1
30462 ac_status=$?
30463 grep -v '^ *+' conftest.er1 >conftest.err
30464 rm -f conftest.er1
30465 cat conftest.err >&5
30466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30467 (exit $ac_status); } &&
479c790c 30468 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30470 (eval $ac_try) 2>&5
30471 ac_status=$?
30472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30473 (exit $ac_status); }; } &&
30474 { ac_try='test -s conftest$ac_exeext'
30475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30476 (eval $ac_try) 2>&5
30477 ac_status=$?
30478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30479 (exit $ac_status); }; }; then
30480 ac_cv_lib_nsl_gethostbyname=yes
30481else
30482 echo "$as_me: failed program was:" >&5
30483sed 's/^/| /' conftest.$ac_ext >&5
30484
30485ac_cv_lib_nsl_gethostbyname=no
30486fi
30487rm -f conftest.err conftest.$ac_objext \
30488 conftest$ac_exeext conftest.$ac_ext
30489LIBS=$ac_check_lib_save_LIBS
30490fi
30491echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30492echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
30493if test $ac_cv_lib_nsl_gethostbyname = yes; then
30494 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30495fi
30496
30497 if test $ac_cv_lib_nsl_gethostbyname = no; then
30498 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30499echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
30500if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30501 echo $ECHO_N "(cached) $ECHO_C" >&6
30502else
30503 ac_check_lib_save_LIBS=$LIBS
30504LIBS="-lbsd $LIBS"
30505cat >conftest.$ac_ext <<_ACEOF
30506/* confdefs.h. */
30507_ACEOF
30508cat confdefs.h >>conftest.$ac_ext
30509cat >>conftest.$ac_ext <<_ACEOF
30510/* end confdefs.h. */
30511
30512/* Override any gcc2 internal prototype to avoid an error. */
30513#ifdef __cplusplus
30514extern "C"
30515#endif
30516/* We use char because int might match the return type of a gcc2
30517 builtin and then its argument prototype would still apply. */
30518char gethostbyname ();
30519int
30520main ()
30521{
30522gethostbyname ();
30523 ;
30524 return 0;
30525}
30526_ACEOF
30527rm -f conftest.$ac_objext conftest$ac_exeext
30528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30529 (eval $ac_link) 2>conftest.er1
a848cd7e 30530 ac_status=$?
ac1cb8d3
VS
30531 grep -v '^ *+' conftest.er1 >conftest.err
30532 rm -f conftest.er1
30533 cat conftest.err >&5
a848cd7e
SC
30534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535 (exit $ac_status); } &&
479c790c 30536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
30537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30538 (eval $ac_try) 2>&5
30539 ac_status=$?
30540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
30541 (exit $ac_status); }; } &&
30542 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30544 (eval $ac_try) 2>&5
30545 ac_status=$?
30546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30547 (exit $ac_status); }; }; then
30548 ac_cv_lib_bsd_gethostbyname=yes
30549else
30550 echo "$as_me: failed program was:" >&5
30551sed 's/^/| /' conftest.$ac_ext >&5
30552
30553ac_cv_lib_bsd_gethostbyname=no
30554fi
ac1cb8d3
VS
30555rm -f conftest.err conftest.$ac_objext \
30556 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30557LIBS=$ac_check_lib_save_LIBS
30558fi
30559echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30560echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
30561if test $ac_cv_lib_bsd_gethostbyname = yes; then
30562 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30563fi
30564
30565 fi
30566 fi
30567
30568 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30569 # socket/setsockopt and other routines are undefined under SCO ODT
30570 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30571 # on later versions), says Simon Leinen: it contains gethostby*
30572 # variants that don't use the name server (or something). -lsocket
30573 # must be given before -lnsl if both are needed. We assume that
30574 # if connect needs -lnsl, so does gethostbyname.
30575 echo "$as_me:$LINENO: checking for connect" >&5
30576echo $ECHO_N "checking for connect... $ECHO_C" >&6
30577if test "${ac_cv_func_connect+set}" = set; then
30578 echo $ECHO_N "(cached) $ECHO_C" >&6
30579else
30580 cat >conftest.$ac_ext <<_ACEOF
30581/* confdefs.h. */
30582_ACEOF
30583cat confdefs.h >>conftest.$ac_ext
30584cat >>conftest.$ac_ext <<_ACEOF
30585/* end confdefs.h. */
ac1cb8d3
VS
30586/* Define connect to an innocuous variant, in case <limits.h> declares connect.
30587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30588#define connect innocuous_connect
30589
a848cd7e
SC
30590/* System header to define __stub macros and hopefully few prototypes,
30591 which can conflict with char connect (); below.
30592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30593 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30594
a848cd7e
SC
30595#ifdef __STDC__
30596# include <limits.h>
30597#else
30598# include <assert.h>
30599#endif
ac1cb8d3
VS
30600
30601#undef connect
30602
a848cd7e
SC
30603/* Override any gcc2 internal prototype to avoid an error. */
30604#ifdef __cplusplus
30605extern "C"
30606{
30607#endif
30608/* We use char because int might match the return type of a gcc2
30609 builtin and then its argument prototype would still apply. */
30610char connect ();
30611/* The GNU C library defines this for functions which it implements
30612 to always fail with ENOSYS. Some functions are actually named
30613 something starting with __ and the normal name is an alias. */
30614#if defined (__stub_connect) || defined (__stub___connect)
30615choke me
30616#else
30617char (*f) () = connect;
30618#endif
30619#ifdef __cplusplus
30620}
30621#endif
30622
30623int
30624main ()
30625{
30626return f != connect;
30627 ;
30628 return 0;
30629}
30630_ACEOF
30631rm -f conftest.$ac_objext conftest$ac_exeext
30632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30633 (eval $ac_link) 2>conftest.er1
a848cd7e 30634 ac_status=$?
ac1cb8d3
VS
30635 grep -v '^ *+' conftest.er1 >conftest.err
30636 rm -f conftest.er1
30637 cat conftest.err >&5
a848cd7e
SC
30638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30639 (exit $ac_status); } &&
479c790c 30640 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30642 (eval $ac_try) 2>&5
30643 ac_status=$?
30644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30645 (exit $ac_status); }; } &&
30646 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30648 (eval $ac_try) 2>&5
30649 ac_status=$?
30650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30651 (exit $ac_status); }; }; then
30652 ac_cv_func_connect=yes
30653else
30654 echo "$as_me: failed program was:" >&5
30655sed 's/^/| /' conftest.$ac_ext >&5
30656
30657ac_cv_func_connect=no
30658fi
ac1cb8d3
VS
30659rm -f conftest.err conftest.$ac_objext \
30660 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30661fi
30662echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30663echo "${ECHO_T}$ac_cv_func_connect" >&6
30664
30665 if test $ac_cv_func_connect = no; then
30666 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30667echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
30668if test "${ac_cv_lib_socket_connect+set}" = set; then
30669 echo $ECHO_N "(cached) $ECHO_C" >&6
30670else
30671 ac_check_lib_save_LIBS=$LIBS
30672LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30673cat >conftest.$ac_ext <<_ACEOF
30674/* confdefs.h. */
30675_ACEOF
30676cat confdefs.h >>conftest.$ac_ext
30677cat >>conftest.$ac_ext <<_ACEOF
30678/* end confdefs.h. */
30679
30680/* Override any gcc2 internal prototype to avoid an error. */
30681#ifdef __cplusplus
30682extern "C"
30683#endif
30684/* We use char because int might match the return type of a gcc2
30685 builtin and then its argument prototype would still apply. */
30686char connect ();
30687int
30688main ()
30689{
30690connect ();
30691 ;
30692 return 0;
30693}
30694_ACEOF
30695rm -f conftest.$ac_objext conftest$ac_exeext
30696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30697 (eval $ac_link) 2>conftest.er1
a848cd7e 30698 ac_status=$?
ac1cb8d3
VS
30699 grep -v '^ *+' conftest.er1 >conftest.err
30700 rm -f conftest.er1
30701 cat conftest.err >&5
a848cd7e
SC
30702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30703 (exit $ac_status); } &&
479c790c 30704 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30706 (eval $ac_try) 2>&5
30707 ac_status=$?
30708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30709 (exit $ac_status); }; } &&
30710 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30712 (eval $ac_try) 2>&5
30713 ac_status=$?
30714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30715 (exit $ac_status); }; }; then
30716 ac_cv_lib_socket_connect=yes
30717else
30718 echo "$as_me: failed program was:" >&5
30719sed 's/^/| /' conftest.$ac_ext >&5
30720
30721ac_cv_lib_socket_connect=no
30722fi
ac1cb8d3
VS
30723rm -f conftest.err conftest.$ac_objext \
30724 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30725LIBS=$ac_check_lib_save_LIBS
30726fi
30727echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30728echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
30729if test $ac_cv_lib_socket_connect = yes; then
30730 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30731fi
30732
30733 fi
30734
30735 # Guillermo Gomez says -lposix is necessary on A/UX.
30736 echo "$as_me:$LINENO: checking for remove" >&5
30737echo $ECHO_N "checking for remove... $ECHO_C" >&6
30738if test "${ac_cv_func_remove+set}" = set; then
30739 echo $ECHO_N "(cached) $ECHO_C" >&6
30740else
30741 cat >conftest.$ac_ext <<_ACEOF
30742/* confdefs.h. */
30743_ACEOF
30744cat confdefs.h >>conftest.$ac_ext
30745cat >>conftest.$ac_ext <<_ACEOF
30746/* end confdefs.h. */
ac1cb8d3
VS
30747/* Define remove to an innocuous variant, in case <limits.h> declares remove.
30748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30749#define remove innocuous_remove
30750
a848cd7e
SC
30751/* System header to define __stub macros and hopefully few prototypes,
30752 which can conflict with char remove (); below.
30753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30754 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30755
a848cd7e
SC
30756#ifdef __STDC__
30757# include <limits.h>
30758#else
30759# include <assert.h>
30760#endif
ac1cb8d3
VS
30761
30762#undef remove
30763
a848cd7e
SC
30764/* Override any gcc2 internal prototype to avoid an error. */
30765#ifdef __cplusplus
30766extern "C"
30767{
30768#endif
30769/* We use char because int might match the return type of a gcc2
30770 builtin and then its argument prototype would still apply. */
30771char remove ();
30772/* The GNU C library defines this for functions which it implements
30773 to always fail with ENOSYS. Some functions are actually named
30774 something starting with __ and the normal name is an alias. */
30775#if defined (__stub_remove) || defined (__stub___remove)
30776choke me
30777#else
30778char (*f) () = remove;
30779#endif
30780#ifdef __cplusplus
30781}
30782#endif
30783
30784int
30785main ()
30786{
30787return f != remove;
30788 ;
30789 return 0;
30790}
30791_ACEOF
30792rm -f conftest.$ac_objext conftest$ac_exeext
30793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30794 (eval $ac_link) 2>conftest.er1
a848cd7e 30795 ac_status=$?
ac1cb8d3
VS
30796 grep -v '^ *+' conftest.er1 >conftest.err
30797 rm -f conftest.er1
30798 cat conftest.err >&5
a848cd7e
SC
30799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30800 (exit $ac_status); } &&
479c790c 30801 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30803 (eval $ac_try) 2>&5
30804 ac_status=$?
30805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30806 (exit $ac_status); }; } &&
30807 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30809 (eval $ac_try) 2>&5
30810 ac_status=$?
30811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30812 (exit $ac_status); }; }; then
30813 ac_cv_func_remove=yes
30814else
30815 echo "$as_me: failed program was:" >&5
30816sed 's/^/| /' conftest.$ac_ext >&5
30817
30818ac_cv_func_remove=no
30819fi
ac1cb8d3
VS
30820rm -f conftest.err conftest.$ac_objext \
30821 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30822fi
30823echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30824echo "${ECHO_T}$ac_cv_func_remove" >&6
30825
30826 if test $ac_cv_func_remove = no; then
30827 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30828echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
30829if test "${ac_cv_lib_posix_remove+set}" = set; then
30830 echo $ECHO_N "(cached) $ECHO_C" >&6
30831else
30832 ac_check_lib_save_LIBS=$LIBS
30833LIBS="-lposix $LIBS"
30834cat >conftest.$ac_ext <<_ACEOF
30835/* confdefs.h. */
30836_ACEOF
30837cat confdefs.h >>conftest.$ac_ext
30838cat >>conftest.$ac_ext <<_ACEOF
30839/* end confdefs.h. */
30840
30841/* Override any gcc2 internal prototype to avoid an error. */
30842#ifdef __cplusplus
30843extern "C"
30844#endif
30845/* We use char because int might match the return type of a gcc2
30846 builtin and then its argument prototype would still apply. */
30847char remove ();
30848int
30849main ()
30850{
30851remove ();
30852 ;
30853 return 0;
30854}
30855_ACEOF
30856rm -f conftest.$ac_objext conftest$ac_exeext
30857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30858 (eval $ac_link) 2>conftest.er1
a848cd7e 30859 ac_status=$?
ac1cb8d3
VS
30860 grep -v '^ *+' conftest.er1 >conftest.err
30861 rm -f conftest.er1
30862 cat conftest.err >&5
a848cd7e
SC
30863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30864 (exit $ac_status); } &&
479c790c 30865 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30867 (eval $ac_try) 2>&5
30868 ac_status=$?
30869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30870 (exit $ac_status); }; } &&
30871 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30873 (eval $ac_try) 2>&5
30874 ac_status=$?
30875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30876 (exit $ac_status); }; }; then
30877 ac_cv_lib_posix_remove=yes
30878else
30879 echo "$as_me: failed program was:" >&5
30880sed 's/^/| /' conftest.$ac_ext >&5
30881
30882ac_cv_lib_posix_remove=no
30883fi
ac1cb8d3
VS
30884rm -f conftest.err conftest.$ac_objext \
30885 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30886LIBS=$ac_check_lib_save_LIBS
30887fi
30888echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30889echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
30890if test $ac_cv_lib_posix_remove = yes; then
30891 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30892fi
30893
30894 fi
30895
30896 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30897 echo "$as_me:$LINENO: checking for shmat" >&5
30898echo $ECHO_N "checking for shmat... $ECHO_C" >&6
30899if test "${ac_cv_func_shmat+set}" = set; then
30900 echo $ECHO_N "(cached) $ECHO_C" >&6
30901else
30902 cat >conftest.$ac_ext <<_ACEOF
30903/* confdefs.h. */
30904_ACEOF
30905cat confdefs.h >>conftest.$ac_ext
30906cat >>conftest.$ac_ext <<_ACEOF
30907/* end confdefs.h. */
ac1cb8d3
VS
30908/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30910#define shmat innocuous_shmat
30911
a848cd7e
SC
30912/* System header to define __stub macros and hopefully few prototypes,
30913 which can conflict with char shmat (); below.
30914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30915 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30916
a848cd7e
SC
30917#ifdef __STDC__
30918# include <limits.h>
30919#else
30920# include <assert.h>
30921#endif
ac1cb8d3
VS
30922
30923#undef shmat
30924
a848cd7e
SC
30925/* Override any gcc2 internal prototype to avoid an error. */
30926#ifdef __cplusplus
30927extern "C"
30928{
30929#endif
30930/* We use char because int might match the return type of a gcc2
30931 builtin and then its argument prototype would still apply. */
30932char shmat ();
30933/* The GNU C library defines this for functions which it implements
30934 to always fail with ENOSYS. Some functions are actually named
30935 something starting with __ and the normal name is an alias. */
30936#if defined (__stub_shmat) || defined (__stub___shmat)
30937choke me
30938#else
30939char (*f) () = shmat;
30940#endif
30941#ifdef __cplusplus
30942}
30943#endif
30944
30945int
30946main ()
30947{
30948return f != shmat;
30949 ;
30950 return 0;
30951}
30952_ACEOF
30953rm -f conftest.$ac_objext conftest$ac_exeext
30954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30955 (eval $ac_link) 2>conftest.er1
a848cd7e 30956 ac_status=$?
ac1cb8d3
VS
30957 grep -v '^ *+' conftest.er1 >conftest.err
30958 rm -f conftest.er1
30959 cat conftest.err >&5
a848cd7e
SC
30960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30961 (exit $ac_status); } &&
479c790c 30962 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30964 (eval $ac_try) 2>&5
30965 ac_status=$?
30966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967 (exit $ac_status); }; } &&
30968 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30970 (eval $ac_try) 2>&5
30971 ac_status=$?
30972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30973 (exit $ac_status); }; }; then
30974 ac_cv_func_shmat=yes
30975else
30976 echo "$as_me: failed program was:" >&5
30977sed 's/^/| /' conftest.$ac_ext >&5
30978
30979ac_cv_func_shmat=no
30980fi
ac1cb8d3
VS
30981rm -f conftest.err conftest.$ac_objext \
30982 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30983fi
30984echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30985echo "${ECHO_T}$ac_cv_func_shmat" >&6
30986
30987 if test $ac_cv_func_shmat = no; then
30988 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30989echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
30990if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30991 echo $ECHO_N "(cached) $ECHO_C" >&6
30992else
30993 ac_check_lib_save_LIBS=$LIBS
30994LIBS="-lipc $LIBS"
30995cat >conftest.$ac_ext <<_ACEOF
30996/* confdefs.h. */
30997_ACEOF
30998cat confdefs.h >>conftest.$ac_ext
30999cat >>conftest.$ac_ext <<_ACEOF
31000/* end confdefs.h. */
31001
31002/* Override any gcc2 internal prototype to avoid an error. */
31003#ifdef __cplusplus
31004extern "C"
31005#endif
31006/* We use char because int might match the return type of a gcc2
31007 builtin and then its argument prototype would still apply. */
31008char shmat ();
31009int
31010main ()
31011{
31012shmat ();
31013 ;
31014 return 0;
31015}
31016_ACEOF
31017rm -f conftest.$ac_objext conftest$ac_exeext
31018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31019 (eval $ac_link) 2>conftest.er1
a848cd7e 31020 ac_status=$?
ac1cb8d3
VS
31021 grep -v '^ *+' conftest.er1 >conftest.err
31022 rm -f conftest.er1
31023 cat conftest.err >&5
a848cd7e
SC
31024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31025 (exit $ac_status); } &&
479c790c 31026 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31028 (eval $ac_try) 2>&5
31029 ac_status=$?
31030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31031 (exit $ac_status); }; } &&
31032 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31034 (eval $ac_try) 2>&5
31035 ac_status=$?
31036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31037 (exit $ac_status); }; }; then
31038 ac_cv_lib_ipc_shmat=yes
31039else
31040 echo "$as_me: failed program was:" >&5
31041sed 's/^/| /' conftest.$ac_ext >&5
31042
31043ac_cv_lib_ipc_shmat=no
31044fi
ac1cb8d3
VS
31045rm -f conftest.err conftest.$ac_objext \
31046 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31047LIBS=$ac_check_lib_save_LIBS
31048fi
31049echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31050echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
31051if test $ac_cv_lib_ipc_shmat = yes; then
31052 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31053fi
31054
31055 fi
31056 fi
31057
31058 # Check for libraries that X11R6 Xt/Xaw programs need.
31059 ac_save_LDFLAGS=$LDFLAGS
31060 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31061 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31062 # check for ICE first), but we must link in the order -lSM -lICE or
31063 # we get undefined symbols. So assume we have SM if we have ICE.
31064 # These have to be linked with before -lX11, unlike the other
31065 # libraries we check for below, so use a different variable.
31066 # John Interrante, Karl Berry
31067 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31068echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
31069if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31070 echo $ECHO_N "(cached) $ECHO_C" >&6
31071else
31072 ac_check_lib_save_LIBS=$LIBS
31073LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31074cat >conftest.$ac_ext <<_ACEOF
31075/* confdefs.h. */
31076_ACEOF
31077cat confdefs.h >>conftest.$ac_ext
31078cat >>conftest.$ac_ext <<_ACEOF
31079/* end confdefs.h. */
31080
31081/* Override any gcc2 internal prototype to avoid an error. */
31082#ifdef __cplusplus
31083extern "C"
31084#endif
31085/* We use char because int might match the return type of a gcc2
31086 builtin and then its argument prototype would still apply. */
31087char IceConnectionNumber ();
31088int
31089main ()
31090{
31091IceConnectionNumber ();
31092 ;
31093 return 0;
31094}
31095_ACEOF
31096rm -f conftest.$ac_objext conftest$ac_exeext
31097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31098 (eval $ac_link) 2>conftest.er1
a848cd7e 31099 ac_status=$?
ac1cb8d3
VS
31100 grep -v '^ *+' conftest.er1 >conftest.err
31101 rm -f conftest.er1
31102 cat conftest.err >&5
a848cd7e
SC
31103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31104 (exit $ac_status); } &&
479c790c 31105 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31107 (eval $ac_try) 2>&5
31108 ac_status=$?
31109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31110 (exit $ac_status); }; } &&
31111 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31113 (eval $ac_try) 2>&5
31114 ac_status=$?
31115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31116 (exit $ac_status); }; }; then
31117 ac_cv_lib_ICE_IceConnectionNumber=yes
31118else
31119 echo "$as_me: failed program was:" >&5
31120sed 's/^/| /' conftest.$ac_ext >&5
31121
31122ac_cv_lib_ICE_IceConnectionNumber=no
31123fi
ac1cb8d3
VS
31124rm -f conftest.err conftest.$ac_objext \
31125 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31126LIBS=$ac_check_lib_save_LIBS
31127fi
31128echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31129echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
31130if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
31131 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31132fi
31133
31134 LDFLAGS=$ac_save_LDFLAGS
31135
31136fi
31137
31138
31139 if test "$no_x" = "yes"; then
89d90d6d
VZ
31140 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
31141echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
31142 { (exit 1); exit 1; }; }
a848cd7e
SC
31143 fi
31144
74b84332
VS
31145 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
31146 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
31147 AFMINSTALL=afminstall
31148 COMPILED_X_PROGRAM=0
31149
74b84332
VS
31150 fi
31151
31152 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
31153 if test "$wxUSE_NANOX" = "yes"; then
31154 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
31155echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
31156 if test "x$MICROWIN" = x ; then
31157 echo "$as_me:$LINENO: result: not found" >&5
31158echo "${ECHO_T}not found" >&6
31159 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
31160echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
31161 { (exit 1); exit 1; }; }
31162 else
31163 echo "$as_me:$LINENO: result: $MICROWIN" >&5
31164echo "${ECHO_T}$MICROWIN" >&6
31165 cat >>confdefs.h <<\_ACEOF
31166#define wxUSE_NANOX 1
31167_ACEOF
31168
31169 fi
31170 fi
31171
31172 if test "$wxUSE_UNICODE" = "yes"; then
31173
479c790c
VZ
31174
31175if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31176 if test -n "$ac_tool_prefix"; then
31177 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31178set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31179echo "$as_me:$LINENO: checking for $ac_word" >&5
31180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31181if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31182 echo $ECHO_N "(cached) $ECHO_C" >&6
31183else
31184 case $PKG_CONFIG in
31185 [\\/]* | ?:[\\/]*)
31186 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31187 ;;
31188 *)
31189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31190for as_dir in $PATH
31191do
31192 IFS=$as_save_IFS
31193 test -z "$as_dir" && as_dir=.
31194 for ac_exec_ext in '' $ac_executable_extensions; do
31195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31196 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31198 break 2
31199 fi
31200done
31201done
31202
31203 ;;
31204esac
31205fi
31206PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31207
31208if test -n "$PKG_CONFIG"; then
31209 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31210echo "${ECHO_T}$PKG_CONFIG" >&6
31211else
31212 echo "$as_me:$LINENO: result: no" >&5
31213echo "${ECHO_T}no" >&6
31214fi
31215
31216fi
31217if test -z "$ac_cv_path_PKG_CONFIG"; then
31218 ac_pt_PKG_CONFIG=$PKG_CONFIG
31219 # Extract the first word of "pkg-config", so it can be a program name with args.
31220set dummy pkg-config; ac_word=$2
31221echo "$as_me:$LINENO: checking for $ac_word" >&5
31222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31223if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31224 echo $ECHO_N "(cached) $ECHO_C" >&6
31225else
31226 case $ac_pt_PKG_CONFIG in
31227 [\\/]* | ?:[\\/]*)
31228 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31229 ;;
31230 *)
31231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31232for as_dir in $PATH
31233do
31234 IFS=$as_save_IFS
31235 test -z "$as_dir" && as_dir=.
31236 for ac_exec_ext in '' $ac_executable_extensions; do
31237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31238 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31240 break 2
31241 fi
31242done
31243done
31244
31245 ;;
31246esac
31247fi
31248ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31249
31250if test -n "$ac_pt_PKG_CONFIG"; then
31251 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31252echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
31253else
31254 echo "$as_me:$LINENO: result: no" >&5
31255echo "${ECHO_T}no" >&6
31256fi
31257
31258 PKG_CONFIG=$ac_pt_PKG_CONFIG
31259else
31260 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31261fi
31262
31263fi
31264if test -n "$PKG_CONFIG"; then
31265 _pkg_min_version=0.9.0
31266 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31267echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
31268 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31269 echo "$as_me:$LINENO: result: yes" >&5
31270echo "${ECHO_T}yes" >&6
31271 else
31272 echo "$as_me:$LINENO: result: no" >&5
31273echo "${ECHO_T}no" >&6
31274 PKG_CONFIG=""
31275 fi
31276
31277fi
31278
31279
3ecd9f92
MW
31280pkg_failed=no
31281echo "$as_me:$LINENO: checking for PANGOX" >&5
31282echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6
a848cd7e 31283
3ecd9f92
MW
31284if test -n "$PKG_CONFIG"; then
31285 if test -n "$PANGOX_CFLAGS"; then
31286 pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
31287 else
31288 if test -n "$PKG_CONFIG" && \
31289 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31290 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31291 ac_status=$?
31292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31293 (exit $ac_status); }; then
31294 pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
31295else
31296 pkg_failed=yes
31297fi
31298 fi
31299else
31300 pkg_failed=untried
31301fi
31302if test -n "$PKG_CONFIG"; then
31303 if test -n "$PANGOX_LIBS"; then
31304 pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
31305 else
31306 if test -n "$PKG_CONFIG" && \
31307 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31308 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31309 ac_status=$?
31310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31311 (exit $ac_status); }; then
31312 pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
31313else
31314 pkg_failed=yes
31315fi
31316 fi
31317else
31318 pkg_failed=untried
31319fi
31320
31321
31322
31323if test $pkg_failed = yes; then
31324
31325if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31326 _pkg_short_errors_supported=yes
31327else
31328 _pkg_short_errors_supported=no
31329fi
31330 if test $_pkg_short_errors_supported = yes; then
31331 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
31332 else
31333 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
a848cd7e 31334 fi
3ecd9f92
MW
31335 # Put the nasty error message in config.log where it belongs
31336 echo "$PANGOX_PKG_ERRORS" >&5
a848cd7e
SC
31337
31338
479c790c 31339 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
3ecd9f92
MW
31340echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31341 { (exit 1); exit 1; }; }
a848cd7e 31342
a848cd7e 31343
3ecd9f92 31344elif test $pkg_failed = untried; then
a848cd7e 31345
479c790c 31346 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
3ecd9f92
MW
31347echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31348 { (exit 1); exit 1; }; }
31349
31350
31351else
31352 PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
31353 PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
31354 echo "$as_me:$LINENO: result: yes" >&5
31355echo "${ECHO_T}yes" >&6
31356
479c790c
VZ
31357 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31358 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
3ecd9f92
MW
31359
31360fi
31361
31362pkg_failed=no
31363echo "$as_me:$LINENO: checking for PANGOFT2" >&5
31364echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6
31365
31366if test -n "$PKG_CONFIG"; then
31367 if test -n "$PANGOFT2_CFLAGS"; then
31368 pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
31369 else
31370 if test -n "$PKG_CONFIG" && \
31371 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31372 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31373 ac_status=$?
31374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31375 (exit $ac_status); }; then
31376 pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
31377else
31378 pkg_failed=yes
31379fi
31380 fi
31381else
31382 pkg_failed=untried
31383fi
31384if test -n "$PKG_CONFIG"; then
31385 if test -n "$PANGOFT2_LIBS"; then
31386 pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
31387 else
31388 if test -n "$PKG_CONFIG" && \
31389 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31390 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31391 ac_status=$?
31392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31393 (exit $ac_status); }; then
31394 pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
31395else
31396 pkg_failed=yes
31397fi
31398 fi
31399else
31400 pkg_failed=untried
31401fi
31402
31403
31404
31405if test $pkg_failed = yes; then
31406
31407if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31408 _pkg_short_errors_supported=yes
31409else
31410 _pkg_short_errors_supported=no
31411fi
31412 if test $_pkg_short_errors_supported = yes; then
31413 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
31414 else
31415 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
31416 fi
31417 # Put the nasty error message in config.log where it belongs
31418 echo "$PANGOFT2_PKG_ERRORS" >&5
a848cd7e 31419
a848cd7e 31420
479c790c 31421 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
a848cd7e 31422echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
479c790c 31423 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e
SC
31424
31425
3ecd9f92 31426elif test $pkg_failed = untried; then
a848cd7e 31427
479c790c 31428 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
3ecd9f92 31429echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
479c790c 31430 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e 31431
a848cd7e 31432
a848cd7e 31433else
3ecd9f92
MW
31434 PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
31435 PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
31436 echo "$as_me:$LINENO: result: yes" >&5
31437echo "${ECHO_T}yes" >&6
31438
479c790c
VZ
31439 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
31440 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
a848cd7e 31441
a848cd7e 31442fi
3ecd9f92
MW
31443
31444pkg_failed=no
31445echo "$as_me:$LINENO: checking for PANGOXFT" >&5
31446echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6
a848cd7e
SC
31447
31448if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
31449 if test -n "$PANGOXFT_CFLAGS"; then
31450 pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
31451 else
31452 if test -n "$PKG_CONFIG" && \
31453 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31454 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31455 ac_status=$?
31456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31457 (exit $ac_status); }; then
31458 pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
a848cd7e 31459else
3ecd9f92
MW
31460 pkg_failed=yes
31461fi
31462 fi
31463else
31464 pkg_failed=untried
31465fi
31466if test -n "$PKG_CONFIG"; then
31467 if test -n "$PANGOXFT_LIBS"; then
31468 pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
31469 else
31470 if test -n "$PKG_CONFIG" && \
31471 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31472 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31473 ac_status=$?
31474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31475 (exit $ac_status); }; then
31476 pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
31477else
31478 pkg_failed=yes
31479fi
31480 fi
31481else
31482 pkg_failed=untried
a848cd7e
SC
31483fi
31484
a848cd7e 31485
a848cd7e 31486
3ecd9f92 31487if test $pkg_failed = yes; then
a848cd7e 31488
3ecd9f92
MW
31489if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31490 _pkg_short_errors_supported=yes
31491else
31492 _pkg_short_errors_supported=no
31493fi
31494 if test $_pkg_short_errors_supported = yes; then
31495 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
31496 else
31497 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
a848cd7e 31498 fi
3ecd9f92
MW
31499 # Put the nasty error message in config.log where it belongs
31500 echo "$PANGOXFT_PKG_ERRORS" >&5
a848cd7e
SC
31501
31502
479c790c 31503 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
3ecd9f92
MW
31504echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31505
a848cd7e 31506
3ecd9f92 31507elif test $pkg_failed = untried; then
a848cd7e 31508
479c790c 31509 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
3ecd9f92
MW
31510echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31511
31512
31513else
31514 PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
31515 PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
31516 echo "$as_me:$LINENO: result: yes" >&5
31517echo "${ECHO_T}yes" >&6
a848cd7e 31518
479c790c 31519 cat >>confdefs.h <<\_ACEOF
4ae1af05
MB
31520#define HAVE_PANGO_XFT 1
31521_ACEOF
31522
479c790c
VZ
31523 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
31524 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
a848cd7e 31525
3ecd9f92 31526fi
479c790c
VZ
31527 save_CXXFLAGS="$CXXFLAGS"
31528 save_LIBS="$LIBS"
31529 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31530 LIBS="$LIBS $PANGOX_LIBS"
304205f1
VS
31531
31532for ac_func in pango_font_family_is_monospace
31533do
31534as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31535echo "$as_me:$LINENO: checking for $ac_func" >&5
31536echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31537if eval "test \"\${$as_ac_var+set}\" = set"; then
31538 echo $ECHO_N "(cached) $ECHO_C" >&6
31539else
31540 cat >conftest.$ac_ext <<_ACEOF
31541/* confdefs.h. */
31542_ACEOF
31543cat confdefs.h >>conftest.$ac_ext
31544cat >>conftest.$ac_ext <<_ACEOF
31545/* end confdefs.h. */
31546/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31548#define $ac_func innocuous_$ac_func
31549
31550/* System header to define __stub macros and hopefully few prototypes,
31551 which can conflict with char $ac_func (); below.
31552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31553 <limits.h> exists even on freestanding compilers. */
31554
31555#ifdef __STDC__
31556# include <limits.h>
31557#else
31558# include <assert.h>
31559#endif
31560
31561#undef $ac_func
31562
31563/* Override any gcc2 internal prototype to avoid an error. */
31564#ifdef __cplusplus
31565extern "C"
31566{
31567#endif
31568/* We use char because int might match the return type of a gcc2
31569 builtin and then its argument prototype would still apply. */
31570char $ac_func ();
31571/* The GNU C library defines this for functions which it implements
31572 to always fail with ENOSYS. Some functions are actually named
31573 something starting with __ and the normal name is an alias. */
31574#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31575choke me
31576#else
31577char (*f) () = $ac_func;
31578#endif
31579#ifdef __cplusplus
31580}
31581#endif
31582
31583int
31584main ()
31585{
31586return f != $ac_func;
31587 ;
31588 return 0;
31589}
31590_ACEOF
31591rm -f conftest.$ac_objext conftest$ac_exeext
31592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31593 (eval $ac_link) 2>conftest.er1
31594 ac_status=$?
31595 grep -v '^ *+' conftest.er1 >conftest.err
31596 rm -f conftest.er1
31597 cat conftest.err >&5
31598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31599 (exit $ac_status); } &&
479c790c 31600 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
304205f1
VS
31601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31602 (eval $ac_try) 2>&5
31603 ac_status=$?
31604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31605 (exit $ac_status); }; } &&
31606 { ac_try='test -s conftest$ac_exeext'
31607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31608 (eval $ac_try) 2>&5
31609 ac_status=$?
31610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31611 (exit $ac_status); }; }; then
31612 eval "$as_ac_var=yes"
31613else
31614 echo "$as_me: failed program was:" >&5
31615sed 's/^/| /' conftest.$ac_ext >&5
31616
31617eval "$as_ac_var=no"
31618fi
31619rm -f conftest.err conftest.$ac_objext \
31620 conftest$ac_exeext conftest.$ac_ext
31621fi
31622echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31623echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31624if test `eval echo '${'$as_ac_var'}'` = yes; then
31625 cat >>confdefs.h <<_ACEOF
31626#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31627_ACEOF
31628
31629fi
31630done
31631
479c790c
VZ
31632 CXXFLAGS="$save_CXXFLAGS"
31633 LIBS="$save_LIBS"
a848cd7e
SC
31634 fi
31635
31636 wxUSE_UNIVERSAL="yes"
31637
31638 if test "$wxUSE_NANOX" = "yes"; then
31639 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31640 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"
31641 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31642 else
31643 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31644 fi
31645
a848cd7e
SC
31646 TOOLKIT=X11
31647 GUIDIST=X11_DIST
31648 fi
31649
31650 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
31651 if test "$wxUSE_UNICODE" = "yes"; then
31652 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
31653echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
31654 { (exit 1); exit 1; }; }
31655 fi
31656
74b84332
VS
31657 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31658echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 31659
74b84332
VS
31660ac_find_includes=
31661for ac_dir in $SEARCH_INCLUDE /usr/include;
31662 do
31663 if test -f "$ac_dir/Xm/Xm.h"; then
31664 ac_find_includes=$ac_dir
31665 break
31666 fi
31667 done
a848cd7e 31668
74b84332
VS
31669 if test "$ac_find_includes" != "" ; then
31670 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31671echo "${ECHO_T}found in $ac_find_includes" >&6
31672
31673 if test "x$ac_find_includes" = "x/usr/include"; then
31674 ac_path_to_include=""
31675 else
31676 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31677 result=$?
31678 if test $result = 0; then
31679 ac_path_to_include=""
31680 else
31681 ac_path_to_include=" -I$ac_find_includes"
31682 fi
a848cd7e
SC
31683 fi
31684
74b84332
VS
31685 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31686 else
e56f4f9e
VZ
31687 save_CXXFLAGS=$CXXFLAGS
31688 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
e051b34e 31689
74b84332 31690 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31691/* confdefs.h. */
31692_ACEOF
31693cat confdefs.h >>conftest.$ac_ext
31694cat >>conftest.$ac_ext <<_ACEOF
31695/* end confdefs.h. */
31696
74b84332
VS
31697 #include <Xm/Xm.h>
31698
a848cd7e
SC
31699int
31700main ()
31701{
31702
74b84332
VS
31703 int version;
31704 version = xmUseVersion;
31705
a848cd7e
SC
31706 ;
31707 return 0;
31708}
31709_ACEOF
74b84332
VS
31710rm -f conftest.$ac_objext
31711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31712 (eval $ac_compile) 2>conftest.er1
a848cd7e 31713 ac_status=$?
ac1cb8d3
VS
31714 grep -v '^ *+' conftest.er1 >conftest.err
31715 rm -f conftest.er1
31716 cat conftest.err >&5
a848cd7e
SC
31717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31718 (exit $ac_status); } &&
479c790c 31719 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31721 (eval $ac_try) 2>&5
31722 ac_status=$?
31723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31724 (exit $ac_status); }; } &&
74b84332 31725 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31727 (eval $ac_try) 2>&5
31728 ac_status=$?
31729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31730 (exit $ac_status); }; }; then
74b84332
VS
31731
31732 echo "$as_me:$LINENO: result: found in default search path" >&5
31733echo "${ECHO_T}found in default search path" >&6
31734 COMPILED_X_PROGRAM=1
31735
a848cd7e
SC
31736else
31737 echo "$as_me: failed program was:" >&5
31738sed 's/^/| /' conftest.$ac_ext >&5
31739
a848cd7e 31740
74b84332
VS
31741 echo "$as_me:$LINENO: result: no" >&5
31742echo "${ECHO_T}no" >&6
e051b34e
MW
31743 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31744echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 31745 { (exit 1); exit 1; }; }
a848cd7e 31746
a848cd7e 31747
a848cd7e 31748fi
74b84332 31749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 31750
e56f4f9e 31751 CXXFLAGS=$save_CXXFLAGS
74b84332
VS
31752 fi
31753
0ad5d837
VZ
31754
31755 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
31756echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
31757
0ad5d837
VZ
31758 ac_find_libraries=
31759 for ac_dir in $SEARCH_LIB;
74b84332 31760 do
3eca31dc 31761 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
31762 if test -f "$ac_dir/libXm.$ac_extension"; then
31763 ac_find_libraries=$ac_dir
31764 break 2
a848cd7e 31765 fi
74b84332
VS
31766 done
31767 done
a848cd7e 31768
0ad5d837
VZ
31769
31770 if test "x$ac_find_libraries" != "x" ; then
31771 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31772echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 31773
74b84332 31774
0ad5d837 31775 if test "$ac_find_libraries" = "default location"; then
74b84332 31776 ac_path_to_link=""
a848cd7e 31777 else
0ad5d837
VZ
31778 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31779 result=$?
31780 if test $result = 0; then
31781 ac_path_to_link=""
31782 else
31783 ac_path_to_link=" -L$ac_find_libraries"
31784 fi
74b84332
VS
31785 fi
31786
0ad5d837
VZ
31787 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31788 else
e56f4f9e
VZ
31789 save_CXXFLAGS=$CXXFLAGS
31790 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
6f9cf1e6
MW
31791 save_LIBS="$LIBS"
31792 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 31793
0ad5d837 31794 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31795/* confdefs.h. */
31796_ACEOF
31797cat confdefs.h >>conftest.$ac_ext
31798cat >>conftest.$ac_ext <<_ACEOF
31799/* end confdefs.h. */
31800
0ad5d837 31801 #include <Xm/Xm.h>
74b84332 31802
a848cd7e
SC
31803int
31804main ()
31805{
74b84332 31806
0ad5d837
VZ
31807 int version;
31808 version = xmUseVersion;
74b84332 31809
a848cd7e
SC
31810 ;
31811 return 0;
31812}
31813_ACEOF
0ad5d837
VZ
31814rm -f conftest.$ac_objext conftest$ac_exeext
31815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31816 (eval $ac_link) 2>conftest.er1
a848cd7e 31817 ac_status=$?
ac1cb8d3
VS
31818 grep -v '^ *+' conftest.er1 >conftest.err
31819 rm -f conftest.er1
31820 cat conftest.err >&5
a848cd7e
SC
31821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31822 (exit $ac_status); } &&
479c790c 31823 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31825 (eval $ac_try) 2>&5
31826 ac_status=$?
31827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31828 (exit $ac_status); }; } &&
0ad5d837 31829 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31831 (eval $ac_try) 2>&5
31832 ac_status=$?
31833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31834 (exit $ac_status); }; }; then
74b84332 31835
0ad5d837 31836 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 31837echo "${ECHO_T}found in default search path" >&6
0ad5d837 31838 COMPILED_X_PROGRAM=1
74b84332 31839
a848cd7e
SC
31840else
31841 echo "$as_me: failed program was:" >&5
31842sed 's/^/| /' conftest.$ac_ext >&5
31843
74b84332 31844
6f9cf1e6 31845 echo "$as_me:$LINENO: result: no" >&5
74b84332 31846echo "${ECHO_T}no" >&6
6f9cf1e6 31847 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
31848echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
31849 { (exit 1); exit 1; }; }
31850
31851
31852fi
0ad5d837
VZ
31853rm -f conftest.err conftest.$ac_objext \
31854 conftest$ac_exeext conftest.$ac_ext
74b84332 31855
e56f4f9e 31856 CXXFLAGS=$save_CXXFLAGS
6f9cf1e6 31857 LIBS="$save_LIBS"
74b84332
VS
31858 fi
31859
31860 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
31861echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
31862 libp_link=""
31863 libsm_ice_link=""
31864 libs_found=0
31865 for libp in "" " -lXp"; do
31866 if test "$libs_found" = "0"; then
31867 for libsm_ice in "" " -lSM -lICE"; do
31868 if test "$libs_found" = "0"; then
31869 save_LIBS="$LIBS"
31870 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
e56f4f9e
VZ
31871 save_CXXFLAGS=$CXXFLAGS
31872 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
74b84332
VS
31873
31874 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31875/* confdefs.h. */
31876_ACEOF
31877cat confdefs.h >>conftest.$ac_ext
31878cat >>conftest.$ac_ext <<_ACEOF
31879/* end confdefs.h. */
31880
74b84332
VS
31881 #include <Xm/Xm.h>
31882 #include <Xm/List.h>
31883
a848cd7e
SC
31884int
31885main ()
31886{
74b84332
VS
31887
31888 XmString string = NULL;
31889 Widget w = NULL;
31890 int position = 0;
31891 XmListAddItem(w, string, position);
31892
a848cd7e
SC
31893 ;
31894 return 0;
31895}
31896_ACEOF
31897rm -f conftest.$ac_objext conftest$ac_exeext
31898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31899 (eval $ac_link) 2>conftest.er1
a848cd7e 31900 ac_status=$?
ac1cb8d3
VS
31901 grep -v '^ *+' conftest.er1 >conftest.err
31902 rm -f conftest.er1
31903 cat conftest.err >&5
a848cd7e
SC
31904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31905 (exit $ac_status); } &&
479c790c 31906 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31908 (eval $ac_try) 2>&5
31909 ac_status=$?
31910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31911 (exit $ac_status); }; } &&
31912 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31914 (eval $ac_try) 2>&5
31915 ac_status=$?
31916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31917 (exit $ac_status); }; }; then
31918
31919 libp_link="$libp"
31920 libsm_ice_link="$libsm_ice"
31921 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
31922echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
31923 libs_found=1
31924
31925else
31926 echo "$as_me: failed program was:" >&5
31927sed 's/^/| /' conftest.$ac_ext >&5
31928
31929
31930
31931fi
ac1cb8d3
VS
31932rm -f conftest.err conftest.$ac_objext \
31933 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31934
31935 LIBS="$save_LIBS"
e56f4f9e 31936 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
31937 fi
31938 done
31939 fi
31940 done
31941
31942 if test "$libs_found" = "0"; then
31943 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
31944echo "${ECHO_T}can't find the right libraries" >&6
31945 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
31946echo "$as_me: error: can't link a simple motif program" >&2;}
31947 { (exit 1); exit 1; }; }
31948 fi
31949
62fa8b3a
MW
31950 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
31951echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
31952if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
31953 echo $ECHO_N "(cached) $ECHO_C" >&6
31954else
31955 ac_check_lib_save_LIBS=$LIBS
31956LIBS="-lSgm $LIBS"
31957cat >conftest.$ac_ext <<_ACEOF
31958/* confdefs.h. */
31959_ACEOF
31960cat confdefs.h >>conftest.$ac_ext
31961cat >>conftest.$ac_ext <<_ACEOF
31962/* end confdefs.h. */
31963
31964/* Override any gcc2 internal prototype to avoid an error. */
31965#ifdef __cplusplus
31966extern "C"
31967#endif
31968/* We use char because int might match the return type of a gcc2
31969 builtin and then its argument prototype would still apply. */
31970char SgCreateList ();
31971int
31972main ()
31973{
31974SgCreateList ();
31975 ;
31976 return 0;
31977}
31978_ACEOF
31979rm -f conftest.$ac_objext conftest$ac_exeext
31980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31981 (eval $ac_link) 2>conftest.er1
31982 ac_status=$?
31983 grep -v '^ *+' conftest.er1 >conftest.err
31984 rm -f conftest.er1
31985 cat conftest.err >&5
31986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31987 (exit $ac_status); } &&
479c790c 31988 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
31989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31990 (eval $ac_try) 2>&5
31991 ac_status=$?
31992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31993 (exit $ac_status); }; } &&
31994 { ac_try='test -s conftest$ac_exeext'
31995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31996 (eval $ac_try) 2>&5
31997 ac_status=$?
31998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31999 (exit $ac_status); }; }; then
32000 ac_cv_lib_Sgm_SgCreateList=yes
32001else
32002 echo "$as_me: failed program was:" >&5
32003sed 's/^/| /' conftest.$ac_ext >&5
32004
32005ac_cv_lib_Sgm_SgCreateList=no
32006fi
32007rm -f conftest.err conftest.$ac_objext \
32008 conftest$ac_exeext conftest.$ac_ext
32009LIBS=$ac_check_lib_save_LIBS
32010fi
32011echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
32012echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
32013if test $ac_cv_lib_Sgm_SgCreateList = yes; then
32014 libsgm_link=" -lSgm"
32015fi
32016
32017
e56f4f9e
VZ
32018 save_CXXFLAGS=$CXXFLAGS
32019 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
0ad5d837 32020
a848cd7e
SC
32021 echo "$as_me:$LINENO: checking for Motif 2" >&5
32022echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
32023if test "${wx_cv_lib_motif2+set}" = set; then
32024 echo $ECHO_N "(cached) $ECHO_C" >&6
32025else
32026 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
32027/* confdefs.h. */
32028_ACEOF
32029cat confdefs.h >>conftest.$ac_ext
32030cat >>conftest.$ac_ext <<_ACEOF
32031/* end confdefs.h. */
32032
0ad5d837 32033 #include <Xm/Xm.h>
a848cd7e
SC
32034
32035int
32036main ()
32037{
32038
0ad5d837
VZ
32039 #if XmVersion < 2000
32040 Not Motif 2
32041 #endif
a848cd7e
SC
32042
32043 ;
32044 return 0;
32045}
32046_ACEOF
32047rm -f conftest.$ac_objext
32048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32049 (eval $ac_compile) 2>conftest.er1
a848cd7e 32050 ac_status=$?
ac1cb8d3
VS
32051 grep -v '^ *+' conftest.er1 >conftest.err
32052 rm -f conftest.er1
32053 cat conftest.err >&5
a848cd7e
SC
32054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32055 (exit $ac_status); } &&
479c790c 32056 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32058 (eval $ac_try) 2>&5
32059 ac_status=$?
32060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32061 (exit $ac_status); }; } &&
32062 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32064 (eval $ac_try) 2>&5
32065 ac_status=$?
32066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32067 (exit $ac_status); }; }; then
0ad5d837 32068 wx_cv_lib_motif2="yes"
a848cd7e
SC
32069else
32070 echo "$as_me: failed program was:" >&5
32071sed 's/^/| /' conftest.$ac_ext >&5
32072
0ad5d837
VZ
32073wx_cv_lib_motif2="no"
32074fi
32075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32076fi
32077echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
32078echo "${ECHO_T}$wx_cv_lib_motif2" >&6
32079 if test "$wx_cv_lib_motif2" = "yes"; then
32080 cat >>confdefs.h <<\_ACEOF
32081#define __WXMOTIF20__ 1
32082_ACEOF
a848cd7e 32083
0ad5d837
VZ
32084 else
32085 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
32086#define __WXMOTIF20__ 0
32087_ACEOF
32088
0ad5d837 32089 fi
2113bc77
MW
32090
32091 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
32092echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
32093if test "${wx_cv_lib_lesstif+set}" = set; then
32094 echo $ECHO_N "(cached) $ECHO_C" >&6
32095else
32096 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
32097/* confdefs.h. */
32098_ACEOF
32099cat confdefs.h >>conftest.$ac_ext
32100cat >>conftest.$ac_ext <<_ACEOF
32101/* end confdefs.h. */
32102
0ad5d837 32103 #include <Xm/Xm.h>
2113bc77
MW
32104
32105int
32106main ()
32107{
32108
0ad5d837
VZ
32109 #if !defined(LesstifVersion) || LesstifVersion <= 0
32110 Not Lesstif
32111 #endif
2113bc77
MW
32112
32113 ;
32114 return 0;
32115}
32116_ACEOF
32117rm -f conftest.$ac_objext
32118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32119 (eval $ac_compile) 2>conftest.er1
32120 ac_status=$?
32121 grep -v '^ *+' conftest.er1 >conftest.err
32122 rm -f conftest.er1
32123 cat conftest.err >&5
32124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32125 (exit $ac_status); } &&
479c790c 32126 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2113bc77
MW
32127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32128 (eval $ac_try) 2>&5
32129 ac_status=$?
32130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32131 (exit $ac_status); }; } &&
32132 { ac_try='test -s conftest.$ac_objext'
32133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32134 (eval $ac_try) 2>&5
32135 ac_status=$?
32136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32137 (exit $ac_status); }; }; then
0ad5d837 32138 wx_cv_lib_lesstif="yes"
2113bc77
MW
32139else
32140 echo "$as_me: failed program was:" >&5
32141sed 's/^/| /' conftest.$ac_ext >&5
32142
0ad5d837
VZ
32143wx_cv_lib_lesstif="no"
32144fi
32145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 32146
0ad5d837
VZ
32147fi
32148echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
32149echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
32150 if test "$wx_cv_lib_lesstif" = "yes"; then
32151 cat >>confdefs.h <<\_ACEOF
32152#define __WXLESSTIF__ 1
32153_ACEOF
32154
32155 else
32156 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
32157#define __WXLESSTIF__ 0
32158_ACEOF
32159
0ad5d837 32160 fi
2113bc77 32161
e56f4f9e 32162 CXXFLAGS=$save_CXXFLAGS
a848cd7e 32163
62fa8b3a 32164 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
32165 TOOLKIT=MOTIF
32166 GUIDIST=MOTIF_DIST
32167 fi
32168
74b84332 32169 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
32170 if test "$wxUSE_LIBXPM" = "sys"; then
32171 echo "$as_me:$LINENO: checking for Xpm library" >&5
32172echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
32173
0ad5d837
VZ
32174 ac_find_libraries=
32175 for ac_dir in $SEARCH_LIB;
a848cd7e 32176 do
3eca31dc 32177 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32178 if test -f "$ac_dir/libXpm.$ac_extension"; then
32179 ac_find_libraries=$ac_dir
32180 break 2
32181 fi
32182 done
32183 done
32184
32185 if test "$ac_find_libraries" != "" ; then
32186
0ad5d837 32187 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32188 ac_path_to_link=""
32189 else
0ad5d837
VZ
32190 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32191 result=$?
32192 if test $result = 0; then
32193 ac_path_to_link=""
32194 else
32195 ac_path_to_link=" -L$ac_find_libraries"
32196 fi
a848cd7e
SC
32197 fi
32198
32199 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
32200 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32201echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
32202
32203 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
32204echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
32205if test "${wx_cv_x11_xpm_h+set}" = set; then
32206 echo $ECHO_N "(cached) $ECHO_C" >&6
32207else
32208
e56f4f9e
VZ
32209 save_CXXFLAGS=$CXXFLAGS
32210 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
32211
32212 cat >conftest.$ac_ext <<_ACEOF
32213/* confdefs.h. */
32214_ACEOF
32215cat confdefs.h >>conftest.$ac_ext
32216cat >>conftest.$ac_ext <<_ACEOF
32217/* end confdefs.h. */
32218
32219 #include <X11/xpm.h>
32220
32221int
32222main ()
32223{
32224
32225 int version;
32226 version = XpmLibraryVersion();
32227
32228 ;
32229 return 0;
32230}
32231_ACEOF
32232rm -f conftest.$ac_objext
32233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32234 (eval $ac_compile) 2>conftest.er1
a848cd7e 32235 ac_status=$?
ac1cb8d3
VS
32236 grep -v '^ *+' conftest.er1 >conftest.err
32237 rm -f conftest.er1
32238 cat conftest.err >&5
a848cd7e
SC
32239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32240 (exit $ac_status); } &&
479c790c 32241 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32243 (eval $ac_try) 2>&5
32244 ac_status=$?
32245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32246 (exit $ac_status); }; } &&
32247 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32249 (eval $ac_try) 2>&5
32250 ac_status=$?
32251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32252 (exit $ac_status); }; }; then
32253 wx_cv_x11_xpm_h=yes
32254else
32255 echo "$as_me: failed program was:" >&5
32256sed 's/^/| /' conftest.$ac_ext >&5
32257
32258wx_cv_x11_xpm_h=no
32259
32260fi
ac1cb8d3 32261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 32262
e56f4f9e 32263 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
32264
32265
32266fi
32267echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
32268echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
32269
32270 if test $wx_cv_x11_xpm_h = "yes"; then
32271 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
32272 cat >>confdefs.h <<\_ACEOF
32273#define wxHAVE_LIB_XPM 1
32274_ACEOF
32275
32276 else
32277 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
32278echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
32279 fi
32280 fi
32281
32282 fi
32283
32284 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
32285echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
32286if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
32287 echo $ECHO_N "(cached) $ECHO_C" >&6
32288else
32289 ac_check_lib_save_LIBS=$LIBS
32290LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
32291cat >conftest.$ac_ext <<_ACEOF
32292/* confdefs.h. */
32293_ACEOF
32294cat confdefs.h >>conftest.$ac_ext
32295cat >>conftest.$ac_ext <<_ACEOF
32296/* end confdefs.h. */
32297
32298/* Override any gcc2 internal prototype to avoid an error. */
32299#ifdef __cplusplus
32300extern "C"
32301#endif
32302/* We use char because int might match the return type of a gcc2
32303 builtin and then its argument prototype would still apply. */
32304char XShapeQueryExtension ();
32305int
32306main ()
32307{
32308XShapeQueryExtension ();
32309 ;
32310 return 0;
32311}
32312_ACEOF
32313rm -f conftest.$ac_objext conftest$ac_exeext
32314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32315 (eval $ac_link) 2>conftest.er1
a848cd7e 32316 ac_status=$?
ac1cb8d3
VS
32317 grep -v '^ *+' conftest.er1 >conftest.err
32318 rm -f conftest.er1
32319 cat conftest.err >&5
a848cd7e
SC
32320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32321 (exit $ac_status); } &&
479c790c 32322 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32324 (eval $ac_try) 2>&5
32325 ac_status=$?
32326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32327 (exit $ac_status); }; } &&
32328 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32330 (eval $ac_try) 2>&5
32331 ac_status=$?
32332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32333 (exit $ac_status); }; }; then
32334 ac_cv_lib_Xext_XShapeQueryExtension=yes
32335else
32336 echo "$as_me: failed program was:" >&5
32337sed 's/^/| /' conftest.$ac_ext >&5
32338
32339ac_cv_lib_Xext_XShapeQueryExtension=no
32340fi
ac1cb8d3
VS
32341rm -f conftest.err conftest.$ac_objext \
32342 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32343LIBS=$ac_check_lib_save_LIBS
32344fi
32345echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
32346echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
32347if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
32348
32349 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
32350 wxHAVE_XEXT_LIB=1
32351
32352fi
32353
32354
32355 if test "$wxHAVE_XEXT_LIB" = 1; then
e56f4f9e
VZ
32356 save_CXXFLAGS="$CXXFLAGS"
32357 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
32358
32359 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
32360echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
32361 cat >conftest.$ac_ext <<_ACEOF
32362/* confdefs.h. */
32363_ACEOF
32364cat confdefs.h >>conftest.$ac_ext
32365cat >>conftest.$ac_ext <<_ACEOF
32366/* end confdefs.h. */
32367
32368 #include <X11/Xlib.h>
32369 #include <X11/extensions/shape.h>
32370
32371int
32372main ()
32373{
32374
32375 int dummy1, dummy2;
32376 XShapeQueryExtension((Display*)NULL,
32377 (int*)NULL, (int*)NULL);
32378
32379 ;
32380 return 0;
32381}
32382_ACEOF
32383rm -f conftest.$ac_objext
32384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32385 (eval $ac_compile) 2>conftest.er1
a848cd7e 32386 ac_status=$?
ac1cb8d3
VS
32387 grep -v '^ *+' conftest.er1 >conftest.err
32388 rm -f conftest.er1
32389 cat conftest.err >&5
a848cd7e
SC
32390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32391 (exit $ac_status); } &&
479c790c 32392 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32394 (eval $ac_try) 2>&5
32395 ac_status=$?
32396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32397 (exit $ac_status); }; } &&
32398 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32400 (eval $ac_try) 2>&5
32401 ac_status=$?
32402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32403 (exit $ac_status); }; }; then
32404
32405 cat >>confdefs.h <<\_ACEOF
32406#define HAVE_XSHAPE 1
32407_ACEOF
32408
32409 echo "$as_me:$LINENO: result: found" >&5
32410echo "${ECHO_T}found" >&6
32411
32412else
32413 echo "$as_me: failed program was:" >&5
32414sed 's/^/| /' conftest.$ac_ext >&5
32415
32416
32417 echo "$as_me:$LINENO: result: not found" >&5
32418echo "${ECHO_T}not found" >&6
32419
32420fi
ac1cb8d3 32421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e56f4f9e 32422 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
32423
32424 fi
32425 fi
32426
32427 if test "$wxUSE_MAC" = 1; then
32428 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
32429echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
32430 if test "$GCC" = yes; then
32431 echo "$as_me:$LINENO: result: gcc" >&5
32432echo "${ECHO_T}gcc" >&6
32433 CPPFLAGS_PASCAL="-fpascal-strings"
32434 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
32435 echo "$as_me:$LINENO: result: xlc" >&5
32436echo "${ECHO_T}xlc" >&6
32437 CPPFLAGS_PASCAL="-qmacpstr"
32438 else
32439 echo "$as_me:$LINENO: result: none" >&5
32440echo "${ECHO_T}none" >&6
32441 fi
32442
1e9e8aba 32443 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 32444 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 32445 else
c92ad099 32446 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 32447 fi
a848cd7e 32448
a848cd7e
SC
32449 TOOLKIT=MAC
32450 GUIDIST=MACX_DIST
dd21ced8 32451 WXBASEPORT="_carbon"
a848cd7e
SC
32452 fi
32453
32454 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
32455 TOOLKIT=COCOA
32456 GUIDIST=COCOA_DIST
32457 fi
32458
32459 if test "$wxUSE_PM" = 1; then
32460 TOOLKIT=PM
de59c161
RD
32461 GUIDIST=PM_DIST
32462 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
32463echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
32464if test "${wx_cv_spbcdata+set}" = set; then
32465 echo $ECHO_N "(cached) $ECHO_C" >&6
32466else
32467
32468 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
32469/* confdefs.h. */
32470_ACEOF
32471cat confdefs.h >>conftest.$ac_ext
32472cat >>conftest.$ac_ext <<_ACEOF
32473/* end confdefs.h. */
32474
32475 #define INCL_PM
32476 #include <os2.h>
32477
32478int
32479main ()
32480{
32481
32482 SPBCDATA test;
32483
32484 ;
32485 return 0;
32486}
32487_ACEOF
32488rm -f conftest.$ac_objext
32489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32490 (eval $ac_compile) 2>conftest.er1
de59c161 32491 ac_status=$?
ac1cb8d3
VS
32492 grep -v '^ *+' conftest.er1 >conftest.err
32493 rm -f conftest.er1
32494 cat conftest.err >&5
de59c161
RD
32495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32496 (exit $ac_status); } &&
479c790c 32497 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32499 (eval $ac_try) 2>&5
32500 ac_status=$?
32501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502 (exit $ac_status); }; } &&
32503 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
32504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32505 (eval $ac_try) 2>&5
32506 ac_status=$?
32507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508 (exit $ac_status); }; }; then
32509 wx_cv_spbcdata=yes
32510else
32511 echo "$as_me: failed program was:" >&5
32512sed 's/^/| /' conftest.$ac_ext >&5
32513
32514wx_cv_spbcdata=no
32515
32516fi
ac1cb8d3 32517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
32518
32519
32520fi
32521echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
32522echo "${ECHO_T}$wx_cv_spbcdata" >&6
32523
32524 if test $wx_cv_spbcdata = "yes"; then
32525 cat >>confdefs.h <<\_ACEOF
32526#define HAVE_SPBCDATA 1
32527_ACEOF
32528
32529 fi
a848cd7e
SC
32530 fi
32531
32532 if test "$TOOLKIT" = "PM" ; then
32533 TOOLKIT_DIR="os2"
32534 else
32535 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
32536 fi
32537
a848cd7e 32538 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
32539 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
32540 WIDGET_SET=univ
a848cd7e
SC
32541 fi
32542
32543 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
32544 DISTDIR="wx\$(TOOLKIT)"
32545else
32546 USE_GUI=0
32547
32548 TOOLKIT_DIR="base"
32549
32550 if test "$USE_WIN32" = 1 ; then
a848cd7e 32551 TOOLKIT="MSW"
a848cd7e
SC
32552 fi
32553
a848cd7e
SC
32554 GUIDIST="BASE_DIST"
32555 DISTDIR="wxBase"
32556fi
32557
32558
d12aef51
VZ
32559if test "$wxUSE_GUI" = "yes"; then
32560 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32561
32562for ac_header in X11/Xlib.h
32563do
32564as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32565if eval "test \"\${$as_ac_Header+set}\" = set"; then
32566 echo "$as_me:$LINENO: checking for $ac_header" >&5
32567echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32568if eval "test \"\${$as_ac_Header+set}\" = set"; then
32569 echo $ECHO_N "(cached) $ECHO_C" >&6
32570fi
32571echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32572echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32573else
32574 # Is the header compilable?
32575echo "$as_me:$LINENO: checking $ac_header usability" >&5
32576echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32577cat >conftest.$ac_ext <<_ACEOF
32578/* confdefs.h. */
32579_ACEOF
32580cat confdefs.h >>conftest.$ac_ext
32581cat >>conftest.$ac_ext <<_ACEOF
32582/* end confdefs.h. */
32583$ac_includes_default
32584#include <$ac_header>
32585_ACEOF
32586rm -f conftest.$ac_objext
32587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32588 (eval $ac_compile) 2>conftest.er1
32589 ac_status=$?
32590 grep -v '^ *+' conftest.er1 >conftest.err
32591 rm -f conftest.er1
32592 cat conftest.err >&5
32593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32594 (exit $ac_status); } &&
479c790c 32595 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
32596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32597 (eval $ac_try) 2>&5
32598 ac_status=$?
32599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32600 (exit $ac_status); }; } &&
32601 { ac_try='test -s conftest.$ac_objext'
32602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32603 (eval $ac_try) 2>&5
32604 ac_status=$?
32605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32606 (exit $ac_status); }; }; then
32607 ac_header_compiler=yes
32608else
32609 echo "$as_me: failed program was:" >&5
32610sed 's/^/| /' conftest.$ac_ext >&5
32611
32612ac_header_compiler=no
32613fi
32614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32615echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32616echo "${ECHO_T}$ac_header_compiler" >&6
32617
32618# Is the header present?
32619echo "$as_me:$LINENO: checking $ac_header presence" >&5
32620echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32621cat >conftest.$ac_ext <<_ACEOF
32622/* confdefs.h. */
32623_ACEOF
32624cat confdefs.h >>conftest.$ac_ext
32625cat >>conftest.$ac_ext <<_ACEOF
32626/* end confdefs.h. */
32627#include <$ac_header>
32628_ACEOF
32629if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32630 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32631 ac_status=$?
32632 grep -v '^ *+' conftest.er1 >conftest.err
32633 rm -f conftest.er1
32634 cat conftest.err >&5
32635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32636 (exit $ac_status); } >/dev/null; then
32637 if test -s conftest.err; then
5d7b7554
VZ
32638 ac_cpp_err=$ac_cxx_preproc_warn_flag
32639 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
d12aef51
VZ
32640 else
32641 ac_cpp_err=
32642 fi
32643else
32644 ac_cpp_err=yes
32645fi
32646if test -z "$ac_cpp_err"; then
32647 ac_header_preproc=yes
32648else
32649 echo "$as_me: failed program was:" >&5
32650sed 's/^/| /' conftest.$ac_ext >&5
32651
32652 ac_header_preproc=no
32653fi
32654rm -f conftest.err conftest.$ac_ext
32655echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32656echo "${ECHO_T}$ac_header_preproc" >&6
32657
32658# So? What about this header?
5d7b7554 32659case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
d12aef51
VZ
32660 yes:no: )
32661 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32662echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32664echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32665 ac_header_preproc=yes
32666 ;;
32667 no:yes:* )
32668 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32669echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32670 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32671echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32672 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32673echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32674 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32675echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32677echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32678 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32679echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32680 (
32681 cat <<\_ASBOX
32682## ----------------------------------------- ##
32683## Report this to wx-dev@lists.wxwidgets.org ##
32684## ----------------------------------------- ##
32685_ASBOX
32686 ) |
32687 sed "s/^/$as_me: WARNING: /" >&2
32688 ;;
32689esac
32690echo "$as_me:$LINENO: checking for $ac_header" >&5
32691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32692if eval "test \"\${$as_ac_Header+set}\" = set"; then
32693 echo $ECHO_N "(cached) $ECHO_C" >&6
32694else
32695 eval "$as_ac_Header=\$ac_header_preproc"
32696fi
32697echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32698echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32699
32700fi
32701if test `eval echo '${'$as_ac_Header'}'` = yes; then
32702 cat >>confdefs.h <<_ACEOF
32703#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32704_ACEOF
32705
32706fi
32707
32708done
32709
32710
32711for ac_header in X11/XKBlib.h
32712do
32713as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32714echo "$as_me:$LINENO: checking for $ac_header" >&5
32715echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32716if eval "test \"\${$as_ac_Header+set}\" = set"; then
32717 echo $ECHO_N "(cached) $ECHO_C" >&6
32718else
32719 cat >conftest.$ac_ext <<_ACEOF
32720/* confdefs.h. */
32721_ACEOF
32722cat confdefs.h >>conftest.$ac_ext
32723cat >>conftest.$ac_ext <<_ACEOF
32724/* end confdefs.h. */
32725
32726 #if HAVE_X11_XLIB_H
32727 #include <X11/Xlib.h>
32728 #endif
32729
32730
32731#include <$ac_header>
32732_ACEOF
32733rm -f conftest.$ac_objext
32734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32735 (eval $ac_compile) 2>conftest.er1
32736 ac_status=$?
32737 grep -v '^ *+' conftest.er1 >conftest.err
32738 rm -f conftest.er1
32739 cat conftest.err >&5
32740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32741 (exit $ac_status); } &&
479c790c 32742 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
32743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32744 (eval $ac_try) 2>&5
32745 ac_status=$?
32746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32747 (exit $ac_status); }; } &&
32748 { ac_try='test -s conftest.$ac_objext'
32749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32750 (eval $ac_try) 2>&5
32751 ac_status=$?
32752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32753 (exit $ac_status); }; }; then
32754 eval "$as_ac_Header=yes"
32755else
32756 echo "$as_me: failed program was:" >&5
32757sed 's/^/| /' conftest.$ac_ext >&5
32758
32759eval "$as_ac_Header=no"
32760fi
32761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32762fi
32763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32764echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32765if test `eval echo '${'$as_ac_Header'}'` = yes; then
32766 cat >>confdefs.h <<_ACEOF
32767#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32768_ACEOF
32769
32770fi
32771
32772done
32773
32774 fi
32775fi
32776
a848cd7e
SC
32777
32778
32779IODBC_C_SRC=""
32780
32781
32782if test "$TOOLKIT" != "MSW" ; then
32783
32784 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
32785
32786 if test "${ac_cv_header_sql_h+set}" = set; then
32787 echo "$as_me:$LINENO: checking for sql.h" >&5
32788echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32789if test "${ac_cv_header_sql_h+set}" = set; then
32790 echo $ECHO_N "(cached) $ECHO_C" >&6
32791fi
32792echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32793echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32794else
32795 # Is the header compilable?
32796echo "$as_me:$LINENO: checking sql.h usability" >&5
32797echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
32798cat >conftest.$ac_ext <<_ACEOF
32799/* confdefs.h. */
32800_ACEOF
32801cat confdefs.h >>conftest.$ac_ext
32802cat >>conftest.$ac_ext <<_ACEOF
32803/* end confdefs.h. */
32804$ac_includes_default
32805#include <sql.h>
32806_ACEOF
32807rm -f conftest.$ac_objext
32808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32809 (eval $ac_compile) 2>conftest.er1
a848cd7e 32810 ac_status=$?
ac1cb8d3
VS
32811 grep -v '^ *+' conftest.er1 >conftest.err
32812 rm -f conftest.er1
32813 cat conftest.err >&5
a848cd7e
SC
32814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32815 (exit $ac_status); } &&
479c790c 32816 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32818 (eval $ac_try) 2>&5
32819 ac_status=$?
32820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32821 (exit $ac_status); }; } &&
32822 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32824 (eval $ac_try) 2>&5
32825 ac_status=$?
32826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32827 (exit $ac_status); }; }; then
32828 ac_header_compiler=yes
32829else
32830 echo "$as_me: failed program was:" >&5
32831sed 's/^/| /' conftest.$ac_ext >&5
32832
32833ac_header_compiler=no
32834fi
ac1cb8d3 32835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32836echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32837echo "${ECHO_T}$ac_header_compiler" >&6
32838
32839# Is the header present?
32840echo "$as_me:$LINENO: checking sql.h presence" >&5
32841echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
32842cat >conftest.$ac_ext <<_ACEOF
32843/* confdefs.h. */
32844_ACEOF
32845cat confdefs.h >>conftest.$ac_ext
32846cat >>conftest.$ac_ext <<_ACEOF
32847/* end confdefs.h. */
32848#include <sql.h>
32849_ACEOF
32850if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32852 ac_status=$?
32853 grep -v '^ *+' conftest.er1 >conftest.err
32854 rm -f conftest.er1
32855 cat conftest.err >&5
32856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32857 (exit $ac_status); } >/dev/null; then
32858 if test -s conftest.err; then
5d7b7554
VZ
32859 ac_cpp_err=$ac_cxx_preproc_warn_flag
32860 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
32861 else
32862 ac_cpp_err=
32863 fi
32864else
32865 ac_cpp_err=yes
32866fi
32867if test -z "$ac_cpp_err"; then
32868 ac_header_preproc=yes
32869else
32870 echo "$as_me: failed program was:" >&5
32871sed 's/^/| /' conftest.$ac_ext >&5
32872
32873 ac_header_preproc=no
32874fi
32875rm -f conftest.err conftest.$ac_ext
32876echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32877echo "${ECHO_T}$ac_header_preproc" >&6
32878
32879# So? What about this header?
5d7b7554 32880case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 32881 yes:no: )
a848cd7e
SC
32882 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
32883echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32884 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
32885echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
32886 ac_header_preproc=yes
a848cd7e 32887 ;;
ac1cb8d3 32888 no:yes:* )
a848cd7e
SC
32889 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
32890echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32891 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
32892echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
32893 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
32894echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
32895 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
32896echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32897 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
32898echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32899 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
32900echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32901 (
32902 cat <<\_ASBOX
ac1cb8d3
VS
32903## ----------------------------------------- ##
32904## Report this to wx-dev@lists.wxwidgets.org ##
32905## ----------------------------------------- ##
a848cd7e
SC
32906_ASBOX
32907 ) |
32908 sed "s/^/$as_me: WARNING: /" >&2
32909 ;;
32910esac
32911echo "$as_me:$LINENO: checking for sql.h" >&5
32912echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32913if test "${ac_cv_header_sql_h+set}" = set; then
32914 echo $ECHO_N "(cached) $ECHO_C" >&6
32915else
32916 ac_cv_header_sql_h=$ac_header_preproc
32917fi
32918echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32919echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32920
32921fi
32922if test $ac_cv_header_sql_h = yes; then
32923 found_sql_h=1
32924fi
32925
32926
32927 if test "x$found_sql_h" = "x1" ; then
32928 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
32929echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
32930if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
32931 echo $ECHO_N "(cached) $ECHO_C" >&6
32932else
32933 ac_check_lib_save_LIBS=$LIBS
32934LIBS="-liodbc $LIBS"
32935cat >conftest.$ac_ext <<_ACEOF
32936/* confdefs.h. */
32937_ACEOF
32938cat confdefs.h >>conftest.$ac_ext
32939cat >>conftest.$ac_ext <<_ACEOF
32940/* end confdefs.h. */
32941
32942/* Override any gcc2 internal prototype to avoid an error. */
32943#ifdef __cplusplus
32944extern "C"
32945#endif
32946/* We use char because int might match the return type of a gcc2
32947 builtin and then its argument prototype would still apply. */
32948char SQLAllocEnv ();
32949int
32950main ()
32951{
32952SQLAllocEnv ();
32953 ;
32954 return 0;
32955}
32956_ACEOF
32957rm -f conftest.$ac_objext conftest$ac_exeext
32958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32959 (eval $ac_link) 2>conftest.er1
a848cd7e 32960 ac_status=$?
ac1cb8d3
VS
32961 grep -v '^ *+' conftest.er1 >conftest.err
32962 rm -f conftest.er1
32963 cat conftest.err >&5
a848cd7e
SC
32964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32965 (exit $ac_status); } &&
479c790c 32966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32968 (eval $ac_try) 2>&5
32969 ac_status=$?
32970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32971 (exit $ac_status); }; } &&
32972 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32974 (eval $ac_try) 2>&5
32975 ac_status=$?
32976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32977 (exit $ac_status); }; }; then
32978 ac_cv_lib_iodbc_SQLAllocEnv=yes
32979else
32980 echo "$as_me: failed program was:" >&5
32981sed 's/^/| /' conftest.$ac_ext >&5
32982
32983ac_cv_lib_iodbc_SQLAllocEnv=no
32984fi
ac1cb8d3
VS
32985rm -f conftest.err conftest.$ac_objext \
32986 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32987LIBS=$ac_check_lib_save_LIBS
32988fi
32989echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
32990echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
32991if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
32992 ODBC_LINK=" -liodbc"
32993else
32994
32995 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
32996echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
32997if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
32998 echo $ECHO_N "(cached) $ECHO_C" >&6
32999else
33000 ac_check_lib_save_LIBS=$LIBS
33001LIBS="-lunixodbc $LIBS"
33002cat >conftest.$ac_ext <<_ACEOF
33003/* confdefs.h. */
33004_ACEOF
33005cat confdefs.h >>conftest.$ac_ext
33006cat >>conftest.$ac_ext <<_ACEOF
33007/* end confdefs.h. */
33008
33009/* Override any gcc2 internal prototype to avoid an error. */
33010#ifdef __cplusplus
33011extern "C"
33012#endif
33013/* We use char because int might match the return type of a gcc2
33014 builtin and then its argument prototype would still apply. */
33015char SQLAllocEnv ();
33016int
33017main ()
33018{
33019SQLAllocEnv ();
33020 ;
33021 return 0;
33022}
33023_ACEOF
33024rm -f conftest.$ac_objext conftest$ac_exeext
33025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33026 (eval $ac_link) 2>conftest.er1
a848cd7e 33027 ac_status=$?
ac1cb8d3
VS
33028 grep -v '^ *+' conftest.er1 >conftest.err
33029 rm -f conftest.er1
33030 cat conftest.err >&5
a848cd7e
SC
33031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33032 (exit $ac_status); } &&
479c790c 33033 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33035 (eval $ac_try) 2>&5
33036 ac_status=$?
33037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33038 (exit $ac_status); }; } &&
33039 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33041 (eval $ac_try) 2>&5
33042 ac_status=$?
33043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044 (exit $ac_status); }; }; then
33045 ac_cv_lib_unixodbc_SQLAllocEnv=yes
33046else
33047 echo "$as_me: failed program was:" >&5
33048sed 's/^/| /' conftest.$ac_ext >&5
33049
33050ac_cv_lib_unixodbc_SQLAllocEnv=no
33051fi
ac1cb8d3
VS
33052rm -f conftest.err conftest.$ac_objext \
33053 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33054LIBS=$ac_check_lib_save_LIBS
33055fi
33056echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
33057echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
33058if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
33059 ODBC_LINK=" -lunixodbc"
33060else
33061
33062 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
33063echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
33064if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
33065 echo $ECHO_N "(cached) $ECHO_C" >&6
33066else
33067 ac_check_lib_save_LIBS=$LIBS
33068LIBS="-lodbc $LIBS"
33069cat >conftest.$ac_ext <<_ACEOF
33070/* confdefs.h. */
33071_ACEOF
33072cat confdefs.h >>conftest.$ac_ext
33073cat >>conftest.$ac_ext <<_ACEOF
33074/* end confdefs.h. */
33075
33076/* Override any gcc2 internal prototype to avoid an error. */
33077#ifdef __cplusplus
33078extern "C"
33079#endif
33080/* We use char because int might match the return type of a gcc2
33081 builtin and then its argument prototype would still apply. */
33082char SQLAllocEnv ();
33083int
33084main ()
33085{
33086SQLAllocEnv ();
33087 ;
33088 return 0;
33089}
33090_ACEOF
33091rm -f conftest.$ac_objext conftest$ac_exeext
33092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33093 (eval $ac_link) 2>conftest.er1
a848cd7e 33094 ac_status=$?
ac1cb8d3
VS
33095 grep -v '^ *+' conftest.er1 >conftest.err
33096 rm -f conftest.er1
33097 cat conftest.err >&5
a848cd7e
SC
33098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33099 (exit $ac_status); } &&
479c790c 33100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33102 (eval $ac_try) 2>&5
33103 ac_status=$?
33104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33105 (exit $ac_status); }; } &&
33106 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33108 (eval $ac_try) 2>&5
33109 ac_status=$?
33110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33111 (exit $ac_status); }; }; then
33112 ac_cv_lib_odbc_SQLAllocEnv=yes
33113else
33114 echo "$as_me: failed program was:" >&5
33115sed 's/^/| /' conftest.$ac_ext >&5
33116
33117ac_cv_lib_odbc_SQLAllocEnv=no
33118fi
ac1cb8d3
VS
33119rm -f conftest.err conftest.$ac_objext \
33120 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33121LIBS=$ac_check_lib_save_LIBS
33122fi
33123echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
33124echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
33125if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
33126 ODBC_LINK=" -lodbc"
33127fi
33128
33129
33130fi
33131
33132
33133fi
33134
33135 fi
33136 if test "x$ODBC_LINK" = "x" ; then
33137 if test "$wxUSE_ODBC" = "sys" ; then
33138 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
33139echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
33140 { (exit 1); exit 1; }; }
33141 else
33142 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
33143echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
33144 wxUSE_ODBC=builtin
33145 fi
33146 else
33147 wxUSE_ODBC=sys
33148 fi
33149 fi
a848cd7e 33150
2da0c077
RD
33151 if test "$wxUSE_ODBC" = "builtin" ; then
33152 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
33153#define wxUSE_BUILTIN_IODBC 1
33154_ACEOF
33155
a848cd7e
SC
33156 fi
33157fi
33158
2da0c077
RD
33159if test "$wxUSE_ODBC" != "no" ; then
33160 cat >>confdefs.h <<\_ACEOF
33161#define wxUSE_ODBC 1
33162_ACEOF
33163
33164 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
33165
5ff751d6 33166 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 33167fi
a848cd7e 33168
01cb68df 33169
a848cd7e 33170if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 33171 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
33172 echo "$as_me:$LINENO: checking for Xinerama" >&5
33173echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
33174
0ad5d837
VZ
33175 ac_find_libraries=
33176 for ac_dir in $SEARCH_LIB;
33177 do
33178 for ac_extension in a so sl dylib dll.a; do
33179 if test -f "$ac_dir/libXinerama.$ac_extension"; then
33180 ac_find_libraries=$ac_dir
33181 break 2
33182 fi
33183 done
33184 done
33185
a848cd7e
SC
33186 if test "$ac_find_libraries" != "" ; then
33187
0ad5d837 33188 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33189 ac_path_to_link=""
33190 else
0ad5d837
VZ
33191 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33192 result=$?
33193 if test $result = 0; then
33194 ac_path_to_link=""
33195 else
33196 ac_path_to_link=" -L$ac_find_libraries"
33197 fi
a848cd7e
SC
33198 fi
33199
33200 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33201 LDFLAGS="$LDFLAGS $ac_path_to_link"
33202 fi
33203 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
33204 echo "$as_me:$LINENO: result: yes" >&5
33205echo "${ECHO_T}yes" >&6
33206
33207 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
33208echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
33209
0ad5d837
VZ
33210 ac_find_libraries=
33211 for ac_dir in $SEARCH_LIB;
a848cd7e 33212 do
3eca31dc 33213 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33214 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
33215 ac_find_libraries=$ac_dir
33216 break 2
33217 fi
33218 done
33219 done
33220
33221 if test "$ac_find_libraries" != "" ; then
33222 echo "$as_me:$LINENO: result: yes" >&5
33223echo "${ECHO_T}yes" >&6
33224
33225for ac_header in X11/extensions/xf86vmode.h
33226do
33227as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33228echo "$as_me:$LINENO: checking for $ac_header" >&5
33229echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33230if eval "test \"\${$as_ac_Header+set}\" = set"; then
33231 echo $ECHO_N "(cached) $ECHO_C" >&6
33232else
33233 cat >conftest.$ac_ext <<_ACEOF
33234/* confdefs.h. */
33235_ACEOF
33236cat confdefs.h >>conftest.$ac_ext
33237cat >>conftest.$ac_ext <<_ACEOF
33238/* end confdefs.h. */
33239
33240 #if HAVE_X11_XLIB_H
33241 #include <X11/Xlib.h>
33242 #endif
33243
33244
33245#include <$ac_header>
33246_ACEOF
33247rm -f conftest.$ac_objext
33248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33249 (eval $ac_compile) 2>conftest.er1
a848cd7e 33250 ac_status=$?
ac1cb8d3
VS
33251 grep -v '^ *+' conftest.er1 >conftest.err
33252 rm -f conftest.er1
33253 cat conftest.err >&5
a848cd7e
SC
33254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33255 (exit $ac_status); } &&
479c790c 33256 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33258 (eval $ac_try) 2>&5
33259 ac_status=$?
33260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33261 (exit $ac_status); }; } &&
33262 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33264 (eval $ac_try) 2>&5
33265 ac_status=$?
33266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33267 (exit $ac_status); }; }; then
33268 eval "$as_ac_Header=yes"
33269else
33270 echo "$as_me: failed program was:" >&5
33271sed 's/^/| /' conftest.$ac_ext >&5
33272
33273eval "$as_ac_Header=no"
33274fi
ac1cb8d3 33275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33276fi
33277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33278echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33279if test `eval echo '${'$as_ac_Header'}'` = yes; then
33280 cat >>confdefs.h <<_ACEOF
33281#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33282_ACEOF
33283
33284 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
33285
33286fi
33287
33288done
33289
33290 else
33291 echo "$as_me:$LINENO: result: no" >&5
33292echo "${ECHO_T}no" >&6
33293 fi
33294
33295 else
33296 echo "$as_me:$LINENO: result: no" >&5
33297echo "${ECHO_T}no" >&6
dcc1b6ad
VS
33298 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
33299echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
33300 wxUSE_DISPLAY="no"
33301 fi
01cb68df
RG
33302 elif test "$wxUSE_MSW" = 1; then
33303
e5efa97e 33304for ac_header in ddraw.h
01cb68df
RG
33305do
33306as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 33307echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
33308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33309if eval "test \"\${$as_ac_Header+set}\" = set"; then
33310 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 33311else
5294a27e 33312 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
33313/* confdefs.h. */
33314_ACEOF
33315cat confdefs.h >>conftest.$ac_ext
33316cat >>conftest.$ac_ext <<_ACEOF
33317/* end confdefs.h. */
5294a27e
VZ
33318#include <windows.h>
33319
01cb68df
RG
33320#include <$ac_header>
33321_ACEOF
33322rm -f conftest.$ac_objext
33323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33324 (eval $ac_compile) 2>conftest.er1
01cb68df 33325 ac_status=$?
ac1cb8d3
VS
33326 grep -v '^ *+' conftest.er1 >conftest.err
33327 rm -f conftest.er1
33328 cat conftest.err >&5
01cb68df
RG
33329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33330 (exit $ac_status); } &&
479c790c 33331 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33333 (eval $ac_try) 2>&5
33334 ac_status=$?
33335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33336 (exit $ac_status); }; } &&
33337 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
33338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33339 (eval $ac_try) 2>&5
33340 ac_status=$?
33341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33342 (exit $ac_status); }; }; then
5294a27e 33343 eval "$as_ac_Header=yes"
01cb68df
RG
33344else
33345 echo "$as_me: failed program was:" >&5
33346sed 's/^/| /' conftest.$ac_ext >&5
33347
5294a27e 33348eval "$as_ac_Header=no"
01cb68df 33349fi
ac1cb8d3 33350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
33351fi
33352echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33353echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
33354if test `eval echo '${'$as_ac_Header'}'` = yes; then
33355 cat >>confdefs.h <<_ACEOF
33356#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33357_ACEOF
33358
01cb68df
RG
33359fi
33360
33361done
33362
a848cd7e
SC
33363 fi
33364fi
33365
88bbc332
RR
33366if test "$wxUSE_DETECT_SM" = "yes"; then
33367 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
33368 echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
33369echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6
33370
33371 ac_find_libraries=
33372 for ac_dir in $SEARCH_LIB;
33373 do
33374 for ac_extension in a so sl dylib dll.a; do
33375 if test -f "$ac_dir/libSM.$ac_extension"; then
33376 ac_find_libraries=$ac_dir
33377 break 2
33378 fi
33379 done
33380 done
33381
33382 if test "$ac_find_libraries" != "" ; then
33383
33384 if test "$ac_find_libraries" = "default location"; then
33385 ac_path_to_link=""
33386 else
33387 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33388 result=$?
33389 if test $result = 0; then
33390 ac_path_to_link=""
33391 else
33392 ac_path_to_link=" -L$ac_find_libraries"
33393 fi
33394 fi
33395
33396 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33397 LDFLAGS="$LDFLAGS $ac_path_to_link"
33398 fi
33399 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
33400 echo "$as_me:$LINENO: result: yes" >&5
33401echo "${ECHO_T}yes" >&6
33402 else
33403 echo "$as_me:$LINENO: result: no" >&5
33404echo "${ECHO_T}no" >&6
33405 { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
33406echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
33407 wxUSE_DETECT_SM="no"
33408 fi
33409 else
33410 wxUSE_DETECT_SM="no"
33411 fi
33412fi
33413
33414
a848cd7e
SC
33415
33416USE_OPENGL=0
33417if test "$wxUSE_OPENGL" = "yes"; then
33418 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
33419 OPENGL_LIBS="-framework OpenGL -framework AGL"
33420 elif test "$wxUSE_MSW" = 1; then
33421 OPENGL_LIBS="-lopengl32 -lglu32"
33422 else
33423
33424
33425ac_find_includes=
33426for ac_dir in $SEARCH_INCLUDE /usr/include;
33427 do
33428 if test -f "$ac_dir/GL/gl.h"; then
33429 ac_find_includes=$ac_dir
33430 break
33431 fi
33432 done
33433
33434 if test "$ac_find_includes" != "" ; then
33435 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33436echo "${ECHO_T}found in $ac_find_includes" >&6
33437
33438 if test "x$ac_find_includes" = "x/usr/include"; then
33439 ac_path_to_include=""
33440 else
33441 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
33442 result=$?
33443 if test $result = 0; then
33444 ac_path_to_include=""
33445 else
33446 ac_path_to_include=" -I$ac_find_includes"
33447 fi
33448 fi
33449
c92ad099 33450 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
33451 fi
33452
33453 if test "${ac_cv_header_GL_gl_h+set}" = set; then
33454 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33455echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
33456if test "${ac_cv_header_GL_gl_h+set}" = set; then
33457 echo $ECHO_N "(cached) $ECHO_C" >&6
33458fi
33459echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33460echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
33461else
33462 # Is the header compilable?
33463echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
33464echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
33465cat >conftest.$ac_ext <<_ACEOF
33466/* confdefs.h. */
33467_ACEOF
33468cat confdefs.h >>conftest.$ac_ext
33469cat >>conftest.$ac_ext <<_ACEOF
33470/* end confdefs.h. */
33471$ac_includes_default
33472#include <GL/gl.h>
33473_ACEOF
33474rm -f conftest.$ac_objext
33475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33476 (eval $ac_compile) 2>conftest.er1
a848cd7e 33477 ac_status=$?
ac1cb8d3
VS
33478 grep -v '^ *+' conftest.er1 >conftest.err
33479 rm -f conftest.er1
33480 cat conftest.err >&5
a848cd7e
SC
33481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33482 (exit $ac_status); } &&
479c790c 33483 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33485 (eval $ac_try) 2>&5
33486 ac_status=$?
33487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33488 (exit $ac_status); }; } &&
33489 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33491 (eval $ac_try) 2>&5
33492 ac_status=$?
33493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33494 (exit $ac_status); }; }; then
33495 ac_header_compiler=yes
33496else
33497 echo "$as_me: failed program was:" >&5
33498sed 's/^/| /' conftest.$ac_ext >&5
33499
33500ac_header_compiler=no
33501fi
ac1cb8d3 33502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33503echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33504echo "${ECHO_T}$ac_header_compiler" >&6
33505
33506# Is the header present?
33507echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
33508echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
33509cat >conftest.$ac_ext <<_ACEOF
33510/* confdefs.h. */
33511_ACEOF
33512cat confdefs.h >>conftest.$ac_ext
33513cat >>conftest.$ac_ext <<_ACEOF
33514/* end confdefs.h. */
33515#include <GL/gl.h>
33516_ACEOF
33517if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33519 ac_status=$?
33520 grep -v '^ *+' conftest.er1 >conftest.err
33521 rm -f conftest.er1
33522 cat conftest.err >&5
33523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33524 (exit $ac_status); } >/dev/null; then
33525 if test -s conftest.err; then
5d7b7554
VZ
33526 ac_cpp_err=$ac_cxx_preproc_warn_flag
33527 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
33528 else
33529 ac_cpp_err=
33530 fi
33531else
33532 ac_cpp_err=yes
33533fi
33534if test -z "$ac_cpp_err"; then
33535 ac_header_preproc=yes
33536else
33537 echo "$as_me: failed program was:" >&5
33538sed 's/^/| /' conftest.$ac_ext >&5
33539
33540 ac_header_preproc=no
33541fi
33542rm -f conftest.err conftest.$ac_ext
33543echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33544echo "${ECHO_T}$ac_header_preproc" >&6
33545
33546# So? What about this header?
5d7b7554 33547case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 33548 yes:no: )
a848cd7e
SC
33549 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33550echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33551 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
33552echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
33553 ac_header_preproc=yes
a848cd7e 33554 ;;
ac1cb8d3 33555 no:yes:* )
a848cd7e
SC
33556 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
33557echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33558 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
33559echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
33560 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
33561echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
33562 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
33563echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33564 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
33565echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33566 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
33567echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33568 (
33569 cat <<\_ASBOX
ac1cb8d3
VS
33570## ----------------------------------------- ##
33571## Report this to wx-dev@lists.wxwidgets.org ##
33572## ----------------------------------------- ##
a848cd7e
SC
33573_ASBOX
33574 ) |
33575 sed "s/^/$as_me: WARNING: /" >&2
33576 ;;
33577esac
33578echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33579echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
33580if test "${ac_cv_header_GL_gl_h+set}" = set; then
33581 echo $ECHO_N "(cached) $ECHO_C" >&6
33582else
33583 ac_cv_header_GL_gl_h=$ac_header_preproc
33584fi
33585echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33586echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
33587
33588fi
33589if test $ac_cv_header_GL_gl_h = yes; then
33590
33591 found_gl=0
33592
33593 echo "$as_me:$LINENO: checking for -lGL" >&5
33594echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
33595
0ad5d837
VZ
33596 ac_find_libraries=
33597 for ac_dir in $SEARCH_LIB;
a848cd7e 33598 do
3eca31dc 33599 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33600 if test -f "$ac_dir/libGL.$ac_extension"; then
33601 ac_find_libraries=$ac_dir
33602 break 2
33603 fi
33604 done
33605 done
33606
33607 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
33608 echo "$as_me:$LINENO: result: yes" >&5
33609echo "${ECHO_T}yes" >&6
33610
a848cd7e 33611
0ad5d837 33612 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33613 ac_path_to_link=""
33614 else
0ad5d837
VZ
33615 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33616 result=$?
33617 if test $result = 0; then
33618 ac_path_to_link=""
33619 else
33620 ac_path_to_link=" -L$ac_find_libraries"
33621 fi
a848cd7e
SC
33622 fi
33623
33624 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33625 LDFLAGS_GL="$ac_path_to_link"
33626 fi
33627
69120ee4
VZ
33628 echo "$as_me:$LINENO: checking for -lGLU" >&5
33629echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 33630
0ad5d837
VZ
33631 ac_find_libraries=
33632 for ac_dir in $SEARCH_LIB;
33633 do
33634 for ac_extension in a so sl dylib dll.a; do
33635 if test -f "$ac_dir/libGLU.$ac_extension"; then
33636 ac_find_libraries=$ac_dir
33637 break 2
33638 fi
33639 done
33640 done
33641
a848cd7e
SC
33642 if test "$ac_find_libraries" != "" ; then
33643
0ad5d837 33644 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33645 ac_path_to_link=""
33646 else
0ad5d837
VZ
33647 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33648 result=$?
33649 if test $result = 0; then
33650 ac_path_to_link=""
33651 else
33652 ac_path_to_link=" -L$ac_find_libraries"
33653 fi
a848cd7e
SC
33654 fi
33655
33656 if test "$ac_path_to_link" != " -L/usr/lib" -a \
33657 "$ac_path_to_link" != "$LDFLAGS_GL"; then
33658 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33659 fi
33660
33661 found_gl=1
33662 OPENGL_LIBS="-lGL -lGLU"
33663 echo "$as_me:$LINENO: result: yes" >&5
33664echo "${ECHO_T}yes" >&6
69120ee4
VZ
33665 else
33666 echo "$as_me:$LINENO: result: no" >&5
33667echo "${ECHO_T}no" >&6
a848cd7e 33668 fi
69120ee4
VZ
33669 else
33670 echo "$as_me:$LINENO: result: no" >&5
33671echo "${ECHO_T}no" >&6
a848cd7e
SC
33672 fi
33673
33674 if test "$found_gl" != 1; then
a848cd7e
SC
33675 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33676echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
33677
0ad5d837
VZ
33678 ac_find_libraries=
33679 for ac_dir in $SEARCH_LIB;
a848cd7e 33680 do
3eca31dc 33681 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33682 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33683 ac_find_libraries=$ac_dir
33684 break 2
33685 fi
33686 done
33687 done
33688
33689 if test "$ac_find_libraries" != "" ; then
33690
0ad5d837 33691 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33692 ac_path_to_link=""
33693 else
0ad5d837
VZ
33694 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33695 result=$?
33696 if test $result = 0; then
33697 ac_path_to_link=""
33698 else
33699 ac_path_to_link=" -L$ac_find_libraries"
33700 fi
a848cd7e
SC
33701 fi
33702
33703 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33704 OPENGL_LIBS="-lMesaGL -lMesaGLU"
33705 echo "$as_me:$LINENO: result: yes" >&5
33706echo "${ECHO_T}yes" >&6
33707 else
33708 echo "$as_me:$LINENO: result: no" >&5
33709echo "${ECHO_T}no" >&6
33710 fi
33711 fi
33712
33713fi
33714
33715
33716
33717 if test "x$OPENGL_LIBS" = "x"; then
33718 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33719echo "$as_me: error: OpenGL libraries not available" >&2;}
33720 { (exit 1); exit 1; }; }
33721 fi
33722 fi
33723
33724 if test "$wxUSE_OPENGL" = "yes"; then
33725 USE_OPENGL=1
33726 cat >>confdefs.h <<\_ACEOF
33727#define wxUSE_OPENGL 1
33728_ACEOF
33729
33730 cat >>confdefs.h <<\_ACEOF
33731#define wxUSE_GLCANVAS 1
33732_ACEOF
33733
33734 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33735 fi
33736fi
33737
a848cd7e
SC
33738
33739if test -n "$TOOLKIT" ; then
33740 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33741fi
33742
a848cd7e
SC
33743
33744
33745if test "$wxUSE_SHARED" = "yes"; then
33746 case "${host}" in
33747 *-pc-msdosdjgpp )
33748 wxUSE_SHARED=no
33749 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33750echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33751 ;;
33752 esac
33753fi
33754
a848cd7e 33755if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
33756
33757
33758 found_versioning=no
33759
33760
33761 if test $found_versioning = no ; then
33762 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33763echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
33764if test "${wx_cv_version_script+set}" = set; then
33765 echo $ECHO_N "(cached) $ECHO_C" >&6
33766else
33767
33768 echo "VER_1 { *; };" >conftest.sym
33769 echo "int main() { return 0; }" >conftest.cpp
33770
33771 if { ac_try='
33772 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33773 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33775 (eval $ac_try) 2>&5
33776 ac_status=$?
33777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33778 (exit $ac_status); }; } ; then
33779 if test -s conftest.stderr ; then
33780 wx_cv_version_script=no
33781 else
33782 wx_cv_version_script=yes
33783 fi
33784 else
33785 wx_cv_version_script=no
33786 fi
e5d4b470
MW
33787
33788 if test $wx_cv_version_script = yes
33789 then
33790 echo "struct B { virtual ~B() { } }; \
33791 struct D : public B { }; \
33792 void F() { D d; }" > conftest.cpp
33793
33794 if { ac_try='
33795 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33796 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33798 (eval $ac_try) 2>&5
33799 ac_status=$?
33800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801 (exit $ac_status); }; } &&
33802 { ac_try='
33803 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33804 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33806 (eval $ac_try) 2>&5
33807 ac_status=$?
33808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33809 (exit $ac_status); }; }
33810 then
33811 if { ac_try='
33812 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33813 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33815 (eval $ac_try) 2>&5
33816 ac_status=$?
33817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33818 (exit $ac_status); }; }
33819 then
33820 wx_cv_version_script=yes
33821 else
33822 wx_cv_version_script=no
33823 fi
33824 fi
33825 fi
33826
a848cd7e 33827 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 33828 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
33829
33830fi
33831echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33832echo "${ECHO_T}$wx_cv_version_script" >&6
33833 if test $wx_cv_version_script = yes ; then
33834 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
33835 fi
33836 fi
33837
33838
33839 case "${host}" in
33840 *-*-linux* | *-*-gnu* )
33841 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 33842 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 33843 ;;
a848cd7e
SC
33844
33845 *-*-solaris2* )
33846 if test "$GCC" = yes ; then
c92ad099 33847 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
33848
33849 saveLdflags="$LDFLAGS"
33850 LDFLAGS="$saveLdflags -Wl,-rpath,/"
33851 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33852echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
33853 cat >conftest.$ac_ext <<_ACEOF
33854/* confdefs.h. */
33855_ACEOF
33856cat confdefs.h >>conftest.$ac_ext
33857cat >>conftest.$ac_ext <<_ACEOF
33858/* end confdefs.h. */
33859
33860int
33861main ()
33862{
33863
33864 ;
33865 return 0;
33866}
33867_ACEOF
33868rm -f conftest.$ac_objext conftest$ac_exeext
33869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33870 (eval $ac_link) 2>conftest.er1
a848cd7e 33871 ac_status=$?
ac1cb8d3
VS
33872 grep -v '^ *+' conftest.er1 >conftest.err
33873 rm -f conftest.er1
33874 cat conftest.err >&5
a848cd7e
SC
33875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33876 (exit $ac_status); } &&
479c790c 33877 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33879 (eval $ac_try) 2>&5
33880 ac_status=$?
33881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33882 (exit $ac_status); }; } &&
33883 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33885 (eval $ac_try) 2>&5
33886 ac_status=$?
33887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33888 (exit $ac_status); }; }; then
33889
33890 echo "$as_me:$LINENO: result: yes" >&5
33891echo "${ECHO_T}yes" >&6
33892 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 33893 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
33894
33895else
33896 echo "$as_me: failed program was:" >&5
33897sed 's/^/| /' conftest.$ac_ext >&5
33898
33899
33900 echo "$as_me:$LINENO: result: no" >&5
33901echo "${ECHO_T}no" >&6
33902 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33903echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
33904 LDFLAGS="$saveLdflags -Wl,-R,/"
33905 cat >conftest.$ac_ext <<_ACEOF
33906/* confdefs.h. */
33907_ACEOF
33908cat confdefs.h >>conftest.$ac_ext
33909cat >>conftest.$ac_ext <<_ACEOF
33910/* end confdefs.h. */
33911
33912int
33913main ()
33914{
33915
33916 ;
33917 return 0;
33918}
33919_ACEOF
33920rm -f conftest.$ac_objext conftest$ac_exeext
33921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33922 (eval $ac_link) 2>conftest.er1
a848cd7e 33923 ac_status=$?
ac1cb8d3
VS
33924 grep -v '^ *+' conftest.er1 >conftest.err
33925 rm -f conftest.er1
33926 cat conftest.err >&5
a848cd7e
SC
33927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33928 (exit $ac_status); } &&
479c790c 33929 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33931 (eval $ac_try) 2>&5
33932 ac_status=$?
33933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33934 (exit $ac_status); }; } &&
33935 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33937 (eval $ac_try) 2>&5
33938 ac_status=$?
33939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33940 (exit $ac_status); }; }; then
33941
ffa0583f 33942 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 33943echo "${ECHO_T}yes" >&6
ffa0583f
RL
33944 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
33945 WXCONFIG_RPATH="-Wl,-R,\$libdir"
33946
a848cd7e
SC
33947else
33948 echo "$as_me: failed program was:" >&5
33949sed 's/^/| /' conftest.$ac_ext >&5
33950
33951
33952 echo "$as_me:$LINENO: result: no" >&5
33953echo "${ECHO_T}no" >&6
33954
33955fi
ac1cb8d3
VS
33956rm -f conftest.err conftest.$ac_objext \
33957 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33958
33959fi
ac1cb8d3
VS
33960rm -f conftest.err conftest.$ac_objext \
33961 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33962 LDFLAGS="$saveLdflags"
33963 else
a848cd7e 33964 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 33965 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
33966 fi
33967 ;;
33968
cfda0ea8 33969 *-*-darwin* )
0caebc27
MW
33970 install_name_tool=`which install_name_tool`
33971 if test "$install_name_tool" -a -x "$install_name_tool"; then
33972 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
33973 cat <<EOF >change-install-names
a848cd7e
SC
33974#!/bin/sh
33975libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33976inst_cmd="install_name_tool "
33977for i in \${libnames} ; do
33978 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
33979done
33980\${inst_cmd} \${3}
33981EOF
0caebc27
MW
33982 chmod +x change-install-names
33983 fi
a848cd7e
SC
33984 ;;
33985
33986 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
33987 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33988 ;;
a848cd7e 33989
81f90336
MW
33990 *-*-hpux* )
33991 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
33992 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 33993 ;;
81f90336 33994
a848cd7e 33995 esac
ceec2216 33996
ffa0583f
RL
33997 if test $wxUSE_RPATH = "no"; then
33998 SAMPLES_RPATH_FLAG=''
33999 SAMPLES_RPATH_POSTLINK=''
34000 WXCONFIG_RPATH=''
34001 fi
34002
34003 SHARED=1
34004
34005else
34006
ceec2216
RL
34007 config_linkage_component="-static"
34008 SHARED=0
ffa0583f 34009
ceec2216 34010fi
a848cd7e 34011
a848cd7e 34012
ceec2216
RL
34013UNICODE=0
34014lib_unicode_suffix=
34015WX_CHARTYPE="ansi"
34016if test "$wxUSE_UNICODE" = "yes"; then
34017 lib_unicode_suffix=u
34018 WX_CHARTYPE="unicode"
34019 UNICODE=1
a848cd7e
SC
34020fi
34021
ceec2216
RL
34022lib_debug_suffix=
34023WX_DEBUGTYPE="release"
34024DEBUG_FLAG=0
34025if test "$wxUSE_DEBUG_FLAG" = "yes"; then
34026 lib_debug_suffix=d
34027 WX_DEBUGTYPE="debug"
34028 DEBUG_FLAG=1
34029fi
a848cd7e 34030
ceec2216
RL
34031WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
34032WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 34033
ceec2216
RL
34034DEBUG_INFO=0
34035if test "$wxUSE_DEBUG_INFO" = "yes"; then
34036 DEBUG_INFO=1
34037fi
a848cd7e 34038
ceec2216 34039WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 34040
ceec2216 34041TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 34042
ceec2216 34043TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 34044
ceec2216
RL
34045if test "$cross_compiling" = "yes"; then
34046 HOST_SUFFIX="-$host_alias"
34047 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
34048 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
34049fi
34050
dd21ced8 34051WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
34052if test "${TOOLKIT_DIR}" = "os2"; then
34053 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
34054else
34055 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
34056fi
ceec2216
RL
34057
34058
34059
1d1af5ea
DE
34060if test "$wxUSE_COCOA" = 1; then
34061
34062
34063 ac_ext=c
34064ac_cpp='$CPP $CPPFLAGS'
34065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34067ac_compiler_gnu=$ac_cv_c_compiler_gnu
34068
34069ac_ext=m
34070
34071 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
34072echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
34073 cat >conftest.$ac_ext <<_ACEOF
34074/* confdefs.h. */
34075_ACEOF
34076cat confdefs.h >>conftest.$ac_ext
34077cat >>conftest.$ac_ext <<_ACEOF
34078/* end confdefs.h. */
34079#include <AppKit/NSEvent.h>
34080#include <CoreFoundation/CoreFoundation.h>
34081
34082int
34083main ()
34084{
34085
34086 ;
34087 return 0;
34088}
34089_ACEOF
34090rm -f conftest.$ac_objext
34091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34092 (eval $ac_compile) 2>conftest.er1
34093 ac_status=$?
34094 grep -v '^ *+' conftest.er1 >conftest.err
34095 rm -f conftest.er1
34096 cat conftest.err >&5
34097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34098 (exit $ac_status); } &&
479c790c 34099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
34100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34101 (eval $ac_try) 2>&5
34102 ac_status=$?
34103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34104 (exit $ac_status); }; } &&
34105 { ac_try='test -s conftest.$ac_objext'
34106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34107 (eval $ac_try) 2>&5
34108 ac_status=$?
34109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34110 (exit $ac_status); }; }; then
34111 echo "$as_me:$LINENO: result: no" >&5
34112echo "${ECHO_T}no" >&6
34113else
34114 echo "$as_me: failed program was:" >&5
34115sed 's/^/| /' conftest.$ac_ext >&5
34116
34117echo "$as_me:$LINENO: result: yes" >&5
34118echo "${ECHO_T}yes" >&6
34119 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
34120echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
34121 cat >conftest.$ac_ext <<_ACEOF
34122/* confdefs.h. */
34123_ACEOF
34124cat confdefs.h >>conftest.$ac_ext
34125cat >>conftest.$ac_ext <<_ACEOF
34126/* end confdefs.h. */
34127#define __Point__ 1
34128#include <AppKit/NSEvent.h>
34129#include <CoreFoundation/CoreFoundation.h>
34130
34131int
34132main ()
34133{
34134
34135 ;
34136 return 0;
34137}
34138_ACEOF
34139rm -f conftest.$ac_objext
34140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34141 (eval $ac_compile) 2>conftest.er1
34142 ac_status=$?
34143 grep -v '^ *+' conftest.er1 >conftest.err
34144 rm -f conftest.er1
34145 cat conftest.err >&5
34146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34147 (exit $ac_status); } &&
479c790c 34148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
34149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34150 (eval $ac_try) 2>&5
34151 ac_status=$?
34152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34153 (exit $ac_status); }; } &&
34154 { ac_try='test -s conftest.$ac_objext'
34155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34156 (eval $ac_try) 2>&5
34157 ac_status=$?
34158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34159 (exit $ac_status); }; }; then
34160 echo "$as_me:$LINENO: result: yes" >&5
34161echo "${ECHO_T}yes" >&6
34162 cat >>confdefs.h <<\_ACEOF
34163#define __Point__ 1
34164_ACEOF
34165
34166
34167else
34168 echo "$as_me: failed program was:" >&5
34169sed 's/^/| /' conftest.$ac_ext >&5
34170
34171{ { echo "$as_me:$LINENO: error: no
34172See \`config.log' for more details." >&5
34173echo "$as_me: error: no
34174See \`config.log' for more details." >&2;}
34175 { (exit 1); exit 1; }; }
34176
34177fi
34178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34179
34180fi
34181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
34182 ac_ext=cc
34183ac_cpp='$CXXCPP $CPPFLAGS'
34184ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34185ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34186ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1d1af5ea
DE
34187
34188fi
34189
a848cd7e 34190if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
34191 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
34192 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 34193
a848cd7e 34194 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
34195
34196 # Extract the first word of "Rez", so it can be a program name with args.
34197set dummy Rez; ac_word=$2
34198echo "$as_me:$LINENO: checking for $ac_word" >&5
34199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 34200if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
34201 echo $ECHO_N "(cached) $ECHO_C" >&6
34202else
8ced02f6
DE
34203 if test -n "$REZ"; then
34204 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
34205else
34206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34207for as_dir in $PATH
34208do
34209 IFS=$as_save_IFS
34210 test -z "$as_dir" && as_dir=.
34211 for ac_exec_ext in '' $ac_executable_extensions; do
34212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 34213 ac_cv_prog_REZ="Rez"
a848cd7e
SC
34214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34215 break 2
34216 fi
34217done
34218done
34219
8ced02f6 34220 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
34221fi
34222fi
8ced02f6
DE
34223REZ=$ac_cv_prog_REZ
34224if test -n "$REZ"; then
34225 echo "$as_me:$LINENO: result: $REZ" >&5
34226echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
34227else
34228 echo "$as_me:$LINENO: result: no" >&5
34229echo "${ECHO_T}no" >&6
34230fi
34231
34232 # Extract the first word of "DeRez", so it can be a program name with args.
34233set dummy DeRez; ac_word=$2
34234echo "$as_me:$LINENO: checking for $ac_word" >&5
34235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34236if test "${ac_cv_prog_DEREZ+set}" = set; then
34237 echo $ECHO_N "(cached) $ECHO_C" >&6
34238else
34239 if test -n "$DEREZ"; then
34240 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
34241else
34242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34243for as_dir in $PATH
34244do
34245 IFS=$as_save_IFS
34246 test -z "$as_dir" && as_dir=.
34247 for ac_exec_ext in '' $ac_executable_extensions; do
34248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34249 ac_cv_prog_DEREZ="DeRez"
34250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34251 break 2
34252 fi
34253done
34254done
34255
34256 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
34257fi
34258fi
34259DEREZ=$ac_cv_prog_DEREZ
34260if test -n "$DEREZ"; then
34261 echo "$as_me:$LINENO: result: $DEREZ" >&5
34262echo "${ECHO_T}$DEREZ" >&6
34263else
34264 echo "$as_me:$LINENO: result: no" >&5
34265echo "${ECHO_T}no" >&6
34266fi
34267
34268 # Extract the first word of "SetFile", so it can be a program name with args.
34269set dummy SetFile; ac_word=$2
34270echo "$as_me:$LINENO: checking for $ac_word" >&5
34271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34272if test "${ac_cv_prog_SETFILE+set}" = set; then
34273 echo $ECHO_N "(cached) $ECHO_C" >&6
34274else
34275 if test -n "$SETFILE"; then
34276 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
34277else
34278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34279for as_dir in $PATH
34280do
34281 IFS=$as_save_IFS
34282 test -z "$as_dir" && as_dir=.
34283 for ac_exec_ext in '' $ac_executable_extensions; do
34284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34285 ac_cv_prog_SETFILE="SetFile"
34286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34287 break 2
34288 fi
34289done
34290done
34291
34292 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
34293fi
34294fi
34295SETFILE=$ac_cv_prog_SETFILE
34296if test -n "$SETFILE"; then
34297 echo "$as_me:$LINENO: result: $SETFILE" >&5
34298echo "${ECHO_T}$SETFILE" >&6
34299else
34300 echo "$as_me:$LINENO: result: no" >&5
34301echo "${ECHO_T}no" >&6
34302fi
34303
34304
34305 MACSETFILE="\$(SETFILE)"
34306
34307 if test "$wxUSE_MAC" = 1; then
8ced02f6 34308 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
34309 RESCOMP="$REZ"
34310 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 34311 else
004ee6da
RL
34312 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
34313 RESCOMP="echo -n \| $REZ"
34314 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 34315 fi
004ee6da 34316
a848cd7e 34317else
ffa0583f 34318 MACSETFILE="@true"
a848cd7e 34319
8ced02f6 34320 if test "$wxUSE_PM" = 1; then
004ee6da
RL
34321 RESCOMP="emxbind"
34322 WXCONFIG_RESFLAGS="-ep"
34323
34324 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 34325 else
8ced02f6 34326 POSTLINK_COMMAND="@true"
a848cd7e 34327 fi
004ee6da 34328
a848cd7e
SC
34329fi
34330
34331
34332
34333echo "$as_me:$LINENO: checking for mode_t" >&5
34334echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
34335if test "${ac_cv_type_mode_t+set}" = set; then
34336 echo $ECHO_N "(cached) $ECHO_C" >&6
34337else
34338 cat >conftest.$ac_ext <<_ACEOF
34339/* confdefs.h. */
34340_ACEOF
34341cat confdefs.h >>conftest.$ac_ext
34342cat >>conftest.$ac_ext <<_ACEOF
34343/* end confdefs.h. */
34344$ac_includes_default
34345int
34346main ()
34347{
34348if ((mode_t *) 0)
34349 return 0;
34350if (sizeof (mode_t))
34351 return 0;
34352 ;
34353 return 0;
34354}
34355_ACEOF
34356rm -f conftest.$ac_objext
34357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34358 (eval $ac_compile) 2>conftest.er1
a848cd7e 34359 ac_status=$?
ac1cb8d3
VS
34360 grep -v '^ *+' conftest.er1 >conftest.err
34361 rm -f conftest.er1
34362 cat conftest.err >&5
a848cd7e
SC
34363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34364 (exit $ac_status); } &&
479c790c 34365 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34367 (eval $ac_try) 2>&5
34368 ac_status=$?
34369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34370 (exit $ac_status); }; } &&
34371 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34373 (eval $ac_try) 2>&5
34374 ac_status=$?
34375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34376 (exit $ac_status); }; }; then
34377 ac_cv_type_mode_t=yes
34378else
34379 echo "$as_me: failed program was:" >&5
34380sed 's/^/| /' conftest.$ac_ext >&5
34381
34382ac_cv_type_mode_t=no
34383fi
ac1cb8d3 34384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34385fi
34386echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34387echo "${ECHO_T}$ac_cv_type_mode_t" >&6
34388if test $ac_cv_type_mode_t = yes; then
34389 :
34390else
34391
34392cat >>confdefs.h <<_ACEOF
34393#define mode_t int
34394_ACEOF
34395
34396fi
34397
34398echo "$as_me:$LINENO: checking for off_t" >&5
34399echo $ECHO_N "checking for off_t... $ECHO_C" >&6
34400if test "${ac_cv_type_off_t+set}" = set; then
34401 echo $ECHO_N "(cached) $ECHO_C" >&6
34402else
34403 cat >conftest.$ac_ext <<_ACEOF
34404/* confdefs.h. */
34405_ACEOF
34406cat confdefs.h >>conftest.$ac_ext
34407cat >>conftest.$ac_ext <<_ACEOF
34408/* end confdefs.h. */
34409$ac_includes_default
34410int
34411main ()
34412{
34413if ((off_t *) 0)
34414 return 0;
34415if (sizeof (off_t))
34416 return 0;
34417 ;
34418 return 0;
34419}
34420_ACEOF
34421rm -f conftest.$ac_objext
34422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34423 (eval $ac_compile) 2>conftest.er1
a848cd7e 34424 ac_status=$?
ac1cb8d3
VS
34425 grep -v '^ *+' conftest.er1 >conftest.err
34426 rm -f conftest.er1
34427 cat conftest.err >&5
a848cd7e
SC
34428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34429 (exit $ac_status); } &&
479c790c 34430 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34432 (eval $ac_try) 2>&5
34433 ac_status=$?
34434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34435 (exit $ac_status); }; } &&
34436 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34438 (eval $ac_try) 2>&5
34439 ac_status=$?
34440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34441 (exit $ac_status); }; }; then
34442 ac_cv_type_off_t=yes
34443else
34444 echo "$as_me: failed program was:" >&5
34445sed 's/^/| /' conftest.$ac_ext >&5
34446
34447ac_cv_type_off_t=no
34448fi
ac1cb8d3 34449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34450fi
34451echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34452echo "${ECHO_T}$ac_cv_type_off_t" >&6
34453if test $ac_cv_type_off_t = yes; then
34454 :
34455else
34456
34457cat >>confdefs.h <<_ACEOF
34458#define off_t long
34459_ACEOF
34460
34461fi
34462
34463echo "$as_me:$LINENO: checking for pid_t" >&5
34464echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
34465if test "${ac_cv_type_pid_t+set}" = set; then
34466 echo $ECHO_N "(cached) $ECHO_C" >&6
34467else
34468 cat >conftest.$ac_ext <<_ACEOF
34469/* confdefs.h. */
34470_ACEOF
34471cat confdefs.h >>conftest.$ac_ext
34472cat >>conftest.$ac_ext <<_ACEOF
34473/* end confdefs.h. */
34474$ac_includes_default
34475int
34476main ()
34477{
34478if ((pid_t *) 0)
34479 return 0;
34480if (sizeof (pid_t))
34481 return 0;
34482 ;
34483 return 0;
34484}
34485_ACEOF
34486rm -f conftest.$ac_objext
34487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34488 (eval $ac_compile) 2>conftest.er1
a848cd7e 34489 ac_status=$?
ac1cb8d3
VS
34490 grep -v '^ *+' conftest.er1 >conftest.err
34491 rm -f conftest.er1
34492 cat conftest.err >&5
a848cd7e
SC
34493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34494 (exit $ac_status); } &&
479c790c 34495 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34497 (eval $ac_try) 2>&5
34498 ac_status=$?
34499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34500 (exit $ac_status); }; } &&
34501 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34503 (eval $ac_try) 2>&5
34504 ac_status=$?
34505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34506 (exit $ac_status); }; }; then
34507 ac_cv_type_pid_t=yes
34508else
34509 echo "$as_me: failed program was:" >&5
34510sed 's/^/| /' conftest.$ac_ext >&5
34511
34512ac_cv_type_pid_t=no
34513fi
ac1cb8d3 34514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34515fi
34516echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34517echo "${ECHO_T}$ac_cv_type_pid_t" >&6
34518if test $ac_cv_type_pid_t = yes; then
34519 :
34520else
34521
34522cat >>confdefs.h <<_ACEOF
34523#define pid_t int
34524_ACEOF
34525
34526fi
34527
34528echo "$as_me:$LINENO: checking for size_t" >&5
34529echo $ECHO_N "checking for size_t... $ECHO_C" >&6
34530if test "${ac_cv_type_size_t+set}" = set; then
34531 echo $ECHO_N "(cached) $ECHO_C" >&6
34532else
34533 cat >conftest.$ac_ext <<_ACEOF
34534/* confdefs.h. */
34535_ACEOF
34536cat confdefs.h >>conftest.$ac_ext
34537cat >>conftest.$ac_ext <<_ACEOF
34538/* end confdefs.h. */
34539$ac_includes_default
34540int
34541main ()
34542{
34543if ((size_t *) 0)
34544 return 0;
34545if (sizeof (size_t))
34546 return 0;
34547 ;
34548 return 0;
34549}
34550_ACEOF
34551rm -f conftest.$ac_objext
34552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34553 (eval $ac_compile) 2>conftest.er1
a848cd7e 34554 ac_status=$?
ac1cb8d3
VS
34555 grep -v '^ *+' conftest.er1 >conftest.err
34556 rm -f conftest.er1
34557 cat conftest.err >&5
a848cd7e
SC
34558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34559 (exit $ac_status); } &&
479c790c 34560 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34562 (eval $ac_try) 2>&5
34563 ac_status=$?
34564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34565 (exit $ac_status); }; } &&
34566 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34568 (eval $ac_try) 2>&5
34569 ac_status=$?
34570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34571 (exit $ac_status); }; }; then
34572 ac_cv_type_size_t=yes
34573else
34574 echo "$as_me: failed program was:" >&5
34575sed 's/^/| /' conftest.$ac_ext >&5
34576
34577ac_cv_type_size_t=no
34578fi
ac1cb8d3 34579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34580fi
34581echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34582echo "${ECHO_T}$ac_cv_type_size_t" >&6
34583if test $ac_cv_type_size_t = yes; then
34584 :
34585else
34586
34587cat >>confdefs.h <<_ACEOF
34588#define size_t unsigned
34589_ACEOF
34590
34591fi
34592
34593echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34594echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34595if test "${ac_cv_type_uid_t+set}" = set; then
34596 echo $ECHO_N "(cached) $ECHO_C" >&6
34597else
34598 cat >conftest.$ac_ext <<_ACEOF
34599/* confdefs.h. */
34600_ACEOF
34601cat confdefs.h >>conftest.$ac_ext
34602cat >>conftest.$ac_ext <<_ACEOF
34603/* end confdefs.h. */
34604#include <sys/types.h>
34605
34606_ACEOF
34607if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34608 $EGREP "uid_t" >/dev/null 2>&1; then
34609 ac_cv_type_uid_t=yes
34610else
34611 ac_cv_type_uid_t=no
34612fi
34613rm -f conftest*
34614
34615fi
34616echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34617echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34618if test $ac_cv_type_uid_t = no; then
34619
34620cat >>confdefs.h <<\_ACEOF
34621#define uid_t int
34622_ACEOF
34623
34624
34625cat >>confdefs.h <<\_ACEOF
34626#define gid_t int
34627_ACEOF
34628
34629fi
34630
34631
d51253e8
RL
34632echo "$as_me:$LINENO: checking for ssize_t" >&5
34633echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
34634if test "${ac_cv_type_ssize_t+set}" = set; then
34635 echo $ECHO_N "(cached) $ECHO_C" >&6
34636else
34637 cat >conftest.$ac_ext <<_ACEOF
34638/* confdefs.h. */
34639_ACEOF
34640cat confdefs.h >>conftest.$ac_ext
34641cat >>conftest.$ac_ext <<_ACEOF
34642/* end confdefs.h. */
34643$ac_includes_default
34644int
34645main ()
34646{
34647if ((ssize_t *) 0)
34648 return 0;
34649if (sizeof (ssize_t))
34650 return 0;
34651 ;
34652 return 0;
34653}
34654_ACEOF
34655rm -f conftest.$ac_objext
34656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34657 (eval $ac_compile) 2>conftest.er1
34658 ac_status=$?
34659 grep -v '^ *+' conftest.er1 >conftest.err
34660 rm -f conftest.er1
34661 cat conftest.err >&5
34662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34663 (exit $ac_status); } &&
479c790c 34664 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d51253e8
RL
34665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34666 (eval $ac_try) 2>&5
34667 ac_status=$?
34668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34669 (exit $ac_status); }; } &&
34670 { ac_try='test -s conftest.$ac_objext'
34671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34672 (eval $ac_try) 2>&5
34673 ac_status=$?
34674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34675 (exit $ac_status); }; }; then
34676 ac_cv_type_ssize_t=yes
34677else
34678 echo "$as_me: failed program was:" >&5
34679sed 's/^/| /' conftest.$ac_ext >&5
34680
34681ac_cv_type_ssize_t=no
34682fi
34683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34684fi
34685echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34686echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
34687if test $ac_cv_type_ssize_t = yes; then
34688
34689cat >>confdefs.h <<_ACEOF
34690#define HAVE_SSIZE_T 1
34691_ACEOF
34692
34693
34694fi
34695
34696
a848cd7e
SC
34697echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34698echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
34699if test "${wx_cv_size_t_is_uint+set}" = set; then
34700 echo $ECHO_N "(cached) $ECHO_C" >&6
34701else
34702
34703 cat >conftest.$ac_ext <<_ACEOF
34704/* confdefs.h. */
34705_ACEOF
34706cat confdefs.h >>conftest.$ac_ext
34707cat >>conftest.$ac_ext <<_ACEOF
34708/* end confdefs.h. */
34709#include <stddef.h>
34710int
34711main ()
34712{
34713
34714 return 0; }
34715
34716 struct Foo { void foo(size_t); void foo(unsigned int); };
34717
34718 int bar() {
34719
34720 ;
34721 return 0;
34722}
34723_ACEOF
34724rm -f conftest.$ac_objext
34725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34726 (eval $ac_compile) 2>conftest.er1
a848cd7e 34727 ac_status=$?
ac1cb8d3
VS
34728 grep -v '^ *+' conftest.er1 >conftest.err
34729 rm -f conftest.er1
34730 cat conftest.err >&5
a848cd7e
SC
34731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34732 (exit $ac_status); } &&
479c790c 34733 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34735 (eval $ac_try) 2>&5
34736 ac_status=$?
34737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34738 (exit $ac_status); }; } &&
34739 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34741 (eval $ac_try) 2>&5
34742 ac_status=$?
34743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34744 (exit $ac_status); }; }; then
34745 wx_cv_size_t_is_uint=no
34746else
34747 echo "$as_me: failed program was:" >&5
34748sed 's/^/| /' conftest.$ac_ext >&5
34749
34750wx_cv_size_t_is_uint=yes
34751
34752fi
ac1cb8d3 34753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34754
34755
34756fi
34757echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34758echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
34759
34760if test "$wx_cv_size_t_is_uint" = "yes"; then
34761 cat >>confdefs.h <<\_ACEOF
34762#define wxSIZE_T_IS_UINT 1
34763_ACEOF
34764
34765else
34766 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34767echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
34768if test "${wx_cv_size_t_is_ulong+set}" = set; then
34769 echo $ECHO_N "(cached) $ECHO_C" >&6
34770else
34771 cat >conftest.$ac_ext <<_ACEOF
34772/* confdefs.h. */
34773_ACEOF
34774cat confdefs.h >>conftest.$ac_ext
34775cat >>conftest.$ac_ext <<_ACEOF
34776/* end confdefs.h. */
34777#include <stddef.h>
34778int
34779main ()
34780{
34781
34782 return 0; }
34783
34784 struct Foo { void foo(size_t); void foo(unsigned long); };
34785
34786 int bar() {
34787
34788 ;
34789 return 0;
34790}
34791_ACEOF
34792rm -f conftest.$ac_objext
34793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34794 (eval $ac_compile) 2>conftest.er1
a848cd7e 34795 ac_status=$?
ac1cb8d3
VS
34796 grep -v '^ *+' conftest.er1 >conftest.err
34797 rm -f conftest.er1
34798 cat conftest.err >&5
a848cd7e
SC
34799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34800 (exit $ac_status); } &&
479c790c 34801 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34803 (eval $ac_try) 2>&5
34804 ac_status=$?
34805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34806 (exit $ac_status); }; } &&
34807 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34809 (eval $ac_try) 2>&5
34810 ac_status=$?
34811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34812 (exit $ac_status); }; }; then
34813 wx_cv_size_t_is_ulong=no
34814else
34815 echo "$as_me: failed program was:" >&5
34816sed 's/^/| /' conftest.$ac_ext >&5
34817
34818wx_cv_size_t_is_ulong=yes
34819
34820fi
ac1cb8d3 34821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34822
34823fi
34824echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34825echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
34826
34827 if test "$wx_cv_size_t_is_ulong" = "yes"; then
34828 cat >>confdefs.h <<\_ACEOF
34829#define wxSIZE_T_IS_ULONG 1
34830_ACEOF
34831
34832 fi
34833fi
34834
a848cd7e
SC
34835
34836echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34837echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
34838if test "${wx_cv_struct_pw_gecos+set}" = set; then
34839 echo $ECHO_N "(cached) $ECHO_C" >&6
34840else
34841
34842 cat >conftest.$ac_ext <<_ACEOF
34843/* confdefs.h. */
34844_ACEOF
34845cat confdefs.h >>conftest.$ac_ext
34846cat >>conftest.$ac_ext <<_ACEOF
34847/* end confdefs.h. */
34848#include <pwd.h>
34849int
34850main ()
34851{
34852
34853 char *p;
34854 struct passwd *pw;
34855 p = pw->pw_gecos;
34856
34857 ;
34858 return 0;
34859}
34860_ACEOF
34861rm -f conftest.$ac_objext
34862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34863 (eval $ac_compile) 2>conftest.er1
a848cd7e 34864 ac_status=$?
ac1cb8d3
VS
34865 grep -v '^ *+' conftest.er1 >conftest.err
34866 rm -f conftest.er1
34867 cat conftest.err >&5
a848cd7e
SC
34868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34869 (exit $ac_status); } &&
479c790c 34870 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34872 (eval $ac_try) 2>&5
34873 ac_status=$?
34874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34875 (exit $ac_status); }; } &&
34876 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34878 (eval $ac_try) 2>&5
34879 ac_status=$?
34880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34881 (exit $ac_status); }; }; then
34882
34883 wx_cv_struct_pw_gecos=yes
34884
34885else
34886 echo "$as_me: failed program was:" >&5
34887sed 's/^/| /' conftest.$ac_ext >&5
34888
34889
34890 wx_cv_struct_pw_gecos=no
34891
34892
34893fi
ac1cb8d3 34894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34895
34896
34897fi
34898echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34899echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
34900
34901if test "$wx_cv_struct_pw_gecos" = "yes"; then
34902 cat >>confdefs.h <<\_ACEOF
34903#define HAVE_PW_GECOS 1
34904_ACEOF
34905
34906fi
34907
34908
47a7e797 34909if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
34910 cat >>confdefs.h <<\_ACEOF
34911#define wxUSE_WCHAR_T 1
34912_ACEOF
34913
34914
34915 WCSLEN_FOUND=0
34916 WCHAR_LINK=
34917
34918for ac_func in wcslen
34919do
34920as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34921echo "$as_me:$LINENO: checking for $ac_func" >&5
34922echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34923if eval "test \"\${$as_ac_var+set}\" = set"; then
34924 echo $ECHO_N "(cached) $ECHO_C" >&6
34925else
34926 cat >conftest.$ac_ext <<_ACEOF
34927/* confdefs.h. */
34928_ACEOF
34929cat confdefs.h >>conftest.$ac_ext
34930cat >>conftest.$ac_ext <<_ACEOF
34931/* end confdefs.h. */
ac1cb8d3
VS
34932/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34934#define $ac_func innocuous_$ac_func
34935
a848cd7e
SC
34936/* System header to define __stub macros and hopefully few prototypes,
34937 which can conflict with char $ac_func (); below.
34938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34939 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34940
a848cd7e
SC
34941#ifdef __STDC__
34942# include <limits.h>
34943#else
34944# include <assert.h>
34945#endif
ac1cb8d3
VS
34946
34947#undef $ac_func
34948
a848cd7e
SC
34949/* Override any gcc2 internal prototype to avoid an error. */
34950#ifdef __cplusplus
34951extern "C"
34952{
34953#endif
34954/* We use char because int might match the return type of a gcc2
34955 builtin and then its argument prototype would still apply. */
34956char $ac_func ();
34957/* The GNU C library defines this for functions which it implements
34958 to always fail with ENOSYS. Some functions are actually named
34959 something starting with __ and the normal name is an alias. */
34960#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34961choke me
34962#else
34963char (*f) () = $ac_func;
34964#endif
34965#ifdef __cplusplus
34966}
34967#endif
34968
34969int
34970main ()
34971{
34972return f != $ac_func;
34973 ;
34974 return 0;
34975}
34976_ACEOF
34977rm -f conftest.$ac_objext conftest$ac_exeext
34978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34979 (eval $ac_link) 2>conftest.er1
a848cd7e 34980 ac_status=$?
ac1cb8d3
VS
34981 grep -v '^ *+' conftest.er1 >conftest.err
34982 rm -f conftest.er1
34983 cat conftest.err >&5
a848cd7e
SC
34984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34985 (exit $ac_status); } &&
479c790c 34986 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34988 (eval $ac_try) 2>&5
34989 ac_status=$?
34990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34991 (exit $ac_status); }; } &&
34992 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34994 (eval $ac_try) 2>&5
34995 ac_status=$?
34996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34997 (exit $ac_status); }; }; then
34998 eval "$as_ac_var=yes"
34999else
35000 echo "$as_me: failed program was:" >&5
35001sed 's/^/| /' conftest.$ac_ext >&5
35002
35003eval "$as_ac_var=no"
35004fi
ac1cb8d3
VS
35005rm -f conftest.err conftest.$ac_objext \
35006 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35007fi
35008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35009echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35010if test `eval echo '${'$as_ac_var'}'` = yes; then
35011 cat >>confdefs.h <<_ACEOF
35012#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35013_ACEOF
35014 WCSLEN_FOUND=1
35015fi
35016done
35017
35018
35019 if test "$WCSLEN_FOUND" = 0; then
35020 if test "$TOOLKIT" = "MSW"; then
35021 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
35022echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
35023if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
35024 echo $ECHO_N "(cached) $ECHO_C" >&6
35025else
35026 ac_check_lib_save_LIBS=$LIBS
35027LIBS="-lmsvcrt $LIBS"
35028cat >conftest.$ac_ext <<_ACEOF
35029/* confdefs.h. */
35030_ACEOF
35031cat confdefs.h >>conftest.$ac_ext
35032cat >>conftest.$ac_ext <<_ACEOF
35033/* end confdefs.h. */
35034
35035/* Override any gcc2 internal prototype to avoid an error. */
35036#ifdef __cplusplus
35037extern "C"
35038#endif
35039/* We use char because int might match the return type of a gcc2
35040 builtin and then its argument prototype would still apply. */
35041char wcslen ();
35042int
35043main ()
35044{
35045wcslen ();
35046 ;
35047 return 0;
35048}
35049_ACEOF
35050rm -f conftest.$ac_objext conftest$ac_exeext
35051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35052 (eval $ac_link) 2>conftest.er1
a848cd7e 35053 ac_status=$?
ac1cb8d3
VS
35054 grep -v '^ *+' conftest.er1 >conftest.err
35055 rm -f conftest.er1
35056 cat conftest.err >&5
a848cd7e
SC
35057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35058 (exit $ac_status); } &&
479c790c 35059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35061 (eval $ac_try) 2>&5
35062 ac_status=$?
35063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35064 (exit $ac_status); }; } &&
35065 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35067 (eval $ac_try) 2>&5
35068 ac_status=$?
35069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35070 (exit $ac_status); }; }; then
35071 ac_cv_lib_msvcrt_wcslen=yes
35072else
35073 echo "$as_me: failed program was:" >&5
35074sed 's/^/| /' conftest.$ac_ext >&5
35075
35076ac_cv_lib_msvcrt_wcslen=no
35077fi
ac1cb8d3
VS
35078rm -f conftest.err conftest.$ac_objext \
35079 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35080LIBS=$ac_check_lib_save_LIBS
35081fi
35082echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
35083echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
35084if test $ac_cv_lib_msvcrt_wcslen = yes; then
35085 WCHAR_OK=1
35086fi
35087
35088 else
35089 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
35090echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
35091if test "${ac_cv_lib_w_wcslen+set}" = set; then
35092 echo $ECHO_N "(cached) $ECHO_C" >&6
35093else
35094 ac_check_lib_save_LIBS=$LIBS
35095LIBS="-lw $LIBS"
35096cat >conftest.$ac_ext <<_ACEOF
35097/* confdefs.h. */
35098_ACEOF
35099cat confdefs.h >>conftest.$ac_ext
35100cat >>conftest.$ac_ext <<_ACEOF
35101/* end confdefs.h. */
35102
35103/* Override any gcc2 internal prototype to avoid an error. */
35104#ifdef __cplusplus
35105extern "C"
35106#endif
35107/* We use char because int might match the return type of a gcc2
35108 builtin and then its argument prototype would still apply. */
35109char wcslen ();
35110int
35111main ()
35112{
35113wcslen ();
35114 ;
35115 return 0;
35116}
35117_ACEOF
35118rm -f conftest.$ac_objext conftest$ac_exeext
35119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35120 (eval $ac_link) 2>conftest.er1
a848cd7e 35121 ac_status=$?
ac1cb8d3
VS
35122 grep -v '^ *+' conftest.er1 >conftest.err
35123 rm -f conftest.er1
35124 cat conftest.err >&5
a848cd7e
SC
35125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35126 (exit $ac_status); } &&
479c790c 35127 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35129 (eval $ac_try) 2>&5
35130 ac_status=$?
35131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35132 (exit $ac_status); }; } &&
35133 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35135 (eval $ac_try) 2>&5
35136 ac_status=$?
35137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35138 (exit $ac_status); }; }; then
35139 ac_cv_lib_w_wcslen=yes
35140else
35141 echo "$as_me: failed program was:" >&5
35142sed 's/^/| /' conftest.$ac_ext >&5
35143
35144ac_cv_lib_w_wcslen=no
35145fi
ac1cb8d3
VS
35146rm -f conftest.err conftest.$ac_objext \
35147 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35148LIBS=$ac_check_lib_save_LIBS
35149fi
35150echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
35151echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
35152if test $ac_cv_lib_w_wcslen = yes; then
35153
35154 WCHAR_LINK=" -lw"
35155 WCSLEN_FOUND=1
35156
35157fi
35158
35159 fi
35160 fi
35161
35162 if test "$WCSLEN_FOUND" = 1; then
35163 cat >>confdefs.h <<\_ACEOF
35164#define HAVE_WCSLEN 1
35165_ACEOF
35166
35167 fi
35168
efdf6afe 35169 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 35170 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
35171 fi
35172
efdf6afe
VZ
35173 echo "$as_me:$LINENO: checking for mbstate_t" >&5
35174echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
35175if test "${ac_cv_type_mbstate_t+set}" = set; then
35176 echo $ECHO_N "(cached) $ECHO_C" >&6
35177else
35178 cat >conftest.$ac_ext <<_ACEOF
35179/* confdefs.h. */
35180_ACEOF
35181cat confdefs.h >>conftest.$ac_ext
35182cat >>conftest.$ac_ext <<_ACEOF
35183/* end confdefs.h. */
35184#include <wchar.h>
35185
35186int
35187main ()
35188{
35189if ((mbstate_t *) 0)
35190 return 0;
35191if (sizeof (mbstate_t))
35192 return 0;
35193 ;
35194 return 0;
35195}
35196_ACEOF
35197rm -f conftest.$ac_objext
35198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35199 (eval $ac_compile) 2>conftest.er1
35200 ac_status=$?
35201 grep -v '^ *+' conftest.er1 >conftest.err
35202 rm -f conftest.er1
35203 cat conftest.err >&5
35204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35205 (exit $ac_status); } &&
479c790c 35206 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
efdf6afe
VZ
35207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35208 (eval $ac_try) 2>&5
35209 ac_status=$?
35210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35211 (exit $ac_status); }; } &&
35212 { ac_try='test -s conftest.$ac_objext'
35213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35214 (eval $ac_try) 2>&5
35215 ac_status=$?
35216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35217 (exit $ac_status); }; }; then
35218 ac_cv_type_mbstate_t=yes
35219else
35220 echo "$as_me: failed program was:" >&5
35221sed 's/^/| /' conftest.$ac_ext >&5
35222
35223ac_cv_type_mbstate_t=no
35224fi
35225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35226fi
35227echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
35228echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
35229if test $ac_cv_type_mbstate_t = yes; then
35230
35231cat >>confdefs.h <<_ACEOF
35232#define HAVE_MBSTATE_T 1
35233_ACEOF
35234
a848cd7e
SC
35235
35236for ac_func in wcsrtombs
35237do
35238as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35239echo "$as_me:$LINENO: checking for $ac_func" >&5
35240echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35241if eval "test \"\${$as_ac_var+set}\" = set"; then
35242 echo $ECHO_N "(cached) $ECHO_C" >&6
35243else
35244 cat >conftest.$ac_ext <<_ACEOF
35245/* confdefs.h. */
35246_ACEOF
35247cat confdefs.h >>conftest.$ac_ext
35248cat >>conftest.$ac_ext <<_ACEOF
35249/* end confdefs.h. */
ac1cb8d3
VS
35250/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35252#define $ac_func innocuous_$ac_func
35253
a848cd7e
SC
35254/* System header to define __stub macros and hopefully few prototypes,
35255 which can conflict with char $ac_func (); below.
35256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35257 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35258
a848cd7e
SC
35259#ifdef __STDC__
35260# include <limits.h>
35261#else
35262# include <assert.h>
35263#endif
ac1cb8d3
VS
35264
35265#undef $ac_func
35266
a848cd7e
SC
35267/* Override any gcc2 internal prototype to avoid an error. */
35268#ifdef __cplusplus
35269extern "C"
35270{
35271#endif
35272/* We use char because int might match the return type of a gcc2
35273 builtin and then its argument prototype would still apply. */
35274char $ac_func ();
35275/* The GNU C library defines this for functions which it implements
35276 to always fail with ENOSYS. Some functions are actually named
35277 something starting with __ and the normal name is an alias. */
35278#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35279choke me
35280#else
35281char (*f) () = $ac_func;
35282#endif
35283#ifdef __cplusplus
35284}
35285#endif
35286
35287int
35288main ()
35289{
35290return f != $ac_func;
35291 ;
35292 return 0;
35293}
35294_ACEOF
35295rm -f conftest.$ac_objext conftest$ac_exeext
35296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35297 (eval $ac_link) 2>conftest.er1
a848cd7e 35298 ac_status=$?
ac1cb8d3
VS
35299 grep -v '^ *+' conftest.er1 >conftest.err
35300 rm -f conftest.er1
35301 cat conftest.err >&5
a848cd7e
SC
35302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35303 (exit $ac_status); } &&
479c790c 35304 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35306 (eval $ac_try) 2>&5
35307 ac_status=$?
35308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35309 (exit $ac_status); }; } &&
35310 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35312 (eval $ac_try) 2>&5
35313 ac_status=$?
35314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35315 (exit $ac_status); }; }; then
35316 eval "$as_ac_var=yes"
35317else
35318 echo "$as_me: failed program was:" >&5
35319sed 's/^/| /' conftest.$ac_ext >&5
35320
35321eval "$as_ac_var=no"
35322fi
ac1cb8d3
VS
35323rm -f conftest.err conftest.$ac_objext \
35324 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35325fi
35326echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35327echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35328if test `eval echo '${'$as_ac_var'}'` = yes; then
35329 cat >>confdefs.h <<_ACEOF
35330#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35331_ACEOF
35332
35333fi
35334done
35335
efdf6afe
VZ
35336fi
35337
a848cd7e
SC
35338else
35339 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
35340echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
35341fi
35342
a848cd7e 35343
4a767dd5
VZ
35344
35345for ac_func in snprintf vsnprintf
a848cd7e
SC
35346do
35347as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35348echo "$as_me:$LINENO: checking for $ac_func" >&5
35349echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35350if eval "test \"\${$as_ac_var+set}\" = set"; then
35351 echo $ECHO_N "(cached) $ECHO_C" >&6
35352else
35353 cat >conftest.$ac_ext <<_ACEOF
35354/* confdefs.h. */
35355_ACEOF
35356cat confdefs.h >>conftest.$ac_ext
35357cat >>conftest.$ac_ext <<_ACEOF
35358/* end confdefs.h. */
ac1cb8d3
VS
35359/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35361#define $ac_func innocuous_$ac_func
35362
a848cd7e
SC
35363/* System header to define __stub macros and hopefully few prototypes,
35364 which can conflict with char $ac_func (); below.
35365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35366 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35367
a848cd7e
SC
35368#ifdef __STDC__
35369# include <limits.h>
35370#else
35371# include <assert.h>
35372#endif
ac1cb8d3
VS
35373
35374#undef $ac_func
35375
a848cd7e
SC
35376/* Override any gcc2 internal prototype to avoid an error. */
35377#ifdef __cplusplus
35378extern "C"
35379{
35380#endif
35381/* We use char because int might match the return type of a gcc2
35382 builtin and then its argument prototype would still apply. */
35383char $ac_func ();
35384/* The GNU C library defines this for functions which it implements
35385 to always fail with ENOSYS. Some functions are actually named
35386 something starting with __ and the normal name is an alias. */
35387#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35388choke me
35389#else
35390char (*f) () = $ac_func;
35391#endif
35392#ifdef __cplusplus
35393}
35394#endif
35395
35396int
35397main ()
35398{
35399return f != $ac_func;
35400 ;
35401 return 0;
35402}
35403_ACEOF
35404rm -f conftest.$ac_objext conftest$ac_exeext
35405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35406 (eval $ac_link) 2>conftest.er1
a848cd7e 35407 ac_status=$?
ac1cb8d3
VS
35408 grep -v '^ *+' conftest.er1 >conftest.err
35409 rm -f conftest.er1
35410 cat conftest.err >&5
a848cd7e
SC
35411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35412 (exit $ac_status); } &&
479c790c 35413 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35415 (eval $ac_try) 2>&5
35416 ac_status=$?
35417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35418 (exit $ac_status); }; } &&
35419 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35421 (eval $ac_try) 2>&5
35422 ac_status=$?
35423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35424 (exit $ac_status); }; }; then
35425 eval "$as_ac_var=yes"
35426else
35427 echo "$as_me: failed program was:" >&5
35428sed 's/^/| /' conftest.$ac_ext >&5
35429
35430eval "$as_ac_var=no"
35431fi
ac1cb8d3
VS
35432rm -f conftest.err conftest.$ac_objext \
35433 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35434fi
35435echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35436echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35437if test `eval echo '${'$as_ac_var'}'` = yes; then
35438 cat >>confdefs.h <<_ACEOF
35439#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35440_ACEOF
35441
35442fi
35443done
35444
35445
35446if test "$ac_cv_func_vsnprintf" = "yes"; then
35447 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
35448echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
35449if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
35450 echo $ECHO_N "(cached) $ECHO_C" >&6
35451else
35452
efdf6afe 35453 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
35454/* confdefs.h. */
35455_ACEOF
35456cat confdefs.h >>conftest.$ac_ext
35457cat >>conftest.$ac_ext <<_ACEOF
35458/* end confdefs.h. */
35459
35460 #include <stdio.h>
35461 #include <stdarg.h>
efdf6afe
VZ
35462 #ifdef __MSL__
35463 #if __MSL__ >= 0x6000
35464 namespace std {}
35465 using namespace std;
35466 #endif
35467 #endif
a848cd7e
SC
35468
35469int
35470main ()
35471{
35472
35473 char *buf;
35474 va_list ap;
62fa8b3a 35475 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
35476
35477 ;
35478 return 0;
35479}
35480_ACEOF
35481rm -f conftest.$ac_objext
35482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35483 (eval $ac_compile) 2>conftest.er1
35484 ac_status=$?
35485 grep -v '^ *+' conftest.er1 >conftest.err
35486 rm -f conftest.er1
35487 cat conftest.err >&5
35488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35489 (exit $ac_status); } &&
479c790c 35490 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
35491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35492 (eval $ac_try) 2>&5
35493 ac_status=$?
35494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35495 (exit $ac_status); }; } &&
35496 { ac_try='test -s conftest.$ac_objext'
35497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35498 (eval $ac_try) 2>&5
35499 ac_status=$?
35500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35501 (exit $ac_status); }; }; then
35502 wx_cv_func_vsnprintf_decl=yes
35503else
35504 echo "$as_me: failed program was:" >&5
35505sed 's/^/| /' conftest.$ac_ext >&5
35506
a848cd7e
SC
35507wx_cv_func_vsnprintf_decl=no
35508
35509fi
ac1cb8d3 35510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35511
35512
35513fi
35514echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
35515echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
35516
35517 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
35518 cat >>confdefs.h <<\_ACEOF
35519#define HAVE_VSNPRINTF_DECL 1
35520_ACEOF
35521
62fa8b3a
MW
35522
35523 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
35524echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
35525if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
35526 echo $ECHO_N "(cached) $ECHO_C" >&6
35527else
35528
35529 cat >conftest.$ac_ext <<_ACEOF
35530/* confdefs.h. */
35531_ACEOF
35532cat confdefs.h >>conftest.$ac_ext
35533cat >>conftest.$ac_ext <<_ACEOF
35534/* end confdefs.h. */
35535
35536 #include <stdio.h>
35537 #include <stdarg.h>
35538 #ifdef __MSL__
35539 #if __MSL__ >= 0x6000
35540 namespace std {}
35541 using namespace std;
35542 #endif
35543 #endif
35544
35545int
35546main ()
35547{
35548
35549 char *buf;
35550 va_list ap;
35551 const char *fmt = "%s";
35552 vsnprintf(buf, 10u, fmt, ap);
35553
35554 ;
35555 return 0;
35556}
35557_ACEOF
35558rm -f conftest.$ac_objext
35559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35560 (eval $ac_compile) 2>conftest.er1
35561 ac_status=$?
35562 grep -v '^ *+' conftest.er1 >conftest.err
35563 rm -f conftest.er1
35564 cat conftest.err >&5
35565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35566 (exit $ac_status); } &&
479c790c 35567 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
35568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35569 (eval $ac_try) 2>&5
35570 ac_status=$?
35571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35572 (exit $ac_status); }; } &&
35573 { ac_try='test -s conftest.$ac_objext'
35574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35575 (eval $ac_try) 2>&5
35576 ac_status=$?
35577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35578 (exit $ac_status); }; }; then
35579 wx_cv_func_broken_vsnprintf_decl=no
35580else
35581 echo "$as_me: failed program was:" >&5
35582sed 's/^/| /' conftest.$ac_ext >&5
35583
35584wx_cv_func_broken_vsnprintf_decl=yes
35585
35586fi
35587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35588
35589
35590fi
35591echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35592echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
35593
35594 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35595 cat >>confdefs.h <<\_ACEOF
35596#define HAVE_BROKEN_VSNPRINTF_DECL 1
35597_ACEOF
35598
35599 fi
a848cd7e
SC
35600 fi
35601fi
35602
4a767dd5
VZ
35603if test "$ac_cv_func_snprintf" = "yes"; then
35604 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35605echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
35606if test "${wx_cv_func_snprintf_decl+set}" = set; then
35607 echo $ECHO_N "(cached) $ECHO_C" >&6
35608else
35609
35610 cat >conftest.$ac_ext <<_ACEOF
35611/* confdefs.h. */
35612_ACEOF
35613cat confdefs.h >>conftest.$ac_ext
35614cat >>conftest.$ac_ext <<_ACEOF
35615/* end confdefs.h. */
35616
35617 #include <stdio.h>
35618 #include <stdarg.h>
35619 #ifdef __MSL__
35620 #if __MSL__ >= 0x6000
35621 namespace std {}
35622 using namespace std;
35623 #endif
35624 #endif
35625
35626int
35627main ()
35628{
35629
35630 char *buf;
62fa8b3a 35631 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
35632
35633 ;
35634 return 0;
35635}
35636_ACEOF
35637rm -f conftest.$ac_objext
35638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35639 (eval $ac_compile) 2>conftest.er1
35640 ac_status=$?
35641 grep -v '^ *+' conftest.er1 >conftest.err
35642 rm -f conftest.er1
35643 cat conftest.err >&5
35644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35645 (exit $ac_status); } &&
479c790c 35646 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4a767dd5
VZ
35647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35648 (eval $ac_try) 2>&5
35649 ac_status=$?
35650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35651 (exit $ac_status); }; } &&
35652 { ac_try='test -s conftest.$ac_objext'
35653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35654 (eval $ac_try) 2>&5
35655 ac_status=$?
35656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35657 (exit $ac_status); }; }; then
35658 wx_cv_func_snprintf_decl=yes
35659else
35660 echo "$as_me: failed program was:" >&5
35661sed 's/^/| /' conftest.$ac_ext >&5
35662
35663wx_cv_func_snprintf_decl=no
35664
35665fi
35666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35667
35668
35669fi
35670echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35671echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
35672
35673 if test "$wx_cv_func_snprintf_decl" = "yes"; then
35674 cat >>confdefs.h <<\_ACEOF
35675#define HAVE_SNPRINTF_DECL 1
35676_ACEOF
35677
62fa8b3a
MW
35678
35679 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
35680echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
35681if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
35682 echo $ECHO_N "(cached) $ECHO_C" >&6
35683else
35684
35685 cat >conftest.$ac_ext <<_ACEOF
35686/* confdefs.h. */
35687_ACEOF
35688cat confdefs.h >>conftest.$ac_ext
35689cat >>conftest.$ac_ext <<_ACEOF
35690/* end confdefs.h. */
35691
35692 #include <stdio.h>
35693 #include <stdarg.h>
35694 #ifdef __MSL__
35695 #if __MSL__ >= 0x6000
35696 namespace std {}
35697 using namespace std;
35698 #endif
35699 #endif
35700
35701int
35702main ()
35703{
35704
35705 char *buf;
35706 const char *fmt = "%s";
35707 snprintf(buf, 10u, fmt, "wx");
35708
35709 ;
35710 return 0;
35711}
35712_ACEOF
35713rm -f conftest.$ac_objext
35714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35715 (eval $ac_compile) 2>conftest.er1
35716 ac_status=$?
35717 grep -v '^ *+' conftest.er1 >conftest.err
35718 rm -f conftest.er1
35719 cat conftest.err >&5
35720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35721 (exit $ac_status); } &&
479c790c 35722 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
35723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35724 (eval $ac_try) 2>&5
35725 ac_status=$?
35726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35727 (exit $ac_status); }; } &&
35728 { ac_try='test -s conftest.$ac_objext'
35729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35730 (eval $ac_try) 2>&5
35731 ac_status=$?
35732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35733 (exit $ac_status); }; }; then
35734 wx_cv_func_broken_snprintf_decl=no
35735else
35736 echo "$as_me: failed program was:" >&5
35737sed 's/^/| /' conftest.$ac_ext >&5
35738
35739wx_cv_func_broken_snprintf_decl=yes
35740
35741fi
35742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35743
35744
35745fi
35746echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
35747echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
35748
35749 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
35750 cat >>confdefs.h <<\_ACEOF
35751#define HAVE_BROKEN_SNPRINTF_DECL 1
8b6682b9
JS
35752_ACEOF
35753
35754 fi
35755 fi
35756
35757 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35758
35759 echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35760echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
35761if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35762 echo $ECHO_N "(cached) $ECHO_C" >&6
35763else
35764
35765 if test "$cross_compiling" = yes; then
5039a2df
VZ
35766
35767 { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35768define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35769echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35770define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35771 wx_cv_func_snprintf_pos_params=no
35772
35773
8b6682b9
JS
35774else
35775 cat >conftest.$ac_ext <<_ACEOF
35776/* confdefs.h. */
35777_ACEOF
35778cat confdefs.h >>conftest.$ac_ext
35779cat >>conftest.$ac_ext <<_ACEOF
35780/* end confdefs.h. */
35781
35782 #include <stdio.h>
35783
35784 int main (void)
35785 {
35786 char buffer[128];
35787 snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
35788 if (strcmp ("2 3 1", buffer) == 0)
35789 exit (0);
35790 exit (1);
35791 }
35792
35793_ACEOF
35794rm -f conftest$ac_exeext
35795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35796 (eval $ac_link) 2>&5
35797 ac_status=$?
35798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35799 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35801 (eval $ac_try) 2>&5
35802 ac_status=$?
35803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35804 (exit $ac_status); }; }; then
35805 wx_cv_func_snprintf_pos_params=no
35806else
35807 echo "$as_me: program exited with status $ac_status" >&5
35808echo "$as_me: failed program was:" >&5
35809sed 's/^/| /' conftest.$ac_ext >&5
35810
35811( exit $ac_status )
35812wx_cv_func_snprintf_pos_params=yes
8b6682b9
JS
35813fi
35814rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35815fi
35816
35817
35818fi
35819echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35820echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
35821
35822 if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35823 cat >>confdefs.h <<\_ACEOF
35824#define HAVE_UNIX98_PRINTF 1
62fa8b3a
MW
35825_ACEOF
35826
35827 fi
4a767dd5
VZ
35828 fi
35829fi
35830
a848cd7e
SC
35831if test "$wxUSE_UNICODE" = yes; then
35832
35833
6a5c9b3f
RR
35834for ac_func in swprintf
35835do
35836as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35837echo "$as_me:$LINENO: checking for $ac_func" >&5
35838echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35839if eval "test \"\${$as_ac_var+set}\" = set"; then
35840 echo $ECHO_N "(cached) $ECHO_C" >&6
35841else
35842 cat >conftest.$ac_ext <<_ACEOF
35843/* confdefs.h. */
35844_ACEOF
35845cat confdefs.h >>conftest.$ac_ext
35846cat >>conftest.$ac_ext <<_ACEOF
35847/* end confdefs.h. */
35848/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35850#define $ac_func innocuous_$ac_func
35851
35852/* System header to define __stub macros and hopefully few prototypes,
35853 which can conflict with char $ac_func (); below.
35854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35855 <limits.h> exists even on freestanding compilers. */
35856
35857#ifdef __STDC__
35858# include <limits.h>
35859#else
35860# include <assert.h>
35861#endif
35862
35863#undef $ac_func
35864
35865/* Override any gcc2 internal prototype to avoid an error. */
35866#ifdef __cplusplus
35867extern "C"
35868{
35869#endif
35870/* We use char because int might match the return type of a gcc2
35871 builtin and then its argument prototype would still apply. */
35872char $ac_func ();
35873/* The GNU C library defines this for functions which it implements
35874 to always fail with ENOSYS. Some functions are actually named
35875 something starting with __ and the normal name is an alias. */
35876#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35877choke me
35878#else
35879char (*f) () = $ac_func;
35880#endif
35881#ifdef __cplusplus
35882}
35883#endif
35884
35885int
35886main ()
35887{
35888return f != $ac_func;
35889 ;
35890 return 0;
35891}
35892_ACEOF
35893rm -f conftest.$ac_objext conftest$ac_exeext
35894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35895 (eval $ac_link) 2>conftest.er1
35896 ac_status=$?
35897 grep -v '^ *+' conftest.er1 >conftest.err
35898 rm -f conftest.er1
35899 cat conftest.err >&5
35900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35901 (exit $ac_status); } &&
479c790c 35902 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6a5c9b3f
RR
35903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35904 (eval $ac_try) 2>&5
35905 ac_status=$?
35906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35907 (exit $ac_status); }; } &&
35908 { ac_try='test -s conftest$ac_exeext'
35909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35910 (eval $ac_try) 2>&5
35911 ac_status=$?
35912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35913 (exit $ac_status); }; }; then
35914 eval "$as_ac_var=yes"
35915else
35916 echo "$as_me: failed program was:" >&5
35917sed 's/^/| /' conftest.$ac_ext >&5
35918
35919eval "$as_ac_var=no"
35920fi
35921rm -f conftest.err conftest.$ac_objext \
35922 conftest$ac_exeext conftest.$ac_ext
35923fi
35924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35925echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35926if test `eval echo '${'$as_ac_var'}'` = yes; then
35927 cat >>confdefs.h <<_ACEOF
35928#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35929_ACEOF
35930
35931fi
35932done
35933
35934
35935 if test "$ac_cv_func_swprintf" = "yes"; then
35936 echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
35937echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6
35938if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
35939 echo $ECHO_N "(cached) $ECHO_C" >&6
35940else
35941
35942 cat >conftest.$ac_ext <<_ACEOF
35943/* confdefs.h. */
35944_ACEOF
35945cat confdefs.h >>conftest.$ac_ext
35946cat >>conftest.$ac_ext <<_ACEOF
35947/* end confdefs.h. */
35948
35949 #include <stdio.h>
35950 #include <stdarg.h>
35951 #include <wchar.h>
35952
35953int
35954main ()
35955{
35956
35957 wchar_t *buf;
35958 const wchar_t *fmt = L"test";
35959 swprintf(buf, 10u, fmt);
35960
35961 ;
35962 return 0;
35963}
35964_ACEOF
35965rm -f conftest.$ac_objext
35966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35967 (eval $ac_compile) 2>conftest.er1
35968 ac_status=$?
35969 grep -v '^ *+' conftest.er1 >conftest.err
35970 rm -f conftest.er1
35971 cat conftest.err >&5
35972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35973 (exit $ac_status); } &&
479c790c 35974 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6a5c9b3f
RR
35975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35976 (eval $ac_try) 2>&5
35977 ac_status=$?
35978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35979 (exit $ac_status); }; } &&
35980 { ac_try='test -s conftest.$ac_objext'
35981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35982 (eval $ac_try) 2>&5
35983 ac_status=$?
35984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35985 (exit $ac_status); }; }; then
35986 wx_cv_func_broken_swprintf_decl=no
35987else
35988 echo "$as_me: failed program was:" >&5
35989sed 's/^/| /' conftest.$ac_ext >&5
35990
35991wx_cv_func_broken_swprintf_decl=yes
35992
35993fi
35994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35995
35996
35997fi
35998echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
35999echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6
36000
36001 if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
36002 cat >>confdefs.h <<\_ACEOF
36003#define HAVE_BROKEN_SWPRINTF_DECL 1
36004_ACEOF
36005
36006 fi
36007 fi
36008
36009
36010
a848cd7e 36011
fbe47c7b
VS
36012
36013
36014
36015for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
36016do
36017as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36018echo "$as_me:$LINENO: checking for $ac_func" >&5
36019echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36020if eval "test \"\${$as_ac_var+set}\" = set"; then
36021 echo $ECHO_N "(cached) $ECHO_C" >&6
36022else
36023 cat >conftest.$ac_ext <<_ACEOF
36024/* confdefs.h. */
36025_ACEOF
36026cat confdefs.h >>conftest.$ac_ext
36027cat >>conftest.$ac_ext <<_ACEOF
36028/* end confdefs.h. */
ac1cb8d3
VS
36029/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36031#define $ac_func innocuous_$ac_func
36032
a848cd7e
SC
36033/* System header to define __stub macros and hopefully few prototypes,
36034 which can conflict with char $ac_func (); below.
36035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36036 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36037
a848cd7e
SC
36038#ifdef __STDC__
36039# include <limits.h>
36040#else
36041# include <assert.h>
36042#endif
ac1cb8d3
VS
36043
36044#undef $ac_func
36045
a848cd7e
SC
36046/* Override any gcc2 internal prototype to avoid an error. */
36047#ifdef __cplusplus
36048extern "C"
36049{
36050#endif
36051/* We use char because int might match the return type of a gcc2
36052 builtin and then its argument prototype would still apply. */
36053char $ac_func ();
36054/* The GNU C library defines this for functions which it implements
36055 to always fail with ENOSYS. Some functions are actually named
36056 something starting with __ and the normal name is an alias. */
36057#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36058choke me
36059#else
36060char (*f) () = $ac_func;
36061#endif
36062#ifdef __cplusplus
36063}
36064#endif
36065
36066int
36067main ()
36068{
36069return f != $ac_func;
36070 ;
36071 return 0;
36072}
36073_ACEOF
36074rm -f conftest.$ac_objext conftest$ac_exeext
36075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36076 (eval $ac_link) 2>conftest.er1
a848cd7e 36077 ac_status=$?
ac1cb8d3
VS
36078 grep -v '^ *+' conftest.er1 >conftest.err
36079 rm -f conftest.er1
36080 cat conftest.err >&5
a848cd7e
SC
36081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36082 (exit $ac_status); } &&
479c790c 36083 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36085 (eval $ac_try) 2>&5
36086 ac_status=$?
36087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36088 (exit $ac_status); }; } &&
36089 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36091 (eval $ac_try) 2>&5
36092 ac_status=$?
36093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36094 (exit $ac_status); }; }; then
36095 eval "$as_ac_var=yes"
36096else
36097 echo "$as_me: failed program was:" >&5
36098sed 's/^/| /' conftest.$ac_ext >&5
36099
36100eval "$as_ac_var=no"
36101fi
ac1cb8d3
VS
36102rm -f conftest.err conftest.$ac_objext \
36103 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36104fi
36105echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36106echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36107if test `eval echo '${'$as_ac_var'}'` = yes; then
36108 cat >>confdefs.h <<_ACEOF
36109#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36110_ACEOF
36111
36112fi
36113done
36114
36115
36116 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
36117echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
36118 cat >conftest.$ac_ext <<_ACEOF
36119/* confdefs.h. */
36120_ACEOF
36121cat confdefs.h >>conftest.$ac_ext
36122cat >>conftest.$ac_ext <<_ACEOF
36123/* end confdefs.h. */
36124#include <wchar.h>
36125int
36126main ()
36127{
36128&_vsnwprintf;
36129 ;
36130 return 0;
36131}
36132_ACEOF
36133rm -f conftest.$ac_objext
36134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36135 (eval $ac_compile) 2>conftest.er1
a848cd7e 36136 ac_status=$?
ac1cb8d3
VS
36137 grep -v '^ *+' conftest.er1 >conftest.err
36138 rm -f conftest.er1
36139 cat conftest.err >&5
a848cd7e
SC
36140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36141 (exit $ac_status); } &&
479c790c 36142 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36144 (eval $ac_try) 2>&5
36145 ac_status=$?
36146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36147 (exit $ac_status); }; } &&
36148 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36150 (eval $ac_try) 2>&5
36151 ac_status=$?
36152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36153 (exit $ac_status); }; }; then
36154 echo "$as_me:$LINENO: result: yes" >&5
36155echo "${ECHO_T}yes" >&6
36156 cat >>confdefs.h <<\_ACEOF
36157#define HAVE__VSNWPRINTF 1
36158_ACEOF
36159
36160else
36161 echo "$as_me: failed program was:" >&5
36162sed 's/^/| /' conftest.$ac_ext >&5
36163
36164echo "$as_me:$LINENO: result: no" >&5
36165echo "${ECHO_T}no" >&6
36166fi
ac1cb8d3 36167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
36168fi
36169
6ebeb4c7
VZ
36170if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
36171
36172for ac_func in fnmatch
36173do
36174as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36175echo "$as_me:$LINENO: checking for $ac_func" >&5
36176echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36177if eval "test \"\${$as_ac_var+set}\" = set"; then
36178 echo $ECHO_N "(cached) $ECHO_C" >&6
36179else
36180 cat >conftest.$ac_ext <<_ACEOF
36181/* confdefs.h. */
36182_ACEOF
36183cat confdefs.h >>conftest.$ac_ext
36184cat >>conftest.$ac_ext <<_ACEOF
36185/* end confdefs.h. */
36186/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36188#define $ac_func innocuous_$ac_func
36189
36190/* System header to define __stub macros and hopefully few prototypes,
36191 which can conflict with char $ac_func (); below.
36192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36193 <limits.h> exists even on freestanding compilers. */
36194
36195#ifdef __STDC__
36196# include <limits.h>
36197#else
36198# include <assert.h>
36199#endif
36200
36201#undef $ac_func
36202
36203/* Override any gcc2 internal prototype to avoid an error. */
36204#ifdef __cplusplus
36205extern "C"
36206{
36207#endif
36208/* We use char because int might match the return type of a gcc2
36209 builtin and then its argument prototype would still apply. */
36210char $ac_func ();
36211/* The GNU C library defines this for functions which it implements
36212 to always fail with ENOSYS. Some functions are actually named
36213 something starting with __ and the normal name is an alias. */
36214#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36215choke me
36216#else
36217char (*f) () = $ac_func;
36218#endif
36219#ifdef __cplusplus
36220}
36221#endif
36222
36223int
36224main ()
36225{
36226return f != $ac_func;
36227 ;
36228 return 0;
36229}
36230_ACEOF
36231rm -f conftest.$ac_objext conftest$ac_exeext
36232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36233 (eval $ac_link) 2>conftest.er1
36234 ac_status=$?
36235 grep -v '^ *+' conftest.er1 >conftest.err
36236 rm -f conftest.er1
36237 cat conftest.err >&5
36238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36239 (exit $ac_status); } &&
479c790c 36240 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
36241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36242 (eval $ac_try) 2>&5
36243 ac_status=$?
36244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36245 (exit $ac_status); }; } &&
36246 { ac_try='test -s conftest$ac_exeext'
36247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36248 (eval $ac_try) 2>&5
36249 ac_status=$?
36250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36251 (exit $ac_status); }; }; then
36252 eval "$as_ac_var=yes"
36253else
36254 echo "$as_me: failed program was:" >&5
36255sed 's/^/| /' conftest.$ac_ext >&5
36256
36257eval "$as_ac_var=no"
36258fi
36259rm -f conftest.err conftest.$ac_objext \
36260 conftest$ac_exeext conftest.$ac_ext
36261fi
36262echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36263echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36264if test `eval echo '${'$as_ac_var'}'` = yes; then
36265 cat >>confdefs.h <<_ACEOF
36266#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36267_ACEOF
36268
36269fi
36270done
36271
36272fi
36273
36274if test "$wxUSE_FILE" = "yes"; then
36275
36276for ac_func in fsync
36277do
36278as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36279echo "$as_me:$LINENO: checking for $ac_func" >&5
36280echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36281if eval "test \"\${$as_ac_var+set}\" = set"; then
36282 echo $ECHO_N "(cached) $ECHO_C" >&6
36283else
36284 cat >conftest.$ac_ext <<_ACEOF
36285/* confdefs.h. */
36286_ACEOF
36287cat confdefs.h >>conftest.$ac_ext
36288cat >>conftest.$ac_ext <<_ACEOF
36289/* end confdefs.h. */
36290/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36292#define $ac_func innocuous_$ac_func
36293
36294/* System header to define __stub macros and hopefully few prototypes,
36295 which can conflict with char $ac_func (); below.
36296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36297 <limits.h> exists even on freestanding compilers. */
36298
36299#ifdef __STDC__
36300# include <limits.h>
36301#else
36302# include <assert.h>
36303#endif
36304
36305#undef $ac_func
36306
36307/* Override any gcc2 internal prototype to avoid an error. */
36308#ifdef __cplusplus
36309extern "C"
36310{
36311#endif
36312/* We use char because int might match the return type of a gcc2
36313 builtin and then its argument prototype would still apply. */
36314char $ac_func ();
36315/* The GNU C library defines this for functions which it implements
36316 to always fail with ENOSYS. Some functions are actually named
36317 something starting with __ and the normal name is an alias. */
36318#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36319choke me
36320#else
36321char (*f) () = $ac_func;
36322#endif
36323#ifdef __cplusplus
36324}
36325#endif
36326
36327int
36328main ()
36329{
36330return f != $ac_func;
36331 ;
36332 return 0;
36333}
36334_ACEOF
36335rm -f conftest.$ac_objext conftest$ac_exeext
36336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36337 (eval $ac_link) 2>conftest.er1
36338 ac_status=$?
36339 grep -v '^ *+' conftest.er1 >conftest.err
36340 rm -f conftest.er1
36341 cat conftest.err >&5
36342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36343 (exit $ac_status); } &&
479c790c 36344 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
36345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36346 (eval $ac_try) 2>&5
36347 ac_status=$?
36348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36349 (exit $ac_status); }; } &&
36350 { ac_try='test -s conftest$ac_exeext'
36351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36352 (eval $ac_try) 2>&5
36353 ac_status=$?
36354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36355 (exit $ac_status); }; }; then
36356 eval "$as_ac_var=yes"
36357else
36358 echo "$as_me: failed program was:" >&5
36359sed 's/^/| /' conftest.$ac_ext >&5
36360
36361eval "$as_ac_var=no"
36362fi
36363rm -f conftest.err conftest.$ac_objext \
36364 conftest$ac_exeext conftest.$ac_ext
36365fi
36366echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36367echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36368if test `eval echo '${'$as_ac_var'}'` = yes; then
36369 cat >>confdefs.h <<_ACEOF
36370#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36371_ACEOF
36372
36373fi
36374done
36375
36376fi
a848cd7e
SC
36377
36378
c2e9ada4
VZ
36379for ac_func in round
36380do
36381as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36382echo "$as_me:$LINENO: checking for $ac_func" >&5
36383echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36384if eval "test \"\${$as_ac_var+set}\" = set"; then
36385 echo $ECHO_N "(cached) $ECHO_C" >&6
36386else
36387 cat >conftest.$ac_ext <<_ACEOF
36388/* confdefs.h. */
36389_ACEOF
36390cat confdefs.h >>conftest.$ac_ext
36391cat >>conftest.$ac_ext <<_ACEOF
36392/* end confdefs.h. */
36393/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36395#define $ac_func innocuous_$ac_func
36396
36397/* System header to define __stub macros and hopefully few prototypes,
36398 which can conflict with char $ac_func (); below.
36399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36400 <limits.h> exists even on freestanding compilers. */
36401
36402#ifdef __STDC__
36403# include <limits.h>
36404#else
36405# include <assert.h>
36406#endif
36407
36408#undef $ac_func
36409
36410/* Override any gcc2 internal prototype to avoid an error. */
36411#ifdef __cplusplus
36412extern "C"
36413{
36414#endif
36415/* We use char because int might match the return type of a gcc2
36416 builtin and then its argument prototype would still apply. */
36417char $ac_func ();
36418/* The GNU C library defines this for functions which it implements
36419 to always fail with ENOSYS. Some functions are actually named
36420 something starting with __ and the normal name is an alias. */
36421#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36422choke me
36423#else
36424char (*f) () = $ac_func;
36425#endif
36426#ifdef __cplusplus
36427}
36428#endif
36429
36430int
36431main ()
36432{
36433return f != $ac_func;
36434 ;
36435 return 0;
36436}
36437_ACEOF
36438rm -f conftest.$ac_objext conftest$ac_exeext
36439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36440 (eval $ac_link) 2>conftest.er1
36441 ac_status=$?
36442 grep -v '^ *+' conftest.er1 >conftest.err
36443 rm -f conftest.er1
36444 cat conftest.err >&5
36445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36446 (exit $ac_status); } &&
479c790c 36447 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c2e9ada4
VZ
36448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36449 (eval $ac_try) 2>&5
36450 ac_status=$?
36451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36452 (exit $ac_status); }; } &&
36453 { ac_try='test -s conftest$ac_exeext'
36454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36455 (eval $ac_try) 2>&5
36456 ac_status=$?
36457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36458 (exit $ac_status); }; }; then
36459 eval "$as_ac_var=yes"
36460else
36461 echo "$as_me: failed program was:" >&5
36462sed 's/^/| /' conftest.$ac_ext >&5
36463
36464eval "$as_ac_var=no"
36465fi
36466rm -f conftest.err conftest.$ac_objext \
36467 conftest$ac_exeext conftest.$ac_ext
36468fi
36469echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36470echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36471if test `eval echo '${'$as_ac_var'}'` = yes; then
36472 cat >>confdefs.h <<_ACEOF
36473#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36474_ACEOF
36475
36476fi
36477done
36478
36479if test "$ac_cv_func_round" = yes; then
36480 echo "$as_me:$LINENO: checking whether round is declared" >&5
36481echo $ECHO_N "checking whether round is declared... $ECHO_C" >&6
36482if test "${ac_cv_have_decl_round+set}" = set; then
36483 echo $ECHO_N "(cached) $ECHO_C" >&6
36484else
36485 cat >conftest.$ac_ext <<_ACEOF
36486/* confdefs.h. */
36487_ACEOF
36488cat confdefs.h >>conftest.$ac_ext
36489cat >>conftest.$ac_ext <<_ACEOF
36490/* end confdefs.h. */
36491#include <math.h>
36492
36493int
36494main ()
36495{
36496#ifndef round
36497 char *p = (char *) round;
36498#endif
36499
36500 ;
36501 return 0;
36502}
36503_ACEOF
36504rm -f conftest.$ac_objext
36505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36506 (eval $ac_compile) 2>conftest.er1
36507 ac_status=$?
36508 grep -v '^ *+' conftest.er1 >conftest.err
36509 rm -f conftest.er1
36510 cat conftest.err >&5
36511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36512 (exit $ac_status); } &&
479c790c 36513 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c2e9ada4
VZ
36514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36515 (eval $ac_try) 2>&5
36516 ac_status=$?
36517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36518 (exit $ac_status); }; } &&
36519 { ac_try='test -s conftest.$ac_objext'
36520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36521 (eval $ac_try) 2>&5
36522 ac_status=$?
36523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36524 (exit $ac_status); }; }; then
36525 ac_cv_have_decl_round=yes
36526else
36527 echo "$as_me: failed program was:" >&5
36528sed 's/^/| /' conftest.$ac_ext >&5
36529
36530ac_cv_have_decl_round=no
36531fi
36532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36533fi
36534echo "$as_me:$LINENO: result: $ac_cv_have_decl_round" >&5
36535echo "${ECHO_T}$ac_cv_have_decl_round" >&6
36536if test $ac_cv_have_decl_round = yes; then
36537
36538cat >>confdefs.h <<_ACEOF
36539#define HAVE_DECL_ROUND 1
36540_ACEOF
36541
36542
36543else
36544 cat >>confdefs.h <<_ACEOF
36545#define HAVE_DECL_ROUND 0
36546_ACEOF
36547
36548
36549fi
36550
36551
36552fi
36553
36554
a848cd7e
SC
36555if test "$TOOLKIT" != "MSW"; then
36556
36557
a848cd7e
SC
36558
36559
36560
36561# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
36562if test "${with_libiconv_prefix+set}" = set; then
36563 withval="$with_libiconv_prefix"
36564
36565 for dir in `echo "$withval" | tr : ' '`; do
36566 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36567 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36568 done
36569
36570fi;
36571
36572 echo "$as_me:$LINENO: checking for iconv" >&5
36573echo $ECHO_N "checking for iconv... $ECHO_C" >&6
36574if test "${am_cv_func_iconv+set}" = set; then
36575 echo $ECHO_N "(cached) $ECHO_C" >&6
36576else
36577
36578 am_cv_func_iconv="no, consider installing GNU libiconv"
36579 am_cv_lib_iconv=no
36580 cat >conftest.$ac_ext <<_ACEOF
36581/* confdefs.h. */
36582_ACEOF
36583cat confdefs.h >>conftest.$ac_ext
36584cat >>conftest.$ac_ext <<_ACEOF
36585/* end confdefs.h. */
36586#include <stdlib.h>
36587#include <iconv.h>
36588int
36589main ()
36590{
36591iconv_t cd = iconv_open("","");
36592 iconv(cd,NULL,NULL,NULL,NULL);
36593 iconv_close(cd);
36594 ;
36595 return 0;
36596}
36597_ACEOF
36598rm -f conftest.$ac_objext conftest$ac_exeext
36599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36600 (eval $ac_link) 2>conftest.er1
a848cd7e 36601 ac_status=$?
ac1cb8d3
VS
36602 grep -v '^ *+' conftest.er1 >conftest.err
36603 rm -f conftest.er1
36604 cat conftest.err >&5
a848cd7e
SC
36605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36606 (exit $ac_status); } &&
479c790c 36607 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36609 (eval $ac_try) 2>&5
36610 ac_status=$?
36611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36612 (exit $ac_status); }; } &&
36613 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36615 (eval $ac_try) 2>&5
36616 ac_status=$?
36617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36618 (exit $ac_status); }; }; then
36619 am_cv_func_iconv=yes
36620else
36621 echo "$as_me: failed program was:" >&5
36622sed 's/^/| /' conftest.$ac_ext >&5
36623
36624fi
ac1cb8d3
VS
36625rm -f conftest.err conftest.$ac_objext \
36626 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36627 if test "$am_cv_func_iconv" != yes; then
36628 am_save_LIBS="$LIBS"
36629 LIBS="$LIBS -liconv"
36630 cat >conftest.$ac_ext <<_ACEOF
36631/* confdefs.h. */
36632_ACEOF
36633cat confdefs.h >>conftest.$ac_ext
36634cat >>conftest.$ac_ext <<_ACEOF
36635/* end confdefs.h. */
36636#include <stdlib.h>
36637#include <iconv.h>
36638int
36639main ()
36640{
36641iconv_t cd = iconv_open("","");
36642 iconv(cd,NULL,NULL,NULL,NULL);
36643 iconv_close(cd);
36644 ;
36645 return 0;
36646}
36647_ACEOF
36648rm -f conftest.$ac_objext conftest$ac_exeext
36649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36650 (eval $ac_link) 2>conftest.er1
a848cd7e 36651 ac_status=$?
ac1cb8d3
VS
36652 grep -v '^ *+' conftest.er1 >conftest.err
36653 rm -f conftest.er1
36654 cat conftest.err >&5
a848cd7e
SC
36655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36656 (exit $ac_status); } &&
479c790c 36657 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36659 (eval $ac_try) 2>&5
36660 ac_status=$?
36661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36662 (exit $ac_status); }; } &&
36663 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36665 (eval $ac_try) 2>&5
36666 ac_status=$?
36667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36668 (exit $ac_status); }; }; then
36669 am_cv_lib_iconv=yes
36670 am_cv_func_iconv=yes
36671else
36672 echo "$as_me: failed program was:" >&5
36673sed 's/^/| /' conftest.$ac_ext >&5
36674
36675fi
ac1cb8d3
VS
36676rm -f conftest.err conftest.$ac_objext \
36677 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36678 LIBS="$am_save_LIBS"
36679 fi
36680
36681fi
36682echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36683echo "${ECHO_T}$am_cv_func_iconv" >&6
36684 if test "$am_cv_func_iconv" = yes; then
36685
36686cat >>confdefs.h <<\_ACEOF
36687#define HAVE_ICONV 1
36688_ACEOF
36689
36690 echo "$as_me:$LINENO: checking if iconv needs const" >&5
36691echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
36692if test "${wx_cv_func_iconv_const+set}" = set; then
36693 echo $ECHO_N "(cached) $ECHO_C" >&6
36694else
36695 cat >conftest.$ac_ext <<_ACEOF
36696/* confdefs.h. */
36697_ACEOF
36698cat confdefs.h >>conftest.$ac_ext
36699cat >>conftest.$ac_ext <<_ACEOF
36700/* end confdefs.h. */
36701
36702#include <stdlib.h>
36703#include <iconv.h>
36704extern
36705#ifdef __cplusplus
36706"C"
36707#endif
36708#if defined(__STDC__) || defined(__cplusplus)
36709size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36710#else
36711size_t iconv();
36712#endif
36713
36714int
36715main ()
36716{
36717
36718 ;
36719 return 0;
36720}
36721_ACEOF
36722rm -f conftest.$ac_objext
36723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36724 (eval $ac_compile) 2>conftest.er1
a848cd7e 36725 ac_status=$?
ac1cb8d3
VS
36726 grep -v '^ *+' conftest.er1 >conftest.err
36727 rm -f conftest.er1
36728 cat conftest.err >&5
a848cd7e
SC
36729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36730 (exit $ac_status); } &&
479c790c 36731 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36733 (eval $ac_try) 2>&5
36734 ac_status=$?
36735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36736 (exit $ac_status); }; } &&
36737 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36739 (eval $ac_try) 2>&5
36740 ac_status=$?
36741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36742 (exit $ac_status); }; }; then
36743 wx_cv_func_iconv_const="no"
36744else
36745 echo "$as_me: failed program was:" >&5
36746sed 's/^/| /' conftest.$ac_ext >&5
36747
36748wx_cv_func_iconv_const="yes"
36749
36750fi
ac1cb8d3 36751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36752
36753fi
36754echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36755echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
36756
36757 iconv_const=
36758 if test "x$wx_cv_func_iconv_const" = "xyes"; then
36759 iconv_const="const"
36760 fi
36761
36762
36763cat >>confdefs.h <<_ACEOF
36764#define ICONV_CONST $iconv_const
36765_ACEOF
36766
36767 fi
36768 LIBICONV=
36769 if test "$am_cv_lib_iconv" = yes; then
36770 LIBICONV="-liconv"
36771 fi
36772
36773
36774LIBS="$LIBICONV $LIBS"
a848cd7e
SC
36775
36776if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36777
36778for ac_func in sigaction
36779do
36780as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36781echo "$as_me:$LINENO: checking for $ac_func" >&5
36782echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36783if eval "test \"\${$as_ac_var+set}\" = set"; then
36784 echo $ECHO_N "(cached) $ECHO_C" >&6
36785else
36786 cat >conftest.$ac_ext <<_ACEOF
36787/* confdefs.h. */
36788_ACEOF
36789cat confdefs.h >>conftest.$ac_ext
36790cat >>conftest.$ac_ext <<_ACEOF
36791/* end confdefs.h. */
ac1cb8d3
VS
36792/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36794#define $ac_func innocuous_$ac_func
36795
a848cd7e
SC
36796/* System header to define __stub macros and hopefully few prototypes,
36797 which can conflict with char $ac_func (); below.
36798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36799 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36800
a848cd7e
SC
36801#ifdef __STDC__
36802# include <limits.h>
36803#else
36804# include <assert.h>
36805#endif
ac1cb8d3
VS
36806
36807#undef $ac_func
36808
a848cd7e
SC
36809/* Override any gcc2 internal prototype to avoid an error. */
36810#ifdef __cplusplus
36811extern "C"
36812{
36813#endif
36814/* We use char because int might match the return type of a gcc2
36815 builtin and then its argument prototype would still apply. */
36816char $ac_func ();
36817/* The GNU C library defines this for functions which it implements
36818 to always fail with ENOSYS. Some functions are actually named
36819 something starting with __ and the normal name is an alias. */
36820#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36821choke me
36822#else
36823char (*f) () = $ac_func;
36824#endif
36825#ifdef __cplusplus
36826}
36827#endif
36828
36829int
36830main ()
36831{
36832return f != $ac_func;
36833 ;
36834 return 0;
36835}
36836_ACEOF
36837rm -f conftest.$ac_objext conftest$ac_exeext
36838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36839 (eval $ac_link) 2>conftest.er1
a848cd7e 36840 ac_status=$?
ac1cb8d3
VS
36841 grep -v '^ *+' conftest.er1 >conftest.err
36842 rm -f conftest.er1
36843 cat conftest.err >&5
a848cd7e
SC
36844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36845 (exit $ac_status); } &&
479c790c 36846 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36848 (eval $ac_try) 2>&5
36849 ac_status=$?
36850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36851 (exit $ac_status); }; } &&
36852 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36854 (eval $ac_try) 2>&5
36855 ac_status=$?
36856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36857 (exit $ac_status); }; }; then
36858 eval "$as_ac_var=yes"
36859else
36860 echo "$as_me: failed program was:" >&5
36861sed 's/^/| /' conftest.$ac_ext >&5
36862
36863eval "$as_ac_var=no"
36864fi
ac1cb8d3
VS
36865rm -f conftest.err conftest.$ac_objext \
36866 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36867fi
36868echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36869echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36870if test `eval echo '${'$as_ac_var'}'` = yes; then
36871 cat >>confdefs.h <<_ACEOF
36872#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36873_ACEOF
36874
36875fi
36876done
36877
36878
36879 if test "$ac_cv_func_sigaction" = "no"; then
36880 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36881echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36882 wxUSE_ON_FATAL_EXCEPTION=no
36883 fi
36884
36885 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
36886 echo "$as_me:$LINENO: checking for sa_handler type" >&5
36887echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
36888if test "${wx_cv_type_sa_handler+set}" = set; then
36889 echo $ECHO_N "(cached) $ECHO_C" >&6
36890else
36891
36892 cat >conftest.$ac_ext <<_ACEOF
36893/* confdefs.h. */
36894_ACEOF
36895cat confdefs.h >>conftest.$ac_ext
36896cat >>conftest.$ac_ext <<_ACEOF
36897/* end confdefs.h. */
36898#include <signal.h>
36899int
36900main ()
36901{
36902
36903 extern void testSigHandler(int);
36904
36905 struct sigaction sa;
36906 sa.sa_handler = testSigHandler;
36907
36908 ;
36909 return 0;
36910}
36911_ACEOF
36912rm -f conftest.$ac_objext
36913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36914 (eval $ac_compile) 2>conftest.er1
a848cd7e 36915 ac_status=$?
ac1cb8d3
VS
36916 grep -v '^ *+' conftest.er1 >conftest.err
36917 rm -f conftest.er1
36918 cat conftest.err >&5
a848cd7e
SC
36919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36920 (exit $ac_status); } &&
479c790c 36921 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36923 (eval $ac_try) 2>&5
36924 ac_status=$?
36925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36926 (exit $ac_status); }; } &&
36927 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36929 (eval $ac_try) 2>&5
36930 ac_status=$?
36931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36932 (exit $ac_status); }; }; then
36933
36934 wx_cv_type_sa_handler=int
36935
36936else
36937 echo "$as_me: failed program was:" >&5
36938sed 's/^/| /' conftest.$ac_ext >&5
36939
36940
36941 wx_cv_type_sa_handler=void
36942
36943fi
ac1cb8d3 36944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36945
36946fi
36947echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36948echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
36949
a848cd7e
SC
36950 cat >>confdefs.h <<_ACEOF
36951#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36952_ACEOF
36953
36954 fi
36955fi
36956
eaff0f0d 36957if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
36958 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
36959echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
36960if test "${wx_cv_func_backtrace+set}" = set; then
36961 echo $ECHO_N "(cached) $ECHO_C" >&6
36962else
36963
36964 cat >conftest.$ac_ext <<_ACEOF
36965/* confdefs.h. */
36966_ACEOF
36967cat confdefs.h >>conftest.$ac_ext
36968cat >>conftest.$ac_ext <<_ACEOF
36969/* end confdefs.h. */
36970#include <execinfo.h>
36971int
36972main ()
36973{
36974
36975 void *trace[1];
36976 char **messages;
36977
36978 backtrace(trace, 1);
36979 messages = backtrace_symbols(trace, 1);
36980
36981 ;
36982 return 0;
36983}
36984_ACEOF
36985rm -f conftest.$ac_objext
36986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36987 (eval $ac_compile) 2>conftest.er1
36988 ac_status=$?
36989 grep -v '^ *+' conftest.er1 >conftest.err
36990 rm -f conftest.er1
36991 cat conftest.err >&5
36992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36993 (exit $ac_status); } &&
479c790c 36994 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
36995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36996 (eval $ac_try) 2>&5
36997 ac_status=$?
36998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36999 (exit $ac_status); }; } &&
37000 { ac_try='test -s conftest.$ac_objext'
37001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37002 (eval $ac_try) 2>&5
37003 ac_status=$?
37004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37005 (exit $ac_status); }; }; then
37006 wx_cv_func_backtrace=yes
37007else
37008 echo "$as_me: failed program was:" >&5
37009sed 's/^/| /' conftest.$ac_ext >&5
37010
37011wx_cv_func_backtrace=no
37012
37013fi
37014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37015
37016
37017fi
37018echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
37019echo "${ECHO_T}$wx_cv_func_backtrace" >&6
37020
37021
37022 if test "$wx_cv_func_backtrace" = "no"; then
37023 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
37024echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
37025 wxUSE_STACKWALKER=no
37026 else
37027 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
37028echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
37029if test "${wx_cv_func_cxa_demangle+set}" = set; then
37030 echo $ECHO_N "(cached) $ECHO_C" >&6
37031else
37032
37033 cat >conftest.$ac_ext <<_ACEOF
37034/* confdefs.h. */
37035_ACEOF
37036cat confdefs.h >>conftest.$ac_ext
37037cat >>conftest.$ac_ext <<_ACEOF
37038/* end confdefs.h. */
37039#include <cxxabi.h>
37040int
37041main ()
37042{
37043
37044 int rc;
37045 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
37046
37047 ;
37048 return 0;
37049}
37050_ACEOF
dfe0c803
JS
37051rm -f conftest.$ac_objext conftest$ac_exeext
37052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37053 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
37054 ac_status=$?
37055 grep -v '^ *+' conftest.er1 >conftest.err
37056 rm -f conftest.er1
37057 cat conftest.err >&5
37058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37059 (exit $ac_status); } &&
479c790c 37060 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
37061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37062 (eval $ac_try) 2>&5
37063 ac_status=$?
37064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37065 (exit $ac_status); }; } &&
dfe0c803 37066 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
37067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37068 (eval $ac_try) 2>&5
37069 ac_status=$?
37070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37071 (exit $ac_status); }; }; then
37072 wx_cv_func_cxa_demangle=yes
37073else
37074 echo "$as_me: failed program was:" >&5
37075sed 's/^/| /' conftest.$ac_ext >&5
37076
37077wx_cv_func_cxa_demangle=no
37078
37079fi
dfe0c803
JS
37080rm -f conftest.err conftest.$ac_objext \
37081 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
37082
37083
37084fi
37085echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
37086echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
37087
37088 if test "$wx_cv_func_cxa_demangle" = "yes"; then
37089 cat >>confdefs.h <<\_ACEOF
37090#define HAVE_CXA_DEMANGLE 1
37091_ACEOF
37092
37093 fi
37094 fi
eaff0f0d
VZ
37095fi
37096
898beab1
DE
37097if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
37098 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
37099echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
37100 wxUSE_STACKWALKER=no
37101fi
37102
37103
a848cd7e
SC
37104
37105
37106for ac_func in mkstemp mktemp
37107do
37108as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37109echo "$as_me:$LINENO: checking for $ac_func" >&5
37110echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37111if eval "test \"\${$as_ac_var+set}\" = set"; then
37112 echo $ECHO_N "(cached) $ECHO_C" >&6
37113else
37114 cat >conftest.$ac_ext <<_ACEOF
37115/* confdefs.h. */
37116_ACEOF
37117cat confdefs.h >>conftest.$ac_ext
37118cat >>conftest.$ac_ext <<_ACEOF
37119/* end confdefs.h. */
ac1cb8d3
VS
37120/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37122#define $ac_func innocuous_$ac_func
37123
a848cd7e
SC
37124/* System header to define __stub macros and hopefully few prototypes,
37125 which can conflict with char $ac_func (); below.
37126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37127 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37128
a848cd7e
SC
37129#ifdef __STDC__
37130# include <limits.h>
37131#else
37132# include <assert.h>
37133#endif
ac1cb8d3
VS
37134
37135#undef $ac_func
37136
a848cd7e
SC
37137/* Override any gcc2 internal prototype to avoid an error. */
37138#ifdef __cplusplus
37139extern "C"
37140{
37141#endif
37142/* We use char because int might match the return type of a gcc2
37143 builtin and then its argument prototype would still apply. */
37144char $ac_func ();
37145/* The GNU C library defines this for functions which it implements
37146 to always fail with ENOSYS. Some functions are actually named
37147 something starting with __ and the normal name is an alias. */
37148#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37149choke me
37150#else
37151char (*f) () = $ac_func;
37152#endif
37153#ifdef __cplusplus
37154}
37155#endif
37156
37157int
37158main ()
37159{
37160return f != $ac_func;
37161 ;
37162 return 0;
37163}
37164_ACEOF
37165rm -f conftest.$ac_objext conftest$ac_exeext
37166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37167 (eval $ac_link) 2>conftest.er1
a848cd7e 37168 ac_status=$?
ac1cb8d3
VS
37169 grep -v '^ *+' conftest.er1 >conftest.err
37170 rm -f conftest.er1
37171 cat conftest.err >&5
a848cd7e
SC
37172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37173 (exit $ac_status); } &&
479c790c 37174 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37176 (eval $ac_try) 2>&5
37177 ac_status=$?
37178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37179 (exit $ac_status); }; } &&
37180 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37182 (eval $ac_try) 2>&5
37183 ac_status=$?
37184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37185 (exit $ac_status); }; }; then
37186 eval "$as_ac_var=yes"
37187else
37188 echo "$as_me: failed program was:" >&5
37189sed 's/^/| /' conftest.$ac_ext >&5
37190
37191eval "$as_ac_var=no"
37192fi
ac1cb8d3
VS
37193rm -f conftest.err conftest.$ac_objext \
37194 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37195fi
37196echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37197echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37198if test `eval echo '${'$as_ac_var'}'` = yes; then
37199 cat >>confdefs.h <<_ACEOF
37200#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37201_ACEOF
37202 break
37203fi
37204done
37205
37206
37207echo "$as_me:$LINENO: checking for statfs" >&5
37208echo $ECHO_N "checking for statfs... $ECHO_C" >&6
37209if test "${wx_cv_func_statfs+set}" = set; then
37210 echo $ECHO_N "(cached) $ECHO_C" >&6
37211else
37212 cat >conftest.$ac_ext <<_ACEOF
37213/* confdefs.h. */
37214_ACEOF
37215cat confdefs.h >>conftest.$ac_ext
37216cat >>conftest.$ac_ext <<_ACEOF
37217/* end confdefs.h. */
37218
37219 #if defined(__BSD__)
84ae7ca4
VZ
37220 #include <sys/param.h>
37221 #include <sys/mount.h>
a848cd7e 37222 #else
84ae7ca4 37223 #include <sys/vfs.h>
a848cd7e
SC
37224 #endif
37225
37226int
37227main ()
37228{
37229
37230 long l;
37231 struct statfs fs;
37232 statfs("/", &fs);
37233 l = fs.f_bsize;
37234 l += fs.f_blocks;
37235 l += fs.f_bavail;
37236
37237 ;
37238 return 0;
37239}
37240_ACEOF
37241rm -f conftest.$ac_objext
37242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37243 (eval $ac_compile) 2>conftest.er1
a848cd7e 37244 ac_status=$?
ac1cb8d3
VS
37245 grep -v '^ *+' conftest.er1 >conftest.err
37246 rm -f conftest.er1
37247 cat conftest.err >&5
a848cd7e
SC
37248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37249 (exit $ac_status); } &&
479c790c 37250 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37252 (eval $ac_try) 2>&5
37253 ac_status=$?
37254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37255 (exit $ac_status); }; } &&
37256 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37258 (eval $ac_try) 2>&5
37259 ac_status=$?
37260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37261 (exit $ac_status); }; }; then
84ae7ca4 37262 wx_cv_func_statfs=yes
a848cd7e
SC
37263else
37264 echo "$as_me: failed program was:" >&5
37265sed 's/^/| /' conftest.$ac_ext >&5
37266
84ae7ca4 37267wx_cv_func_statfs=no
a848cd7e
SC
37268
37269fi
ac1cb8d3 37270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37271
37272fi
37273echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
37274echo "${ECHO_T}$wx_cv_func_statfs" >&6
37275
37276if test "$wx_cv_func_statfs" = "yes"; then
5d7b7554 37277 echo "$as_me:$LINENO: checking for statfs declaration" >&5
84ae7ca4
VZ
37278echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
37279if test "${wx_cv_func_statfs_decl+set}" = set; then
37280 echo $ECHO_N "(cached) $ECHO_C" >&6
37281else
0683aca6
VZ
37282 cat >conftest.$ac_ext <<_ACEOF
37283/* confdefs.h. */
37284_ACEOF
37285cat confdefs.h >>conftest.$ac_ext
37286cat >>conftest.$ac_ext <<_ACEOF
37287/* end confdefs.h. */
84ae7ca4 37288
0683aca6
VZ
37289 #if defined(__BSD__)
37290 #include <sys/param.h>
37291 #include <sys/mount.h>
37292 #else
37293 #include <sys/vfs.h>
37294 #endif
37295
37296int
37297main ()
37298{
37299
37300 struct statfs fs;
37301 statfs("", &fs);
37302
37303 ;
37304 return 0;
37305}
37306_ACEOF
37307rm -f conftest.$ac_objext
37308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37309 (eval $ac_compile) 2>conftest.er1
37310 ac_status=$?
37311 grep -v '^ *+' conftest.er1 >conftest.err
37312 rm -f conftest.er1
37313 cat conftest.err >&5
37314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37315 (exit $ac_status); } &&
479c790c 37316 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0683aca6
VZ
37317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37318 (eval $ac_try) 2>&5
37319 ac_status=$?
37320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37321 (exit $ac_status); }; } &&
37322 { ac_try='test -s conftest.$ac_objext'
37323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37324 (eval $ac_try) 2>&5
37325 ac_status=$?
37326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37327 (exit $ac_status); }; }; then
37328 wx_cv_func_statfs_decl=yes
37329else
37330 echo "$as_me: failed program was:" >&5
37331sed 's/^/| /' conftest.$ac_ext >&5
37332
37333wx_cv_func_statfs_decl=no
37334
37335fi
37336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
37337
37338fi
37339echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
37340echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
84ae7ca4
VZ
37341
37342 if test "$wx_cv_func_statfs_decl" = "yes"; then
37343 cat >>confdefs.h <<\_ACEOF
37344#define HAVE_STATFS_DECL 1
37345_ACEOF
37346
37347 fi
37348
a848cd7e
SC
37349 wx_cv_type_statvfs_t="struct statfs"
37350 cat >>confdefs.h <<\_ACEOF
37351#define HAVE_STATFS 1
37352_ACEOF
37353
37354else
37355 echo "$as_me:$LINENO: checking for statvfs" >&5
37356echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
37357if test "${wx_cv_func_statvfs+set}" = set; then
37358 echo $ECHO_N "(cached) $ECHO_C" >&6
37359else
37360 cat >conftest.$ac_ext <<_ACEOF
37361/* confdefs.h. */
37362_ACEOF
37363cat confdefs.h >>conftest.$ac_ext
37364cat >>conftest.$ac_ext <<_ACEOF
37365/* end confdefs.h. */
37366
37367 #include <stddef.h>
37368 #include <sys/statvfs.h>
37369
37370int
37371main ()
37372{
37373
37374 statvfs("/", NULL);
37375
37376 ;
37377 return 0;
37378}
37379_ACEOF
37380rm -f conftest.$ac_objext
37381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37382 (eval $ac_compile) 2>conftest.er1
a848cd7e 37383 ac_status=$?
ac1cb8d3
VS
37384 grep -v '^ *+' conftest.er1 >conftest.err
37385 rm -f conftest.er1
37386 cat conftest.err >&5
a848cd7e
SC
37387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37388 (exit $ac_status); } &&
479c790c 37389 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37391 (eval $ac_try) 2>&5
37392 ac_status=$?
37393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37394 (exit $ac_status); }; } &&
37395 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37397 (eval $ac_try) 2>&5
37398 ac_status=$?
37399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37400 (exit $ac_status); }; }; then
37401 wx_cv_func_statvfs=yes
37402else
37403 echo "$as_me: failed program was:" >&5
37404sed 's/^/| /' conftest.$ac_ext >&5
37405
37406wx_cv_func_statvfs=no
37407
37408fi
ac1cb8d3 37409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37410
37411fi
37412echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
37413echo "${ECHO_T}$wx_cv_func_statvfs" >&6
37414
37415 if test "$wx_cv_func_statvfs" = "yes"; then
5d7b7554 37416 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
a848cd7e
SC
37417echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
37418if test "${wx_cv_type_statvfs_t+set}" = set; then
37419 echo $ECHO_N "(cached) $ECHO_C" >&6
37420else
37421 cat >conftest.$ac_ext <<_ACEOF
37422/* confdefs.h. */
37423_ACEOF
37424cat confdefs.h >>conftest.$ac_ext
37425cat >>conftest.$ac_ext <<_ACEOF
37426/* end confdefs.h. */
37427
37428 #include <sys/statvfs.h>
37429
37430int
37431main ()
37432{
37433
37434 long l;
37435 statvfs_t fs;
37436 statvfs("/", &fs);
37437 l = fs.f_bsize;
37438 l += fs.f_blocks;
37439 l += fs.f_bavail;
37440
37441 ;
37442 return 0;
37443}
37444_ACEOF
37445rm -f conftest.$ac_objext
37446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37447 (eval $ac_compile) 2>conftest.er1
a848cd7e 37448 ac_status=$?
ac1cb8d3
VS
37449 grep -v '^ *+' conftest.er1 >conftest.err
37450 rm -f conftest.er1
37451 cat conftest.err >&5
a848cd7e
SC
37452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37453 (exit $ac_status); } &&
479c790c 37454 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37456 (eval $ac_try) 2>&5
37457 ac_status=$?
37458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37459 (exit $ac_status); }; } &&
37460 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37462 (eval $ac_try) 2>&5
37463 ac_status=$?
37464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37465 (exit $ac_status); }; }; then
37466 wx_cv_type_statvfs_t=statvfs_t
37467else
37468 echo "$as_me: failed program was:" >&5
37469sed 's/^/| /' conftest.$ac_ext >&5
37470
37471
37472 cat >conftest.$ac_ext <<_ACEOF
37473/* confdefs.h. */
37474_ACEOF
37475cat confdefs.h >>conftest.$ac_ext
37476cat >>conftest.$ac_ext <<_ACEOF
37477/* end confdefs.h. */
37478
37479 #include <sys/statvfs.h>
37480
37481int
37482main ()
37483{
37484
37485 long l;
37486 struct statvfs fs;
37487 statvfs("/", &fs);
37488 l = fs.f_bsize;
37489 l += fs.f_blocks;
37490 l += fs.f_bavail;
37491
37492 ;
37493 return 0;
37494}
37495_ACEOF
37496rm -f conftest.$ac_objext
37497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37498 (eval $ac_compile) 2>conftest.er1
a848cd7e 37499 ac_status=$?
ac1cb8d3
VS
37500 grep -v '^ *+' conftest.er1 >conftest.err
37501 rm -f conftest.er1
37502 cat conftest.err >&5
a848cd7e
SC
37503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37504 (exit $ac_status); } &&
479c790c 37505 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37507 (eval $ac_try) 2>&5
37508 ac_status=$?
37509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37510 (exit $ac_status); }; } &&
37511 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37513 (eval $ac_try) 2>&5
37514 ac_status=$?
37515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37516 (exit $ac_status); }; }; then
37517 wx_cv_type_statvfs_t="struct statvfs"
37518else
37519 echo "$as_me: failed program was:" >&5
37520sed 's/^/| /' conftest.$ac_ext >&5
37521
37522wx_cv_type_statvfs_t="unknown"
37523
37524fi
ac1cb8d3 37525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37526
37527
37528fi
ac1cb8d3 37529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37530
37531fi
37532echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
37533echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
37534
a848cd7e
SC
37535 if test "$wx_cv_type_statvfs_t" != "unknown"; then
37536 cat >>confdefs.h <<\_ACEOF
37537#define HAVE_STATVFS 1
37538_ACEOF
37539
37540 fi
37541 else
37542 wx_cv_type_statvfs_t="unknown"
37543 fi
37544fi
37545
37546if test "$wx_cv_type_statvfs_t" != "unknown"; then
37547 cat >>confdefs.h <<_ACEOF
37548#define WX_STATFS_T $wx_cv_type_statvfs_t
37549_ACEOF
37550
37551else
37552 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37553echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37554fi
37555
37556if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37557
37558
37559for ac_func in fcntl flock
37560do
37561as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37562echo "$as_me:$LINENO: checking for $ac_func" >&5
37563echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37564if eval "test \"\${$as_ac_var+set}\" = set"; then
37565 echo $ECHO_N "(cached) $ECHO_C" >&6
37566else
37567 cat >conftest.$ac_ext <<_ACEOF
37568/* confdefs.h. */
37569_ACEOF
37570cat confdefs.h >>conftest.$ac_ext
37571cat >>conftest.$ac_ext <<_ACEOF
37572/* end confdefs.h. */
ac1cb8d3
VS
37573/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37575#define $ac_func innocuous_$ac_func
37576
a848cd7e
SC
37577/* System header to define __stub macros and hopefully few prototypes,
37578 which can conflict with char $ac_func (); below.
37579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37580 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37581
a848cd7e
SC
37582#ifdef __STDC__
37583# include <limits.h>
37584#else
37585# include <assert.h>
37586#endif
ac1cb8d3
VS
37587
37588#undef $ac_func
37589
a848cd7e
SC
37590/* Override any gcc2 internal prototype to avoid an error. */
37591#ifdef __cplusplus
37592extern "C"
37593{
37594#endif
37595/* We use char because int might match the return type of a gcc2
37596 builtin and then its argument prototype would still apply. */
37597char $ac_func ();
37598/* The GNU C library defines this for functions which it implements
37599 to always fail with ENOSYS. Some functions are actually named
37600 something starting with __ and the normal name is an alias. */
37601#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37602choke me
37603#else
37604char (*f) () = $ac_func;
37605#endif
37606#ifdef __cplusplus
37607}
37608#endif
37609
37610int
37611main ()
37612{
37613return f != $ac_func;
37614 ;
37615 return 0;
37616}
37617_ACEOF
37618rm -f conftest.$ac_objext conftest$ac_exeext
37619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37620 (eval $ac_link) 2>conftest.er1
a848cd7e 37621 ac_status=$?
ac1cb8d3
VS
37622 grep -v '^ *+' conftest.er1 >conftest.err
37623 rm -f conftest.er1
37624 cat conftest.err >&5
a848cd7e
SC
37625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37626 (exit $ac_status); } &&
479c790c 37627 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37629 (eval $ac_try) 2>&5
37630 ac_status=$?
37631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37632 (exit $ac_status); }; } &&
37633 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37635 (eval $ac_try) 2>&5
37636 ac_status=$?
37637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37638 (exit $ac_status); }; }; then
37639 eval "$as_ac_var=yes"
37640else
37641 echo "$as_me: failed program was:" >&5
37642sed 's/^/| /' conftest.$ac_ext >&5
37643
37644eval "$as_ac_var=no"
37645fi
ac1cb8d3
VS
37646rm -f conftest.err conftest.$ac_objext \
37647 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37648fi
37649echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37650echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37651if test `eval echo '${'$as_ac_var'}'` = yes; then
37652 cat >>confdefs.h <<_ACEOF
37653#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37654_ACEOF
37655 break
37656fi
37657done
37658
37659
37660 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37661 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37662echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37663 wxUSE_SNGLINST_CHECKER=no
37664 fi
37665fi
37666
37667
37668for ac_func in timegm
37669do
37670as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37671echo "$as_me:$LINENO: checking for $ac_func" >&5
37672echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37673if eval "test \"\${$as_ac_var+set}\" = set"; then
37674 echo $ECHO_N "(cached) $ECHO_C" >&6
37675else
37676 cat >conftest.$ac_ext <<_ACEOF
37677/* confdefs.h. */
37678_ACEOF
37679cat confdefs.h >>conftest.$ac_ext
37680cat >>conftest.$ac_ext <<_ACEOF
37681/* end confdefs.h. */
ac1cb8d3
VS
37682/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37684#define $ac_func innocuous_$ac_func
37685
a848cd7e
SC
37686/* System header to define __stub macros and hopefully few prototypes,
37687 which can conflict with char $ac_func (); below.
37688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37689 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37690
a848cd7e
SC
37691#ifdef __STDC__
37692# include <limits.h>
37693#else
37694# include <assert.h>
37695#endif
ac1cb8d3
VS
37696
37697#undef $ac_func
37698
a848cd7e
SC
37699/* Override any gcc2 internal prototype to avoid an error. */
37700#ifdef __cplusplus
37701extern "C"
37702{
37703#endif
37704/* We use char because int might match the return type of a gcc2
37705 builtin and then its argument prototype would still apply. */
37706char $ac_func ();
37707/* The GNU C library defines this for functions which it implements
37708 to always fail with ENOSYS. Some functions are actually named
37709 something starting with __ and the normal name is an alias. */
37710#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37711choke me
37712#else
37713char (*f) () = $ac_func;
37714#endif
37715#ifdef __cplusplus
37716}
37717#endif
37718
37719int
37720main ()
37721{
37722return f != $ac_func;
37723 ;
37724 return 0;
37725}
37726_ACEOF
37727rm -f conftest.$ac_objext conftest$ac_exeext
37728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37729 (eval $ac_link) 2>conftest.er1
a848cd7e 37730 ac_status=$?
ac1cb8d3
VS
37731 grep -v '^ *+' conftest.er1 >conftest.err
37732 rm -f conftest.er1
37733 cat conftest.err >&5
a848cd7e
SC
37734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37735 (exit $ac_status); } &&
479c790c 37736 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37738 (eval $ac_try) 2>&5
37739 ac_status=$?
37740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37741 (exit $ac_status); }; } &&
37742 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37744 (eval $ac_try) 2>&5
37745 ac_status=$?
37746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37747 (exit $ac_status); }; }; then
37748 eval "$as_ac_var=yes"
37749else
37750 echo "$as_me: failed program was:" >&5
37751sed 's/^/| /' conftest.$ac_ext >&5
37752
37753eval "$as_ac_var=no"
37754fi
ac1cb8d3
VS
37755rm -f conftest.err conftest.$ac_objext \
37756 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37757fi
37758echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37759echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37760if test `eval echo '${'$as_ac_var'}'` = yes; then
37761 cat >>confdefs.h <<_ACEOF
37762#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37763_ACEOF
37764
37765fi
37766done
37767
37768
37769
37770
37771for ac_func in putenv setenv
37772do
37773as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37774echo "$as_me:$LINENO: checking for $ac_func" >&5
37775echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37776if eval "test \"\${$as_ac_var+set}\" = set"; then
37777 echo $ECHO_N "(cached) $ECHO_C" >&6
37778else
37779 cat >conftest.$ac_ext <<_ACEOF
37780/* confdefs.h. */
37781_ACEOF
37782cat confdefs.h >>conftest.$ac_ext
37783cat >>conftest.$ac_ext <<_ACEOF
37784/* end confdefs.h. */
ac1cb8d3
VS
37785/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37787#define $ac_func innocuous_$ac_func
37788
a848cd7e
SC
37789/* System header to define __stub macros and hopefully few prototypes,
37790 which can conflict with char $ac_func (); below.
37791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37792 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37793
a848cd7e
SC
37794#ifdef __STDC__
37795# include <limits.h>
37796#else
37797# include <assert.h>
37798#endif
ac1cb8d3
VS
37799
37800#undef $ac_func
37801
a848cd7e
SC
37802/* Override any gcc2 internal prototype to avoid an error. */
37803#ifdef __cplusplus
37804extern "C"
37805{
37806#endif
37807/* We use char because int might match the return type of a gcc2
37808 builtin and then its argument prototype would still apply. */
37809char $ac_func ();
37810/* The GNU C library defines this for functions which it implements
37811 to always fail with ENOSYS. Some functions are actually named
37812 something starting with __ and the normal name is an alias. */
37813#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37814choke me
37815#else
37816char (*f) () = $ac_func;
37817#endif
37818#ifdef __cplusplus
37819}
37820#endif
37821
37822int
37823main ()
37824{
37825return f != $ac_func;
37826 ;
37827 return 0;
37828}
37829_ACEOF
37830rm -f conftest.$ac_objext conftest$ac_exeext
37831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37832 (eval $ac_link) 2>conftest.er1
a848cd7e 37833 ac_status=$?
ac1cb8d3
VS
37834 grep -v '^ *+' conftest.er1 >conftest.err
37835 rm -f conftest.er1
37836 cat conftest.err >&5
a848cd7e
SC
37837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37838 (exit $ac_status); } &&
479c790c 37839 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37841 (eval $ac_try) 2>&5
37842 ac_status=$?
37843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37844 (exit $ac_status); }; } &&
37845 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37847 (eval $ac_try) 2>&5
37848 ac_status=$?
37849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37850 (exit $ac_status); }; }; then
37851 eval "$as_ac_var=yes"
37852else
37853 echo "$as_me: failed program was:" >&5
37854sed 's/^/| /' conftest.$ac_ext >&5
37855
37856eval "$as_ac_var=no"
37857fi
ac1cb8d3
VS
37858rm -f conftest.err conftest.$ac_objext \
37859 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37860fi
37861echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37862echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37863if test `eval echo '${'$as_ac_var'}'` = yes; then
37864 cat >>confdefs.h <<_ACEOF
37865#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37866_ACEOF
37867 break
37868fi
37869done
37870
37871
37872HAVE_SOME_SLEEP_FUNC=0
37873if test "$USE_BEOS" = 1; then
37874 cat >>confdefs.h <<\_ACEOF
37875#define HAVE_SLEEP 1
37876_ACEOF
37877
37878 HAVE_SOME_SLEEP_FUNC=1
37879fi
37880
37881if test "$USE_DARWIN" = 1; then
37882 cat >>confdefs.h <<\_ACEOF
37883#define HAVE_USLEEP 1
37884_ACEOF
37885
37886 HAVE_SOME_SLEEP_FUNC=1
37887fi
37888
37889if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
37890 POSIX4_LINK=
37891
37892for ac_func in nanosleep
37893do
37894as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37895echo "$as_me:$LINENO: checking for $ac_func" >&5
37896echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37897if eval "test \"\${$as_ac_var+set}\" = set"; then
37898 echo $ECHO_N "(cached) $ECHO_C" >&6
37899else
37900 cat >conftest.$ac_ext <<_ACEOF
37901/* confdefs.h. */
37902_ACEOF
37903cat confdefs.h >>conftest.$ac_ext
37904cat >>conftest.$ac_ext <<_ACEOF
37905/* end confdefs.h. */
ac1cb8d3
VS
37906/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37908#define $ac_func innocuous_$ac_func
37909
a848cd7e
SC
37910/* System header to define __stub macros and hopefully few prototypes,
37911 which can conflict with char $ac_func (); below.
37912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37913 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37914
a848cd7e
SC
37915#ifdef __STDC__
37916# include <limits.h>
37917#else
37918# include <assert.h>
37919#endif
ac1cb8d3
VS
37920
37921#undef $ac_func
37922
a848cd7e
SC
37923/* Override any gcc2 internal prototype to avoid an error. */
37924#ifdef __cplusplus
37925extern "C"
37926{
37927#endif
37928/* We use char because int might match the return type of a gcc2
37929 builtin and then its argument prototype would still apply. */
37930char $ac_func ();
37931/* The GNU C library defines this for functions which it implements
37932 to always fail with ENOSYS. Some functions are actually named
37933 something starting with __ and the normal name is an alias. */
37934#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37935choke me
37936#else
37937char (*f) () = $ac_func;
37938#endif
37939#ifdef __cplusplus
37940}
37941#endif
37942
37943int
37944main ()
37945{
37946return f != $ac_func;
37947 ;
37948 return 0;
37949}
37950_ACEOF
37951rm -f conftest.$ac_objext conftest$ac_exeext
37952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37953 (eval $ac_link) 2>conftest.er1
a848cd7e 37954 ac_status=$?
ac1cb8d3
VS
37955 grep -v '^ *+' conftest.er1 >conftest.err
37956 rm -f conftest.er1
37957 cat conftest.err >&5
a848cd7e
SC
37958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37959 (exit $ac_status); } &&
479c790c 37960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37962 (eval $ac_try) 2>&5
37963 ac_status=$?
37964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37965 (exit $ac_status); }; } &&
37966 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37968 (eval $ac_try) 2>&5
37969 ac_status=$?
37970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37971 (exit $ac_status); }; }; then
37972 eval "$as_ac_var=yes"
37973else
37974 echo "$as_me: failed program was:" >&5
37975sed 's/^/| /' conftest.$ac_ext >&5
37976
37977eval "$as_ac_var=no"
37978fi
ac1cb8d3
VS
37979rm -f conftest.err conftest.$ac_objext \
37980 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37981fi
37982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37983echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37984if test `eval echo '${'$as_ac_var'}'` = yes; then
37985 cat >>confdefs.h <<_ACEOF
37986#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37987_ACEOF
37988 cat >>confdefs.h <<\_ACEOF
37989#define HAVE_NANOSLEEP 1
37990_ACEOF
37991
37992else
37993
37994 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
37995echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
37996if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
37997 echo $ECHO_N "(cached) $ECHO_C" >&6
37998else
37999 ac_check_lib_save_LIBS=$LIBS
38000LIBS="-lposix4 $LIBS"
38001cat >conftest.$ac_ext <<_ACEOF
38002/* confdefs.h. */
38003_ACEOF
38004cat confdefs.h >>conftest.$ac_ext
38005cat >>conftest.$ac_ext <<_ACEOF
38006/* end confdefs.h. */
38007
38008/* Override any gcc2 internal prototype to avoid an error. */
38009#ifdef __cplusplus
38010extern "C"
38011#endif
38012/* We use char because int might match the return type of a gcc2
38013 builtin and then its argument prototype would still apply. */
38014char nanosleep ();
38015int
38016main ()
38017{
38018nanosleep ();
38019 ;
38020 return 0;
38021}
38022_ACEOF
38023rm -f conftest.$ac_objext conftest$ac_exeext
38024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38025 (eval $ac_link) 2>conftest.er1
a848cd7e 38026 ac_status=$?
ac1cb8d3
VS
38027 grep -v '^ *+' conftest.er1 >conftest.err
38028 rm -f conftest.er1
38029 cat conftest.err >&5
a848cd7e
SC
38030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38031 (exit $ac_status); } &&
479c790c 38032 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38034 (eval $ac_try) 2>&5
38035 ac_status=$?
38036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38037 (exit $ac_status); }; } &&
38038 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
38044 ac_cv_lib_posix4_nanosleep=yes
38045else
38046 echo "$as_me: failed program was:" >&5
38047sed 's/^/| /' conftest.$ac_ext >&5
38048
38049ac_cv_lib_posix4_nanosleep=no
38050fi
ac1cb8d3
VS
38051rm -f conftest.err conftest.$ac_objext \
38052 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38053LIBS=$ac_check_lib_save_LIBS
38054fi
38055echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
38056echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
38057if test $ac_cv_lib_posix4_nanosleep = yes; then
38058
38059 cat >>confdefs.h <<\_ACEOF
38060#define HAVE_NANOSLEEP 1
38061_ACEOF
38062
38063 POSIX4_LINK=" -lposix4"
38064
38065else
38066
38067
38068for ac_func in usleep
38069do
38070as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38071echo "$as_me:$LINENO: checking for $ac_func" >&5
38072echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38073if eval "test \"\${$as_ac_var+set}\" = set"; then
38074 echo $ECHO_N "(cached) $ECHO_C" >&6
38075else
38076 cat >conftest.$ac_ext <<_ACEOF
38077/* confdefs.h. */
38078_ACEOF
38079cat confdefs.h >>conftest.$ac_ext
38080cat >>conftest.$ac_ext <<_ACEOF
38081/* end confdefs.h. */
ac1cb8d3
VS
38082/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38084#define $ac_func innocuous_$ac_func
38085
a848cd7e
SC
38086/* System header to define __stub macros and hopefully few prototypes,
38087 which can conflict with char $ac_func (); below.
38088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38089 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38090
a848cd7e
SC
38091#ifdef __STDC__
38092# include <limits.h>
38093#else
38094# include <assert.h>
38095#endif
ac1cb8d3
VS
38096
38097#undef $ac_func
38098
a848cd7e
SC
38099/* Override any gcc2 internal prototype to avoid an error. */
38100#ifdef __cplusplus
38101extern "C"
38102{
38103#endif
38104/* We use char because int might match the return type of a gcc2
38105 builtin and then its argument prototype would still apply. */
38106char $ac_func ();
38107/* The GNU C library defines this for functions which it implements
38108 to always fail with ENOSYS. Some functions are actually named
38109 something starting with __ and the normal name is an alias. */
38110#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38111choke me
38112#else
38113char (*f) () = $ac_func;
38114#endif
38115#ifdef __cplusplus
38116}
38117#endif
38118
38119int
38120main ()
38121{
38122return f != $ac_func;
38123 ;
38124 return 0;
38125}
38126_ACEOF
38127rm -f conftest.$ac_objext conftest$ac_exeext
38128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38129 (eval $ac_link) 2>conftest.er1
a848cd7e 38130 ac_status=$?
ac1cb8d3
VS
38131 grep -v '^ *+' conftest.er1 >conftest.err
38132 rm -f conftest.er1
38133 cat conftest.err >&5
a848cd7e
SC
38134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38135 (exit $ac_status); } &&
479c790c 38136 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38138 (eval $ac_try) 2>&5
38139 ac_status=$?
38140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38141 (exit $ac_status); }; } &&
38142 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38144 (eval $ac_try) 2>&5
38145 ac_status=$?
38146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38147 (exit $ac_status); }; }; then
38148 eval "$as_ac_var=yes"
38149else
38150 echo "$as_me: failed program was:" >&5
38151sed 's/^/| /' conftest.$ac_ext >&5
38152
38153eval "$as_ac_var=no"
38154fi
ac1cb8d3
VS
38155rm -f conftest.err conftest.$ac_objext \
38156 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38157fi
38158echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38159echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38160if test `eval echo '${'$as_ac_var'}'` = yes; then
38161 cat >>confdefs.h <<_ACEOF
38162#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38163_ACEOF
38164 cat >>confdefs.h <<\_ACEOF
38165#define HAVE_USLEEP 1
38166_ACEOF
38167
38168else
38169 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
38170echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
38171
38172fi
38173done
38174
38175
38176
38177fi
38178
38179
38180
38181fi
38182done
38183
38184fi
38185
38186
38187
38188for ac_func in uname gethostname
38189do
38190as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38191echo "$as_me:$LINENO: checking for $ac_func" >&5
38192echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38193if eval "test \"\${$as_ac_var+set}\" = set"; then
38194 echo $ECHO_N "(cached) $ECHO_C" >&6
38195else
38196 cat >conftest.$ac_ext <<_ACEOF
38197/* confdefs.h. */
38198_ACEOF
38199cat confdefs.h >>conftest.$ac_ext
38200cat >>conftest.$ac_ext <<_ACEOF
38201/* end confdefs.h. */
ac1cb8d3
VS
38202/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38204#define $ac_func innocuous_$ac_func
38205
a848cd7e
SC
38206/* System header to define __stub macros and hopefully few prototypes,
38207 which can conflict with char $ac_func (); below.
38208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38209 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38210
a848cd7e
SC
38211#ifdef __STDC__
38212# include <limits.h>
38213#else
38214# include <assert.h>
38215#endif
ac1cb8d3
VS
38216
38217#undef $ac_func
38218
a848cd7e
SC
38219/* Override any gcc2 internal prototype to avoid an error. */
38220#ifdef __cplusplus
38221extern "C"
38222{
38223#endif
38224/* We use char because int might match the return type of a gcc2
38225 builtin and then its argument prototype would still apply. */
38226char $ac_func ();
38227/* The GNU C library defines this for functions which it implements
38228 to always fail with ENOSYS. Some functions are actually named
38229 something starting with __ and the normal name is an alias. */
38230#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38231choke me
38232#else
38233char (*f) () = $ac_func;
38234#endif
38235#ifdef __cplusplus
38236}
38237#endif
38238
38239int
38240main ()
38241{
38242return f != $ac_func;
38243 ;
38244 return 0;
38245}
38246_ACEOF
38247rm -f conftest.$ac_objext conftest$ac_exeext
38248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38249 (eval $ac_link) 2>conftest.er1
a848cd7e 38250 ac_status=$?
ac1cb8d3
VS
38251 grep -v '^ *+' conftest.er1 >conftest.err
38252 rm -f conftest.er1
38253 cat conftest.err >&5
a848cd7e
SC
38254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38255 (exit $ac_status); } &&
479c790c 38256 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38258 (eval $ac_try) 2>&5
38259 ac_status=$?
38260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38261 (exit $ac_status); }; } &&
38262 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38264 (eval $ac_try) 2>&5
38265 ac_status=$?
38266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38267 (exit $ac_status); }; }; then
38268 eval "$as_ac_var=yes"
38269else
38270 echo "$as_me: failed program was:" >&5
38271sed 's/^/| /' conftest.$ac_ext >&5
38272
38273eval "$as_ac_var=no"
38274fi
ac1cb8d3
VS
38275rm -f conftest.err conftest.$ac_objext \
38276 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38277fi
38278echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38279echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38280if test `eval echo '${'$as_ac_var'}'` = yes; then
38281 cat >>confdefs.h <<_ACEOF
38282#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38283_ACEOF
38284 break
38285fi
38286done
38287
38288
56632e81
MW
38289
38290 for wx_func in strtok_r
38291 do
38292 echo "$as_me:$LINENO: checking for $wx_func" >&5
38293echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
38294if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
a848cd7e
SC
38295 echo $ECHO_N "(cached) $ECHO_C" >&6
38296else
56632e81
MW
38297
38298 cat >conftest.$ac_ext <<_ACEOF
38299
38300 /* confdefs.h. */
a848cd7e
SC
38301_ACEOF
38302cat confdefs.h >>conftest.$ac_ext
38303cat >>conftest.$ac_ext <<_ACEOF
38304/* end confdefs.h. */
56632e81
MW
38305
38306 #define _REENTRANT
38307 $ac_includes_default
38308
a848cd7e
SC
38309int
38310main ()
38311{
56632e81
MW
38312
38313 #ifndef $wx_func
38314 &$wx_func;
38315 #endif
38316
5acfd58d 38317
a848cd7e
SC
38318 ;
38319 return 0;
38320}
56632e81 38321
a848cd7e 38322_ACEOF
56632e81
MW
38323rm -f conftest.$ac_objext conftest$ac_exeext
38324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38325 (eval $ac_link) 2>conftest.er1
a848cd7e 38326 ac_status=$?
ac1cb8d3
VS
38327 grep -v '^ *+' conftest.er1 >conftest.err
38328 rm -f conftest.er1
38329 cat conftest.err >&5
a848cd7e
SC
38330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38331 (exit $ac_status); } &&
479c790c 38332 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38334 (eval $ac_try) 2>&5
38335 ac_status=$?
38336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38337 (exit $ac_status); }; } &&
56632e81 38338 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38340 (eval $ac_try) 2>&5
38341 ac_status=$?
38342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38343 (exit $ac_status); }; }; then
56632e81 38344 eval wx_cv_func_$wx_func=yes
a848cd7e
SC
38345else
38346 echo "$as_me: failed program was:" >&5
38347sed 's/^/| /' conftest.$ac_ext >&5
38348
56632e81 38349eval wx_cv_func_$wx_func=no
a848cd7e 38350fi
56632e81
MW
38351rm -f conftest.err conftest.$ac_objext \
38352 conftest$ac_exeext conftest.$ac_ext
a848cd7e 38353
56632e81
MW
38354fi
38355echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
38356echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
a848cd7e 38357
56632e81
MW
38358 if eval test \$wx_cv_func_$wx_func = yes
38359 then
38360 cat >>confdefs.h <<_ACEOF
38361#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
82a2636b
MW
38362_ACEOF
38363
38364
56632e81
MW
38365 else
38366 :
5acfd58d 38367
56632e81
MW
38368 fi
38369 done
5acfd58d 38370
a848cd7e 38371
a848cd7e
SC
38372INET_LINK=
38373
38374for ac_func in inet_addr
38375do
38376as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38377echo "$as_me:$LINENO: checking for $ac_func" >&5
38378echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38379if eval "test \"\${$as_ac_var+set}\" = set"; then
38380 echo $ECHO_N "(cached) $ECHO_C" >&6
38381else
38382 cat >conftest.$ac_ext <<_ACEOF
38383/* confdefs.h. */
38384_ACEOF
38385cat confdefs.h >>conftest.$ac_ext
38386cat >>conftest.$ac_ext <<_ACEOF
38387/* end confdefs.h. */
ac1cb8d3
VS
38388/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38390#define $ac_func innocuous_$ac_func
38391
a848cd7e
SC
38392/* System header to define __stub macros and hopefully few prototypes,
38393 which can conflict with char $ac_func (); below.
38394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38395 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38396
a848cd7e
SC
38397#ifdef __STDC__
38398# include <limits.h>
38399#else
38400# include <assert.h>
38401#endif
ac1cb8d3
VS
38402
38403#undef $ac_func
38404
a848cd7e
SC
38405/* Override any gcc2 internal prototype to avoid an error. */
38406#ifdef __cplusplus
38407extern "C"
38408{
38409#endif
38410/* We use char because int might match the return type of a gcc2
38411 builtin and then its argument prototype would still apply. */
38412char $ac_func ();
38413/* The GNU C library defines this for functions which it implements
38414 to always fail with ENOSYS. Some functions are actually named
38415 something starting with __ and the normal name is an alias. */
38416#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38417choke me
38418#else
38419char (*f) () = $ac_func;
38420#endif
38421#ifdef __cplusplus
38422}
38423#endif
38424
38425int
38426main ()
38427{
38428return f != $ac_func;
38429 ;
38430 return 0;
38431}
38432_ACEOF
38433rm -f conftest.$ac_objext conftest$ac_exeext
38434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38435 (eval $ac_link) 2>conftest.er1
a848cd7e 38436 ac_status=$?
ac1cb8d3
VS
38437 grep -v '^ *+' conftest.er1 >conftest.err
38438 rm -f conftest.er1
38439 cat conftest.err >&5
a848cd7e
SC
38440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38441 (exit $ac_status); } &&
479c790c 38442 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38444 (eval $ac_try) 2>&5
38445 ac_status=$?
38446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38447 (exit $ac_status); }; } &&
38448 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38450 (eval $ac_try) 2>&5
38451 ac_status=$?
38452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38453 (exit $ac_status); }; }; then
38454 eval "$as_ac_var=yes"
38455else
38456 echo "$as_me: failed program was:" >&5
38457sed 's/^/| /' conftest.$ac_ext >&5
38458
38459eval "$as_ac_var=no"
38460fi
ac1cb8d3
VS
38461rm -f conftest.err conftest.$ac_objext \
38462 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38463fi
38464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38465echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38466if test `eval echo '${'$as_ac_var'}'` = yes; then
38467 cat >>confdefs.h <<_ACEOF
38468#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38469_ACEOF
38470 cat >>confdefs.h <<\_ACEOF
38471#define HAVE_INET_ADDR 1
38472_ACEOF
38473
38474else
38475
38476 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
38477echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
38478if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
38479 echo $ECHO_N "(cached) $ECHO_C" >&6
38480else
38481 ac_check_lib_save_LIBS=$LIBS
38482LIBS="-lnsl $LIBS"
38483cat >conftest.$ac_ext <<_ACEOF
38484/* confdefs.h. */
38485_ACEOF
38486cat confdefs.h >>conftest.$ac_ext
38487cat >>conftest.$ac_ext <<_ACEOF
38488/* end confdefs.h. */
38489
38490/* Override any gcc2 internal prototype to avoid an error. */
38491#ifdef __cplusplus
38492extern "C"
38493#endif
38494/* We use char because int might match the return type of a gcc2
38495 builtin and then its argument prototype would still apply. */
38496char inet_addr ();
38497int
38498main ()
38499{
38500inet_addr ();
38501 ;
38502 return 0;
38503}
38504_ACEOF
38505rm -f conftest.$ac_objext conftest$ac_exeext
38506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38507 (eval $ac_link) 2>conftest.er1
a848cd7e 38508 ac_status=$?
ac1cb8d3
VS
38509 grep -v '^ *+' conftest.er1 >conftest.err
38510 rm -f conftest.er1
38511 cat conftest.err >&5
a848cd7e
SC
38512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38513 (exit $ac_status); } &&
479c790c 38514 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38516 (eval $ac_try) 2>&5
38517 ac_status=$?
38518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38519 (exit $ac_status); }; } &&
38520 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38522 (eval $ac_try) 2>&5
38523 ac_status=$?
38524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38525 (exit $ac_status); }; }; then
38526 ac_cv_lib_nsl_inet_addr=yes
38527else
38528 echo "$as_me: failed program was:" >&5
38529sed 's/^/| /' conftest.$ac_ext >&5
38530
38531ac_cv_lib_nsl_inet_addr=no
38532fi
ac1cb8d3
VS
38533rm -f conftest.err conftest.$ac_objext \
38534 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38535LIBS=$ac_check_lib_save_LIBS
38536fi
38537echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
38538echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
38539if test $ac_cv_lib_nsl_inet_addr = yes; then
38540 INET_LINK="nsl"
38541else
38542
38543 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38544echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
38545if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
38546 echo $ECHO_N "(cached) $ECHO_C" >&6
38547else
38548 ac_check_lib_save_LIBS=$LIBS
38549LIBS="-lresolv $LIBS"
38550cat >conftest.$ac_ext <<_ACEOF
38551/* confdefs.h. */
38552_ACEOF
38553cat confdefs.h >>conftest.$ac_ext
38554cat >>conftest.$ac_ext <<_ACEOF
38555/* end confdefs.h. */
38556
38557/* Override any gcc2 internal prototype to avoid an error. */
38558#ifdef __cplusplus
38559extern "C"
38560#endif
38561/* We use char because int might match the return type of a gcc2
38562 builtin and then its argument prototype would still apply. */
38563char inet_addr ();
38564int
38565main ()
38566{
38567inet_addr ();
38568 ;
38569 return 0;
38570}
38571_ACEOF
38572rm -f conftest.$ac_objext conftest$ac_exeext
38573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38574 (eval $ac_link) 2>conftest.er1
a848cd7e 38575 ac_status=$?
ac1cb8d3
VS
38576 grep -v '^ *+' conftest.er1 >conftest.err
38577 rm -f conftest.er1
38578 cat conftest.err >&5
a848cd7e
SC
38579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38580 (exit $ac_status); } &&
479c790c 38581 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38583 (eval $ac_try) 2>&5
38584 ac_status=$?
38585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38586 (exit $ac_status); }; } &&
38587 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38589 (eval $ac_try) 2>&5
38590 ac_status=$?
38591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38592 (exit $ac_status); }; }; then
38593 ac_cv_lib_resolv_inet_addr=yes
38594else
38595 echo "$as_me: failed program was:" >&5
38596sed 's/^/| /' conftest.$ac_ext >&5
38597
38598ac_cv_lib_resolv_inet_addr=no
38599fi
ac1cb8d3
VS
38600rm -f conftest.err conftest.$ac_objext \
38601 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38602LIBS=$ac_check_lib_save_LIBS
38603fi
38604echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38605echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
38606if test $ac_cv_lib_resolv_inet_addr = yes; then
38607 INET_LINK="resolv"
38608else
38609
38610 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38611echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
38612if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38613 echo $ECHO_N "(cached) $ECHO_C" >&6
38614else
38615 ac_check_lib_save_LIBS=$LIBS
38616LIBS="-lsocket $LIBS"
38617cat >conftest.$ac_ext <<_ACEOF
38618/* confdefs.h. */
38619_ACEOF
38620cat confdefs.h >>conftest.$ac_ext
38621cat >>conftest.$ac_ext <<_ACEOF
38622/* end confdefs.h. */
38623
38624/* Override any gcc2 internal prototype to avoid an error. */
38625#ifdef __cplusplus
38626extern "C"
38627#endif
38628/* We use char because int might match the return type of a gcc2
38629 builtin and then its argument prototype would still apply. */
38630char inet_addr ();
38631int
38632main ()
38633{
38634inet_addr ();
38635 ;
38636 return 0;
38637}
38638_ACEOF
38639rm -f conftest.$ac_objext conftest$ac_exeext
38640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38641 (eval $ac_link) 2>conftest.er1
a848cd7e 38642 ac_status=$?
ac1cb8d3
VS
38643 grep -v '^ *+' conftest.er1 >conftest.err
38644 rm -f conftest.er1
38645 cat conftest.err >&5
a848cd7e
SC
38646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38647 (exit $ac_status); } &&
479c790c 38648 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38650 (eval $ac_try) 2>&5
38651 ac_status=$?
38652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38653 (exit $ac_status); }; } &&
38654 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38656 (eval $ac_try) 2>&5
38657 ac_status=$?
38658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38659 (exit $ac_status); }; }; then
38660 ac_cv_lib_socket_inet_addr=yes
38661else
38662 echo "$as_me: failed program was:" >&5
38663sed 's/^/| /' conftest.$ac_ext >&5
38664
38665ac_cv_lib_socket_inet_addr=no
38666fi
ac1cb8d3
VS
38667rm -f conftest.err conftest.$ac_objext \
38668 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38669LIBS=$ac_check_lib_save_LIBS
38670fi
38671echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38672echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
38673if test $ac_cv_lib_socket_inet_addr = yes; then
38674 INET_LINK="socket"
38675
38676fi
38677
38678
38679
38680fi
38681
38682
38683
38684fi
38685
38686
38687
38688fi
38689done
38690
38691
38692
38693for ac_func in inet_aton
38694do
38695as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38696echo "$as_me:$LINENO: checking for $ac_func" >&5
38697echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38698if eval "test \"\${$as_ac_var+set}\" = set"; then
38699 echo $ECHO_N "(cached) $ECHO_C" >&6
38700else
38701 cat >conftest.$ac_ext <<_ACEOF
38702/* confdefs.h. */
38703_ACEOF
38704cat confdefs.h >>conftest.$ac_ext
38705cat >>conftest.$ac_ext <<_ACEOF
38706/* end confdefs.h. */
ac1cb8d3
VS
38707/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38709#define $ac_func innocuous_$ac_func
38710
a848cd7e
SC
38711/* System header to define __stub macros and hopefully few prototypes,
38712 which can conflict with char $ac_func (); below.
38713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38714 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38715
a848cd7e
SC
38716#ifdef __STDC__
38717# include <limits.h>
38718#else
38719# include <assert.h>
38720#endif
ac1cb8d3
VS
38721
38722#undef $ac_func
38723
a848cd7e
SC
38724/* Override any gcc2 internal prototype to avoid an error. */
38725#ifdef __cplusplus
38726extern "C"
38727{
38728#endif
38729/* We use char because int might match the return type of a gcc2
38730 builtin and then its argument prototype would still apply. */
38731char $ac_func ();
38732/* The GNU C library defines this for functions which it implements
38733 to always fail with ENOSYS. Some functions are actually named
38734 something starting with __ and the normal name is an alias. */
38735#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38736choke me
38737#else
38738char (*f) () = $ac_func;
38739#endif
38740#ifdef __cplusplus
38741}
38742#endif
38743
38744int
38745main ()
38746{
38747return f != $ac_func;
38748 ;
38749 return 0;
38750}
38751_ACEOF
38752rm -f conftest.$ac_objext conftest$ac_exeext
38753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38754 (eval $ac_link) 2>conftest.er1
a848cd7e 38755 ac_status=$?
ac1cb8d3
VS
38756 grep -v '^ *+' conftest.er1 >conftest.err
38757 rm -f conftest.er1
38758 cat conftest.err >&5
a848cd7e
SC
38759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38760 (exit $ac_status); } &&
479c790c 38761 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38763 (eval $ac_try) 2>&5
38764 ac_status=$?
38765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38766 (exit $ac_status); }; } &&
38767 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38769 (eval $ac_try) 2>&5
38770 ac_status=$?
38771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38772 (exit $ac_status); }; }; then
38773 eval "$as_ac_var=yes"
38774else
38775 echo "$as_me: failed program was:" >&5
38776sed 's/^/| /' conftest.$ac_ext >&5
38777
38778eval "$as_ac_var=no"
38779fi
ac1cb8d3
VS
38780rm -f conftest.err conftest.$ac_objext \
38781 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38782fi
38783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38784echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38785if test `eval echo '${'$as_ac_var'}'` = yes; then
38786 cat >>confdefs.h <<_ACEOF
38787#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38788_ACEOF
38789 cat >>confdefs.h <<\_ACEOF
38790#define HAVE_INET_ATON 1
38791_ACEOF
38792
38793else
38794
38795 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38796echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38797echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
38798if eval "test \"\${$as_ac_Lib+set}\" = set"; then
38799 echo $ECHO_N "(cached) $ECHO_C" >&6
38800else
38801 ac_check_lib_save_LIBS=$LIBS
38802LIBS="-l$INET_LINK $LIBS"
38803cat >conftest.$ac_ext <<_ACEOF
38804/* confdefs.h. */
38805_ACEOF
38806cat confdefs.h >>conftest.$ac_ext
38807cat >>conftest.$ac_ext <<_ACEOF
38808/* end confdefs.h. */
38809
38810/* Override any gcc2 internal prototype to avoid an error. */
38811#ifdef __cplusplus
38812extern "C"
38813#endif
38814/* We use char because int might match the return type of a gcc2
38815 builtin and then its argument prototype would still apply. */
38816char inet_aton ();
38817int
38818main ()
38819{
38820inet_aton ();
38821 ;
38822 return 0;
38823}
38824_ACEOF
38825rm -f conftest.$ac_objext conftest$ac_exeext
38826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38827 (eval $ac_link) 2>conftest.er1
a848cd7e 38828 ac_status=$?
ac1cb8d3
VS
38829 grep -v '^ *+' conftest.er1 >conftest.err
38830 rm -f conftest.er1
38831 cat conftest.err >&5
a848cd7e
SC
38832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38833 (exit $ac_status); } &&
479c790c 38834 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38836 (eval $ac_try) 2>&5
38837 ac_status=$?
38838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38839 (exit $ac_status); }; } &&
38840 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38842 (eval $ac_try) 2>&5
38843 ac_status=$?
38844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38845 (exit $ac_status); }; }; then
38846 eval "$as_ac_Lib=yes"
38847else
38848 echo "$as_me: failed program was:" >&5
38849sed 's/^/| /' conftest.$ac_ext >&5
38850
38851eval "$as_ac_Lib=no"
38852fi
ac1cb8d3
VS
38853rm -f conftest.err conftest.$ac_objext \
38854 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38855LIBS=$ac_check_lib_save_LIBS
38856fi
38857echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
38858echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
38859if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38860 cat >>confdefs.h <<\_ACEOF
38861#define HAVE_INET_ATON 1
38862_ACEOF
38863
38864fi
38865
38866
38867fi
38868done
38869
38870
38871if test "x$INET_LINK" != "x"; then
38872 cat >>confdefs.h <<\_ACEOF
38873#define HAVE_INET_ADDR 1
38874_ACEOF
38875
38876 INET_LINK=" -l$INET_LINK"
38877fi
38878
f8f6c91a
MW
38879
38880 for wx_func in fdopen
38881 do
38882 echo "$as_me:$LINENO: checking for $wx_func" >&5
38883echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
38884if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
38885 echo $ECHO_N "(cached) $ECHO_C" >&6
38886else
38887
38888 cat >conftest.$ac_ext <<_ACEOF
38889
38890 /* confdefs.h. */
38891_ACEOF
38892cat confdefs.h >>conftest.$ac_ext
38893cat >>conftest.$ac_ext <<_ACEOF
38894/* end confdefs.h. */
38895
38896
38897 $ac_includes_default
38898
38899int
38900main ()
38901{
38902
38903 #ifndef $wx_func
38904 &$wx_func;
38905 #endif
38906
38907
38908 ;
38909 return 0;
38910}
38911
38912_ACEOF
38913rm -f conftest.$ac_objext conftest$ac_exeext
38914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38915 (eval $ac_link) 2>conftest.er1
38916 ac_status=$?
38917 grep -v '^ *+' conftest.er1 >conftest.err
38918 rm -f conftest.er1
38919 cat conftest.err >&5
38920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38921 (exit $ac_status); } &&
38922 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
38923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38924 (eval $ac_try) 2>&5
38925 ac_status=$?
38926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38927 (exit $ac_status); }; } &&
38928 { ac_try='test -s conftest$ac_exeext'
38929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38930 (eval $ac_try) 2>&5
38931 ac_status=$?
38932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38933 (exit $ac_status); }; }; then
38934 eval wx_cv_func_$wx_func=yes
38935else
38936 echo "$as_me: failed program was:" >&5
38937sed 's/^/| /' conftest.$ac_ext >&5
38938
38939eval wx_cv_func_$wx_func=no
a848cd7e 38940fi
f8f6c91a
MW
38941rm -f conftest.err conftest.$ac_objext \
38942 conftest$ac_exeext conftest.$ac_ext
38943
38944fi
38945echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
38946echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
38947
38948 if eval test \$wx_cv_func_$wx_func = yes
38949 then
38950 cat >>confdefs.h <<_ACEOF
38951#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
38952_ACEOF
38953
38954
38955 else
38956 :
38957
38958 fi
38959 done
38960
38961
38962fi
38963
a848cd7e
SC
38964
38965
38966
38967EXTRALIBS_ESD=
38968echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
38969echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
38970if test "${ac_cv_lib_esd_esd_close+set}" = set; then
38971 echo $ECHO_N "(cached) $ECHO_C" >&6
38972else
38973 ac_check_lib_save_LIBS=$LIBS
38974LIBS="-lesd $LIBS"
38975cat >conftest.$ac_ext <<_ACEOF
38976/* confdefs.h. */
38977_ACEOF
38978cat confdefs.h >>conftest.$ac_ext
38979cat >>conftest.$ac_ext <<_ACEOF
38980/* end confdefs.h. */
38981
38982/* Override any gcc2 internal prototype to avoid an error. */
38983#ifdef __cplusplus
38984extern "C"
38985#endif
38986/* We use char because int might match the return type of a gcc2
38987 builtin and then its argument prototype would still apply. */
38988char esd_close ();
38989int
38990main ()
38991{
38992esd_close ();
38993 ;
38994 return 0;
38995}
38996_ACEOF
38997rm -f conftest.$ac_objext conftest$ac_exeext
38998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38999 (eval $ac_link) 2>conftest.er1
a848cd7e 39000 ac_status=$?
ac1cb8d3
VS
39001 grep -v '^ *+' conftest.er1 >conftest.err
39002 rm -f conftest.er1
39003 cat conftest.err >&5
a848cd7e
SC
39004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39005 (exit $ac_status); } &&
479c790c 39006 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39008 (eval $ac_try) 2>&5
39009 ac_status=$?
39010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39011 (exit $ac_status); }; } &&
39012 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39014 (eval $ac_try) 2>&5
39015 ac_status=$?
39016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39017 (exit $ac_status); }; }; then
39018 ac_cv_lib_esd_esd_close=yes
39019else
39020 echo "$as_me: failed program was:" >&5
39021sed 's/^/| /' conftest.$ac_ext >&5
39022
39023ac_cv_lib_esd_esd_close=no
39024fi
ac1cb8d3
VS
39025rm -f conftest.err conftest.$ac_objext \
39026 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39027LIBS=$ac_check_lib_save_LIBS
39028fi
39029echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
39030echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
39031if test $ac_cv_lib_esd_esd_close = yes; then
39032
39033
39034for ac_header in esd.h
39035do
39036as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39037if eval "test \"\${$as_ac_Header+set}\" = set"; then
39038 echo "$as_me:$LINENO: checking for $ac_header" >&5
39039echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39040if eval "test \"\${$as_ac_Header+set}\" = set"; then
39041 echo $ECHO_N "(cached) $ECHO_C" >&6
39042fi
39043echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39044echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39045else
39046 # Is the header compilable?
39047echo "$as_me:$LINENO: checking $ac_header usability" >&5
39048echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39049cat >conftest.$ac_ext <<_ACEOF
39050/* confdefs.h. */
39051_ACEOF
39052cat confdefs.h >>conftest.$ac_ext
39053cat >>conftest.$ac_ext <<_ACEOF
39054/* end confdefs.h. */
39055$ac_includes_default
39056#include <$ac_header>
39057_ACEOF
39058rm -f conftest.$ac_objext
39059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39060 (eval $ac_compile) 2>conftest.er1
a848cd7e 39061 ac_status=$?
ac1cb8d3
VS
39062 grep -v '^ *+' conftest.er1 >conftest.err
39063 rm -f conftest.er1
39064 cat conftest.err >&5
a848cd7e
SC
39065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39066 (exit $ac_status); } &&
479c790c 39067 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39069 (eval $ac_try) 2>&5
39070 ac_status=$?
39071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39072 (exit $ac_status); }; } &&
39073 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39075 (eval $ac_try) 2>&5
39076 ac_status=$?
39077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39078 (exit $ac_status); }; }; then
39079 ac_header_compiler=yes
39080else
39081 echo "$as_me: failed program was:" >&5
39082sed 's/^/| /' conftest.$ac_ext >&5
39083
39084ac_header_compiler=no
39085fi
ac1cb8d3 39086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39087echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39088echo "${ECHO_T}$ac_header_compiler" >&6
39089
39090# Is the header present?
39091echo "$as_me:$LINENO: checking $ac_header presence" >&5
39092echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39093cat >conftest.$ac_ext <<_ACEOF
39094/* confdefs.h. */
39095_ACEOF
39096cat confdefs.h >>conftest.$ac_ext
39097cat >>conftest.$ac_ext <<_ACEOF
39098/* end confdefs.h. */
39099#include <$ac_header>
39100_ACEOF
39101if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39103 ac_status=$?
39104 grep -v '^ *+' conftest.er1 >conftest.err
39105 rm -f conftest.er1
39106 cat conftest.err >&5
39107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39108 (exit $ac_status); } >/dev/null; then
39109 if test -s conftest.err; then
5d7b7554
VZ
39110 ac_cpp_err=$ac_cxx_preproc_warn_flag
39111 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
39112 else
39113 ac_cpp_err=
39114 fi
39115else
39116 ac_cpp_err=yes
39117fi
39118if test -z "$ac_cpp_err"; then
39119 ac_header_preproc=yes
39120else
39121 echo "$as_me: failed program was:" >&5
39122sed 's/^/| /' conftest.$ac_ext >&5
39123
39124 ac_header_preproc=no
39125fi
39126rm -f conftest.err conftest.$ac_ext
39127echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39128echo "${ECHO_T}$ac_header_preproc" >&6
39129
39130# So? What about this header?
5d7b7554 39131case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 39132 yes:no: )
a848cd7e
SC
39133 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39134echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39136echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39137 ac_header_preproc=yes
a848cd7e 39138 ;;
ac1cb8d3 39139 no:yes:* )
a848cd7e
SC
39140 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39141echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39142 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39143echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39144 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39145echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39146 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39147echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39149echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39150 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39151echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39152 (
39153 cat <<\_ASBOX
ac1cb8d3
VS
39154## ----------------------------------------- ##
39155## Report this to wx-dev@lists.wxwidgets.org ##
39156## ----------------------------------------- ##
a848cd7e
SC
39157_ASBOX
39158 ) |
39159 sed "s/^/$as_me: WARNING: /" >&2
39160 ;;
39161esac
39162echo "$as_me:$LINENO: checking for $ac_header" >&5
39163echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39164if eval "test \"\${$as_ac_Header+set}\" = set"; then
39165 echo $ECHO_N "(cached) $ECHO_C" >&6
39166else
ac1cb8d3 39167 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39168fi
39169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39170echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39171
39172fi
39173if test `eval echo '${'$as_ac_Header'}'` = yes; then
39174 cat >>confdefs.h <<_ACEOF
39175#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39176_ACEOF
39177
39178 EXTRALIBS_ESD="-lesd"
39179
39180fi
39181
39182done
39183
39184
39185fi
39186
39187
39188
39189echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
39190echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
39191cat >conftest.$ac_ext <<_ACEOF
39192/* confdefs.h. */
39193_ACEOF
39194cat confdefs.h >>conftest.$ac_ext
39195cat >>conftest.$ac_ext <<_ACEOF
39196/* end confdefs.h. */
39197#ifdef __linux__
39198 #include <linux/cdrom.h>
39199 #else
39200 /* For Solaris */
39201 #include <sys/cdio.h>
39202 #endif
39203
39204int
39205main ()
39206{
39207struct cdrom_tocentry entry, old_entry;
39208 ;
39209 return 0;
39210}
39211_ACEOF
39212rm -f conftest.$ac_objext
39213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39214 (eval $ac_compile) 2>conftest.er1
a848cd7e 39215 ac_status=$?
ac1cb8d3
VS
39216 grep -v '^ *+' conftest.er1 >conftest.err
39217 rm -f conftest.er1
39218 cat conftest.err >&5
a848cd7e
SC
39219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39220 (exit $ac_status); } &&
479c790c 39221 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39223 (eval $ac_try) 2>&5
39224 ac_status=$?
39225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39226 (exit $ac_status); }; } &&
39227 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39229 (eval $ac_try) 2>&5
39230 ac_status=$?
39231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39232 (exit $ac_status); }; }; then
39233 echo "$as_me:$LINENO: result: yes" >&5
39234echo "${ECHO_T}yes" >&6
39235 cat >>confdefs.h <<\_ACEOF
39236#define HAVE_KNOWN_CDROM_INTERFACE 1
39237_ACEOF
39238
39239else
39240 echo "$as_me: failed program was:" >&5
39241sed 's/^/| /' conftest.$ac_ext >&5
39242
39243echo "$as_me:$LINENO: result: no" >&5
39244echo "${ECHO_T}no" >&6
39245fi
ac1cb8d3 39246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39247
39248
39249cat >confcache <<\_ACEOF
39250# This file is a shell script that caches the results of configure
39251# tests run on this system so they can be shared between configure
39252# scripts and configure runs, see configure's option --config-cache.
39253# It is not useful on other systems. If it contains results you don't
39254# want to keep, you may remove or edit it.
39255#
39256# config.status only pays attention to the cache file if you give it
39257# the --recheck option to rerun configure.
39258#
39259# `ac_cv_env_foo' variables (set or unset) will be overridden when
39260# loading this file, other *unset* `ac_cv_foo' will be assigned the
39261# following values.
39262
39263_ACEOF
39264
39265# The following way of writing the cache mishandles newlines in values,
39266# but we know of no workaround that is simple, portable, and efficient.
39267# So, don't put newlines in cache variables' values.
39268# Ultrix sh set writes to stderr and can't be redirected directly,
39269# and sets the high bit in the cache file unless we assign to the vars.
39270{
39271 (set) 2>&1 |
39272 case `(ac_space=' '; set | grep ac_space) 2>&1` in
39273 *ac_space=\ *)
39274 # `set' does not quote correctly, so add quotes (double-quote
39275 # substitution turns \\\\ into \\, and sed turns \\ into \).
39276 sed -n \
ac1cb8d3
VS
39277 "s/'/'\\\\''/g;
39278 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
39279 ;;
39280 *)
39281 # `set' quotes correctly as required by POSIX, so do not add quotes.
39282 sed -n \
ac1cb8d3 39283 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
39284 ;;
39285 esac;
39286} |
39287 sed '
39288 t clear
39289 : clear
39290 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39291 t end
39292 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39293 : end' >>confcache
39294if diff $cache_file confcache >/dev/null 2>&1; then :; else
39295 if test -w $cache_file; then
39296 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
39297 cat confcache >$cache_file
39298 else
39299 echo "not updating unwritable cache $cache_file"
39300 fi
39301fi
39302rm -f confcache
39303
39304
a848cd7e
SC
39305if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
39306
39307
39308 THREADS_LINK=
e56f4f9e 39309 THREADS_CXXFLAGS=
a848cd7e
SC
39310
39311 if test "$wxUSE_THREADS" = "yes" ; then
39312 if test "$USE_BEOS" = 1; then
39313 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
39314echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
39315 wxUSE_THREADS="no"
39316 fi
39317 fi
39318
39319 if test "$wxUSE_THREADS" = "yes" ; then
39320
39321
39322 THREAD_OPTS="-pthread"
39323 case "${host}" in
39324 *-*-solaris2* | *-*-sunos4* )
39325 if test "x$GCC" = "xyes"; then
39326 THREAD_OPTS="-pthreads $THREAD_OPTS"
39327 else
39328 THREAD_OPTS="-mt $THREAD_OPTS"
39329 fi
39330 ;;
39331 *-*-freebsd*)
39332 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
39333 ;;
39334 *-*-darwin* | *-*-cygwin* )
39335 THREAD_OPTS=""
39336 ;;
39337 *-*-aix*)
39338 THREAD_OPTS="pthreads"
39339 ;;
39340 *-hp-hpux* )
00421666
MW
39341 if test "x$GCC" = "xyes"; then
39342 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
39343 THREAD_OPTS=""
39344 else
0093c2fc 39345 THREAD_OPTS="-mt"
a848cd7e
SC
39346 fi
39347 ;;
39348
39349 *-*-irix* )
39350 if test "x$GCC" = "xyes"; then
39351 THREAD_OPTS=""
39352 fi
39353 ;;
39354
39355 *-*-*UnixWare*)
39356 if test "x$GCC" != "xyes"; then
39357 THREAD_OPTS="-Ethread"
39358 fi
39359 ;;
39360 esac
39361
39362 THREAD_OPTS="$THREAD_OPTS pthread none"
39363
39364 THREADS_OK=no
39365 for flag in $THREAD_OPTS; do
39366 case $flag in
39367 none)
39368 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
39369echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
39370 ;;
39371
39372 -*)
39373 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
39374echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
e56f4f9e 39375 THREADS_CXXFLAGS="$flag"
a848cd7e
SC
39376 ;;
39377
39378 *)
39379 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
39380echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
39381 THREADS_LINK="-l$flag"
39382 ;;
39383 esac
39384
39385 save_LIBS="$LIBS"
e56f4f9e 39386 save_CXXFLAGS="$CXXFLAGS"
a848cd7e 39387 LIBS="$THREADS_LINK $LIBS"
e56f4f9e 39388 CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
a848cd7e
SC
39389
39390 cat >conftest.$ac_ext <<_ACEOF
39391/* confdefs.h. */
39392_ACEOF
39393cat confdefs.h >>conftest.$ac_ext
39394cat >>conftest.$ac_ext <<_ACEOF
39395/* end confdefs.h. */
39396#include <pthread.h>
39397int
39398main ()
39399{
39400pthread_create(0,0,0,0);
39401 ;
39402 return 0;
39403}
39404_ACEOF
39405rm -f conftest.$ac_objext conftest$ac_exeext
39406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39407 (eval $ac_link) 2>conftest.er1
a848cd7e 39408 ac_status=$?
ac1cb8d3
VS
39409 grep -v '^ *+' conftest.er1 >conftest.err
39410 rm -f conftest.er1
39411 cat conftest.err >&5
a848cd7e
SC
39412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39413 (exit $ac_status); } &&
479c790c 39414 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39416 (eval $ac_try) 2>&5
39417 ac_status=$?
39418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39419 (exit $ac_status); }; } &&
39420 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39422 (eval $ac_try) 2>&5
39423 ac_status=$?
39424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39425 (exit $ac_status); }; }; then
39426 THREADS_OK=yes
39427else
39428 echo "$as_me: failed program was:" >&5
39429sed 's/^/| /' conftest.$ac_ext >&5
39430
39431fi
ac1cb8d3
VS
39432rm -f conftest.err conftest.$ac_objext \
39433 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39434
39435 LIBS="$save_LIBS"
e56f4f9e 39436 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
39437
39438 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
39439echo "${ECHO_T}$THREADS_OK" >&6
39440 if test "x$THREADS_OK" = "xyes"; then
39441 break;
39442 fi
39443
39444 THREADS_LINK=""
e56f4f9e 39445 THREADS_CXXFLAGS=""
a848cd7e
SC
39446 done
39447
39448 if test "x$THREADS_OK" != "xyes"; then
39449 wxUSE_THREADS=no
39450 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
39451echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
39452 else
e56f4f9e 39453 LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
a848cd7e
SC
39454 LIBS="$THREADS_LINK $LIBS"
39455
39456 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39457echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
39458 flag=no
39459 case "${host}" in
39460 *-aix*)
39461 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
39462 flag="-D_THREAD_SAFE"
39463 ;;
39464 *-freebsd*)
39465 flag="-D_THREAD_SAFE"
39466 ;;
39467 *-hp-hpux* )
39468 flag="-D_REENTRANT"
39469 if test "x$GCC" != "xyes"; then
39470 flag="$flag -D_RWSTD_MULTI_THREAD"
39471 fi
39472 ;;
39473 *solaris* | alpha*-osf*)
39474 flag="-D_REENTRANT"
39475 ;;
39476 esac
39477 echo "$as_me:$LINENO: result: ${flag}" >&5
39478echo "${ECHO_T}${flag}" >&6
39479 if test "x$flag" != xno; then
e56f4f9e 39480 THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
a848cd7e
SC
39481 fi
39482
e56f4f9e 39483 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
a848cd7e
SC
39484 fi
39485 fi
39486
39487 if test "$wxUSE_THREADS" = "yes" ; then
39488
39489for ac_func in thr_setconcurrency
39490do
39491as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39492echo "$as_me:$LINENO: checking for $ac_func" >&5
39493echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39494if eval "test \"\${$as_ac_var+set}\" = set"; then
39495 echo $ECHO_N "(cached) $ECHO_C" >&6
39496else
39497 cat >conftest.$ac_ext <<_ACEOF
39498/* confdefs.h. */
39499_ACEOF
39500cat confdefs.h >>conftest.$ac_ext
39501cat >>conftest.$ac_ext <<_ACEOF
39502/* end confdefs.h. */
ac1cb8d3
VS
39503/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39505#define $ac_func innocuous_$ac_func
39506
a848cd7e
SC
39507/* System header to define __stub macros and hopefully few prototypes,
39508 which can conflict with char $ac_func (); below.
39509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39510 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39511
a848cd7e
SC
39512#ifdef __STDC__
39513# include <limits.h>
39514#else
39515# include <assert.h>
39516#endif
ac1cb8d3
VS
39517
39518#undef $ac_func
39519
a848cd7e
SC
39520/* Override any gcc2 internal prototype to avoid an error. */
39521#ifdef __cplusplus
39522extern "C"
39523{
39524#endif
39525/* We use char because int might match the return type of a gcc2
39526 builtin and then its argument prototype would still apply. */
39527char $ac_func ();
39528/* The GNU C library defines this for functions which it implements
39529 to always fail with ENOSYS. Some functions are actually named
39530 something starting with __ and the normal name is an alias. */
39531#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39532choke me
39533#else
39534char (*f) () = $ac_func;
39535#endif
39536#ifdef __cplusplus
39537}
39538#endif
39539
39540int
39541main ()
39542{
39543return f != $ac_func;
39544 ;
39545 return 0;
39546}
39547_ACEOF
39548rm -f conftest.$ac_objext conftest$ac_exeext
39549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39550 (eval $ac_link) 2>conftest.er1
a848cd7e 39551 ac_status=$?
ac1cb8d3
VS
39552 grep -v '^ *+' conftest.er1 >conftest.err
39553 rm -f conftest.er1
39554 cat conftest.err >&5
a848cd7e
SC
39555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39556 (exit $ac_status); } &&
479c790c 39557 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39559 (eval $ac_try) 2>&5
39560 ac_status=$?
39561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39562 (exit $ac_status); }; } &&
39563 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39565 (eval $ac_try) 2>&5
39566 ac_status=$?
39567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39568 (exit $ac_status); }; }; then
39569 eval "$as_ac_var=yes"
39570else
39571 echo "$as_me: failed program was:" >&5
39572sed 's/^/| /' conftest.$ac_ext >&5
39573
39574eval "$as_ac_var=no"
39575fi
ac1cb8d3
VS
39576rm -f conftest.err conftest.$ac_objext \
39577 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39578fi
39579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39580echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39581if test `eval echo '${'$as_ac_var'}'` = yes; then
39582 cat >>confdefs.h <<_ACEOF
39583#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39584_ACEOF
39585
39586fi
39587done
39588
39589
6ebeb4c7
VZ
39590 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
39591echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
39592if test "${wx_cv_func_pthread_cleanup+set}" = set; then
39593 echo $ECHO_N "(cached) $ECHO_C" >&6
39594else
39595
39596 cat >conftest.$ac_ext <<_ACEOF
39597/* confdefs.h. */
39598_ACEOF
39599cat confdefs.h >>conftest.$ac_ext
39600cat >>conftest.$ac_ext <<_ACEOF
39601/* end confdefs.h. */
39602#include <pthread.h>
39603 void ThreadCleanupFunc(void *p);
39604
39605int
39606main ()
39607{
39608
39609 void *p;
39610 pthread_cleanup_push(ThreadCleanupFunc, p);
39611 pthread_cleanup_pop(0);
39612
39613 ;
39614 return 0;
39615}
39616_ACEOF
39617rm -f conftest.$ac_objext
39618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39619 (eval $ac_compile) 2>conftest.er1
39620 ac_status=$?
39621 grep -v '^ *+' conftest.er1 >conftest.err
39622 rm -f conftest.er1
39623 cat conftest.err >&5
39624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39625 (exit $ac_status); } &&
479c790c 39626 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
39627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39628 (eval $ac_try) 2>&5
39629 ac_status=$?
39630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39631 (exit $ac_status); }; } &&
39632 { ac_try='test -s conftest.$ac_objext'
39633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39634 (eval $ac_try) 2>&5
39635 ac_status=$?
39636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39637 (exit $ac_status); }; }; then
39638
39639 wx_cv_func_pthread_cleanup=yes
39640
39641else
39642 echo "$as_me: failed program was:" >&5
39643sed 's/^/| /' conftest.$ac_ext >&5
39644
39645
39646 wx_cv_func_pthread_cleanup=no
39647
39648
39649fi
39650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39651
39652fi
39653echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39654echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
39655 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39656 cat >>confdefs.h <<\_ACEOF
39657#define wxHAVE_PTHREAD_CLEANUP 1
39658_ACEOF
39659
39660 fi
39661
a848cd7e
SC
39662
39663for ac_header in sched.h
39664do
39665as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39666if eval "test \"\${$as_ac_Header+set}\" = set"; then
39667 echo "$as_me:$LINENO: checking for $ac_header" >&5
39668echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39669if eval "test \"\${$as_ac_Header+set}\" = set"; then
39670 echo $ECHO_N "(cached) $ECHO_C" >&6
39671fi
39672echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39673echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39674else
39675 # Is the header compilable?
39676echo "$as_me:$LINENO: checking $ac_header usability" >&5
39677echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39678cat >conftest.$ac_ext <<_ACEOF
39679/* confdefs.h. */
39680_ACEOF
39681cat confdefs.h >>conftest.$ac_ext
39682cat >>conftest.$ac_ext <<_ACEOF
39683/* end confdefs.h. */
39684$ac_includes_default
39685#include <$ac_header>
39686_ACEOF
39687rm -f conftest.$ac_objext
39688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39689 (eval $ac_compile) 2>conftest.er1
a848cd7e 39690 ac_status=$?
ac1cb8d3
VS
39691 grep -v '^ *+' conftest.er1 >conftest.err
39692 rm -f conftest.er1
39693 cat conftest.err >&5
a848cd7e
SC
39694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39695 (exit $ac_status); } &&
479c790c 39696 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39698 (eval $ac_try) 2>&5
39699 ac_status=$?
39700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39701 (exit $ac_status); }; } &&
39702 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39704 (eval $ac_try) 2>&5
39705 ac_status=$?
39706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39707 (exit $ac_status); }; }; then
39708 ac_header_compiler=yes
39709else
39710 echo "$as_me: failed program was:" >&5
39711sed 's/^/| /' conftest.$ac_ext >&5
39712
39713ac_header_compiler=no
39714fi
ac1cb8d3 39715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39716echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39717echo "${ECHO_T}$ac_header_compiler" >&6
39718
39719# Is the header present?
39720echo "$as_me:$LINENO: checking $ac_header presence" >&5
39721echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39722cat >conftest.$ac_ext <<_ACEOF
39723/* confdefs.h. */
39724_ACEOF
39725cat confdefs.h >>conftest.$ac_ext
39726cat >>conftest.$ac_ext <<_ACEOF
39727/* end confdefs.h. */
39728#include <$ac_header>
39729_ACEOF
39730if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39731 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39732 ac_status=$?
39733 grep -v '^ *+' conftest.er1 >conftest.err
39734 rm -f conftest.er1
39735 cat conftest.err >&5
39736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39737 (exit $ac_status); } >/dev/null; then
39738 if test -s conftest.err; then
5d7b7554
VZ
39739 ac_cpp_err=$ac_cxx_preproc_warn_flag
39740 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
39741 else
39742 ac_cpp_err=
39743 fi
39744else
39745 ac_cpp_err=yes
39746fi
39747if test -z "$ac_cpp_err"; then
39748 ac_header_preproc=yes
39749else
39750 echo "$as_me: failed program was:" >&5
39751sed 's/^/| /' conftest.$ac_ext >&5
39752
39753 ac_header_preproc=no
39754fi
39755rm -f conftest.err conftest.$ac_ext
39756echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39757echo "${ECHO_T}$ac_header_preproc" >&6
39758
39759# So? What about this header?
5d7b7554 39760case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 39761 yes:no: )
a848cd7e
SC
39762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39763echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39765echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39766 ac_header_preproc=yes
a848cd7e 39767 ;;
ac1cb8d3 39768 no:yes:* )
a848cd7e
SC
39769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39770echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39772echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39774echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39776echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39778echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39780echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39781 (
39782 cat <<\_ASBOX
ac1cb8d3
VS
39783## ----------------------------------------- ##
39784## Report this to wx-dev@lists.wxwidgets.org ##
39785## ----------------------------------------- ##
a848cd7e
SC
39786_ASBOX
39787 ) |
39788 sed "s/^/$as_me: WARNING: /" >&2
39789 ;;
39790esac
39791echo "$as_me:$LINENO: checking for $ac_header" >&5
39792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39793if eval "test \"\${$as_ac_Header+set}\" = set"; then
39794 echo $ECHO_N "(cached) $ECHO_C" >&6
39795else
ac1cb8d3 39796 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39797fi
39798echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39799echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39800
39801fi
39802if test `eval echo '${'$as_ac_Header'}'` = yes; then
39803 cat >>confdefs.h <<_ACEOF
39804#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39805_ACEOF
39806
39807fi
39808
39809done
39810
39811 if test "$ac_cv_header_sched_h" = "yes"; then
39812 echo "$as_me:$LINENO: checking for sched_yield" >&5
39813echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
39814if test "${ac_cv_func_sched_yield+set}" = set; then
39815 echo $ECHO_N "(cached) $ECHO_C" >&6
39816else
39817 cat >conftest.$ac_ext <<_ACEOF
39818/* confdefs.h. */
39819_ACEOF
39820cat confdefs.h >>conftest.$ac_ext
39821cat >>conftest.$ac_ext <<_ACEOF
39822/* end confdefs.h. */
ac1cb8d3
VS
39823/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39825#define sched_yield innocuous_sched_yield
39826
a848cd7e
SC
39827/* System header to define __stub macros and hopefully few prototypes,
39828 which can conflict with char sched_yield (); below.
39829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39830 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39831
a848cd7e
SC
39832#ifdef __STDC__
39833# include <limits.h>
39834#else
39835# include <assert.h>
39836#endif
ac1cb8d3
VS
39837
39838#undef sched_yield
39839
a848cd7e
SC
39840/* Override any gcc2 internal prototype to avoid an error. */
39841#ifdef __cplusplus
39842extern "C"
39843{
39844#endif
39845/* We use char because int might match the return type of a gcc2
39846 builtin and then its argument prototype would still apply. */
39847char sched_yield ();
39848/* The GNU C library defines this for functions which it implements
39849 to always fail with ENOSYS. Some functions are actually named
39850 something starting with __ and the normal name is an alias. */
39851#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
39852choke me
39853#else
39854char (*f) () = sched_yield;
39855#endif
39856#ifdef __cplusplus
39857}
39858#endif
39859
39860int
39861main ()
39862{
39863return f != sched_yield;
39864 ;
39865 return 0;
39866}
39867_ACEOF
39868rm -f conftest.$ac_objext conftest$ac_exeext
39869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39870 (eval $ac_link) 2>conftest.er1
a848cd7e 39871 ac_status=$?
ac1cb8d3
VS
39872 grep -v '^ *+' conftest.er1 >conftest.err
39873 rm -f conftest.er1
39874 cat conftest.err >&5
a848cd7e
SC
39875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39876 (exit $ac_status); } &&
479c790c 39877 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39879 (eval $ac_try) 2>&5
39880 ac_status=$?
39881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39882 (exit $ac_status); }; } &&
39883 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39885 (eval $ac_try) 2>&5
39886 ac_status=$?
39887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39888 (exit $ac_status); }; }; then
39889 ac_cv_func_sched_yield=yes
39890else
39891 echo "$as_me: failed program was:" >&5
39892sed 's/^/| /' conftest.$ac_ext >&5
39893
39894ac_cv_func_sched_yield=no
39895fi
ac1cb8d3
VS
39896rm -f conftest.err conftest.$ac_objext \
39897 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39898fi
39899echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
39900echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
39901if test $ac_cv_func_sched_yield = yes; then
39902 cat >>confdefs.h <<\_ACEOF
39903#define HAVE_SCHED_YIELD 1
39904_ACEOF
39905
39906else
39907
39908 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
39909echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
39910if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
39911 echo $ECHO_N "(cached) $ECHO_C" >&6
39912else
39913 ac_check_lib_save_LIBS=$LIBS
39914LIBS="-lposix4 $LIBS"
39915cat >conftest.$ac_ext <<_ACEOF
39916/* confdefs.h. */
39917_ACEOF
39918cat confdefs.h >>conftest.$ac_ext
39919cat >>conftest.$ac_ext <<_ACEOF
39920/* end confdefs.h. */
39921
39922/* Override any gcc2 internal prototype to avoid an error. */
39923#ifdef __cplusplus
39924extern "C"
39925#endif
39926/* We use char because int might match the return type of a gcc2
39927 builtin and then its argument prototype would still apply. */
39928char sched_yield ();
39929int
39930main ()
39931{
39932sched_yield ();
39933 ;
39934 return 0;
39935}
39936_ACEOF
39937rm -f conftest.$ac_objext conftest$ac_exeext
39938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39939 (eval $ac_link) 2>conftest.er1
a848cd7e 39940 ac_status=$?
ac1cb8d3
VS
39941 grep -v '^ *+' conftest.er1 >conftest.err
39942 rm -f conftest.er1
39943 cat conftest.err >&5
a848cd7e
SC
39944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39945 (exit $ac_status); } &&
479c790c 39946 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
39952 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39954 (eval $ac_try) 2>&5
39955 ac_status=$?
39956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39957 (exit $ac_status); }; }; then
39958 ac_cv_lib_posix4_sched_yield=yes
39959else
39960 echo "$as_me: failed program was:" >&5
39961sed 's/^/| /' conftest.$ac_ext >&5
39962
39963ac_cv_lib_posix4_sched_yield=no
39964fi
ac1cb8d3
VS
39965rm -f conftest.err conftest.$ac_objext \
39966 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39967LIBS=$ac_check_lib_save_LIBS
39968fi
39969echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
39970echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
39971if test $ac_cv_lib_posix4_sched_yield = yes; then
39972 cat >>confdefs.h <<\_ACEOF
39973#define HAVE_SCHED_YIELD 1
39974_ACEOF
39975 POSIX4_LINK=" -lposix4"
39976else
39977 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
39978echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
39979
39980fi
39981
39982
39983
39984fi
39985
39986 fi
39987
39988 HAVE_PRIOR_FUNCS=0
39989 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
39990echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
39991if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
39992 echo $ECHO_N "(cached) $ECHO_C" >&6
39993else
39994 cat >conftest.$ac_ext <<_ACEOF
39995/* confdefs.h. */
39996_ACEOF
39997cat confdefs.h >>conftest.$ac_ext
39998cat >>conftest.$ac_ext <<_ACEOF
39999/* end confdefs.h. */
ac1cb8d3
VS
40000/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
40001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40002#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
40003
a848cd7e
SC
40004/* System header to define __stub macros and hopefully few prototypes,
40005 which can conflict with char pthread_attr_getschedpolicy (); below.
40006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40007 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40008
a848cd7e
SC
40009#ifdef __STDC__
40010# include <limits.h>
40011#else
40012# include <assert.h>
40013#endif
ac1cb8d3
VS
40014
40015#undef pthread_attr_getschedpolicy
40016
a848cd7e
SC
40017/* Override any gcc2 internal prototype to avoid an error. */
40018#ifdef __cplusplus
40019extern "C"
40020{
40021#endif
40022/* We use char because int might match the return type of a gcc2
40023 builtin and then its argument prototype would still apply. */
40024char pthread_attr_getschedpolicy ();
40025/* The GNU C library defines this for functions which it implements
40026 to always fail with ENOSYS. Some functions are actually named
40027 something starting with __ and the normal name is an alias. */
40028#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
40029choke me
40030#else
40031char (*f) () = pthread_attr_getschedpolicy;
40032#endif
40033#ifdef __cplusplus
40034}
40035#endif
40036
40037int
40038main ()
40039{
40040return f != pthread_attr_getschedpolicy;
40041 ;
40042 return 0;
40043}
40044_ACEOF
40045rm -f conftest.$ac_objext conftest$ac_exeext
40046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40047 (eval $ac_link) 2>conftest.er1
a848cd7e 40048 ac_status=$?
ac1cb8d3
VS
40049 grep -v '^ *+' conftest.er1 >conftest.err
40050 rm -f conftest.er1
40051 cat conftest.err >&5
a848cd7e
SC
40052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40053 (exit $ac_status); } &&
479c790c 40054 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40056 (eval $ac_try) 2>&5
40057 ac_status=$?
40058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40059 (exit $ac_status); }; } &&
40060 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40062 (eval $ac_try) 2>&5
40063 ac_status=$?
40064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40065 (exit $ac_status); }; }; then
40066 ac_cv_func_pthread_attr_getschedpolicy=yes
40067else
40068 echo "$as_me: failed program was:" >&5
40069sed 's/^/| /' conftest.$ac_ext >&5
40070
40071ac_cv_func_pthread_attr_getschedpolicy=no
40072fi
ac1cb8d3
VS
40073rm -f conftest.err conftest.$ac_objext \
40074 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40075fi
40076echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
40077echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
40078if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
40079 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
40080echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
40081if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
40082 echo $ECHO_N "(cached) $ECHO_C" >&6
40083else
40084 cat >conftest.$ac_ext <<_ACEOF
40085/* confdefs.h. */
40086_ACEOF
40087cat confdefs.h >>conftest.$ac_ext
40088cat >>conftest.$ac_ext <<_ACEOF
40089/* end confdefs.h. */
ac1cb8d3
VS
40090/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
40091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40092#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
40093
a848cd7e
SC
40094/* System header to define __stub macros and hopefully few prototypes,
40095 which can conflict with char pthread_attr_setschedparam (); below.
40096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40097 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40098
a848cd7e
SC
40099#ifdef __STDC__
40100# include <limits.h>
40101#else
40102# include <assert.h>
40103#endif
ac1cb8d3
VS
40104
40105#undef pthread_attr_setschedparam
40106
a848cd7e
SC
40107/* Override any gcc2 internal prototype to avoid an error. */
40108#ifdef __cplusplus
40109extern "C"
40110{
40111#endif
40112/* We use char because int might match the return type of a gcc2
40113 builtin and then its argument prototype would still apply. */
40114char pthread_attr_setschedparam ();
40115/* The GNU C library defines this for functions which it implements
40116 to always fail with ENOSYS. Some functions are actually named
40117 something starting with __ and the normal name is an alias. */
40118#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
40119choke me
40120#else
40121char (*f) () = pthread_attr_setschedparam;
40122#endif
40123#ifdef __cplusplus
40124}
40125#endif
40126
40127int
40128main ()
40129{
40130return f != pthread_attr_setschedparam;
40131 ;
40132 return 0;
40133}
40134_ACEOF
40135rm -f conftest.$ac_objext conftest$ac_exeext
40136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40137 (eval $ac_link) 2>conftest.er1
a848cd7e 40138 ac_status=$?
ac1cb8d3
VS
40139 grep -v '^ *+' conftest.er1 >conftest.err
40140 rm -f conftest.er1
40141 cat conftest.err >&5
a848cd7e
SC
40142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40143 (exit $ac_status); } &&
479c790c 40144 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40146 (eval $ac_try) 2>&5
40147 ac_status=$?
40148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40149 (exit $ac_status); }; } &&
40150 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40152 (eval $ac_try) 2>&5
40153 ac_status=$?
40154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40155 (exit $ac_status); }; }; then
40156 ac_cv_func_pthread_attr_setschedparam=yes
40157else
40158 echo "$as_me: failed program was:" >&5
40159sed 's/^/| /' conftest.$ac_ext >&5
40160
40161ac_cv_func_pthread_attr_setschedparam=no
40162fi
ac1cb8d3
VS
40163rm -f conftest.err conftest.$ac_objext \
40164 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40165fi
40166echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
40167echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
40168if test $ac_cv_func_pthread_attr_setschedparam = yes; then
40169 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
40170echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
40171if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
40172 echo $ECHO_N "(cached) $ECHO_C" >&6
40173else
40174 cat >conftest.$ac_ext <<_ACEOF
40175/* confdefs.h. */
40176_ACEOF
40177cat confdefs.h >>conftest.$ac_ext
40178cat >>conftest.$ac_ext <<_ACEOF
40179/* end confdefs.h. */
ac1cb8d3
VS
40180/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
40181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40182#define sched_get_priority_max innocuous_sched_get_priority_max
40183
a848cd7e
SC
40184/* System header to define __stub macros and hopefully few prototypes,
40185 which can conflict with char sched_get_priority_max (); below.
40186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40187 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40188
a848cd7e
SC
40189#ifdef __STDC__
40190# include <limits.h>
40191#else
40192# include <assert.h>
40193#endif
ac1cb8d3
VS
40194
40195#undef sched_get_priority_max
40196
a848cd7e
SC
40197/* Override any gcc2 internal prototype to avoid an error. */
40198#ifdef __cplusplus
40199extern "C"
40200{
40201#endif
40202/* We use char because int might match the return type of a gcc2
40203 builtin and then its argument prototype would still apply. */
40204char sched_get_priority_max ();
40205/* The GNU C library defines this for functions which it implements
40206 to always fail with ENOSYS. Some functions are actually named
40207 something starting with __ and the normal name is an alias. */
40208#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
40209choke me
40210#else
40211char (*f) () = sched_get_priority_max;
40212#endif
40213#ifdef __cplusplus
40214}
40215#endif
40216
40217int
40218main ()
40219{
40220return f != sched_get_priority_max;
40221 ;
40222 return 0;
40223}
40224_ACEOF
40225rm -f conftest.$ac_objext conftest$ac_exeext
40226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40227 (eval $ac_link) 2>conftest.er1
a848cd7e 40228 ac_status=$?
ac1cb8d3
VS
40229 grep -v '^ *+' conftest.er1 >conftest.err
40230 rm -f conftest.er1
40231 cat conftest.err >&5
a848cd7e
SC
40232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40233 (exit $ac_status); } &&
479c790c 40234 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40236 (eval $ac_try) 2>&5
40237 ac_status=$?
40238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40239 (exit $ac_status); }; } &&
40240 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40242 (eval $ac_try) 2>&5
40243 ac_status=$?
40244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40245 (exit $ac_status); }; }; then
40246 ac_cv_func_sched_get_priority_max=yes
40247else
40248 echo "$as_me: failed program was:" >&5
40249sed 's/^/| /' conftest.$ac_ext >&5
40250
40251ac_cv_func_sched_get_priority_max=no
40252fi
ac1cb8d3
VS
40253rm -f conftest.err conftest.$ac_objext \
40254 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40255fi
40256echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
40257echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
40258if test $ac_cv_func_sched_get_priority_max = yes; then
40259 HAVE_PRIOR_FUNCS=1
40260else
40261 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
40262echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
40263if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
40264 echo $ECHO_N "(cached) $ECHO_C" >&6
40265else
40266 ac_check_lib_save_LIBS=$LIBS
40267LIBS="-lposix4 $LIBS"
40268cat >conftest.$ac_ext <<_ACEOF
40269/* confdefs.h. */
40270_ACEOF
40271cat confdefs.h >>conftest.$ac_ext
40272cat >>conftest.$ac_ext <<_ACEOF
40273/* end confdefs.h. */
40274
40275/* Override any gcc2 internal prototype to avoid an error. */
40276#ifdef __cplusplus
40277extern "C"
40278#endif
40279/* We use char because int might match the return type of a gcc2
40280 builtin and then its argument prototype would still apply. */
40281char sched_get_priority_max ();
40282int
40283main ()
40284{
40285sched_get_priority_max ();
40286 ;
40287 return 0;
40288}
40289_ACEOF
40290rm -f conftest.$ac_objext conftest$ac_exeext
40291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40292 (eval $ac_link) 2>conftest.er1
a848cd7e 40293 ac_status=$?
ac1cb8d3
VS
40294 grep -v '^ *+' conftest.er1 >conftest.err
40295 rm -f conftest.er1
40296 cat conftest.err >&5
a848cd7e
SC
40297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40298 (exit $ac_status); } &&
479c790c 40299 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40301 (eval $ac_try) 2>&5
40302 ac_status=$?
40303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40304 (exit $ac_status); }; } &&
40305 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40307 (eval $ac_try) 2>&5
40308 ac_status=$?
40309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40310 (exit $ac_status); }; }; then
40311 ac_cv_lib_posix4_sched_get_priority_max=yes
40312else
40313 echo "$as_me: failed program was:" >&5
40314sed 's/^/| /' conftest.$ac_ext >&5
40315
40316ac_cv_lib_posix4_sched_get_priority_max=no
40317fi
ac1cb8d3
VS
40318rm -f conftest.err conftest.$ac_objext \
40319 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40320LIBS=$ac_check_lib_save_LIBS
40321fi
40322echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
40323echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
40324if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
40325
40326 HAVE_PRIOR_FUNCS=1
40327 POSIX4_LINK=" -lposix4"
40328
40329fi
40330
40331
40332fi
40333
40334
40335fi
40336
40337
40338fi
40339
40340
40341 if test "$HAVE_PRIOR_FUNCS" = 1; then
40342 cat >>confdefs.h <<\_ACEOF
40343#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
40344_ACEOF
40345
40346 else
40347 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
40348echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
40349 fi
40350
40351 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
40352echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
40353if test "${ac_cv_func_pthread_cancel+set}" = set; then
40354 echo $ECHO_N "(cached) $ECHO_C" >&6
40355else
40356 cat >conftest.$ac_ext <<_ACEOF
40357/* confdefs.h. */
40358_ACEOF
40359cat confdefs.h >>conftest.$ac_ext
40360cat >>conftest.$ac_ext <<_ACEOF
40361/* end confdefs.h. */
ac1cb8d3
VS
40362/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
40363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40364#define pthread_cancel innocuous_pthread_cancel
40365
a848cd7e
SC
40366/* System header to define __stub macros and hopefully few prototypes,
40367 which can conflict with char pthread_cancel (); below.
40368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40369 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40370
a848cd7e
SC
40371#ifdef __STDC__
40372# include <limits.h>
40373#else
40374# include <assert.h>
40375#endif
ac1cb8d3
VS
40376
40377#undef pthread_cancel
40378
a848cd7e
SC
40379/* Override any gcc2 internal prototype to avoid an error. */
40380#ifdef __cplusplus
40381extern "C"
40382{
40383#endif
40384/* We use char because int might match the return type of a gcc2
40385 builtin and then its argument prototype would still apply. */
40386char pthread_cancel ();
40387/* The GNU C library defines this for functions which it implements
40388 to always fail with ENOSYS. Some functions are actually named
40389 something starting with __ and the normal name is an alias. */
40390#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
40391choke me
40392#else
40393char (*f) () = pthread_cancel;
40394#endif
40395#ifdef __cplusplus
40396}
40397#endif
40398
40399int
40400main ()
40401{
40402return f != pthread_cancel;
40403 ;
40404 return 0;
40405}
40406_ACEOF
40407rm -f conftest.$ac_objext conftest$ac_exeext
40408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40409 (eval $ac_link) 2>conftest.er1
a848cd7e 40410 ac_status=$?
ac1cb8d3
VS
40411 grep -v '^ *+' conftest.er1 >conftest.err
40412 rm -f conftest.er1
40413 cat conftest.err >&5
a848cd7e
SC
40414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40415 (exit $ac_status); } &&
479c790c 40416 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40418 (eval $ac_try) 2>&5
40419 ac_status=$?
40420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40421 (exit $ac_status); }; } &&
40422 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40424 (eval $ac_try) 2>&5
40425 ac_status=$?
40426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40427 (exit $ac_status); }; }; then
40428 ac_cv_func_pthread_cancel=yes
40429else
40430 echo "$as_me: failed program was:" >&5
40431sed 's/^/| /' conftest.$ac_ext >&5
40432
40433ac_cv_func_pthread_cancel=no
40434fi
ac1cb8d3
VS
40435rm -f conftest.err conftest.$ac_objext \
40436 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40437fi
40438echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
40439echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
40440if test $ac_cv_func_pthread_cancel = yes; then
40441 cat >>confdefs.h <<\_ACEOF
40442#define HAVE_PTHREAD_CANCEL 1
40443_ACEOF
40444
40445else
40446 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
40447echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
40448fi
40449
40450
abc736fd
MW
40451 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
40452echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
40453if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
40454 echo $ECHO_N "(cached) $ECHO_C" >&6
40455else
40456 cat >conftest.$ac_ext <<_ACEOF
40457/* confdefs.h. */
40458_ACEOF
40459cat confdefs.h >>conftest.$ac_ext
40460cat >>conftest.$ac_ext <<_ACEOF
40461/* end confdefs.h. */
40462/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
40463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40464#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
40465
40466/* System header to define __stub macros and hopefully few prototypes,
40467 which can conflict with char pthread_attr_setstacksize (); below.
40468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40469 <limits.h> exists even on freestanding compilers. */
40470
40471#ifdef __STDC__
40472# include <limits.h>
40473#else
40474# include <assert.h>
40475#endif
40476
40477#undef pthread_attr_setstacksize
40478
40479/* Override any gcc2 internal prototype to avoid an error. */
40480#ifdef __cplusplus
40481extern "C"
40482{
40483#endif
40484/* We use char because int might match the return type of a gcc2
40485 builtin and then its argument prototype would still apply. */
40486char pthread_attr_setstacksize ();
40487/* The GNU C library defines this for functions which it implements
40488 to always fail with ENOSYS. Some functions are actually named
40489 something starting with __ and the normal name is an alias. */
40490#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
40491choke me
40492#else
40493char (*f) () = pthread_attr_setstacksize;
40494#endif
40495#ifdef __cplusplus
40496}
40497#endif
40498
40499int
40500main ()
40501{
40502return f != pthread_attr_setstacksize;
40503 ;
40504 return 0;
40505}
40506_ACEOF
40507rm -f conftest.$ac_objext conftest$ac_exeext
40508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40509 (eval $ac_link) 2>conftest.er1
40510 ac_status=$?
40511 grep -v '^ *+' conftest.er1 >conftest.err
40512 rm -f conftest.er1
40513 cat conftest.err >&5
40514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40515 (exit $ac_status); } &&
479c790c 40516 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
abc736fd
MW
40517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40518 (eval $ac_try) 2>&5
40519 ac_status=$?
40520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40521 (exit $ac_status); }; } &&
40522 { ac_try='test -s conftest$ac_exeext'
40523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40524 (eval $ac_try) 2>&5
40525 ac_status=$?
40526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40527 (exit $ac_status); }; }; then
40528 ac_cv_func_pthread_attr_setstacksize=yes
40529else
40530 echo "$as_me: failed program was:" >&5
40531sed 's/^/| /' conftest.$ac_ext >&5
40532
40533ac_cv_func_pthread_attr_setstacksize=no
40534fi
40535rm -f conftest.err conftest.$ac_objext \
40536 conftest$ac_exeext conftest.$ac_ext
40537fi
40538echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
40539echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
40540if test $ac_cv_func_pthread_attr_setstacksize = yes; then
40541 cat >>confdefs.h <<\_ACEOF
40542#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
40543_ACEOF
40544
40545fi
40546
a848cd7e
SC
40547
40548
40549 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
40550echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
40551if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
40552 echo $ECHO_N "(cached) $ECHO_C" >&6
40553else
40554
40555 cat >conftest.$ac_ext <<_ACEOF
40556/* confdefs.h. */
40557_ACEOF
40558cat confdefs.h >>conftest.$ac_ext
40559cat >>conftest.$ac_ext <<_ACEOF
40560/* end confdefs.h. */
40561#include <pthread.h>
40562int
40563main ()
40564{
40565
40566 pthread_mutexattr_t attr;
40567 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40568
40569 ;
40570 return 0;
40571}
40572_ACEOF
40573rm -f conftest.$ac_objext
40574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40575 (eval $ac_compile) 2>conftest.er1
a848cd7e 40576 ac_status=$?
ac1cb8d3
VS
40577 grep -v '^ *+' conftest.er1 >conftest.err
40578 rm -f conftest.er1
40579 cat conftest.err >&5
a848cd7e
SC
40580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40581 (exit $ac_status); } &&
479c790c 40582 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40584 (eval $ac_try) 2>&5
40585 ac_status=$?
40586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40587 (exit $ac_status); }; } &&
40588 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40590 (eval $ac_try) 2>&5
40591 ac_status=$?
40592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40593 (exit $ac_status); }; }; then
123dca7d 40594 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
40595else
40596 echo "$as_me: failed program was:" >&5
40597sed 's/^/| /' conftest.$ac_ext >&5
40598
123dca7d 40599wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
40600
40601fi
ac1cb8d3 40602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40603
40604fi
40605echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
40606echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
40607
40608 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
40609 cat >>confdefs.h <<\_ACEOF
40610#define HAVE_PTHREAD_MUTEXATTR_T 1
40611_ACEOF
40612
123dca7d
VZ
40613
40614 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
40615echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
40616if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
40617 echo $ECHO_N "(cached) $ECHO_C" >&6
40618else
40619
40620 cat >conftest.$ac_ext <<_ACEOF
40621/* confdefs.h. */
40622_ACEOF
40623cat confdefs.h >>conftest.$ac_ext
40624cat >>conftest.$ac_ext <<_ACEOF
40625/* end confdefs.h. */
40626#include <pthread.h>
40627int
40628main ()
40629{
40630
40631 pthread_mutexattr_t attr;
40632 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40633
40634 ;
40635 return 0;
40636}
40637_ACEOF
40638rm -f conftest.$ac_objext
40639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40640 (eval $ac_compile) 2>conftest.er1
40641 ac_status=$?
40642 grep -v '^ *+' conftest.er1 >conftest.err
40643 rm -f conftest.er1
40644 cat conftest.err >&5
40645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40646 (exit $ac_status); } &&
479c790c 40647 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
123dca7d
VZ
40648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40649 (eval $ac_try) 2>&5
40650 ac_status=$?
40651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40652 (exit $ac_status); }; } &&
40653 { ac_try='test -s conftest.$ac_objext'
40654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40655 (eval $ac_try) 2>&5
40656 ac_status=$?
40657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40658 (exit $ac_status); }; }; then
40659 wx_cv_func_pthread_mutexattr_settype_decl=yes
40660else
40661 echo "$as_me: failed program was:" >&5
40662sed 's/^/| /' conftest.$ac_ext >&5
40663
40664wx_cv_func_pthread_mutexattr_settype_decl=no
40665
40666fi
40667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40668
40669fi
40670echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40671echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
40672 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40673 cat >>confdefs.h <<\_ACEOF
40674#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40675_ACEOF
40676
40677 fi
a848cd7e
SC
40678 else
40679 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40680echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
40681if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40682 echo $ECHO_N "(cached) $ECHO_C" >&6
40683else
40684
40685 cat >conftest.$ac_ext <<_ACEOF
40686/* confdefs.h. */
40687_ACEOF
40688cat confdefs.h >>conftest.$ac_ext
40689cat >>conftest.$ac_ext <<_ACEOF
40690/* end confdefs.h. */
40691#include <pthread.h>
40692int
40693main ()
40694{
40695
40696 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40697
40698 ;
40699 return 0;
40700}
40701_ACEOF
40702rm -f conftest.$ac_objext
40703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40704 (eval $ac_compile) 2>conftest.er1
a848cd7e 40705 ac_status=$?
ac1cb8d3
VS
40706 grep -v '^ *+' conftest.er1 >conftest.err
40707 rm -f conftest.er1
40708 cat conftest.err >&5
a848cd7e
SC
40709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40710 (exit $ac_status); } &&
479c790c 40711 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40713 (eval $ac_try) 2>&5
40714 ac_status=$?
40715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40716 (exit $ac_status); }; } &&
40717 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40719 (eval $ac_try) 2>&5
40720 ac_status=$?
40721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40722 (exit $ac_status); }; }; then
40723
40724 wx_cv_type_pthread_rec_mutex_init=yes
40725
40726else
40727 echo "$as_me: failed program was:" >&5
40728sed 's/^/| /' conftest.$ac_ext >&5
40729
40730
40731 wx_cv_type_pthread_rec_mutex_init=no
40732
40733
40734fi
ac1cb8d3 40735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40736
40737fi
40738echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40739echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
40740 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40741 cat >>confdefs.h <<\_ACEOF
40742#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40743_ACEOF
40744
40745 else
40746 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40747echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40748 fi
40749 fi
40750 fi
40751
40752else
40753 if test "$wxUSE_THREADS" = "yes" ; then
40754 case "${host}" in
40755 *-*-mingw32* )
40756 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
40757echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
40758if test "${wx_cv_cflags_mthread+set}" = set; then
40759 echo $ECHO_N "(cached) $ECHO_C" >&6
40760else
40761
e56f4f9e
VZ
40762 CXXFLAGS_OLD="$CXXFLAGS"
40763 CXXFLAGS="-mthreads $CXXFLAGS"
a848cd7e
SC
40764 cat >conftest.$ac_ext <<_ACEOF
40765/* confdefs.h. */
40766_ACEOF
40767cat confdefs.h >>conftest.$ac_ext
40768cat >>conftest.$ac_ext <<_ACEOF
40769/* end confdefs.h. */
40770
40771int
40772main ()
40773{
40774
40775 ;
40776 return 0;
40777}
40778_ACEOF
40779rm -f conftest.$ac_objext
40780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40781 (eval $ac_compile) 2>conftest.er1
a848cd7e 40782 ac_status=$?
ac1cb8d3
VS
40783 grep -v '^ *+' conftest.er1 >conftest.err
40784 rm -f conftest.er1
40785 cat conftest.err >&5
a848cd7e
SC
40786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40787 (exit $ac_status); } &&
479c790c 40788 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40790 (eval $ac_try) 2>&5
40791 ac_status=$?
40792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40793 (exit $ac_status); }; } &&
40794 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
40800 wx_cv_cflags_mthread=yes
40801else
40802 echo "$as_me: failed program was:" >&5
40803sed 's/^/| /' conftest.$ac_ext >&5
40804
40805wx_cv_cflags_mthread=no
40806
40807fi
ac1cb8d3 40808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40809
40810
40811fi
40812echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
40813echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
40814
40815 if test "$wx_cv_cflags_mthread" = "yes"; then
e56f4f9e 40816 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
a848cd7e
SC
40817 LDFLAGS="$LDFLAGS -mthreads"
40818 else
e56f4f9e 40819 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
40820 fi
40821 ;;
40822 *-pc-os2*emx )
5ff751d6
VZ
40823 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
40824 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
40825 LDFLAGS="$LDFLAGS -Zmt"
40826 ;;
40827 esac
40828 fi
40829fi
40830
004ee6da
RL
40831echo "$as_me:$LINENO: checking for localtime_r" >&5
40832echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
40833if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
40834 echo $ECHO_N "(cached) $ECHO_C" >&6
40835else
40836 cat >conftest.$ac_ext <<_ACEOF
40837/* confdefs.h. */
40838_ACEOF
40839cat confdefs.h >>conftest.$ac_ext
40840cat >>conftest.$ac_ext <<_ACEOF
40841/* end confdefs.h. */
004ee6da 40842/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 40843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 40844#define localtime_r innocuous_localtime_r
ac1cb8d3 40845
a848cd7e 40846/* System header to define __stub macros and hopefully few prototypes,
004ee6da 40847 which can conflict with char localtime_r (); below.
a848cd7e
SC
40848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40849 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40850
a848cd7e
SC
40851#ifdef __STDC__
40852# include <limits.h>
40853#else
40854# include <assert.h>
40855#endif
ac1cb8d3 40856
004ee6da 40857#undef localtime_r
ac1cb8d3 40858
a848cd7e
SC
40859/* Override any gcc2 internal prototype to avoid an error. */
40860#ifdef __cplusplus
40861extern "C"
40862{
40863#endif
40864/* We use char because int might match the return type of a gcc2
40865 builtin and then its argument prototype would still apply. */
004ee6da 40866char localtime_r ();
a848cd7e
SC
40867/* The GNU C library defines this for functions which it implements
40868 to always fail with ENOSYS. Some functions are actually named
40869 something starting with __ and the normal name is an alias. */
004ee6da 40870#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
40871choke me
40872#else
004ee6da 40873char (*f) () = localtime_r;
a848cd7e
SC
40874#endif
40875#ifdef __cplusplus
40876}
40877#endif
40878
40879int
40880main ()
40881{
004ee6da
RL
40882return f != localtime_r;
40883 ;
40884 return 0;
40885}
40886_ACEOF
40887rm -f conftest.$ac_objext conftest$ac_exeext
40888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40889 (eval $ac_link) 2>conftest.er1
40890 ac_status=$?
40891 grep -v '^ *+' conftest.er1 >conftest.err
40892 rm -f conftest.er1
40893 cat conftest.err >&5
40894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40895 (exit $ac_status); } &&
479c790c 40896 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40898 (eval $ac_try) 2>&5
40899 ac_status=$?
40900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40901 (exit $ac_status); }; } &&
40902 { ac_try='test -s conftest$ac_exeext'
40903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40904 (eval $ac_try) 2>&5
40905 ac_status=$?
40906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40907 (exit $ac_status); }; }; then
40908 ac_cv_func_localtime_r=yes
40909else
40910 echo "$as_me: failed program was:" >&5
40911sed 's/^/| /' conftest.$ac_ext >&5
40912
40913ac_cv_func_localtime_r=no
40914fi
40915rm -f conftest.err conftest.$ac_objext \
40916 conftest$ac_exeext conftest.$ac_ext
40917fi
40918echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
40919echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
40920if test $ac_cv_func_localtime_r = yes; then
40921 cat >>confdefs.h <<\_ACEOF
40922#define HAVE_LOCALTIME_R 1
40923_ACEOF
40924
40925fi
40926
40927echo "$as_me:$LINENO: checking for gmtime_r" >&5
40928echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
40929if test "${ac_cv_func_gmtime_r+set}" = set; then
40930 echo $ECHO_N "(cached) $ECHO_C" >&6
40931else
40932 cat >conftest.$ac_ext <<_ACEOF
40933/* confdefs.h. */
40934_ACEOF
40935cat confdefs.h >>conftest.$ac_ext
40936cat >>conftest.$ac_ext <<_ACEOF
40937/* end confdefs.h. */
40938/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
40939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40940#define gmtime_r innocuous_gmtime_r
40941
40942/* System header to define __stub macros and hopefully few prototypes,
40943 which can conflict with char gmtime_r (); below.
40944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40945 <limits.h> exists even on freestanding compilers. */
40946
40947#ifdef __STDC__
40948# include <limits.h>
40949#else
40950# include <assert.h>
40951#endif
40952
40953#undef gmtime_r
40954
40955/* Override any gcc2 internal prototype to avoid an error. */
40956#ifdef __cplusplus
40957extern "C"
40958{
40959#endif
40960/* We use char because int might match the return type of a gcc2
40961 builtin and then its argument prototype would still apply. */
40962char gmtime_r ();
40963/* The GNU C library defines this for functions which it implements
40964 to always fail with ENOSYS. Some functions are actually named
40965 something starting with __ and the normal name is an alias. */
40966#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
40967choke me
40968#else
40969char (*f) () = gmtime_r;
40970#endif
40971#ifdef __cplusplus
40972}
40973#endif
40974
40975int
40976main ()
40977{
40978return f != gmtime_r;
40979 ;
40980 return 0;
40981}
40982_ACEOF
40983rm -f conftest.$ac_objext conftest$ac_exeext
40984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40985 (eval $ac_link) 2>conftest.er1
40986 ac_status=$?
40987 grep -v '^ *+' conftest.er1 >conftest.err
40988 rm -f conftest.er1
40989 cat conftest.err >&5
40990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40991 (exit $ac_status); } &&
479c790c 40992 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40994 (eval $ac_try) 2>&5
40995 ac_status=$?
40996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40997 (exit $ac_status); }; } &&
40998 { ac_try='test -s conftest$ac_exeext'
40999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41000 (eval $ac_try) 2>&5
41001 ac_status=$?
41002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41003 (exit $ac_status); }; }; then
41004 ac_cv_func_gmtime_r=yes
41005else
41006 echo "$as_me: failed program was:" >&5
41007sed 's/^/| /' conftest.$ac_ext >&5
41008
41009ac_cv_func_gmtime_r=no
41010fi
41011rm -f conftest.err conftest.$ac_objext \
41012 conftest$ac_exeext conftest.$ac_ext
41013fi
41014echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
41015echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
41016if test $ac_cv_func_gmtime_r = yes; then
41017 cat >>confdefs.h <<\_ACEOF
41018#define HAVE_GMTIME_R 1
41019_ACEOF
41020
41021fi
41022
41023echo "$as_me:$LINENO: checking for readdir_r" >&5
41024echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
41025if test "${ac_cv_func_readdir_r+set}" = set; then
41026 echo $ECHO_N "(cached) $ECHO_C" >&6
41027else
41028 cat >conftest.$ac_ext <<_ACEOF
41029/* confdefs.h. */
41030_ACEOF
41031cat confdefs.h >>conftest.$ac_ext
41032cat >>conftest.$ac_ext <<_ACEOF
41033/* end confdefs.h. */
41034/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
41035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41036#define readdir_r innocuous_readdir_r
41037
41038/* System header to define __stub macros and hopefully few prototypes,
41039 which can conflict with char readdir_r (); below.
41040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41041 <limits.h> exists even on freestanding compilers. */
41042
41043#ifdef __STDC__
41044# include <limits.h>
41045#else
41046# include <assert.h>
41047#endif
41048
41049#undef readdir_r
41050
41051/* Override any gcc2 internal prototype to avoid an error. */
41052#ifdef __cplusplus
41053extern "C"
41054{
41055#endif
41056/* We use char because int might match the return type of a gcc2
41057 builtin and then its argument prototype would still apply. */
41058char readdir_r ();
41059/* The GNU C library defines this for functions which it implements
41060 to always fail with ENOSYS. Some functions are actually named
41061 something starting with __ and the normal name is an alias. */
41062#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
41063choke me
41064#else
41065char (*f) () = readdir_r;
41066#endif
41067#ifdef __cplusplus
41068}
41069#endif
41070
41071int
41072main ()
41073{
41074return f != readdir_r;
41075 ;
41076 return 0;
41077}
41078_ACEOF
41079rm -f conftest.$ac_objext conftest$ac_exeext
41080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41081 (eval $ac_link) 2>conftest.er1
41082 ac_status=$?
41083 grep -v '^ *+' conftest.er1 >conftest.err
41084 rm -f conftest.er1
41085 cat conftest.err >&5
41086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41087 (exit $ac_status); } &&
479c790c 41088 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41090 (eval $ac_try) 2>&5
41091 ac_status=$?
41092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41093 (exit $ac_status); }; } &&
41094 { ac_try='test -s conftest$ac_exeext'
41095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41096 (eval $ac_try) 2>&5
41097 ac_status=$?
41098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41099 (exit $ac_status); }; }; then
41100 ac_cv_func_readdir_r=yes
41101else
41102 echo "$as_me: failed program was:" >&5
41103sed 's/^/| /' conftest.$ac_ext >&5
41104
41105ac_cv_func_readdir_r=no
41106fi
41107rm -f conftest.err conftest.$ac_objext \
41108 conftest$ac_exeext conftest.$ac_ext
41109fi
41110echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
41111echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
41112if test $ac_cv_func_readdir_r = yes; then
41113 cat >>confdefs.h <<\_ACEOF
41114#define HAVE_READDIR_R 1
41115_ACEOF
41116
41117fi
41118
004ee6da 41119
004ee6da
RL
41120
41121
41122 ac_ext=c
41123ac_cpp='$CPP $CPPFLAGS'
41124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41126ac_compiler_gnu=$ac_cv_c_compiler_gnu
41127
41128 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
41129echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
41130
41131 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
41132 echo $ECHO_N "(cached) $ECHO_C" >&6
41133else
41134
41135
2f6c5bb5 41136################################################################
004ee6da
RL
41137
41138ac_cv_func_which_gethostbyname_r=unknown
41139
41140#
41141# ONE ARGUMENT (sanity check)
41142#
41143
41144# This should fail, as there is no variant of gethostbyname_r() that takes
41145# a single argument. If it actually compiles, then we can assume that
41146# netdb.h is not declaring the function, and the compiler is thereby
41147# assuming an implicit prototype. In which case, we're out of luck.
41148#
41149cat >conftest.$ac_ext <<_ACEOF
41150/* confdefs.h. */
41151_ACEOF
41152cat confdefs.h >>conftest.$ac_ext
41153cat >>conftest.$ac_ext <<_ACEOF
41154/* end confdefs.h. */
41155#include <netdb.h>
41156int
41157main ()
41158{
41159
41160 char *name = "www.gnu.org";
41161 (void)gethostbyname_r(name) /* ; */
41162
41163 ;
41164 return 0;
41165}
41166_ACEOF
41167rm -f conftest.$ac_objext
41168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41169 (eval $ac_compile) 2>conftest.er1
41170 ac_status=$?
41171 grep -v '^ *+' conftest.er1 >conftest.err
41172 rm -f conftest.er1
41173 cat conftest.err >&5
41174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41175 (exit $ac_status); } &&
479c790c 41176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41178 (eval $ac_try) 2>&5
41179 ac_status=$?
41180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41181 (exit $ac_status); }; } &&
41182 { ac_try='test -s conftest.$ac_objext'
41183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41184 (eval $ac_try) 2>&5
41185 ac_status=$?
41186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41187 (exit $ac_status); }; }; then
41188 ac_cv_func_which_gethostbyname_r=no
41189else
41190 echo "$as_me: failed program was:" >&5
41191sed 's/^/| /' conftest.$ac_ext >&5
41192
41193fi
41194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41195
41196#
41197# SIX ARGUMENTS
41198# (e.g. Linux)
41199#
41200
41201if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41202
41203cat >conftest.$ac_ext <<_ACEOF
41204/* confdefs.h. */
41205_ACEOF
41206cat confdefs.h >>conftest.$ac_ext
41207cat >>conftest.$ac_ext <<_ACEOF
41208/* end confdefs.h. */
41209#include <netdb.h>
41210int
41211main ()
41212{
41213
41214 char *name = "www.gnu.org";
41215 struct hostent ret, *retp;
41216 char buf[1024];
41217 int buflen = 1024;
41218 int my_h_errno;
41219 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
41220
41221 ;
41222 return 0;
41223}
41224_ACEOF
41225rm -f conftest.$ac_objext
41226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41227 (eval $ac_compile) 2>conftest.er1
41228 ac_status=$?
41229 grep -v '^ *+' conftest.er1 >conftest.err
41230 rm -f conftest.er1
41231 cat conftest.err >&5
41232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41233 (exit $ac_status); } &&
479c790c 41234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41236 (eval $ac_try) 2>&5
41237 ac_status=$?
41238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41239 (exit $ac_status); }; } &&
41240 { ac_try='test -s conftest.$ac_objext'
41241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41242 (eval $ac_try) 2>&5
41243 ac_status=$?
41244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41245 (exit $ac_status); }; }; then
41246 ac_cv_func_which_gethostbyname_r=six
41247else
41248 echo "$as_me: failed program was:" >&5
41249sed 's/^/| /' conftest.$ac_ext >&5
41250
41251fi
41252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41253
41254fi
41255
41256#
41257# FIVE ARGUMENTS
41258# (e.g. Solaris)
41259#
41260
41261if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41262
41263cat >conftest.$ac_ext <<_ACEOF
41264/* confdefs.h. */
41265_ACEOF
41266cat confdefs.h >>conftest.$ac_ext
41267cat >>conftest.$ac_ext <<_ACEOF
41268/* end confdefs.h. */
41269#include <netdb.h>
41270int
41271main ()
41272{
41273
41274 char *name = "www.gnu.org";
41275 struct hostent ret;
41276 char buf[1024];
41277 int buflen = 1024;
41278 int my_h_errno;
41279 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
41280
41281 ;
41282 return 0;
41283}
41284_ACEOF
41285rm -f conftest.$ac_objext
41286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41287 (eval $ac_compile) 2>conftest.er1
41288 ac_status=$?
41289 grep -v '^ *+' conftest.er1 >conftest.err
41290 rm -f conftest.er1
41291 cat conftest.err >&5
41292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41293 (exit $ac_status); } &&
479c790c 41294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41296 (eval $ac_try) 2>&5
41297 ac_status=$?
41298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41299 (exit $ac_status); }; } &&
41300 { ac_try='test -s conftest.$ac_objext'
41301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41302 (eval $ac_try) 2>&5
41303 ac_status=$?
41304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41305 (exit $ac_status); }; }; then
41306 ac_cv_func_which_gethostbyname_r=five
41307else
41308 echo "$as_me: failed program was:" >&5
41309sed 's/^/| /' conftest.$ac_ext >&5
41310
41311fi
41312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41313
41314fi
41315
41316#
41317# THREE ARGUMENTS
41318# (e.g. AIX, HP-UX, Tru64)
41319#
41320
41321if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41322
41323cat >conftest.$ac_ext <<_ACEOF
41324/* confdefs.h. */
41325_ACEOF
41326cat confdefs.h >>conftest.$ac_ext
41327cat >>conftest.$ac_ext <<_ACEOF
41328/* end confdefs.h. */
41329#include <netdb.h>
41330int
41331main ()
41332{
41333
41334 char *name = "www.gnu.org";
41335 struct hostent ret;
41336 struct hostent_data data;
41337 (void)gethostbyname_r(name, &ret, &data) /* ; */
41338
41339 ;
41340 return 0;
41341}
41342_ACEOF
41343rm -f conftest.$ac_objext
41344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41345 (eval $ac_compile) 2>conftest.er1
41346 ac_status=$?
41347 grep -v '^ *+' conftest.er1 >conftest.err
41348 rm -f conftest.er1
41349 cat conftest.err >&5
41350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41351 (exit $ac_status); } &&
479c790c 41352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41354 (eval $ac_try) 2>&5
41355 ac_status=$?
41356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41357 (exit $ac_status); }; } &&
41358 { ac_try='test -s conftest.$ac_objext'
41359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41360 (eval $ac_try) 2>&5
41361 ac_status=$?
41362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41363 (exit $ac_status); }; }; then
41364 ac_cv_func_which_gethostbyname_r=three
41365else
41366 echo "$as_me: failed program was:" >&5
41367sed 's/^/| /' conftest.$ac_ext >&5
41368
41369fi
41370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41371
41372fi
41373
2f6c5bb5 41374################################################################
004ee6da
RL
41375
41376
41377fi
41378
41379case "$ac_cv_func_which_gethostbyname_r" in
41380 three)
41381 echo "$as_me:$LINENO: result: three" >&5
41382echo "${ECHO_T}three" >&6
41383 cat >>confdefs.h <<\_ACEOF
41384#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
41385_ACEOF
41386
41387 ;;
41388
41389 five)
41390 echo "$as_me:$LINENO: result: five" >&5
41391echo "${ECHO_T}five" >&6
41392 cat >>confdefs.h <<\_ACEOF
41393#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
41394_ACEOF
41395
41396 ;;
41397
41398 six)
41399 echo "$as_me:$LINENO: result: six" >&5
41400echo "${ECHO_T}six" >&6
41401 cat >>confdefs.h <<\_ACEOF
41402#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
41403_ACEOF
41404
41405 ;;
41406
41407 no)
41408 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
41409echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
41410 ;;
41411
41412 unknown)
41413 echo "$as_me:$LINENO: result: can't tell" >&5
41414echo "${ECHO_T}can't tell" >&6
41415 ;;
41416
41417 *)
41418 { { echo "$as_me:$LINENO: error: internal error" >&5
41419echo "$as_me: error: internal error" >&2;}
41420 { (exit 1); exit 1; }; }
41421 ;;
41422esac
41423
5ec3bc43
JS
41424ac_ext=cc
41425ac_cpp='$CXXCPP $CPPFLAGS'
41426ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41427ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41428ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
004ee6da
RL
41429
41430
41431
41432 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
ec3edcc9 41433 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
004ee6da
RL
41434 echo "$as_me:$LINENO: checking for gethostbyname" >&5
41435echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
41436if test "${ac_cv_func_gethostbyname+set}" = set; then
41437 echo $ECHO_N "(cached) $ECHO_C" >&6
41438else
41439 cat >conftest.$ac_ext <<_ACEOF
41440/* confdefs.h. */
41441_ACEOF
41442cat confdefs.h >>conftest.$ac_ext
41443cat >>conftest.$ac_ext <<_ACEOF
41444/* end confdefs.h. */
41445/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
41446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41447#define gethostbyname innocuous_gethostbyname
41448
41449/* System header to define __stub macros and hopefully few prototypes,
41450 which can conflict with char gethostbyname (); below.
41451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41452 <limits.h> exists even on freestanding compilers. */
41453
41454#ifdef __STDC__
41455# include <limits.h>
41456#else
41457# include <assert.h>
41458#endif
41459
41460#undef gethostbyname
41461
41462/* Override any gcc2 internal prototype to avoid an error. */
41463#ifdef __cplusplus
41464extern "C"
41465{
41466#endif
41467/* We use char because int might match the return type of a gcc2
41468 builtin and then its argument prototype would still apply. */
41469char gethostbyname ();
41470/* The GNU C library defines this for functions which it implements
41471 to always fail with ENOSYS. Some functions are actually named
41472 something starting with __ and the normal name is an alias. */
41473#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
41474choke me
41475#else
41476char (*f) () = gethostbyname;
41477#endif
41478#ifdef __cplusplus
41479}
41480#endif
41481
41482int
41483main ()
41484{
41485return f != gethostbyname;
41486 ;
41487 return 0;
41488}
41489_ACEOF
41490rm -f conftest.$ac_objext conftest$ac_exeext
41491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41492 (eval $ac_link) 2>conftest.er1
41493 ac_status=$?
41494 grep -v '^ *+' conftest.er1 >conftest.err
41495 rm -f conftest.er1
41496 cat conftest.err >&5
41497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41498 (exit $ac_status); } &&
479c790c 41499 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41501 (eval $ac_try) 2>&5
41502 ac_status=$?
41503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41504 (exit $ac_status); }; } &&
41505 { ac_try='test -s conftest$ac_exeext'
41506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41507 (eval $ac_try) 2>&5
41508 ac_status=$?
41509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41510 (exit $ac_status); }; }; then
41511 ac_cv_func_gethostbyname=yes
41512else
41513 echo "$as_me: failed program was:" >&5
41514sed 's/^/| /' conftest.$ac_ext >&5
41515
41516ac_cv_func_gethostbyname=no
41517fi
41518rm -f conftest.err conftest.$ac_objext \
41519 conftest$ac_exeext conftest.$ac_ext
41520fi
41521echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
41522echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
41523if test $ac_cv_func_gethostbyname = yes; then
41524 cat >>confdefs.h <<\_ACEOF
41525#define HAVE_GETHOSTBYNAME 1
41526_ACEOF
41527
41528fi
41529
41530 fi
3ecd9f92 41531
81c330c6
VZ
41532echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
41533echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6
41534if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
004ee6da
RL
41535 echo $ECHO_N "(cached) $ECHO_C" >&6
41536else
3ecd9f92
MW
41537
41538 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41539/* confdefs.h. */
41540_ACEOF
41541cat confdefs.h >>conftest.$ac_ext
41542cat >>conftest.$ac_ext <<_ACEOF
41543/* end confdefs.h. */
81c330c6 41544#include <netdb.h>
004ee6da
RL
41545int
41546main ()
41547{
41548
81c330c6
VZ
41549 char *name;
41550 char *proto;
41551 struct servent *se, *res;
41552 char buffer[2048];
41553 int buflen = 2048;
41554 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
004ee6da
RL
41555
41556 ;
41557 return 0;
41558}
41559_ACEOF
41560rm -f conftest.$ac_objext
41561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41562 (eval $ac_compile) 2>conftest.er1
41563 ac_status=$?
41564 grep -v '^ *+' conftest.er1 >conftest.err
41565 rm -f conftest.er1
41566 cat conftest.err >&5
41567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41568 (exit $ac_status); } &&
479c790c 41569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41571 (eval $ac_try) 2>&5
41572 ac_status=$?
41573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41574 (exit $ac_status); }; } &&
41575 { ac_try='test -s conftest.$ac_objext'
41576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41577 (eval $ac_try) 2>&5
41578 ac_status=$?
41579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41580 (exit $ac_status); }; }; then
81c330c6 41581 ac_cv_func_which_getservbyname_r=six
004ee6da
RL
41582else
41583 echo "$as_me: failed program was:" >&5
41584sed 's/^/| /' conftest.$ac_ext >&5
41585
3ecd9f92 41586
81c330c6 41587 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41588/* confdefs.h. */
41589_ACEOF
41590cat confdefs.h >>conftest.$ac_ext
41591cat >>conftest.$ac_ext <<_ACEOF
41592/* end confdefs.h. */
81c330c6 41593#include <netdb.h>
004ee6da
RL
41594int
41595main ()
41596{
41597
81c330c6
VZ
41598 char *name;
41599 char *proto;
41600 struct servent *se;
41601 char buffer[2048];
41602 int buflen = 2048;
41603 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
41604
41605 ;
41606 return 0;
41607}
41608_ACEOF
41609rm -f conftest.$ac_objext
41610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41611 (eval $ac_compile) 2>conftest.er1
41612 ac_status=$?
41613 grep -v '^ *+' conftest.er1 >conftest.err
41614 rm -f conftest.er1
41615 cat conftest.err >&5
41616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41617 (exit $ac_status); } &&
479c790c 41618 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41620 (eval $ac_try) 2>&5
41621 ac_status=$?
41622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41623 (exit $ac_status); }; } &&
41624 { ac_try='test -s conftest.$ac_objext'
41625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41626 (eval $ac_try) 2>&5
41627 ac_status=$?
41628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41629 (exit $ac_status); }; }; then
81c330c6 41630 ac_cv_func_which_getservbyname_r=five
004ee6da
RL
41631else
41632 echo "$as_me: failed program was:" >&5
41633sed 's/^/| /' conftest.$ac_ext >&5
41634
3ecd9f92 41635
81c330c6 41636 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41637/* confdefs.h. */
41638_ACEOF
41639cat confdefs.h >>conftest.$ac_ext
41640cat >>conftest.$ac_ext <<_ACEOF
41641/* end confdefs.h. */
81c330c6 41642#include <netdb.h>
004ee6da
RL
41643int
41644main ()
41645{
41646
81c330c6
VZ
41647 char *name;
41648 char *proto;
41649 struct servent *se;
41650 struct servent_data data;
41651 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
41652
41653 ;
41654 return 0;
41655}
41656_ACEOF
41657rm -f conftest.$ac_objext
41658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41659 (eval $ac_compile) 2>conftest.er1
41660 ac_status=$?
41661 grep -v '^ *+' conftest.er1 >conftest.err
41662 rm -f conftest.er1
41663 cat conftest.err >&5
41664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41665 (exit $ac_status); } &&
479c790c 41666 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41668 (eval $ac_try) 2>&5
41669 ac_status=$?
41670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41671 (exit $ac_status); }; } &&
41672 { ac_try='test -s conftest.$ac_objext'
41673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41674 (eval $ac_try) 2>&5
41675 ac_status=$?
41676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41677 (exit $ac_status); }; }; then
81c330c6 41678 ac_cv_func_which_getservbyname_r=four
004ee6da
RL
41679else
41680 echo "$as_me: failed program was:" >&5
41681sed 's/^/| /' conftest.$ac_ext >&5
41682
41683ac_cv_func_which_getservbyname_r=no
81c330c6 41684
004ee6da
RL
41685fi
41686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41687
3ecd9f92 41688
004ee6da
RL
41689fi
41690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41691
3ecd9f92 41692
004ee6da
RL
41693fi
41694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3ecd9f92 41695
004ee6da 41696
3ecd9f92
MW
41697fi
41698echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41699echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
004ee6da
RL
41700
41701if test $ac_cv_func_which_getservbyname_r = six; then
41702 cat >>confdefs.h <<\_ACEOF
41703#define HAVE_FUNC_GETSERVBYNAME_R_6 1
41704_ACEOF
41705
41706elif test $ac_cv_func_which_getservbyname_r = five; then
41707 cat >>confdefs.h <<\_ACEOF
41708#define HAVE_FUNC_GETSERVBYNAME_R_5 1
41709_ACEOF
41710
41711elif test $ac_cv_func_which_getservbyname_r = four; then
41712 cat >>confdefs.h <<\_ACEOF
41713#define HAVE_FUNC_GETSERVBYNAME_R_4 1
41714_ACEOF
41715
004ee6da
RL
41716fi
41717
41718
41719 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
ec3edcc9 41720 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
004ee6da
RL
41721
41722for ac_func in getservbyname
41723do
41724as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41725echo "$as_me:$LINENO: checking for $ac_func" >&5
41726echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41727if eval "test \"\${$as_ac_var+set}\" = set"; then
41728 echo $ECHO_N "(cached) $ECHO_C" >&6
41729else
41730 cat >conftest.$ac_ext <<_ACEOF
41731/* confdefs.h. */
41732_ACEOF
41733cat confdefs.h >>conftest.$ac_ext
41734cat >>conftest.$ac_ext <<_ACEOF
41735/* end confdefs.h. */
41736/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41738#define $ac_func innocuous_$ac_func
41739
41740/* System header to define __stub macros and hopefully few prototypes,
41741 which can conflict with char $ac_func (); below.
41742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41743 <limits.h> exists even on freestanding compilers. */
41744
41745#ifdef __STDC__
41746# include <limits.h>
41747#else
41748# include <assert.h>
41749#endif
41750
41751#undef $ac_func
41752
41753/* Override any gcc2 internal prototype to avoid an error. */
41754#ifdef __cplusplus
41755extern "C"
41756{
41757#endif
41758/* We use char because int might match the return type of a gcc2
41759 builtin and then its argument prototype would still apply. */
41760char $ac_func ();
41761/* The GNU C library defines this for functions which it implements
41762 to always fail with ENOSYS. Some functions are actually named
41763 something starting with __ and the normal name is an alias. */
41764#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41765choke me
41766#else
41767char (*f) () = $ac_func;
41768#endif
41769#ifdef __cplusplus
41770}
41771#endif
41772
41773int
41774main ()
41775{
41776return f != $ac_func;
41777 ;
41778 return 0;
41779}
41780_ACEOF
41781rm -f conftest.$ac_objext conftest$ac_exeext
41782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41783 (eval $ac_link) 2>conftest.er1
41784 ac_status=$?
41785 grep -v '^ *+' conftest.er1 >conftest.err
41786 rm -f conftest.er1
41787 cat conftest.err >&5
41788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41789 (exit $ac_status); } &&
479c790c 41790 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41792 (eval $ac_try) 2>&5
41793 ac_status=$?
41794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41795 (exit $ac_status); }; } &&
41796 { ac_try='test -s conftest$ac_exeext'
41797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41798 (eval $ac_try) 2>&5
41799 ac_status=$?
41800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41801 (exit $ac_status); }; }; then
41802 eval "$as_ac_var=yes"
41803else
41804 echo "$as_me: failed program was:" >&5
41805sed 's/^/| /' conftest.$ac_ext >&5
41806
41807eval "$as_ac_var=no"
41808fi
41809rm -f conftest.err conftest.$ac_objext \
41810 conftest$ac_exeext conftest.$ac_ext
41811fi
41812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41813echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41814if test `eval echo '${'$as_ac_var'}'` = yes; then
41815 cat >>confdefs.h <<_ACEOF
41816#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41817_ACEOF
41818 cat >>confdefs.h <<\_ACEOF
41819#define HAVE_GETSERVBYNAME 1
41820_ACEOF
41821
41822fi
41823done
41824
41825 fi
41826
004ee6da
RL
41827if test "$wxUSE_THREADS" = "yes"; then
41828 cat >>confdefs.h <<\_ACEOF
41829#define wxUSE_THREADS 1
41830_ACEOF
41831
41832
41833 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
41834else
56632e81 41835 if test "$wx_cv_func_strtok_r" = "yes"; then
004ee6da
RL
41836 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
41837echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
41838 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
41839 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
41840 echo "$as_me:$LINENO: result: yes" >&5
41841echo "${ECHO_T}yes" >&6
41842 else
41843 echo "$as_me:$LINENO: result: no" >&5
41844echo "${ECHO_T}no" >&6
41845 fi
41846 fi
41847fi
41848
41849if test "$WXGTK20" = 1 ; then
41850 cat >>confdefs.h <<_ACEOF
41851#define __WXGTK20__ $WXGTK20
41852_ACEOF
41853
41854 WXGTK12=1
41855fi
41856
41857if test "$WXGTK12" = 1 ; then
41858 cat >>confdefs.h <<_ACEOF
41859#define __WXGTK12__ $WXGTK12
41860_ACEOF
41861
41862fi
41863
41864if test "$WXGTK127" = 1 ; then
41865 cat >>confdefs.h <<_ACEOF
41866#define __WXGTK127__ $WXGTK127
41867_ACEOF
41868
41869fi
41870
41871if test "$WXGPE" = 1 ; then
41872 cat >>confdefs.h <<_ACEOF
41873#define __WXGPE__ $WXGPE
41874_ACEOF
41875
41876fi
41877
41878DEBUG_CFLAGS=
41879if test "$wxUSE_DEBUG_INFO" = "yes" ; then
41880 DEBUG_CFLAGS="-g"
41881 wxUSE_OPTIMISE=no
41882fi
41883
41884if test "$wxUSE_DEBUG_GDB" = "yes" ; then
41885 wxUSE_DEBUG_INFO=yes
41886 if test "$GCC" = yes; then
41887 DEBUG_CFLAGS="-ggdb"
41888 fi
41889fi
41890
41891if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
41892 cat >>confdefs.h <<\_ACEOF
41893#define WXDEBUG 1
41894_ACEOF
41895
41896 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
41897else
41898 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
41899 if test "x$wxGTK_VERSION" = "x1" ; then
41900 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
41901 fi
004ee6da
RL
41902 fi
41903fi
41904
41905if test "$wxUSE_MEM_TRACING" = "yes" ; then
41906 cat >>confdefs.h <<\_ACEOF
41907#define wxUSE_MEMORY_TRACING 1
41908_ACEOF
41909
41910 cat >>confdefs.h <<\_ACEOF
41911#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
41912_ACEOF
41913
41914 cat >>confdefs.h <<\_ACEOF
41915#define wxUSE_DEBUG_NEW_ALWAYS 1
41916_ACEOF
41917
41918 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
41919fi
41920
41921if test "$wxUSE_DMALLOC" = "yes" ; then
41922 DMALLOC_LIBS="-ldmallocthcxx"
41923fi
41924
41925PROFILE_FLAGS=
41926if test "$wxUSE_PROFILE" = "yes" ; then
41927 PROFILE_FLAGS=" -pg"
41928fi
41929
41930if test "$GCC" = "yes" ; then
41931 if test "$wxUSE_NO_RTTI" = "yes" ; then
41932 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
41933 fi
41934 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41935 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
41936 fi
41937 if test "$wxUSE_PERMISSIVE" = "yes" ; then
41938 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
41939 fi
41940
41941 case "${host}" in
41942 powerpc*-*-aix* )
41943 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
41944 ;;
41945 *-hppa* )
41946 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
41947 ;;
41948 esac
41949fi
41950
41951OPTIMISE_CFLAGS=
41952if test "$wxUSE_OPTIMISE" = "no" ; then
41953 if test "$GCC" = yes ; then
41954 OPTIMISE_CFLAGS="-O0"
41955 fi
41956else
41957 if test "$GCC" = yes ; then
e5efa97e
VZ
41958 case "${host}" in
41959 *-pc-os2_emx | *-pc-os2-emx )
41960 OPTIMISE_CFLAGS="-O2"
41961 ;;
41962 *)
41963 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
41964 ;;
41965 esac
004ee6da
RL
41966 else
41967 OPTIMISE_CFLAGS="-O"
41968 fi
41969fi
41970
41971
41972if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
41973 cat >>confdefs.h <<\_ACEOF
41974#define WXWIN_COMPATIBILITY_2_4 1
41975_ACEOF
41976
41977
41978 WXWIN_COMPATIBILITY_2_6="yes"
41979fi
41980
41981if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
41982 cat >>confdefs.h <<\_ACEOF
41983#define WXWIN_COMPATIBILITY_2_6 1
41984_ACEOF
41985
41986fi
41987
41988
41989if test "$wxUSE_GUI" = "yes"; then
41990 cat >>confdefs.h <<\_ACEOF
41991#define wxUSE_GUI 1
41992_ACEOF
41993
41994
41995 fi
41996
41997
41998if test "$wxUSE_UNIX" = "yes"; then
41999 cat >>confdefs.h <<\_ACEOF
42000#define wxUSE_UNIX 1
42001_ACEOF
42002
42003fi
42004
42005
42006if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
42007
42008 HAVE_DL_FUNCS=0
42009 HAVE_SHL_FUNCS=0
42010 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42011 if test "$USE_DARWIN" = 1; then
42012 HAVE_DL_FUNCS=1
42013 elif test "$USE_DOS" = 1; then
42014 HAVE_DL_FUNCS=0
42015 else
42016
42017for ac_func in dlopen
42018do
42019as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42020echo "$as_me:$LINENO: checking for $ac_func" >&5
42021echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42022if eval "test \"\${$as_ac_var+set}\" = set"; then
42023 echo $ECHO_N "(cached) $ECHO_C" >&6
42024else
42025 cat >conftest.$ac_ext <<_ACEOF
42026/* confdefs.h. */
42027_ACEOF
42028cat confdefs.h >>conftest.$ac_ext
42029cat >>conftest.$ac_ext <<_ACEOF
42030/* end confdefs.h. */
42031/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42033#define $ac_func innocuous_$ac_func
42034
42035/* System header to define __stub macros and hopefully few prototypes,
42036 which can conflict with char $ac_func (); below.
42037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42038 <limits.h> exists even on freestanding compilers. */
42039
42040#ifdef __STDC__
42041# include <limits.h>
42042#else
42043# include <assert.h>
42044#endif
42045
42046#undef $ac_func
42047
42048/* Override any gcc2 internal prototype to avoid an error. */
42049#ifdef __cplusplus
42050extern "C"
42051{
42052#endif
42053/* We use char because int might match the return type of a gcc2
42054 builtin and then its argument prototype would still apply. */
42055char $ac_func ();
42056/* The GNU C library defines this for functions which it implements
42057 to always fail with ENOSYS. Some functions are actually named
42058 something starting with __ and the normal name is an alias. */
42059#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42060choke me
42061#else
42062char (*f) () = $ac_func;
42063#endif
42064#ifdef __cplusplus
42065}
42066#endif
42067
42068int
42069main ()
42070{
42071return f != $ac_func;
a848cd7e
SC
42072 ;
42073 return 0;
42074}
42075_ACEOF
42076rm -f conftest.$ac_objext conftest$ac_exeext
42077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42078 (eval $ac_link) 2>conftest.er1
a848cd7e 42079 ac_status=$?
ac1cb8d3
VS
42080 grep -v '^ *+' conftest.er1 >conftest.err
42081 rm -f conftest.er1
42082 cat conftest.err >&5
a848cd7e
SC
42083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42084 (exit $ac_status); } &&
479c790c 42085 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42087 (eval $ac_try) 2>&5
42088 ac_status=$?
42089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42090 (exit $ac_status); }; } &&
42091 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42093 (eval $ac_try) 2>&5
42094 ac_status=$?
42095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42096 (exit $ac_status); }; }; then
42097 eval "$as_ac_var=yes"
42098else
42099 echo "$as_me: failed program was:" >&5
42100sed 's/^/| /' conftest.$ac_ext >&5
42101
42102eval "$as_ac_var=no"
42103fi
ac1cb8d3
VS
42104rm -f conftest.err conftest.$ac_objext \
42105 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42106fi
42107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42108echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42109if test `eval echo '${'$as_ac_var'}'` = yes; then
42110 cat >>confdefs.h <<_ACEOF
42111#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42112_ACEOF
42113
42114 cat >>confdefs.h <<\_ACEOF
42115#define HAVE_DLOPEN 1
42116_ACEOF
42117
42118 HAVE_DL_FUNCS=1
42119
42120else
42121
42122 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
42123echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
42124if test "${ac_cv_lib_dl_dlopen+set}" = set; then
42125 echo $ECHO_N "(cached) $ECHO_C" >&6
42126else
42127 ac_check_lib_save_LIBS=$LIBS
42128LIBS="-ldl $LIBS"
42129cat >conftest.$ac_ext <<_ACEOF
42130/* confdefs.h. */
42131_ACEOF
42132cat confdefs.h >>conftest.$ac_ext
42133cat >>conftest.$ac_ext <<_ACEOF
42134/* end confdefs.h. */
42135
42136/* Override any gcc2 internal prototype to avoid an error. */
42137#ifdef __cplusplus
42138extern "C"
42139#endif
42140/* We use char because int might match the return type of a gcc2
42141 builtin and then its argument prototype would still apply. */
42142char dlopen ();
42143int
42144main ()
42145{
42146dlopen ();
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 ac_cv_lib_dl_dlopen=yes
42173else
42174 echo "$as_me: failed program was:" >&5
42175sed 's/^/| /' conftest.$ac_ext >&5
42176
42177ac_cv_lib_dl_dlopen=no
42178fi
ac1cb8d3
VS
42179rm -f conftest.err conftest.$ac_objext \
42180 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42181LIBS=$ac_check_lib_save_LIBS
42182fi
42183echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
42184echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
42185if test $ac_cv_lib_dl_dlopen = yes; then
42186
42187 cat >>confdefs.h <<\_ACEOF
42188#define HAVE_DLOPEN 1
42189_ACEOF
42190
42191 HAVE_DL_FUNCS=1
42192 DL_LINK=" -ldl$DL_LINK"
42193
42194else
42195
42196
42197for ac_func in shl_load
42198do
42199as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42200echo "$as_me:$LINENO: checking for $ac_func" >&5
42201echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42202if eval "test \"\${$as_ac_var+set}\" = set"; then
42203 echo $ECHO_N "(cached) $ECHO_C" >&6
42204else
42205 cat >conftest.$ac_ext <<_ACEOF
42206/* confdefs.h. */
42207_ACEOF
42208cat confdefs.h >>conftest.$ac_ext
42209cat >>conftest.$ac_ext <<_ACEOF
42210/* end confdefs.h. */
ac1cb8d3
VS
42211/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42213#define $ac_func innocuous_$ac_func
42214
a848cd7e
SC
42215/* System header to define __stub macros and hopefully few prototypes,
42216 which can conflict with char $ac_func (); below.
42217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42218 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42219
a848cd7e
SC
42220#ifdef __STDC__
42221# include <limits.h>
42222#else
42223# include <assert.h>
42224#endif
ac1cb8d3
VS
42225
42226#undef $ac_func
42227
a848cd7e
SC
42228/* Override any gcc2 internal prototype to avoid an error. */
42229#ifdef __cplusplus
42230extern "C"
42231{
42232#endif
42233/* We use char because int might match the return type of a gcc2
42234 builtin and then its argument prototype would still apply. */
42235char $ac_func ();
42236/* The GNU C library defines this for functions which it implements
42237 to always fail with ENOSYS. Some functions are actually named
42238 something starting with __ and the normal name is an alias. */
42239#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42240choke me
42241#else
42242char (*f) () = $ac_func;
42243#endif
42244#ifdef __cplusplus
42245}
42246#endif
42247
42248int
42249main ()
42250{
42251return f != $ac_func;
42252 ;
42253 return 0;
42254}
42255_ACEOF
42256rm -f conftest.$ac_objext conftest$ac_exeext
42257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42258 (eval $ac_link) 2>conftest.er1
a848cd7e 42259 ac_status=$?
ac1cb8d3
VS
42260 grep -v '^ *+' conftest.er1 >conftest.err
42261 rm -f conftest.er1
42262 cat conftest.err >&5
a848cd7e
SC
42263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42264 (exit $ac_status); } &&
479c790c 42265 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42267 (eval $ac_try) 2>&5
42268 ac_status=$?
42269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42270 (exit $ac_status); }; } &&
42271 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42273 (eval $ac_try) 2>&5
42274 ac_status=$?
42275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42276 (exit $ac_status); }; }; then
42277 eval "$as_ac_var=yes"
42278else
42279 echo "$as_me: failed program was:" >&5
42280sed 's/^/| /' conftest.$ac_ext >&5
42281
42282eval "$as_ac_var=no"
42283fi
ac1cb8d3
VS
42284rm -f conftest.err conftest.$ac_objext \
42285 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42286fi
42287echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42288echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42289if test `eval echo '${'$as_ac_var'}'` = yes; then
42290 cat >>confdefs.h <<_ACEOF
42291#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42292_ACEOF
42293
42294 cat >>confdefs.h <<\_ACEOF
42295#define HAVE_SHL_LOAD 1
42296_ACEOF
42297
42298 HAVE_SHL_FUNCS=1
42299
42300else
42301
42302 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
42303echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
42304if test "${ac_cv_lib_shl_load_dld+set}" = set; then
42305 echo $ECHO_N "(cached) $ECHO_C" >&6
42306else
42307 ac_check_lib_save_LIBS=$LIBS
42308LIBS="-lshl_load $LIBS"
42309cat >conftest.$ac_ext <<_ACEOF
42310/* confdefs.h. */
42311_ACEOF
42312cat confdefs.h >>conftest.$ac_ext
42313cat >>conftest.$ac_ext <<_ACEOF
42314/* end confdefs.h. */
42315
42316/* Override any gcc2 internal prototype to avoid an error. */
42317#ifdef __cplusplus
42318extern "C"
42319#endif
42320/* We use char because int might match the return type of a gcc2
42321 builtin and then its argument prototype would still apply. */
42322char dld ();
42323int
42324main ()
42325{
42326dld ();
42327 ;
42328 return 0;
42329}
42330_ACEOF
42331rm -f conftest.$ac_objext conftest$ac_exeext
42332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42333 (eval $ac_link) 2>conftest.er1
a848cd7e 42334 ac_status=$?
ac1cb8d3
VS
42335 grep -v '^ *+' conftest.er1 >conftest.err
42336 rm -f conftest.er1
42337 cat conftest.err >&5
a848cd7e
SC
42338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42339 (exit $ac_status); } &&
479c790c 42340 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42342 (eval $ac_try) 2>&5
42343 ac_status=$?
42344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42345 (exit $ac_status); }; } &&
42346 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42348 (eval $ac_try) 2>&5
42349 ac_status=$?
42350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42351 (exit $ac_status); }; }; then
42352 ac_cv_lib_shl_load_dld=yes
42353else
42354 echo "$as_me: failed program was:" >&5
42355sed 's/^/| /' conftest.$ac_ext >&5
42356
42357ac_cv_lib_shl_load_dld=no
42358fi
ac1cb8d3
VS
42359rm -f conftest.err conftest.$ac_objext \
42360 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42361LIBS=$ac_check_lib_save_LIBS
42362fi
42363echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
42364echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
42365if test $ac_cv_lib_shl_load_dld = yes; then
42366
42367 HAVE_SHL_FUNCS=1
42368 DL_LINK=" -ldld$DL_LINK"
42369
42370fi
42371
42372
42373fi
42374done
42375
42376
42377fi
42378
42379
42380fi
42381done
42382
42383
42384 if test "$HAVE_DL_FUNCS" = 1; then
42385
42386for ac_func in dlerror
42387do
42388as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42389echo "$as_me:$LINENO: checking for $ac_func" >&5
42390echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42391if eval "test \"\${$as_ac_var+set}\" = set"; then
42392 echo $ECHO_N "(cached) $ECHO_C" >&6
42393else
42394 cat >conftest.$ac_ext <<_ACEOF
42395/* confdefs.h. */
42396_ACEOF
42397cat confdefs.h >>conftest.$ac_ext
42398cat >>conftest.$ac_ext <<_ACEOF
42399/* end confdefs.h. */
ac1cb8d3
VS
42400/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42402#define $ac_func innocuous_$ac_func
42403
a848cd7e
SC
42404/* System header to define __stub macros and hopefully few prototypes,
42405 which can conflict with char $ac_func (); below.
42406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42407 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42408
a848cd7e
SC
42409#ifdef __STDC__
42410# include <limits.h>
42411#else
42412# include <assert.h>
42413#endif
ac1cb8d3
VS
42414
42415#undef $ac_func
42416
a848cd7e
SC
42417/* Override any gcc2 internal prototype to avoid an error. */
42418#ifdef __cplusplus
42419extern "C"
42420{
42421#endif
42422/* We use char because int might match the return type of a gcc2
42423 builtin and then its argument prototype would still apply. */
42424char $ac_func ();
42425/* The GNU C library defines this for functions which it implements
42426 to always fail with ENOSYS. Some functions are actually named
42427 something starting with __ and the normal name is an alias. */
42428#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42429choke me
42430#else
42431char (*f) () = $ac_func;
42432#endif
42433#ifdef __cplusplus
42434}
42435#endif
42436
42437int
42438main ()
42439{
42440return f != $ac_func;
42441 ;
42442 return 0;
42443}
42444_ACEOF
42445rm -f conftest.$ac_objext conftest$ac_exeext
42446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42447 (eval $ac_link) 2>conftest.er1
a848cd7e 42448 ac_status=$?
ac1cb8d3
VS
42449 grep -v '^ *+' conftest.er1 >conftest.err
42450 rm -f conftest.er1
42451 cat conftest.err >&5
a848cd7e
SC
42452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42453 (exit $ac_status); } &&
479c790c 42454 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42456 (eval $ac_try) 2>&5
42457 ac_status=$?
42458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42459 (exit $ac_status); }; } &&
42460 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42462 (eval $ac_try) 2>&5
42463 ac_status=$?
42464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42465 (exit $ac_status); }; }; then
42466 eval "$as_ac_var=yes"
42467else
42468 echo "$as_me: failed program was:" >&5
42469sed 's/^/| /' conftest.$ac_ext >&5
42470
42471eval "$as_ac_var=no"
42472fi
ac1cb8d3
VS
42473rm -f conftest.err conftest.$ac_objext \
42474 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42475fi
42476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42477echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42478if test `eval echo '${'$as_ac_var'}'` = yes; then
42479 cat >>confdefs.h <<_ACEOF
42480#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42481_ACEOF
42482 cat >>confdefs.h <<\_ACEOF
42483#define HAVE_DLERROR 1
42484_ACEOF
42485
42486else
42487
42488 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
42489echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
42490if test "${ac_cv_lib_dl_dlerror+set}" = set; then
42491 echo $ECHO_N "(cached) $ECHO_C" >&6
42492else
42493 ac_check_lib_save_LIBS=$LIBS
42494LIBS="-ldl $LIBS"
42495cat >conftest.$ac_ext <<_ACEOF
42496/* confdefs.h. */
42497_ACEOF
42498cat confdefs.h >>conftest.$ac_ext
42499cat >>conftest.$ac_ext <<_ACEOF
42500/* end confdefs.h. */
42501
42502/* Override any gcc2 internal prototype to avoid an error. */
42503#ifdef __cplusplus
42504extern "C"
42505#endif
42506/* We use char because int might match the return type of a gcc2
42507 builtin and then its argument prototype would still apply. */
42508char dlerror ();
42509int
42510main ()
42511{
42512dlerror ();
42513 ;
42514 return 0;
42515}
42516_ACEOF
42517rm -f conftest.$ac_objext conftest$ac_exeext
42518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42519 (eval $ac_link) 2>conftest.er1
a848cd7e 42520 ac_status=$?
ac1cb8d3
VS
42521 grep -v '^ *+' conftest.er1 >conftest.err
42522 rm -f conftest.er1
42523 cat conftest.err >&5
a848cd7e
SC
42524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42525 (exit $ac_status); } &&
479c790c 42526 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42528 (eval $ac_try) 2>&5
42529 ac_status=$?
42530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42531 (exit $ac_status); }; } &&
42532 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42534 (eval $ac_try) 2>&5
42535 ac_status=$?
42536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42537 (exit $ac_status); }; }; then
42538 ac_cv_lib_dl_dlerror=yes
42539else
42540 echo "$as_me: failed program was:" >&5
42541sed 's/^/| /' conftest.$ac_ext >&5
42542
42543ac_cv_lib_dl_dlerror=no
42544fi
ac1cb8d3
VS
42545rm -f conftest.err conftest.$ac_objext \
42546 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42547LIBS=$ac_check_lib_save_LIBS
42548fi
42549echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
42550echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
42551if test $ac_cv_lib_dl_dlerror = yes; then
42552 cat >>confdefs.h <<\_ACEOF
42553#define HAVE_DLERROR 1
42554_ACEOF
42555
42556fi
42557
42558
42559
42560fi
42561done
42562
42563 fi
42564 fi
42565
42566 if test "$HAVE_DL_FUNCS" = 0; then
42567 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 42568 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
42569 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
42570echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
42571 wxUSE_DYNAMIC_LOADER=no
42572 wxUSE_DYNLIB_CLASS=no
42573 else
42574 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
42575echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
42576 fi
42577 fi
42578 fi
42579 fi
42580fi
42581
42582if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
42583 cat >>confdefs.h <<\_ACEOF
42584#define wxUSE_DYNAMIC_LOADER 1
42585_ACEOF
42586
42587fi
42588if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42589 cat >>confdefs.h <<\_ACEOF
42590#define wxUSE_DYNLIB_CLASS 1
42591_ACEOF
42592
42593fi
42594
42595
42596
42597if test "$wxUSE_PLUGINS" = "yes" ; then
42598 if test "$wxUSE_SHARED" = "no" ; then
42599 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
42600echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
42601 wxUSE_PLUGINS=no
42602 fi
42603 if test "$wxUSE_MONOLITHIC" = "yes" ; then
42604 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
42605echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
42606 wxUSE_PLUGINS=no
42607 fi
42608 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
42609 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
42610echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
42611 wxUSE_PLUGINS=no
42612 fi
42613 if test "$wxUSE_PLUGINS" = "yes" ; then
42614 cat >>confdefs.h <<\_ACEOF
42615#define wxUSE_PLUGINS 1
42616_ACEOF
42617
42618 fi
42619fi
42620
42621
42622if test "$wxUSE_STL" = "yes"; then
42623 cat >>confdefs.h <<\_ACEOF
42624#define wxUSE_STL 1
42625_ACEOF
42626
42627fi
42628
42629if test "$wxUSE_APPLE_IEEE" = "yes"; then
42630 cat >>confdefs.h <<\_ACEOF
42631#define wxUSE_APPLE_IEEE 1
42632_ACEOF
42633
42634fi
42635
42636if test "$wxUSE_TIMER" = "yes"; then
42637 cat >>confdefs.h <<\_ACEOF
42638#define wxUSE_TIMER 1
42639_ACEOF
42640
42641fi
42642
9c112555 42643if test "$USE_UNIX" = "1" ; then
31714590
VZ
42644 echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
42645echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
d12aef51 42646if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 42647 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 42648else
d12aef51
VZ
42649
42650 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42651/* confdefs.h. */
42652_ACEOF
42653cat confdefs.h >>conftest.$ac_ext
42654cat >>conftest.$ac_ext <<_ACEOF
42655/* end confdefs.h. */
d12aef51 42656
31714590 42657 #include <sys/ioctl.h>
d12aef51
VZ
42658 #include <sys/soundcard.h>
42659
42660int
42661main ()
42662{
42663
31714590 42664 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
42665
42666 ;
42667 return 0;
42668}
a848cd7e 42669_ACEOF
d12aef51
VZ
42670rm -f conftest.$ac_objext conftest$ac_exeext
42671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42672 (eval $ac_link) 2>conftest.er1
a848cd7e 42673 ac_status=$?
ac1cb8d3
VS
42674 grep -v '^ *+' conftest.er1 >conftest.err
42675 rm -f conftest.er1
42676 cat conftest.err >&5
a848cd7e
SC
42677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42678 (exit $ac_status); } &&
479c790c 42679 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42681 (eval $ac_try) 2>&5
42682 ac_status=$?
42683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42684 (exit $ac_status); }; } &&
d12aef51 42685 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42687 (eval $ac_try) 2>&5
42688 ac_status=$?
42689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42690 (exit $ac_status); }; }; then
d12aef51 42691 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
42692else
42693 echo "$as_me: failed program was:" >&5
42694sed 's/^/| /' conftest.$ac_ext >&5
42695
a848cd7e 42696
d12aef51
VZ
42697 saveLibs="$LIBS"
42698 LIBS="$saveLibs -lossaudio"
42699 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42700/* confdefs.h. */
42701_ACEOF
42702cat confdefs.h >>conftest.$ac_ext
42703cat >>conftest.$ac_ext <<_ACEOF
42704/* end confdefs.h. */
d12aef51 42705
31714590 42706 #include <sys/ioctl.h>
d12aef51
VZ
42707 #include <sys/soundcard.h>
42708
42709int
42710main ()
42711{
42712
31714590 42713 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
42714
42715 ;
42716 return 0;
42717}
a848cd7e 42718_ACEOF
d12aef51
VZ
42719rm -f conftest.$ac_objext conftest$ac_exeext
42720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42721 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
42722 ac_status=$?
42723 grep -v '^ *+' conftest.er1 >conftest.err
42724 rm -f conftest.er1
42725 cat conftest.err >&5
42726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 42727 (exit $ac_status); } &&
479c790c 42728 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
42729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42730 (eval $ac_try) 2>&5
42731 ac_status=$?
42732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42733 (exit $ac_status); }; } &&
42734 { ac_try='test -s conftest$ac_exeext'
42735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42736 (eval $ac_try) 2>&5
42737 ac_status=$?
42738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42739 (exit $ac_status); }; }; then
42740 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
42741else
42742 echo "$as_me: failed program was:" >&5
42743sed 's/^/| /' conftest.$ac_ext >&5
42744
a848cd7e 42745
d12aef51
VZ
42746 LIBS="$saveLibs"
42747 ac_cv_header_sys_soundcard=no
42748
42749
a848cd7e 42750fi
d12aef51
VZ
42751rm -f conftest.err conftest.$ac_objext \
42752 conftest$ac_exeext conftest.$ac_ext
42753
a848cd7e
SC
42754
42755fi
d12aef51
VZ
42756rm -f conftest.err conftest.$ac_objext \
42757 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42758
42759fi
d12aef51
VZ
42760echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
42761echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 42762
d12aef51
VZ
42763 if test "$ac_cv_header_sys_soundcard" = "yes"; then
42764 cat >>confdefs.h <<\_ACEOF
42765#define HAVE_SYS_SOUNDCARD_H 1
42766_ACEOF
a848cd7e 42767
d12aef51
VZ
42768 else
42769 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
42770 fi
9c112555
MW
42771fi
42772WITH_PLUGIN_SDL=0
42773if test "$wxUSE_SOUND" = "yes"; then
42774 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
42775 if test "$wxUSE_LIBSDL" != "no"; then
42776
42777# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
42778if test "${with_sdl_prefix+set}" = set; then
42779 withval="$with_sdl_prefix"
42780 sdl_prefix="$withval"
42781else
42782 sdl_prefix=""
42783fi;
42784
42785# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
42786if test "${with_sdl_exec_prefix+set}" = set; then
42787 withval="$with_sdl_exec_prefix"
42788 sdl_exec_prefix="$withval"
42789else
42790 sdl_exec_prefix=""
42791fi;
42792# Check whether --enable-sdltest or --disable-sdltest was given.
42793if test "${enable_sdltest+set}" = set; then
42794 enableval="$enable_sdltest"
42795
42796else
42797 enable_sdltest=yes
42798fi;
42799
42800 if test x$sdl_exec_prefix != x ; then
3ecd9f92
MW
42801 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
42802 if test x${SDL_CONFIG+set} != xset ; then
42803 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
42804 fi
a848cd7e
SC
42805 fi
42806 if test x$sdl_prefix != x ; then
3ecd9f92
MW
42807 sdl_args="$sdl_args --prefix=$sdl_prefix"
42808 if test x${SDL_CONFIG+set} != xset ; then
42809 SDL_CONFIG=$sdl_prefix/bin/sdl-config
42810 fi
a848cd7e
SC
42811 fi
42812
3ecd9f92
MW
42813 if test "x$prefix" != xNONE; then
42814 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
42815 fi
a848cd7e
SC
42816 # Extract the first word of "sdl-config", so it can be a program name with args.
42817set dummy sdl-config; ac_word=$2
42818echo "$as_me:$LINENO: checking for $ac_word" >&5
42819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42820if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
42821 echo $ECHO_N "(cached) $ECHO_C" >&6
42822else
42823 case $SDL_CONFIG in
42824 [\\/]* | ?:[\\/]*)
42825 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
42826 ;;
42827 *)
42828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42829for as_dir in $PATH
42830do
42831 IFS=$as_save_IFS
42832 test -z "$as_dir" && as_dir=.
42833 for ac_exec_ext in '' $ac_executable_extensions; do
42834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42835 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42837 break 2
42838 fi
42839done
42840done
42841
42842 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
42843 ;;
42844esac
42845fi
42846SDL_CONFIG=$ac_cv_path_SDL_CONFIG
42847
42848if test -n "$SDL_CONFIG"; then
42849 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
42850echo "${ECHO_T}$SDL_CONFIG" >&6
42851else
42852 echo "$as_me:$LINENO: result: no" >&5
42853echo "${ECHO_T}no" >&6
42854fi
42855
42856 min_sdl_version=1.2.0
42857 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
42858echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
42859 no_sdl=""
42860 if test "$SDL_CONFIG" = "no" ; then
42861 no_sdl=yes
42862 else
42863 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
42864 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
42865
42866 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
42867 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42868 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
42869 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42870 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
42871 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42872 if test "x$enable_sdltest" = "xyes" ; then
42873 ac_save_CFLAGS="$CFLAGS"
94acd38e 42874 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
42875 ac_save_LIBS="$LIBS"
42876 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 42877 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
42878 LIBS="$LIBS $SDL_LIBS"
42879 rm -f conf.sdltest
42880 if test "$cross_compiling" = yes; then
42881 echo $ac_n "cross compiling; assumed OK... $ac_c"
42882else
42883 cat >conftest.$ac_ext <<_ACEOF
42884/* confdefs.h. */
42885_ACEOF
42886cat confdefs.h >>conftest.$ac_ext
42887cat >>conftest.$ac_ext <<_ACEOF
42888/* end confdefs.h. */
42889
42890#include <stdio.h>
42891#include <stdlib.h>
42892#include <string.h>
42893#include "SDL.h"
42894
42895char*
42896my_strdup (char *str)
42897{
42898 char *new_str;
42899
42900 if (str)
42901 {
42902 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
42903 strcpy (new_str, str);
42904 }
42905 else
42906 new_str = NULL;
42907
42908 return new_str;
42909}
42910
42911int main (int argc, char *argv[])
42912{
42913 int major, minor, micro;
42914 char *tmp_version;
42915
42916 /* This hangs on some systems (?)
42917 system ("touch conf.sdltest");
42918 */
42919 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
42920
42921 /* HP/UX 9 (%@#!) writes to sscanf strings */
42922 tmp_version = my_strdup("$min_sdl_version");
42923 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
42924 printf("%s, bad version string\n", "$min_sdl_version");
42925 exit(1);
42926 }
42927
42928 if (($sdl_major_version > major) ||
42929 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
42930 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
42931 {
42932 return 0;
42933 }
42934 else
42935 {
42936 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
42937 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
42938 printf("*** best to upgrade to the required version.\n");
42939 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
42940 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
42941 printf("*** config.cache before re-running configure\n");
42942 return 1;
42943 }
42944}
42945
42946
42947_ACEOF
42948rm -f conftest$ac_exeext
42949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42950 (eval $ac_link) 2>&5
42951 ac_status=$?
42952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42955 (eval $ac_try) 2>&5
42956 ac_status=$?
42957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42958 (exit $ac_status); }; }; then
42959 :
42960else
42961 echo "$as_me: program exited with status $ac_status" >&5
42962echo "$as_me: failed program was:" >&5
42963sed 's/^/| /' conftest.$ac_ext >&5
42964
42965( exit $ac_status )
42966no_sdl=yes
42967fi
ac1cb8d3 42968rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42969fi
42970 CFLAGS="$ac_save_CFLAGS"
94acd38e 42971 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
42972 LIBS="$ac_save_LIBS"
42973 fi
42974 fi
42975 if test "x$no_sdl" = x ; then
42976 echo "$as_me:$LINENO: result: yes" >&5
42977echo "${ECHO_T}yes" >&6
42978
42979 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 42980 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
42981 cat >>confdefs.h <<\_ACEOF
42982#define wxUSE_LIBSDL 1
42983_ACEOF
42984
42985
42986 else
42987 echo "$as_me:$LINENO: result: no" >&5
42988echo "${ECHO_T}no" >&6
42989 if test "$SDL_CONFIG" = "no" ; then
42990 echo "*** The sdl-config script installed by SDL could not be found"
42991 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
42992 echo "*** your path, or set the SDL_CONFIG environment variable to the"
42993 echo "*** full path to sdl-config."
42994 else
42995 if test -f conf.sdltest ; then
42996 :
42997 else
42998 echo "*** Could not run SDL test program, checking why..."
42999 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 43000 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
43001 LIBS="$LIBS $SDL_LIBS"
43002 cat >conftest.$ac_ext <<_ACEOF
43003/* confdefs.h. */
43004_ACEOF
43005cat confdefs.h >>conftest.$ac_ext
43006cat >>conftest.$ac_ext <<_ACEOF
43007/* end confdefs.h. */
43008
43009#include <stdio.h>
43010#include "SDL.h"
43011
43012int main(int argc, char *argv[])
43013{ return 0; }
43014#undef main
43015#define main K_and_R_C_main
43016
43017int
43018main ()
43019{
43020 return 0;
43021 ;
43022 return 0;
43023}
43024_ACEOF
43025rm -f conftest.$ac_objext conftest$ac_exeext
43026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43027 (eval $ac_link) 2>conftest.er1
a848cd7e 43028 ac_status=$?
ac1cb8d3
VS
43029 grep -v '^ *+' conftest.er1 >conftest.err
43030 rm -f conftest.er1
43031 cat conftest.err >&5
a848cd7e
SC
43032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43033 (exit $ac_status); } &&
479c790c 43034 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43036 (eval $ac_try) 2>&5
43037 ac_status=$?
43038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43039 (exit $ac_status); }; } &&
43040 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43042 (eval $ac_try) 2>&5
43043 ac_status=$?
43044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43045 (exit $ac_status); }; }; then
43046 echo "*** The test program compiled, but did not run. This usually means"
43047 echo "*** that the run-time linker is not finding SDL or finding the wrong"
43048 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
43049 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
43050 echo "*** to the installed location Also, make sure you have run ldconfig if that"
43051 echo "*** is required on your system"
43052 echo "***"
43053 echo "*** If you have an old version installed, it is best to remove it, although"
43054 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
43055else
43056 echo "$as_me: failed program was:" >&5
43057sed 's/^/| /' conftest.$ac_ext >&5
43058
43059 echo "*** The test program failed to compile or link. See the file config.log for the"
43060 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
43061 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
43062 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
43063fi
ac1cb8d3
VS
43064rm -f conftest.err conftest.$ac_objext \
43065 conftest$ac_exeext conftest.$ac_ext
a848cd7e 43066 CFLAGS="$ac_save_CFLAGS"
94acd38e 43067 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
43068 LIBS="$ac_save_LIBS"
43069 fi
43070 fi
43071 SDL_CFLAGS=""
43072 SDL_LIBS=""
43073 wxUSE_LIBSDL="no"
43074 fi
43075
43076
43077 rm -f conf.sdltest
43078
43079 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
43080 WITH_PLUGIN_SDL=1
43081 fi
43082 fi
43083 fi
43084
43085 cat >>confdefs.h <<\_ACEOF
43086#define wxUSE_SOUND 1
43087_ACEOF
43088
43089 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
43090fi
43091
d1c38808
VZ
43092if test "$WXGTK20" = 1; then
43093 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
43094 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
43095
43096
3ecd9f92
MW
43097pkg_failed=no
43098echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
43099echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6
d1c38808 43100
3ecd9f92
MW
43101if test -n "$PKG_CONFIG"; then
43102 if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
43103 pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
43104 else
43105 if test -n "$PKG_CONFIG" && \
43106 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
43107 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
43108 ac_status=$?
43109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43110 (exit $ac_status); }; then
43111 pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 43112else
3ecd9f92
MW
43113 pkg_failed=yes
43114fi
43115 fi
43116else
43117 pkg_failed=untried
d1c38808 43118fi
d1c38808 43119if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
43120 if test -n "$LIBGNOMEPRINTUI_LIBS"; then
43121 pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
43122 else
43123 if test -n "$PKG_CONFIG" && \
43124 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
43125 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
43126 ac_status=$?
43127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43128 (exit $ac_status); }; then
43129 pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 43130else
3ecd9f92
MW
43131 pkg_failed=yes
43132fi
43133 fi
43134else
43135 pkg_failed=untried
d1c38808
VZ
43136fi
43137
d1c38808 43138
d1c38808 43139
3ecd9f92 43140if test $pkg_failed = yes; then
d1c38808 43141
3ecd9f92
MW
43142if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43143 _pkg_short_errors_supported=yes
43144else
43145 _pkg_short_errors_supported=no
43146fi
43147 if test $_pkg_short_errors_supported = yes; then
43148 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
43149 else
43150 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808 43151 fi
3ecd9f92
MW
43152 # Put the nasty error message in config.log where it belongs
43153 echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
d1c38808
VZ
43154
43155
3ecd9f92
MW
43156 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
43157echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
43158 wxUSE_LIBGNOMEPRINT="no"
d1c38808
VZ
43159
43160
3ecd9f92 43161elif test $pkg_failed = untried; then
d1c38808
VZ
43162
43163 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
43164echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
43165 wxUSE_LIBGNOMEPRINT="no"
43166
43167
3ecd9f92
MW
43168else
43169 LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
43170 LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
43171 echo "$as_me:$LINENO: result: yes" >&5
43172echo "${ECHO_T}yes" >&6
d1c38808 43173
3ecd9f92
MW
43174 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
43175 cat >>confdefs.h <<\_ACEOF
43176#define wxUSE_LIBGNOMEPRINT 1
43177_ACEOF
43178
43179
43180fi
d1c38808
VZ
43181 fi
43182 fi
43183fi
43184
2b850ae1
RR
43185if test "$WXGTK20" = 1; then
43186 if test "$wxUSE_MIMETYPE" = "yes" ; then
43187 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
43188
43189
3ecd9f92
MW
43190pkg_failed=no
43191echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
43192echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6
2b850ae1 43193
3ecd9f92
MW
43194if test -n "$PKG_CONFIG"; then
43195 if test -n "$GNOMEVFS_CFLAGS"; then
43196 pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
43197 else
43198 if test -n "$PKG_CONFIG" && \
43199 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
43200 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43201 ac_status=$?
43202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43203 (exit $ac_status); }; then
43204 pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 43205else
3ecd9f92
MW
43206 pkg_failed=yes
43207fi
43208 fi
43209else
43210 pkg_failed=untried
2b850ae1 43211fi
2b850ae1 43212if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
43213 if test -n "$GNOMEVFS_LIBS"; then
43214 pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
43215 else
43216 if test -n "$PKG_CONFIG" && \
43217 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
43218 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43219 ac_status=$?
43220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43221 (exit $ac_status); }; then
43222 pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 43223else
3ecd9f92
MW
43224 pkg_failed=yes
43225fi
43226 fi
43227else
43228 pkg_failed=untried
2b850ae1
RR
43229fi
43230
2b850ae1 43231
2b850ae1 43232
3ecd9f92 43233if test $pkg_failed = yes; then
2b850ae1 43234
3ecd9f92
MW
43235if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43236 _pkg_short_errors_supported=yes
43237else
43238 _pkg_short_errors_supported=no
43239fi
43240 if test $_pkg_short_errors_supported = yes; then
43241 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
43242 else
43243 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
2b850ae1 43244 fi
3ecd9f92
MW
43245 # Put the nasty error message in config.log where it belongs
43246 echo "$GNOMEVFS_PKG_ERRORS" >&5
2b850ae1
RR
43247
43248
3ecd9f92
MW
43249 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43250echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43251 wxUSE_LIBGNOMEVFS="no"
2b850ae1
RR
43252
43253
3ecd9f92 43254elif test $pkg_failed = untried; then
2b850ae1
RR
43255
43256 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43257echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43258 wxUSE_LIBGNOMEVFS="no"
43259
43260
3ecd9f92
MW
43261else
43262 GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
43263 GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
43264 echo "$as_me:$LINENO: result: yes" >&5
43265echo "${ECHO_T}yes" >&6
2b850ae1 43266
3ecd9f92
MW
43267 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
43268 cat >>confdefs.h <<\_ACEOF
43269#define wxUSE_LIBGNOMEVFS 1
43270_ACEOF
43271
43272
43273fi
2b850ae1
RR
43274 fi
43275 fi
43276fi
43277
3565d135
RR
43278if test "$WXGTK20" = 1; then
43279 if test "$wxUSE_LIBHILDON" = "yes" ; then
43280
3ecd9f92
MW
43281pkg_failed=no
43282echo "$as_me:$LINENO: checking for HILDON" >&5
43283echo $ECHO_N "checking for HILDON... $ECHO_C" >&6
3565d135 43284
3ecd9f92
MW
43285if test -n "$PKG_CONFIG"; then
43286 if test -n "$HILDON_CFLAGS"; then
43287 pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
43288 else
43289 if test -n "$PKG_CONFIG" && \
43290 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43291 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43292 ac_status=$?
43293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43294 (exit $ac_status); }; then
43295 pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 43296else
3ecd9f92
MW
43297 pkg_failed=yes
43298fi
43299 fi
43300else
43301 pkg_failed=untried
3565d135 43302fi
3565d135 43303if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
43304 if test -n "$HILDON_LIBS"; then
43305 pkg_cv_HILDON_LIBS="$HILDON_LIBS"
43306 else
43307 if test -n "$PKG_CONFIG" && \
43308 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43309 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43310 ac_status=$?
43311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43312 (exit $ac_status); }; then
43313 pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 43314else
3ecd9f92
MW
43315 pkg_failed=yes
43316fi
43317 fi
43318else
43319 pkg_failed=untried
3565d135
RR
43320fi
43321
3565d135 43322
3565d135 43323
3ecd9f92 43324if test $pkg_failed = yes; then
3565d135 43325
3ecd9f92
MW
43326if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43327 _pkg_short_errors_supported=yes
43328else
43329 _pkg_short_errors_supported=no
43330fi
43331 if test $_pkg_short_errors_supported = yes; then
43332 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43333 else
43334 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
3565d135 43335 fi
3ecd9f92
MW
43336 # Put the nasty error message in config.log where it belongs
43337 echo "$HILDON_PKG_ERRORS" >&5
3565d135
RR
43338
43339
3ecd9f92
MW
43340 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43341echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43342 wxUSE_LIBHILDON="no"
3565d135 43343
3565d135 43344
3ecd9f92
MW
43345elif test $pkg_failed = untried; then
43346
43347 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43348echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43349 wxUSE_LIBHILDON="no"
43350
43351
43352else
43353 HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
43354 HILDON_LIBS=$pkg_cv_HILDON_LIBS
43355 echo "$as_me:$LINENO: result: yes" >&5
43356echo "${ECHO_T}yes" >&6
3565d135
RR
43357
43358 EXTRALIBS_HILDON="$HILDON_LIBS"
43359 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
43360 cat >>confdefs.h <<\_ACEOF
43361#define wxUSE_LIBHILDON 1
43362_ACEOF
43363
43364
3ecd9f92 43365fi
3565d135
RR
43366 fi
43367fi
d1c38808 43368
a848cd7e
SC
43369if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
43370 cat >>confdefs.h <<\_ACEOF
43371#define wxUSE_CMDLINE_PARSER 1
43372_ACEOF
43373
43374fi
43375
43376if test "$wxUSE_STOPWATCH" = "yes"; then
43377 cat >>confdefs.h <<\_ACEOF
43378#define wxUSE_STOPWATCH 1
43379_ACEOF
43380
43381fi
43382
43383if test "$wxUSE_DATETIME" = "yes"; then
43384 cat >>confdefs.h <<\_ACEOF
43385#define wxUSE_DATETIME 1
43386_ACEOF
43387
43388fi
43389
43390if test "$wxUSE_FILE" = "yes"; then
43391 cat >>confdefs.h <<\_ACEOF
43392#define wxUSE_FILE 1
43393_ACEOF
43394
43395fi
43396
43397if test "$wxUSE_FFILE" = "yes"; then
43398 cat >>confdefs.h <<\_ACEOF
43399#define wxUSE_FFILE 1
43400_ACEOF
43401
43402fi
43403
43404if test "$wxUSE_FILESYSTEM" = "yes"; then
43405 cat >>confdefs.h <<\_ACEOF
43406#define wxUSE_FILESYSTEM 1
43407_ACEOF
43408
43409fi
43410
43411if test "$wxUSE_FS_ZIP" = "yes"; then
43412 cat >>confdefs.h <<\_ACEOF
43413#define wxUSE_FS_ZIP 1
43414_ACEOF
43415
43416fi
43417
9e8e867f 43418if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
26e422a9
MW
43419 if test "$wxUSE_STREAMS" != yes; then
43420 { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
43421echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
43422 else
43423 cat >>confdefs.h <<\_ACEOF
9e8e867f 43424#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
43425_ACEOF
43426
26e422a9 43427 fi
81f90336
MW
43428fi
43429
43430if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 43431 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
43432 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
43433echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
43434 elif test "$wxUSE_ZLIB" = "no"; then
43435 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
43436echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
43437 else
43438 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43439#define wxUSE_ZIPSTREAM 1
43440_ACEOF
43441
81f90336 43442 fi
a848cd7e
SC
43443fi
43444
26e422a9
MW
43445if test "$wxUSE_TARSTREAM" = "yes"; then
43446 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43447 { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
43448echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
43449 else
43450 cat >>confdefs.h <<\_ACEOF
43451#define wxUSE_TARSTREAM 1
43452_ACEOF
43453
43454 fi
43455fi
43456
f8f6c91a
MW
43457if test "$wxUSE_BACKINGFILE" = "yes"; then
43458 if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
43459 { echo "$as_me:$LINENO: WARNING: wxBackingFile requires wxStreams and wxFile or wxFFile... disabled" >&5
43460echo "$as_me: WARNING: wxBackingFile requires wxStreams and wxFile or wxFFile... disabled" >&2;}
43461 else
43462 cat >>confdefs.h <<\_ACEOF
43463#define wxUSE_BACKINGFILE 1
43464_ACEOF
43465
43466 fi
43467fi
43468
26e422a9
MW
43469if test "$wxUSE_FS_ARCHIVE" = "yes"; then
43470 if test "$wxUSE_ARCHIVE_STREAMS" != yes -o "$wxUSE_BACKINGFILE" != yes; then
43471 { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxBackingFile... disabled" >&5
43472echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxBackingFile... disabled" >&2;}
43473 else
43474 cat >>confdefs.h <<\_ACEOF
43475#define wxUSE_FS_ARCHIVE 1
43476_ACEOF
43477
43478 fi
43479fi
43480
a848cd7e 43481if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
43482 if test "$USE_UNIX" != 1; then
43483 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
43484echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
43485 wxUSE_ON_FATAL_EXCEPTION=no
43486 else
43487 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43488#define wxUSE_ON_FATAL_EXCEPTION 1
43489_ACEOF
43490
18228ab4 43491 fi
a848cd7e
SC
43492fi
43493
eaff0f0d
VZ
43494if test "$wxUSE_STACKWALKER" = "yes"; then
43495 cat >>confdefs.h <<\_ACEOF
43496#define wxUSE_STACKWALKER 1
43497_ACEOF
43498
43499fi
43500
36b6448c 43501if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
43502 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
43503 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
43504echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
43505 wxUSE_DEBUGREPORT=no
43506 else
43507 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
43508#define wxUSE_DEBUGREPORT 1
43509_ACEOF
43510
21dfc162
MW
43511 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43512 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
43513 fi
dfe0c803 43514 fi
36b6448c
VZ
43515fi
43516
a848cd7e
SC
43517if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
43518 cat >>confdefs.h <<\_ACEOF
43519#define wxUSE_SNGLINST_CHECKER 1
43520_ACEOF
43521
43522fi
43523
43524if test "$wxUSE_BUSYINFO" = "yes"; then
43525 cat >>confdefs.h <<\_ACEOF
43526#define wxUSE_BUSYINFO 1
43527_ACEOF
43528
43529fi
43530
43531if test "$wxUSE_STD_IOSTREAM" = "yes"; then
43532 cat >>confdefs.h <<\_ACEOF
43533#define wxUSE_STD_IOSTREAM 1
43534_ACEOF
43535
43536fi
43537
59746b65
MW
43538if test "$wxUSE_STD_STRING" = "yes"; then
43539 cat >>confdefs.h <<\_ACEOF
43540#define wxUSE_STD_STRING 1
43541_ACEOF
43542
43543fi
43544
07158944
VZ
43545if test "$wxUSE_STDPATHS" = "yes"; then
43546 cat >>confdefs.h <<\_ACEOF
43547#define wxUSE_STDPATHS 1
43548_ACEOF
43549
43550fi
43551
a848cd7e
SC
43552if test "$wxUSE_TEXTBUFFER" = "yes"; then
43553 cat >>confdefs.h <<\_ACEOF
43554#define wxUSE_TEXTBUFFER 1
43555_ACEOF
43556
43557fi
43558
43559if test "$wxUSE_TEXTFILE" = "yes"; then
43560 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
43561 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
43562echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
43563 else
43564 cat >>confdefs.h <<\_ACEOF
43565#define wxUSE_TEXTFILE 1
43566_ACEOF
43567
43568 fi
43569fi
43570
43571if test "$wxUSE_CONFIG" = "yes" ; then
43572 if test "$wxUSE_TEXTFILE" != "yes"; then
43573 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
43574echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
43575 else
43576 cat >>confdefs.h <<\_ACEOF
43577#define wxUSE_CONFIG 1
89be85c2
VS
43578_ACEOF
43579
43580 cat >>confdefs.h <<\_ACEOF
43581#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
43582_ACEOF
43583
43584 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
43585 fi
43586fi
43587
43588if test "$wxUSE_INTL" = "yes" ; then
43589 if test "$wxUSE_FILE" != "yes"; then
43590 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
43591echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
43592 else
43593 cat >>confdefs.h <<\_ACEOF
43594#define wxUSE_INTL 1
43595_ACEOF
43596
43597 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
43598 GUIDIST="$GUIDIST INTL_DIST"
43599 fi
43600fi
43601
43602if test "$wxUSE_LOG" = "yes"; then
43603 cat >>confdefs.h <<\_ACEOF
43604#define wxUSE_LOG 1
43605_ACEOF
43606
43607
43608 if test "$wxUSE_LOGGUI" = "yes"; then
43609 cat >>confdefs.h <<\_ACEOF
43610#define wxUSE_LOGGUI 1
43611_ACEOF
43612
43613 fi
43614
43615 if test "$wxUSE_LOGWINDOW" = "yes"; then
43616 cat >>confdefs.h <<\_ACEOF
43617#define wxUSE_LOGWINDOW 1
43618_ACEOF
43619
43620 fi
43621
43622 if test "$wxUSE_LOGDIALOG" = "yes"; then
43623 cat >>confdefs.h <<\_ACEOF
43624#define wxUSE_LOG_DIALOG 1
43625_ACEOF
43626
43627 fi
0b78747f
MW
43628
43629 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
43630fi
43631
43632if test "$wxUSE_LONGLONG" = "yes"; then
43633 cat >>confdefs.h <<\_ACEOF
43634#define wxUSE_LONGLONG 1
43635_ACEOF
43636
43637fi
43638
43639if test "$wxUSE_GEOMETRY" = "yes"; then
43640 cat >>confdefs.h <<\_ACEOF
43641#define wxUSE_GEOMETRY 1
43642_ACEOF
43643
43644fi
43645
a848cd7e
SC
43646if test "$wxUSE_STREAMS" = "yes" ; then
43647 cat >>confdefs.h <<\_ACEOF
43648#define wxUSE_STREAMS 1
43649_ACEOF
43650
43651fi
43652
8b6682b9
JS
43653if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
43654 cat >>confdefs.h <<\_ACEOF
43655#define wxUSE_PRINTF_POS_PARAMS 1
43656_ACEOF
43657
43658fi
43659
43660
a848cd7e
SC
43661
43662if test "$wxUSE_DATETIME" = "yes"; then
43663
43664for ac_func in strptime
43665do
43666as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43667echo "$as_me:$LINENO: checking for $ac_func" >&5
43668echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43669if eval "test \"\${$as_ac_var+set}\" = set"; then
43670 echo $ECHO_N "(cached) $ECHO_C" >&6
43671else
43672 cat >conftest.$ac_ext <<_ACEOF
43673/* confdefs.h. */
43674_ACEOF
43675cat confdefs.h >>conftest.$ac_ext
43676cat >>conftest.$ac_ext <<_ACEOF
43677/* end confdefs.h. */
ac1cb8d3
VS
43678/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43680#define $ac_func innocuous_$ac_func
43681
a848cd7e
SC
43682/* System header to define __stub macros and hopefully few prototypes,
43683 which can conflict with char $ac_func (); below.
43684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43685 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43686
a848cd7e
SC
43687#ifdef __STDC__
43688# include <limits.h>
43689#else
43690# include <assert.h>
43691#endif
ac1cb8d3
VS
43692
43693#undef $ac_func
43694
a848cd7e
SC
43695/* Override any gcc2 internal prototype to avoid an error. */
43696#ifdef __cplusplus
43697extern "C"
43698{
43699#endif
43700/* We use char because int might match the return type of a gcc2
43701 builtin and then its argument prototype would still apply. */
43702char $ac_func ();
43703/* The GNU C library defines this for functions which it implements
43704 to always fail with ENOSYS. Some functions are actually named
43705 something starting with __ and the normal name is an alias. */
43706#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43707choke me
43708#else
43709char (*f) () = $ac_func;
43710#endif
43711#ifdef __cplusplus
43712}
43713#endif
43714
43715int
43716main ()
43717{
43718return f != $ac_func;
43719 ;
43720 return 0;
43721}
43722_ACEOF
43723rm -f conftest.$ac_objext conftest$ac_exeext
43724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43725 (eval $ac_link) 2>conftest.er1
a848cd7e 43726 ac_status=$?
ac1cb8d3
VS
43727 grep -v '^ *+' conftest.er1 >conftest.err
43728 rm -f conftest.er1
43729 cat conftest.err >&5
a848cd7e
SC
43730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43731 (exit $ac_status); } &&
479c790c 43732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43734 (eval $ac_try) 2>&5
43735 ac_status=$?
43736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43737 (exit $ac_status); }; } &&
43738 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43740 (eval $ac_try) 2>&5
43741 ac_status=$?
43742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43743 (exit $ac_status); }; }; then
43744 eval "$as_ac_var=yes"
43745else
43746 echo "$as_me: failed program was:" >&5
43747sed 's/^/| /' conftest.$ac_ext >&5
43748
43749eval "$as_ac_var=no"
43750fi
ac1cb8d3
VS
43751rm -f conftest.err conftest.$ac_objext \
43752 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43753fi
43754echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43755echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43756if test `eval echo '${'$as_ac_var'}'` = yes; then
43757 cat >>confdefs.h <<_ACEOF
43758#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43759_ACEOF
43760
43761fi
43762done
43763
f536f005
VZ
43764 if test "$ac_cv_func_strptime" = "yes"; then
43765 echo "$as_me:$LINENO: checking for strptime declaration" >&5
43766echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
43767if test "${wx_cv_func_strptime_decl+set}" = set; then
43768 echo $ECHO_N "(cached) $ECHO_C" >&6
43769else
43770
f536f005
VZ
43771 cat >conftest.$ac_ext <<_ACEOF
43772/* confdefs.h. */
43773_ACEOF
43774cat confdefs.h >>conftest.$ac_ext
43775cat >>conftest.$ac_ext <<_ACEOF
43776/* end confdefs.h. */
43777
43778 #include <time.h>
43779
43780int
43781main ()
43782{
43783
43784 struct tm t;
43785 strptime("foo", "bar", &t);
43786
43787 ;
43788 return 0;
43789}
43790_ACEOF
43791rm -f conftest.$ac_objext
43792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43793 (eval $ac_compile) 2>conftest.er1
43794 ac_status=$?
43795 grep -v '^ *+' conftest.er1 >conftest.err
43796 rm -f conftest.er1
43797 cat conftest.err >&5
43798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43799 (exit $ac_status); } &&
479c790c 43800 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f536f005
VZ
43801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43802 (eval $ac_try) 2>&5
43803 ac_status=$?
43804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43805 (exit $ac_status); }; } &&
43806 { ac_try='test -s conftest.$ac_objext'
43807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43808 (eval $ac_try) 2>&5
43809 ac_status=$?
43810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43811 (exit $ac_status); }; }; then
43812 wx_cv_func_strptime_decl=yes
43813else
43814 echo "$as_me: failed program was:" >&5
43815sed 's/^/| /' conftest.$ac_ext >&5
43816
43817wx_cv_func_strptime_decl=no
43818
43819fi
43820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f536f005
VZ
43821
43822
43823fi
43824echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
43825echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
43826 fi
43827 if test "$wx_cv_func_strptime_decl" = "yes"; then
43828 cat >>confdefs.h <<\_ACEOF
43829#define HAVE_STRPTIME_DECL 1
43830_ACEOF
43831
43832 fi
a848cd7e
SC
43833
43834 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
43835echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
43836if test "${wx_cv_var_timezone+set}" = set; then
43837 echo $ECHO_N "(cached) $ECHO_C" >&6
43838else
43839
43840 cat >conftest.$ac_ext <<_ACEOF
43841/* confdefs.h. */
43842_ACEOF
43843cat confdefs.h >>conftest.$ac_ext
43844cat >>conftest.$ac_ext <<_ACEOF
43845/* end confdefs.h. */
43846
43847 #include <time.h>
43848
43849int
43850main ()
43851{
43852
43853 int tz;
43854 tz = timezone;
43855
43856 ;
43857 return 0;
43858}
43859_ACEOF
43860rm -f conftest.$ac_objext
43861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43862 (eval $ac_compile) 2>conftest.er1
a848cd7e 43863 ac_status=$?
ac1cb8d3
VS
43864 grep -v '^ *+' conftest.er1 >conftest.err
43865 rm -f conftest.er1
43866 cat conftest.err >&5
a848cd7e
SC
43867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43868 (exit $ac_status); } &&
479c790c 43869 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43871 (eval $ac_try) 2>&5
43872 ac_status=$?
43873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43874 (exit $ac_status); }; } &&
43875 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43877 (eval $ac_try) 2>&5
43878 ac_status=$?
43879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43880 (exit $ac_status); }; }; then
43881
43882 wx_cv_var_timezone=timezone
43883
43884else
43885 echo "$as_me: failed program was:" >&5
43886sed 's/^/| /' conftest.$ac_ext >&5
43887
43888
43889 cat >conftest.$ac_ext <<_ACEOF
43890/* confdefs.h. */
43891_ACEOF
43892cat confdefs.h >>conftest.$ac_ext
43893cat >>conftest.$ac_ext <<_ACEOF
43894/* end confdefs.h. */
43895
43896 #include <time.h>
43897
43898int
43899main ()
43900{
43901
43902 int tz;
43903 tz = _timezone;
43904
43905 ;
43906 return 0;
43907}
43908_ACEOF
43909rm -f conftest.$ac_objext
43910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43911 (eval $ac_compile) 2>conftest.er1
a848cd7e 43912 ac_status=$?
ac1cb8d3
VS
43913 grep -v '^ *+' conftest.er1 >conftest.err
43914 rm -f conftest.er1
43915 cat conftest.err >&5
a848cd7e
SC
43916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43917 (exit $ac_status); } &&
479c790c 43918 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43920 (eval $ac_try) 2>&5
43921 ac_status=$?
43922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43923 (exit $ac_status); }; } &&
43924 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43926 (eval $ac_try) 2>&5
43927 ac_status=$?
43928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43929 (exit $ac_status); }; }; then
43930
43931 wx_cv_var_timezone=_timezone
43932
43933else
43934 echo "$as_me: failed program was:" >&5
43935sed 's/^/| /' conftest.$ac_ext >&5
43936
43937
43938 cat >conftest.$ac_ext <<_ACEOF
43939/* confdefs.h. */
43940_ACEOF
43941cat confdefs.h >>conftest.$ac_ext
43942cat >>conftest.$ac_ext <<_ACEOF
43943/* end confdefs.h. */
43944
43945 #include <time.h>
43946
43947int
43948main ()
43949{
43950
43951 int tz;
43952 tz = __timezone;
43953
43954 ;
43955 return 0;
43956}
43957_ACEOF
43958rm -f conftest.$ac_objext
43959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43960 (eval $ac_compile) 2>conftest.er1
a848cd7e 43961 ac_status=$?
ac1cb8d3
VS
43962 grep -v '^ *+' conftest.er1 >conftest.err
43963 rm -f conftest.er1
43964 cat conftest.err >&5
a848cd7e
SC
43965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43966 (exit $ac_status); } &&
479c790c 43967 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43969 (eval $ac_try) 2>&5
43970 ac_status=$?
43971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43972 (exit $ac_status); }; } &&
43973 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43975 (eval $ac_try) 2>&5
43976 ac_status=$?
43977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43978 (exit $ac_status); }; }; then
43979
43980 wx_cv_var_timezone=__timezone
43981
43982else
43983 echo "$as_me: failed program was:" >&5
43984sed 's/^/| /' conftest.$ac_ext >&5
43985
43986
43987 if test "$USE_DOS" = 0 ; then
43988 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
43989echo "$as_me: WARNING: no timezone variable" >&2;}
43990 fi
43991
43992
43993fi
ac1cb8d3 43994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43995
43996
43997fi
ac1cb8d3 43998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43999
44000
44001fi
ac1cb8d3 44002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44003
44004
44005fi
44006echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
44007echo "${ECHO_T}$wx_cv_var_timezone" >&6
44008
44009 if test "x$wx_cv_var_timezone" != x ; then
44010 cat >>confdefs.h <<_ACEOF
44011#define WX_TIMEZONE $wx_cv_var_timezone
44012_ACEOF
44013
44014 fi
44015
44016
44017for ac_func in localtime
44018do
44019as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44020echo "$as_me:$LINENO: checking for $ac_func" >&5
44021echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44022if eval "test \"\${$as_ac_var+set}\" = set"; then
44023 echo $ECHO_N "(cached) $ECHO_C" >&6
44024else
44025 cat >conftest.$ac_ext <<_ACEOF
44026/* confdefs.h. */
44027_ACEOF
44028cat confdefs.h >>conftest.$ac_ext
44029cat >>conftest.$ac_ext <<_ACEOF
44030/* end confdefs.h. */
ac1cb8d3
VS
44031/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44033#define $ac_func innocuous_$ac_func
44034
a848cd7e
SC
44035/* System header to define __stub macros and hopefully few prototypes,
44036 which can conflict with char $ac_func (); below.
44037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44038 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44039
a848cd7e
SC
44040#ifdef __STDC__
44041# include <limits.h>
44042#else
44043# include <assert.h>
44044#endif
ac1cb8d3
VS
44045
44046#undef $ac_func
44047
a848cd7e
SC
44048/* Override any gcc2 internal prototype to avoid an error. */
44049#ifdef __cplusplus
44050extern "C"
44051{
44052#endif
44053/* We use char because int might match the return type of a gcc2
44054 builtin and then its argument prototype would still apply. */
44055char $ac_func ();
44056/* The GNU C library defines this for functions which it implements
44057 to always fail with ENOSYS. Some functions are actually named
44058 something starting with __ and the normal name is an alias. */
44059#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44060choke me
44061#else
44062char (*f) () = $ac_func;
44063#endif
44064#ifdef __cplusplus
44065}
44066#endif
44067
44068int
44069main ()
44070{
44071return f != $ac_func;
44072 ;
44073 return 0;
44074}
44075_ACEOF
44076rm -f conftest.$ac_objext conftest$ac_exeext
44077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44078 (eval $ac_link) 2>conftest.er1
a848cd7e 44079 ac_status=$?
ac1cb8d3
VS
44080 grep -v '^ *+' conftest.er1 >conftest.err
44081 rm -f conftest.er1
44082 cat conftest.err >&5
a848cd7e
SC
44083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44084 (exit $ac_status); } &&
479c790c 44085 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44087 (eval $ac_try) 2>&5
44088 ac_status=$?
44089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44090 (exit $ac_status); }; } &&
44091 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44093 (eval $ac_try) 2>&5
44094 ac_status=$?
44095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44096 (exit $ac_status); }; }; then
44097 eval "$as_ac_var=yes"
44098else
44099 echo "$as_me: failed program was:" >&5
44100sed 's/^/| /' conftest.$ac_ext >&5
44101
44102eval "$as_ac_var=no"
44103fi
ac1cb8d3
VS
44104rm -f conftest.err conftest.$ac_objext \
44105 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44106fi
44107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44108echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44109if test `eval echo '${'$as_ac_var'}'` = yes; then
44110 cat >>confdefs.h <<_ACEOF
44111#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44112_ACEOF
44113
44114fi
44115done
44116
44117
44118 if test "$ac_cv_func_localtime" = "yes"; then
44119 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
44120echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
44121if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
44122 echo $ECHO_N "(cached) $ECHO_C" >&6
44123else
44124
44125 cat >conftest.$ac_ext <<_ACEOF
44126/* confdefs.h. */
44127_ACEOF
44128cat confdefs.h >>conftest.$ac_ext
44129cat >>conftest.$ac_ext <<_ACEOF
44130/* end confdefs.h. */
44131
44132 #include <time.h>
44133
44134int
44135main ()
44136{
44137
44138 struct tm tm;
44139 tm.tm_gmtoff++;
44140
44141 ;
44142 return 0;
44143}
44144_ACEOF
44145rm -f conftest.$ac_objext
44146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44147 (eval $ac_compile) 2>conftest.er1
a848cd7e 44148 ac_status=$?
ac1cb8d3
VS
44149 grep -v '^ *+' conftest.er1 >conftest.err
44150 rm -f conftest.er1
44151 cat conftest.err >&5
a848cd7e
SC
44152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44153 (exit $ac_status); } &&
479c790c 44154 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44156 (eval $ac_try) 2>&5
44157 ac_status=$?
44158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44159 (exit $ac_status); }; } &&
44160 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44162 (eval $ac_try) 2>&5
44163 ac_status=$?
44164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44165 (exit $ac_status); }; }; then
44166
44167 wx_cv_struct_tm_has_gmtoff=yes
44168
44169else
44170 echo "$as_me: failed program was:" >&5
44171sed 's/^/| /' conftest.$ac_ext >&5
44172
44173wx_cv_struct_tm_has_gmtoff=no
44174
44175fi
ac1cb8d3 44176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44177
44178fi
44179echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
44180echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
44181 fi
44182
44183 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
44184 cat >>confdefs.h <<\_ACEOF
44185#define WX_GMTOFF_IN_TM 1
44186_ACEOF
44187
44188 fi
44189
44190
44191
44192for ac_func in gettimeofday ftime
44193do
44194as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44195echo "$as_me:$LINENO: checking for $ac_func" >&5
44196echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44197if eval "test \"\${$as_ac_var+set}\" = set"; then
44198 echo $ECHO_N "(cached) $ECHO_C" >&6
44199else
44200 cat >conftest.$ac_ext <<_ACEOF
44201/* confdefs.h. */
44202_ACEOF
44203cat confdefs.h >>conftest.$ac_ext
44204cat >>conftest.$ac_ext <<_ACEOF
44205/* end confdefs.h. */
ac1cb8d3
VS
44206/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44208#define $ac_func innocuous_$ac_func
44209
a848cd7e
SC
44210/* System header to define __stub macros and hopefully few prototypes,
44211 which can conflict with char $ac_func (); below.
44212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44213 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44214
a848cd7e
SC
44215#ifdef __STDC__
44216# include <limits.h>
44217#else
44218# include <assert.h>
44219#endif
ac1cb8d3
VS
44220
44221#undef $ac_func
44222
a848cd7e
SC
44223/* Override any gcc2 internal prototype to avoid an error. */
44224#ifdef __cplusplus
44225extern "C"
44226{
44227#endif
44228/* We use char because int might match the return type of a gcc2
44229 builtin and then its argument prototype would still apply. */
44230char $ac_func ();
44231/* The GNU C library defines this for functions which it implements
44232 to always fail with ENOSYS. Some functions are actually named
44233 something starting with __ and the normal name is an alias. */
44234#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44235choke me
44236#else
44237char (*f) () = $ac_func;
44238#endif
44239#ifdef __cplusplus
44240}
44241#endif
44242
44243int
44244main ()
44245{
44246return f != $ac_func;
44247 ;
44248 return 0;
44249}
44250_ACEOF
44251rm -f conftest.$ac_objext conftest$ac_exeext
44252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44253 (eval $ac_link) 2>conftest.er1
a848cd7e 44254 ac_status=$?
ac1cb8d3
VS
44255 grep -v '^ *+' conftest.er1 >conftest.err
44256 rm -f conftest.er1
44257 cat conftest.err >&5
a848cd7e
SC
44258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44259 (exit $ac_status); } &&
479c790c 44260 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44262 (eval $ac_try) 2>&5
44263 ac_status=$?
44264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44265 (exit $ac_status); }; } &&
44266 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44268 (eval $ac_try) 2>&5
44269 ac_status=$?
44270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44271 (exit $ac_status); }; }; then
44272 eval "$as_ac_var=yes"
44273else
44274 echo "$as_me: failed program was:" >&5
44275sed 's/^/| /' conftest.$ac_ext >&5
44276
44277eval "$as_ac_var=no"
44278fi
ac1cb8d3
VS
44279rm -f conftest.err conftest.$ac_objext \
44280 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44281fi
44282echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44283echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44284if test `eval echo '${'$as_ac_var'}'` = yes; then
44285 cat >>confdefs.h <<_ACEOF
44286#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44287_ACEOF
44288 break
44289fi
44290done
44291
44292
44293 if test "$ac_cv_func_gettimeofday" = "yes"; then
44294 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
44295echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
44296if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
44297 echo $ECHO_N "(cached) $ECHO_C" >&6
44298else
44299
5d7b7554 44300 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
44301/* confdefs.h. */
44302_ACEOF
44303cat confdefs.h >>conftest.$ac_ext
44304cat >>conftest.$ac_ext <<_ACEOF
44305/* end confdefs.h. */
44306
44307 #include <sys/time.h>
44308 #include <unistd.h>
44309
44310int
44311main ()
44312{
44313
44314 struct timeval tv;
44315 gettimeofday(&tv, NULL);
44316
44317 ;
44318 return 0;
44319}
44320_ACEOF
44321rm -f conftest.$ac_objext
44322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44323 (eval $ac_compile) 2>conftest.er1
a848cd7e 44324 ac_status=$?
ac1cb8d3
VS
44325 grep -v '^ *+' conftest.er1 >conftest.err
44326 rm -f conftest.er1
44327 cat conftest.err >&5
a848cd7e
SC
44328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44329 (exit $ac_status); } &&
479c790c 44330 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44332 (eval $ac_try) 2>&5
44333 ac_status=$?
44334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44335 (exit $ac_status); }; } &&
44336 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44338 (eval $ac_try) 2>&5
44339 ac_status=$?
44340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44341 (exit $ac_status); }; }; then
44342 wx_cv_func_gettimeofday_has_2_args=yes
44343else
44344 echo "$as_me: failed program was:" >&5
44345sed 's/^/| /' conftest.$ac_ext >&5
44346
44347cat >conftest.$ac_ext <<_ACEOF
44348/* confdefs.h. */
44349_ACEOF
44350cat confdefs.h >>conftest.$ac_ext
44351cat >>conftest.$ac_ext <<_ACEOF
44352/* end confdefs.h. */
44353
44354 #include <sys/time.h>
44355 #include <unistd.h>
44356
44357int
44358main ()
44359{
44360
44361 struct timeval tv;
44362 gettimeofday(&tv);
44363
44364 ;
44365 return 0;
44366}
44367_ACEOF
44368rm -f conftest.$ac_objext
44369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44370 (eval $ac_compile) 2>conftest.er1
a848cd7e 44371 ac_status=$?
ac1cb8d3
VS
44372 grep -v '^ *+' conftest.er1 >conftest.err
44373 rm -f conftest.er1
44374 cat conftest.err >&5
a848cd7e
SC
44375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44376 (exit $ac_status); } &&
479c790c 44377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44379 (eval $ac_try) 2>&5
44380 ac_status=$?
44381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44382 (exit $ac_status); }; } &&
44383 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44385 (eval $ac_try) 2>&5
44386 ac_status=$?
44387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44388 (exit $ac_status); }; }; then
44389 wx_cv_func_gettimeofday_has_2_args=no
44390else
44391 echo "$as_me: failed program was:" >&5
44392sed 's/^/| /' conftest.$ac_ext >&5
44393
44394
44395 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
44396echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
44397 wx_cv_func_gettimeofday_has_2_args=unknown
44398
44399
44400fi
ac1cb8d3 44401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44402
44403fi
ac1cb8d3 44404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44405
44406fi
44407echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
44408echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
44409
44410 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
44411 cat >>confdefs.h <<\_ACEOF
44412#define WX_GETTIMEOFDAY_NO_TZ 1
44413_ACEOF
44414
44415 fi
44416 fi
44417
44418 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
44419fi
44420
44421
44422if test "$wxUSE_SOCKETS" = "yes"; then
44423 if test "$wxUSE_MGL" = "1"; then
44424 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
44425echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
44426 wxUSE_SOCKETS="no"
44427 fi
44428fi
44429
44430if test "$wxUSE_SOCKETS" = "yes"; then
44431 if test "$TOOLKIT" != "MSW"; then
44432 echo "$as_me:$LINENO: checking for socket" >&5
44433echo $ECHO_N "checking for socket... $ECHO_C" >&6
44434if test "${ac_cv_func_socket+set}" = set; then
44435 echo $ECHO_N "(cached) $ECHO_C" >&6
44436else
44437 cat >conftest.$ac_ext <<_ACEOF
44438/* confdefs.h. */
44439_ACEOF
44440cat confdefs.h >>conftest.$ac_ext
44441cat >>conftest.$ac_ext <<_ACEOF
44442/* end confdefs.h. */
ac1cb8d3
VS
44443/* Define socket to an innocuous variant, in case <limits.h> declares socket.
44444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44445#define socket innocuous_socket
44446
a848cd7e
SC
44447/* System header to define __stub macros and hopefully few prototypes,
44448 which can conflict with char socket (); below.
44449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44450 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44451
a848cd7e
SC
44452#ifdef __STDC__
44453# include <limits.h>
44454#else
44455# include <assert.h>
44456#endif
ac1cb8d3
VS
44457
44458#undef socket
44459
a848cd7e
SC
44460/* Override any gcc2 internal prototype to avoid an error. */
44461#ifdef __cplusplus
44462extern "C"
44463{
44464#endif
44465/* We use char because int might match the return type of a gcc2
44466 builtin and then its argument prototype would still apply. */
44467char socket ();
44468/* The GNU C library defines this for functions which it implements
44469 to always fail with ENOSYS. Some functions are actually named
44470 something starting with __ and the normal name is an alias. */
44471#if defined (__stub_socket) || defined (__stub___socket)
44472choke me
44473#else
44474char (*f) () = socket;
44475#endif
44476#ifdef __cplusplus
44477}
44478#endif
44479
44480int
44481main ()
44482{
44483return f != socket;
44484 ;
44485 return 0;
44486}
44487_ACEOF
44488rm -f conftest.$ac_objext conftest$ac_exeext
44489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44490 (eval $ac_link) 2>conftest.er1
a848cd7e 44491 ac_status=$?
ac1cb8d3
VS
44492 grep -v '^ *+' conftest.er1 >conftest.err
44493 rm -f conftest.er1
44494 cat conftest.err >&5
a848cd7e
SC
44495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44496 (exit $ac_status); } &&
479c790c 44497 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44499 (eval $ac_try) 2>&5
44500 ac_status=$?
44501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44502 (exit $ac_status); }; } &&
44503 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44505 (eval $ac_try) 2>&5
44506 ac_status=$?
44507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44508 (exit $ac_status); }; }; then
44509 ac_cv_func_socket=yes
44510else
44511 echo "$as_me: failed program was:" >&5
44512sed 's/^/| /' conftest.$ac_ext >&5
44513
44514ac_cv_func_socket=no
44515fi
ac1cb8d3
VS
44516rm -f conftest.err conftest.$ac_objext \
44517 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44518fi
44519echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
44520echo "${ECHO_T}$ac_cv_func_socket" >&6
44521if test $ac_cv_func_socket = yes; then
44522 :
44523else
44524
44525 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
44526echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
44527if test "${ac_cv_lib_socket_socket+set}" = set; then
44528 echo $ECHO_N "(cached) $ECHO_C" >&6
44529else
44530 ac_check_lib_save_LIBS=$LIBS
44531LIBS="-lsocket $LIBS"
44532cat >conftest.$ac_ext <<_ACEOF
44533/* confdefs.h. */
44534_ACEOF
44535cat confdefs.h >>conftest.$ac_ext
44536cat >>conftest.$ac_ext <<_ACEOF
44537/* end confdefs.h. */
44538
44539/* Override any gcc2 internal prototype to avoid an error. */
44540#ifdef __cplusplus
44541extern "C"
44542#endif
44543/* We use char because int might match the return type of a gcc2
44544 builtin and then its argument prototype would still apply. */
44545char socket ();
44546int
44547main ()
44548{
44549socket ();
44550 ;
44551 return 0;
44552}
44553_ACEOF
44554rm -f conftest.$ac_objext conftest$ac_exeext
44555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44556 (eval $ac_link) 2>conftest.er1
a848cd7e 44557 ac_status=$?
ac1cb8d3
VS
44558 grep -v '^ *+' conftest.er1 >conftest.err
44559 rm -f conftest.er1
44560 cat conftest.err >&5
a848cd7e
SC
44561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44562 (exit $ac_status); } &&
479c790c 44563 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
44569 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44571 (eval $ac_try) 2>&5
44572 ac_status=$?
44573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44574 (exit $ac_status); }; }; then
44575 ac_cv_lib_socket_socket=yes
44576else
44577 echo "$as_me: failed program was:" >&5
44578sed 's/^/| /' conftest.$ac_ext >&5
44579
44580ac_cv_lib_socket_socket=no
44581fi
ac1cb8d3
VS
44582rm -f conftest.err conftest.$ac_objext \
44583 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44584LIBS=$ac_check_lib_save_LIBS
44585fi
44586echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
44587echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
44588if test $ac_cv_lib_socket_socket = yes; then
44589 if test "$INET_LINK" != " -lsocket"; then
44590 INET_LINK="$INET_LINK -lsocket"
44591 fi
44592else
44593
44594 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
44595echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
44596 wxUSE_SOCKETS=no
44597
44598
44599fi
44600
44601
44602
44603fi
44604
44605 fi
44606fi
44607
44608if test "$wxUSE_SOCKETS" = "yes" ; then
44609 if test "$TOOLKIT" != "MSW"; then
5d7b7554 44610 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
44611echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
44612if test "${wx_cv_type_getsockname3+set}" = set; then
44613 echo $ECHO_N "(cached) $ECHO_C" >&6
44614else
44615
44616 cat >conftest.$ac_ext <<_ACEOF
44617/* confdefs.h. */
44618_ACEOF
44619cat confdefs.h >>conftest.$ac_ext
44620cat >>conftest.$ac_ext <<_ACEOF
44621/* end confdefs.h. */
44622
44623 #include <sys/types.h>
44624 #include <sys/socket.h>
44625
44626int
44627main ()
44628{
44629
44630 socklen_t len;
44631 getsockname(0, 0, &len);
44632
44633 ;
44634 return 0;
44635}
44636_ACEOF
44637rm -f conftest.$ac_objext
44638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44639 (eval $ac_compile) 2>conftest.er1
a848cd7e 44640 ac_status=$?
ac1cb8d3
VS
44641 grep -v '^ *+' conftest.er1 >conftest.err
44642 rm -f conftest.er1
44643 cat conftest.err >&5
a848cd7e
SC
44644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44645 (exit $ac_status); } &&
479c790c 44646 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44648 (eval $ac_try) 2>&5
44649 ac_status=$?
44650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44651 (exit $ac_status); }; } &&
44652 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44654 (eval $ac_try) 2>&5
44655 ac_status=$?
44656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44657 (exit $ac_status); }; }; then
44658 wx_cv_type_getsockname3=socklen_t
44659else
44660 echo "$as_me: failed program was:" >&5
44661sed 's/^/| /' conftest.$ac_ext >&5
44662
44663
6459a506 44664 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 44665 if test "$GCC" = yes ; then
c92ad099 44666 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
44667 fi
44668
44669 cat >conftest.$ac_ext <<_ACEOF
44670/* confdefs.h. */
44671_ACEOF
44672cat confdefs.h >>conftest.$ac_ext
44673cat >>conftest.$ac_ext <<_ACEOF
44674/* end confdefs.h. */
44675
44676 #include <sys/types.h>
44677 #include <sys/socket.h>
44678
44679int
44680main ()
44681{
44682
44683 size_t len;
44684 getsockname(0, 0, &len);
44685
44686 ;
44687 return 0;
44688}
44689_ACEOF
44690rm -f conftest.$ac_objext
44691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44692 (eval $ac_compile) 2>conftest.er1
a848cd7e 44693 ac_status=$?
ac1cb8d3
VS
44694 grep -v '^ *+' conftest.er1 >conftest.err
44695 rm -f conftest.er1
44696 cat conftest.err >&5
a848cd7e
SC
44697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44698 (exit $ac_status); } &&
479c790c 44699 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44701 (eval $ac_try) 2>&5
44702 ac_status=$?
44703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44704 (exit $ac_status); }; } &&
44705 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44707 (eval $ac_try) 2>&5
44708 ac_status=$?
44709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44710 (exit $ac_status); }; }; then
44711 wx_cv_type_getsockname3=size_t
44712else
44713 echo "$as_me: failed program was:" >&5
44714sed 's/^/| /' conftest.$ac_ext >&5
44715
44716cat >conftest.$ac_ext <<_ACEOF
44717/* confdefs.h. */
44718_ACEOF
44719cat confdefs.h >>conftest.$ac_ext
44720cat >>conftest.$ac_ext <<_ACEOF
44721/* end confdefs.h. */
44722
44723 #include <sys/types.h>
44724 #include <sys/socket.h>
44725
44726int
44727main ()
44728{
44729
44730 int len;
44731 getsockname(0, 0, &len);
44732
44733 ;
44734 return 0;
44735}
44736_ACEOF
44737rm -f conftest.$ac_objext
44738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44739 (eval $ac_compile) 2>conftest.er1
a848cd7e 44740 ac_status=$?
ac1cb8d3
VS
44741 grep -v '^ *+' conftest.er1 >conftest.err
44742 rm -f conftest.er1
44743 cat conftest.err >&5
a848cd7e
SC
44744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44745 (exit $ac_status); } &&
479c790c 44746 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44748 (eval $ac_try) 2>&5
44749 ac_status=$?
44750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44751 (exit $ac_status); }; } &&
44752 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44754 (eval $ac_try) 2>&5
44755 ac_status=$?
44756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44757 (exit $ac_status); }; }; then
44758 wx_cv_type_getsockname3=int
44759else
44760 echo "$as_me: failed program was:" >&5
44761sed 's/^/| /' conftest.$ac_ext >&5
44762
44763wx_cv_type_getsockname3=unknown
44764
44765fi
ac1cb8d3 44766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44767
44768fi
ac1cb8d3 44769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 44770
6459a506 44771 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
44772
44773
44774fi
ac1cb8d3 44775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44776
44777fi
44778echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
44779echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
44780
44781 if test "$wx_cv_type_getsockname3" = "unknown"; then
44782 wxUSE_SOCKETS=no
44783 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44784echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44785 else
44786 cat >>confdefs.h <<_ACEOF
9e03e02d 44787#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
44788_ACEOF
44789
44790 fi
44791 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
44792echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
44793if test "${wx_cv_type_getsockopt5+set}" = set; then
44794 echo $ECHO_N "(cached) $ECHO_C" >&6
44795else
44796
44797 cat >conftest.$ac_ext <<_ACEOF
44798/* confdefs.h. */
44799_ACEOF
44800cat confdefs.h >>conftest.$ac_ext
44801cat >>conftest.$ac_ext <<_ACEOF
44802/* end confdefs.h. */
44803
44804 #include <sys/types.h>
44805 #include <sys/socket.h>
44806
44807int
44808main ()
44809{
44810
44811 socklen_t len;
44812 getsockopt(0, 0, 0, 0, &len);
44813
44814 ;
44815 return 0;
44816}
44817_ACEOF
44818rm -f conftest.$ac_objext
44819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44820 (eval $ac_compile) 2>conftest.er1
44821 ac_status=$?
44822 grep -v '^ *+' conftest.er1 >conftest.err
44823 rm -f conftest.er1
44824 cat conftest.err >&5
44825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44826 (exit $ac_status); } &&
479c790c 44827 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
44828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44829 (eval $ac_try) 2>&5
44830 ac_status=$?
44831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44832 (exit $ac_status); }; } &&
44833 { ac_try='test -s conftest.$ac_objext'
44834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44835 (eval $ac_try) 2>&5
44836 ac_status=$?
44837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44838 (exit $ac_status); }; }; then
44839 wx_cv_type_getsockopt5=socklen_t
44840else
44841 echo "$as_me: failed program was:" >&5
44842sed 's/^/| /' conftest.$ac_ext >&5
44843
44844
6459a506 44845 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 44846 if test "$GCC" = yes ; then
c92ad099 44847 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
44848 fi
44849
44850 cat >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
44857 #include <sys/types.h>
44858 #include <sys/socket.h>
44859
44860int
44861main ()
44862{
44863
44864 size_t len;
44865 getsockopt(0, 0, 0, 0, &len);
44866
44867 ;
44868 return 0;
44869}
44870_ACEOF
44871rm -f conftest.$ac_objext
44872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44873 (eval $ac_compile) 2>conftest.er1
44874 ac_status=$?
44875 grep -v '^ *+' conftest.er1 >conftest.err
44876 rm -f conftest.er1
44877 cat conftest.err >&5
44878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44879 (exit $ac_status); } &&
479c790c 44880 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
44881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44882 (eval $ac_try) 2>&5
44883 ac_status=$?
44884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44885 (exit $ac_status); }; } &&
44886 { ac_try='test -s conftest.$ac_objext'
44887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44888 (eval $ac_try) 2>&5
44889 ac_status=$?
44890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44891 (exit $ac_status); }; }; then
44892 wx_cv_type_getsockopt5=size_t
44893else
44894 echo "$as_me: failed program was:" >&5
44895sed 's/^/| /' conftest.$ac_ext >&5
44896
44897cat >conftest.$ac_ext <<_ACEOF
44898/* confdefs.h. */
44899_ACEOF
44900cat confdefs.h >>conftest.$ac_ext
44901cat >>conftest.$ac_ext <<_ACEOF
44902/* end confdefs.h. */
44903
44904 #include <sys/types.h>
44905 #include <sys/socket.h>
44906
44907int
44908main ()
44909{
44910
44911 int len;
44912 getsockopt(0, 0, 0, 0, &len);
44913
44914 ;
44915 return 0;
44916}
44917_ACEOF
44918rm -f conftest.$ac_objext
44919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44920 (eval $ac_compile) 2>conftest.er1
44921 ac_status=$?
44922 grep -v '^ *+' conftest.er1 >conftest.err
44923 rm -f conftest.er1
44924 cat conftest.err >&5
44925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44926 (exit $ac_status); } &&
479c790c 44927 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
44928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44929 (eval $ac_try) 2>&5
44930 ac_status=$?
44931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44932 (exit $ac_status); }; } &&
44933 { ac_try='test -s conftest.$ac_objext'
44934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44935 (eval $ac_try) 2>&5
44936 ac_status=$?
44937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44938 (exit $ac_status); }; }; then
44939 wx_cv_type_getsockopt5=int
44940else
44941 echo "$as_me: failed program was:" >&5
44942sed 's/^/| /' conftest.$ac_ext >&5
44943
44944wx_cv_type_getsockopt5=unknown
44945
44946fi
44947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44948
44949fi
44950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44951
6459a506 44952 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
44953
44954
44955fi
44956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44957
44958fi
44959echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
44960echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
44961
44962 if test "$wx_cv_type_getsockopt5" = "unknown"; then
44963 wxUSE_SOCKETS=no
44964 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44965echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44966 else
44967 cat >>confdefs.h <<_ACEOF
44968#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
44969_ACEOF
44970
44971 fi
44972 fi
44973fi
44974
44975if test "$wxUSE_SOCKETS" = "yes" ; then
44976 cat >>confdefs.h <<\_ACEOF
44977#define wxUSE_SOCKETS 1
44978_ACEOF
44979
44980 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
44981fi
44982
44983if test "$wxUSE_PROTOCOL" = "yes"; then
44984 if test "$wxUSE_SOCKETS" != "yes"; then
44985 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
44986echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
44987 wxUSE_PROTOCOL=no
44988 fi
44989fi
44990
44991if test "$wxUSE_PROTOCOL" = "yes"; then
44992 cat >>confdefs.h <<\_ACEOF
44993#define wxUSE_PROTOCOL 1
44994_ACEOF
44995
44996
44997 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
44998 cat >>confdefs.h <<\_ACEOF
44999#define wxUSE_PROTOCOL_HTTP 1
45000_ACEOF
45001
45002 fi
45003 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
45004 cat >>confdefs.h <<\_ACEOF
45005#define wxUSE_PROTOCOL_FTP 1
45006_ACEOF
45007
45008 fi
45009 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
45010 cat >>confdefs.h <<\_ACEOF
45011#define wxUSE_PROTOCOL_FILE 1
45012_ACEOF
45013
45014 fi
45015else
45016 if test "$wxUSE_FS_INET" = "yes"; then
45017 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
45018echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
45019 wxUSE_FS_INET="no"
45020 fi
45021fi
45022
45023if test "$wxUSE_URL" = "yes"; then
45024 if test "$wxUSE_PROTOCOL" != "yes"; then
45025 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
45026echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
45027 wxUSE_URL=no
45028 fi
45029 if test "$wxUSE_URL" = "yes"; then
45030 cat >>confdefs.h <<\_ACEOF
45031#define wxUSE_URL 1
45032_ACEOF
45033
45034 fi
45035fi
45036
ca5c6ac3
VZ
45037if test "$wxUSE_VARIANT" = "yes"; then
45038 cat >>confdefs.h <<\_ACEOF
45039#define wxUSE_VARIANT 1
45040_ACEOF
45041
45042fi
45043
a848cd7e
SC
45044if test "$wxUSE_FS_INET" = "yes"; then
45045 cat >>confdefs.h <<\_ACEOF
45046#define wxUSE_FS_INET 1
45047_ACEOF
45048
45049fi
45050
45051
ee45c548
MW
45052if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
45053 wxUSE_JOYSTICK=no
45054
45055 if test "$TOOLKIT" = "MSW"; then
45056 wxUSE_JOYSTICK=yes
45057
45058 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
45059 if test "$USE_DARWIN" = 1; then
45060 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
45061echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
ee45c548
MW
45062 cat >conftest.$ac_ext <<_ACEOF
45063/* confdefs.h. */
45064_ACEOF
45065cat confdefs.h >>conftest.$ac_ext
45066cat >>conftest.$ac_ext <<_ACEOF
45067/* end confdefs.h. */
45068 #include <IOKit/hid/IOHIDLib.h>
45069int
45070main ()
45071{
45072 IOHIDQueueInterface *qi = NULL;
45073 IOHIDCallbackFunction cb = NULL;
45074 qi->setEventCallout(NULL, cb, NULL, NULL);
45075 ;
45076 return 0;
45077}
45078_ACEOF
45079rm -f conftest.$ac_objext
45080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45081 (eval $ac_compile) 2>conftest.er1
45082 ac_status=$?
45083 grep -v '^ *+' conftest.er1 >conftest.err
45084 rm -f conftest.er1
45085 cat conftest.err >&5
45086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45087 (exit $ac_status); } &&
479c790c 45088 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
45089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45090 (eval $ac_try) 2>&5
45091 ac_status=$?
45092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45093 (exit $ac_status); }; } &&
45094 { ac_try='test -s conftest.$ac_objext'
45095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45096 (eval $ac_try) 2>&5
45097 ac_status=$?
45098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45099 (exit $ac_status); }; }; then
45100 wxUSE_JOYSTICK=yes
a848cd7e 45101
ee45c548
MW
45102else
45103 echo "$as_me: failed program was:" >&5
45104sed 's/^/| /' conftest.$ac_ext >&5
45105
45106fi
45107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ee45c548
MW
45108 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
45109echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
45110 fi
45111
45112 else
a848cd7e
SC
45113
45114for ac_header in linux/joystick.h
45115do
45116as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45117if eval "test \"\${$as_ac_Header+set}\" = set"; then
45118 echo "$as_me:$LINENO: checking for $ac_header" >&5
45119echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45120if eval "test \"\${$as_ac_Header+set}\" = set"; then
45121 echo $ECHO_N "(cached) $ECHO_C" >&6
45122fi
45123echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45124echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45125else
45126 # Is the header compilable?
45127echo "$as_me:$LINENO: checking $ac_header usability" >&5
45128echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45129cat >conftest.$ac_ext <<_ACEOF
45130/* confdefs.h. */
45131_ACEOF
45132cat confdefs.h >>conftest.$ac_ext
45133cat >>conftest.$ac_ext <<_ACEOF
45134/* end confdefs.h. */
45135$ac_includes_default
45136#include <$ac_header>
45137_ACEOF
45138rm -f conftest.$ac_objext
45139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45140 (eval $ac_compile) 2>conftest.er1
a848cd7e 45141 ac_status=$?
ac1cb8d3
VS
45142 grep -v '^ *+' conftest.er1 >conftest.err
45143 rm -f conftest.er1
45144 cat conftest.err >&5
a848cd7e
SC
45145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45146 (exit $ac_status); } &&
479c790c 45147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45149 (eval $ac_try) 2>&5
45150 ac_status=$?
45151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45152 (exit $ac_status); }; } &&
45153 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45155 (eval $ac_try) 2>&5
45156 ac_status=$?
45157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45158 (exit $ac_status); }; }; then
45159 ac_header_compiler=yes
45160else
45161 echo "$as_me: failed program was:" >&5
45162sed 's/^/| /' conftest.$ac_ext >&5
45163
45164ac_header_compiler=no
45165fi
ac1cb8d3 45166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45167echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45168echo "${ECHO_T}$ac_header_compiler" >&6
45169
45170# Is the header present?
45171echo "$as_me:$LINENO: checking $ac_header presence" >&5
45172echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45173cat >conftest.$ac_ext <<_ACEOF
45174/* confdefs.h. */
45175_ACEOF
45176cat confdefs.h >>conftest.$ac_ext
45177cat >>conftest.$ac_ext <<_ACEOF
45178/* end confdefs.h. */
45179#include <$ac_header>
45180_ACEOF
45181if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45183 ac_status=$?
45184 grep -v '^ *+' conftest.er1 >conftest.err
45185 rm -f conftest.er1
45186 cat conftest.err >&5
45187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45188 (exit $ac_status); } >/dev/null; then
45189 if test -s conftest.err; then
5d7b7554
VZ
45190 ac_cpp_err=$ac_cxx_preproc_warn_flag
45191 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
45192 else
45193 ac_cpp_err=
45194 fi
45195else
45196 ac_cpp_err=yes
45197fi
45198if test -z "$ac_cpp_err"; then
45199 ac_header_preproc=yes
45200else
45201 echo "$as_me: failed program was:" >&5
45202sed 's/^/| /' conftest.$ac_ext >&5
45203
45204 ac_header_preproc=no
45205fi
45206rm -f conftest.err conftest.$ac_ext
45207echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45208echo "${ECHO_T}$ac_header_preproc" >&6
45209
45210# So? What about this header?
5d7b7554 45211case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 45212 yes:no: )
a848cd7e
SC
45213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45214echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
45215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45216echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45217 ac_header_preproc=yes
a848cd7e 45218 ;;
ac1cb8d3 45219 no:yes:* )
a848cd7e
SC
45220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45221echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
45222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45223echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45225echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45227echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
45228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45229echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
45230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45231echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
45232 (
45233 cat <<\_ASBOX
ac1cb8d3
VS
45234## ----------------------------------------- ##
45235## Report this to wx-dev@lists.wxwidgets.org ##
45236## ----------------------------------------- ##
a848cd7e
SC
45237_ASBOX
45238 ) |
45239 sed "s/^/$as_me: WARNING: /" >&2
45240 ;;
45241esac
45242echo "$as_me:$LINENO: checking for $ac_header" >&5
45243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45244if eval "test \"\${$as_ac_Header+set}\" = set"; then
45245 echo $ECHO_N "(cached) $ECHO_C" >&6
45246else
ac1cb8d3 45247 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
45248fi
45249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45250echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45251
45252fi
45253if test `eval echo '${'$as_ac_Header'}'` = yes; then
45254 cat >>confdefs.h <<_ACEOF
45255#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45256_ACEOF
ee45c548 45257 wxUSE_JOYSTICK=yes
a848cd7e
SC
45258fi
45259
45260done
45261
ee45c548 45262 fi
4cb1d3da 45263
ee45c548
MW
45264 if test "$wxUSE_JOYSTICK" = "yes"; then
45265 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45266#define wxUSE_JOYSTICK 1
45267_ACEOF
45268
ee45c548
MW
45269 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
45270 else
45271 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
45272echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
45273 fi
45274fi
45275
45276
45277
45278if test "$wxUSE_FONTMAP" = "yes" ; then
45279 cat >>confdefs.h <<\_ACEOF
45280#define wxUSE_FONTMAP 1
45281_ACEOF
45282
45283fi
45284
45285if test "$wxUSE_UNICODE" = "yes" ; then
45286 cat >>confdefs.h <<\_ACEOF
45287#define wxUSE_UNICODE 1
45288_ACEOF
45289
45290
45291 if test "$USE_WIN32" != 1; then
45292 wxUSE_UNICODE_MSLU=no
45293 fi
45294
45295 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
45296 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
45297echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
45298if test "${ac_cv_lib_unicows_main+set}" = set; then
45299 echo $ECHO_N "(cached) $ECHO_C" >&6
45300else
45301 ac_check_lib_save_LIBS=$LIBS
45302LIBS="-lunicows $LIBS"
45303cat >conftest.$ac_ext <<_ACEOF
45304/* confdefs.h. */
45305_ACEOF
45306cat confdefs.h >>conftest.$ac_ext
45307cat >>conftest.$ac_ext <<_ACEOF
45308/* end confdefs.h. */
45309
45310
45311int
45312main ()
45313{
45314main ();
45315 ;
45316 return 0;
45317}
45318_ACEOF
45319rm -f conftest.$ac_objext conftest$ac_exeext
45320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 45321 (eval $ac_link) 2>conftest.er1
a848cd7e 45322 ac_status=$?
ac1cb8d3
VS
45323 grep -v '^ *+' conftest.er1 >conftest.err
45324 rm -f conftest.er1
45325 cat conftest.err >&5
a848cd7e
SC
45326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45327 (exit $ac_status); } &&
479c790c 45328 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45330 (eval $ac_try) 2>&5
45331 ac_status=$?
45332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45333 (exit $ac_status); }; } &&
45334 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
45335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45336 (eval $ac_try) 2>&5
45337 ac_status=$?
45338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45339 (exit $ac_status); }; }; then
45340 ac_cv_lib_unicows_main=yes
45341else
45342 echo "$as_me: failed program was:" >&5
45343sed 's/^/| /' conftest.$ac_ext >&5
45344
45345ac_cv_lib_unicows_main=no
45346fi
ac1cb8d3
VS
45347rm -f conftest.err conftest.$ac_objext \
45348 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
45349LIBS=$ac_check_lib_save_LIBS
45350fi
45351echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
45352echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
45353if test $ac_cv_lib_unicows_main = yes; then
45354
45355 cat >>confdefs.h <<\_ACEOF
45356#define wxUSE_UNICODE_MSLU 1
45357_ACEOF
45358
45359
45360else
45361
45362 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45363 Applications will only run on Windows NT/2000/XP!" >&5
45364echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45365 Applications will only run on Windows NT/2000/XP!" >&2;}
45366 wxUSE_UNICODE_MSLU=no
45367
45368fi
45369
45370 fi
45371fi
45372
45373if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
45374 cat >>confdefs.h <<\_ACEOF
45375#define wxUSE_EXPERIMENTAL_PRINTF 1
45376_ACEOF
45377
45378fi
45379
45380
45381if test "$wxUSE_POSTSCRIPT" = "yes" ; then
45382 cat >>confdefs.h <<\_ACEOF
45383#define wxUSE_POSTSCRIPT 1
45384_ACEOF
45385
45386fi
45387
45388cat >>confdefs.h <<\_ACEOF
45389#define wxUSE_AFM_FOR_POSTSCRIPT 1
45390_ACEOF
45391
45392
45393cat >>confdefs.h <<\_ACEOF
45394#define wxUSE_NORMALIZED_PS_FONTS 1
45395_ACEOF
45396
45397
45398
45399if test "$wxUSE_CONSTRAINTS" = "yes"; then
45400 cat >>confdefs.h <<\_ACEOF
45401#define wxUSE_CONSTRAINTS 1
45402_ACEOF
45403
45404 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
45405fi
45406
8a7b1113
VZ
45407if test "$wxUSE_MDI" = "yes"; then
45408 cat >>confdefs.h <<\_ACEOF
45409#define wxUSE_MDI 1
45410_ACEOF
45411
45412
45413 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45414 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45415#define wxUSE_MDI_ARCHITECTURE 1
45416_ACEOF
45417
8a7b1113
VZ
45418 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
45419 fi
a848cd7e
SC
45420fi
45421
45422if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
45423 cat >>confdefs.h <<\_ACEOF
45424#define wxUSE_DOC_VIEW_ARCHITECTURE 1
45425_ACEOF
45426
45427 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
45428 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45429 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
45430 fi
45431fi
45432
45433if test "$wxUSE_HELP" = "yes"; then
45434 cat >>confdefs.h <<\_ACEOF
45435#define wxUSE_HELP 1
45436_ACEOF
45437
45438 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
45439
45440 if test "$wxUSE_MSW" = 1; then
45441 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
45442 cat >>confdefs.h <<\_ACEOF
45443#define wxUSE_MS_HTML_HELP 1
45444_ACEOF
45445
45446 fi
45447 fi
45448
45449 if test "$wxUSE_WXHTML_HELP" = "yes"; then
45450 if test "$wxUSE_HTML" = "yes"; then
45451 cat >>confdefs.h <<\_ACEOF
45452#define wxUSE_WXHTML_HELP 1
45453_ACEOF
45454
45455 else
45456 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
45457echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
45458 wxUSE_WXHTML_HELP=no
45459 fi
45460 fi
45461fi
45462
45463if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45464 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45465 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
45466echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
45467 else
45468 cat >>confdefs.h <<\_ACEOF
45469#define wxUSE_PRINTING_ARCHITECTURE 1
45470_ACEOF
45471
45472 fi
45473 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
45474fi
45475
45476if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
45477 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
45478echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
45479 { (exit 1); exit 1; }; }
45480fi
45481
45482
efdf6afe
VZ
45483if test "$wxUSE_METAFILE" = "yes"; then
45484 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
45485 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
45486echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
45487 wxUSE_METAFILE=no
45488 fi
45489fi
45490
45491
a848cd7e
SC
45492if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
45493 -o "$wxUSE_CLIPBOARD" = "yes" \
45494 -o "$wxUSE_OLE" = "yes" \
45495 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
45496
45497for ac_header in ole2.h
45498do
45499as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45500if eval "test \"\${$as_ac_Header+set}\" = set"; then
45501 echo "$as_me:$LINENO: checking for $ac_header" >&5
45502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45503if eval "test \"\${$as_ac_Header+set}\" = set"; then
45504 echo $ECHO_N "(cached) $ECHO_C" >&6
45505fi
45506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45507echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45508else
45509 # Is the header compilable?
45510echo "$as_me:$LINENO: checking $ac_header usability" >&5
45511echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45512cat >conftest.$ac_ext <<_ACEOF
45513/* confdefs.h. */
45514_ACEOF
45515cat confdefs.h >>conftest.$ac_ext
45516cat >>conftest.$ac_ext <<_ACEOF
45517/* end confdefs.h. */
45518$ac_includes_default
45519#include <$ac_header>
45520_ACEOF
45521rm -f conftest.$ac_objext
45522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45523 (eval $ac_compile) 2>conftest.er1
a848cd7e 45524 ac_status=$?
ac1cb8d3
VS
45525 grep -v '^ *+' conftest.er1 >conftest.err
45526 rm -f conftest.er1
45527 cat conftest.err >&5
a848cd7e
SC
45528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45529 (exit $ac_status); } &&
479c790c 45530 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45532 (eval $ac_try) 2>&5
45533 ac_status=$?
45534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45535 (exit $ac_status); }; } &&
45536 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45538 (eval $ac_try) 2>&5
45539 ac_status=$?
45540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45541 (exit $ac_status); }; }; then
45542 ac_header_compiler=yes
45543else
45544 echo "$as_me: failed program was:" >&5
45545sed 's/^/| /' conftest.$ac_ext >&5
45546
45547ac_header_compiler=no
45548fi
ac1cb8d3 45549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45550echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45551echo "${ECHO_T}$ac_header_compiler" >&6
45552
45553# Is the header present?
45554echo "$as_me:$LINENO: checking $ac_header presence" >&5
45555echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45556cat >conftest.$ac_ext <<_ACEOF
45557/* confdefs.h. */
45558_ACEOF
45559cat confdefs.h >>conftest.$ac_ext
45560cat >>conftest.$ac_ext <<_ACEOF
45561/* end confdefs.h. */
45562#include <$ac_header>
45563_ACEOF
45564if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45566 ac_status=$?
45567 grep -v '^ *+' conftest.er1 >conftest.err
45568 rm -f conftest.er1
45569 cat conftest.err >&5
45570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45571 (exit $ac_status); } >/dev/null; then
45572 if test -s conftest.err; then
5d7b7554
VZ
45573 ac_cpp_err=$ac_cxx_preproc_warn_flag
45574 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
45575 else
45576 ac_cpp_err=
45577 fi
45578else
45579 ac_cpp_err=yes
45580fi
45581if test -z "$ac_cpp_err"; then
45582 ac_header_preproc=yes
45583else
45584 echo "$as_me: failed program was:" >&5
45585sed 's/^/| /' conftest.$ac_ext >&5
45586
45587 ac_header_preproc=no
45588fi
45589rm -f conftest.err conftest.$ac_ext
45590echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45591echo "${ECHO_T}$ac_header_preproc" >&6
45592
45593# So? What about this header?
5d7b7554 45594case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 45595 yes:no: )
a848cd7e
SC
45596 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45597echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
45598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45599echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45600 ac_header_preproc=yes
a848cd7e 45601 ;;
ac1cb8d3 45602 no:yes:* )
a848cd7e
SC
45603 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45604echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
45605 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45606echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45607 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45608echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45609 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45610echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
45611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45612echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
45613 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45614echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
45615 (
45616 cat <<\_ASBOX
ac1cb8d3
VS
45617## ----------------------------------------- ##
45618## Report this to wx-dev@lists.wxwidgets.org ##
45619## ----------------------------------------- ##
a848cd7e
SC
45620_ASBOX
45621 ) |
45622 sed "s/^/$as_me: WARNING: /" >&2
45623 ;;
45624esac
45625echo "$as_me:$LINENO: checking for $ac_header" >&5
45626echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45627if eval "test \"\${$as_ac_Header+set}\" = set"; then
45628 echo $ECHO_N "(cached) $ECHO_C" >&6
45629else
ac1cb8d3 45630 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
45631fi
45632echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45633echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45634
45635fi
45636if test `eval echo '${'$as_ac_Header'}'` = yes; then
45637 cat >>confdefs.h <<_ACEOF
45638#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45639_ACEOF
45640
45641fi
45642
45643done
45644
45645
45646 if test "$ac_cv_header_ole2_h" = "yes" ; then
45647 if test "$GCC" = yes ; then
a848cd7e
SC
45648 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
45649echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
45650 cat >conftest.$ac_ext <<_ACEOF
45651/* confdefs.h. */
45652_ACEOF
45653cat confdefs.h >>conftest.$ac_ext
45654cat >>conftest.$ac_ext <<_ACEOF
45655/* end confdefs.h. */
45656#include <windows.h>
45657 #include <ole2.h>
45658int
45659main ()
45660{
45661
45662 ;
45663 return 0;
45664}
45665_ACEOF
45666rm -f conftest.$ac_objext
45667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45668 (eval $ac_compile) 2>conftest.er1
a848cd7e 45669 ac_status=$?
ac1cb8d3
VS
45670 grep -v '^ *+' conftest.er1 >conftest.err
45671 rm -f conftest.er1
45672 cat conftest.err >&5
a848cd7e
SC
45673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45674 (exit $ac_status); } &&
479c790c 45675 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45677 (eval $ac_try) 2>&5
45678 ac_status=$?
45679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45680 (exit $ac_status); }; } &&
45681 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45683 (eval $ac_try) 2>&5
45684 ac_status=$?
45685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45686 (exit $ac_status); }; }; then
45687 echo "$as_me:$LINENO: result: no" >&5
45688echo "${ECHO_T}no" >&6
45689else
45690 echo "$as_me: failed program was:" >&5
45691sed 's/^/| /' conftest.$ac_ext >&5
45692
45693echo "$as_me:$LINENO: result: yes" >&5
45694echo "${ECHO_T}yes" >&6
5ff751d6 45695 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 45696fi
ac1cb8d3 45697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45698 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
45699 if test "$wxUSE_OLE" = "yes" ; then
45700 cat >>confdefs.h <<\_ACEOF
45701#define wxUSE_OLE 1
f43426c1
RD
45702_ACEOF
45703
45704 cat >>confdefs.h <<\_ACEOF
45705#define wxUSE_OLE_AUTOMATION 1
45706_ACEOF
45707
45708 cat >>confdefs.h <<\_ACEOF
45709#define wxUSE_OLE_ACTIVEX 1
a848cd7e
SC
45710_ACEOF
45711
0b78747f 45712 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
45713 fi
45714 fi
45715
45716 if test "$wxUSE_DATAOBJ" = "yes" ; then
45717 cat >>confdefs.h <<\_ACEOF
45718#define wxUSE_DATAOBJ 1
45719_ACEOF
45720
45721 fi
45722 else
45723 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
45724echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
45725
45726 wxUSE_CLIPBOARD=no
45727 wxUSE_DRAG_AND_DROP=no
45728 wxUSE_DATAOBJ=no
45729 wxUSE_OLE=no
45730 fi
45731
45732 if test "$wxUSE_METAFILE" = "yes"; then
45733 cat >>confdefs.h <<\_ACEOF
45734#define wxUSE_METAFILE 1
45735_ACEOF
45736
45737
45738 cat >>confdefs.h <<\_ACEOF
45739#define wxUSE_ENH_METAFILE 1
45740_ACEOF
45741
45742 fi
45743fi
45744
45745if test "$wxUSE_IPC" = "yes"; then
0b78747f 45746 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
45747 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
45748echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 45749 wxUSE_IPC=no
a848cd7e
SC
45750 fi
45751
0b78747f
MW
45752 if test "$wxUSE_IPC" = "yes"; then
45753 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45754#define wxUSE_IPC 1
45755_ACEOF
45756
0b78747f
MW
45757 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
45758 fi
a848cd7e
SC
45759fi
45760
eb730a0c 45761if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
45762 if test "$wxUSE_MGL" = 1; then
45763 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
45764echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
45765 wxUSE_DATAOBJ=no
45766 else
45767 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
45768#define wxUSE_DATAOBJ 1
45769_ACEOF
45770
2113bc77 45771 fi
eb730a0c
JS
45772else
45773 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
45774echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
45775 wxUSE_CLIPBOARD=no
45776 wxUSE_DRAG_AND_DROP=no
45777fi
45778
a848cd7e
SC
45779if test "$wxUSE_CLIPBOARD" = "yes"; then
45780 if test "$wxUSE_MGL" = 1; then
45781 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
45782echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
45783 wxUSE_CLIPBOARD=no
45784 fi
45785
45786 if test "$wxUSE_CLIPBOARD" = "yes"; then
45787 cat >>confdefs.h <<\_ACEOF
45788#define wxUSE_CLIPBOARD 1
45789_ACEOF
45790
a848cd7e
SC
45791 fi
45792fi
45793
45794if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
45795 if test "$wxUSE_GTK" = 1; then
45796 if test "$WXGTK12" != 1; then
45797 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
45798echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
45799 wxUSE_DRAG_AND_DROP=no
45800 fi
45801 fi
45802
45803 if test "$wxUSE_MOTIF" = 1; then
45804 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
45805echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
45806 wxUSE_DRAG_AND_DROP=no
45807 fi
45808
45809 if test "$wxUSE_X11" = 1; then
45810 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
45811echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
45812 wxUSE_DRAG_AND_DROP=no
45813 fi
45814
45815 if test "$wxUSE_MGL" = 1; then
45816 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
45817echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
45818 wxUSE_DRAG_AND_DROP=no
45819 fi
45820
45821 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
45822 cat >>confdefs.h <<\_ACEOF
45823#define wxUSE_DRAG_AND_DROP 1
45824_ACEOF
45825
45826 fi
45827
45828fi
45829
45830if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
45831 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
45832fi
45833
45834if test "$wxUSE_SPLINES" = "yes" ; then
45835 cat >>confdefs.h <<\_ACEOF
45836#define wxUSE_SPLINES 1
45837_ACEOF
45838
45839fi
45840
fbe2ca43
SN
45841if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
45842 cat >>confdefs.h <<\_ACEOF
45843#define wxUSE_MOUSEWHEEL 1
45844_ACEOF
45845
45846fi
45847
a848cd7e
SC
45848
45849USES_CONTROLS=0
45850if test "$wxUSE_CONTROLS" = "yes"; then
45851 USES_CONTROLS=1
45852fi
45853
45854if test "$wxUSE_ACCEL" = "yes"; then
45855 cat >>confdefs.h <<\_ACEOF
45856#define wxUSE_ACCEL 1
45857_ACEOF
45858
45859 USES_CONTROLS=1
45860fi
45861
7067783d 45862if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
3ea50042
VZ
45863 cat >>confdefs.h <<\_ACEOF
45864#define wxUSE_ANIMATIONCTRL 1
45865_ACEOF
45866
45867 USES_CONTROLS=1
45868 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
45869fi
45870
a848cd7e
SC
45871if test "$wxUSE_BUTTON" = "yes"; then
45872 cat >>confdefs.h <<\_ACEOF
45873#define wxUSE_BUTTON 1
45874_ACEOF
45875
45876 USES_CONTROLS=1
45877fi
45878
45879if test "$wxUSE_BMPBUTTON" = "yes"; then
45880 cat >>confdefs.h <<\_ACEOF
45881#define wxUSE_BMPBUTTON 1
45882_ACEOF
45883
45884 USES_CONTROLS=1
45885fi
45886
45887if test "$wxUSE_CALCTRL" = "yes"; then
45888 cat >>confdefs.h <<\_ACEOF
45889#define wxUSE_CALENDARCTRL 1
45890_ACEOF
45891
45892 USES_CONTROLS=1
45893 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
45894fi
45895
45896if test "$wxUSE_CARET" = "yes"; then
45897 cat >>confdefs.h <<\_ACEOF
45898#define wxUSE_CARET 1
45899_ACEOF
45900
45901 USES_CONTROLS=1
45902 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
45903fi
45904
45905if test "$wxUSE_COMBOBOX" = "yes"; then
45906 cat >>confdefs.h <<\_ACEOF
45907#define wxUSE_COMBOBOX 1
45908_ACEOF
45909
45910 USES_CONTROLS=1
45911fi
45912
a57d600f 45913if test "$wxUSE_COMBOCTRL" = "yes"; then
642bcba9 45914 cat >>confdefs.h <<\_ACEOF
a57d600f 45915#define wxUSE_COMBOCTRL 1
642bcba9
VZ
45916_ACEOF
45917
45918 USES_CONTROLS=1
45919fi
45920
a848cd7e
SC
45921if test "$wxUSE_CHOICE" = "yes"; then
45922 cat >>confdefs.h <<\_ACEOF
45923#define wxUSE_CHOICE 1
45924_ACEOF
45925
45926 USES_CONTROLS=1
45927fi
45928
92bbdbcd
WS
45929if test "$wxUSE_CHOICEBOOK" = "yes"; then
45930 cat >>confdefs.h <<\_ACEOF
45931#define wxUSE_CHOICEBOOK 1
45932_ACEOF
45933
45934 USES_CONTROLS=1
45935fi
45936
a848cd7e
SC
45937if test "$wxUSE_CHECKBOX" = "yes"; then
45938 cat >>confdefs.h <<\_ACEOF
45939#define wxUSE_CHECKBOX 1
45940_ACEOF
45941
45942 USES_CONTROLS=1
45943fi
45944
45945if test "$wxUSE_CHECKLST" = "yes"; then
45946 cat >>confdefs.h <<\_ACEOF
45947#define wxUSE_CHECKLISTBOX 1
45948_ACEOF
45949
45950 USES_CONTROLS=1
45951 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
45952fi
45953
e9263684
VZ
45954if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
45955 cat >>confdefs.h <<\_ACEOF
45956#define wxUSE_COLOURPICKERCTRL 1
45957_ACEOF
45958
45959 USES_CONTROLS=1
45960fi
45961
da98e9be
VZ
45962if test "$wxUSE_DATEPICKCTRL" = "yes"; then
45963 cat >>confdefs.h <<\_ACEOF
45964#define wxUSE_DATEPICKCTRL 1
45965_ACEOF
45966
45967 USES_CONTROLS=1
45968fi
45969
e9263684
VZ
45970if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
45971 cat >>confdefs.h <<\_ACEOF
45972#define wxUSE_DIRPICKERCTRL 1
45973_ACEOF
45974
45975 USES_CONTROLS=1
45976fi
45977
45978if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
45979 cat >>confdefs.h <<\_ACEOF
45980#define wxUSE_FILEPICKERCTRL 1
45981_ACEOF
45982
45983 USES_CONTROLS=1
45984fi
45985
45986if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
45987 cat >>confdefs.h <<\_ACEOF
45988#define wxUSE_FONTPICKERCTRL 1
45989_ACEOF
45990
45991 USES_CONTROLS=1
45992fi
45993
a848cd7e
SC
45994if test "$wxUSE_DISPLAY" = "yes"; then
45995 cat >>confdefs.h <<\_ACEOF
45996#define wxUSE_DISPLAY 1
45997_ACEOF
45998
0b78747f 45999 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
46000fi
46001
88bbc332
RR
46002if test "$wxUSE_DETECT_SM" = "yes"; then
46003 cat >>confdefs.h <<\_ACEOF
46004#define wxUSE_DETECT_SM 1
46005_ACEOF
46006
46007fi
46008
a848cd7e
SC
46009if test "$wxUSE_GAUGE" = "yes"; then
46010 cat >>confdefs.h <<\_ACEOF
46011#define wxUSE_GAUGE 1
46012_ACEOF
46013
46014 USES_CONTROLS=1
46015fi
46016
46017if test "$wxUSE_GRID" = "yes"; then
46018 cat >>confdefs.h <<\_ACEOF
46019#define wxUSE_GRID 1
46020_ACEOF
46021
46022 USES_CONTROLS=1
46023 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
46024fi
46025
6954625c
VZ
46026if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
46027 cat >>confdefs.h <<\_ACEOF
46028#define wxUSE_HYPERLINKCTRL 1
46029_ACEOF
46030
46031 USES_CONTROLS=1
46032fi
46033
95a46303
RR
46034if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
46035 cat >>confdefs.h <<\_ACEOF
46036#define wxUSE_BITMAPCOMBOBOX 1
46037_ACEOF
46038
46039 USES_CONTROLS=1
46040fi
46041
20e34ecc
RR
46042if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
46043 cat >>confdefs.h <<\_ACEOF
46044#define wxUSE_DATAVIEWCTRL 1
46045_ACEOF
46046
46047 USES_CONTROLS=1
46048 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
46049fi
46050
a848cd7e
SC
46051if test "$wxUSE_IMAGLIST" = "yes"; then
46052 cat >>confdefs.h <<\_ACEOF
46053#define wxUSE_IMAGLIST 1
46054_ACEOF
46055
46056fi
46057
46058if test "$wxUSE_LISTBOOK" = "yes"; then
46059 cat >>confdefs.h <<\_ACEOF
46060#define wxUSE_LISTBOOK 1
46061_ACEOF
46062
46063 USES_CONTROLS=1
46064fi
46065
46066if test "$wxUSE_LISTBOX" = "yes"; then
46067 cat >>confdefs.h <<\_ACEOF
46068#define wxUSE_LISTBOX 1
46069_ACEOF
46070
46071 USES_CONTROLS=1
0b78747f 46072 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
46073fi
46074
46075if test "$wxUSE_LISTCTRL" = "yes"; then
46076 if test "$wxUSE_IMAGLIST" = "yes"; then
46077 cat >>confdefs.h <<\_ACEOF
46078#define wxUSE_LISTCTRL 1
46079_ACEOF
46080
46081 USES_CONTROLS=1
46082 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
46083 else
46084 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
46085echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
46086 fi
46087fi
46088
46089if test "$wxUSE_NOTEBOOK" = "yes"; then
46090 cat >>confdefs.h <<\_ACEOF
46091#define wxUSE_NOTEBOOK 1
46092_ACEOF
46093
46094 USES_CONTROLS=1
46095 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
46096fi
46097
a57d600f 46098if test "$wxUSE_ODCOMBOBOX" = "yes"; then
642bcba9 46099 cat >>confdefs.h <<\_ACEOF
a57d600f 46100#define wxUSE_ODCOMBOBOX 1
642bcba9
VZ
46101_ACEOF
46102
46103 USES_CONTROLS=1
46104 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
46105fi
46106
a848cd7e
SC
46107
46108if test "$wxUSE_RADIOBOX" = "yes"; then
46109 cat >>confdefs.h <<\_ACEOF
46110#define wxUSE_RADIOBOX 1
46111_ACEOF
46112
46113 USES_CONTROLS=1
46114fi
46115
46116if test "$wxUSE_RADIOBTN" = "yes"; then
46117 cat >>confdefs.h <<\_ACEOF
46118#define wxUSE_RADIOBTN 1
46119_ACEOF
46120
46121 USES_CONTROLS=1
46122fi
46123
46124if test "$wxUSE_SASH" = "yes"; then
46125 cat >>confdefs.h <<\_ACEOF
46126#define wxUSE_SASH 1
46127_ACEOF
46128
46129 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
46130fi
46131
46132if test "$wxUSE_SCROLLBAR" = "yes"; then
46133 cat >>confdefs.h <<\_ACEOF
46134#define wxUSE_SCROLLBAR 1
46135_ACEOF
46136
46137 USES_CONTROLS=1
46138 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
46139fi
46140
46141if test "$wxUSE_SLIDER" = "yes"; then
46142 cat >>confdefs.h <<\_ACEOF
46143#define wxUSE_SLIDER 1
46144_ACEOF
46145
46146 USES_CONTROLS=1
46147fi
46148
46149if test "$wxUSE_SPINBTN" = "yes"; then
46150 cat >>confdefs.h <<\_ACEOF
46151#define wxUSE_SPINBTN 1
46152_ACEOF
46153
46154 USES_CONTROLS=1
46155fi
46156
46157if test "$wxUSE_SPINCTRL" = "yes"; then
46158 cat >>confdefs.h <<\_ACEOF
46159#define wxUSE_SPINCTRL 1
46160_ACEOF
46161
46162 USES_CONTROLS=1
46163fi
46164
46165if test "$wxUSE_SPLITTER" = "yes"; then
46166 cat >>confdefs.h <<\_ACEOF
46167#define wxUSE_SPLITTER 1
46168_ACEOF
46169
46170 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
46171fi
46172
46173if test "$wxUSE_STATBMP" = "yes"; then
46174 cat >>confdefs.h <<\_ACEOF
46175#define wxUSE_STATBMP 1
46176_ACEOF
46177
46178 USES_CONTROLS=1
46179fi
46180
46181if test "$wxUSE_STATBOX" = "yes"; then
46182 cat >>confdefs.h <<\_ACEOF
46183#define wxUSE_STATBOX 1
46184_ACEOF
46185
46186 USES_CONTROLS=1
46187fi
46188
46189if test "$wxUSE_STATTEXT" = "yes"; then
46190 cat >>confdefs.h <<\_ACEOF
46191#define wxUSE_STATTEXT 1
46192_ACEOF
46193
46194 USES_CONTROLS=1
46195fi
46196
46197if test "$wxUSE_STATLINE" = "yes"; then
46198 cat >>confdefs.h <<\_ACEOF
46199#define wxUSE_STATLINE 1
46200_ACEOF
46201
46202 USES_CONTROLS=1
46203fi
46204
46205if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
46206 cat >>confdefs.h <<\_ACEOF
46207#define wxUSE_NATIVE_STATUSBAR 1
46208_ACEOF
46209
a848cd7e
SC
46210 cat >>confdefs.h <<\_ACEOF
46211#define wxUSE_STATUSBAR 1
46212_ACEOF
46213
46214 USES_CONTROLS=1
46215
46216 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
46217fi
46218
f10e38c4 46219if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
46220 cat >>confdefs.h <<\_ACEOF
46221#define wxUSE_TAB_DIALOG 1
46222_ACEOF
46223
a848cd7e
SC
46224fi
46225
46226if test "$wxUSE_TEXTCTRL" = "yes"; then
46227 cat >>confdefs.h <<\_ACEOF
46228#define wxUSE_TEXTCTRL 1
46229_ACEOF
46230
46231 USES_CONTROLS=1
46232 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
46233fi
46234
46235if test "$wxUSE_TOGGLEBTN" = "yes"; then
46236 if test "$wxUSE_COCOA" = 1 ; then
46237 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
46238echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
46239 wxUSE_TOGGLEBTN=no
46240 fi
a848cd7e
SC
46241
46242 if test "$wxUSE_TOGGLEBTN" = "yes"; then
46243 cat >>confdefs.h <<\_ACEOF
46244#define wxUSE_TOGGLEBTN 1
46245_ACEOF
46246
46247 USES_CONTROLS=1
46248 fi
46249fi
46250
a848cd7e
SC
46251if test "$wxUSE_TOOLBAR" = "yes"; then
46252 cat >>confdefs.h <<\_ACEOF
46253#define wxUSE_TOOLBAR 1
46254_ACEOF
46255
46256 USES_CONTROLS=1
46257
452b6243
VS
46258 if test "$wxUSE_UNIVERSAL" = "yes"; then
46259 wxUSE_TOOLBAR_NATIVE="no"
46260 else
46261 wxUSE_TOOLBAR_NATIVE="yes"
a848cd7e
SC
46262 cat >>confdefs.h <<\_ACEOF
46263#define wxUSE_TOOLBAR_NATIVE 1
46264_ACEOF
46265
a848cd7e
SC
46266 fi
46267
46268 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
46269fi
46270
46271if test "$wxUSE_TOOLTIPS" = "yes"; then
46272 if test "$wxUSE_MOTIF" = 1; then
46273 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
46274echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
46275 else
46276 if test "$wxUSE_UNIVERSAL" = "yes"; then
46277 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
46278echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
46279 else
46280 cat >>confdefs.h <<\_ACEOF
46281#define wxUSE_TOOLTIPS 1
46282_ACEOF
46283
46284 fi
46285 fi
46286fi
46287
0093c2fc
VZ
46288if test "$wxUSE_TREEBOOK" = "yes"; then
46289 cat >>confdefs.h <<\_ACEOF
46290#define wxUSE_TREEBOOK 1
46291_ACEOF
46292
46293 USES_CONTROLS=1
46294fi
46295
5ec3bc43
JS
46296if test "$wxUSE_TOOLBOOK" = "yes"; then
46297 cat >>confdefs.h <<\_ACEOF
46298#define wxUSE_TOOLBOOK 1
46299_ACEOF
46300
46301 USES_CONTROLS=1
46302fi
46303
a848cd7e
SC
46304if test "$wxUSE_TREECTRL" = "yes"; then
46305 if test "$wxUSE_IMAGLIST" = "yes"; then
46306 cat >>confdefs.h <<\_ACEOF
46307#define wxUSE_TREECTRL 1
46308_ACEOF
46309
46310 USES_CONTROLS=1
46311 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
46312 else
46313 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
46314echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
46315 fi
46316fi
46317
46318if test "$wxUSE_POPUPWIN" = "yes"; then
46319 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
46320 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
46321echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
46322 else
46323 if test "$wxUSE_PM" = 1; then
46324 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
46325echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
46326 else
46327 cat >>confdefs.h <<\_ACEOF
46328#define wxUSE_POPUPWIN 1
46329_ACEOF
46330
0b78747f 46331 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
46332
46333 USES_CONTROLS=1
46334 fi
46335 fi
46336fi
46337
0dcd06dd 46338if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
46339 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
46340 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
46341echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
46342 else
46343 cat >>confdefs.h <<\_ACEOF
46344#define wxUSE_DIALUP_MANAGER 1
46345_ACEOF
46346
46347 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
46348 fi
46349fi
46350
a848cd7e
SC
46351if test "$wxUSE_TIPWINDOW" = "yes"; then
46352 if test "$wxUSE_PM" = 1; then
46353 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
46354echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
46355 else
46356 cat >>confdefs.h <<\_ACEOF
46357#define wxUSE_TIPWINDOW 1
46358_ACEOF
46359
46360 fi
46361fi
46362
46363if test "$USES_CONTROLS" = 1; then
46364 cat >>confdefs.h <<\_ACEOF
46365#define wxUSE_CONTROLS 1
46366_ACEOF
46367
46368fi
46369
46370
46371if test "$wxUSE_ACCESSIBILITY" = "yes"; then
46372 cat >>confdefs.h <<\_ACEOF
46373#define wxUSE_ACCESSIBILITY 1
46374_ACEOF
46375
46376 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
46377fi
46378
38b4a946
VZ
46379if test "$wxUSE_DC_CACHEING" = "yes"; then
46380 cat >>confdefs.h <<\_ACEOF
46381#define wxUSE_DC_CACHEING 1
46382_ACEOF
46383
46384fi
46385
a848cd7e
SC
46386if test "$wxUSE_DRAGIMAGE" = "yes"; then
46387 cat >>confdefs.h <<\_ACEOF
46388#define wxUSE_DRAGIMAGE 1
46389_ACEOF
46390
46391 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
46392fi
46393
46394if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
46395 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
46396 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
46397echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
46398 else
46399 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
46400#define wxUSE_EXCEPTIONS 1
46401_ACEOF
46402
07bea8f0
VS
46403 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
46404 fi
a848cd7e
SC
46405fi
46406
46407USE_HTML=0
46408if test "$wxUSE_HTML" = "yes"; then
46409 cat >>confdefs.h <<\_ACEOF
46410#define wxUSE_HTML 1
46411_ACEOF
46412
46413 USE_HTML=1
46414 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
46415 if test "$wxUSE_MAC" = 1; then
46416 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
46417 fi
a848cd7e 46418fi
646b6ec1 46419if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 46420 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 46421 old_CPPFLAGS="$CPPFLAGS"
c92ad099 46422 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
46423 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
46424echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
46425if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
46426 echo $ECHO_N "(cached) $ECHO_C" >&6
46427else
46428 cat >conftest.$ac_ext <<_ACEOF
46429/* confdefs.h. */
46430_ACEOF
46431cat confdefs.h >>conftest.$ac_ext
46432cat >>conftest.$ac_ext <<_ACEOF
46433/* end confdefs.h. */
46434#include <Carbon/Carbon.h>
46435
46436#include <WebKit/HIWebView.h>
46437_ACEOF
46438rm -f conftest.$ac_objext
46439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46440 (eval $ac_compile) 2>conftest.er1
46441 ac_status=$?
46442 grep -v '^ *+' conftest.er1 >conftest.err
46443 rm -f conftest.er1
46444 cat conftest.err >&5
46445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46446 (exit $ac_status); } &&
479c790c 46447 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
46448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46449 (eval $ac_try) 2>&5
46450 ac_status=$?
46451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46452 (exit $ac_status); }; } &&
46453 { ac_try='test -s conftest.$ac_objext'
46454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46455 (eval $ac_try) 2>&5
46456 ac_status=$?
46457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46458 (exit $ac_status); }; }; then
46459 ac_cv_header_WebKit_HIWebView_h=yes
46460else
46461 echo "$as_me: failed program was:" >&5
46462sed 's/^/| /' conftest.$ac_ext >&5
46463
46464ac_cv_header_WebKit_HIWebView_h=no
46465fi
46466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46467fi
46468echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
46469echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
46470if test $ac_cv_header_WebKit_HIWebView_h = yes; then
46471
46472 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
46473#define wxUSE_WEBKIT 1
46474_ACEOF
46475
07bea8f0
VS
46476 WEBKIT_LINK="-framework WebKit"
46477
46478else
46479
46480 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
46481echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
46482 wxUSE_WEBKIT=no
46483
646b6ec1
VS
46484fi
46485
07bea8f0
VS
46486
46487 CPPFLAGS="$old_CPPFLAGS"
46488 elif test "$wxUSE_COCOA" = 1; then
46489 cat >>confdefs.h <<\_ACEOF
46490#define wxUSE_WEBKIT 1
46491_ACEOF
46492
46493 else
46494 wxUSE_WEBKIT=no
46495 fi
46496fi
46497
9a8f0513
VS
46498USE_XRC=0
46499if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
46500 if test "$wxUSE_XML" != "yes"; then
46501 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
46502echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
46503 wxUSE_XRC=no
46504 else
46505 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
46506#define wxUSE_XRC 1
46507_ACEOF
46508
d2ebf0b7
VS
46509 USE_XRC=1
46510 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
46511 fi
9a8f0513 46512fi
07bea8f0 46513
3f60522a
JS
46514USE_AUI=0
46515if test "$wxUSE_AUI" = "yes"; then
46516 cat >>confdefs.h <<\_ACEOF
46517#define wxUSE_AUI 1
46518_ACEOF
46519
46520 USE_AUI=1
46521 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
46522fi
46523
a848cd7e
SC
46524if test "$wxUSE_MENUS" = "yes"; then
46525 cat >>confdefs.h <<\_ACEOF
46526#define wxUSE_MENUS 1
46527_ACEOF
46528
46529 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
46530fi
46531
46532if test "$wxUSE_METAFILE" = "yes"; then
46533 cat >>confdefs.h <<\_ACEOF
46534#define wxUSE_METAFILE 1
46535_ACEOF
46536
46537fi
46538
46539if test "$wxUSE_MIMETYPE" = "yes"; then
46540 cat >>confdefs.h <<\_ACEOF
46541#define wxUSE_MIMETYPE 1
46542_ACEOF
46543
46544fi
46545
46546if test "$wxUSE_MINIFRAME" = "yes"; then
46547 cat >>confdefs.h <<\_ACEOF
46548#define wxUSE_MINIFRAME 1
46549_ACEOF
46550
46551 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
46552fi
46553
46554if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
46555 cat >>confdefs.h <<\_ACEOF
46556#define wxUSE_SYSTEM_OPTIONS 1
46557_ACEOF
46558
46559 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 46560 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
46561 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
46562 fi
46563fi
46564
46565
46566if test "$wxUSE_VALIDATORS" = "yes"; then
46567 cat >>confdefs.h <<\_ACEOF
46568#define wxUSE_VALIDATORS 1
46569_ACEOF
46570
46571 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
46572fi
46573
46574if test "$wxUSE_PALETTE" = "yes" ; then
46575 cat >>confdefs.h <<\_ACEOF
46576#define wxUSE_PALETTE 1
46577_ACEOF
46578
46579fi
46580
46581if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
46582 LIBS=" -lunicows $LIBS"
46583fi
46584
91dea314
MW
46585USE_RICHTEXT=0
46586if test "$wxUSE_RICHTEXT" = "yes"; then
46587 cat >>confdefs.h <<\_ACEOF
46588#define wxUSE_RICHTEXT 1
46589_ACEOF
46590
46591 USE_RICHTEXT=1
46592 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
46593fi
46594
a848cd7e
SC
46595
46596if test "$wxUSE_IMAGE" = "yes" ; then
46597 cat >>confdefs.h <<\_ACEOF
46598#define wxUSE_IMAGE 1
46599_ACEOF
46600
46601
46602 if test "$wxUSE_GIF" = "yes" ; then
46603 cat >>confdefs.h <<\_ACEOF
46604#define wxUSE_GIF 1
46605_ACEOF
46606
46607 fi
46608
46609 if test "$wxUSE_PCX" = "yes" ; then
46610 cat >>confdefs.h <<\_ACEOF
46611#define wxUSE_PCX 1
46612_ACEOF
46613
46614 fi
46615
46616 if test "$wxUSE_IFF" = "yes" ; then
46617 cat >>confdefs.h <<\_ACEOF
46618#define wxUSE_IFF 1
46619_ACEOF
46620
46621 fi
46622
46623 if test "$wxUSE_PNM" = "yes" ; then
46624 cat >>confdefs.h <<\_ACEOF
46625#define wxUSE_PNM 1
46626_ACEOF
46627
46628 fi
46629
46630 if test "$wxUSE_XPM" = "yes" ; then
46631 cat >>confdefs.h <<\_ACEOF
46632#define wxUSE_XPM 1
46633_ACEOF
46634
46635 fi
46636
46637 if test "$wxUSE_ICO_CUR" = "yes" ; then
46638 cat >>confdefs.h <<\_ACEOF
46639#define wxUSE_ICO_CUR 1
46640_ACEOF
46641
46642 fi
46643fi
46644
46645
319c5ed4
VZ
46646if test "$wxUSE_ABOUTDLG" = "yes"; then
46647 cat >>confdefs.h <<\_ACEOF
46648#define wxUSE_ABOUTDLG 1
46649_ACEOF
46650
46651fi
46652
a848cd7e
SC
46653if test "$wxUSE_CHOICEDLG" = "yes"; then
46654 cat >>confdefs.h <<\_ACEOF
46655#define wxUSE_CHOICEDLG 1
46656_ACEOF
46657
46658fi
46659
46660if test "$wxUSE_COLOURDLG" = "yes"; then
46661 cat >>confdefs.h <<\_ACEOF
46662#define wxUSE_COLOURDLG 1
46663_ACEOF
46664
46665fi
46666
46667if test "$wxUSE_FILEDLG" = "yes"; then
46668 cat >>confdefs.h <<\_ACEOF
46669#define wxUSE_FILEDLG 1
46670_ACEOF
46671
46672fi
46673
46674if test "$wxUSE_FINDREPLDLG" = "yes"; then
46675 cat >>confdefs.h <<\_ACEOF
46676#define wxUSE_FINDREPLDLG 1
46677_ACEOF
46678
46679fi
46680
46681if test "$wxUSE_FONTDLG" = "yes"; then
46682 cat >>confdefs.h <<\_ACEOF
46683#define wxUSE_FONTDLG 1
46684_ACEOF
46685
46686fi
46687
46688if test "$wxUSE_DIRDLG" = "yes"; then
46689 if test "$wxUSE_TREECTRL" != "yes"; then
46690 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
46691echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
46692 else
46693 cat >>confdefs.h <<\_ACEOF
46694#define wxUSE_DIRDLG 1
46695_ACEOF
46696
46697 fi
46698fi
46699
46700if test "$wxUSE_MSGDLG" = "yes"; then
46701 cat >>confdefs.h <<\_ACEOF
46702#define wxUSE_MSGDLG 1
46703_ACEOF
46704
46705fi
46706
46707if test "$wxUSE_NUMBERDLG" = "yes"; then
46708 cat >>confdefs.h <<\_ACEOF
46709#define wxUSE_NUMBERDLG 1
46710_ACEOF
46711
46712fi
46713
46714if test "$wxUSE_PROGRESSDLG" = "yes"; then
46715 if test "$wxUSE_CONSTRAINTS" != "yes"; then
46716 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
46717echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
46718 else
46719 cat >>confdefs.h <<\_ACEOF
46720#define wxUSE_PROGRESSDLG 1
46721_ACEOF
46722
46723 fi
46724fi
46725
46726if test "$wxUSE_SPLASH" = "yes"; then
46727 cat >>confdefs.h <<\_ACEOF
46728#define wxUSE_SPLASH 1
46729_ACEOF
46730
2057db16 46731 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
46732fi
46733
46734if test "$wxUSE_STARTUP_TIPS" = "yes"; then
46735 if test "$wxUSE_CONSTRAINTS" != "yes"; then
46736 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
46737echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
46738 else
46739 cat >>confdefs.h <<\_ACEOF
46740#define wxUSE_STARTUP_TIPS 1
46741_ACEOF
46742
46743 fi
46744fi
46745
46746if test "$wxUSE_TEXTDLG" = "yes"; then
46747 cat >>confdefs.h <<\_ACEOF
46748#define wxUSE_TEXTDLG 1
46749_ACEOF
46750
46751fi
46752
46753if test "$wxUSE_WIZARDDLG" = "yes"; then
46754 cat >>confdefs.h <<\_ACEOF
46755#define wxUSE_WIZARDDLG 1
46756_ACEOF
46757
46758 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
46759fi
46760
46761
64b75e64
RD
46762if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
46763 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
46764 cat >>confdefs.h <<\_ACEOF
46765#define wxUSE_GRAPHICS_CONTEXT 1
46766_ACEOF
46767
46768 elif test "$wxUSE_GTK" != 1; then
46769 cat >>confdefs.h <<\_ACEOF
46770#define wxUSE_GRAPHICS_CONTEXT 1
46771_ACEOF
46772
46773 else
46774
46775pkg_failed=no
46776echo "$as_me:$LINENO: checking for CAIRO" >&5
46777echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6
46778
46779if test -n "$PKG_CONFIG"; then
46780 if test -n "$CAIRO_CFLAGS"; then
46781 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
46782 else
46783 if test -n "$PKG_CONFIG" && \
46784 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46785 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46786 ac_status=$?
46787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46788 (exit $ac_status); }; then
46789 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
46790else
46791 pkg_failed=yes
46792fi
46793 fi
46794else
46795 pkg_failed=untried
46796fi
46797if test -n "$PKG_CONFIG"; then
46798 if test -n "$CAIRO_LIBS"; then
46799 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
46800 else
46801 if test -n "$PKG_CONFIG" && \
46802 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46803 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46804 ac_status=$?
46805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46806 (exit $ac_status); }; then
46807 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
46808else
46809 pkg_failed=yes
46810fi
46811 fi
46812else
46813 pkg_failed=untried
46814fi
46815
46816
46817
46818if test $pkg_failed = yes; then
46819
46820if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46821 _pkg_short_errors_supported=yes
46822else
46823 _pkg_short_errors_supported=no
46824fi
46825 if test $_pkg_short_errors_supported = yes; then
46826 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
46827 else
46828 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
46829 fi
46830 # Put the nasty error message in config.log where it belongs
46831 echo "$CAIRO_PKG_ERRORS" >&5
46832
ec3edcc9 46833 { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
64b75e64
RD
46834echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46835
64b75e64 46836elif test $pkg_failed = untried; then
ec3edcc9 46837 { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
64b75e64
RD
46838echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46839
64b75e64
RD
46840else
46841 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
46842 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
46843 echo "$as_me:$LINENO: result: yes" >&5
46844echo "${ECHO_T}yes" >&6
ec3edcc9 46845 cat >>confdefs.h <<\_ACEOF
64b75e64
RD
46846#define wxUSE_GRAPHICS_CONTEXT 1
46847_ACEOF
46848
64b75e64
RD
46849fi
46850 fi
46851fi
46852
46853
f10e38c4
VZ
46854USE_MEDIA=0
46855
ce756cb0 46856if test "$wxUSE_MEDIACTRL" = "yes"; then
2f6c5bb5
VZ
46857 USE_MEDIA=1
46858
ce756cb0 46859 if test "$wxUSE_GTK" = 1; then
c9a66001 46860 wxUSE_GSTREAMER="no"
ce756cb0 46861
f10e38c4
VZ
46862 GST_VERSION_MAJOR=0
46863 GST_VERSION_MINOR=10
2f6c5bb5 46864 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
f10e38c4
VZ
46865
46866 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 46867
3ecd9f92
MW
46868pkg_failed=no
46869echo "$as_me:$LINENO: checking for GST" >&5
46870echo $ECHO_N "checking for GST... $ECHO_C" >&6
ce756cb0 46871
3ecd9f92
MW
46872if test -n "$PKG_CONFIG"; then
46873 if test -n "$GST_CFLAGS"; then
46874 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46875 else
46876 if test -n "$PKG_CONFIG" && \
46877 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46878 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46879 ac_status=$?
46880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46881 (exit $ac_status); }; then
46882 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 46883else
3ecd9f92
MW
46884 pkg_failed=yes
46885fi
46886 fi
46887else
46888 pkg_failed=untried
dae87f93 46889fi
dae87f93 46890if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
46891 if test -n "$GST_LIBS"; then
46892 pkg_cv_GST_LIBS="$GST_LIBS"
46893 else
46894 if test -n "$PKG_CONFIG" && \
46895 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46896 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46897 ac_status=$?
46898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46899 (exit $ac_status); }; then
46900 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 46901else
3ecd9f92
MW
46902 pkg_failed=yes
46903fi
46904 fi
46905else
46906 pkg_failed=untried
dae87f93
RN
46907fi
46908
dae87f93 46909
2f6c5bb5 46910
3ecd9f92 46911if test $pkg_failed = yes; then
ce756cb0 46912
3ecd9f92
MW
46913if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46914 _pkg_short_errors_supported=yes
46915else
46916 _pkg_short_errors_supported=no
46917fi
46918 if test $_pkg_short_errors_supported = yes; then
46919 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46920 else
46921 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
dae87f93 46922 fi
3ecd9f92
MW
46923 # Put the nasty error message in config.log where it belongs
46924 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
46925
46926
3ecd9f92
MW
46927 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46928echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46929 GST_VERSION_MINOR=8
dae87f93 46930
ce756cb0 46931
3ecd9f92 46932elif test $pkg_failed = untried; then
dae87f93 46933
2f6c5bb5
VZ
46934 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46935echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
f10e38c4 46936 GST_VERSION_MINOR=8
dae87f93 46937
2f6c5bb5 46938
3ecd9f92
MW
46939else
46940 GST_CFLAGS=$pkg_cv_GST_CFLAGS
46941 GST_LIBS=$pkg_cv_GST_LIBS
46942 echo "$as_me:$LINENO: result: yes" >&5
46943echo "${ECHO_T}yes" >&6
46944
46945 wxUSE_GSTREAMER="yes"
46946 GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
dae87f93 46947
3ecd9f92 46948fi
2f6c5bb5
VZ
46949 else
46950 GST_VERSION_MINOR=8
f10e38c4 46951 fi
dae87f93 46952
2f6c5bb5
VZ
46953 if test $GST_VERSION_MINOR = "8"; then
46954 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 46955
3ecd9f92
MW
46956pkg_failed=no
46957echo "$as_me:$LINENO: checking for GST" >&5
46958echo $ECHO_N "checking for GST... $ECHO_C" >&6
dae87f93 46959
3ecd9f92
MW
46960if test -n "$PKG_CONFIG"; then
46961 if test -n "$GST_CFLAGS"; then
46962 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46963 else
46964 if test -n "$PKG_CONFIG" && \
46965 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46966 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46967 ac_status=$?
46968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46969 (exit $ac_status); }; then
46970 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 46971else
3ecd9f92
MW
46972 pkg_failed=yes
46973fi
46974 fi
46975else
46976 pkg_failed=untried
dae87f93 46977fi
f10e38c4 46978if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
46979 if test -n "$GST_LIBS"; then
46980 pkg_cv_GST_LIBS="$GST_LIBS"
46981 else
46982 if test -n "$PKG_CONFIG" && \
46983 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46984 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46985 ac_status=$?
46986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46987 (exit $ac_status); }; then
46988 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 46989else
3ecd9f92
MW
46990 pkg_failed=yes
46991fi
46992 fi
46993else
46994 pkg_failed=untried
dae87f93
RN
46995fi
46996
ce756cb0 46997
2f6c5bb5 46998
3ecd9f92 46999if test $pkg_failed = yes; then
dae87f93 47000
3ecd9f92
MW
47001if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47002 _pkg_short_errors_supported=yes
47003else
47004 _pkg_short_errors_supported=no
47005fi
47006 if test $_pkg_short_errors_supported = yes; then
47007 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
47008 else
47009 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
dae87f93 47010 fi
3ecd9f92
MW
47011 # Put the nasty error message in config.log where it belongs
47012 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
47013
47014
3ecd9f92
MW
47015 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
47016echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 47017
3ecd9f92 47018elif test $pkg_failed = untried; then
ce756cb0 47019
2f6c5bb5
VZ
47020 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
47021echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 47022
3ecd9f92
MW
47023else
47024 GST_CFLAGS=$pkg_cv_GST_CFLAGS
47025 GST_LIBS=$pkg_cv_GST_LIBS
47026 echo "$as_me:$LINENO: result: yes" >&5
47027echo "${ECHO_T}yes" >&6
47028 wxUSE_GSTREAMER="yes"
47029fi
dae87f93 47030 fi
ce756cb0 47031
f10e38c4 47032
dae87f93 47033 if test "$wxUSE_GSTREAMER" = "yes"; then
c9a66001
VZ
47034 case "${host}" in
47035 *-*-solaris2* )
47036 if "$GCC" = yes; then
47037 GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
47038 GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
47039 fi
47040 esac
47041
47042 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
47043 LIBS="$GST_LIBS $LIBS"
47044
dae87f93 47045 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
47046#define wxUSE_GSTREAMER 1
47047_ACEOF
47048
2f6c5bb5
VZ
47049 else
47050 USE_MEDIA=0
ce756cb0
RN
47051 fi
47052 fi
2f6c5bb5
VZ
47053
47054 if test $USE_MEDIA = 1; then
47055 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
47056 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
47057#define wxUSE_MEDIACTRL 1
47058_ACEOF
47059
2f6c5bb5 47060 fi
ce756cb0
RN
47061fi
47062
47063
a848cd7e
SC
47064if test "$cross_compiling" = "yes"; then
47065 OSINFO="\"$host\""
47066else
47067 OSINFO=`uname -s -r -m`
47068 OSINFO="\"$OSINFO\""
47069fi
47070
47071cat >>confdefs.h <<_ACEOF
47072#define WXWIN_OS_DESCRIPTION $OSINFO
47073_ACEOF
47074
47075
47076
47077if test "x$prefix" != "xNONE"; then
47078 wxPREFIX=$prefix
47079else
47080 wxPREFIX=$ac_default_prefix
47081fi
47082
47083cat >>confdefs.h <<_ACEOF
47084#define wxINSTALL_PREFIX "$wxPREFIX"
47085_ACEOF
47086
47087
a848cd7e
SC
47088
47089
47090CORE_BASE_LIBS="net base"
47091CORE_GUI_LIBS="adv core"
47092
47093if test "$wxUSE_XML" = "yes" ; then
47094 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
47095fi
47096if test "$wxUSE_ODBC" != "no" ; then
47097 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
47098 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
47099fi
47100if test "$wxUSE_HTML" = "yes" ; then
47101 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
47102fi
61639efb
VZ
47103if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47104 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
47105fi
9a8f0513
VS
47106if test "$wxUSE_XRC" = "yes" ; then
47107 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
47108fi
3f60522a
JS
47109if test "$wxUSE_AUI" = "yes" ; then
47110 CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
47111fi
a848cd7e
SC
47112
47113if test "$wxUSE_GUI" != "yes"; then
47114 CORE_GUI_LIBS=""
47115fi
47116
47117
47118
47119
47120
5d7b7554
VZ
47121ac_ext=c
47122ac_cpp='$CPP $CPPFLAGS'
47123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47125ac_compiler_gnu=$ac_cv_c_compiler_gnu
47126
a848cd7e
SC
47127
47128
a848cd7e 47129if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 47130 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
47131 if test "$USE_DARWIN" = 1; then
47132 LDFLAGS="$LDFLAGS -framework QuickTime"
47133 else
47134 LDFLAGS="$LDFLAGS -lQuickTimeLib"
47135 fi
07bea8f0 47136 fi
5dcf30a0 47137 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
47138 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
47139 else
47140 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 47141 fi
a848cd7e
SC
47142fi
47143if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 47144 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
47145 if test "$wxUSE_MEDIACTRL" = "yes"; then
47146 LDFLAGS="$LDFLAGS -framework QuickTime"
47147 fi
a848cd7e 47148fi
19b27e78
MW
47149if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
47150 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
47151fi
a848cd7e 47152
a848cd7e
SC
47153LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
47154
a848cd7e
SC
47155if test "$wxUSE_GUI" = "yes"; then
47156
47157
8bce5cda
MW
47158 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
47159 dynamic erase event exec font image minimal mobile \
47160 mobile/wxedit mobile/styles propsize render \
9e39d889 47161 rotate shaped vscroll widgets"
a848cd7e
SC
47162
47163 if test "$wxUSE_MONOLITHIC" != "yes"; then
47164 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
47165 fi
0b78747f 47166 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
47167 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
47168 if test "$wxUSE_UNIVERSAL" != "yes"; then
47169 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
47170 fi
47171 fi
47172 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
47173 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 47174 fi
a848cd7e
SC
47175else
47176 SAMPLES_SUBDIRS="console"
47177fi
47178
47179
48f625bc 47180if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
47181 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
47182elif test "$GCC" = yes ; then
47183 CWARNINGS="-Wall -Wundef"
47184fi
47185
48f625bc 47186if test "x$INTELCXX" = "xyes" ; then
7f47faf4 47187 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
47188elif test "$GXX" = yes ; then
47189 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 47190fi
a848cd7e 47191
a848cd7e 47192
5ff751d6
VZ
47193WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
47194WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
47195
47196
c92ad099 47197CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 47198 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
47199 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
47200 $CPPFLAGS `
5ff751d6 47201
8aeeb05c 47202C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 47203CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 47204CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
47205
47206WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
47207
a848cd7e 47208
95986553
DE
47209if test "x$MWCC" = "xyes"; then
47210
47211 CC="$CC -cwd source -I-"
47212 CXX="$CXX -cwd source -I-"
47213fi
47214
a848cd7e 47215
0c3c69fc 47216LIBS=`echo $LIBS`
a848cd7e
SC
47217EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
47218EXTRALIBS_XML="$EXPAT_LINK"
47219EXTRALIBS_HTML="$MSPACK_LINK"
47220EXTRALIBS_ODBC="$ODBC_LINK"
47221if test "$wxUSE_GUI" = "yes"; then
2b850ae1 47222 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
47223fi
47224if test "$wxUSE_OPENGL" = "yes"; then
47225 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
47226fi
47227
8aeeb05c 47228LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 47229
5ff751d6 47230WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
47231
47232if test "$wxUSE_REGEX" = "builtin" ; then
74802184 47233 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
47234fi
47235if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 47236 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
47237fi
47238if test "$wxUSE_ODBC" = "builtin" ; then
74802184 47239 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
47240fi
47241if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 47242 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
47243fi
47244if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 47245 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
47246fi
47247if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 47248 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
47249fi
47250if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 47251 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
47252fi
47253
47254for i in $wxconfig_3rdparty ; do
5ff751d6 47255 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
47256done
47257
47258
47259if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
47260 WXUNIV=1
4353a8df
VZ
47261
47262 case "$wxUNIV_THEMES" in
47263 ''|all)
47264 cat >>confdefs.h <<\_ACEOF
47265#define wxUSE_ALL_THEMES 1
47266_ACEOF
47267
47268 ;;
47269
47270 *)
47271 for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
47272 cat >>confdefs.h <<_ACEOF
47273#define wxUSE_THEME_$t 1
47274_ACEOF
47275
47276 done
47277 esac
a848cd7e
SC
47278else
47279 WXUNIV=0
47280fi
47281
47282
47283
47284
47285
47286
47287
47288
47289
47290if test $wxUSE_MONOLITHIC = "yes" ; then
47291 MONOLITHIC=1
47292else
47293 MONOLITHIC=0
47294fi
47295
47296if test $wxUSE_PLUGINS = "yes" ; then
47297 USE_PLUGINS=1
47298else
47299 USE_PLUGINS=0
47300fi
47301
47302if test $wxUSE_ODBC != "no" ; then
47303 USE_ODBC=1
47304else
47305 USE_ODBC=0
47306fi
47307
16358932
VZ
47308if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47309 USE_QA=1
47310else
47311 USE_QA=0
47312fi
47313
a848cd7e
SC
47314if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
47315 OFFICIAL_BUILD=1
47316else
47317 OFFICIAL_BUILD=0
47318fi
47319
47320
47321
47322
47323
47324
47325
47326
47327
47328
47329
47330
47331
47332
47333
47334
47335
47336
47337
ceec2216 47338
d1c38808 47339
3565d135 47340
2b850ae1 47341
a848cd7e
SC
47342
47343
47344TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
47345
47346
47347
47348
47349
47350
47351
47352
4d4ff94c
VZ
47353case "$TOOLKIT" in
47354 GTK)
c2e9ada4 47355 TOOLKIT_DESC="GTK+"
4d4ff94c 47356 if test "$WXGTK20" = 1; then
c2e9ada4
VZ
47357 TOOLKIT_DESC="$TOOLKIT_DESC 2"
47358 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
47359 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
47360 fi
47361 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
47362 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
47363 fi
47364 if test "$wxUSE_LIBHILDON" = "yes"; then
47365 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
47366 fi
47367
47368 if test "$TOOLKIT_EXTRA" != ""; then
47369 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
47370 fi
4d4ff94c 47371 fi
9a8f0513 47372 ;;
4d4ff94c 47373
c2e9ada4
VZ
47374 ?*)
47375 TOOLKIT_DESC=$TOOLKIT_LOWERCASE
47376 ;;
47377
4d4ff94c 47378 *)
c2e9ada4 47379 TOOLKIT_DESC="base only"
9a8f0513 47380 ;;
4d4ff94c 47381esac
a848cd7e 47382
fb00f58d
JS
47383if test "$wxUSE_WINE" = "yes"; then
47384 BAKEFILE_FORCE_PLATFORM=win32
47385fi
47386
7afc46ab 47387if test "$wxUSE_MAC" = 1 ; then
95768535
MW
47388 if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
47389 if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
47390 OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
47391 else
47392 OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
47393 fi
47394 OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
47395 CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
47396 CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
47397 LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
7afc46ab
KO
47398 bk_use_pch=no
47399 fi
47400 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
47401 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
7afc46ab
KO
47402fi
47403
a81d5bb6
MW
47404if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
47405then
47406 echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
47407echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6
47408if test "${wx_cv_gcc_pch_bug+set}" = set; then
47409 echo $ECHO_N "(cached) $ECHO_C" >&6
47410else
47411
6d952fd7
MW
47412 echo '#include <stdio.h>
47413 const wchar_t test_var[] = L"awidetest";' > conftest.h
47414
47415 echo '#include "conftest.h"
47416 int main()
47417 {
be49c6ec 47418 printf("%ls", test_var);
6d952fd7
MW
47419 return 0;
47420 }' > conftest.cpp
47421
47422 wx_cv_gcc_pch_bug="pch not supported"
a81d5bb6 47423
b2983f42 47424 if $CXX conftest.h >/dev/null 2>&1
a81d5bb6 47425 then
6d952fd7 47426 wx_cv_gcc_pch_bug=
a81d5bb6 47427
6c7f5e56 47428 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
a81d5bb6 47429 then
6c7f5e56
MW
47430 if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
47431 grep awidetest >/dev/null
6d952fd7
MW
47432 then
47433 wx_cv_gcc_pch_bug=no
47434 else
a81d5bb6 47435 wx_cv_gcc_pch_bug=yes
6d952fd7 47436 fi
a81d5bb6
MW
47437 fi
47438 fi
47439
6c7f5e56 47440 rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
a81d5bb6
MW
47441
47442fi
47443echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
47444echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6
47445
47446 if test "$wx_cv_gcc_pch_bug" = yes; then
47447 bk_use_pch=no
47448 fi
47449fi
47450
9a8f0513 47451
1e9e8aba
DE
47452
47453
a848cd7e 47454 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
47455 if test "x${host}" = "x" ; then
47456 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
47457echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
47458 { (exit 1); exit 1; }; }
47459 fi
47460
a848cd7e
SC
47461 BAKEFILE_HOST="${host}"
47462 fi
47463
47464 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
47465
47466 if test -n "$ac_tool_prefix"; then
47467 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
47468set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47469echo "$as_me:$LINENO: checking for $ac_word" >&5
47470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47471if test "${ac_cv_prog_RANLIB+set}" = set; then
47472 echo $ECHO_N "(cached) $ECHO_C" >&6
47473else
47474 if test -n "$RANLIB"; then
47475 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
47476else
47477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47478for as_dir in $PATH
47479do
47480 IFS=$as_save_IFS
47481 test -z "$as_dir" && as_dir=.
47482 for ac_exec_ext in '' $ac_executable_extensions; do
47483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47484 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
47485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47486 break 2
47487 fi
47488done
47489done
47490
47491fi
47492fi
47493RANLIB=$ac_cv_prog_RANLIB
47494if test -n "$RANLIB"; then
47495 echo "$as_me:$LINENO: result: $RANLIB" >&5
47496echo "${ECHO_T}$RANLIB" >&6
47497else
47498 echo "$as_me:$LINENO: result: no" >&5
47499echo "${ECHO_T}no" >&6
47500fi
47501
47502fi
47503if test -z "$ac_cv_prog_RANLIB"; then
47504 ac_ct_RANLIB=$RANLIB
47505 # Extract the first word of "ranlib", so it can be a program name with args.
47506set dummy ranlib; ac_word=$2
47507echo "$as_me:$LINENO: checking for $ac_word" >&5
47508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47509if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
47510 echo $ECHO_N "(cached) $ECHO_C" >&6
47511else
47512 if test -n "$ac_ct_RANLIB"; then
47513 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
47514else
47515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47516for as_dir in $PATH
47517do
47518 IFS=$as_save_IFS
47519 test -z "$as_dir" && as_dir=.
47520 for ac_exec_ext in '' $ac_executable_extensions; do
47521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47522 ac_cv_prog_ac_ct_RANLIB="ranlib"
47523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47524 break 2
47525 fi
47526done
47527done
47528
47529 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
47530fi
47531fi
47532ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
47533if test -n "$ac_ct_RANLIB"; then
47534 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
47535echo "${ECHO_T}$ac_ct_RANLIB" >&6
47536else
47537 echo "$as_me:$LINENO: result: no" >&5
47538echo "${ECHO_T}no" >&6
47539fi
47540
47541 RANLIB=$ac_ct_RANLIB
47542else
47543 RANLIB="$ac_cv_prog_RANLIB"
47544fi
47545
47546 # Find a good install program. We prefer a C program (faster),
47547# so one script is as good as another. But avoid the broken or
47548# incompatible versions:
47549# SysV /etc/install, /usr/sbin/install
47550# SunOS /usr/etc/install
47551# IRIX /sbin/install
47552# AIX /bin/install
47553# AmigaOS /C/install, which installs bootblocks on floppy discs
47554# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
47555# AFS /usr/afsws/bin/install, which mishandles nonexistent args
47556# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 47557# OS/2's system install, which has a completely different semantic
a848cd7e
SC
47558# ./install, which can be erroneously created by make from ./install.sh.
47559echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
47560echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
47561if test -z "$INSTALL"; then
47562if test "${ac_cv_path_install+set}" = set; then
47563 echo $ECHO_N "(cached) $ECHO_C" >&6
47564else
47565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47566for as_dir in $PATH
47567do
47568 IFS=$as_save_IFS
47569 test -z "$as_dir" && as_dir=.
47570 # Account for people who put trailing slashes in PATH elements.
47571case $as_dir/ in
47572 ./ | .// | /cC/* | \
47573 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 47574 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
47575 /usr/ucb/* ) ;;
47576 *)
47577 # OSF1 and SCO ODT 3.0 have their own names for install.
47578 # Don't use installbsd from OSF since it installs stuff as root
47579 # by default.
47580 for ac_prog in ginstall scoinst install; do
47581 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
47582 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
47583 if test $ac_prog = install &&
47584 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47585 # AIX install. It has an incompatible calling convention.
47586 :
47587 elif test $ac_prog = install &&
47588 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47589 # program-specific install script used by HP pwplus--don't use.
47590 :
47591 else
47592 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
47593 break 3
47594 fi
47595 fi
a848cd7e
SC
47596 done
47597 done
47598 ;;
47599esac
47600done
47601
47602
47603fi
47604 if test "${ac_cv_path_install+set}" = set; then
47605 INSTALL=$ac_cv_path_install
47606 else
47607 # As a last resort, use the slow shell script. We don't cache a
47608 # path for INSTALL within a source directory, because that will
47609 # break other packages using the cache if that directory is
47610 # removed, or if the path is relative.
47611 INSTALL=$ac_install_sh
47612 fi
47613fi
47614echo "$as_me:$LINENO: result: $INSTALL" >&5
47615echo "${ECHO_T}$INSTALL" >&6
47616
47617# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
47618# It thinks the first close brace ends the variable substitution.
47619test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
47620
47621test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
47622
47623test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
47624
47625 echo "$as_me:$LINENO: checking whether ln -s works" >&5
47626echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
47627LN_S=$as_ln_s
47628if test "$LN_S" = "ln -s"; then
47629 echo "$as_me:$LINENO: result: yes" >&5
47630echo "${ECHO_T}yes" >&6
47631else
47632 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
47633echo "${ECHO_T}no, using $LN_S" >&6
47634fi
47635
47636
47637 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47638echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 47639set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
47640if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
47641 echo $ECHO_N "(cached) $ECHO_C" >&6
47642else
47643 cat >conftest.make <<\_ACEOF
47644all:
47645 @echo 'ac_maketemp="$(MAKE)"'
47646_ACEOF
47647# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47648eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
47649if test -n "$ac_maketemp"; then
47650 eval ac_cv_prog_make_${ac_make}_set=yes
47651else
47652 eval ac_cv_prog_make_${ac_make}_set=no
47653fi
47654rm -f conftest.make
47655fi
47656if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
47657 echo "$as_me:$LINENO: result: yes" >&5
47658echo "${ECHO_T}yes" >&6
47659 SET_MAKE=
47660else
47661 echo "$as_me:$LINENO: result: no" >&5
47662echo "${ECHO_T}no" >&6
47663 SET_MAKE="MAKE=${MAKE-make}"
47664fi
47665
47666
47667
47668 if test -n "$ac_tool_prefix"; then
47669 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
47670set dummy ${ac_tool_prefix}ar; ac_word=$2
47671echo "$as_me:$LINENO: checking for $ac_word" >&5
47672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47673if test "${ac_cv_prog_AR+set}" = set; then
47674 echo $ECHO_N "(cached) $ECHO_C" >&6
47675else
47676 if test -n "$AR"; then
47677 ac_cv_prog_AR="$AR" # Let the user override the test.
47678else
47679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47680for as_dir in $PATH
47681do
47682 IFS=$as_save_IFS
47683 test -z "$as_dir" && as_dir=.
47684 for ac_exec_ext in '' $ac_executable_extensions; do
47685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47686 ac_cv_prog_AR="${ac_tool_prefix}ar"
47687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47688 break 2
47689 fi
47690done
47691done
47692
47693fi
47694fi
47695AR=$ac_cv_prog_AR
47696if test -n "$AR"; then
47697 echo "$as_me:$LINENO: result: $AR" >&5
47698echo "${ECHO_T}$AR" >&6
47699else
47700 echo "$as_me:$LINENO: result: no" >&5
47701echo "${ECHO_T}no" >&6
47702fi
47703
47704fi
47705if test -z "$ac_cv_prog_AR"; then
47706 ac_ct_AR=$AR
47707 # Extract the first word of "ar", so it can be a program name with args.
47708set dummy ar; ac_word=$2
47709echo "$as_me:$LINENO: checking for $ac_word" >&5
47710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47711if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
47712 echo $ECHO_N "(cached) $ECHO_C" >&6
47713else
47714 if test -n "$ac_ct_AR"; then
47715 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
47716else
47717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47718for as_dir in $PATH
47719do
47720 IFS=$as_save_IFS
47721 test -z "$as_dir" && as_dir=.
47722 for ac_exec_ext in '' $ac_executable_extensions; do
47723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47724 ac_cv_prog_ac_ct_AR="ar"
47725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47726 break 2
47727 fi
47728done
47729done
47730
47731 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
47732fi
47733fi
47734ac_ct_AR=$ac_cv_prog_ac_ct_AR
47735if test -n "$ac_ct_AR"; then
47736 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
47737echo "${ECHO_T}$ac_ct_AR" >&6
47738else
47739 echo "$as_me:$LINENO: result: no" >&5
47740echo "${ECHO_T}no" >&6
47741fi
47742
47743 AR=$ac_ct_AR
47744else
47745 AR="$ac_cv_prog_AR"
47746fi
47747
47748 if test -n "$ac_tool_prefix"; then
47749 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
47750set dummy ${ac_tool_prefix}strip; ac_word=$2
47751echo "$as_me:$LINENO: checking for $ac_word" >&5
47752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47753if test "${ac_cv_prog_STRIP+set}" = set; then
47754 echo $ECHO_N "(cached) $ECHO_C" >&6
47755else
47756 if test -n "$STRIP"; then
47757 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
47758else
47759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47760for as_dir in $PATH
47761do
47762 IFS=$as_save_IFS
47763 test -z "$as_dir" && as_dir=.
47764 for ac_exec_ext in '' $ac_executable_extensions; do
47765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47766 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
47767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47768 break 2
47769 fi
47770done
47771done
47772
47773fi
47774fi
47775STRIP=$ac_cv_prog_STRIP
47776if test -n "$STRIP"; then
47777 echo "$as_me:$LINENO: result: $STRIP" >&5
47778echo "${ECHO_T}$STRIP" >&6
47779else
47780 echo "$as_me:$LINENO: result: no" >&5
47781echo "${ECHO_T}no" >&6
47782fi
47783
47784fi
47785if test -z "$ac_cv_prog_STRIP"; then
47786 ac_ct_STRIP=$STRIP
47787 # Extract the first word of "strip", so it can be a program name with args.
47788set dummy strip; ac_word=$2
47789echo "$as_me:$LINENO: checking for $ac_word" >&5
47790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47791if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
47792 echo $ECHO_N "(cached) $ECHO_C" >&6
47793else
47794 if test -n "$ac_ct_STRIP"; then
47795 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
47796else
47797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47798for as_dir in $PATH
47799do
47800 IFS=$as_save_IFS
47801 test -z "$as_dir" && as_dir=.
47802 for ac_exec_ext in '' $ac_executable_extensions; do
47803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47804 ac_cv_prog_ac_ct_STRIP="strip"
47805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47806 break 2
47807 fi
47808done
47809done
47810
47811 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
47812fi
47813fi
47814ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
47815if test -n "$ac_ct_STRIP"; then
47816 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
47817echo "${ECHO_T}$ac_ct_STRIP" >&6
47818else
47819 echo "$as_me:$LINENO: result: no" >&5
47820echo "${ECHO_T}no" >&6
47821fi
47822
47823 STRIP=$ac_ct_STRIP
47824else
47825 STRIP="$ac_cv_prog_STRIP"
47826fi
47827
47828 if test -n "$ac_tool_prefix"; then
47829 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
47830set dummy ${ac_tool_prefix}nm; ac_word=$2
47831echo "$as_me:$LINENO: checking for $ac_word" >&5
47832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47833if test "${ac_cv_prog_NM+set}" = set; then
47834 echo $ECHO_N "(cached) $ECHO_C" >&6
47835else
47836 if test -n "$NM"; then
47837 ac_cv_prog_NM="$NM" # Let the user override the test.
47838else
47839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47840for as_dir in $PATH
47841do
47842 IFS=$as_save_IFS
47843 test -z "$as_dir" && as_dir=.
47844 for ac_exec_ext in '' $ac_executable_extensions; do
47845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47846 ac_cv_prog_NM="${ac_tool_prefix}nm"
47847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47848 break 2
47849 fi
47850done
47851done
47852
47853fi
47854fi
47855NM=$ac_cv_prog_NM
47856if test -n "$NM"; then
47857 echo "$as_me:$LINENO: result: $NM" >&5
47858echo "${ECHO_T}$NM" >&6
47859else
47860 echo "$as_me:$LINENO: result: no" >&5
47861echo "${ECHO_T}no" >&6
47862fi
47863
47864fi
47865if test -z "$ac_cv_prog_NM"; then
47866 ac_ct_NM=$NM
47867 # Extract the first word of "nm", so it can be a program name with args.
47868set dummy nm; ac_word=$2
47869echo "$as_me:$LINENO: checking for $ac_word" >&5
47870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47871if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
47872 echo $ECHO_N "(cached) $ECHO_C" >&6
47873else
47874 if test -n "$ac_ct_NM"; then
47875 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
47876else
47877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47878for as_dir in $PATH
47879do
47880 IFS=$as_save_IFS
47881 test -z "$as_dir" && as_dir=.
47882 for ac_exec_ext in '' $ac_executable_extensions; do
47883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47884 ac_cv_prog_ac_ct_NM="nm"
47885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47886 break 2
47887 fi
47888done
47889done
47890
47891 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
47892fi
47893fi
47894ac_ct_NM=$ac_cv_prog_ac_ct_NM
47895if test -n "$ac_ct_NM"; then
47896 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
47897echo "${ECHO_T}$ac_ct_NM" >&6
47898else
47899 echo "$as_me:$LINENO: result: no" >&5
47900echo "${ECHO_T}no" >&6
47901fi
47902
47903 NM=$ac_ct_NM
47904else
47905 NM="$ac_cv_prog_NM"
47906fi
47907
47908
47909 case ${BAKEFILE_HOST} in
47910 *-hp-hpux* )
1e9e8aba 47911 INSTALL_DIR="mkdir -p"
a848cd7e
SC
47912 ;;
47913 *) INSTALL_DIR="$INSTALL -d"
47914 ;;
47915 esac
47916
47917
47918 LDFLAGS_GUI=
47919 case ${BAKEFILE_HOST} in
47920 *-*-cygwin* | *-*-mingw32* )
47921 LDFLAGS_GUI="-mwindows"
47922 esac
47923
47924
47925 fi
47926
47927 echo "$as_me:$LINENO: checking if make is GNU make" >&5
47928echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
47929if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
47930 echo $ECHO_N "(cached) $ECHO_C" >&6
47931else
47932
47933 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
47934 egrep -s GNU > /dev/null); then
47935 bakefile_cv_prog_makeisgnu="yes"
47936 else
47937 bakefile_cv_prog_makeisgnu="no"
47938 fi
47939
47940fi
47941echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
47942echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
47943
47944 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
47945 IF_GNU_MAKE=""
47946 else
47947 IF_GNU_MAKE="#"
47948 fi
47949
47950
47951
47952 PLATFORM_UNIX=0
47953 PLATFORM_WIN32=0
47954 PLATFORM_MSDOS=0
47955 PLATFORM_MAC=0
1e9e8aba 47956 PLATFORM_MACOS=0
a848cd7e
SC
47957 PLATFORM_MACOSX=0
47958 PLATFORM_OS2=0
1e9e8aba 47959 PLATFORM_BEOS=0
a848cd7e
SC
47960
47961 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
47962 case "${BAKEFILE_HOST}" in
810b94f0 47963 *-*-mingw32* )
a848cd7e
SC
47964 PLATFORM_WIN32=1
47965 ;;
47966 *-pc-msdosdjgpp )
47967 PLATFORM_MSDOS=1
47968 ;;
47969 *-pc-os2_emx | *-pc-os2-emx )
47970 PLATFORM_OS2=1
47971 ;;
47bd5406 47972 *-*-darwin* )
a848cd7e
SC
47973 PLATFORM_MAC=1
47974 PLATFORM_MACOSX=1
47975 ;;
1e9e8aba
DE
47976 *-*-beos* )
47977 PLATFORM_BEOS=1
47978 ;;
47979 powerpc-apple-macos* )
47980 PLATFORM_MAC=1
47981 PLATFORM_MACOS=1
47982 ;;
a848cd7e
SC
47983 * )
47984 PLATFORM_UNIX=1
47985 ;;
47986 esac
47987 else
47988 case "$BAKEFILE_FORCE_PLATFORM" in
47989 win32 )
47990 PLATFORM_WIN32=1
47991 ;;
47992 msdos )
47993 PLATFORM_MSDOS=1
47994 ;;
47995 os2 )
47996 PLATFORM_OS2=1
47997 ;;
47998 darwin )
47999 PLATFORM_MAC=1
48000 PLATFORM_MACOSX=1
48001 ;;
48002 unix )
48003 PLATFORM_UNIX=1
48004 ;;
1e9e8aba
DE
48005 beos )
48006 PLATFORM_BEOS=1
48007 ;;
a848cd7e
SC
48008 * )
48009 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
48010echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
48011 { (exit 1); exit 1; }; }
48012 ;;
48013 esac
48014 fi
48015
48016
48017
48018
48019
48020
48021
48022
48023
1e9e8aba
DE
48024
48025
a848cd7e
SC
48026 # Check whether --enable-omf or --disable-omf was given.
48027if test "${enable_omf+set}" = set; then
48028 enableval="$enable_omf"
48029 bk_os2_use_omf="$enableval"
48030fi;
48031
48032 case "${BAKEFILE_HOST}" in
48033 *-*-darwin* )
47bd5406
VZ
48034 if test "x$GCC" = "xyes"; then
48035 CFLAGS="$CFLAGS -fno-common"
48036 CXXFLAGS="$CXXFLAGS -fno-common"
48037 fi
48038 if test "x$XLCC" = "xyes"; then
48039 CFLAGS="$CFLAGS -qnocommon"
48040 CXXFLAGS="$CXXFLAGS -qnocommon"
48041 fi
a848cd7e
SC
48042 ;;
48043
48044 *-pc-os2_emx | *-pc-os2-emx )
48045 if test "x$bk_os2_use_omf" = "xyes" ; then
48046 AR=emxomfar
48047 RANLIB=:
48048 LDFLAGS="-Zomf $LDFLAGS"
48049 CFLAGS="-Zomf $CFLAGS"
48050 CXXFLAGS="-Zomf $CXXFLAGS"
48051 OS2_LIBEXT="lib"
48052 else
48053 OS2_LIBEXT="a"
48054 fi
48055 ;;
1e9e8aba
DE
48056
48057 i*86-*-beos* )
48058 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
48059 ;;
a848cd7e
SC
48060 esac
48061
48062
48063 SO_SUFFIX="so"
48064 SO_SUFFIX_MODULE="so"
48065 EXEEXT=""
48066 LIBPREFIX="lib"
48067 LIBEXT=".a"
48068 DLLPREFIX="lib"
48069 DLLPREFIX_MODULE=""
48070 DLLIMP_SUFFIX=""
810b94f0 48071 dlldir="$libdir"
a848cd7e
SC
48072
48073 case "${BAKEFILE_HOST}" in
48074 *-hp-hpux* )
48075 SO_SUFFIX="sl"
48076 SO_SUFFIX_MODULE="sl"
48077 ;;
48078 *-*-aix* )
48079 SO_SUFFIX="a"
48080 SO_SUFFIX_MODULE="a"
48081 ;;
810b94f0
MW
48082 *-*-cygwin* )
48083 SO_SUFFIX="dll"
48084 SO_SUFFIX_MODULE="dll"
48085 DLLIMP_SUFFIX="dll.a"
48086 EXEEXT=".exe"
48087 DLLPREFIX="cyg"
48088 dlldir="$bindir"
48089 ;;
48090 *-*-mingw32* )
a848cd7e
SC
48091 SO_SUFFIX="dll"
48092 SO_SUFFIX_MODULE="dll"
48093 DLLIMP_SUFFIX="dll.a"
48094 EXEEXT=".exe"
48095 DLLPREFIX=""
810b94f0 48096 dlldir="$bindir"
a848cd7e
SC
48097 ;;
48098 *-pc-msdosdjgpp )
48099 EXEEXT=".exe"
48100 DLLPREFIX=""
810b94f0 48101 dlldir="$bindir"
a848cd7e
SC
48102 ;;
48103 *-pc-os2_emx | *-pc-os2-emx )
48104 SO_SUFFIX="dll"
48105 SO_SUFFIX_MODULE="dll"
48106 DLLIMP_SUFFIX=$OS2_LIBEXT
48107 EXEEXT=".exe"
48108 DLLPREFIX=""
48109 LIBPREFIX=""
48110 LIBEXT=".$OS2_LIBEXT"
810b94f0 48111 dlldir="$bindir"
a848cd7e 48112 ;;
47bd5406 48113 *-*-darwin* )
a848cd7e
SC
48114 SO_SUFFIX="dylib"
48115 SO_SUFFIX_MODULE="bundle"
48116 ;;
48117 esac
48118
48119 if test "x$DLLIMP_SUFFIX" = "x" ; then
48120 DLLIMP_SUFFIX="$SO_SUFFIX"
48121 fi
48122
48123
48124
48125
48126
48127
48128
48129
48130
48131
48132
810b94f0 48133
1e9e8aba
DE
48134 PIC_FLAG=""
48135 if test "x$GCC" = "xyes"; then
a848cd7e
SC
48136 PIC_FLAG="-fPIC"
48137 fi
48138
1e9e8aba
DE
48139 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
48140 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 48141 WINDOWS_IMPLIB=0
1e9e8aba 48142
a848cd7e
SC
48143 case "${BAKEFILE_HOST}" in
48144 *-hp-hpux* )
1e9e8aba 48145 if test "x$GCC" != "xyes"; then
a848cd7e
SC
48146 LDFLAGS="$LDFLAGS -L/usr/lib"
48147
48148 SHARED_LD_CC="${CC} -b -o"
48149 SHARED_LD_CXX="${CXX} -b -o"
48150 PIC_FLAG="+Z"
48151 fi
48152 ;;
48153
48154 *-*-linux* )
48155 if test "x$GCC" != "xyes"; then
48156 echo "$as_me:$LINENO: checking for Intel compiler" >&5
48157echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
48158if test "${bakefile_cv_prog_icc+set}" = set; then
48159 echo $ECHO_N "(cached) $ECHO_C" >&6
48160else
48161
48162 cat >conftest.$ac_ext <<_ACEOF
48163/* confdefs.h. */
48164_ACEOF
48165cat confdefs.h >>conftest.$ac_ext
48166cat >>conftest.$ac_ext <<_ACEOF
48167/* end confdefs.h. */
48168
48169int
48170main ()
48171{
48172
48173 #ifndef __INTEL_COMPILER
e5efa97e 48174 This is not ICC
a848cd7e
SC
48175 #endif
48176
48177 ;
48178 return 0;
48179}
48180_ACEOF
48181rm -f conftest.$ac_objext
48182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 48183 (eval $ac_compile) 2>conftest.er1
a848cd7e 48184 ac_status=$?
ac1cb8d3
VS
48185 grep -v '^ *+' conftest.er1 >conftest.err
48186 rm -f conftest.er1
48187 cat conftest.err >&5
a848cd7e
SC
48188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48189 (exit $ac_status); } &&
479c790c 48190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
48191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48192 (eval $ac_try) 2>&5
48193 ac_status=$?
48194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48195 (exit $ac_status); }; } &&
48196 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
48197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48198 (eval $ac_try) 2>&5
48199 ac_status=$?
48200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48201 (exit $ac_status); }; }; then
48202 bakefile_cv_prog_icc=yes
48203else
48204 echo "$as_me: failed program was:" >&5
48205sed 's/^/| /' conftest.$ac_ext >&5
48206
48207bakefile_cv_prog_icc=no
48208
48209fi
ac1cb8d3 48210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
48211
48212fi
48213echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
48214echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
48215 if test "$bakefile_cv_prog_icc" = "yes"; then
48216 PIC_FLAG="-KPIC"
48217 fi
48218 fi
48219 ;;
48220
48221 *-*-solaris2* )
48222 if test "x$GCC" != xyes ; then
48223 SHARED_LD_CC="${CC} -G -o"
48224 SHARED_LD_CXX="${CXX} -G -o"
48225 PIC_FLAG="-KPIC"
48226 fi
48227 ;;
48228
48229 *-*-darwin* )
48230
473276a9
VS
48231D='$'
48232cat <<EOF >shared-ld-sh
a848cd7e
SC
48233#!/bin/sh
48234#-----------------------------------------------------------------------------
48235#-- Name: distrib/mac/shared-ld-sh
48236#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
48237#-- Author: Gilles Depeyrot
48238#-- Copyright: (c) 2002 Gilles Depeyrot
48239#-- Licence: any use permitted
48240#-----------------------------------------------------------------------------
48241
48242verbose=0
48243args=""
48244objects=""
48245linking_flag="-dynamiclib"
810b94f0 48246ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 48247
473276a9
VS
48248while test ${D}# -gt 0; do
48249 case ${D}1 in
a848cd7e
SC
48250
48251 -v)
48252 verbose=1
48253 ;;
48254
48255 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
48256 # collect these options and values
473276a9 48257 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
48258 shift
48259 ;;
48260
810b94f0
MW
48261 -s|-Wl,*)
48262 # collect these load args
48263 ldargs="${D}{ldargs} ${D}1"
2113bc77 48264 ;;
810b94f0
MW
48265
48266 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 48267 # collect these options
473276a9 48268 args="${D}{args} ${D}1"
a848cd7e
SC
48269 ;;
48270
48271 -dynamiclib|-bundle)
473276a9 48272 linking_flag="${D}1"
a848cd7e
SC
48273 ;;
48274
48275 -*)
473276a9 48276 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
48277 exit 1
48278 ;;
48279
48280 *.o | *.a | *.dylib)
48281 # collect object files
473276a9 48282 objects="${D}{objects} ${D}1"
a848cd7e
SC
48283 ;;
48284
48285 *)
473276a9 48286 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
48287 exit 1
48288 ;;
48289
48290 esac
48291 shift
48292done
48293
810b94f0
MW
48294status=0
48295
a848cd7e
SC
48296#
48297# Link one module containing all the others
48298#
473276a9 48299if test ${D}{verbose} = 1; then
810b94f0 48300 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 48301fi
810b94f0 48302c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 48303status=${D}?
a848cd7e
SC
48304
48305#
810b94f0
MW
48306# Link the shared library from the single module created, but only if the
48307# previous command didn't fail:
a848cd7e 48308#
810b94f0
MW
48309if test ${D}{status} = 0; then
48310 if test ${D}{verbose} = 1; then
48311 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
48312 fi
48313 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
48314 status=${D}?
a848cd7e
SC
48315fi
48316
48317#
48318# Remove intermediate module
48319#
473276a9 48320rm -f master.${D}${D}.o
a848cd7e 48321
810b94f0 48322exit ${D}status
a848cd7e 48323EOF
473276a9 48324
583d6b4b
VZ
48325 chmod +x shared-ld-sh
48326
48327 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
48328 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
48329
48330
48331 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
48332echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
48333if test "${bakefile_cv_gcc31+set}" = set; then
48334 echo $ECHO_N "(cached) $ECHO_C" >&6
48335else
48336
48337 cat >conftest.$ac_ext <<_ACEOF
48338/* confdefs.h. */
48339_ACEOF
48340cat confdefs.h >>conftest.$ac_ext
48341cat >>conftest.$ac_ext <<_ACEOF
48342/* end confdefs.h. */
48343
48344int
48345main ()
48346{
48347
48348 #if (__GNUC__ < 3) || \
48349 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 48350 This is old gcc
583d6b4b 48351 #endif
a848cd7e 48352
583d6b4b
VZ
48353 ;
48354 return 0;
48355}
48356_ACEOF
48357rm -f conftest.$ac_objext
48358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48359 (eval $ac_compile) 2>conftest.er1
48360 ac_status=$?
48361 grep -v '^ *+' conftest.er1 >conftest.err
48362 rm -f conftest.er1
48363 cat conftest.err >&5
48364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48365 (exit $ac_status); } &&
479c790c 48366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
583d6b4b
VZ
48367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48368 (eval $ac_try) 2>&5
48369 ac_status=$?
48370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48371 (exit $ac_status); }; } &&
48372 { ac_try='test -s conftest.$ac_objext'
48373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48374 (eval $ac_try) 2>&5
48375 ac_status=$?
48376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48377 (exit $ac_status); }; }; then
48378
48379 bakefile_cv_gcc31=yes
48380
48381else
48382 echo "$as_me: failed program was:" >&5
48383sed 's/^/| /' conftest.$ac_ext >&5
48384
48385
48386 bakefile_cv_gcc31=no
48387
48388
48389fi
48390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48391
48392fi
48393echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
48394echo "${ECHO_T}$bakefile_cv_gcc31" >&6
48395 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 48396 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 48397 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
48398 else
48399 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 48400 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
48401 fi
48402
47bd5406
VZ
48403 if test "x$GCC" == "xyes"; then
48404 PIC_FLAG="-dynamic -fPIC"
48405 fi
48406 if test "x$XLCC" = "xyes"; then
48407 PIC_FLAG="-dynamic -DPIC"
48408 fi
a848cd7e
SC
48409 ;;
48410
48411 *-*-aix* )
f6b50c59 48412 if test "x$GCC" = "xyes"; then
583d6b4b 48413 PIC_FLAG=""
f6b50c59 48414
583d6b4b
VZ
48415 case "${BAKEFILE_HOST}" in
48416 *-*-aix5* )
48417 LD_EXPFULL="-Wl,-bexpfull"
48418 ;;
48419 esac
f6b50c59 48420
583d6b4b
VZ
48421 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
48422 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
48423 else
48424 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
48425set dummy makeC++SharedLib; ac_word=$2
48426echo "$as_me:$LINENO: checking for $ac_word" >&5
48427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48428if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
48429 echo $ECHO_N "(cached) $ECHO_C" >&6
48430else
48431 if test -n "$AIX_CXX_LD"; then
48432 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
48433else
48434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48435for as_dir in $PATH
48436do
48437 IFS=$as_save_IFS
48438 test -z "$as_dir" && as_dir=.
48439 for ac_exec_ext in '' $ac_executable_extensions; do
48440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48441 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
48442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48443 break 2
48444 fi
48445done
48446done
48447
48448 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
48449fi
48450fi
48451AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
48452if test -n "$AIX_CXX_LD"; then
48453 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
48454echo "${ECHO_T}$AIX_CXX_LD" >&6
48455else
48456 echo "$as_me:$LINENO: result: no" >&5
48457echo "${ECHO_T}no" >&6
48458fi
48459
f6b50c59 48460 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
48461 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
48462 fi
48463 ;;
48464
48465 *-*-beos* )
1e9e8aba
DE
48466 SHARED_LD_CC="${LD} -nostart -o"
48467 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
48468 ;;
48469
48470 *-*-irix* )
48471 if test "x$GCC" != "xyes"; then
48472 PIC_FLAG="-KPIC"
48473 fi
48474 ;;
48475
48476 *-*-cygwin* | *-*-mingw32* )
48477 PIC_FLAG=""
1e9e8aba
DE
48478 SHARED_LD_CC="\$(CC) -shared -o"
48479 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 48480 WINDOWS_IMPLIB=1
a848cd7e
SC
48481 ;;
48482
48483 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
48484 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48485 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 48486 PIC_FLAG=""
473276a9
VS
48487
48488D='$'
48489cat <<EOF >dllar.sh
48490#!/bin/sh
48491#
48492# dllar - a tool to build both a .dll and an .a file
48493# from a set of object (.o) files for EMX/OS2.
48494#
48495# Written by Andrew Zabolotny, bit@freya.etu.ru
48496# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
48497#
48498# This script will accept a set of files on the command line.
48499# All the public symbols from the .o files will be exported into
48500# a .DEF file, then linker will be run (through gcc) against them to
48501# build a shared library consisting of all given .o files. All libraries
48502# (.a) will be first decompressed into component .o files then act as
48503# described above. You can optionally give a description (-d "description")
48504# which will be put into .DLL. To see the list of accepted options (as well
48505# as command-line format) simply run this program without options. The .DLL
48506# is built to be imported by name (there is no guarantee that new versions
48507# of the library you build will have same ordinals for same symbols).
48508#
48509# dllar is free software; you can redistribute it and/or modify
48510# it under the terms of the GNU General Public License as published by
48511# the Free Software Foundation; either version 2, or (at your option)
48512# any later version.
48513#
48514# dllar is distributed in the hope that it will be useful,
48515# but WITHOUT ANY WARRANTY; without even the implied warranty of
48516# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48517# GNU General Public License for more details.
48518#
48519# You should have received a copy of the GNU General Public License
48520# along with dllar; see the file COPYING. If not, write to the Free
48521# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
48522# 02111-1307, USA.
48523
48524# To successfuly run this program you will need:
48525# - Current drive should have LFN support (HPFS, ext2, network, etc)
48526# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
48527# - gcc
48528# (used to build the .dll)
48529# - emxexp
48530# (used to create .def file from .o files)
48531# - emximp
48532# (used to create .a file from .def file)
48533# - GNU text utilites (cat, sort, uniq)
48534# used to process emxexp output
48535# - GNU file utilities (mv, rm)
48536# - GNU sed
48537# - lxlite (optional, see flag below)
48538# (used for general .dll cleanup)
48539#
48540
48541flag_USE_LXLITE=1;
48542
48543#
48544# helper functions
48545# basnam, variant of basename, which does _not_ remove the path, _iff_
48546# second argument (suffix to remove) is given
48547basnam(){
48548 case ${D}# in
48549 1)
1e9e8aba 48550 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
48551 ;;
48552 2)
48553 echo ${D}1 | sed 's/'${D}2'${D}//'
48554 ;;
48555 *)
48556 echo "error in basnam ${D}*"
48557 exit 8
48558 ;;
48559 esac
48560}
48561
48562# Cleanup temporary files and output
48563CleanUp() {
48564 cd ${D}curDir
48565 for i in ${D}inputFiles ; do
48566 case ${D}i in
48567 *!)
48568 rm -rf \`basnam ${D}i !\`
48569 ;;
48570 *)
48571 ;;
48572 esac
48573 done
48574
48575 # Kill result in case of failure as there is just to many stupid make/nmake
48576 # things out there which doesn't do this.
1e9e8aba 48577 if [ ${D}# -eq 0 ]; then
473276a9
VS
48578 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
48579 fi
48580}
48581
48582# Print usage and exit script with rc=1.
48583PrintHelp() {
b1d22ded
DE
48584 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
48585 echo ' [-name-mangler-script script.sh]'
48586 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
48587 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
48588 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 48589 echo ' [*.o] [*.a]'
473276a9
VS
48590 echo '*> "output_file" should have no extension.'
48591 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
48592 echo ' The import library name is derived from this and is set to "name".a,'
48593 echo ' unless overridden by -import'
48594 echo '*> "importlib_name" should have no extension.'
48595 echo ' If it has the .o, or .a extension, it is automatically removed.'
48596 echo ' This name is used as the import library name and may be longer and'
48597 echo ' more descriptive than the DLL name which has to follow the old '
48598 echo ' 8.3 convention of FAT.'
b1d22ded
DE
48599 echo '*> "script.sh may be given to override the output_file name by a'
48600 echo ' different name. It is mainly useful if the regular make process'
48601 echo ' of some package does not take into account OS/2 restriction of'
48602 echo ' DLL name lengths. It takes the importlib name as input and is'
48603 echo ' supposed to procude a shorter name as output. The script should'
48604 echo ' expect to get importlib_name without extension and should produce'
48605 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
48606 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
48607 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
48608 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
48609 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
48610 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
48611 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
48612 echo ' If the last character of a symbol is "*", all symbols beginning'
48613 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 48614 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 48615 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 48616 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 48617 echo ' C runtime DLLs.'
b1d22ded 48618 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
48619 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
48620 echo ' unchanged to GCC at the end of command line.'
48621 echo '*> If you create a DLL from a library and you do not specify -o,'
48622 echo ' the basename for DLL and import library will be set to library name,'
48623 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
48624 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
48625 echo ' library will be renamed into gcc_s.a.'
48626 echo '--------'
48627 echo 'Example:'
48628 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
48629 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
48630 CleanUp
48631 exit 1
48632}
48633
48634# Execute a command.
48635# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
48636# @Uses Whatever CleanUp() uses.
48637doCommand() {
48638 echo "${D}*"
48639 eval ${D}*
48640 rcCmd=${D}?
48641
1e9e8aba 48642 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
48643 echo "command failed, exit code="${D}rcCmd
48644 CleanUp
48645 exit ${D}rcCmd
48646 fi
48647}
48648
48649# main routine
48650# setup globals
48651cmdLine=${D}*
48652outFile=""
48653outimpFile=""
48654inputFiles=""
b1d22ded 48655renameScript=""
473276a9
VS
48656description=""
48657CC=gcc.exe
48658CFLAGS="-s -Zcrtdll"
48659EXTRA_CFLAGS=""
48660EXPORT_BY_ORDINALS=0
48661exclude_symbols=""
48662library_flags=""
48663curDir=\`pwd\`
48664curDirS=curDir
48665case ${D}curDirS in
48666*/)
48667 ;;
48668*)
48669 curDirS=${D}{curDirS}"/"
48670 ;;
48671esac
48672# Parse commandline
48673libsToLink=0
b1d22ded 48674omfLinking=0
1e9e8aba 48675while [ ${D}1 ]; do
473276a9
VS
48676 case ${D}1 in
48677 -ord*)
48678 EXPORT_BY_ORDINALS=1;
48679 ;;
48680 -o*)
48681 shift
48682 outFile=${D}1
48683 ;;
48684 -i*)
48685 shift
48686 outimpFile=${D}1
48687 ;;
b1d22ded
DE
48688 -name-mangler-script)
48689 shift
48690 renameScript=${D}1
48691 ;;
473276a9
VS
48692 -d*)
48693 shift
48694 description=${D}1
48695 ;;
48696 -f*)
48697 shift
48698 CFLAGS=${D}1
48699 ;;
48700 -c*)
48701 shift
48702 CC=${D}1
48703 ;;
48704 -h*)
48705 PrintHelp
48706 ;;
48707 -ex*)
48708 shift
48709 exclude_symbols=${D}{exclude_symbols}${D}1" "
48710 ;;
48711 -libf*)
48712 shift
48713 library_flags=${D}{library_flags}${D}1" "
48714 ;;
48715 -nocrt*)
48716 CFLAGS="-s"
48717 ;;
48718 -nolxl*)
48719 flag_USE_LXLITE=0
48720 ;;
48721 -* | /*)
48722 case ${D}1 in
48723 -L* | -l*)
48724 libsToLink=1
48725 ;;
b1d22ded
DE
48726 -Zomf)
48727 omfLinking=1
48728 ;;
473276a9
VS
48729 *)
48730 ;;
48731 esac
48732 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48733 ;;
b1d22ded
DE
48734 *.dll)
48735 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
48736 if [ ${D}omfLinking -eq 1 ]; then
48737 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
48738 else
48739 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
48740 fi
48741 ;;
473276a9
VS
48742 *)
48743 found=0;
1e9e8aba 48744 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
48745 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48746 else
48747 for file in ${D}1 ; do
1e9e8aba 48748 if [ -f ${D}file ]; then
473276a9
VS
48749 inputFiles="${D}{inputFiles} ${D}file"
48750 found=1
48751 fi
48752 done
1e9e8aba 48753 if [ ${D}found -eq 0 ]; then
473276a9
VS
48754 echo "ERROR: No file(s) found: "${D}1
48755 exit 8
48756 fi
48757 fi
48758 ;;
48759 esac
48760 shift
48761done # iterate cmdline words
48762
48763#
1e9e8aba 48764if [ -z "${D}inputFiles" ]; then
473276a9
VS
48765 echo "dllar: no input files"
48766 PrintHelp
48767fi
48768
48769# Now extract all .o files from .a files
48770newInputFiles=""
48771for file in ${D}inputFiles ; do
48772 case ${D}file in
48773 *.a | *.lib)
48774 case ${D}file in
48775 *.a)
48776 suffix=".a"
48777 AR="ar"
48778 ;;
48779 *.lib)
48780 suffix=".lib"
48781 AR="emxomfar"
48782 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
48783 ;;
48784 *)
48785 ;;
48786 esac
48787 dirname=\`basnam ${D}file ${D}suffix\`"_%"
48788 mkdir ${D}dirname
1e9e8aba 48789 if [ ${D}? -ne 0 ]; then
473276a9
VS
48790 echo "Failed to create subdirectory ./${D}dirname"
48791 CleanUp
48792 exit 8;
48793 fi
48794 # Append '!' to indicate archive
48795 newInputFiles="${D}newInputFiles ${D}{dirname}!"
48796 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
48797 cd ${D}curDir
48798 found=0;
48799 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 48800 if [ -f ${D}subfile ]; then
473276a9 48801 found=1
1e9e8aba 48802 if [ -s ${D}subfile ]; then
473276a9
VS
48803 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
48804 newInputFiles="${D}newInputFiles ${D}subfile"
48805 fi
48806 fi
48807 done
1e9e8aba
DE
48808 if [ ${D}found -eq 0 ]; then
48809 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
48810 fi
48811 ;;
48812 *)
48813 newInputFiles="${D}{newInputFiles} ${D}file"
48814 ;;
48815 esac
48816done
48817inputFiles="${D}newInputFiles"
48818
48819# Output filename(s).
48820do_backup=0;
1e9e8aba 48821if [ -z ${D}outFile ]; then
473276a9
VS
48822 do_backup=1;
48823 set outFile ${D}inputFiles; outFile=${D}2
48824fi
48825
48826# If it is an archive, remove the '!' and the '_%' suffixes
48827case ${D}outFile in
48828*_%!)
48829 outFile=\`basnam ${D}outFile _%!\`
48830 ;;
48831*)
48832 ;;
48833esac
48834case ${D}outFile in
48835*.dll)
48836 outFile=\`basnam ${D}outFile .dll\`
48837 ;;
48838*.DLL)
48839 outFile=\`basnam ${D}outFile .DLL\`
48840 ;;
48841*.o)
48842 outFile=\`basnam ${D}outFile .o\`
48843 ;;
48844*.obj)
48845 outFile=\`basnam ${D}outFile .obj\`
48846 ;;
48847*.a)
48848 outFile=\`basnam ${D}outFile .a\`
48849 ;;
48850*.lib)
48851 outFile=\`basnam ${D}outFile .lib\`
48852 ;;
48853*)
48854 ;;
48855esac
48856case ${D}outimpFile in
48857*.a)
48858 outimpFile=\`basnam ${D}outimpFile .a\`
48859 ;;
48860*.lib)
48861 outimpFile=\`basnam ${D}outimpFile .lib\`
48862 ;;
48863*)
48864 ;;
48865esac
1e9e8aba 48866if [ -z ${D}outimpFile ]; then
473276a9
VS
48867 outimpFile=${D}outFile
48868fi
48869defFile="${D}{outFile}.def"
48870arcFile="${D}{outimpFile}.a"
48871arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
48872
48873#create ${D}dllFile as something matching 8.3 restrictions,
48874if [ -z ${D}renameScript ] ; then
48875 dllFile="${D}outFile"
48876else
48877 dllFile=\`${D}renameScript ${D}outimpFile\`
48878fi
473276a9 48879
1e9e8aba
DE
48880if [ ${D}do_backup -ne 0 ] ; then
48881 if [ -f ${D}arcFile ] ; then
473276a9
VS
48882 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
48883 fi
1e9e8aba 48884 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
48885 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
48886 fi
48887fi
48888
48889# Extract public symbols from all the object files.
48890tmpdefFile=${D}{defFile}_%
48891rm -f ${D}tmpdefFile
48892for file in ${D}inputFiles ; do
48893 case ${D}file in
48894 *!)
48895 ;;
48896 *)
48897 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
48898 ;;
48899 esac
48900done
48901
48902# Create the def file.
48903rm -f ${D}defFile
48904echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
48905dllFile="${D}{dllFile}.dll"
48906if [ ! -z ${D}description ]; then
1e9e8aba 48907 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
48908fi
48909echo "EXPORTS" >> ${D}defFile
48910
48911doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
48912grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
48913
48914# Checks if the export is ok or not.
48915for word in ${D}exclude_symbols; do
48916 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
48917 mv ${D}{tmpdefFile}% ${D}tmpdefFile
48918done
48919
48920
1e9e8aba
DE
48921if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48922 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
48923 sed '
48924 N
48925 : loop
1e9e8aba 48926 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
48927 t loop
48928 ' > ${D}{tmpdefFile}%
48929 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
48930else
48931 rm -f ${D}{tmpdefFile}%
48932fi
48933cat ${D}tmpdefFile >> ${D}defFile
48934rm -f ${D}tmpdefFile
48935
48936# Do linking, create implib, and apply lxlite.
48937gccCmdl="";
48938for file in ${D}inputFiles ; do
48939 case ${D}file in
48940 *!)
48941 ;;
48942 *)
48943 gccCmdl="${D}gccCmdl ${D}file"
48944 ;;
48945 esac
48946done
48947doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
48948touch "${D}{outFile}.dll"
48949
48950doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 48951if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 48952 add_flags="";
1e9e8aba 48953 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
48954 add_flags="-ynd"
48955 fi
48956 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
48957fi
48958doCommand "emxomf -s -l ${D}arcFile"
48959
48960# Successful exit.
48961CleanUp 1
48962exit 0
48963EOF
48964
48965 chmod +x dllar.sh
a848cd7e
SC
48966 ;;
48967
1e9e8aba 48968 powerpc-apple-macos* | \
0ad5d837 48969 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
48970 *-*-sunos4* | \
48971 *-*-osf* | \
48972 *-*-dgux5* | \
47a7e797
MW
48973 *-*-sysv5* | \
48974 *-pc-msdosdjgpp )
a848cd7e
SC
48975 ;;
48976
48977 *)
3ecd9f92 48978 esac
a848cd7e 48979
2057db16
VS
48980 if test "x$PIC_FLAG" != "x" ; then
48981 PIC_FLAG="$PIC_FLAG -DPIC"
48982 fi
48983
a848cd7e
SC
48984 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
48985 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
48986 fi
48987 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
48988 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
48989 fi
48990
48991
48992
48993
48994
48995
48996
48997
810b94f0 48998
a848cd7e
SC
48999 USE_SOVERSION=0
49000 USE_SOVERLINUX=0
49001 USE_SOVERSOLARIS=0
810b94f0 49002 USE_SOVERCYGWIN=0
a848cd7e
SC
49003 USE_SOSYMLINKS=0
49004 USE_MACVERSION=0
49005 SONAME_FLAG=
49006
49007 case "${BAKEFILE_HOST}" in
0ad5d837 49008 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
49009 SONAME_FLAG="-Wl,-soname,"
49010 USE_SOVERSION=1
49011 USE_SOVERLINUX=1
49012 USE_SOSYMLINKS=1
49013 ;;
49014
a848cd7e
SC
49015 *-*-solaris2* )
49016 SONAME_FLAG="-h "
49017 USE_SOVERSION=1
49018 USE_SOVERSOLARIS=1
49019 USE_SOSYMLINKS=1
49020 ;;
49021
49022 *-*-darwin* )
49023 USE_MACVERSION=1
49024 USE_SOVERSION=1
49025 USE_SOSYMLINKS=1
49026 ;;
810b94f0
MW
49027
49028 *-*-cygwin* )
49029 USE_SOVERSION=1
49030 USE_SOVERCYGWIN=1
49031 ;;
a848cd7e
SC
49032 esac
49033
49034
49035
49036
49037
49038
49039
49040
49041
810b94f0 49042
f10e38c4
VZ
49043 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
49044if test "${enable_dependency_tracking+set}" = set; then
49045 enableval="$enable_dependency_tracking"
49046 bk_use_trackdeps="$enableval"
49047fi;
49048
a848cd7e
SC
49049 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
49050echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 49051
f10e38c4
VZ
49052 if test "x$bk_use_trackdeps" = "xno" ; then
49053 DEPS_TRACKING=0
49054 echo "$as_me:$LINENO: result: disabled" >&5
49055echo "${ECHO_T}disabled" >&6
49056 else
49057 DEPS_TRACKING=1
49058
49059 if test "x$GCC" = "xyes"; then
49060 DEPSMODE=gcc
49061 case "${BAKEFILE_HOST}" in
49062 *-*-darwin* )
49063 DEPSFLAG="-no-cpp-precomp -MMD"
49064 ;;
49065 * )
49066 DEPSFLAG="-MMD"
49067 ;;
49068 esac
49069 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 49070echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
49071 elif test "x$MWCC" = "xyes"; then
49072 DEPSMODE=mwcc
49073 DEPSFLAG="-MM"
49074 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 49075echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
49076 elif test "x$SUNCC" = "xyes"; then
49077 DEPSMODE=unixcc
49078 DEPSFLAG="-xM1"
49079 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 49080echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
49081 elif test "x$SGICC" = "xyes"; then
49082 DEPSMODE=unixcc
49083 DEPSFLAG="-M"
49084 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 49085echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
49086 elif test "x$HPCC" = "xyes"; then
49087 DEPSMODE=unixcc
49088 DEPSFLAG="+make"
49089 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 49090echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
49091 elif test "x$COMPAQCC" = "xyes"; then
49092 DEPSMODE=gcc
49093 DEPSFLAG="-MD"
49094 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 49095echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
49096 else
49097 DEPS_TRACKING=0
49098 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 49099echo "${ECHO_T}none" >&6
f10e38c4 49100 fi
a848cd7e 49101
f10e38c4 49102 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
49103
49104D='$'
49105cat <<EOF >bk-deps
a848cd7e
SC
49106#!/bin/sh
49107
49108# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
49109# script. It is used to track C/C++ files dependencies in portable way.
49110#
49111# Permission is given to use this file in any way.
49112
473276a9 49113DEPSMODE=${DEPSMODE}
a848cd7e 49114DEPSDIR=.deps
0ad5d837 49115DEPSFLAG="${DEPSFLAG}"
a848cd7e 49116
473276a9 49117mkdir -p ${D}DEPSDIR
a848cd7e 49118
473276a9 49119if test ${D}DEPSMODE = gcc ; then
0ad5d837 49120 ${D}* ${D}{DEPSFLAG}
473276a9
VS
49121 status=${D}?
49122 if test ${D}{status} != 0 ; then
49123 exit ${D}{status}
a848cd7e
SC
49124 fi
49125 # move created file to the location we want it in:
473276a9
VS
49126 while test ${D}# -gt 0; do
49127 case "${D}1" in
a848cd7e
SC
49128 -o )
49129 shift
473276a9 49130 objfile=${D}1
a848cd7e
SC
49131 ;;
49132 -* )
49133 ;;
49134 * )
473276a9 49135 srcfile=${D}1
a848cd7e
SC
49136 ;;
49137 esac
49138 shift
49139 done
1e9e8aba
DE
49140 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
49141 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
49142 if test -f ${D}depfile ; then
49143 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
49144 rm -f ${D}depfile
a848cd7e 49145 else
a1aa0349 49146 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 49147 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
49148 if test ! -f ${D}depfile ; then
49149 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
49150 depfile="${D}objfile.d"
49151 fi
473276a9
VS
49152 if test -f ${D}depfile ; then
49153 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
49154 rm -f ${D}depfile
a848cd7e
SC
49155 fi
49156 fi
49157 exit 0
81f90336 49158elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 49159 ${D}* || exit ${D}?
81f90336
MW
49160 # Run mwcc again with -MM and redirect into the dep file we want
49161 # NOTE: We can't use shift here because we need ${D}* to be valid
49162 prevarg=
49163 for arg in ${D}* ; do
49164 if test "${D}prevarg" = "-o"; then
49165 objfile=${D}arg
49166 else
49167 case "${D}arg" in
49168 -* )
49169 ;;
49170 * )
49171 srcfile=${D}arg
49172 ;;
49173 esac
49174 fi
49175 prevarg="${D}arg"
49176 done
0ad5d837 49177 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 49178 exit 0
0ad5d837 49179elif test ${D}DEPSMODE = unixcc; then
f6b50c59 49180 ${D}* || exit ${D}?
a9e5b1f0
MW
49181 # Run compiler again with deps flag and redirect into the dep file.
49182 # It doesn't work if the '-o FILE' option is used, but without it the
49183 # dependency file will contain the wrong name for the object. So it is
49184 # removed from the command line, and the dep file is fixed with sed.
49185 cmd=""
49186 while test ${D}# -gt 0; do
49187 case "${D}1" in
49188 -o )
49189 shift
49190 objfile=${D}1
49191 ;;
49192 * )
49193 eval arg${D}#=\\${D}1
49194 cmd="${D}cmd \\${D}arg${D}#"
49195 ;;
49196 esac
49197 shift
49198 done
0ad5d837 49199 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 49200 exit 0
a848cd7e 49201else
473276a9
VS
49202 ${D}*
49203 exit ${D}?
a848cd7e
SC
49204fi
49205EOF
473276a9 49206
f10e38c4
VZ
49207 chmod +x bk-deps
49208 fi
a848cd7e
SC
49209 fi
49210
49211
49212
49213
a848cd7e
SC
49214 case ${BAKEFILE_HOST} in
49215 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
49216 if test -n "$ac_tool_prefix"; then
49217 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
49218set dummy ${ac_tool_prefix}windres; ac_word=$2
49219echo "$as_me:$LINENO: checking for $ac_word" >&5
49220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49221if test "${ac_cv_prog_WINDRES+set}" = set; then
49222 echo $ECHO_N "(cached) $ECHO_C" >&6
49223else
49224 if test -n "$WINDRES"; then
49225 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
49226else
49227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49228for as_dir in $PATH
49229do
49230 IFS=$as_save_IFS
49231 test -z "$as_dir" && as_dir=.
49232 for ac_exec_ext in '' $ac_executable_extensions; do
49233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49234 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
49235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49236 break 2
49237 fi
49238done
49239done
49240
49241fi
49242fi
49243WINDRES=$ac_cv_prog_WINDRES
49244if test -n "$WINDRES"; then
49245 echo "$as_me:$LINENO: result: $WINDRES" >&5
49246echo "${ECHO_T}$WINDRES" >&6
49247else
49248 echo "$as_me:$LINENO: result: no" >&5
49249echo "${ECHO_T}no" >&6
49250fi
49251
49252fi
49253if test -z "$ac_cv_prog_WINDRES"; then
49254 ac_ct_WINDRES=$WINDRES
49255 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
49256set dummy windres; ac_word=$2
49257echo "$as_me:$LINENO: checking for $ac_word" >&5
49258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 49259if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
49260 echo $ECHO_N "(cached) $ECHO_C" >&6
49261else
8ced02f6
DE
49262 if test -n "$ac_ct_WINDRES"; then
49263 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
49264else
49265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49266for as_dir in $PATH
49267do
49268 IFS=$as_save_IFS
49269 test -z "$as_dir" && as_dir=.
49270 for ac_exec_ext in '' $ac_executable_extensions; do
49271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 49272 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
49273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49274 break 2
49275 fi
49276done
49277done
49278
a848cd7e
SC
49279fi
49280fi
8ced02f6
DE
49281ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
49282if test -n "$ac_ct_WINDRES"; then
49283 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
49284echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
49285else
49286 echo "$as_me:$LINENO: result: no" >&5
49287echo "${ECHO_T}no" >&6
49288fi
49289
8ced02f6
DE
49290 WINDRES=$ac_ct_WINDRES
49291else
49292 WINDRES="$ac_cv_prog_WINDRES"
49293fi
49294
a848cd7e
SC
49295 ;;
49296
1e9e8aba 49297 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
49298 # Extract the first word of "Rez", so it can be a program name with args.
49299set dummy Rez; ac_word=$2
49300echo "$as_me:$LINENO: checking for $ac_word" >&5
49301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 49302if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
49303 echo $ECHO_N "(cached) $ECHO_C" >&6
49304else
8ced02f6
DE
49305 if test -n "$REZ"; then
49306 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
49307else
49308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49309for as_dir in $PATH
49310do
49311 IFS=$as_save_IFS
49312 test -z "$as_dir" && as_dir=.
49313 for ac_exec_ext in '' $ac_executable_extensions; do
49314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 49315 ac_cv_prog_REZ="Rez"
a848cd7e
SC
49316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49317 break 2
49318 fi
49319done
49320done
49321
8ced02f6 49322 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
49323fi
49324fi
8ced02f6
DE
49325REZ=$ac_cv_prog_REZ
49326if test -n "$REZ"; then
49327 echo "$as_me:$LINENO: result: $REZ" >&5
49328echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
49329else
49330 echo "$as_me:$LINENO: result: no" >&5
49331echo "${ECHO_T}no" >&6
49332fi
49333
49334 # Extract the first word of "SetFile", so it can be a program name with args.
49335set dummy SetFile; ac_word=$2
49336echo "$as_me:$LINENO: checking for $ac_word" >&5
49337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49338if test "${ac_cv_prog_SETFILE+set}" = set; then
49339 echo $ECHO_N "(cached) $ECHO_C" >&6
49340else
49341 if test -n "$SETFILE"; then
49342 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
49343else
49344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49345for as_dir in $PATH
49346do
49347 IFS=$as_save_IFS
49348 test -z "$as_dir" && as_dir=.
49349 for ac_exec_ext in '' $ac_executable_extensions; do
49350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49351 ac_cv_prog_SETFILE="SetFile"
49352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49353 break 2
49354 fi
49355done
49356done
49357
49358 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
49359fi
49360fi
49361SETFILE=$ac_cv_prog_SETFILE
49362if test -n "$SETFILE"; then
49363 echo "$as_me:$LINENO: result: $SETFILE" >&5
49364echo "${ECHO_T}$SETFILE" >&6
49365else
49366 echo "$as_me:$LINENO: result: no" >&5
49367echo "${ECHO_T}no" >&6
49368fi
49369
49370 ;;
49371 esac
49372
49373
49374
49375
49376
8ced02f6 49377
f10e38c4 49378 BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
a848cd7e 49379
dcc1b6ad 49380
f10e38c4 49381BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
a848cd7e 49382
646b6ec1 49383
74b84332 49384
a848cd7e
SC
49385 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
49386if test "${enable_precomp_headers+set}" = set; then
49387 enableval="$enable_precomp_headers"
49388 bk_use_pch="$enableval"
49389fi;
49390
49391 GCC_PCH=0
f10e38c4
VZ
49392 ICC_PCH=0
49393 USE_PCH=0
a848cd7e 49394
5c60e845
MW
49395 case ${BAKEFILE_HOST} in
49396 *-*-cygwin* )
49397 bk_use_pch="no"
49398 ;;
49399 esac
49400
a848cd7e
SC
49401 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
49402 if test "x$GCC" = "xyes"; then
49403 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
49404echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
49405 cat >conftest.$ac_ext <<_ACEOF
49406/* confdefs.h. */
49407_ACEOF
49408cat confdefs.h >>conftest.$ac_ext
49409cat >>conftest.$ac_ext <<_ACEOF
49410/* end confdefs.h. */
49411
49412int
49413main ()
49414{
49415
49416 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 49417 There is no PCH support
a848cd7e
SC
49418 #endif
49419 #if (__GNUC__ < 3)
e5efa97e 49420 There is no PCH support
a848cd7e
SC
49421 #endif
49422 #if (__GNUC__ == 3) && \
49423 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
49424 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
49425 ( defined(__INTEL_COMPILER) )
e5efa97e 49426 There is no PCH support
a848cd7e
SC
49427 #endif
49428
49429 ;
49430 return 0;
49431}
49432_ACEOF
49433rm -f conftest.$ac_objext
49434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 49435 (eval $ac_compile) 2>conftest.er1
a848cd7e 49436 ac_status=$?
ac1cb8d3
VS
49437 grep -v '^ *+' conftest.er1 >conftest.err
49438 rm -f conftest.er1
49439 cat conftest.err >&5
a848cd7e
SC
49440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49441 (exit $ac_status); } &&
479c790c 49442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
49443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49444 (eval $ac_try) 2>&5
49445 ac_status=$?
49446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49447 (exit $ac_status); }; } &&
49448 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
49449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49450 (eval $ac_try) 2>&5
49451 ac_status=$?
49452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49453 (exit $ac_status); }; }; then
49454
49455 echo "$as_me:$LINENO: result: yes" >&5
49456echo "${ECHO_T}yes" >&6
a848cd7e
SC
49457 GCC_PCH=1
49458
49459else
49460 echo "$as_me: failed program was:" >&5
49461sed 's/^/| /' conftest.$ac_ext >&5
49462
49463
f10e38c4
VZ
49464 cat >conftest.$ac_ext <<_ACEOF
49465/* confdefs.h. */
49466_ACEOF
49467cat confdefs.h >>conftest.$ac_ext
49468cat >>conftest.$ac_ext <<_ACEOF
49469/* end confdefs.h. */
49470
49471int
49472main ()
49473{
49474
49475 #if !defined(__INTEL_COMPILER) || \
49476 (__INTEL_COMPILER < 800)
e5efa97e 49477 There is no PCH support
f10e38c4
VZ
49478 #endif
49479
49480 ;
49481 return 0;
49482}
49483_ACEOF
49484rm -f conftest.$ac_objext
49485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49486 (eval $ac_compile) 2>conftest.er1
49487 ac_status=$?
49488 grep -v '^ *+' conftest.er1 >conftest.err
49489 rm -f conftest.er1
49490 cat conftest.err >&5
49491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49492 (exit $ac_status); } &&
479c790c 49493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f10e38c4
VZ
49494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49495 (eval $ac_try) 2>&5
49496 ac_status=$?
49497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49498 (exit $ac_status); }; } &&
49499 { ac_try='test -s conftest.$ac_objext'
49500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49501 (eval $ac_try) 2>&5
49502 ac_status=$?
49503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49504 (exit $ac_status); }; }; then
49505
49506 echo "$as_me:$LINENO: result: yes" >&5
49507echo "${ECHO_T}yes" >&6
49508 ICC_PCH=1
49509
49510else
49511 echo "$as_me: failed program was:" >&5
49512sed 's/^/| /' conftest.$ac_ext >&5
49513
49514
49515 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
49516echo "${ECHO_T}no" >&6
49517
49518fi
ac1cb8d3 49519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
49520
49521fi
49522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49523 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
49524 USE_PCH=1
1e9e8aba
DE
49525
49526D='$'
49527cat <<EOF >bk-make-pch
a848cd7e
SC
49528#!/bin/sh
49529
49530# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
49531# script. It is used to generated precompiled headers.
49532#
49533# Permission is given to use this file in any way.
49534
1e9e8aba
DE
49535outfile="${D}{1}"
49536header="${D}{2}"
a848cd7e
SC
49537shift
49538shift
49539
f10e38c4
VZ
49540compiler=""
49541headerfile=""
49542
1e9e8aba 49543while test ${D}{#} -gt 0; do
f10e38c4 49544 add_to_cmdline=1
1e9e8aba 49545 case "${D}{1}" in
a848cd7e 49546 -I* )
1e9e8aba
DE
49547 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
49548 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
49549 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
49550 fi
49551 ;;
f10e38c4
VZ
49552 -use-pch|-use_pch )
49553 shift
49554 add_to_cmdline=0
49555 ;;
a848cd7e 49556 esac
f10e38c4
VZ
49557 if test ${D}add_to_cmdline = 1 ; then
49558 compiler="${D}{compiler} ${D}{1}"
49559 fi
a848cd7e
SC
49560 shift
49561done
49562
1e9e8aba 49563if test "x${D}{headerfile}" = "x" ; then
f10e38c4 49564 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 49565else
1e9e8aba
DE
49566 if test -f ${D}{outfile} ; then
49567 rm -f ${D}{outfile}
a848cd7e 49568 else
1e9e8aba 49569 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 49570 fi
1e9e8aba 49571 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 49572 mkdir -p .deps
f10e38c4
VZ
49573 if test "x${GCC_PCH}" = "x1" ; then
49574 # can do this because gcc is >= 3.4:
49575 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
49576 elif test "x${ICC_PCH}" = "x1" ; then
49577 filename=pch_gen-${D}${D}
49578 file=${D}{filename}.c
49579 dfile=${D}{filename}.d
49580 cat > ${D}file <<EOT
49581#include "${D}header"
49582EOT
49583 # using -MF icc complains about differing command lines in creation/use
49584 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
49585 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
49586 rm -f ${D}file ${D}dfile ${D}{filename}.o
49587 fi
1e9e8aba 49588 exit ${D}{?}
a848cd7e
SC
49589fi
49590EOF
1e9e8aba 49591
a848cd7e
SC
49592 chmod +x bk-make-pch
49593 fi
49594 fi
49595 fi
49596
49597
49598
f10e38c4 49599
a848cd7e
SC
49600 COND_BUILD_DEBUG="#"
49601 if test "x$BUILD" = "xdebug" ; then
49602 COND_BUILD_DEBUG=""
49603 fi
49604
49605 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
49606 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49607 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
49608 fi
49609
49610 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
49611 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49612 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
49613 fi
49614
49615 COND_BUILD_DEBUG_UNICODE_0="#"
49616 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49617 COND_BUILD_DEBUG_UNICODE_0=""
49618 fi
49619
49620 COND_BUILD_DEBUG_UNICODE_1="#"
49621 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49622 COND_BUILD_DEBUG_UNICODE_1=""
49623 fi
49624
49625 COND_BUILD_RELEASE="#"
49626 if test "x$BUILD" = "xrelease" ; then
49627 COND_BUILD_RELEASE=""
49628 fi
49629
49630 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
49631 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49632 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
49633 fi
49634
49635 COND_BUILD_RELEASE_UNICODE_0="#"
49636 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49637 COND_BUILD_RELEASE_UNICODE_0=""
49638 fi
49639
49640 COND_BUILD_RELEASE_UNICODE_1="#"
49641 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49642 COND_BUILD_RELEASE_UNICODE_1=""
49643 fi
49644
49645 COND_DEBUG_FLAG_1="#"
49646 if test "x$DEBUG_FLAG" = "x1" ; then
49647 COND_DEBUG_FLAG_1=""
49648 fi
49649
49650 COND_DEBUG_INFO_0="#"
49651 if test "x$DEBUG_INFO" = "x0" ; then
49652 COND_DEBUG_INFO_0=""
49653 fi
49654
49655 COND_DEBUG_INFO_1="#"
49656 if test "x$DEBUG_INFO" = "x1" ; then
49657 COND_DEBUG_INFO_1=""
49658 fi
49659
49660 COND_DEPS_TRACKING_0="#"
49661 if test "x$DEPS_TRACKING" = "x0" ; then
49662 COND_DEPS_TRACKING_0=""
49663 fi
49664
49665 COND_DEPS_TRACKING_1="#"
49666 if test "x$DEPS_TRACKING" = "x1" ; then
49667 COND_DEPS_TRACKING_1=""
49668 fi
49669
49670 COND_GCC_PCH_1="#"
49671 if test "x$GCC_PCH" = "x1" ; then
49672 COND_GCC_PCH_1=""
49673 fi
49674
f10e38c4
VZ
49675 COND_ICC_PCH_1="#"
49676 if test "x$ICC_PCH" = "x1" ; then
49677 COND_ICC_PCH_1=""
49678 fi
49679
a848cd7e
SC
49680 COND_MONOLITHIC_0="#"
49681 if test "x$MONOLITHIC" = "x0" ; then
49682 COND_MONOLITHIC_0=""
49683 fi
49684
49685 COND_MONOLITHIC_0_SHARED_0="#"
49686 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
49687 COND_MONOLITHIC_0_SHARED_0=""
49688 fi
49689
3f60522a
JS
49690 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
49691 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
49692 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
49693 fi
49694
a848cd7e
SC
49695 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
49696 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
49697 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
49698 fi
49699
90970d69
DE
49700 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
49701 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49702 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
49703 fi
49704
f10e38c4
VZ
49705 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
49706 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49707 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
49708 fi
49709
a848cd7e
SC
49710 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
49711 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
49712 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
49713 fi
49714
6671c68b
VZ
49715 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
49716 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49717 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
49718 fi
49719
a848cd7e
SC
49720 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
49721 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
49722 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
49723 fi
49724
8b6682b9
JS
49725 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
49726 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49727 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
49728 fi
49729
ceec2216
RL
49730 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
49731 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49732 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
49733 fi
49734
a848cd7e
SC
49735 COND_MONOLITHIC_0_SHARED_1="#"
49736 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
49737 COND_MONOLITHIC_0_SHARED_1=""
49738 fi
49739
3f60522a
JS
49740 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
49741 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
49742 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
49743 fi
49744
a848cd7e
SC
49745 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
49746 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
49747 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
49748 fi
49749
90970d69
DE
49750 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
49751 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49752 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
49753 fi
49754
f10e38c4
VZ
49755 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
49756 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49757 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
49758 fi
49759
a848cd7e
SC
49760 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
49761 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
49762 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
49763 fi
49764
6671c68b
VZ
49765 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
49766 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49767 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
49768 fi
49769
a848cd7e
SC
49770 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
49771 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
49772 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
49773 fi
49774
8b6682b9
JS
49775 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
49776 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
49777 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
49778 fi
49779
ceec2216
RL
49780 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
49781 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49782 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
49783 fi
49784
e5efa97e
VZ
49785 COND_MONOLITHIC_0_USE_MEDIA_1="#"
49786 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
49787 COND_MONOLITHIC_0_USE_MEDIA_1=""
49788 fi
49789
a848cd7e
SC
49790 COND_MONOLITHIC_0_USE_ODBC_1="#"
49791 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
49792 COND_MONOLITHIC_0_USE_ODBC_1=""
49793 fi
49794
49795 COND_MONOLITHIC_1="#"
49796 if test "x$MONOLITHIC" = "x1" ; then
49797 COND_MONOLITHIC_1=""
49798 fi
49799
49800 COND_MONOLITHIC_1_SHARED_0="#"
49801 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
49802 COND_MONOLITHIC_1_SHARED_0=""
49803 fi
49804
49805 COND_MONOLITHIC_1_SHARED_1="#"
49806 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
49807 COND_MONOLITHIC_1_SHARED_1=""
49808 fi
49809
49810 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
49811 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
49812 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
49813 fi
49814
49815 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
49816 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
49817 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
49818 fi
49819
eb730a0c
JS
49820 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
49821 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49822 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
49823 fi
49824
a848cd7e
SC
49825 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
49826 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49827 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
49828 fi
49829
49830 COND_PLATFORM_MACOSX_1="#"
49831 if test "x$PLATFORM_MACOSX" = "x1" ; then
49832 COND_PLATFORM_MACOSX_1=""
49833 fi
49834
a30f955f
VS
49835 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
49836 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
49837 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
49838 fi
49839
a848cd7e
SC
49840 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
49841 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
49842 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
49843 fi
49844
49845 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
49846 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
49847 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
49848 fi
49849
49850 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
49851 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
49852 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
49853 fi
49854
fc480dc1
DE
49855 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
49856 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49857 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
49858 fi
49859
1e9e8aba
DE
49860 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
49861 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49862 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
49863 fi
49864
ebee3cd0
VS
49865 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
49866 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
49867 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
49868 fi
49869
49870 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
49871 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
49872 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
49873 fi
49874
a848cd7e
SC
49875 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
49876 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
49877 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
49878 fi
49879
49880 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
49881 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49882 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
49883 fi
49884
b48a2016
DE
49885 COND_PLATFORM_MACOS_1="#"
49886 if test "x$PLATFORM_MACOS" = "x1" ; then
49887 COND_PLATFORM_MACOS_1=""
49888 fi
49889
083508af
MW
49890 COND_PLATFORM_MAC_1="#"
49891 if test "x$PLATFORM_MAC" = "x1" ; then
49892 COND_PLATFORM_MAC_1=""
49893 fi
49894
e5efa97e
VZ
49895 COND_PLATFORM_MSDOS_0="#"
49896 if test "x$PLATFORM_MSDOS" = "x0" ; then
49897 COND_PLATFORM_MSDOS_0=""
49898 fi
49899
83d8eb47
MW
49900 COND_PLATFORM_MSDOS_1="#"
49901 if test "x$PLATFORM_MSDOS" = "x1" ; then
49902 COND_PLATFORM_MSDOS_1=""
49903 fi
49904
a848cd7e
SC
49905 COND_PLATFORM_OS2_1="#"
49906 if test "x$PLATFORM_OS2" = "x1" ; then
49907 COND_PLATFORM_OS2_1=""
49908 fi
49909
49910 COND_PLATFORM_UNIX_0="#"
49911 if test "x$PLATFORM_UNIX" = "x0" ; then
49912 COND_PLATFORM_UNIX_0=""
49913 fi
49914
49915 COND_PLATFORM_UNIX_1="#"
49916 if test "x$PLATFORM_UNIX" = "x1" ; then
49917 COND_PLATFORM_UNIX_1=""
49918 fi
49919
49920 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
49921 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
49922 COND_PLATFORM_UNIX_1_USE_GUI_1=""
49923 fi
49924
49925 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
49926 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
49927 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
49928 fi
49929
49930 COND_PLATFORM_WIN32_0="#"
49931 if test "x$PLATFORM_WIN32" = "x0" ; then
49932 COND_PLATFORM_WIN32_0=""
49933 fi
49934
49935 COND_PLATFORM_WIN32_1="#"
49936 if test "x$PLATFORM_WIN32" = "x1" ; then
49937 COND_PLATFORM_WIN32_1=""
49938 fi
49939
49940 COND_SHARED_0="#"
49941 if test "x$SHARED" = "x0" ; then
49942 COND_SHARED_0=""
49943 fi
49944
083508af
MW
49945 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
49946 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
49947 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
49948 fi
49949
49950 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
49951 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49952 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
49953 fi
49954
49955 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
49956 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
49957 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
49958 fi
49959
a848cd7e
SC
49960 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
49961 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49962 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
49963 fi
49964
49965 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49966 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49967 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49968 fi
49969
49970 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49971 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49972 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49973 fi
49974
49975 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49976 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49977 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49978 fi
49979
083508af
MW
49980 COND_SHARED_0_USE_XRC_1="#"
49981 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49982 COND_SHARED_0_USE_XRC_1=""
49983 fi
49984
a848cd7e
SC
49985 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
49986 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
49987 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
49988 fi
49989
49990 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
49991 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
49992 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
49993 fi
49994
49995 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
49996 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
49997 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
49998 fi
49999
50000 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
50001 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
50002 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
50003 fi
50004
50005 COND_SHARED_1="#"
50006 if test "x$SHARED" = "x1" ; then
50007 COND_SHARED_1=""
50008 fi
50009
50010 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
50011 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50012 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
50013 fi
50014
083508af
MW
50015 COND_SHARED_1_USE_XRC_1="#"
50016 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
50017 COND_SHARED_1_USE_XRC_1=""
50018 fi
50019
a30f955f
VS
50020 COND_TOOLKIT_="#"
50021 if test "x$TOOLKIT" = "x" ; then
50022 COND_TOOLKIT_=""
50023 fi
50024
a848cd7e
SC
50025 COND_TOOLKIT_COCOA="#"
50026 if test "x$TOOLKIT" = "xCOCOA" ; then
50027 COND_TOOLKIT_COCOA=""
50028 fi
50029
a49baeab
DE
50030 COND_TOOLKIT_COCOA_USE_GUI_1="#"
50031 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
50032 COND_TOOLKIT_COCOA_USE_GUI_1=""
50033 fi
50034
a848cd7e
SC
50035 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
50036 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50037 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
50038 fi
50039
b3c86150
VS
50040 COND_TOOLKIT_DFB="#"
50041 if test "x$TOOLKIT" = "xDFB" ; then
50042 COND_TOOLKIT_DFB=""
50043 fi
50044
50045 COND_TOOLKIT_DFB_USE_GUI_1="#"
50046 if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
50047 COND_TOOLKIT_DFB_USE_GUI_1=""
50048 fi
50049
a848cd7e
SC
50050 COND_TOOLKIT_GTK="#"
50051 if test "x$TOOLKIT" = "xGTK" ; then
50052 COND_TOOLKIT_GTK=""
50053 fi
50054
d044deea
MW
50055 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
50056 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
50057 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
50058 fi
50059
50060 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
50061 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
50062 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
50063 fi
50064
50065 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
50066 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
50067 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
50068 fi
50069
50070 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
50071 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50072 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
50073 fi
50074
50075 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
50076 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
50077 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
50078 fi
50079
50080 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
50081 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50082 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
50083 fi
50084
a848cd7e
SC
50085 COND_TOOLKIT_GTK_USE_GUI_1="#"
50086 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
50087 COND_TOOLKIT_GTK_USE_GUI_1=""
50088 fi
50089
a848cd7e
SC
50090 COND_TOOLKIT_MAC="#"
50091 if test "x$TOOLKIT" = "xMAC" ; then
50092 COND_TOOLKIT_MAC=""
50093 fi
50094
50095 COND_TOOLKIT_MAC_USE_GUI_1="#"
50096 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
50097 COND_TOOLKIT_MAC_USE_GUI_1=""
50098 fi
50099
50100 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
50101 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50102 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
50103 fi
50104
50105 COND_TOOLKIT_MGL="#"
50106 if test "x$TOOLKIT" = "xMGL" ; then
50107 COND_TOOLKIT_MGL=""
50108 fi
50109
50110 COND_TOOLKIT_MGL_USE_GUI_1="#"
50111 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
50112 COND_TOOLKIT_MGL_USE_GUI_1=""
50113 fi
50114
50115 COND_TOOLKIT_MOTIF="#"
50116 if test "x$TOOLKIT" = "xMOTIF" ; then
50117 COND_TOOLKIT_MOTIF=""
50118 fi
50119
50120 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
50121 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
50122 COND_TOOLKIT_MOTIF_USE_GUI_1=""
50123 fi
50124
50125 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
50126 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50127 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
50128 fi
50129
50130 COND_TOOLKIT_MSW="#"
50131 if test "x$TOOLKIT" = "xMSW" ; then
50132 COND_TOOLKIT_MSW=""
50133 fi
50134
50135 COND_TOOLKIT_MSW_USE_GUI_1="#"
50136 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
50137 COND_TOOLKIT_MSW_USE_GUI_1=""
50138 fi
50139
50140 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
50141 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50142 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
50143 fi
50144
0ee4059d
DE
50145 COND_TOOLKIT_MSW_WXUNIV_0="#"
50146 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
50147 COND_TOOLKIT_MSW_WXUNIV_0=""
50148 fi
50149
a848cd7e
SC
50150 COND_TOOLKIT_PM="#"
50151 if test "x$TOOLKIT" = "xPM" ; then
50152 COND_TOOLKIT_PM=""
50153 fi
50154
50155 COND_TOOLKIT_PM_USE_GUI_1="#"
50156 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
50157 COND_TOOLKIT_PM_USE_GUI_1=""
50158 fi
50159
50160 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
50161 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50162 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
50163 fi
50164
3fd9c298
DE
50165 COND_TOOLKIT_WINCE="#"
50166 if test "x$TOOLKIT" = "xWINCE" ; then
50167 COND_TOOLKIT_WINCE=""
50168 fi
50169
50170 COND_TOOLKIT_WINCE_USE_GUI_1="#"
50171 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
50172 COND_TOOLKIT_WINCE_USE_GUI_1=""
50173 fi
50174
50175 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
50176 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50177 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
50178 fi
50179
0ee4059d
DE
50180 COND_TOOLKIT_WINCE_WXUNIV_0="#"
50181 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
50182 COND_TOOLKIT_WINCE_WXUNIV_0=""
50183 fi
50184
a848cd7e
SC
50185 COND_TOOLKIT_X11="#"
50186 if test "x$TOOLKIT" = "xX11" ; then
50187 COND_TOOLKIT_X11=""
50188 fi
50189
50190 COND_TOOLKIT_X11_USE_GUI_1="#"
50191 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
50192 COND_TOOLKIT_X11_USE_GUI_1=""
50193 fi
50194
50195 COND_UNICODE_1="#"
50196 if test "x$UNICODE" = "x1" ; then
50197 COND_UNICODE_1=""
50198 fi
50199
50200 COND_USE_EXCEPTIONS_0="#"
50201 if test "x$USE_EXCEPTIONS" = "x0" ; then
50202 COND_USE_EXCEPTIONS_0=""
50203 fi
50204
50205 COND_USE_EXCEPTIONS_1="#"
50206 if test "x$USE_EXCEPTIONS" = "x1" ; then
50207 COND_USE_EXCEPTIONS_1=""
50208 fi
50209
50210 COND_USE_GUI_0="#"
50211 if test "x$USE_GUI" = "x0" ; then
50212 COND_USE_GUI_0=""
50213 fi
50214
50215 COND_USE_GUI_1="#"
50216 if test "x$USE_GUI" = "x1" ; then
50217 COND_USE_GUI_1=""
50218 fi
50219
50220 COND_USE_GUI_1_WXUNIV_0="#"
50221 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50222 COND_USE_GUI_1_WXUNIV_0=""
50223 fi
50224
50225 COND_USE_GUI_1_WXUNIV_1="#"
50226 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
50227 COND_USE_GUI_1_WXUNIV_1=""
50228 fi
50229
50230 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
50231 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50232 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
50233 fi
50234
50235 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
50236 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50237 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
50238 fi
50239
50240 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
50241 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50242 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
50243 fi
50244
083508af
MW
50245 COND_USE_ODBC_1="#"
50246 if test "x$USE_ODBC" = "x1" ; then
50247 COND_USE_ODBC_1=""
50248 fi
50249
50250 COND_USE_OPENGL_1="#"
50251 if test "x$USE_OPENGL" = "x1" ; then
50252 COND_USE_OPENGL_1=""
50253 fi
50254
f10e38c4
VZ
50255 COND_USE_PCH_1="#"
50256 if test "x$USE_PCH" = "x1" ; then
50257 COND_USE_PCH_1=""
50258 fi
50259
a848cd7e
SC
50260 COND_USE_PLUGINS_0="#"
50261 if test "x$USE_PLUGINS" = "x0" ; then
50262 COND_USE_PLUGINS_0=""
50263 fi
50264
0b78747f
MW
50265 COND_USE_RTTI_0="#"
50266 if test "x$USE_RTTI" = "x0" ; then
50267 COND_USE_RTTI_0=""
50268 fi
50269
50270 COND_USE_RTTI_1="#"
50271 if test "x$USE_RTTI" = "x1" ; then
50272 COND_USE_RTTI_1=""
50273 fi
50274
a848cd7e
SC
50275 COND_USE_SOSYMLINKS_1="#"
50276 if test "x$USE_SOSYMLINKS" = "x1" ; then
50277 COND_USE_SOSYMLINKS_1=""
50278 fi
50279
eb730a0c
JS
50280 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
50281 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50282 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
50283 fi
50284
a848cd7e
SC
50285 COND_USE_SOVERLINUX_1="#"
50286 if test "x$USE_SOVERLINUX" = "x1" ; then
50287 COND_USE_SOVERLINUX_1=""
50288 fi
50289
50290 COND_USE_SOVERSION_0="#"
50291 if test "x$USE_SOVERSION" = "x0" ; then
50292 COND_USE_SOVERSION_0=""
50293 fi
50294
50295 COND_USE_SOVERSOLARIS_1="#"
50296 if test "x$USE_SOVERSOLARIS" = "x1" ; then
50297 COND_USE_SOVERSOLARIS_1=""
50298 fi
50299
0b78747f
MW
50300 COND_USE_THREADS_0="#"
50301 if test "x$USE_THREADS" = "x0" ; then
50302 COND_USE_THREADS_0=""
50303 fi
50304
50305 COND_USE_THREADS_1="#"
50306 if test "x$USE_THREADS" = "x1" ; then
50307 COND_USE_THREADS_1=""
50308 fi
50309
a13a7f89
RL
50310 COND_USE_XRC_1="#"
50311 if test "x$USE_XRC" = "x1" ; then
50312 COND_USE_XRC_1=""
50313 fi
50314
eb730a0c
JS
50315 COND_WINDOWS_IMPLIB_1="#"
50316 if test "x$WINDOWS_IMPLIB" = "x1" ; then
50317 COND_WINDOWS_IMPLIB_1=""
50318 fi
50319
a848cd7e
SC
50320 COND_WITH_PLUGIN_SDL_1="#"
50321 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
50322 COND_WITH_PLUGIN_SDL_1=""
50323 fi
50324
1e6eb025
VZ
50325 COND_WXUNIV_0="#"
50326 if test "x$WXUNIV" = "x0" ; then
50327 COND_WXUNIV_0=""
50328 fi
50329
a848cd7e
SC
50330 COND_WXUNIV_1="#"
50331 if test "x$WXUNIV" = "x1" ; then
50332 COND_WXUNIV_1=""
50333 fi
50334
50335 COND_WXUSE_EXPAT_BUILTIN="#"
50336 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50337 COND_WXUSE_EXPAT_BUILTIN=""
50338 fi
50339
50340 COND_WXUSE_LIBJPEG_BUILTIN="#"
50341 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50342 COND_WXUSE_LIBJPEG_BUILTIN=""
50343 fi
50344
50345 COND_WXUSE_LIBPNG_BUILTIN="#"
50346 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50347 COND_WXUSE_LIBPNG_BUILTIN=""
50348 fi
50349
50350 COND_WXUSE_LIBTIFF_BUILTIN="#"
50351 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50352 COND_WXUSE_LIBTIFF_BUILTIN=""
50353 fi
50354
50355 COND_WXUSE_ODBC_BUILTIN="#"
50356 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
50357 COND_WXUSE_ODBC_BUILTIN=""
50358 fi
50359
50360 COND_WXUSE_REGEX_BUILTIN="#"
50361 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50362 COND_WXUSE_REGEX_BUILTIN=""
50363 fi
50364
50365 COND_WXUSE_ZLIB_BUILTIN="#"
50366 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50367 COND_WXUSE_ZLIB_BUILTIN=""
50368 fi
50369
50370
50371
810b94f0
MW
50372 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
50373 { { 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
50374echo "$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;}
50375 { (exit 1); exit 1; }; }
50376 fi
50377
2057db16
VS
50378 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
50379 { { 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
50380echo "$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;}
50381 { (exit 1); exit 1; }; }
50382 fi
50383
a848cd7e 50384
a81d5bb6
MW
50385if test $GCC_PCH = 1
50386then
50387 if test "$wx_cv_gcc_pch_bug" = yes; then
50388 { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
50389echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
50390 { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
50391echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
50392 { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
50393echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
50394 fi
50395
50396 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
50397fi
50398
7afc46ab
KO
50399
50400if test "$wxUSE_MAC" = 1 ; then
95768535 50401 if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
7afc46ab
KO
50402 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
50403 mv temp bk-deps
50404 chmod +x bk-deps
50405 fi
50406fi
50407
ceec2216
RL
50408if test "$wxUSE_SHARED" = "yes"; then
50409
50410 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
50411 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
50412
5b674b9d
DE
50413 case "${host}" in
50414 *-pc-os2_emx | *-pc-os2-emx )
50415 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50416 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
ec3edcc9
VZ
50417 cp -p ${srcdir}/src/os2/dllnames.sh .
50418 cp -p ${srcdir}/src/os2/dllar.sh .
5b674b9d
DE
50419 ;;
50420 esac
ceec2216
RL
50421else
50422
50423 EXE_LINKER="$CXX -o"
50424
50425fi
69120ee4
VZ
50426if test "$wxUSE_OMF" = "yes"; then
50427 case "${host}" in
50428 *-pc-os2_emx | *-pc-os2-emx )
50429 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
50430 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50431 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50432 ;;
50433 esac
50434fi
a848cd7e 50435
5ff751d6 50436WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
50437
50438SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
50439
50440
50441
50442
50443
50444
50445
50446
50447
50448
50449
50450
50451
50452
50453
50454
50455
50456
50457
50458
50459
50460
50461
50462
50463
50464
50465
50466
50467
50468
50469
50470
50471
50472
50473
50474
50475
50476
50477
50478
50479
50480
a848cd7e
SC
50481
50482
50483
50484
50485
50486
50487
50488
50489
50490
50491
50492
a848cd7e
SC
50493
50494
ddd14b14 50495
370d2fd7 50496
8ced02f6 50497
a848cd7e
SC
50498
50499
50500echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50501echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 50502set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
50503if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
50504 echo $ECHO_N "(cached) $ECHO_C" >&6
50505else
50506 cat >conftest.make <<\_ACEOF
50507all:
50508 @echo 'ac_maketemp="$(MAKE)"'
50509_ACEOF
50510# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
50511eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
50512if test -n "$ac_maketemp"; then
50513 eval ac_cv_prog_make_${ac_make}_set=yes
50514else
50515 eval ac_cv_prog_make_${ac_make}_set=no
50516fi
50517rm -f conftest.make
50518fi
50519if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
50520 echo "$as_me:$LINENO: result: yes" >&5
50521echo "${ECHO_T}yes" >&6
50522 SET_MAKE=
50523else
50524 echo "$as_me:$LINENO: result: no" >&5
50525echo "${ECHO_T}no" >&6
50526 SET_MAKE="MAKE=${MAKE-make}"
50527fi
50528
50529
a848cd7e 50530
ceec2216
RL
50531 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
50532
a848cd7e 50533
5c60e845
MW
50534if test "$USE_WIN32" = 1; then
50535 ac_config_commands="$ac_config_commands
50536 rcdefs.h
50537 "
50538
50539fi
50540
ceec2216 50541 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 50542
a848cd7e 50543
ceec2216 50544 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 50545
ceec2216
RL
50546
50547 ac_config_files="$ac_config_files version-script Makefile"
50548
50549
5c60e845 50550 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
50551
50552
9103d280 50553
1c14217d 50554if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
50555if test "$wxUSE_GUI" = "yes"; then
50556 SUBDIRS="samples demos utils contrib"
50557else SUBDIRS="samples utils"
50558fi
50559
50560
50561
50562# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
50563if test "${with_cppunit_prefix+set}" = set; then
50564 withval="$with_cppunit_prefix"
50565 cppunit_config_prefix="$withval"
50566else
50567 cppunit_config_prefix=""
50568fi;
50569
50570# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
50571if test "${with_cppunit_exec_prefix+set}" = set; then
50572 withval="$with_cppunit_exec_prefix"
50573 cppunit_config_exec_prefix="$withval"
50574else
50575 cppunit_config_exec_prefix=""
50576fi;
50577
50578 if test x$cppunit_config_exec_prefix != x ; then
50579 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
50580 if test x${CPPUNIT_CONFIG+set} != xset ; then
50581 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
50582 fi
50583 fi
50584 if test x$cppunit_config_prefix != x ; then
50585 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
50586 if test x${CPPUNIT_CONFIG+set} != xset ; then
50587 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
50588 fi
50589 fi
50590
50591 # Extract the first word of "cppunit-config", so it can be a program name with args.
50592set dummy cppunit-config; ac_word=$2
50593echo "$as_me:$LINENO: checking for $ac_word" >&5
50594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
50595if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
50596 echo $ECHO_N "(cached) $ECHO_C" >&6
50597else
50598 case $CPPUNIT_CONFIG in
50599 [\\/]* | ?:[\\/]*)
50600 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
50601 ;;
50602 *)
50603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50604for as_dir in $PATH
50605do
50606 IFS=$as_save_IFS
50607 test -z "$as_dir" && as_dir=.
50608 for ac_exec_ext in '' $ac_executable_extensions; do
50609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
50610 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
50611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50612 break 2
50613 fi
50614done
50615done
50616
50617 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
50618 ;;
50619esac
50620fi
50621CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
50622
50623if test -n "$CPPUNIT_CONFIG"; then
50624 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
50625echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
50626else
50627 echo "$as_me:$LINENO: result: no" >&5
50628echo "${ECHO_T}no" >&6
50629fi
50630
50631 cppunit_version_min=1.8.0
50632
50633 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
50634echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
50635 no_cppunit=""
50636 if test "$CPPUNIT_CONFIG" = "no" ; then
3ecd9f92
MW
50637 echo "$as_me:$LINENO: result: no" >&5
50638echo "${ECHO_T}no" >&6
a848cd7e
SC
50639 no_cppunit=yes
50640 else
50641 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
50642 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
50643 cppunit_version=`$CPPUNIT_CONFIG --version`
50644
50645 cppunit_major_version=`echo $cppunit_version | \
50646 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50647 cppunit_minor_version=`echo $cppunit_version | \
50648 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50649 cppunit_micro_version=`echo $cppunit_version | \
50650 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50651
50652 cppunit_major_min=`echo $cppunit_version_min | \
50653 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50654 cppunit_minor_min=`echo $cppunit_version_min | \
50655 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50656 cppunit_micro_min=`echo $cppunit_version_min | \
50657 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50658
50659 cppunit_version_proper=`expr \
50660 $cppunit_major_version \> $cppunit_major_min \| \
50661 $cppunit_major_version \= $cppunit_major_min \& \
50662 $cppunit_minor_version \> $cppunit_minor_min \| \
50663 $cppunit_major_version \= $cppunit_major_min \& \
50664 $cppunit_minor_version \= $cppunit_minor_min \& \
50665 $cppunit_micro_version \>= $cppunit_micro_min `
50666
50667 if test "$cppunit_version_proper" = "1" ; then
50668 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
50669echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
50670 else
50671 echo "$as_me:$LINENO: result: no" >&5
50672echo "${ECHO_T}no" >&6
50673 no_cppunit=yes
50674 fi
50675 fi
50676
50677 if test "x$no_cppunit" = x ; then
c2218763 50678 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
50679 else
50680 CPPUNIT_CFLAGS=""
50681 CPPUNIT_LIBS=""
c2218763 50682 :
a848cd7e
SC
50683 fi
50684
50685
50686
50687
50688
50689for subdir in `echo $SUBDIRS`; do
50690 if test -d ${srcdir}/${subdir} ; then
50691 if test "$wxUSE_GUI" = "yes"; then
50692 if test ${subdir} = "samples"; then
50693 makefiles="samples/Makefile.in $makefiles"
50694 for sample in `echo $SAMPLES_SUBDIRS`; do
50695 if test -d $srcdir/samples/$sample; then
50696 makefiles="samples/$sample/Makefile.in $makefiles"
50697 fi
50698 done
9c112555
MW
50699 else
50700 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
50701 eval "disabled=\$$disabled_var"
50702 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
50703 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
50704 fi
50705 else if test ${subdir} = "samples"; then
50706 makefiles="samples/Makefile.in samples/console/Makefile.in"
50707 elif test ${subdir} = "utils"; then
6537ccf8
VS
50708 makefiles=""
50709 for util in HelpGen tex2rtf ; do
50710 if test -d $srcdir/utils/$util ; then
50711 makefiles="utils/$util/Makefile.in \
50712 utils/$util/src/Makefile.in \
50713 $makefiles"
50714 fi
50715 done
a848cd7e
SC
50716 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
50717 fi
50718 fi
50719
50720 for mkin in $makefiles ; do
50721 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
50722 ac_config_files="$ac_config_files $mk"
50723
50724 done
50725 fi
50726done
1c14217d 50727fi
a848cd7e
SC
50728cat >confcache <<\_ACEOF
50729# This file is a shell script that caches the results of configure
50730# tests run on this system so they can be shared between configure
50731# scripts and configure runs, see configure's option --config-cache.
50732# It is not useful on other systems. If it contains results you don't
50733# want to keep, you may remove or edit it.
50734#
50735# config.status only pays attention to the cache file if you give it
50736# the --recheck option to rerun configure.
50737#
50738# `ac_cv_env_foo' variables (set or unset) will be overridden when
50739# loading this file, other *unset* `ac_cv_foo' will be assigned the
50740# following values.
50741
50742_ACEOF
50743
50744# The following way of writing the cache mishandles newlines in values,
50745# but we know of no workaround that is simple, portable, and efficient.
50746# So, don't put newlines in cache variables' values.
50747# Ultrix sh set writes to stderr and can't be redirected directly,
50748# and sets the high bit in the cache file unless we assign to the vars.
50749{
50750 (set) 2>&1 |
50751 case `(ac_space=' '; set | grep ac_space) 2>&1` in
50752 *ac_space=\ *)
50753 # `set' does not quote correctly, so add quotes (double-quote
50754 # substitution turns \\\\ into \\, and sed turns \\ into \).
50755 sed -n \
ac1cb8d3
VS
50756 "s/'/'\\\\''/g;
50757 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
50758 ;;
50759 *)
50760 # `set' quotes correctly as required by POSIX, so do not add quotes.
50761 sed -n \
ac1cb8d3 50762 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
50763 ;;
50764 esac;
50765} |
50766 sed '
50767 t clear
50768 : clear
50769 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
50770 t end
50771 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
50772 : end' >>confcache
50773if diff $cache_file confcache >/dev/null 2>&1; then :; else
50774 if test -w $cache_file; then
50775 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
50776 cat confcache >$cache_file
50777 else
50778 echo "not updating unwritable cache $cache_file"
50779 fi
50780fi
50781rm -f confcache
50782
50783test "x$prefix" = xNONE && prefix=$ac_default_prefix
50784# Let make expand exec_prefix.
50785test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
50786
50787# VPATH may cause trouble with some makes, so we remove $(srcdir),
50788# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
50789# trailing colons and then remove the whole line if VPATH becomes empty
50790# (actually we leave an empty line to preserve line numbers).
50791if test "x$srcdir" = x.; then
ac1cb8d3 50792 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
50793s/:*\$(srcdir):*/:/;
50794s/:*\${srcdir}:*/:/;
50795s/:*@srcdir@:*/:/;
ac1cb8d3 50796s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 50797s/:*$//;
ac1cb8d3 50798s/^[^=]*=[ ]*$//;
a848cd7e
SC
50799}'
50800fi
50801
50802DEFS=-DHAVE_CONFIG_H
50803
50804ac_libobjs=
50805ac_ltlibobjs=
50806for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
50807 # 1. Remove the extension, and $U if already installed.
50808 ac_i=`echo "$ac_i" |
ac1cb8d3 50809 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
50810 # 2. Add them.
50811 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
50812 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
50813done
50814LIBOBJS=$ac_libobjs
50815
50816LTLIBOBJS=$ac_ltlibobjs
50817
50818
50819
50820: ${CONFIG_STATUS=./config.status}
50821ac_clean_files_save=$ac_clean_files
50822ac_clean_files="$ac_clean_files $CONFIG_STATUS"
50823{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
50824echo "$as_me: creating $CONFIG_STATUS" >&6;}
50825cat >$CONFIG_STATUS <<_ACEOF
50826#! $SHELL
50827# Generated by $as_me.
50828# Run this file to recreate the current configuration.
50829# Compiler output produced by configure, useful for debugging
50830# configure, is in config.log if it exists.
50831
50832debug=false
50833ac_cs_recheck=false
50834ac_cs_silent=false
50835SHELL=\${CONFIG_SHELL-$SHELL}
50836_ACEOF
50837
50838cat >>$CONFIG_STATUS <<\_ACEOF
50839## --------------------- ##
50840## M4sh Initialization. ##
50841## --------------------- ##
50842
50843# Be Bourne compatible
50844if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
50845 emulate sh
50846 NULLCMD=:
50847 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
50848 # is contrary to our usage. Disable this feature.
50849 alias -g '${1+"$@"}'='"$@"'
50850elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
50851 set -o posix
50852fi
ac1cb8d3 50853DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
50854
50855# Support unset when possible.
ac1cb8d3 50856if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
50857 as_unset=unset
50858else
50859 as_unset=false
50860fi
50861
50862
50863# Work around bugs in pre-3.0 UWIN ksh.
50864$as_unset ENV MAIL MAILPATH
50865PS1='$ '
50866PS2='> '
50867PS4='+ '
50868
50869# NLS nuisances.
50870for as_var in \
50871 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50872 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50873 LC_TELEPHONE LC_TIME
50874do
ac1cb8d3 50875 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
50876 eval $as_var=C; export $as_var
50877 else
50878 $as_unset $as_var
50879 fi
50880done
50881
50882# Required to use basename.
50883if expr a : '\(a\)' >/dev/null 2>&1; then
50884 as_expr=expr
50885else
50886 as_expr=false
50887fi
50888
50889if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
50890 as_basename=basename
50891else
50892 as_basename=false
50893fi
50894
50895
50896# Name of the executable.
50897as_me=`$as_basename "$0" ||
50898$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
50899 X"$0" : 'X\(//\)$' \| \
50900 X"$0" : 'X\(/\)$' \| \
50901 . : '\(.\)' 2>/dev/null ||
50902echo X/"$0" |
50903 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
50904 /^X\/\(\/\/\)$/{ s//\1/; q; }
50905 /^X\/\(\/\).*/{ s//\1/; q; }
50906 s/.*/./; q'`
50907
50908
50909# PATH needs CR, and LINENO needs CR and PATH.
50910# Avoid depending upon Character Ranges.
50911as_cr_letters='abcdefghijklmnopqrstuvwxyz'
50912as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
50913as_cr_Letters=$as_cr_letters$as_cr_LETTERS
50914as_cr_digits='0123456789'
50915as_cr_alnum=$as_cr_Letters$as_cr_digits
50916
50917# The user is always right.
50918if test "${PATH_SEPARATOR+set}" != set; then
50919 echo "#! /bin/sh" >conf$$.sh
50920 echo "exit 0" >>conf$$.sh
50921 chmod +x conf$$.sh
50922 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50923 PATH_SEPARATOR=';'
50924 else
50925 PATH_SEPARATOR=:
50926 fi
50927 rm -f conf$$.sh
50928fi
50929
50930
50931 as_lineno_1=$LINENO
50932 as_lineno_2=$LINENO
50933 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50934 test "x$as_lineno_1" != "x$as_lineno_2" &&
50935 test "x$as_lineno_3" = "x$as_lineno_2" || {
50936 # Find who we are. Look in the path if we contain no path at all
50937 # relative or not.
50938 case $0 in
50939 *[\\/]* ) as_myself=$0 ;;
50940 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50941for as_dir in $PATH
50942do
50943 IFS=$as_save_IFS
50944 test -z "$as_dir" && as_dir=.
50945 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
50946done
50947
50948 ;;
50949 esac
50950 # We did not find ourselves, most probably we were run as `sh COMMAND'
50951 # in which case we are not to be found in the path.
50952 if test "x$as_myself" = x; then
50953 as_myself=$0
50954 fi
50955 if test ! -f "$as_myself"; then
50956 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
50957echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
50958 { (exit 1); exit 1; }; }
50959 fi
50960 case $CONFIG_SHELL in
50961 '')
50962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50963for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
50964do
50965 IFS=$as_save_IFS
50966 test -z "$as_dir" && as_dir=.
50967 for as_base in sh bash ksh sh5; do
50968 case $as_dir in
50969 /*)
50970 if ("$as_dir/$as_base" -c '
50971 as_lineno_1=$LINENO
50972 as_lineno_2=$LINENO
50973 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50974 test "x$as_lineno_1" != "x$as_lineno_2" &&
50975 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
50976 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
50977 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
50978 CONFIG_SHELL=$as_dir/$as_base
50979 export CONFIG_SHELL
50980 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
50981 fi;;
50982 esac
50983 done
50984done
50985;;
50986 esac
50987
50988 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
50989 # uniformly replaced by the line number. The first 'sed' inserts a
50990 # line-number line before each line; the second 'sed' does the real
50991 # work. The second script uses 'N' to pair each line-number line
50992 # with the numbered line, and appends trailing '-' during
50993 # substitution so that $LINENO is not a special case at line end.
50994 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
50995 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
50996 sed '=' <$as_myself |
50997 sed '
50998 N
50999 s,$,-,
51000 : loop
51001 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
51002 t loop
51003 s,-$,,
51004 s,^['$as_cr_digits']*\n,,
51005 ' >$as_me.lineno &&
51006 chmod +x $as_me.lineno ||
51007 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
51008echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
51009 { (exit 1); exit 1; }; }
51010
51011 # Don't try to exec as it changes $[0], causing all sort of problems
51012 # (the dirname of $[0] is not the place where we might find the
51013 # original and so on. Autoconf is especially sensible to this).
51014 . ./$as_me.lineno
51015 # Exit status is that of the last command.
51016 exit
51017}
51018
51019
51020case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
51021 *c*,-n*) ECHO_N= ECHO_C='
51022' ECHO_T=' ' ;;
51023 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
51024 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
51025esac
51026
51027if expr a : '\(a\)' >/dev/null 2>&1; then
51028 as_expr=expr
51029else
51030 as_expr=false
51031fi
51032
51033rm -f conf$$ conf$$.exe conf$$.file
51034echo >conf$$.file
51035if ln -s conf$$.file conf$$ 2>/dev/null; then
51036 # We could just check for DJGPP; but this test a) works b) is more generic
51037 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
51038 if test -f conf$$.exe; then
51039 # Don't use ln at all; we don't have any links
51040 as_ln_s='cp -p'
51041 else
51042 as_ln_s='ln -s'
51043 fi
51044elif ln conf$$.file conf$$ 2>/dev/null; then
51045 as_ln_s=ln
51046else
51047 as_ln_s='cp -p'
51048fi
51049rm -f conf$$ conf$$.exe conf$$.file
51050
51051if mkdir -p . 2>/dev/null; then
51052 as_mkdir_p=:
51053else
ac1cb8d3 51054 test -d ./-p && rmdir ./-p
a848cd7e
SC
51055 as_mkdir_p=false
51056fi
51057
51058as_executable_p="test -f"
51059
51060# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 51061as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
51062
51063# Sed expression to map a string onto a valid variable name.
ac1cb8d3 51064as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
51065
51066
51067# IFS
51068# We need space, tab and new line, in precisely that order.
51069as_nl='
51070'
51071IFS=" $as_nl"
51072
51073# CDPATH.
51074$as_unset CDPATH
51075
51076exec 6>&1
51077
51078# Open the log real soon, to keep \$[0] and so on meaningful, and to
51079# report actual input values of CONFIG_FILES etc. instead of their
51080# values after options handling. Logging --version etc. is OK.
51081exec 5>>config.log
51082{
51083 echo
51084 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51085## Running $as_me. ##
51086_ASBOX
51087} >&5
51088cat >&5 <<_CSEOF
51089
f1e3914f 51090This file was extended by wxWidgets $as_me 2.7.1, which was
ac1cb8d3 51091generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
51092
51093 CONFIG_FILES = $CONFIG_FILES
51094 CONFIG_HEADERS = $CONFIG_HEADERS
51095 CONFIG_LINKS = $CONFIG_LINKS
51096 CONFIG_COMMANDS = $CONFIG_COMMANDS
51097 $ $0 $@
51098
51099_CSEOF
51100echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
51101echo >&5
51102_ACEOF
51103
51104# Files that config.status was made for.
51105if test -n "$ac_config_files"; then
51106 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
51107fi
51108
51109if test -n "$ac_config_headers"; then
51110 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
51111fi
51112
51113if test -n "$ac_config_links"; then
51114 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
51115fi
51116
51117if test -n "$ac_config_commands"; then
51118 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
51119fi
51120
51121cat >>$CONFIG_STATUS <<\_ACEOF
51122
51123ac_cs_usage="\
51124\`$as_me' instantiates files from templates according to the
51125current configuration.
51126
51127Usage: $0 [OPTIONS] [FILE]...
51128
51129 -h, --help print this help, then exit
51130 -V, --version print version number, then exit
51131 -q, --quiet do not print progress messages
51132 -d, --debug don't remove temporary files
51133 --recheck update $as_me by reconfiguring in the same conditions
51134 --file=FILE[:TEMPLATE]
ac1cb8d3 51135 instantiate the configuration file FILE
a848cd7e 51136 --header=FILE[:TEMPLATE]
ac1cb8d3 51137 instantiate the configuration header FILE
a848cd7e
SC
51138
51139Configuration files:
51140$config_files
51141
51142Configuration headers:
51143$config_headers
51144
51145Configuration commands:
51146$config_commands
51147
51148Report bugs to <bug-autoconf@gnu.org>."
51149_ACEOF
51150
51151cat >>$CONFIG_STATUS <<_ACEOF
51152ac_cs_version="\\
f1e3914f 51153wxWidgets config.status 2.7.1
ac1cb8d3 51154configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
51155 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
51156
ac1cb8d3 51157Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
51158This config.status script is free software; the Free Software Foundation
51159gives unlimited permission to copy, distribute and modify it."
51160srcdir=$srcdir
51161INSTALL="$INSTALL"
51162_ACEOF
51163
51164cat >>$CONFIG_STATUS <<\_ACEOF
51165# If no file are specified by the user, then we need to provide default
51166# value. By we need to know if files were specified by the user.
51167ac_need_defaults=:
51168while test $# != 0
51169do
51170 case $1 in
51171 --*=*)
51172 ac_option=`expr "x$1" : 'x\([^=]*\)='`
51173 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
51174 ac_shift=:
51175 ;;
51176 -*)
51177 ac_option=$1
51178 ac_optarg=$2
51179 ac_shift=shift
51180 ;;
51181 *) # This is not an option, so the user has probably given explicit
51182 # arguments.
51183 ac_option=$1
51184 ac_need_defaults=false;;
51185 esac
51186
51187 case $ac_option in
51188 # Handling of the options.
51189_ACEOF
51190cat >>$CONFIG_STATUS <<\_ACEOF
51191 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51192 ac_cs_recheck=: ;;
51193 --version | --vers* | -V )
51194 echo "$ac_cs_version"; exit 0 ;;
51195 --he | --h)
51196 # Conflict between --help and --header
51197 { { echo "$as_me:$LINENO: error: ambiguous option: $1
51198Try \`$0 --help' for more information." >&5
51199echo "$as_me: error: ambiguous option: $1
51200Try \`$0 --help' for more information." >&2;}
51201 { (exit 1); exit 1; }; };;
51202 --help | --hel | -h )
51203 echo "$ac_cs_usage"; exit 0 ;;
51204 --debug | --d* | -d )
51205 debug=: ;;
51206 --file | --fil | --fi | --f )
51207 $ac_shift
51208 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51209 ac_need_defaults=false;;
51210 --header | --heade | --head | --hea )
51211 $ac_shift
51212 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51213 ac_need_defaults=false;;
51214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51215 | -silent | --silent | --silen | --sile | --sil | --si | --s)
51216 ac_cs_silent=: ;;
51217
51218 # This is an error.
51219 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
51220Try \`$0 --help' for more information." >&5
51221echo "$as_me: error: unrecognized option: $1
51222Try \`$0 --help' for more information." >&2;}
51223 { (exit 1); exit 1; }; } ;;
51224
51225 *) ac_config_targets="$ac_config_targets $1" ;;
51226
51227 esac
51228 shift
51229done
51230
51231ac_configure_extra_args=
51232
51233if $ac_cs_silent; then
51234 exec 6>/dev/null
51235 ac_configure_extra_args="$ac_configure_extra_args --silent"
51236fi
51237
51238_ACEOF
51239cat >>$CONFIG_STATUS <<_ACEOF
51240if \$ac_cs_recheck; then
51241 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51242 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51243fi
51244
51245_ACEOF
51246
51247cat >>$CONFIG_STATUS <<_ACEOF
51248#
51249# INIT-COMMANDS section.
51250#
51251
5c60e845
MW
51252
51253 CPP="$CPP"
51254 infile="$srcdir/include/wx/msw/genrcdefs.h"
51255 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
51256
51257
ceec2216
RL
51258 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51259 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51260 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51261 LN_S="${LN_S}"
a848cd7e
SC
51262
51263
51264_ACEOF
51265
51266
51267
51268cat >>$CONFIG_STATUS <<\_ACEOF
51269for ac_config_target in $ac_config_targets
51270do
51271 case "$ac_config_target" in
51272 # Handling of arguments.
ceec2216
RL
51273 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
51274 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
51275 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
51276 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
51277 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 51278 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
51279 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
51280 "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
51281 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51282echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51283 { (exit 1); exit 1; }; };;
51284 esac
51285done
51286
51287# If the user did not use the arguments to specify the items to instantiate,
51288# then the envvar interface is used. Set only those that are not.
51289# We use the long form for the default assignment because of an extremely
51290# bizarre bug on SunOS 4.1.3.
51291if $ac_need_defaults; then
51292 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51293 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51294 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51295fi
51296
51297# Have a temporary directory for convenience. Make it in the build tree
51298# simply because there is no reason to put it here, and in addition,
51299# creating and moving files from /tmp can sometimes cause problems.
51300# Create a temporary directory, and hook for its removal unless debugging.
51301$debug ||
51302{
51303 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
51304 trap '{ (exit 1); exit 1; }' 1 2 13 15
51305}
51306
51307# Create a (secure) tmp directory for tmp files.
51308
51309{
51310 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
51311 test -n "$tmp" && test -d "$tmp"
51312} ||
51313{
51314 tmp=./confstat$$-$RANDOM
51315 (umask 077 && mkdir $tmp)
51316} ||
51317{
51318 echo "$me: cannot create a temporary directory in ." >&2
51319 { (exit 1); exit 1; }
51320}
51321
51322_ACEOF
51323
51324cat >>$CONFIG_STATUS <<_ACEOF
51325
51326#
51327# CONFIG_FILES section.
51328#
51329
51330# No need to generate the scripts if there are no CONFIG_FILES.
51331# This happens for instance when ./config.status config.h
51332if test -n "\$CONFIG_FILES"; then
51333 # Protect against being on the right side of a sed subst in config.status.
51334 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
51335 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
51336s,@SHELL@,$SHELL,;t t
51337s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
51338s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
51339s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
51340s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
51341s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
51342s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
51343s,@exec_prefix@,$exec_prefix,;t t
51344s,@prefix@,$prefix,;t t
51345s,@program_transform_name@,$program_transform_name,;t t
51346s,@bindir@,$bindir,;t t
51347s,@sbindir@,$sbindir,;t t
51348s,@libexecdir@,$libexecdir,;t t
51349s,@datadir@,$datadir,;t t
51350s,@sysconfdir@,$sysconfdir,;t t
51351s,@sharedstatedir@,$sharedstatedir,;t t
51352s,@localstatedir@,$localstatedir,;t t
51353s,@libdir@,$libdir,;t t
51354s,@includedir@,$includedir,;t t
51355s,@oldincludedir@,$oldincludedir,;t t
51356s,@infodir@,$infodir,;t t
51357s,@mandir@,$mandir,;t t
51358s,@build_alias@,$build_alias,;t t
51359s,@host_alias@,$host_alias,;t t
51360s,@target_alias@,$target_alias,;t t
51361s,@DEFS@,$DEFS,;t t
51362s,@ECHO_C@,$ECHO_C,;t t
51363s,@ECHO_N@,$ECHO_N,;t t
51364s,@ECHO_T@,$ECHO_T,;t t
51365s,@LIBS@,$LIBS,;t t
51366s,@build@,$build,;t t
51367s,@build_cpu@,$build_cpu,;t t
51368s,@build_vendor@,$build_vendor,;t t
51369s,@build_os@,$build_os,;t t
51370s,@host@,$host,;t t
51371s,@host_cpu@,$host_cpu,;t t
51372s,@host_vendor@,$host_vendor,;t t
51373s,@host_os@,$host_os,;t t
51374s,@target@,$target,;t t
51375s,@target_cpu@,$target_cpu,;t t
51376s,@target_vendor@,$target_vendor,;t t
51377s,@target_os@,$target_os,;t t
51378s,@CC@,$CC,;t t
51379s,@CFLAGS@,$CFLAGS,;t t
51380s,@LDFLAGS@,$LDFLAGS,;t t
51381s,@CPPFLAGS@,$CPPFLAGS,;t t
51382s,@ac_ct_CC@,$ac_ct_CC,;t t
51383s,@EXEEXT@,$EXEEXT,;t t
51384s,@OBJEXT@,$OBJEXT,;t t
51385s,@CPP@,$CPP,;t t
51386s,@EGREP@,$EGREP,;t t
51387s,@CXX@,$CXX,;t t
51388s,@CXXFLAGS@,$CXXFLAGS,;t t
51389s,@ac_ct_CXX@,$ac_ct_CXX,;t t
51390s,@RANLIB@,$RANLIB,;t t
51391s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
51392s,@AR@,$AR,;t t
8c80d384 51393s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
51394s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
51395s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
51396s,@INSTALL_DATA@,$INSTALL_DATA,;t t
51397s,@STRIP@,$STRIP,;t t
8c80d384 51398s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
51399s,@WINDRES@,$WINDRES,;t t
51400s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
51401s,@DLLTOOL@,$DLLTOOL,;t t
51402s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
51403s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
51404s,@LN_S@,$LN_S,;t t
51405s,@CXXCPP@,$CXXCPP,;t t
51406s,@subdirs@,$subdirs,;t t
51407s,@PKG_CONFIG@,$PKG_CONFIG,;t t
51408s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
51409s,@GTK_LIBS@,$GTK_LIBS,;t t
51410s,@GTK_CONFIG@,$GTK_CONFIG,;t t
b3c86150
VS
51411s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
51412s,@DIRECTFB_CFLAGS@,$DIRECTFB_CFLAGS,;t t
51413s,@DIRECTFB_LIBS@,$DIRECTFB_LIBS,;t t
a848cd7e
SC
51414s,@X_CFLAGS@,$X_CFLAGS,;t t
51415s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
51416s,@X_LIBS@,$X_LIBS,;t t
51417s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
51418s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
51419s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
51420s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
51421s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
51422s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
51423s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 51424s,@REZ@,$REZ,;t t
a848cd7e
SC
51425s,@DEREZ@,$DEREZ,;t t
51426s,@SETFILE@,$SETFILE,;t t
51427s,@LIBICONV@,$LIBICONV,;t t
51428s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
51429s,@SDL_CONFIG@,$SDL_CONFIG,;t t
51430s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
51431s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
51432s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
51433s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
2b850ae1
RR
51434s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
51435s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
3565d135
RR
51436s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
51437s,@HILDON_LIBS@,$HILDON_LIBS,;t t
64b75e64
RD
51438s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
51439s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
f10e38c4
VZ
51440s,@GST_CFLAGS@,$GST_CFLAGS,;t t
51441s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
51442s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
51443s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
51444s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
51445s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
51446s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
51447s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
51448s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
51449s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
51450s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
51451s,@VENDOR@,$VENDOR,;t t
51452s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
51453s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
51454s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
51455s,@WXUNIV@,$WXUNIV,;t t
51456s,@MONOLITHIC@,$MONOLITHIC,;t t
51457s,@USE_PLUGINS@,$USE_PLUGINS,;t t
51458s,@EXTRALIBS@,$EXTRALIBS,;t t
51459s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
51460s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
51461s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
51462s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
51463s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
51464s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
51465s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 51466s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
2b850ae1 51467s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
3565d135 51468s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
51469s,@UNICODE@,$UNICODE,;t t
51470s,@BUILD@,$BUILD,;t t
51471s,@DEBUG_INFO@,$DEBUG_INFO,;t t
51472s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
51473s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
51474s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
51475s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
51476s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
51477s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
51478s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
51479s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
51480s,@SET_MAKE@,$SET_MAKE,;t t
51481s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
51482s,@NM@,$NM,;t t
51483s,@ac_ct_NM@,$ac_ct_NM,;t t
51484s,@INSTALL_DIR@,$INSTALL_DIR,;t t
51485s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
51486s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
51487s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
51488s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
51489s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 51490s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
51491s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
51492s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 51493s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
51494s,@SO_SUFFIX@,$SO_SUFFIX,;t t
51495s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
51496s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
51497s,@LIBPREFIX@,$LIBPREFIX,;t t
51498s,@LIBEXT@,$LIBEXT,;t t
51499s,@DLLPREFIX@,$DLLPREFIX,;t t
51500s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 51501s,@dlldir@,$dlldir,;t t
a848cd7e
SC
51502s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
51503s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
51504s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
51505s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
51506s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
51507s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 51508s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
51509s,@USE_SOVERSION@,$USE_SOVERSION,;t t
51510s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
51511s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 51512s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
51513s,@USE_MACVERSION@,$USE_MACVERSION,;t t
51514s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
51515s,@SONAME_FLAG@,$SONAME_FLAG,;t t
51516s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
51517s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 51518s,@ICC_PCH@,$ICC_PCH,;t t
a848cd7e
SC
51519s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
51520s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
51521s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
51522s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
51523s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
51524s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
51525s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
51526s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
51527s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
51528s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
51529s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
51530s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
51531s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
51532s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
51533s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 51534s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
51535s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
51536s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
3f60522a 51537s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
a848cd7e 51538s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 51539s,@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 51540s,@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 51541s,@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 51542s,@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 51543s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8b6682b9 51544s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
ceec2216 51545s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e 51546s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
3f60522a 51547s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
a848cd7e 51548s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 51549s,@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 51550s,@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 51551s,@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 51552s,@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 51553s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
8b6682b9 51554s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
ceec2216 51555s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 51556s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
51557s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
51558s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
51559s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
51560s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
51561s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
51562s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 51563s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
51564s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
51565s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 51566s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
51567s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
51568s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
51569s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 51570s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 51571s,@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
51572s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
51573s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
51574s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
51575s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 51576s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 51577s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 51578s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 51579s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
51580s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
51581s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
51582s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
51583s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
51584s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
51585s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
51586s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
51587s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
51588s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
51589s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
51590s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
51591s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
51592s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
51593s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
51594s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 51595s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
51596s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
51597s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
51598s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
51599s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
51600s,@COND_SHARED_1@,$COND_SHARED_1,;t t
51601s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 51602s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 51603s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 51604s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 51605s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e 51606s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
b3c86150
VS
51607s,@COND_TOOLKIT_DFB@,$COND_TOOLKIT_DFB,;t t
51608s,@COND_TOOLKIT_DFB_USE_GUI_1@,$COND_TOOLKIT_DFB_USE_GUI_1,;t t
a848cd7e 51609s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
51610s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
51611s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
51612s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
51613s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
51614s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
51615s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 51616s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
51617s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
51618s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
51619s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
51620s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
51621s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
51622s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
51623s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
51624s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
51625s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
51626s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
51627s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 51628s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
51629s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
51630s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
51631s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
51632s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
51633s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
51634s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 51635s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
51636s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
51637s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
51638s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
51639s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
51640s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
51641s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
51642s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
51643s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
51644s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
51645s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
51646s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
51647s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
51648s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
51649s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 51650s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 51651s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
51652s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
51653s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 51654s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 51655s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
51656s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
51657s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
51658s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
51659s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
51660s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 51661s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 51662s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 51663s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 51664s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
51665s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
51666s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
51667s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
51668s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
51669s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
51670s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
51671s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
51672s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 51673s,@SHARED@,$SHARED,;t t
a848cd7e
SC
51674s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
51675s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
51676s,@USE_GUI@,$USE_GUI,;t t
51677s,@AFMINSTALL@,$AFMINSTALL,;t t
51678s,@WIN32INSTALL@,$WIN32INSTALL,;t t
51679s,@TOOLKIT@,$TOOLKIT,;t t
51680s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 51681s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 51682s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 51683s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
51684s,@WIDGET_SET@,$WIDGET_SET,;t t
51685s,@WX_RELEASE@,$WX_RELEASE,;t t
51686s,@WX_VERSION@,$WX_VERSION,;t t
51687s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
51688s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
51689s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
51690s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
51691s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
51692s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
51693s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
51694s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
51695s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 51696s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 51697s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 51698s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
51699s,@DISTDIR@,$DISTDIR,;t t
51700s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
51701s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
51702s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
51703s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
51704s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 51705s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
51706s,@RESFLAGS@,$RESFLAGS,;t t
51707s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
51708s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
51709s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
51710s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 51711s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 51712s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 51713s,@GCC@,$GCC,;t t
a848cd7e
SC
51714s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
51715s,@LIBOBJS@,$LIBOBJS,;t t
51716s,@LTLIBOBJS@,$LTLIBOBJS,;t t
51717CEOF
51718
51719_ACEOF
51720
51721 cat >>$CONFIG_STATUS <<\_ACEOF
51722 # Split the substitutions into bite-sized pieces for seds with
51723 # small command number limits, like on Digital OSF/1 and HP-UX.
51724 ac_max_sed_lines=48
51725 ac_sed_frag=1 # Number of current file.
51726 ac_beg=1 # First line for current file.
51727 ac_end=$ac_max_sed_lines # Line after last line for current file.
51728 ac_more_lines=:
51729 ac_sed_cmds=
51730 while $ac_more_lines; do
51731 if test $ac_beg -gt 1; then
51732 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51733 else
51734 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51735 fi
51736 if test ! -s $tmp/subs.frag; then
51737 ac_more_lines=false
51738 else
51739 # The purpose of the label and of the branching condition is to
51740 # speed up the sed processing (if there are no `@' at all, there
51741 # is no need to browse any of the substitutions).
51742 # These are the two extra sed commands mentioned above.
51743 (echo ':t
51744 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
51745 if test -z "$ac_sed_cmds"; then
ac1cb8d3 51746 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 51747 else
ac1cb8d3 51748 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
51749 fi
51750 ac_sed_frag=`expr $ac_sed_frag + 1`
51751 ac_beg=$ac_end
51752 ac_end=`expr $ac_end + $ac_max_sed_lines`
51753 fi
51754 done
51755 if test -z "$ac_sed_cmds"; then
51756 ac_sed_cmds=cat
51757 fi
51758fi # test -n "$CONFIG_FILES"
51759
51760_ACEOF
51761cat >>$CONFIG_STATUS <<\_ACEOF
51762for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
51763 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51764 case $ac_file in
51765 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
51766 cat >$tmp/stdin
51767 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51768 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 51769 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 51770 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
51771 * ) ac_file_in=$ac_file.in ;;
51772 esac
51773
51774 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
51775 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51776$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51777 X"$ac_file" : 'X\(//\)[^/]' \| \
51778 X"$ac_file" : 'X\(//\)$' \| \
51779 X"$ac_file" : 'X\(/\)' \| \
51780 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51781echo X"$ac_file" |
51782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51783 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51784 /^X\(\/\/\)$/{ s//\1/; q; }
51785 /^X\(\/\).*/{ s//\1/; q; }
51786 s/.*/./; q'`
51787 { if $as_mkdir_p; then
51788 mkdir -p "$ac_dir"
51789 else
51790 as_dir="$ac_dir"
51791 as_dirs=
51792 while test ! -d "$as_dir"; do
51793 as_dirs="$as_dir $as_dirs"
51794 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51795$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51796 X"$as_dir" : 'X\(//\)[^/]' \| \
51797 X"$as_dir" : 'X\(//\)$' \| \
51798 X"$as_dir" : 'X\(/\)' \| \
51799 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51800echo X"$as_dir" |
51801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51802 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51803 /^X\(\/\/\)$/{ s//\1/; q; }
51804 /^X\(\/\).*/{ s//\1/; q; }
51805 s/.*/./; q'`
51806 done
51807 test ! -n "$as_dirs" || mkdir $as_dirs
51808 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51809echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51810 { (exit 1); exit 1; }; }; }
51811
51812 ac_builddir=.
51813
51814if test "$ac_dir" != .; then
51815 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51816 # A "../" for each directory in $ac_dir_suffix.
51817 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51818else
51819 ac_dir_suffix= ac_top_builddir=
51820fi
51821
51822case $srcdir in
51823 .) # No --srcdir option. We are building in place.
51824 ac_srcdir=.
51825 if test -z "$ac_top_builddir"; then
51826 ac_top_srcdir=.
51827 else
51828 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51829 fi ;;
51830 [\\/]* | ?:[\\/]* ) # Absolute path.
51831 ac_srcdir=$srcdir$ac_dir_suffix;
51832 ac_top_srcdir=$srcdir ;;
51833 *) # Relative path.
51834 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51835 ac_top_srcdir=$ac_top_builddir$srcdir ;;
51836esac
ac1cb8d3
VS
51837
51838# Do not use `cd foo && pwd` to compute absolute paths, because
51839# the directories may not exist.
51840case `pwd` in
51841.) ac_abs_builddir="$ac_dir";;
51842*)
51843 case "$ac_dir" in
51844 .) ac_abs_builddir=`pwd`;;
51845 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51846 *) ac_abs_builddir=`pwd`/"$ac_dir";;
51847 esac;;
51848esac
51849case $ac_abs_builddir in
51850.) ac_abs_top_builddir=${ac_top_builddir}.;;
51851*)
51852 case ${ac_top_builddir}. in
51853 .) ac_abs_top_builddir=$ac_abs_builddir;;
51854 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51855 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51856 esac;;
51857esac
51858case $ac_abs_builddir in
51859.) ac_abs_srcdir=$ac_srcdir;;
51860*)
51861 case $ac_srcdir in
51862 .) ac_abs_srcdir=$ac_abs_builddir;;
51863 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51864 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51865 esac;;
51866esac
51867case $ac_abs_builddir in
51868.) ac_abs_top_srcdir=$ac_top_srcdir;;
51869*)
51870 case $ac_top_srcdir in
51871 .) ac_abs_top_srcdir=$ac_abs_builddir;;
51872 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51873 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51874 esac;;
51875esac
a848cd7e
SC
51876
51877
51878 case $INSTALL in
51879 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
51880 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
51881 esac
51882
a848cd7e
SC
51883 # Let's still pretend it is `configure' which instantiates (i.e., don't
51884 # use $as_me), people would be surprised to read:
51885 # /* config.h. Generated by config.status. */
51886 if test x"$ac_file" = x-; then
51887 configure_input=
51888 else
51889 configure_input="$ac_file. "
51890 fi
51891 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 51892 sed 's,.*/,,'` by configure."
a848cd7e
SC
51893
51894 # First look for the input files in the build tree, otherwise in the
51895 # src tree.
51896 ac_file_inputs=`IFS=:
51897 for f in $ac_file_in; do
51898 case $f in
51899 -) echo $tmp/stdin ;;
51900 [\\/$]*)
ac1cb8d3
VS
51901 # Absolute (can't be DOS-style, as IFS=:)
51902 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51903echo "$as_me: error: cannot find input file: $f" >&2;}
51904 { (exit 1); exit 1; }; }
ac1cb8d3 51905 echo "$f";;
a848cd7e 51906 *) # Relative
ac1cb8d3
VS
51907 if test -f "$f"; then
51908 # Build tree
51909 echo "$f"
51910 elif test -f "$srcdir/$f"; then
51911 # Source tree
51912 echo "$srcdir/$f"
51913 else
51914 # /dev/null tree
51915 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51916echo "$as_me: error: cannot find input file: $f" >&2;}
51917 { (exit 1); exit 1; }; }
ac1cb8d3 51918 fi;;
a848cd7e
SC
51919 esac
51920 done` || { (exit 1); exit 1; }
479c790c
VZ
51921
51922 if test x"$ac_file" != x-; then
51923 { echo "$as_me:$LINENO: creating $ac_file" >&5
51924echo "$as_me: creating $ac_file" >&6;}
51925 rm -f "$ac_file"
51926 fi
a848cd7e
SC
51927_ACEOF
51928cat >>$CONFIG_STATUS <<_ACEOF
51929 sed "$ac_vpsub
51930$extrasub
51931_ACEOF
51932cat >>$CONFIG_STATUS <<\_ACEOF
51933:t
51934/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51935s,@configure_input@,$configure_input,;t t
51936s,@srcdir@,$ac_srcdir,;t t
51937s,@abs_srcdir@,$ac_abs_srcdir,;t t
51938s,@top_srcdir@,$ac_top_srcdir,;t t
51939s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
51940s,@builddir@,$ac_builddir,;t t
51941s,@abs_builddir@,$ac_abs_builddir,;t t
51942s,@top_builddir@,$ac_top_builddir,;t t
51943s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
51944s,@INSTALL@,$ac_INSTALL,;t t
51945" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
51946 rm -f $tmp/stdin
51947 if test x"$ac_file" != x-; then
51948 mv $tmp/out $ac_file
51949 else
51950 cat $tmp/out
51951 rm -f $tmp/out
51952 fi
51953
ceec2216
RL
51954 # Run the commands associated with the file.
51955 case $ac_file in
51956 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
51957 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
51958 esac
a848cd7e
SC
51959done
51960_ACEOF
51961cat >>$CONFIG_STATUS <<\_ACEOF
51962
51963#
51964# CONFIG_HEADER section.
51965#
51966
51967# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
51968# NAME is the cpp macro being defined and VALUE is the value it is being given.
51969#
51970# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
51971ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
51972ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
51973ac_dC=' '
51974ac_dD=',;t'
51975# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 51976ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
51977ac_uB='$,\1#\2define\3'
51978ac_uC=' '
51979ac_uD=',;t'
51980
51981for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
51982 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51983 case $ac_file in
51984 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
51985 cat >$tmp/stdin
51986 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51987 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 51988 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 51989 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
51990 * ) ac_file_in=$ac_file.in ;;
51991 esac
51992
51993 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
51994echo "$as_me: creating $ac_file" >&6;}
51995
51996 # First look for the input files in the build tree, otherwise in the
51997 # src tree.
51998 ac_file_inputs=`IFS=:
51999 for f in $ac_file_in; do
52000 case $f in
52001 -) echo $tmp/stdin ;;
52002 [\\/$]*)
ac1cb8d3
VS
52003 # Absolute (can't be DOS-style, as IFS=:)
52004 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
52005echo "$as_me: error: cannot find input file: $f" >&2;}
52006 { (exit 1); exit 1; }; }
ac1cb8d3
VS
52007 # Do quote $f, to prevent DOS paths from being IFS'd.
52008 echo "$f";;
a848cd7e 52009 *) # Relative
ac1cb8d3
VS
52010 if test -f "$f"; then
52011 # Build tree
52012 echo "$f"
52013 elif test -f "$srcdir/$f"; then
52014 # Source tree
52015 echo "$srcdir/$f"
52016 else
52017 # /dev/null tree
52018 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
52019echo "$as_me: error: cannot find input file: $f" >&2;}
52020 { (exit 1); exit 1; }; }
ac1cb8d3 52021 fi;;
a848cd7e
SC
52022 esac
52023 done` || { (exit 1); exit 1; }
52024 # Remove the trailing spaces.
ac1cb8d3 52025 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
52026
52027_ACEOF
52028
52029# Transform confdefs.h into two sed scripts, `conftest.defines' and
52030# `conftest.undefs', that substitutes the proper values into
52031# config.h.in to produce config.h. The first handles `#define'
52032# templates, and the second `#undef' templates.
52033# And first: Protect against being on the right side of a sed subst in
52034# config.status. Protect against being in an unquoted here document
52035# in config.status.
52036rm -f conftest.defines conftest.undefs
52037# Using a here document instead of a string reduces the quoting nightmare.
52038# Putting comments in sed scripts is not portable.
52039#
52040# `end' is used to avoid that the second main sed command (meant for
52041# 0-ary CPP macros) applies to n-ary macro definitions.
52042# See the Autoconf documentation for `clear'.
52043cat >confdef2sed.sed <<\_ACEOF
52044s/[\\&,]/\\&/g
52045s,[\\$`],\\&,g
52046t clear
52047: clear
ac1cb8d3 52048s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 52049t end
ac1cb8d3 52050s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
52051: end
52052_ACEOF
52053# If some macros were called several times there might be several times
52054# the same #defines, which is useless. Nevertheless, we may not want to
52055# sort them, since we want the *last* AC-DEFINE to be honored.
52056uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
52057sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
52058rm -f confdef2sed.sed
52059
52060# This sed command replaces #undef with comments. This is necessary, for
52061# example, in the case of _POSIX_SOURCE, which is predefined and required
52062# on some systems where configure will not decide to define it.
52063cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 52064s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
52065_ACEOF
52066
52067# Break up conftest.defines because some shells have a limit on the size
52068# of here documents, and old seds have small limits too (100 cmds).
52069echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 52070echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
52071echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
52072echo ' :' >>$CONFIG_STATUS
52073rm -f conftest.tail
52074while grep . conftest.defines >/dev/null
52075do
52076 # Write a limited-size here document to $tmp/defines.sed.
52077 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
52078 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 52079 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
52080 # Work around the forget-to-reset-the-flag bug.
52081 echo 't clr' >>$CONFIG_STATUS
52082 echo ': clr' >>$CONFIG_STATUS
52083 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
52084 echo 'CEOF
52085 sed -f $tmp/defines.sed $tmp/in >$tmp/out
52086 rm -f $tmp/in
52087 mv $tmp/out $tmp/in
52088' >>$CONFIG_STATUS
52089 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
52090 rm -f conftest.defines
52091 mv conftest.tail conftest.defines
52092done
52093rm -f conftest.defines
52094echo ' fi # grep' >>$CONFIG_STATUS
52095echo >>$CONFIG_STATUS
52096
52097# Break up conftest.undefs because some shells have a limit on the size
52098# of here documents, and old seds have small limits too (100 cmds).
52099echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
52100rm -f conftest.tail
52101while grep . conftest.undefs >/dev/null
52102do
52103 # Write a limited-size here document to $tmp/undefs.sed.
52104 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
52105 # Speed up: don't consider the non `#undef'
ac1cb8d3 52106 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
52107 # Work around the forget-to-reset-the-flag bug.
52108 echo 't clr' >>$CONFIG_STATUS
52109 echo ': clr' >>$CONFIG_STATUS
52110 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
52111 echo 'CEOF
52112 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
52113 rm -f $tmp/in
52114 mv $tmp/out $tmp/in
52115' >>$CONFIG_STATUS
52116 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
52117 rm -f conftest.undefs
52118 mv conftest.tail conftest.undefs
52119done
52120rm -f conftest.undefs
52121
52122cat >>$CONFIG_STATUS <<\_ACEOF
52123 # Let's still pretend it is `configure' which instantiates (i.e., don't
52124 # use $as_me), people would be surprised to read:
52125 # /* config.h. Generated by config.status. */
52126 if test x"$ac_file" = x-; then
52127 echo "/* Generated by configure. */" >$tmp/config.h
52128 else
52129 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
52130 fi
52131 cat $tmp/in >>$tmp/config.h
52132 rm -f $tmp/in
52133 if test x"$ac_file" != x-; then
52134 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
52135 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52136echo "$as_me: $ac_file is unchanged" >&6;}
52137 else
52138 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52139$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52140 X"$ac_file" : 'X\(//\)[^/]' \| \
52141 X"$ac_file" : 'X\(//\)$' \| \
52142 X"$ac_file" : 'X\(/\)' \| \
52143 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
52144echo X"$ac_file" |
52145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52146 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52147 /^X\(\/\/\)$/{ s//\1/; q; }
52148 /^X\(\/\).*/{ s//\1/; q; }
52149 s/.*/./; q'`
52150 { if $as_mkdir_p; then
52151 mkdir -p "$ac_dir"
52152 else
52153 as_dir="$ac_dir"
52154 as_dirs=
52155 while test ! -d "$as_dir"; do
52156 as_dirs="$as_dir $as_dirs"
52157 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52158$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52159 X"$as_dir" : 'X\(//\)[^/]' \| \
52160 X"$as_dir" : 'X\(//\)$' \| \
52161 X"$as_dir" : 'X\(/\)' \| \
52162 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
52163echo X"$as_dir" |
52164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52166 /^X\(\/\/\)$/{ s//\1/; q; }
52167 /^X\(\/\).*/{ s//\1/; q; }
52168 s/.*/./; q'`
52169 done
52170 test ! -n "$as_dirs" || mkdir $as_dirs
52171 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52172echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52173 { (exit 1); exit 1; }; }; }
52174
52175 rm -f $ac_file
52176 mv $tmp/config.h $ac_file
52177 fi
52178 else
52179 cat $tmp/config.h
52180 rm -f $tmp/config.h
52181 fi
52182done
52183_ACEOF
52184cat >>$CONFIG_STATUS <<\_ACEOF
52185
52186#
52187# CONFIG_COMMANDS section.
52188#
52189for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
52190 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
52191 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
52192 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
52193$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52194 X"$ac_dest" : 'X\(//\)[^/]' \| \
52195 X"$ac_dest" : 'X\(//\)$' \| \
52196 X"$ac_dest" : 'X\(/\)' \| \
52197 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
52198echo X"$ac_dest" |
52199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52200 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52201 /^X\(\/\/\)$/{ s//\1/; q; }
52202 /^X\(\/\).*/{ s//\1/; q; }
52203 s/.*/./; q'`
ac1cb8d3
VS
52204 { if $as_mkdir_p; then
52205 mkdir -p "$ac_dir"
52206 else
52207 as_dir="$ac_dir"
52208 as_dirs=
52209 while test ! -d "$as_dir"; do
52210 as_dirs="$as_dir $as_dirs"
52211 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52212$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52213 X"$as_dir" : 'X\(//\)[^/]' \| \
52214 X"$as_dir" : 'X\(//\)$' \| \
52215 X"$as_dir" : 'X\(/\)' \| \
52216 . : '\(.\)' 2>/dev/null ||
52217echo X"$as_dir" |
52218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52219 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52220 /^X\(\/\/\)$/{ s//\1/; q; }
52221 /^X\(\/\).*/{ s//\1/; q; }
52222 s/.*/./; q'`
52223 done
52224 test ! -n "$as_dirs" || mkdir $as_dirs
52225 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52226echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52227 { (exit 1); exit 1; }; }; }
52228
a848cd7e
SC
52229 ac_builddir=.
52230
52231if test "$ac_dir" != .; then
52232 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52233 # A "../" for each directory in $ac_dir_suffix.
52234 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52235else
52236 ac_dir_suffix= ac_top_builddir=
52237fi
52238
52239case $srcdir in
52240 .) # No --srcdir option. We are building in place.
52241 ac_srcdir=.
52242 if test -z "$ac_top_builddir"; then
52243 ac_top_srcdir=.
52244 else
52245 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52246 fi ;;
52247 [\\/]* | ?:[\\/]* ) # Absolute path.
52248 ac_srcdir=$srcdir$ac_dir_suffix;
52249 ac_top_srcdir=$srcdir ;;
52250 *) # Relative path.
52251 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52252 ac_top_srcdir=$ac_top_builddir$srcdir ;;
52253esac
ac1cb8d3
VS
52254
52255# Do not use `cd foo && pwd` to compute absolute paths, because
52256# the directories may not exist.
52257case `pwd` in
52258.) ac_abs_builddir="$ac_dir";;
52259*)
52260 case "$ac_dir" in
52261 .) ac_abs_builddir=`pwd`;;
52262 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52263 *) ac_abs_builddir=`pwd`/"$ac_dir";;
52264 esac;;
52265esac
52266case $ac_abs_builddir in
52267.) ac_abs_top_builddir=${ac_top_builddir}.;;
52268*)
52269 case ${ac_top_builddir}. in
52270 .) ac_abs_top_builddir=$ac_abs_builddir;;
52271 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52272 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52273 esac;;
52274esac
52275case $ac_abs_builddir in
52276.) ac_abs_srcdir=$ac_srcdir;;
52277*)
52278 case $ac_srcdir in
52279 .) ac_abs_srcdir=$ac_abs_builddir;;
52280 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52281 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52282 esac;;
52283esac
52284case $ac_abs_builddir in
52285.) ac_abs_top_srcdir=$ac_top_srcdir;;
52286*)
52287 case $ac_top_srcdir in
52288 .) ac_abs_top_srcdir=$ac_abs_builddir;;
52289 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52290 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52291 esac;;
52292esac
a848cd7e
SC
52293
52294
52295 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
52296echo "$as_me: executing $ac_dest commands" >&6;}
52297 case $ac_dest in
5c60e845
MW
52298 rcdefs.h )
52299 mkdir -p $outdir &&
52300 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
52301 ;;
ceec2216
RL
52302 wx-config ) rm -f wx-config
52303 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
52304 ;;
a848cd7e
SC
52305 esac
52306done
52307_ACEOF
52308
52309cat >>$CONFIG_STATUS <<\_ACEOF
52310
52311{ (exit 0); exit 0; }
52312_ACEOF
52313chmod +x $CONFIG_STATUS
52314ac_clean_files=$ac_clean_files_save
52315
52316
52317# configure is writing to config.log, and then calls config.status.
52318# config.status does its own redirection, appending to config.log.
52319# Unfortunately, on DOS this fails, as config.log is still kept open
52320# by configure, so config.status won't be able to write to it; its
52321# output is simply discarded. So we exec the FD to /dev/null,
52322# effectively closing config.log, so it can be properly (re)opened and
52323# appended to by config.status. When coming back to configure, we
52324# need to make the FD available again.
52325if test "$no_create" != yes; then
52326 ac_cs_success=:
52327 ac_config_status_args=
52328 test "$silent" = yes &&
52329 ac_config_status_args="$ac_config_status_args --quiet"
52330 exec 5>/dev/null
52331 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52332 exec 5>>config.log
52333 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52334 # would make configure fail if this is the last instruction.
52335 $ac_cs_success || { (exit 1); exit 1; }
52336fi
52337
52338#
52339# CONFIG_SUBDIRS section.
52340#
52341if test "$no_recursion" != yes; then
52342
52343 # Remove --cache-file and --srcdir arguments so they do not pile up.
52344 ac_sub_configure_args=
52345 ac_prev=
52346 for ac_arg in $ac_configure_args; do
52347 if test -n "$ac_prev"; then
52348 ac_prev=
52349 continue
52350 fi
52351 case $ac_arg in
52352 -cache-file | --cache-file | --cache-fil | --cache-fi \
52353 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
52354 ac_prev=cache_file ;;
52355 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
52356 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
52357 | --c=*)
52358 ;;
52359 --config-cache | -C)
52360 ;;
52361 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
52362 ac_prev=srcdir ;;
52363 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
52364 ;;
52365 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
52366 ac_prev=prefix ;;
52367 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
52368 ;;
52369 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
52370 esac
52371 done
52372
52373 # Always prepend --prefix to ensure using the same prefix
52374 # in subdir configurations.
52375 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
52376
52377 ac_popdir=`pwd`
52378 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
52379
52380 # Do not complain, so a configure script can configure whichever
52381 # parts of a large source tree are present.
52382 test -d $srcdir/$ac_dir || continue
52383
52384 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
52385echo "$as_me: configuring in $ac_dir" >&6;}
52386 { if $as_mkdir_p; then
52387 mkdir -p "$ac_dir"
52388 else
52389 as_dir="$ac_dir"
52390 as_dirs=
52391 while test ! -d "$as_dir"; do
52392 as_dirs="$as_dir $as_dirs"
52393 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52394$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52395 X"$as_dir" : 'X\(//\)[^/]' \| \
52396 X"$as_dir" : 'X\(//\)$' \| \
52397 X"$as_dir" : 'X\(/\)' \| \
52398 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
52399echo X"$as_dir" |
52400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52401 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52402 /^X\(\/\/\)$/{ s//\1/; q; }
52403 /^X\(\/\).*/{ s//\1/; q; }
52404 s/.*/./; q'`
52405 done
52406 test ! -n "$as_dirs" || mkdir $as_dirs
52407 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52408echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52409 { (exit 1); exit 1; }; }; }
52410
52411 ac_builddir=.
52412
52413if test "$ac_dir" != .; then
52414 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52415 # A "../" for each directory in $ac_dir_suffix.
52416 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52417else
52418 ac_dir_suffix= ac_top_builddir=
52419fi
52420
52421case $srcdir in
52422 .) # No --srcdir option. We are building in place.
52423 ac_srcdir=.
52424 if test -z "$ac_top_builddir"; then
52425 ac_top_srcdir=.
52426 else
52427 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52428 fi ;;
52429 [\\/]* | ?:[\\/]* ) # Absolute path.
52430 ac_srcdir=$srcdir$ac_dir_suffix;
52431 ac_top_srcdir=$srcdir ;;
52432 *) # Relative path.
52433 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52434 ac_top_srcdir=$ac_top_builddir$srcdir ;;
52435esac
ac1cb8d3
VS
52436
52437# Do not use `cd foo && pwd` to compute absolute paths, because
52438# the directories may not exist.
52439case `pwd` in
52440.) ac_abs_builddir="$ac_dir";;
52441*)
52442 case "$ac_dir" in
52443 .) ac_abs_builddir=`pwd`;;
52444 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52445 *) ac_abs_builddir=`pwd`/"$ac_dir";;
52446 esac;;
52447esac
52448case $ac_abs_builddir in
52449.) ac_abs_top_builddir=${ac_top_builddir}.;;
52450*)
52451 case ${ac_top_builddir}. in
52452 .) ac_abs_top_builddir=$ac_abs_builddir;;
52453 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52454 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52455 esac;;
52456esac
52457case $ac_abs_builddir in
52458.) ac_abs_srcdir=$ac_srcdir;;
52459*)
52460 case $ac_srcdir in
52461 .) ac_abs_srcdir=$ac_abs_builddir;;
52462 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52463 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52464 esac;;
52465esac
52466case $ac_abs_builddir in
52467.) ac_abs_top_srcdir=$ac_top_srcdir;;
52468*)
52469 case $ac_top_srcdir in
52470 .) ac_abs_top_srcdir=$ac_abs_builddir;;
52471 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52472 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52473 esac;;
52474esac
a848cd7e
SC
52475
52476
52477 cd $ac_dir
52478
52479 # Check for guested configure; otherwise get Cygnus style configure.
52480 if test -f $ac_srcdir/configure.gnu; then
52481 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
52482 elif test -f $ac_srcdir/configure; then
52483 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
52484 elif test -f $ac_srcdir/configure.in; then
52485 ac_sub_configure=$ac_configure
52486 else
52487 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
52488echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
52489 ac_sub_configure=
52490 fi
52491
52492 # The recursion is here.
52493 if test -n "$ac_sub_configure"; then
52494 # Make the cache file name correct relative to the subdirectory.
52495 case $cache_file in
52496 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
52497 *) # Relative path.
ac1cb8d3 52498 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
52499 esac
52500
52501 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
52502echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
52503 # The eval makes quoting arguments work.
52504 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
52505 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
52506 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
52507echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
52508 { (exit 1); exit 1; }; }
52509 fi
52510
479c790c 52511 cd "$ac_popdir"
a848cd7e
SC
52512 done
52513fi
52514
52515
52516echo
77ffb593 52517echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 52518echo ""
c2e9ada4 52519echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_DESC}"
77ffb593 52520echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 52521
77ffb593
JS
52522echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
52523echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
52524echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 52525
77ffb593 52526echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
52527echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
52528echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 52529
77ffb593 52530echo " Which libraries should wxWidgets use?"
a848cd7e
SC
52531echo " jpeg ${wxUSE_LIBJPEG-none}"
52532echo " png ${wxUSE_LIBPNG-none}"
52533echo " regex ${wxUSE_REGEX}"
52534echo " tiff ${wxUSE_LIBTIFF-none}"
52535if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
52536echo " xpm ${wxUSE_LIBXPM-none}"
52537fi
52538echo " zlib ${wxUSE_ZLIB}"
52539echo " odbc ${wxUSE_ODBC}"
52540echo " expat ${wxUSE_EXPAT}"
52541echo " libmspack ${wxUSE_LIBMSPACK}"
52542echo " sdl ${wxUSE_LIBSDL}"
52543
52544echo ""
52545